/* ==========================================================================
   DISPERSE 0-FEE — ULTIMATE WEB3 AIRDROP MULTISENDER STYLESHEET
   Aesthetics: Cyberpunk Web3 Glassmorphism, Neon Accents, Ultra-Clean UI
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #07080d;
  --bg-gradient: radial-gradient(circle at 15% 10%, rgba(124, 58, 237, 0.15), transparent 45%),
                 radial-gradient(circle at 85% 15%, rgba(6, 182, 212, 0.12), transparent 40%),
                 radial-gradient(circle at 50% 90%, rgba(16, 185, 129, 0.08), transparent 50%),
                 #07080d;
  --panel: rgba(15, 17, 28, 0.72);
  --panel-solid: #10121d;
  --panel-elevated: #161928;
  --input-bg: #0a0b12;
  --border: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-glow: rgba(139, 92, 246, 0.4);
  --border-focus: #06b6d4;

  --violet: #8b5cf6;
  --violet-glow: rgba(139, 92, 246, 0.35);
  --cyan: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.35);
  --emerald: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.35);
  --rose: #f43f5e;
  --amber: #f59e0b;

  --grad-primary: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 50%, #06b6d4 100%);
  --grad-hover: linear-gradient(135deg, #9d75f8 0%, #4f90f8 50%, #22d3ee 100%);
  --grad-free: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);

  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --shadow-panel: 0 16px 40px -10px rgba(0, 0, 0, 0.65), 0 0 0 1px var(--border);
  --shadow-glow: 0 0 25px rgba(139, 92, 246, 0.25);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Background grid overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 80px;
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   NAVBAR & HEADER
   -------------------------------------------------------------------------- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  user-select: none;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--grad-primary);
  display: grid;
  place-items: center;
  color: #06070d;
  box-shadow: 0 4px 20px var(--violet-glow);
  position: relative;
  overflow: hidden;
}

.brand-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.4), transparent);
}

.brand-text h1 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, #ffffff 40%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.brand-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  margin-top: 3px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Dropdown Pill Buttons */
.dropdown {
  position: relative;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--panel-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-full);
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.pill-btn:hover {
  background: rgba(30, 34, 55, 0.9);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.pill-btn .chev {
  font-size: 10px;
  color: var(--text-dim);
  transition: transform 0.2s ease;
}

.pill-btn.active .chev {
  transform: rotate(180deg);
}

.pill-btn.wallet-connected {
  font-family: var(--font-mono);
  font-size: 13px;
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.08);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
}

.status-dot.warn {
  background: var(--rose);
  box-shadow: 0 0 10px var(--rose);
}

.network-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
}

.connect-btn {
  background: var(--grad-primary);
  color: #06070d;
  border: 0;
  font-weight: 700;
  box-shadow: 0 4px 18px var(--violet-glow);
}

.connect-btn:hover {
  background: var(--grad-hover);
  filter: brightness(1.1);
}

/* ----------------------------------------------------------------------------
   OMNIA WEB3 NAVBAR PILLS & WALLET CARD (EXACT REPLICA)
   ---------------------------------------------------------------------------- */

/* Language Pill (EN) */
.lang-pill {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  padding: 7px 12px;
  border-radius: 9999px;
  background: #11131a;
  border: 1px solid #1f2334;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.18s ease;
}

.lang-pill:hover {
  background: #1a1e2a;
  border-color: #2f364d;
}

/* Network Pill */
.network-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #11131a;
  border: 1px solid #1f2334;
  color: #ffffff;
  font-weight: 700;
  font-size: 13.5px;
  padding: 7px 14px;
  border-radius: 9999px;
}

.network-pill:hover {
  background: #1a1e2a;
  border-color: #2f364d;
}

.net-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Connected Wallet Pill in Navbar */
.pill-btn.wallet-connected {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  background: #11131a;
  border: 1px solid #1f2334;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 9999px;
}

.pill-btn.wallet-connected:hover {
  background: #1a1e2a;
  border-color: #2f364d;
}

.pill-btn.wallet-connected .status-dot {
  width: 7.5px;
  height: 7.5px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}

/* Omnia Wallet Card */
.omnia-wallet-card {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 290px;
  background: #12141c;
  border: 1px solid #202436;
  border-radius: 18px;
  padding: 18px 20px 20px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.04);
  z-index: 1000;
  display: none;
  backdrop-filter: blur(24px);
}

.omnia-wallet-card.show {
  display: block;
  animation: omniaDropIn 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes omniaDropIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.omnia-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.omnia-provider-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #646b7d;
}

.omnia-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.omnia-icon-link {
  background: transparent;
  border: 0;
  color: #646b7d;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.omnia-icon-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.omnia-address-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  position: relative;
}

