/* ============================================================
   IMMORTAL DOMAINS — styles.css
   Dark infra-grade UI  |  Accent: #00ff88 neon green
   ============================================================ */

/* ── Variables ──────────────────────────────────────────── */
:root {
  --bg:          #09090f;
  --surface:     #111118;
  --surface-2:   #18181f;
  --surface-3:   #1f1f29;
  --border:      #27273a;
  --border-2:    #32324a;

  --text:        #e8e8f2;
  --text-muted:  #7a7a9a;
  --text-faint:  #4a4a6a;

  --accent:      #00ff88;
  --accent-dim:  rgba(0, 255, 136, 0.10);
  --accent-glow: rgba(0, 255, 136, 0.22);
  --accent-dark: #00cc6e;

  --blue:        #3b82f6;
  --blue-dim:    rgba(59, 130, 246, 0.13);

  --gray-dim:    rgba(120, 120, 160, 0.12);

  --warn:        #fbbf24;
  --warn-dim:    rgba(251, 191, 36, 0.10);

  --font:        'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:        'Courier New', 'Consolas', monospace;

  --header-h:    58px;
  --radius:      8px;
  --radius-sm:   5px;
  --radius-pill: 20px;

  --shadow-modal: 0 24px 64px rgba(0,0,0,0.6), 0 4px 16px rgba(0,0,0,0.4);
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.3);
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 15px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

button { font-family: var(--font); }

/* ── Utility ────────────────────────────────────────────── */
.hidden { display: none !important; }
.mono { font-family: var(--mono); font-size: 0.85em; letter-spacing: 0.02em; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Layout helpers ─────────────────────────────────────── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }


/* ============================================================
   GATE OVERLAY  (wallet-connect modal, forced)
   ============================================================ */
#gate-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 5, 12, 0.88);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  align-items: center;
  justify-content: center;
  padding: 16px;
}
#gate-overlay.active { display: flex; }

#connect-modal {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 14px;
  padding: 40px 36px 32px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-modal);
}

.connect-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

#connect-modal h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

.modal-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.wallet-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.btn-wallet {
  display: flex;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left-width: 3px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 13px 18px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-align: left;
}
.btn-wallet:hover { background: var(--surface-3); }
.btn-wallet[data-wallet="Phantom"]      { border-left-color: #ab9ff2; }
.btn-wallet[data-wallet="Phantom"]:hover { border-left-color: #c4baff; }
.btn-wallet[data-wallet="Solflare"]      { border-left-color: #fc7d0b; }
.btn-wallet[data-wallet="Solflare"]:hover { border-left-color: #ff9a3c; }
.btn-wallet[data-wallet="WalletConnect"]      { border-left-color: #3b99fc; }
.btn-wallet[data-wallet="WalletConnect"]:hover { border-left-color: #6db5ff; }

.modal-note {
  font-size: 0.78rem;
  color: var(--text-faint);
}


/* ============================================================
   PAGE CONTENT  (blurred when disconnected)
   ============================================================ */
#page-content {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: filter 0.25s ease;
}
#page-content.blurred {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
}


/* ============================================================
   HEADER (sticky)
   ============================================================ */
#main-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(17, 17, 24, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 16px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  flex-shrink: 0;
  text-decoration: none;
  transition: opacity 0.15s;
}
.logo:hover { opacity: 0.8; text-decoration: none; }

.logo-mark {
  width: 30px;
  height: 30px;
  background: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #04100a;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  flex-shrink: 0;
  box-shadow: 0 0 10px var(--accent-glow);
}

.logo-text { color: var(--text); }

/* Header center — RC status */
.header-center {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.83rem;
  color: var(--text-muted);
  flex: 1;
  justify-content: center;
  white-space: nowrap;
}
.header-center strong { color: var(--text); font-weight: 600; }

/* Header right — wallet + logout */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.wallet-address {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--mono);
  letter-spacing: 0.02em;
}


/* ============================================================
   STATUS DOTS
   ============================================================ */
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot--green {
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
}
.dot--gray   { background: var(--text-faint); }
.dot--orange { background: #f59e0b; box-shadow: 0 0 6px rgba(245,158,11,.4); }


/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.14s, border-color 0.14s, color 0.14s, opacity 0.14s;
}

/* Primary — neon green CTA */
.btn--primary {
  background: var(--accent);
  color: #03100a;
  padding: 9px 18px;
  font-size: 0.85rem;
  font-weight: 600;
}
.btn--primary:hover:not(:disabled) { background: var(--accent-dark); }
.btn--primary:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

/* Outline */
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-2);
  padding: 9px 18px;
  font-size: 0.85rem;
}
.btn--outline:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* Ghost */
.btn--ghost {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 9px 18px;
  font-size: 0.85rem;
}
.btn--ghost:hover { color: var(--text); }

