/* BitHouse Design System — gold house, dark vault */

:root {
  --bg-0: #08060a;
  --bg-1: #100c12;
  --bg-2: #1a1418;
  --panel: rgba(28, 20, 18, 0.58);
  --panel-strong: rgba(22, 16, 14, 0.86);
  --border: rgba(232, 184, 74, 0.16);
  --border-strong: rgba(232, 184, 74, 0.42);
  --text: #f6efe4;
  --muted: #b8a894;
  --accent: #e8b84a;
  --accent-2: #f5d48a;
  --accent-3: #c4783a;
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;
  --glow: 0 0 40px rgba(232, 184, 74, 0.14);
  --radius: 16px;
  --font-display: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --font-body: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(56, 189, 248, 0.18), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(129, 140, 248, 0.16), transparent 50%),
    radial-gradient(800px 500px at 50% 100%, rgba(34, 211, 238, 0.08), transparent 55%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1) 40%, #070b16);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  z-index: 0;
}

a { color: inherit; text-decoration: none; }

.app-shell { position: relative; z-index: 1; min-height: 100vh; display: flex; }

.sidebar {
  width: 280px;
  padding: 1.5rem 1.1rem;
  border-right: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(8,12,24,0.92), rgba(8,12,24,0.7));
  backdrop-filter: blur(22px);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: #f8fafc;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
}

.brand-solid { color: #f8fafc; }

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  font-size: .95rem;
  font-weight: 700;
  color: #2b1600;
  background: linear-gradient(145deg, #f5d48a, #e8b84a 55%, #c4783a);
  box-shadow: 0 8px 24px rgba(232, 184, 74, 0.28);
  overflow: hidden;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }

.brand-dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.55);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .8rem 1rem;
  border-radius: 14px;
  color: var(--muted);
  transition: .25s ease;
  margin-bottom: .25rem;
  border: 1px solid transparent;
}

.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: linear-gradient(90deg, rgba(56,189,248,.12), rgba(129,140,248,.08));
  border-color: var(--border);
  box-shadow: inset 0 0 0 1px rgba(56,189,248,.08);
}

.main {
  flex: 1;
  min-width: 0;
  padding: 1.25rem 1.5rem 2.5rem;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.glass {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  box-shadow: var(--glow), inset 0 1px 0 rgba(255,255,255,.04);
}

.glass-strong {
  background: var(--panel-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(24px);
}

.card {
  padding: 1.25rem 1.35rem;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(56,189,248,.28);
  box-shadow: 0 12px 40px rgba(0,0,0,.28), var(--glow);
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.1vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  color: var(--muted);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .45rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  border: 0;
  border-radius: 14px;
  padding: .75rem 1.15rem;
  font-weight: 650;
  font-family: var(--font-body);
  cursor: pointer;
  transition: .2s ease;
}

.btn-primary {
  color: #2b1600;
  background: linear-gradient(135deg, #f5d48a, #e8b84a 60%, #c4783a);
  box-shadow: 0 8px 24px rgba(232, 184, 74, 0.28);
}

.btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); }

.btn-lg { padding: .95rem 1.45rem; font-size: 1rem; border-radius: 14px; }

.btn-sm { padding: .45rem .85rem; font-size: .82rem; border-radius: 10px; }

.btn-ghost {
  color: var(--text);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
}

.btn-ghost:hover { border-color: var(--border-strong); background: rgba(56,189,248,.08); }

.btn-danger {
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #f97316);
}

.btn-success {
  color: #052e1b;
  background: linear-gradient(135deg, #34d399, #6ee7b7);
}

.input, select, textarea {
  width: 100%;
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 14px;
  padding: .85rem 1rem;
  outline: none;
  transition: .2s ease;
  font-family: var(--font-body);
}

.input:focus, select:focus, textarea:focus {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 3px rgba(56,189,248,.15);
}

label { display: block; margin-bottom: .4rem; color: var(--muted); font-size: .9rem; }

.form-group { margin-bottom: 1rem; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table.data {
  width: 100%;
  border-collapse: collapse;
}

table.data th, table.data td {
  padding: .85rem .75rem;
  border-bottom: 1px solid rgba(148,163,184,.1);
  text-align: left;
  white-space: nowrap;
}

table.data th {
  color: var(--muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 650;
}

table.data tr:hover td { background: rgba(56,189,248,.04); }

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.break-all { word-break: break-all; white-space: normal !important; }
.break-words { overflow-wrap: anywhere; }
.shrink-0 { flex-shrink: 0; }
.min-w-0 { min-width: 0; }
/* My account summary list */
.acct-list { margin: 0; }
.acct-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: .55rem 0;
  border-bottom: 1px solid rgba(148,163,184,.08);
}
.acct-row:last-child { border-bottom: 0; }
.acct-row dt { color: var(--muted); font-size: .85rem; margin: 0; }
.acct-row dd { margin: 0; text-align: right; font-weight: 600; min-width: 0; }

/* Notification preferences */
.np-list { display: flex; flex-direction: column; }
.np-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: .85rem 0;
  border-bottom: 1px solid rgba(148,163,184,.08);
}
.np-row:last-child { border-bottom: 0; }
.np-toggles { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.np-toggle {
  display: inline-flex; align-items: center; gap: .45rem; margin: 0;
  color: var(--text); font-size: .88rem; cursor: pointer;
}
.np-toggle input { width: auto; margin: 0; }

/* Staff impersonation banner — must stay obvious so a support session is never
   mistaken for the client's own view. */
.imp-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .75rem;
  padding: .6rem 1rem;
  font-size: .88rem;
  font-weight: 600;
  color: #2b1600;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
}
.imp-banner .btn { color: #2b1600; border-color: rgba(43,22,0,.25); background: rgba(255,255,255,.35); }
.app-shell.has-imp-banner { padding-top: 44px; }

.sidebar-backdrop {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  z-index: 30;
  pointer-events: none;
}
.sidebar-backdrop.open {
  display: block;
  pointer-events: auto;
}
body.nav-open { overflow: hidden; }
body.nav-open .mobile-toggle { position: relative; z-index: 45; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: .25rem .6rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.badge-success { color: #6ee7b7; background: rgba(52,211,153,.12); border-color: rgba(52,211,153,.25); }
.badge-warning { color: #fcd34d; background: rgba(251,191,36,.12); border-color: rgba(251,191,36,.25); }
.badge-danger { color: #fca5a5; background: rgba(248,113,113,.12); border-color: rgba(248,113,113,.25); }
.badge-info { color: #7dd3fc; background: rgba(56,189,248,.12); border-color: rgba(56,189,248,.25); }
.badge-neutral { color: #cbd5e1; background: rgba(148,163,184,.12); border-color: rgba(148,163,184,.2); }

.flash-stack { position: fixed; top: 1rem; right: 1rem; z-index: 50; display: grid; gap: .6rem; max-width: 360px; }

.flash {
  padding: .9rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  animation: slideIn .35s ease;
}

.flash-success { background: rgba(6,78,59,.75); border-color: rgba(52,211,153,.35); }
.flash-error { background: rgba(127,29,29,.75); border-color: rgba(248,113,113,.35); }
.flash-warning { background: rgba(120,53,15,.75); border-color: rgba(251,191,36,.35); }
.flash-info { background: rgba(12,74,110,.75); border-color: rgba(56,189,248,.35); }

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

.grid-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }

.section-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 720;
  letter-spacing: -0.02em;
  margin: 0 0 .25rem;
}

.section-sub { color: var(--muted); margin: 0 0 1rem; font-size: .92rem; }

.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.1), rgba(255,255,255,.04));
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 12px;
}

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

.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  position: relative;
  z-index: 1;
}

.auth-card {
  width: min(460px, 100%);
  padding: 2rem;
}

.auth-card h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: .4rem 0 1.2rem;
  letter-spacing: -0.03em;
}

/* Landing — one calm composition */
/* ============ LANDING PAGE ============ */
.lp {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(56,189,248,.16), transparent 60%),
    radial-gradient(900px 520px at 8% 12%, rgba(99,102,241,.12), transparent 55%),
    linear-gradient(180deg, #05070e 0%, #070b16 55%, #05070e 100%);
}

.lp-aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent 78%);
}