.omnia-short-addr {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: #9ba1b0;
}

.omnia-copy-btn {
  background: transparent;
  border: 0;
  color: #646b7d;
  cursor: pointer;
  padding: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.omnia-copy-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.copied-badge {
  display: none;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  padding: 1px 6px;
  border-radius: 4px;
}

.copied-badge.show {
  display: inline-block;
}

.omnia-usd-row {
  display: flex;
  align-items: baseline;
  line-height: 1;
  margin-top: 4px;
  margin-bottom: 6px;
}

.omnia-usd-main {
  font-family: var(--font-sans);
  font-size: 38px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.omnia-usd-cents {
  font-family: var(--font-sans);
  font-size: 30px;
  font-weight: 700;
  color: #6b7280;
  letter-spacing: -0.5px;
}

.omnia-crypto-sub {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #646b7d;
  margin-bottom: 20px;
  white-space: nowrap;
}

.omnia-change-btn {
  width: 100%;
  padding: 12.5px;
  background: #171a24;
  border: 1px solid #262a3b;
  border-radius: 12px;
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  transition: all 0.18s ease;
}

.omnia-change-btn:hover {
  background: #202434;
  border-color: #383f56;
  color: #ffffff;
}

/* Dropdown Menus */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 260px;
  background: var(--panel-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px;
  z-index: 100;
  display: none;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
}

.dropdown-menu.show {
  display: block;
  animation: dropIn 0.16s ease-out;
}

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--text);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13.5px;
  text-align: left;
  transition: all 0.12s;
}

.menu-item:hover {
  background: var(--panel-elevated);
}

.menu-item.active {
  background: rgba(139, 92, 246, 0.15);
  color: #c4b5fd;
}

.menu-item .subtext {
  font-size: 11px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  display: block;
}

.menu-item .check {
  margin-left: auto;
  color: var(--emerald);
  font-weight: bold;
}

.menu-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 4px;
}

/* --------------------------------------------------------------------------
   HERO / BANNER SECTION
   -------------------------------------------------------------------------- */
.hero {
  margin-bottom: 24px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

.hero-tag .tag-sparkle {
  color: #38bdf8;
  font-size: 14px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 8px;
}

.hero-title span {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 720px;
}

.fee-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  margin-top: 14px;
  color: #a7f3d0;
  text-decoration: none;
  transition: border-color 0.15s;
}

.fee-badge-pill:hover {
  border-color: var(--emerald);
}

.contract-tag {
  color: var(--text);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   LAYOUT GRID (MAIN COLUMN & SIDEBAR)
   -------------------------------------------------------------------------- */
.main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 22px;
  align-items: start;
}

@media (max-width: 1024px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
}

.col-main, .col-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Glassmorphism Card Component */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-panel);
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.card-header h2 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 9px;
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.2);
  color: var(--violet);
  border: 1px solid rgba(139, 92, 246, 0.4);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 700;
}

/* Form Fields */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: flex;
  align-items: center;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--font-mono);
}

/* Segmented Control (Toggle tabs) */
.segmented {
  display: flex;
  gap: 4px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px;
}

.seg-btn {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--text-muted);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-sans);
}

.seg-btn:hover {
  color: var(--text);
}

.seg-btn.active {
  background: var(--panel-elevated);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 2px 8px rgba(0,0,0,0.4);
}

/* Inputs & Textareas */
input[type="text"], input[type="number"] {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 14.5px;
  font-family: var(--font-mono);
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}

input:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 2px var(--violet-glow);
}

input::placeholder {
  color: var(--text-dim);
}

/* Editor with synchronized line number gutter */
.editor-container {
  display: flex;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  height: 250px;
  overflow: hidden;
  position: relative;
  transition: border-color 0.18s;
}

.editor-container:focus-within {
  border-color: var(--violet);
  box-shadow: 0 0 0 2px var(--violet-glow);
}

.gutter {
  width: 44px;
  padding: 12px 8px 12px 4px;
  text-align: right;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  border-right: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  user-select: none;
  overflow: hidden;
}

.editor-textarea {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--text);
  padding: 12px 14px;
  font-size: 13px;
  font-family: var(--font-mono);
  line-height: 1.6;
  resize: none;
  white-space: pre;
  overflow: auto;
}

.editor-textarea::placeholder {
  color: var(--text-dim);
}

/* Token Info Chip */
.token-chip {
  display: none;
  align-items: center;
  gap: 12px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-top: 10px;
}

.token-chip.show {
  display: flex;
}

.token-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--panel-elevated);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--violet);
  border: 1px solid var(--border);
}

.token-info {
  flex: 1;
  min-width: 0;
}