/* Sizes */
.btn--sm  { padding: 6px 13px; font-size: 0.78rem; }
.btn--xs  { padding: 4px 9px;  font-size: 0.72rem; }

/* Pending (disabled domain action) */
.btn--pending {
  background: var(--surface-3);
  color: var(--text-faint);
  border: 1px solid var(--border);
  padding: 6px 13px;
  font-size: 0.78rem;
  cursor: not-allowed;
  opacity: 0.65;
}


/* ============================================================
   STATUS BADGES  (pill chips)
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.badge--green {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(0, 255, 136, 0.28);
}
.badge--blue {
  background: var(--blue-dim);
  color: var(--blue);
  border: 1px solid rgba(59, 130, 246, 0.28);
}
.badge--gray {
  background: var(--gray-dim);
  color: var(--text-muted);
  border: 1px solid rgba(120, 120, 160, 0.22);
}


/* ============================================================
   MAIN CONTENT
   ============================================================ */
main {
  flex: 1;
  padding: 44px 0 72px;
}

.section-header {
  margin-bottom: 24px;
}
.section-header h1 {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 5px;
}
.section-sub { color: var(--text-muted); font-size: 0.85rem; }


/* ============================================================
   DOMAINS TABLE  (desktop)
   ============================================================ */
.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.domains-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.domains-table thead { background: var(--surface); }

.domains-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.domains-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text);
}

.domains-table tbody tr:last-child td { border-bottom: none; }

/* Zebra rows */
.domains-table tbody tr:nth-child(odd)  { background: var(--surface); }
.domains-table tbody tr:nth-child(even) { background: var(--surface-2); }
.domains-table tbody tr:hover           { background: var(--surface-3); }

.domain-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
}

/* Mobile cards hidden by default */
.domains-cards { display: none; }


/* ============================================================
   DOMAINS CARDS  (mobile ≤ 680px)
   ============================================================ */
@media (max-width: 680px) {
  .table-wrap { display: none; }

  .domains-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .domain-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-sm);
  }

  .domain-card__name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
  }

  .domain-card__meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.8rem;
    margin-bottom: 16px;
  }

  .meta-label {
    display: inline-block;
    font-weight: 600;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-faint);
    margin-right: 6px;
    min-width: 56px;
  }

  .domain-card__action .btn,
  .domain-card__action .btn--pending {
    width: 100%;
    padding: 11px;
    font-size: 0.85rem;
  }
}


/* ============================================================
   DOMAINS TOOLBAR  (+ Add Domain button row above table)
   ============================================================ */
.domains-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 72px 24px;
  text-align: center;
}
.empty-icon {
  color: var(--text-faint);
  line-height: 1;
}
.empty-state__heading {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}
.empty-state__sub {
  font-size: 0.875rem;
  color: var(--text-muted);
}
/* legacy — kept for safety */
.empty-state__msg {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.empty-state__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}