.lp-orb {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: .55;
}
.lp-orb-a {
  width: min(46vw, 560px); height: min(46vw, 560px);
  right: -6%; top: -4%;
  background: radial-gradient(circle, rgba(56,189,248,.4), transparent 68%);
  animation: lpDrift 16s ease-in-out infinite;
}
.lp-orb-b {
  width: min(38vw, 460px); height: min(38vw, 460px);
  left: -8%; top: 34%;
  background: radial-gradient(circle, rgba(129,140,248,.34), transparent 68%);
  animation: lpDrift 20s ease-in-out infinite reverse;
}

.lp > *:not(.lp-aurora):not(.lp-orb) { position: relative; z-index: 2; }

/* NAV */
.lp-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem clamp(1.25rem, 5vw, 4rem);
  max-width: 1240px;
  margin: 0 auto;
}
.lp-nav-links { display: flex; gap: 1.8rem; }
.lp-nav-links a {
  color: #94a3b8;
  font-size: .92rem;
  font-weight: 500;
  transition: color .2s ease;
}
.lp-nav-links a:hover { color: #e2e8f0; }
.lp-nav-actions { display: flex; gap: .6rem; }

/* HERO */
.lp-hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5.5rem) clamp(1.25rem, 5vw, 4rem) clamp(2rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.lp-hero-copy { animation: lpRise .8s ease both; }

.lp-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .85rem;
  border-radius: 999px;
  border: 1px solid rgba(56,189,248,.25);
  background: rgba(56,189,248,.08);
  color: #7dd3fc;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.lp-pill-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,.7);
  animation: lpPulse 2s infinite;
}