.token-title {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.token-meta {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Alert & Warn Boxes */
.alert-box {
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.35);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 12.5px;
  color: #fda4af;
  margin-top: 12px;
  display: none;
  align-items: center;
  gap: 8px;
}

.alert-box.show {
  display: flex;
}

.alert-box.info {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.3);
  color: #a5f3fc;
}

.alert-box.amber {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fde68a;
}

/* Tooltip (?) */
.tooltip-icon {
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 10px;
  font-family: var(--font-mono);
  cursor: help;
  margin-left: 6px;
  position: relative;
}

.tooltip-icon:hover {
  border-color: var(--text);
  color: var(--text);
}

.tooltip-icon:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: 160%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--panel-solid);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-family: var(--font-sans);
  font-weight: 400;
  width: 220px;
  z-index: 50;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
  line-height: 1.4;
  white-space: normal;
}

/* Stats Counter Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.stat-card {
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  word-break: break-all;
}

.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  user-select: none;
}

.btn-primary {
  background: var(--grad-primary);
  color: #06070d;
  box-shadow: 0 4px 20px var(--violet-glow);
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.15);
  box-shadow: 0 6px 25px var(--violet-glow);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-ghost {
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--text);
  text-transform: none;
  font-weight: 600;
}

.btn-ghost:hover:not(:disabled) {
  background: var(--panel-elevated);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-warn {
  background: var(--amber);
  color: #1e1300;
}

.btn-warn:hover:not(:disabled) {
  filter: brightness(1.1);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 12.5px;
}

.btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-row > * {
  flex: 1;
}

/* Switch Toggle Row */
.switch-row {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.switch-row input {
  display: none;
}

.switch-slider {
  width: 42px;
  height: 24px;
  border-radius: 12px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  position: relative;
  transition: all 0.2s;
  flex-shrink: 0;
}

.switch-slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-dim);
  transition: all 0.2s;
}

.switch-row input:checked + .switch-slider {
  background: rgba(139, 92, 246, 0.3);
  border-color: var(--violet);
}

.switch-row input:checked + .switch-slider::after {
  left: 21px;
  background: var(--violet);
  box-shadow: 0 0 10px var(--violet);
}

/* --------------------------------------------------------------------------
   RIGHT COLUMN: REVIEW & PROGRESS
   -------------------------------------------------------------------------- */
.summary-table {
  font-size: 13.5px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  gap: 10px;
}

.summary-row:last-child {
  border-bottom: 0;
}

.summary-key {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.summary-val {
  color: var(--text);
  font-family: var(--font-mono);
  text-align: right;
  word-break: break-all;
}

.summary-val.free {
  color: var(--emerald);
  font-weight: 700;
}

/* Progress Section */
.progress-box {
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 14px;
  position: relative;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-bottom: 10px;
}

.progress-bar-bg {
  height: 7px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--grad-primary);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.progress-box.running .progress-bar-fill {
  background: repeating-linear-gradient(90deg, #8b5cf6, #06b6d4, #8b5cf6);
  background-size: 200% 100%;
  animation: shimmer 1.5s linear infinite;
  box-shadow: 0 0 12px var(--cyan-glow);
}

@keyframes shimmer {
  0% { background-position: 0 0; }
  100% { background-position: 200% 0; }
}

/* Batch Chips Matrix */
.batch-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 12px;
  max-height: 90px;
  overflow-y: auto;
}

.chip {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  display: inline-block;
  transition: all 0.2s;
}

.chip.queued { background: rgba(255, 255, 255, 0.15); }
.chip.sending { background: var(--cyan); animation: pulse 0.8s infinite; }
.chip.success { background: var(--emerald); }
.chip.failed { background: var(--rose); }
.chip.skipped { background: var(--amber); }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Technical Console Terminal */
.terminal-box {
  background: #05060a;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-top: 14px;
  overflow: hidden;
}

.terminal-header {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.terminal-logs {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 12px;
  height: 160px;
  overflow-y: auto;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
  color: var(--text-muted);
}

.log-ok { color: var(--emerald); }
.log-err { color: var(--rose); }
.log-warn { color: var(--amber); }
.log-info { color: var(--cyan); }

/* --------------------------------------------------------------------------
   MODAL WINDOWS
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 10, 0.82);
  backdrop-filter: blur(8px);
  display: none;
  place-items: center;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay.show {
  display: grid;
  animation: fadeIn 0.18s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-box {
  background: var(--panel-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 460px;
  width: 100%;
  padding: 26px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.wallet-provider-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wallet-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.14s;
  text-align: left;
}

.wallet-item:hover {
  border-color: var(--violet);
  background: var(--panel-elevated);
  transform: translateX(2px);
}

.wallet-item img, .wallet-item .w-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
}

.wallet-item .w-icon {
  background: var(--violet);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  color: #000;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}