/* ── Coming Soon button ─────────────────────────────────── */
.btn--coming-soon {
  position: relative;
  opacity: 0.5;
  cursor: not-allowed;
}
.coming-soon-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: rgba(255,255,255,.1);
  border-radius: 20px;
  vertical-align: middle;
  color: var(--text-muted);
}


/* ============================================================
   ADD DOMAINS ACCORDION
   ============================================================ */
.accordion {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 16px;
  overflow: hidden;
}

.accordion-inner {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.accordion-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--accent-glow);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-title { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.step-desc  { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; }

.copy-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  width: fit-content;
}
.copy-code {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.verify-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}


/* ============================================================
   ACTION MODAL  (Make Immortal / Withdraw Deposit)
   ============================================================ */
#modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(5, 5, 12, 0.80);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

#action-modal {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  max-width: 490px;
  width: 100%;
  box-shadow: var(--shadow-modal);
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  line-height: 1;
  transition: color 0.12s, background 0.12s;
}
.modal-close:hover {
  color: var(--text);
  background: var(--surface-3);
}

.modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-fields {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.modal-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  gap: 12px;
}
.modal-field + .modal-field { border-top: 1px solid var(--border); }

.modal-field__label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  flex-shrink: 0;
}
.modal-field__value {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  text-align: right;
}

.modal-info {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.modal-info--warn {
  color: var(--warn);
  background: var(--warn-dim);
  border: 1px solid rgba(251, 191, 36, 0.22);
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1.55;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.14s;
}
.checkbox-label:hover { border-color: var(--border-2); }

.checkbox-label input[type="checkbox"] {
  margin-top: 2px;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.checkbox-label a { color: var(--accent); }

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}


/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 18px 0 16px;
  flex-shrink: 0;
}

/* ── Single footer row: logos + divider + nav ───────────── */
.footer-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.footer-powered__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Logo chips — real brand images, icon only ──────────── */
.footer-logos {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
img.footer-chip {
  display: block;
  height: 26px;
  width: auto;
  max-width: 70px;
  object-fit: contain;
  border-radius: 4px;
  opacity: .45;
  cursor: default;
  user-select: none;
  transition: opacity .15s;
  filter: grayscale(20%);
}
img.footer-chip:hover {
  opacity: .85;
  filter: grayscale(0%);
}

/* ── Vertical separator between logos and links ─────────── */
.footer-vsep {
  display: inline-block;
  width: 1px;
  height: 20px;
  background: var(--border);
  flex-shrink: 0;
  align-self: center;
}

/* ── Nav links ──────────────────────────────────────────── */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  margin-bottom: 0;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: color 0.13s;
  white-space: nowrap;
}
.footer-links a:hover { color: var(--accent); text-decoration: none; }

.footer-legal {
  font-size: 0.72rem;
  color: var(--text-faint);
  line-height: 1.65;
  max-width: 640px;
  margin: 0;
}


/* ============================================================
   STATIC PAGES  (status, support, terms, etc.)
   ============================================================ */
.static-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.static-page #main-header { position: sticky; top: 0; z-index: 50; }
.static-page main { flex: 1; padding: 56px 0 80px; }

.static-hero {
  max-width: 680px;
}
.static-hero .tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 14px;
}
.static-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.2;
}
.static-hero p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 12px;
}
.static-hero p:last-child { margin-bottom: 0; }

.version-tag {
  display: inline-block;
  margin-top: 28px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 32px 0;
  max-width: 680px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 24px;
  width: fit-content;
}
.status-indicator span { font-size: 0.9rem; font-weight: 500; }


/* ============================================================
   RESPONSIVE  (global)
   ============================================================ */
@media (max-width: 680px) {
  .header-center { display: none; }
  .header-inner  { gap: 8px; }
  main { padding: 32px 0 56px; }
  .section-header h1 { font-size: 1.35rem; }
  .static-hero h1 { font-size: 1.5rem; }
}

@media (max-width: 420px) {
  .logo-text { display: none; }
  .wallet-address { display: none; }
  #connect-modal { padding: 28px 20px 24px; }
  #connect-modal h2 { font-size: 1.3rem; }
  .container { padding: 0 16px; }
}