.lp-title {
  margin: 1.3rem 0 0;
  font-family: var(--font-display);
  font-weight: 720;
  font-size: clamp(2.7rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #f8fafc;
}
.lp-grad {
  background: linear-gradient(100deg, #f5d48a, #e8b84a 55%, #c4783a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lp-lead {
  margin: 1.35rem 0 0;
  max-width: 32rem;
  color: #94a3b8;
  font-size: 1.1rem;
  line-height: 1.6;
}
.lp-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.lp-trust {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 2.6rem;
  flex-wrap: wrap;
}
.lp-trust div { display: flex; flex-direction: column; }
.lp-trust strong {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.02em;
}
.lp-trust span { color: #64748b; font-size: .85rem; margin-top: .15rem; }

.lp-asset-badge {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  font-weight: 700; font-size: .95rem;
  color: #0b1120;
  background: linear-gradient(135deg, #7dd3fc, #a5b4fc);
  flex-shrink: 0;
}
.lp-asset-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: .6rem .1rem;
  border-top: 1px solid rgba(148,163,184,.08);
}
.lp-asset-name { display: flex; align-items: center; gap: .7rem; }

/* TRADING TERMINAL */
.lp-terminal {
  padding: 1.1rem;
  border-radius: 22px;
  animation: lpFloat 7s ease-in-out infinite;
  box-shadow: 0 30px 80px rgba(2,6,18,.55), var(--glow);
}
.lp-term-head { display: flex; justify-content: space-between; align-items: center; }
.lp-term-pair { display: flex; align-items: center; gap: .7rem; }
.lp-term-symbol { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: #f1f5f9; }
.lp-term-price { text-align: right; }
.lp-term-last { font-size: 1.15rem; font-weight: 700; color: #f8fafc; }
.lp-term-body { display: grid; grid-template-columns: 1.5fr 1fr; gap: .75rem; margin-top: .85rem; }
.lp-term-chart { min-height: 220px; }
.lp-term-book { display: flex; flex-direction: column; font-size: .72rem; }
.lp-book-label { color: #64748b; text-transform: uppercase; letter-spacing: .08em; font-size: .62rem; margin-bottom: .3rem; }
.lp-book-rows { display: flex; flex-direction: column; gap: 1px; }
.lp-book-row { position: relative; display: flex; justify-content: space-between; padding: .12rem .35rem; border-radius: 4px; }
.lp-book-bar { position: absolute; right: 0; top: 0; bottom: 0; border-radius: 4px; z-index: 0; }
.lp-book-row span:not(.lp-book-bar) { position: relative; z-index: 1; }
.lp-book-mid { text-align: center; padding: .3rem 0; font-size: .82rem; font-weight: 700; color: #e2e8f0; border-top: 1px solid rgba(148,163,184,.1); border-bottom: 1px solid rgba(148,163,184,.1); margin: .25rem 0; }
.lp-term-foot { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .85rem; }
.lp-term-buy, .lp-term-sell { border: 0; border-radius: 12px; padding: .7rem; font-weight: 700; font-family: var(--font-body); cursor: default; }
.lp-term-buy { color: #052e1b; background: linear-gradient(135deg, #34d399, #6ee7b7); }
.lp-term-sell { color: #fff; background: linear-gradient(135deg, #f87171, #fb7185); }

/* NETWORK STRIP */
.lp-networks {
  max-width: 1240px; margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 4rem) clamp(1rem, 3vw, 2rem);
  text-align: center;
}
.lp-networks-label { display: block; color: #64748b; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1.1rem; }
.lp-networks-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; }
.lp-network-chip {
  padding: .5rem 1.1rem; border-radius: 999px;
  border: 1px solid rgba(148,163,184,.16);
  background: rgba(255,255,255,.03);
  color: #cbd5e1; font-weight: 600; font-size: .88rem;
  transition: border-color .2s ease, color .2s ease;
}
.lp-network-chip:hover { border-color: rgba(56,189,248,.4); color: #f1f5f9; }

/* MARQUEE */
.lp-marquee {
  border-top: 1px solid rgba(148,163,184,.1);
  border-bottom: 1px solid rgba(148,163,184,.1);
  background: rgba(8,12,22,.5);
  overflow: hidden;
  padding: .85rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.lp-marquee-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: lpMarquee 38s linear infinite;
}
.lp-tick { display: inline-flex; gap: .6rem; align-items: baseline; font-size: .9rem; white-space: nowrap; }
.lp-tick b { color: #cbd5e1; font-weight: 600; }

/* SECTIONS */
.lp-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1.25rem, 5vw, 4rem);
}
.lp-section-head { max-width: 640px; margin: 0 auto clamp(2.2rem, 5vw, 3.5rem); text-align: center; }
.lp-eyebrow {
  color: #38bdf8; font-size: .8rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
}
.lp-section-head h2 {
  margin: .7rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f1f5f9;
}
.lp-section-head p { margin: .9rem 0 0; color: #94a3b8; font-size: 1.05rem; line-height: 1.55; }

/* FEATURES */
.lp-grid-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}
.lp-feature { padding: 1.6rem; border-radius: 18px; transition: transform .25s ease, border-color .25s ease; }
.lp-feature:hover { transform: translateY(-4px); border-color: rgba(56,189,248,.35); }
.lp-feature-icon {
  width: 48px; height: 48px; border-radius: 13px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(56,189,248,.18), rgba(129,140,248,.12));
  color: #7dd3fc;
  border: 1px solid rgba(56,189,248,.22);
}
.lp-feature-icon svg { width: 24px; height: 24px; }
.lp-feature h3 { margin: 1.1rem 0 .5rem; font-size: 1.15rem; font-weight: 650; color: #e2e8f0; }
.lp-feature p { color: #94a3b8; font-size: .95rem; line-height: 1.55; }

/* MARKETS */
.lp-markets { padding: .5rem 1rem 1rem; border-radius: 18px; overflow-x: auto; }
.lp-market-pair { display: flex; align-items: center; gap: .7rem; }

/* STEPS */
.lp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; }
.lp-step { padding: 1.8rem; border-radius: 18px; }
.lp-step-num {
  font-family: var(--font-display); font-size: 2.2rem; font-weight: 750;
  background: linear-gradient(120deg, #38bdf8, #818cf8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lp-step h3 { margin: .6rem 0 .5rem; font-size: 1.15rem; font-weight: 650; color: #e2e8f0; }
.lp-step p { color: #94a3b8; font-size: .95rem; line-height: 1.55; }

/* SECURITY */
.lp-security { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.lp-security-copy h2 {
  margin: .7rem 0 0; font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700;
  letter-spacing: -0.03em; color: #f1f5f9;
}
.lp-security-copy > p { margin: 1rem 0 0; color: #94a3b8; font-size: 1.05rem; line-height: 1.6; }
.lp-checklist { margin: 1.6rem 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .8rem; }
.lp-checklist li { position: relative; padding-left: 1.9rem; color: #cbd5e1; }
.lp-checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 1.3rem; height: 1.3rem; border-radius: 50%;
  display: grid; place-items: center; font-size: .75rem; font-weight: 700;
  color: #34d399; background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.3);
}
.lp-security-card {
  padding: 2rem; border-radius: 20px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}
.lp-metric strong {
  display: block; font-family: var(--font-display);
  font-size: 1.9rem; font-weight: 750; color: #f1f5f9; letter-spacing: -0.02em;
}
.lp-metric span { color: #64748b; font-size: .85rem; }

/* FAQ */
.lp-faq { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: .8rem; }
.lp-faq-item { border-radius: 14px; overflow: hidden; transition: border-color .2s ease; }
.lp-faq-item.is-open { border-color: rgba(56,189,248,.3); }
.lp-faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; padding: 1.15rem 1.35rem; background: transparent; border: 0;
  color: #e2e8f0; font-size: 1.02rem; font-weight: 550; text-align: left; cursor: pointer;
}
.lp-faq-plus { color: #38bdf8; font-size: 1.4rem; font-weight: 400; line-height: 1; }
.lp-faq-a { padding: 0 1.35rem 1.25rem; color: #94a3b8; line-height: 1.6; }

/* PRODUCT SHOWCASE */
.lp-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.lp-showcase-copy h2 {
  margin: .7rem 0 0; font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700;
  letter-spacing: -0.03em; color: #f1f5f9;
}
.lp-showcase-copy > p { margin: 1rem 0 0; color: #94a3b8; font-size: 1.05rem; line-height: 1.6; }
.lp-showcase-copy .btn { margin-top: 1.8rem; }
.lp-showcase-card { padding: 1.6rem; border-radius: 22px; box-shadow: 0 30px 80px rgba(2,6,18,.5); }
.lp-showcase-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.lp-showcase-balance {
  font-family: var(--font-display); font-size: 2.1rem; font-weight: 750;
  color: #f8fafc; letter-spacing: -0.02em; margin: .2rem 0;
}
.lp-donut { flex-shrink: 0; }
.lp-showcase-assets { margin-top: 1.2rem; display: flex; flex-direction: column; }

/* STATS BAND */
.lp-stats-band {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1rem; padding: clamp(1.8rem, 4vw, 2.8rem);
  border-radius: 22px; text-align: center;
  background:
    radial-gradient(700px 200px at 50% 0%, rgba(56,189,248,.12), transparent 70%),
    var(--panel);
}
.lp-stat strong {
  display: block; font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 750;
  color: #f8fafc; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.lp-stat span { color: #64748b; font-size: .88rem; margin-top: .3rem; display: block; }

/* TESTIMONIALS */
.lp-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
.lp-quote { padding: 1.6rem; border-radius: 18px; margin: 0; display: flex; flex-direction: column; gap: .9rem; }
.lp-stars { color: #fbbf24; letter-spacing: .1em; font-size: .95rem; }
.lp-quote blockquote { margin: 0; color: #cbd5e1; font-size: 1.02rem; line-height: 1.6; flex: 1; }
.lp-quote figcaption { display: flex; align-items: center; gap: .7rem; }
.lp-quote-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; color: #031018;
  background: linear-gradient(135deg, #7dd3fc, #a5b4fc);
}
.lp-quote figcaption b { display: block; color: #e2e8f0; font-size: .95rem; }
.lp-quote figcaption small { color: #64748b; font-size: .82rem; }

/* CTA BAND */
.lp-cta-band { max-width: 1240px; margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem); }
.lp-cta-inner {
  padding: clamp(2.5rem, 6vw, 4rem);
  border-radius: 26px;
  text-align: center;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(56,189,248,.18), transparent 65%),
    rgba(13,20,34,.6);
}
.lp-cta-inner h2 {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 720; letter-spacing: -0.03em; color: #f8fafc; margin: 0;
}
.lp-cta-inner p { margin: 1rem auto 0; max-width: 34rem; color: #94a3b8; font-size: 1.08rem; }
.lp-cta-inner .lp-cta { justify-content: center; margin-top: 2rem; }

/* FOOTER */
.lp-footer {
  border-top: 1px solid rgba(148,163,184,.1);
  max-width: 1240px; margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.25rem, 5vw, 4rem) 2.5rem;
}
.lp-footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem;
  padding-bottom: 2.5rem;
}
.lp-footer-grid h4 { color: #e2e8f0; font-size: .92rem; font-weight: 650; margin: 0 0 1rem; }
.lp-footer-grid a { display: block; color: #94a3b8; font-size: .92rem; margin-bottom: .6rem; transition: color .2s ease; }
.lp-footer-grid a:hover { color: #e2e8f0; }
.lp-footer-base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  padding-top: 1.8rem; border-top: 1px solid rgba(148,163,184,.08);
  color: #64748b; font-size: .85rem;
}

@keyframes lpRise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes lpFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes lpPulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.6); } 70% { box-shadow: 0 0 0 8px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
@keyframes lpMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes lpDrift { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(0,-24px,0); } }

@media (max-width: 960px) {
  .lp-hero { grid-template-columns: 1fr; }
  .lp-terminal { order: -1; }
  .lp-grid-features, .lp-steps, .lp-quotes { grid-template-columns: 1fr 1fr; }
  .lp-security, .lp-showcase { grid-template-columns: 1fr; }
  .lp-stats-band { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .lp-nav-links { display: none; }
  .lp-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .lp-grid-features, .lp-steps, .lp-security-card, .lp-footer-grid, .lp-quotes { grid-template-columns: 1fr; }
  .lp-nav-actions .btn-ghost { display: none; }
  .lp-term-body { grid-template-columns: 1fr; }
  .lp-term-book { display: none; }
  .lp-showcase-top { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-orb, .lp-terminal, .lp-marquee-track, .lp-pill-dot { animation: none !important; }
}

.mono { font-family: var(--font-mono); font-size: .85rem; }

.positive { color: var(--success); }
.negative { color: var(--danger); }

.mobile-toggle { display: none; }

@media (max-width: 1100px) {
  .grid-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .app-shell { position: relative; }
  .sidebar {
    position: fixed;
    left: -300px;
    top: 0;
    z-index: 40;
    transition: left .25s ease;
    box-shadow: 12px 0 40px rgba(0, 0, 0, .35);
  }
  .sidebar.open { left: 0; }
  .sidebar-backdrop {
    position: fixed;
  }
  .mobile-toggle { display: inline-flex; }
  .main { padding: 1rem; }
  .hide-sm { display: none !important; }
  .topbar { gap: .6rem; margin-bottom: 1.1rem; }
  .topbar-actions .btn { padding: .5rem .8rem; font-size: .82rem; }
  .flash-stack { left: 1rem; right: 1rem; max-width: none; }
  .page-head { align-items: stretch; }
  .page-head .btn { width: 100%; }

  /* Stack wide tables into readable cards on phones */
  table.data-responsive thead { display: none; }
  table.data-responsive,
  table.data-responsive tbody,
  table.data-responsive tr,
  table.data-responsive td { display: block; width: 100%; }
  table.data-responsive tr {
    padding: .85rem 0;
    border-bottom: 1px solid rgba(148,163,184,.12);
  }
  table.data-responsive tr:last-child { border-bottom: 0; }
  table.data-responsive tr.data-empty td {
    display: block;
    white-space: normal;
    padding: .5rem 0;
  }
  table.data-responsive tr.data-empty td::before { display: none; }
  table.data-responsive td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .75rem;
    padding: .35rem 0;
    border-bottom: 0;
    white-space: normal;
    text-align: right;
  }
  table.data-responsive td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 650;
    text-align: left;
    flex: 0 0 38%;
  }
  table.data-responsive td.break-all { word-break: break-all; }
}

/* ============ WALLET PORTFOLIO ============ */
.wl-hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.5rem;
  padding: 1.75rem;
  border-radius: 22px;
  margin-bottom: 1.5rem;
  background:
    radial-gradient(600px 260px at 0% 0%, rgba(56,189,248,.14), transparent 60%),
    radial-gradient(500px 240px at 100% 100%, rgba(129,140,248,.12), transparent 60%),
    var(--panel);
}
.wl-hero-label { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .09em; }
.wl-hero-value {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 750; letter-spacing: -0.03em; color: #f8fafc;
  line-height: 1.05; margin: .35rem 0 .5rem;
  font-variant-numeric: tabular-nums;
}
.wl-hero-change { display: inline-flex; align-items: center; gap: .45rem; font-weight: 650; font-size: 1.02rem; }
.wl-hero-pct { opacity: .85; }
.wl-hero-24h {
  color: var(--muted); font-size: .72rem; font-weight: 600;
  background: rgba(148,163,184,.12); padding: .1rem .5rem; border-radius: 999px; margin-left: .25rem;
}
.wl-hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }

.wl-hero-alloc { display: flex; align-items: center; gap: 1.4rem; justify-content: center; }
.wl-donut-wrap { position: relative; width: 150px; height: 150px; flex-shrink: 0; }
.wl-donut-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; pointer-events: none;
}
.wl-donut-count { font-family: var(--font-display); font-size: 1.6rem; font-weight: 750; color: #f1f5f9; line-height: 1; }
.wl-donut-sub { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.wl-legend { display: flex; flex-direction: column; gap: .55rem; min-width: 120px; }
.wl-legend-row { display: flex; align-items: center; gap: .5rem; font-size: .88rem; }
.wl-legend-dot { width: 10px; height: 10px; border-radius: 3px; background: #38bdf8; flex-shrink: 0; }
.wl-legend-sym { color: #e2e8f0; font-weight: 600; }
.wl-legend-pct { color: var(--muted); margin-left: auto; font-variant-numeric: tabular-nums; }

.wl-list-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .9rem; }
.wl-toggle { display: inline-flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .88rem; margin: 0; cursor: pointer; }
.wl-toggle input { width: auto; }

.wl-list { border-radius: 18px; overflow: hidden; }
.wl-row {
  display: grid;
  grid-template-columns: 2fr 1.1fr .9fr 1.4fr 1.2fr auto;
  align-items: center; gap: 1rem;
  padding: .95rem 1.25rem;
  border-bottom: 1px solid rgba(148,163,184,.07);
  transition: background .18s ease;
}
.wl-row:last-child { border-bottom: 0; }
.wl-row:not(.wl-row-head):hover { background: rgba(56,189,248,.05); }
.wl-row-head {
  color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .07em;
  font-weight: 650; background: rgba(2,6,23,.35);
}
.wl-asset {
  display: flex; align-items: center; gap: .8rem; min-width: 0;
  text-decoration: none; color: inherit;
}
a.wl-asset:hover .wl-asset-sym { color: #7dd3fc; }
.wl-show-sm { display: none; }
.wl-badge {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 750; font-size: 1.05rem; color: #06121f;
  background: linear-gradient(135deg, #7dd3fc, #a5b4fc);
}
.wl-asset-sym { font-weight: 700; color: #f1f5f9; display: flex; align-items: center; }
.wl-asset-name { color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-chip { display: inline-flex; padding: .18rem .5rem; border-radius: 999px; font-size: .78rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.wl-chip-up { color: #6ee7b7; background: rgba(52,211,153,.12); }
.wl-chip-down { color: #fca5a5; background: rgba(248,113,113,.12); }
.wl-holding { color: #e2e8f0; }
.wl-locked { color: #fbbf24; font-size: .72rem; margin-top: .15rem; }
.wl-value { color: #f8fafc; font-weight: 650; }
.wl-actions { display: flex; gap: .4rem; justify-content: flex-end; }

/* Per-asset brand tints */
.wl-badge-btc { background: linear-gradient(135deg, #f7931a, #fbbf24); color: #2b1600; }
.wl-badge-eth { background: linear-gradient(135deg, #8a92b2, #627eea); color: #fff; }
.wl-badge-usdt { background: linear-gradient(135deg, #26a17b, #50af95); color: #fff; }
.wl-badge-bnb { background: linear-gradient(135deg, #f3ba2f, #f0b90b); color: #2b2200; }
.wl-badge-sol { background: linear-gradient(135deg, #9945ff, #14f195); color: #0b0320; }
.wl-badge-trx { background: linear-gradient(135deg, #ef3a3a, #ff6b6b); color: #fff; }
.wl-badge-xrp { background: linear-gradient(135deg, #23292f, #4b5563); color: #fff; }
.wl-badge-doge { background: linear-gradient(135deg, #c2a633, #e4cb60); color: #2b2200; }
.wl-badge-ltc { background: linear-gradient(135deg, #345d9d, #5b8dd6); color: #fff; }
.wl-badge-ada { background: linear-gradient(135deg, #0033ad, #3468d1); color: #fff; }
.wl-badge-matic { background: linear-gradient(135deg, #6c3ce9, #8247e5); color: #fff; }
.wl-badge-avax { background: linear-gradient(135deg, #e84142, #ff6161); color: #fff; }

@media (max-width: 860px) {
  .wl-hero {
    grid-template-columns: 1fr;
    padding: 1.25rem;
    gap: 1.1rem;
  }
  .wl-hero-alloc { justify-content: flex-start; flex-wrap: wrap; }
  .wl-hero-actions { gap: .5rem; }
  .wl-hero-actions .btn {
    flex: 1 1 calc(33.33% - .4rem);
    min-width: 0;
    padding: .65rem .55rem;
    font-size: .84rem;
  }
  .wl-list-head {
    flex-wrap: wrap;
    gap: .6rem;
    align-items: flex-start;
  }
  /* Card stack: asset + buttons on top, balances on their own row (no overlap) */
  .wl-row-head { display: none; }
  .wl-row:not(.wl-row-head) {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: .65rem .75rem;
    padding: .95rem .9rem;
  }
  .wl-row > .wl-asset {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 102px);
  }
  .wl-row > .wl-actions {
    flex: 0 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: .35rem;
    width: 92px;
  }
  .wl-row > .wl-hold-col {
    flex: 1 1 100%;
    width: 100%;
    text-align: left;
    padding-left: 48px; /* align under asset name (badge + gap) */
  }
  .wl-badge { width: 36px; height: 36px; border-radius: 10px; font-size: .95rem; }
  .wl-holding { font-size: .86rem; }
  .wl-value { font-size: .9rem; margin-top: .15rem; }
  .wl-hide-sm { display: none !important; }
  .wl-show-sm { display: block; }
  .wl-actions .btn { white-space: nowrap; font-size: .78rem; padding: .4rem .65rem; }
  .wl-stat-grid { gap: .65rem; }
  .wl-stat-grid .mono { font-size: .92rem; word-break: break-all; }
}

@media (max-width: 480px) {
  .wl-hero-actions { flex-direction: column; }
  .wl-hero-actions .btn { width: 100%; flex: none; }
  .wl-row > .wl-hold-col { padding-left: 0; }
}

/* ================= ADMIN CRM ================= */
.adm-nav-group {
  color: #536077; font-size: .68rem; letter-spacing: .13em; text-transform: uppercase;
  font-weight: 700; padding: 1rem 1rem .4rem;
}
.nav-ico { width: 18px; height: 18px; flex-shrink: 0; opacity: .8; }
.nav-link.active .nav-ico, .nav-link:hover .nav-ico { opacity: 1; }
.nav-count {
  margin-left: auto; background: rgba(251,191,36,.16); color: #fcd34d;
  font-size: .7rem; font-weight: 700; padding: .05rem .5rem; border-radius: 999px;
  min-width: 20px; text-align: center;
}

/* Topbar */
.adm-topbar { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.adm-search { flex: 1; max-width: 440px; position: relative; }
.adm-search svg {
  position: absolute; left: .9rem; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--muted); pointer-events: none;
}
.adm-search input { padding-left: 2.5rem; }
.adm-user { display: flex; align-items: center; gap: .7rem; margin-left: auto; }
.adm-avatar {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  font-weight: 750; color: #031018; background: linear-gradient(145deg, #7dd3fc, #818cf8);
  flex-shrink: 0; box-shadow: 0 6px 18px rgba(56,189,248,.22);
}
.adm-user-meta b { display: block; color: #e8eefc; font-size: .9rem; line-height: 1.15; }
.adm-user-meta small { color: var(--muted); font-size: .75rem; }

/* Page header */
.adm-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.adm-head h1 { font-family: var(--font-display); font-size: 1.7rem; font-weight: 750; letter-spacing: -.025em; margin: 0; color: #f8fafc; }
.adm-head p { margin: .3rem 0 0; color: var(--muted); font-size: .95rem; }

/* KPI cards */
.adm-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.adm-kpi { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.35rem; }
.adm-kpi-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; }
.adm-kpi-ico svg { width: 22px; height: 22px; }
.adm-kpi-val { font-family: var(--font-display); font-size: 1.75rem; font-weight: 720; letter-spacing: -.03em; color: #f8fafc; line-height: 1; font-variant-numeric: tabular-nums; }
.adm-ico-cyan { background: rgba(56,189,248,.14); color: #7dd3fc; }
.adm-ico-indigo { background: rgba(129,140,248,.14); color: #a5b4fc; }
.adm-ico-green { background: rgba(52,211,153,.14); color: #6ee7b7; }
.adm-ico-amber { background: rgba(251,191,36,.14); color: #fcd34d; }
.adm-ico-red { background: rgba(248,113,113,.14); color: #fca5a5; }
.adm-ico-teal { background: rgba(34,211,238,.14); color: #67e8f9; }

/* Queue cards */
.adm-queue { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.adm-qcard { padding: 1.25rem 1.35rem; border-left: 3px solid var(--accent); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.adm-qcard.warn { border-left-color: var(--warning); }
.adm-qcard.info { border-left-color: var(--accent-3); }
.adm-qval { font-family: var(--font-display); font-size: 2rem; font-weight: 750; color: #f8fafc; line-height: 1; }

/* Panel header row */
.adm-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .85rem; gap: 1rem; }

/* User cell (tables) */
.adm-user-cell { display: flex; align-items: center; gap: .7rem; }
.adm-mini-avatar {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  font-weight: 700; font-size: .85rem; color: #031018;
  background: linear-gradient(145deg, #7dd3fc, #818cf8); flex-shrink: 0;
}
.adm-user-cell b { color: #e8eefc; font-weight: 650; display: block; line-height: 1.2; }
.adm-user-cell small { color: var(--muted); font-size: .78rem; }

/* Filters bar */
.adm-filters { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; }
.adm-filters .form-group { margin-bottom: 0; }

/* Utilities */
.adm-trunc { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: bottom; }
.adm-addr {
  word-break: break-all;
  overflow-wrap: anywhere;
  white-space: normal !important;
  font-variant-numeric: tabular-nums;
}
.adm-empty { text-align: center; color: var(--muted); padding: 2.5rem 1rem; }
.adm-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: 8px; font-size: .74rem; font-weight: 700; background: rgba(148,163,184,.12); color: #cbd5e1; }
.adm-chip-vip { background: linear-gradient(135deg, rgba(251,191,36,.2), rgba(245,158,11,.14)); color: #fcd34d; }

/* Compact action rows in tables */
.adm-actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.adm-actions .input, .adm-actions select { padding: .5rem .65rem; border-radius: 10px; font-size: .85rem; }

/* Settings groups */
.adm-set-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; }

@media (max-width: 1100px) {
  .adm-kpis { grid-template-columns: repeat(2, 1fr); }
  .adm-queue { grid-template-columns: 1fr; }
  .adm-set-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .adm-kpis { grid-template-columns: 1fr; }
  .adm-user { margin-left: 0; }
}

/* ================= SPOT EXCHANGE TERMINAL ================= */
.ex-shell { display: flex; flex-direction: column; gap: 1rem; }
.ex-pairs {
  display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem;
  scrollbar-width: thin; align-items: center;
}
.ex-mode-pill {
  flex-shrink: 0; padding: .4rem .75rem; border-radius: 999px;
  font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase;
  color: #031018; background: linear-gradient(135deg, #7dd3fc, #38bdf8);
}
.ex-pair-tab {
  flex-shrink: 0; display: flex; align-items: baseline; gap: .55rem;
  padding: .55rem .9rem; border-radius: 12px;
  border: 1px solid var(--border); background: rgba(15,23,42,.45);
  transition: .2s ease;
}
.ex-pair-tab:hover { border-color: rgba(56,189,248,.35); }
.ex-pair-tab.active {
  border-color: rgba(56,189,248,.45);
  background: linear-gradient(135deg, rgba(56,189,248,.14), rgba(129,140,248,.08));
}
.ex-pair-tab b { font-size: .88rem; color: #f1f5f9; }
.ex-pair-tab span { font-size: .82rem; color: #cbd5e1; }
.ex-pair-tab small { font-size: .72rem; font-weight: 700; }

.ex-ticker {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem;
  padding: 1rem 1.25rem; border-radius: 16px;
}
.ex-ticker-pair { min-width: 140px; }
.ex-ticker-sym { font-size: .78rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.ex-ticker-last { font-family: var(--font-display); font-size: 1.65rem; font-weight: 750; letter-spacing: -.02em; line-height: 1.1; }
.ex-ticker-stat .stat-label { margin-bottom: .2rem; }
.ex-ticker-stat b { font-size: 1rem; color: #e2e8f0; }

.ex-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(240px, .85fr) minmax(260px, .9fr);
  gap: 1rem; align-items: stretch;
}
.ex-chart-card, .ex-book-card, .ex-order-card { padding: 1rem 1.15rem; }
.ex-chart-head, .ex-panel-head {
  display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: .75rem;
}
.ex-intervals { display: flex; gap: .3rem; }
.ex-iv {
  border: 1px solid transparent; background: transparent; color: var(--muted);
  font-size: .75rem; font-weight: 650; padding: .3rem .55rem; border-radius: 8px; cursor: pointer;
}
.ex-iv:hover { color: var(--text); }
.ex-iv.active { color: #7dd3fc; background: rgba(56,189,248,.12); border-color: rgba(56,189,248,.25); }
.ex-chart-note { color: var(--danger); font-size: .85rem; margin: .5rem 0 0; }

.ex-book-cols {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: .4rem;
  font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em;
  padding: 0 .35rem .35rem;
}
.ex-asks, .ex-bids { display: flex; flex-direction: column; gap: 1px; }
.ex-book-row {
  position: relative; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: .4rem;
  width: 100%; border: 0; background: transparent; color: inherit;
  padding: .28rem .35rem; font-size: .78rem; text-align: left; cursor: pointer;
  border-radius: 4px;
}
.ex-book-row:hover { background: rgba(148,163,184,.08); }
.ex-depth {
  position: absolute; inset: 0 auto 0 0; pointer-events: none; border-radius: 4px; opacity: .18;
}
.ex-book-row.ask .ex-depth { background: #f87171; }
.ex-book-row.bid .ex-depth { background: #34d399; }
.ex-book-row > span:not(.ex-depth) { position: relative; z-index: 1; }
.ex-book-row .muted { color: var(--muted); }
.ex-book-mid {
  text-align: center; font-size: 1.15rem; font-weight: 750;
  padding: .55rem 0; margin: .35rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.ex-book-empty { color: var(--muted); font-size: .8rem; padding: .6rem; text-align: center; }

.ex-side-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; margin-bottom: .75rem; }
.ex-side {
  border: 1px solid var(--border); background: rgba(2,6,23,.4); color: var(--muted);
  padding: .7rem; border-radius: 12px; font-weight: 700; cursor: pointer;
}
.ex-side.buy.active { color: #052e1b; background: linear-gradient(135deg, #34d399, #6ee7b7); border-color: transparent; }
.ex-side.sell.active { color: #fff; background: linear-gradient(135deg, #ef4444, #f97316); border-color: transparent; }
.ex-type-tabs { display: flex; gap: .35rem; margin-bottom: .85rem; }
.ex-type {
  border: 0; background: transparent; color: var(--muted); font-size: .85rem; font-weight: 650;
  padding: .35rem .7rem; border-radius: 8px; cursor: pointer;
}
.ex-type.active { color: #e2e8f0; background: rgba(148,163,184,.12); }
.ex-avail {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .82rem; color: var(--muted); margin-bottom: .85rem;
}
.ex-avail b { color: #e2e8f0; font-weight: 650; }
.ex-input-wrap { position: relative; }
.ex-input-wrap .input { padding-right: 4.2rem; }
.ex-input-btn {
  position: absolute; right: .45rem; top: 50%; transform: translateY(-50%);
  border: 0; background: rgba(56,189,248,.14); color: #7dd3fc;
  font-size: .72rem; font-weight: 700; padding: .35rem .55rem; border-radius: 8px; cursor: pointer;
}
.ex-pcts { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin: .2rem 0 1rem; }
.ex-pct {
  border: 1px solid var(--border); background: rgba(2,6,23,.35); color: var(--muted);
  font-size: .75rem; font-weight: 650; padding: .45rem; border-radius: 10px; cursor: pointer;
}
.ex-pct:hover { color: var(--text); border-color: rgba(56,189,248,.3); }
.ex-total {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1rem; padding: .75rem .9rem; border-radius: 12px;
  background: rgba(2,6,23,.4); border: 1px solid var(--border);
  font-size: .88rem; color: var(--muted);
}
.ex-total b { color: #f8fafc; font-size: 1rem; }
.ex-submit { font-size: 1rem; padding: .95rem; border: 0; border-radius: 14px; font-weight: 750; }
.ex-submit-buy { color: #052e1b; background: linear-gradient(135deg, #34d399, #6ee7b7); }
.ex-submit-sell { color: #fff; background: linear-gradient(135deg, #ef4444, #f97316); }

.ex-bottom { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1rem; }

@media (max-width: 1200px) {
  .ex-grid { grid-template-columns: 1fr 1fr; }
  .ex-order-card { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .ex-grid { grid-template-columns: 1fr; }
  .ex-bottom { grid-template-columns: 1fr; }
  .ex-ticker-last { font-size: 1.35rem; }
}

/* ================= SUPPORT TICKETS ================= */
.tk-thread { display: flex; flex-direction: column; gap: .85rem; max-height: 560px; overflow-y: auto; }
.tk-msg {
  padding: .9rem 1rem; border-radius: 14px; border: 1px solid var(--border);
  background: rgba(2,6,23,.35);
}
.tk-msg-me {
  background: rgba(56,189,248,.08); border-color: rgba(56,189,248,.22);
  align-self: flex-end; width: min(92%, 540px);
}
.tk-msg-agent {
  background: rgba(129,140,248,.08); border-color: rgba(129,140,248,.22);
  align-self: flex-start; width: min(92%, 540px);
}
.tk-msg-internal {
  background: rgba(251,191,36,.08); border-color: rgba(251,191,36,.25);
  align-self: stretch; border-style: dashed;
}
.tk-msg-meta {
  display: flex; justify-content: space-between; gap: 1rem;
  font-size: .78rem; color: var(--muted); margin-bottom: .4rem;
}
.tk-msg-meta b { color: #e2e8f0; font-weight: 650; }
.tk-msg-body { white-space: pre-wrap; color: #e8eefc; line-height: 1.55; font-size: .95rem; }