/* ============================================================
   ADD DOMAIN MODAL
   ============================================================ */

/* Wide variant for the 3-step onboarding modal */
#action-modal.modal--wide { max-width: 600px; }

/* Scrollable body for tall content */
.modal-body--steps {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 68vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

/* ── Step rows ─────────────────────────────────────────── */
.modal-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 4px 0;
}

.modal-step__num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 255, 136, 0.25);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.modal-step__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 4px;
}

.modal-step__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.modal-step__desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Divider between steps */
.modal-step-divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

/* ── Verify code box ────────────────────────────────────── */
.verify-code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  width: 100%;
  max-width: 280px;
}

.verify-code {
  font-family: var(--mono);
  font-size: 0.92rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  font-weight: 600;
}

.modal-copy-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

/* ── Verify action row ──────────────────────────────────── */
.verify-action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Verified inline status */
.verified-status {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ── Step 3 checklist ───────────────────────────────────── */
.step-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.step-checklist li {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.step-checklist li::before {
  content: '\25CB'; /* ○ open circle */
  position: absolute;
  left: 0;
  color: var(--text-faint);
  font-size: 0.7rem;
  top: 2px;
}

/* Info note below checklist */
.step-info-note {
  font-size: 0.78rem;
  color: var(--text-faint);
  border-left: 2px solid var(--border-2);
  padding-left: 10px;
  line-height: 1.65;
}

/* ── Setup error banner (sticky top of modal, always visible) ── */
.form-error-banner {
  background: rgba(239, 68, 68, .12);
  border-left: 3px solid #ef4444;
  color: #fca5a5;
  font-size: 0.85rem;
  padding: 10px 20px;
  line-height: 1.5;
}
.form-error-banner.hidden { display: none; }

/* ── Setup success screen ───────────────────────────────── */
.setup-success-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 32px 24px;
  gap: 0;
}
.setup-success-icon { margin-bottom: 20px; }
.setup-success-heading {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 10px;
}
.setup-success-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 28px;
}
.setup-success-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}
.setup-success-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 180px;
  justify-content: center;
}

/* ── Modal footer trust copy ────────────────────────────── */
.modal-footer-trust {
  flex: 1;
  min-width: 180px;
  font-size: 0.74rem;
  color: var(--text-faint);
  line-height: 1.6;
}

/* ── Mobile adjustments ─────────────────────────────────── */
@media (max-width: 500px) {
  .modal-body--steps { max-height: 60vh; padding: 16px; }
  .verify-code-box   { max-width: 100%; }
  .modal-footer-trust { font-size: 0.7rem; }
  #action-modal.modal--wide { border-radius: 10px; }
}

/* ============================================================
   REAL WALLET CONNECTION  — badges & notes in connect modal
   ============================================================ */

/* "Detected" / "Not installed" / "Demo mode" pill on wallet buttons */
.wallet-badge {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}
.wallet-badge--on {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(0, 255, 136, 0.28);
}
.wallet-badge--off {
  background: var(--gray-dim);
  color: var(--text-faint);
  border: 1px solid rgba(120, 120, 160, 0.18);
}

/* Note shown when a wallet is not detected (install link + demo fallback) */
.wallet-connect-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.65;
  text-align: left;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  margin-bottom: 10px;
}
.wallet-connect-note a       { color: var(--accent); }
.wallet-connect-note strong  { color: var(--text); font-weight: 600; }

/* Inline text-button that looks like a hyperlink (demo-mode fallback) */
.btn-text {
  display: inline;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: inherit;
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
  line-height: inherit;
}
.btn-text:hover { opacity: 0.8; }

/* ============================================================
   LOADING STATE  — spinner while RC API is in-flight
   ============================================================ */
.domains-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.spinner-ring {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Inline API error inside transfer modal footer */
.transfer-api-error {
  font-size: 0.78rem;
  color: #f87171;
  margin: 0 0 10px;
  line-height: 1.5;
}

/* ============================================================
   DOMAIN TRANSFER FORM  — multi-step modal
   ============================================================ */

/* ── Step indicator (pip row) ───────────────────────────── */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 18px 24px 4px;
}

.step-pip {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface-2);
  color: var(--text-faint);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.step-pip--active {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
}
.step-pip--done {
  border-color: var(--accent);
  background: var(--accent);
  color: #000;
}

.step-pip-line {
  flex: 1;
  max-width: 56px;
  height: 2px;
  background: var(--border);
  transition: background 0.2s;
}

/* ── Modal header variant for the multi-step form ────────── */
.modal-header--multistep {
  border-bottom: none;
  padding-bottom: 0;
}

/* ── Scrollable form body ─────────────────────────────────── */
.modal-body--form {
  padding: 16px 24px 8px;
  overflow-y: auto;
  max-height: 62vh;
}

/* ── Step panels (one visible at a time) ─────────────────── */
.step-panel { animation: fadeIn 0.18s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; } }

.form-step-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin: 0 0 16px;
}

/* ── Form groups & layout ─────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }

.form-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-required {
  color: #f87171;
  margin-left: 2px;
}

.form-input {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 11px;
  font-size: 0.85rem;
  color: var(--text);
  font-family: var(--font);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
  box-sizing: border-box;
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-input--mono {
  font-family: 'Fira Mono', 'Courier New', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.form-input--error {
  border-color: #f87171 !important;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.18);
}
.form-input--prefilled {
  background: var(--surface-3) !important;
  color: var(--text-muted) !important;
  cursor: default;
  opacity: 0.8;
}

/* "Use my account info" checkbox in transfer step 2 */
.use-acct-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 9px 12px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}
.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
  cursor: pointer;
}

.form-error {
  font-size: 0.74rem;
  color: #f87171;
  margin: 0;
  line-height: 1.4;
}
.form-hint {
  font-size: 0.74rem;
  color: var(--text-faint);
  margin: 0;
  line-height: 1.5;
}

/* ── Review box (step 3) ──────────────────────────────────── */
.review-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.review-row {
  display: flex;
  gap: 10px;
  font-size: 0.82rem;
  line-height: 1.5;
}
.review-label {
  color: var(--text-faint);
  flex-shrink: 0;
  min-width: 72px;
  font-weight: 500;
}
.review-value {
  color: var(--text);
  word-break: break-all;
}

/* ── Footer nav buttons row ───────────────────────────────── */
.modal-footer-btns {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ── "Simulate Transfer Complete" button (dashboard table) ── */
.btn--simulate {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  white-space: nowrap;
}
.btn--simulate:hover { background: rgba(0, 255, 136, 0.18); opacity: 0.9; }

/* ── Transfer success / confirmation state ────────────────── */
.transfer-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 8px 8px;
  gap: 10px;
}
.success-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 2px solid var(--accent);
  color: var(--accent);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.success-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.success-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  max-width: 340px;
}

/* ── Demo-only simulate box inside success state ─────────── */
.demo-sim-box {
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  width: 100%;
  max-width: 320px;
}
.demo-sim-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin: 0;
}

/* ── Mobile adjustments for transfer form ─────────────────── */
@media (max-width: 500px) {
  .modal-body--form { padding: 12px 16px 6px; max-height: 58vh; }
  .step-indicator   { padding: 14px 16px 4px; }
  .modal-footer-btns { flex-direction: row; }
}

/* ============================================================
   VAULT — styles merged from vault.html <style> block
   ============================================================ */

/* ── Tab navigation ──────────────────────────────────────── */
.header-tab {
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: .85rem;
  color: #4a5568;
  font-family: var(--font);
  transition: border-color .15s, color .15s, background .15s;
  white-space: nowrap;
}
.header-tab:hover { color: #8892a4; }
.header-tab.active {
  color: #e2e8f0;
  background: rgba(99,102,241,.1);
  border-color: rgba(99,102,241,.2);
}

/* ── View panels (show/hide) ─────────────────────────────── */
.view-panel { display: block; }
.view-panel.hidden { display: none; }

/* ── Vault hero ──────────────────────────────────────────── */
.vault-hero {
  background: linear-gradient(135deg, #0a0a1a 0%, #0d1117 60%, #0a1628 100%);
  border: 1px solid rgba(99,102,241,.25);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.vault-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(99,102,241,.12) 0%, transparent 70%);
  pointer-events: none;
}
.vault-usd {
  font-size: 3rem;
  font-weight: 700;
  color: #f0f6ff;
  letter-spacing: -1px;
  margin: 8px 0 4px;
}
.vault-sol { font-size: 1rem; color: #8892a4; }
.vault-apy-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16,185,129,.12);
  border: 1px solid rgba(16,185,129,.25);
  color: #10b981;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
  margin-top: 10px;
}
.vault-meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.vault-meta-item { text-align: center; }
.vault-meta-label {
  font-size: .7rem;
  color: #4a5568;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.vault-meta-value { font-size: .9rem; color: #8892a4; margin-top: 2px; }

/* ── Action cards ──────────────────────────────────────────── */
.vault-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 640px) { .vault-actions { grid-template-columns: 1fr; } }
.vault-card {
  background: #0d1117;
  border: 1px solid #1e2737;
  border-radius: 12px;
  padding: 20px;
}
.vault-card h3 {
  font-size: .9rem;
  font-weight: 600;
  color: #e2e8f0;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.vault-input-row { display: flex; gap: 8px; }
.vault-input {
  flex: 1;
  background: #060a10;
  border: 1px solid #1e2737;
  border-radius: 8px;
  padding: 10px 14px;
  color: #e2e8f0;
  font-family: var(--font);
  font-size: .95rem;
  outline: none;
  transition: border-color .2s;
}
.vault-input:focus { border-color: #6366f1; }
.vault-input::placeholder { color: #4a5568; }
.vault-input-hint { font-size: .75rem; color: #4a5568; margin-top: 6px; }
.btn-vault {
  background: #6366f1;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, opacity .2s;
  white-space: nowrap;
}
.btn-vault:hover { background: #5a5cf0; }
.btn-vault:disabled { opacity: .45; cursor: not-allowed; }
.btn-vault-secondary {
  background: transparent;
  border: 1px solid #4b5563;
  color: #8892a4;
}
.btn-vault-secondary:hover { border-color: #6b7280; color: #e2e8f0; background: transparent; }

/* ── Strategy info ─────────────────────────────────────────── */
.vault-strategy {
  background: #0d1117;
  border: 1px solid #1e2737;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.vault-strategy-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(99,102,241,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.vault-strategy-text h4 { font-size: .9rem; font-weight: 600; color: #e2e8f0; margin: 0 0 4px; }
.vault-strategy-text p { font-size: .78rem; color: #4a5568; margin: 0; line-height: 1.4; }
.badge-safe {
  font-size: .68rem;
  background: rgba(16,185,129,.1);
  border: 1px solid rgba(16,185,129,.2);
  color: #10b981;
  padding: 2px 8px; border-radius: 4px; margin-left: 6px;
}

/* ── Toast ───────────────────────────────────────────────── */
.vault-toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: #1a2236;
  border: 1px solid #2d3748;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: .85rem; color: #e2e8f0;
  max-width: 340px;
  z-index: 9999;
  display: none;
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
  animation: slideUp .25s ease;
}
.vault-toast.visible { display: flex; align-items: center; gap: 10px; }
.vault-toast.error   { border-color: rgba(239,68,68,.3); color: #fca5a5; }
.vault-toast.success { border-color: rgba(16,185,129,.3); color: #6ee7b7; }
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
