/* =========================================================
   AXIORA — Clone theme (Lovable / Tailwind-inspired)
   Black canvas · violet/fuchsia/emerald accents · Inter
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #000000;
  --bg-2: #0a0a0c;
  --bg-3: #101015;
  --card: rgba(255,255,255,0.03);
  --card-2: rgba(255,255,255,0.05);
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);
  --fg: #ffffff;
  --muted: rgba(255,255,255,0.55);
  --muted-2: rgba(255,255,255,0.40);
  --violet: #8d54ff;
  --violet-2: #a685ff;
  --fuchsia: #e12afb;
  --indigo: #625fff;
  --emerald: #00d294;
  --emerald-2: #00bb7f;
  --rose: #ff2357;
  --amber: #f99c00;
  --orange: #ff8b1a;
  --grad-brand: linear-gradient(135deg, #8d54ff 0%, #e12afb 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(141,84,255,.18), rgba(225,42,251,.18));
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-feature-settings: "cv11","ss01";
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }
::selection { background: rgba(141,84,255,.4); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(141,84,255,.4); }

/* ---------- Layout helpers ---------- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: .25rem; } .gap-2 { gap: .5rem; } .gap-3 { gap: .75rem; } .gap-4 { gap: 1rem; } .gap-6 { gap: 1.5rem; } .gap-8 { gap: 2rem; }
.grid { display: grid; }
.text-center { text-align: center; }
.relative { position: relative; }
.hidden { display: none; }
.w-full { width: 100%; }
.rounded { border-radius: .6rem; } .rounded-lg { border-radius: .85rem; } .rounded-xl { border-radius: 1rem; } .rounded-2xl { border-radius: 1.25rem; } .rounded-full { border-radius: 999px; }
.font-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: .08em; } .tracking-widest { letter-spacing: .14em; }
.text-xs { font-size: .72rem; } .text-sm { font-size: .85rem; } .text-base { font-size: .95rem; } .text-lg { font-size: 1.1rem; } .text-xl { font-size: 1.35rem; } .text-2xl { font-size: 1.7rem; } .text-3xl { font-size: 2.2rem; } .text-4xl { font-size: 2.9rem; } .text-5xl { font-size: 3.6rem; }
.font-medium { font-weight: 500; } .font-semibold { font-weight: 600; } .font-bold { font-weight: 700; } .font-extrabold { font-weight: 800; } .font-black { font-weight: 900; }
.muted { color: var(--muted); } .muted-2 { color: var(--muted-2); }
.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.mt-10{margin-top:2.5rem}.mt-12{margin-top:3rem}
.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}
.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}

/* ---------- Brand ---------- */
.logo-mark {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  position: relative;
}
.logo-mark img { width: 44px; height: 44px; position: relative; z-index: 2; object-fit: contain; }
.logo-mark::before {
  content: ''; position: absolute; inset: 0; border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(141,84,255,.35), rgba(255,255,255,.06) 60%, transparent 75%);
  filter: blur(8px); animation: pulseGlow 6s ease-in-out infinite;
}
@keyframes pulseGlow { 0%,100%{opacity:.5} 50%{opacity:.9} }
.brand-word { font-weight: 800; letter-spacing: .12em; font-size: 1.05rem; }
.brand-word span { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.25rem; border-radius: .7rem; font-weight: 600; font-size: .9rem;
  transition: all .18s ease; white-space: nowrap; border: 1px solid transparent;
}
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 8px 30px -8px rgba(141,84,255,.6); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 36px -8px rgba(225,42,251,.7); }
.btn-emerald { background: var(--emerald); color: #022c22; font-weight: 700; }
.btn-emerald:hover { background: var(--emerald-2); transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,.04); border-color: var(--border); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: var(--border-strong); }
.btn-outline { border-color: rgba(141,84,255,.4); color: var(--violet-2); background: rgba(141,84,255,.06); }
.btn-outline:hover { background: rgba(141,84,255,.14); border-color: var(--violet); }
.btn-danger { background: rgba(255,35,87,.14); border-color: rgba(255,35,87,.35); color: #ff6b8a; }
.btn-danger:hover { background: rgba(255,35,87,.22); }
.btn-sm { padding: .45rem .8rem; font-size: .8rem; }
.btn-lg { padding: .9rem 1.6rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 1.25rem; padding: 1.5rem;
  backdrop-filter: blur(12px);
}
.card-emerald { border-color: rgba(0,210,148,.18); background: rgba(0,44,34,.35); }
.card-violet { border-color: rgba(141,84,255,.18); background: rgba(141,84,255,.06); }
.card-hover { transition: all .2s ease; }
.card-hover:hover { border-color: var(--border-strong); background: var(--card-2); transform: translateY(-2px); }

/* ---------- Badges / pills ---------- */
.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .6rem; border-radius: 999px; font-size: .7rem; font-weight: 600; }
.badge-emerald { background: rgba(0,210,148,.14); color: #5ee9b5; border: 1px solid rgba(0,210,148,.25); }
.badge-rose { background: rgba(255,35,87,.14); color: #ff6b8a; border: 1px solid rgba(255,35,87,.25); }
.badge-violet { background: rgba(141,84,255,.14); color: var(--violet-2); border: 1px solid rgba(141,84,255,.25); }
.badge-amber { background: rgba(249,156,0,.14); color: #ffd236; border: 1px solid rgba(249,156,0,.25); }
.badge-muted { background: rgba(255,255,255,.06); color: var(--muted); border: 1px solid var(--border); }
.badge-live { background: rgba(0,210,148,.14); color: var(--emerald); }
.badge-live::before { content:''; width:6px; height:6px; border-radius:50%; background: var(--emerald); box-shadow: 0 0 8px var(--emerald); animation: blink 1.4s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

/* ---------- Inputs ---------- */
.input, .textarea, .select {
  width: 100%; background: rgba(255,255,255,.04); border: 1px solid var(--border);
  border-radius: .7rem; padding: .75rem .9rem; color: #fff; font-size: .9rem;
  transition: all .15s ease;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--violet); background: rgba(141,84,255,.06);
  box-shadow: 0 0 0 3px rgba(141,84,255,.15);
}
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
/* Native <select> dropdown options: force dark bg + light text so they stay
   readable (otherwise the OS renders a white list with white text). */
.select { color-scheme: dark; }
.select option, .select optgroup {
  background: #141821; color: #fff;
}
.select option:checked, .select option:hover {
  background: var(--violet); color: #fff;
}
.label { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .4rem; display: block; }

/* ---------- Alerts ---------- */
.alert { padding: .85rem 1rem; border-radius: .8rem; font-size: .88rem; margin-bottom: 1rem; border: 1px solid; }
.alert-success { background: rgba(0,210,148,.1); border-color: rgba(0,210,148,.3); color: #5ee9b5; }
.alert-error { background: rgba(255,35,87,.1); border-color: rgba(255,35,87,.3); color: #ff8aa3; }
.alert-info { background: rgba(141,84,255,.1); border-color: rgba(141,84,255,.3); color: var(--violet-2); }

/* ---------- Gradient text ---------- */
.grad-text { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-emerald { background: linear-gradient(135deg,#00d294,#5ee9b5); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* =========================================================
   LANDING PAGE
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(16px); background: rgba(0,0,0,.6);
  border-bottom: 1px solid var(--border);
}
.site-header .inner { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a { font-size: .88rem; color: var(--muted); transition: color .15s; }
.nav-links a:hover { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: .75rem; }
.nav-logout-form { display: inline-flex; align-items: center; margin: 0; padding: 0; }
.nav-dash-link { font-weight: 600; }

/* meme marquee */
.marquee-wrap { overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(255,255,255,.015); padding: .65rem 0; }
.marquee { display: flex; gap: 2.5rem; white-space: nowrap; animation: memeMarquee 40s linear infinite; }
.marquee .m { display: inline-flex; align-items: center; gap: .5rem; font-size: .82rem; font-weight: 600; }
.marquee .m .sym { color: #fff; } .marquee .m .px { color: var(--muted); font-family: 'JetBrains Mono',monospace; }
.marquee .m .up { color: var(--emerald); }
@keyframes memeMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* hero */
.hero { position: relative; padding: 5rem 0 4rem; text-align: center; overflow: hidden; }
.hero::before {
  content:''; position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(141,84,255,.18), transparent 60%);
  filter: blur(60px); pointer-events: none; z-index: 1;
}
.hero::after {
  content:''; position: absolute; top: 10%; right: 10%; width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(225,42,251,.14), transparent 60%); filter: blur(60px); pointer-events: none; z-index:1;
}
.hero .live { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--muted); margin-bottom: 1.5rem; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 900; line-height: 1.02; letter-spacing: -.03em; margin-bottom: 1.25rem; position: relative; }
.hero h1 .accent { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sub { font-size: 1.15rem; color: var(--muted); max-width: 620px; margin: 0 auto 2rem; line-height: 1.55; }
.hero .cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero .backed { margin-top: 2.5rem; font-size: .78rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: .14em; }
.hero .backed span { color: var(--fg); font-weight: 600; }

/* hero terminal preview */
.terminal-preview {
  max-width: 1100px; margin: 3rem auto 0; position: relative;
  border: 1px solid var(--border); border-radius: 1.25rem; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  backdrop-filter: blur(10px);
  box-shadow: 0 40px 80px -30px rgba(141,84,255,.25);
}
.tp-head { display: flex; align-items: center; gap: .5rem; padding: .75rem 1rem; border-bottom: 1px solid var(--border); }
.tp-head .dot { width: 11px; height: 11px; border-radius: 50%; }
.tp-head .dot.r{background:#ff5f57}.tp-head .dot.y{background:#febc2e}.tp-head .dot.g{background:#28c840}
.tp-head .tabs { margin-left: 1rem; display: flex; gap: 1rem; font-size: .78rem; color: var(--muted); }
.tp-body { display: grid; grid-template-columns: 200px 1fr 240px; min-height: 360px; }
.tp-side { border-right: 1px solid var(--border); padding: 1rem; font-size: .8rem; }
.tp-side .nav-i { padding: .5rem .7rem; border-radius: .5rem; color: var(--muted); margin-bottom: .25rem; display: flex; align-items: center; gap: .5rem; }
.tp-side .nav-i.active { background: rgba(141,84,255,.12); color: #fff; }
.tp-chart { padding: 1rem; position: relative; }
.tp-chart .pair { font-size: .85rem; font-weight: 700; margin-bottom: .5rem; }
.tp-chart .chg { color: var(--emerald); font-family: 'JetBrains Mono',monospace; font-size: .8rem; }
.spark { height: 180px; position: relative; }
.tp-right { border-left: 1px solid var(--border); padding: 1rem; font-size: .78rem; }
.tp-right .row { display: flex; justify-content: space-between; padding: .35rem 0; border-bottom: 1px dashed var(--border); }
.tp-right .row:last-child { border: 0; }
.tp-right .b { color: var(--emerald); font-family: 'JetBrains Mono',monospace; }
.tp-right .s { color: var(--rose); font-family: 'JetBrains Mono',monospace; }

/* sections */
.section { padding: 5rem 0; }
.section h2 { font-size: clamp(2rem,4vw,3rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 1rem; }
.section .lead { color: var(--muted); font-size: 1.1rem; max-width: 640px; }
.section-head { text-align: center; margin-bottom: 3rem; }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature { padding: 1.75rem; }
.feature .ic { width: 44px; height: 44px; border-radius: .7rem; display: grid; place-items: center; margin-bottom: 1rem; background: var(--grad-brand-soft); border: 1px solid rgba(141,84,255,.2); }
.feature .ic svg { width: 22px; height: 22px; stroke: var(--violet-2); }
.feature h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .5rem; }
.feature p { color: var(--muted); font-size: .92rem; line-height: 1.55; }

.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; }
.stat { text-align: center; padding: 2rem 1rem; }
.stat .num { font-size: 2.6rem; font-weight: 800; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .lbl { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-top: .4rem; }

.mev-band { padding: 4rem 0; }
.mev-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.pos-stack { display: flex; flex-direction: column; gap: .75rem; }
.pos-card { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border: 1px solid var(--border); border-radius: .9rem; background: var(--card); }
.pos-card .pl .t { font-size: .8rem; color: var(--muted); }
.pos-card .pl .v { font-size: 1.3rem; font-weight: 700; color: var(--emerald); }
.pos-card .pr { text-align: right; font-size: .78rem; color: var(--muted); }

.worldcup { padding: 4rem 0; }
.wc-card { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; align-items: center; padding: 2.5rem; }
.wc-badge { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--amber); }
.wc-stats { display: flex; gap: 2rem; margin-top: 1.5rem; }
.wc-stats .s .n { font-size: 1.4rem; font-weight: 700; } .wc-stats .s .l { font-size: .78rem; color: var(--muted); }

.site-footer { border-top: 1px solid var(--border); padding: 4rem 0 2rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
.footer-grid h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 1rem; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: .6rem; }
.footer-grid li a { color: rgba(255,255,255,.7); font-size: .9rem; transition: color .15s; }
.footer-grid li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; font-size: .82rem; color: var(--muted); }

/* =========================================================
   AUTH PAGES
   ========================================================= */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-aside { padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--border); position: relative; overflow: hidden; }
.auth-aside::before { content:''; position:absolute; top:-20%; left:-10%; width:500px; height:500px; border-radius:50%; background: radial-gradient(circle, rgba(141,84,255,.2), transparent 60%); filter: blur(60px); }
.auth-aside .bonus { position: relative; }
.auth-aside .bonus .pill { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .8rem; border-radius: 999px; background: rgba(0,210,148,.14); color: var(--emerald); font-size: .78rem; font-weight: 600; border: 1px solid rgba(0,210,148,.25); margin-bottom: 1.5rem; }
.auth-aside .bonus h2 { font-size: 2.2rem; font-weight: 800; line-height: 1.1; margin-bottom: 1rem; }
.auth-aside .bonus p { color: var(--muted); font-size: 1rem; line-height: 1.6; }
.auth-aside .stats { display: flex; gap: 2.5rem; position: relative; }
.auth-aside .stats .s .n { font-size: 1.8rem; font-weight: 800; background: var(--grad-brand); -webkit-background-clip:text;background-clip:text;color:transparent; }
.auth-aside .stats .s .l { font-size: .78rem; color: var(--muted); }
.auth-main { display: grid; place-items: center; padding: 2rem; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: 1.7rem; font-weight: 800; margin-bottom: .35rem; }
.auth-card p.sub { color: var(--muted); margin-bottom: 1.75rem; font-size: .92rem; }
.auth-card .field { margin-bottom: 1.1rem; }
.auth-card .switch { text-align: center; margin-top: 1.5rem; font-size: .88rem; color: var(--muted); }
.auth-card .switch a { color: var(--violet-2); font-weight: 600; }

/* =========================================================
   TERMINAL (user dashboard)
   ========================================================= */
.terminal-layout { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.t-sidebar {
  border-right: 1px solid var(--border); background: rgba(255,255,255,.02);
  padding: 1.25rem 1rem; position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column;
}
.t-brand { display: flex; align-items: center; gap: .75rem; padding: 0 .5rem 1.25rem; margin-bottom: .75rem; border-bottom: 1px solid var(--border); }
.t-nav { display: flex; flex-direction: column; gap: .15rem; margin-top: .5rem; }
.t-nav .label-grp { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-2); padding: 1rem .7rem .4rem; }
.t-nav a, .t-nav button {
  display: flex; align-items: center; gap: .75rem; padding: .6rem .75rem; border-radius: .6rem;
  font-size: .88rem; color: var(--muted); transition: all .15s; text-align: left; width: 100%;
}
.t-nav a:hover, .t-nav button:hover { background: rgba(255,255,255,.05); color: #fff; }
.t-nav a.active { background: rgba(141,84,255,.14); color: #fff; border: 1px solid rgba(141,84,255,.25); }
.t-nav svg { width: 18px; height: 18px; flex-shrink: 0; }
.t-sidebar .spacer { flex: 1; }
.t-usercard { margin-top: 1rem; padding: .85rem; border: 1px solid var(--border); border-radius: .8rem; background: var(--card); }
.t-usercard .row { display: flex; align-items: center; gap: .6rem; }
.t-usercard .av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; color: #fff; }
.t-usercard .nm { font-size: .85rem; font-weight: 600; }
.t-usercard .em { font-size: .72rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 130px; }

.t-main { padding: 1.5rem 2rem 4rem; max-width: 1280px; }
.t-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.75rem; }
.t-topbar .title h1 { font-size: 1.5rem; font-weight: 700; }
.t-topbar .title p { font-size: .85rem; color: var(--muted); }
.t-topbar .actions { display: flex; gap: .75rem; align-items: center; }

/* stat cards row */
.kpi-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin-bottom: 1.5rem; }
.kpi { padding: 1.25rem; }
.kpi .lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.kpi .val { font-size: 1.6rem; font-weight: 700; margin-top: .35rem; }
.kpi .delta { font-size: .8rem; margin-top: .25rem; }
.kpi .delta.up { color: var(--emerald); } .kpi .delta.down { color: var(--rose); }

/* generic grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 1.25rem; }
.grid-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 1.25rem; }
.section-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 1rem; display: flex; align-items: center; justify-content: space-between; }

/* tables */
.tbl { width: 100%; border-collapse: collapse; font-size: .85rem; }
.tbl th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: .6rem .5rem; border-bottom: 1px solid var(--border); font-weight: 600; }
.tbl td { padding: .75rem .5rem; border-bottom: 1px solid var(--border); }
.tbl tr:hover td { background: rgba(255,255,255,.02); }
.tbl .mono { font-family: 'JetBrains Mono',monospace; }
.up { color: var(--emerald); } .down { color: var(--rose); }

/* live lounge */
.lounge { padding: 1.25rem; }
.lounge-item { display: flex; gap: .75rem; padding: .75rem 0; border-bottom: 1px solid var(--border); }
.lounge-item:last-child { border: 0; }
.lounge-item .av { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-weight: 700; font-size: .78rem; }
.lounge-item .txt { font-size: .85rem; line-height: 1.45; }
.lounge-item .txt .nm { font-weight: 600; } .lounge-item .txt .when { font-size: .72rem; color: var(--muted-2); }

/* market coin row */
.coin-row { display: flex; align-items: center; justify-content: space-between; padding: .85rem 1rem; border-bottom: 1px solid var(--border); transition: background .15s; }
.coin-row:hover { background: rgba(255,255,255,.03); }
.coin-row .l { display: flex; align-items: center; gap: .75rem; }
.coin-bubble { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .7rem; }
.coin-row .sym { font-weight: 700; font-size: .9rem; }
.coin-row .px { font-family: 'JetBrains Mono',monospace; font-size: .82rem; color: var(--muted); }

/* ===== Live meme-coins market chart (Top tab) ===== */
.mm-card { padding: 0; overflow: hidden; }
/* Full-screen variant: spans the full terminal content width, taller rows */
.mm-full { margin-bottom: 1.5rem; }
.mm-full .mm-tbl { min-width: 1080px; font-size: .9rem; }
.mm-full .mm-tbl td { padding: 1rem 1rem; }
.mm-full .mm-chart { width: 130px; height: 44px; }
.mm-full .mm-pair .nm { font-size: .95rem; }
.mm-full .mm-pair .sub { font-size: .76rem; }
.mm-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.25rem .9rem; gap: 1rem; flex-wrap: wrap;
}
.mm-head .l { display: flex; align-items: center; gap: .6rem; }
.mm-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.mm-filters { display: flex; gap: .35rem; }
.mm-tf {
  border: 1px solid var(--border); background: rgba(255,255,255,.03); color: var(--muted);
  font-size: .72rem; font-weight: 600; padding: .28rem .6rem; border-radius: .5rem;
  cursor: pointer; font-family: inherit; transition: all .15s;
}
.mm-tf:hover { color: #fff; background: rgba(255,255,255,.06); }
.mm-tf.active { background: var(--grad-brand-soft); border-color: rgba(141,84,255,.4); color: var(--violet-2); }
.mm-table-wrap { overflow-x: auto; }
.mm-tbl { width: 100%; border-collapse: collapse; font-size: .84rem; min-width: 900px; }
.mm-tbl th {
  text-align: left; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); padding: .55rem .9rem; border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); font-weight: 600; white-space: nowrap;
}
.mm-tbl td { padding: .7rem .9rem; border-bottom: 1px solid var(--border); vertical-align: middle; white-space: nowrap; }
.mm-tbl tbody tr { transition: background .15s; }
.mm-tbl tbody tr:hover td { background: rgba(255,255,255,.02); }
.mm-pair { display: flex; align-items: center; gap: .7rem; }
.mm-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .66rem; flex-shrink: 0; color: #fff; position: relative; overflow: hidden; }
/* Real coin logo image fills the circle; monogram sits behind as fallback */
.mm-ic-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; z-index: 2; background: #0b0e14; }
.mm-ic-mono { position: relative; z-index: 1; }
.mm-ic-fallback img { display: none; }
.mm-pair .nm { font-weight: 700; font-size: .88rem; }
.mm-pair .sub { font-size: .72rem; color: var(--muted); }
.mm-chart { width: 120px; height: 40px; display: block; }
.mm-price { font-weight: 700; }
.mm-mcap { font-family: 'JetBrains Mono',monospace; font-weight: 700; }
.mm-chg { font-family: 'JetBrains Mono',monospace; font-size: .76rem; font-weight: 600; }
.mm-num { font-family: 'JetBrains Mono',monospace; }
.mm-tok { font-size: .76rem; line-height: 1.5; }
.mm-tok .row { display: flex; align-items: center; gap: .35rem; }
.mm-tok .dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.mm-trade {
  border: none; border-radius: .55rem; padding: .45rem .95rem; font-size: .78rem; font-weight: 700;
  cursor: pointer; font-family: inherit; color: #fff; background: var(--grad-brand);
  box-shadow: 0 6px 20px -8px rgba(141,84,255,.55); transition: filter .15s, transform .15s;
  text-decoration: none; display: inline-block;
}
.mm-trade:hover { filter: brightness(1.12); transform: translateY(-1px); }
.mm-flash-up { animation: mmFlashUp .5s ease; }
.mm-flash-down { animation: mmFlashDown .5s ease; }
@keyframes mmFlashUp { 0% { color: #5ee9b5; } 100% { color: inherit; } }
@keyframes mmFlashDown { 0% { color: #ff6b8a; } 100% { color: inherit; } }

/* ===== Real-time live "New launches & fast movers" chart (markets tab) ===== */
.nl-card { overflow: hidden; }
.nl-card .section-title { display: flex; align-items: center; gap: .6rem; }
.nl-table-wrap { overflow-x: auto; padding-top: .4rem; }
.nl-tbl { width: 100%; border-collapse: collapse; font-size: .84rem; min-width: 720px; }
.nl-tbl th {
  text-align: left; font-size: .66rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); padding: .55rem .9rem; border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); font-weight: 600; white-space: nowrap;
}
.nl-tbl td { padding: .68rem .9rem; border-bottom: 1px solid var(--border); vertical-align: middle; white-space: nowrap; }
.nl-tbl tbody tr { transition: background .15s; }
.nl-tbl tbody tr:hover td { background: rgba(255,255,255,.02); }
.nl-price { font-weight: 700; }
.nl-chg { font-weight: 600; }
.nl-chg.up { color: #00d294; }
.nl-chg.down { color: #ff2357; }

/* ===== Verified trader tick (thick badge) ===== */
.verified-tick {
  display: inline-grid; place-items: center; vertical-align: -2px; margin-left: .15rem;
  color: #1d9bf0; line-height: 0;
}
.verified-tick svg { display: block; filter: drop-shadow(0 0 3px rgba(29,155,240,.45)); }

/* ===== Dynamic live Current Positions ===== */
.pos-card { overflow: hidden; }
.pos-card .section-title { display: flex; align-items: center; gap: .75rem; }
.pos-live-total { font-family: 'JetBrains Mono',monospace; font-weight: 700; font-size: .82rem; padding: .2rem .55rem; border-radius: .5rem; background: rgba(255,255,255,.04); border: 1px solid var(--border); }
.pos-live-total.up { color: #00d294; border-color: rgba(0,210,148,.3); }
.pos-live-total.down { color: #ff2357; border-color: rgba(255,35,87,.3); }
.pos-table-wrap { overflow-x: auto; }
.pos-tbl { min-width: 720px; }
.pos-tbl td { vertical-align: middle; }
.pos-mark { font-weight: 700; }
.pos-spark { width: 96px; }
.pos-spark-svg { width: 90px; height: 30px; display: block; }
.pos-pnl { font-weight: 700; white-space: nowrap; }
.pos-pnl.up { color: #00d294; }
.pos-pnl.down { color: #ff2357; }

/* ===== Dynamic live Trade page ===== */
.trd-live-badge { display: inline-flex; align-items: center; gap: .4rem; font-size: .7rem; font-weight: 700; color: #00d294; text-transform: uppercase; letter-spacing: .08em; }
.trd-live-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #00d294; animation: ownerLivePulse 1.6s ease-in-out infinite; }
.trd-price-hero { display: flex; align-items: baseline; gap: .7rem; padding: .25rem 0 .5rem; }
.trd-price-hero .px { font-family: 'JetBrains Mono',monospace; font-size: 1.7rem; font-weight: 800; }
.trd-price-hero .chg { font-family: 'JetBrains Mono',monospace; font-size: .85rem; font-weight: 700; }
.trd-price-hero .chg.up { color: #00d294; }
.trd-price-hero .chg.down { color: #ff2357; }
.trd-chart { width: 100%; height: 120px; display: block; background: rgba(255,255,255,.02); border: 1px solid var(--border); border-radius: .6rem; }
.trd-est { font-family: 'JetBrains Mono',monospace; }
.trd-ticker { display: flex; gap: 1rem; overflow-x: auto; padding: .5rem .25rem; scrollbar-width: none; }
.trd-ticker::-webkit-scrollbar { display: none; }
.trd-tick { flex-shrink: 0; font-family: 'JetBrains Mono',monospace; font-size: .76rem; display: flex; gap: .4rem; align-items: center; padding: .3rem .6rem; background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: .5rem; cursor: pointer; transition: border-color .15s; }
.trd-tick:hover { border-color: rgba(141,84,255,.4); }
.trd-tick.active { border-color: rgba(141,84,255,.6); background: var(--grad-brand-soft); }
.trd-tick .sym { font-weight: 700; color: #fff; }
.trd-tick .up { color: #00d294; }
.trd-tick .down { color: #ff2357; }

/* copy trader card */
.trader-card { padding: 1.25rem; }
.trader-card .head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.trader-card .av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; }
.trader-card .nm { font-weight: 700; } .trader-card .hd { font-size: .78rem; color: var(--muted); }
.trader-card .stats { display: grid; grid-template-columns: repeat(4,1fr); gap: .75rem; margin-bottom: 1rem; }
.trader-card .stats .s .n { font-size: 1rem; font-weight: 700; } .trader-card .stats .s .l { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* deposit / wallet */
.deposit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.qr-box { aspect-ratio: 1; max-width: 220px; background: #fff; border-radius: 1rem; display: grid; place-items: center; margin: 0 auto; }
.addr-box { display: flex; align-items: center; gap: .5rem; padding: .75rem 1rem; border: 1px solid var(--border); border-radius: .7rem; background: rgba(255,255,255,.03); font-family: 'JetBrains Mono',monospace; font-size: .8rem; word-break: break-all; }

/* =========================================================
   OWNER / ADMIN CONSOLE
   ========================================================= */
.owner-gate { min-height: 100vh; display: grid; place-items: center; padding: 2rem; position: relative; overflow: hidden; }
.owner-gate::before { content:''; position:absolute; top:-20%; left:50%; transform:translateX(-50%); width:700px; height:500px; border-radius:50%; background: radial-gradient(circle, rgba(141,84,255,.16), transparent 60%); filter: blur(60px); }
.owner-card { width: 100%; max-width: 440px; position: relative; }
.owner-card .ic-wrap { width: 60px; height: 60px; border-radius: 1rem; display: grid; place-items: center; margin: 0 auto 1.25rem; background: var(--grad-brand-soft); border: 1px solid rgba(141,84,255,.25); }
.owner-card .ic-wrap svg { width: 28px; height: 28px; stroke: var(--violet-2); }
.owner-card h1 { text-align: center; font-size: 1.6rem; font-weight: 800; }
.owner-card .sub { text-align: center; color: var(--muted); font-size: .9rem; margin-bottom: 1.75rem; }

.owner-layout { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.owner-side { border-right: 1px solid var(--border); background: rgba(255,255,255,.02); padding: 1.5rem 1rem; display: flex; flex-direction: column; }
.owner-side .brand { display: flex; align-items: center; gap: .75rem; padding: 0 .5rem 1.25rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.owner-side .tag { font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: var(--emerald); font-weight: 700; }
.owner-nav { display: flex; flex-direction: column; gap: .15rem; }
.owner-nav a { display: flex; align-items: center; gap: .75rem; padding: .6rem .75rem; border-radius: .6rem; font-size: .88rem; color: var(--muted); }
.owner-nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.owner-nav a.active { background: rgba(0,210,148,.12); color: #fff; border: 1px solid rgba(0,210,148,.2); }
.owner-main { padding: 1.5rem 2rem 4rem; max-width: 1280px; }

.user-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr; gap: 1rem; align-items: center; padding: .9rem 1rem; border-bottom: 1px solid var(--border); }
.user-row:hover { background: rgba(255,255,255,.02); }
.user-row .uinfo { display: flex; align-items: center; gap: .75rem; }
.user-row .av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .8rem; }
.user-row .nm { font-weight: 600; font-size: .88rem; } .user-row .em { font-size: .74rem; color: var(--muted); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .features-grid, .stats-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mev-inner, .wc-card, .auth-wrap, .terminal-layout, .owner-layout { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .t-sidebar, .owner-side { display: none; }
  .tp-body { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-2-1, .grid-1-2, .kpi-grid, .deposit-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px) {
  .features-grid, .stats-grid, .footer-grid, .kpi-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .user-row { grid-template-columns: 1fr; gap: .5rem; }
}

/* misc animations */
.float-y { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
.fade-in { animation: fadeIn .4s ease both; }
@keyframes fadeIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }

/* ===== Owner Console Gate ===== */
.owner-gate-wrap { min-height: 100vh; display: grid; place-items: center; padding: 2rem; background: var(--bg); position: relative; overflow: hidden; }
.owner-gate-wrap::before { content:''; position:absolute; top:-20%; left:50%; transform:translateX(-50%); width:700px; height:500px; border-radius:50%; background: radial-gradient(circle, rgba(141,84,255,.18), transparent 60%); filter: blur(60px); }
.owner-gate-wrap::after { content:''; position:absolute; bottom:-25%; right:-10%; width:600px; height:500px; border-radius:50%; background: radial-gradient(circle, rgba(225,42,251,.12), transparent 60%); filter: blur(70px); }
.owner-gate-card { width: 100%; max-width: 460px; position: relative; z-index: 1; background: rgba(20,20,28,.7); border: 1px solid var(--border); border-radius: 1.25rem; padding: 2.5rem 2rem; backdrop-filter: blur(20px); box-shadow: 0 24px 80px rgba(0,0,0,.5); }
.owner-gate-brand { text-align: center; margin-bottom: 1.75rem; }
.owner-logo-mark { width: 64px; height: 64px; margin: 0 auto 1rem; display: grid; place-items: center; background: var(--grad-brand-soft); border: 1px solid rgba(141,84,255,.3); border-radius: 1rem; }
.owner-logo-mark.sm { width: 40px; height: 40px; border-radius: .6rem; }
.owner-gate-title { font-size: 1.5rem; font-weight: 800; letter-spacing: .06em; background: linear-gradient(120deg, #fff, var(--violet-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.owner-gate-sub { color: var(--muted); font-size: .82rem; margin-top: .35rem; }
.owner-gate-badge { display: inline-block; font-size: .65rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; padding: .35rem .8rem; border-radius: 999px; background: rgba(141,84,255,.15); color: var(--violet-2); border: 1px solid rgba(141,84,255,.3); margin-bottom: .75rem; }
.owner-gate-badge-on { background: rgba(0,210,148,.15); color: var(--emerald); border-color: rgba(0,210,148,.3); }
.owner-gate-hint { color: var(--muted); font-size: .86rem; line-height: 1.5; margin-bottom: 1.5rem; }
.owner-gate-form { display: flex; flex-direction: column; gap: 1rem; }
.owner-gate-form .field { display: flex; flex-direction: column; gap: .4rem; }
.owner-gate-form .field > span { font-size: .78rem; color: var(--muted); font-weight: 600; }
.owner-gate-foot { text-align: center; margin-top: 1.75rem; }
.owner-gate-foot a { color: var(--muted); font-size: .82rem; text-decoration: none; }
.owner-gate-foot a:hover { color: var(--violet-2); }

/* ===== Owner Dashboard ===== */
.owner-shell { min-height: 100vh; background: var(--bg); color: #fff; }
.owner-topbar { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); background: rgba(20,20,28,.6); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 50; }
.owner-topbar-left { display: flex; align-items: center; gap: .75rem; }
.owner-topbar-title { font-weight: 800; font-size: .95rem; letter-spacing: .05em; }
.owner-topbar-sub { font-size: .72rem; color: var(--muted); }
.owner-topbar-right { display: flex; gap: .5rem; align-items: center; }
.owner-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1.5rem; }
.owner-kpi { background: rgba(20,20,28,.6); border: 1px solid var(--border); border-radius: 1rem; padding: 1.25rem; }
.owner-kpi-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.owner-kpi-value { font-size: 1.6rem; font-weight: 800; margin: .35rem 0 .15rem; font-family: 'JetBrains Mono', monospace; }
.owner-kpi-meta { font-size: .72rem; color: var(--muted); }
.owner-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.5rem; padding: 0 1.5rem; }
.owner-panel { background: rgba(20,20,28,.55); border: 1px solid var(--border); border-radius: 1rem; padding: 1.5rem; }
@keyframes ownerLivePulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.35;transform:scale(.8)} }
.owner-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.owner-panel-head h2 { font-size: 1.05rem; font-weight: 700; }
.owner-empty { color: var(--muted); font-size: .88rem; padding: 1.5rem; text-align: center; }
.owner-form { display: flex; flex-direction: column; gap: 1rem; }
.owner-form .field { display: flex; flex-direction: column; gap: .35rem; }
.owner-form .field > span { font-size: .76rem; color: var(--muted); font-weight: 600; }
.owner-form-row { display: grid; grid-template-columns: repeat(3,1fr) auto; gap: 1rem; align-items: flex-end; }
.owner-broadcast-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .75rem; }
.owner-broadcast-list li { padding: .85rem 1rem; background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: .6rem; }
.owner-bcast-title { font-weight: 700; font-size: .9rem; display: flex; align-items: center; gap: .5rem; }
.owner-bcast-body { font-size: .82rem; color: var(--muted); margin: .25rem 0; }
.owner-bcast-time { font-size: .7rem; color: var(--muted); opacity: .7; }
.owner-table-wrap { overflow-x: auto; }
.owner-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.owner-reject-form { display: flex; gap: .4rem; align-items: center; }
.owner-inline-form { display: flex; gap: .4rem; align-items: center; }
.owner-user-cell { display: flex; align-items: center; gap: .6rem; }
.owner-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .8rem; color: #fff; flex-shrink: 0; }
.input-sm { padding: .35rem .5rem; font-size: .78rem; }
.badge-muted { background: rgba(255,255,255,.08); color: var(--muted); }
.badge-info { background: rgba(98,95,255,.18); color: #8b87ff; }

@media (max-width: 980px) {
  .owner-kpis { grid-template-columns: repeat(2,1fr); }
  .owner-grid { grid-template-columns: 1fr; }
  .owner-form-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .owner-kpis { grid-template-columns: 1fr; }
  .owner-topbar-right .btn-sm { padding: .3rem .5rem; font-size: .72rem; }
}

/* ===== Owner Modals (Edit & Delete) ===== */
.owner-modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.72); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem; animation: fadeIn .2s ease both;
}
.owner-modal {
  width: 100%; max-height: 90vh; overflow-y: auto;
  background: rgba(18,18,24,0.97); border: 1px solid var(--border-strong);
  border-radius: 1.25rem; box-shadow: 0 30px 80px rgba(0,0,0,.6);
  animation: modalUp .25s ease both;
}
@keyframes modalUp { from{opacity:0;transform:translateY(20px) scale(.97)} to{opacity:1;transform:translateY(0) scale(1)} }
.owner-modal-sm { max-width: 440px; }
.owner-modal-lg { max-width: 720px; }
.owner-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: rgba(18,18,24,0.98); z-index: 2;
}
.owner-modal-head h3 { font-size: 1.05rem; font-weight: 700; }
.owner-modal-close {
  width: 32px; height: 32px; border-radius: .5rem; font-size: 1.4rem;
  display: grid; place-items: center; color: var(--muted);
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
}
.owner-modal-close:hover { background: rgba(255,255,255,.1); color: #fff; }
.owner-modal-body { padding: 1.5rem; }
.owner-modal-text { font-size: .95rem; color: #fff; }
.owner-modal-text strong { color: var(--violet-2); }
.owner-modal-warn { font-size: .82rem; color: var(--muted); margin-top: .75rem; line-height: 1.5; }
.owner-modal-foot {
  display: flex; gap: .75rem; justify-content: flex-end;
  padding: 1rem 1.5rem; border-top: 1px solid var(--border);
  position: sticky; bottom: 0; background: rgba(18,18,24,0.98);
}

/* Edit user form */
.owner-edit-form { padding: 1.5rem; }
.owner-edit-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.owner-edit-form .field { display: flex; flex-direction: column; gap: .35rem; }
.owner-edit-form .field > span { font-size: .76rem; color: var(--muted); font-weight: 600; }

/* Edit & Delete buttons in table */
.owner-btn-edit {
  display: inline-flex; align-items: center; justify-content: center;
}
.owner-btn-delete {
  display: inline-flex; align-items: center; justify-content: center;
}

@media (max-width: 640px) {
  .owner-edit-grid { grid-template-columns: 1fr; }
  .owner-modal-foot { flex-direction: column-reverse; }
  .owner-modal-foot .btn { width: 100%; }
}

/* =========================================================
   TERMINAL — TOP HEADER LAYOUT (matches original axioradev.online)
   Replaces sidebar with sticky top header + sub-nav bar
   ========================================================= */
.terminal-shell { min-height: 100vh; background: var(--bg); }

/* Sticky top header — h-14 equivalent (56px) */
.t-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: rgba(0,0,0,.72);
  border-bottom: 1px solid var(--border);
}
.t-header-inner {
  max-width: 1440px; margin: 0 auto; padding: 0 1.5rem;
  height: 56px; display: flex; align-items: center; gap: 1.5rem;
}
.t-header-brand { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }

/* Horizontal nav */
.t-header-nav { display: flex; align-items: center; gap: 1.25rem; flex: 1; overflow-x: auto; scrollbar-width: none; }
.t-header-nav::-webkit-scrollbar { display: none; }
.t-header-nav a {
  font-size: .85rem; color: var(--muted); font-weight: 500;
  white-space: nowrap; transition: color .15s; position: relative; padding: .2rem 0;
}
.t-header-nav a:hover { color: #fff; }
.t-header-nav a.active { color: #fff; }
.t-header-nav a.active::after {
  content: ''; position: absolute; bottom: -18px; left: 0; right: 0; height: 2px;
  background: var(--violet-2); border-radius: 2px;
}

/* Right actions */
.t-header-actions { display: flex; align-items: center; gap: .85rem; flex-shrink: 0; margin-left: auto; }
.t-sol-balance {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .35rem .7rem; border-radius: 999px;
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
  font-size: .82rem;
}
.t-sol-icon { color: var(--violet-2); font-size: 1rem; }
.t-sol-amt { font-weight: 700; color: #fff; font-family: 'JetBrains Mono', monospace; }
.t-sol-unit { color: var(--muted); font-size: .72rem; }
.t-deposit-btn { font-size: .8rem; }

/* ===== Connect Wallet button (top bar, matches original axiora) ===== */
.t-wallet-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .42rem .8rem; border-radius: .6rem;
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
  color: #fff; font-size: .8rem; font-weight: 600;
  cursor: pointer; transition: all .15s; white-space: nowrap;
  font-family: inherit;
}
.t-wallet-btn:hover { background: rgba(141,84,255,.14); border-color: rgba(141,84,255,.45); }
.t-wallet-btn svg { color: var(--violet-2); flex-shrink: 0; }
.t-wallet-connected { gap: .4rem; }
.t-wallet-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #00d294; box-shadow: 0 0 6px rgba(0,210,148,.8); flex-shrink: 0;
}
.t-wallet-addr { font-family: 'JetBrains Mono', monospace; font-size: .76rem; color: #e6e6ef; }

/* ===== Balance pill -> Deposit/Withdraw dropdown ===== */
.t-balance-wrap { position: relative; }
.t-balance-btn { cursor: pointer; border: 1px solid var(--border); font-family: inherit; transition: all .15s; }
.t-balance-btn:hover { background: rgba(141,84,255,.12); border-color: rgba(141,84,255,.4); }
.t-balance-caret { color: var(--muted); margin-left: .1rem; transition: transform .15s; }
.t-balance-wrap .t-balance-btn[aria-expanded="true"] .t-balance-caret,
.t-balance-wrap:has(.t-balance-menu.show) .t-balance-caret { transform: rotate(180deg); }
.t-balance-menu {
  position: absolute; top: calc(100% + 8px); right: 0; left: auto;
  width: 292px; min-width: 292px; max-width: calc(100vw - 20px);
  background: #1c1c28; border: 1px solid rgba(141,84,255,.32); border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.55); padding: 1rem 1rem .9rem; z-index: 60;
  display: none; flex-direction: column; gap: .25rem;
}
.t-balance-menu.show { display: flex; }
.t-bm-btn {
  display: flex; align-items: center; gap: .55rem;
  width: 100%; padding: .55rem .7rem; border-radius: .55rem;
  background: transparent; border: none; color: #e6e6ef;
  font-size: .84rem; font-weight: 600; cursor: pointer; text-align: left;
  font-family: inherit; transition: background .12s;
}
.t-bm-btn:hover { background: rgba(141,84,255,.14); }
.t-bm-deposit svg { color: #00d294; }
.t-bm-withdraw svg { color: var(--violet-2); }

/* Portfolio panel (rich balance dropdown) */
.t-portfolio-panel { width: 100%; }
.tpp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .15rem; }
.tpp-label { font-size: .72rem; color: var(--muted); letter-spacing: .02em; }
.tpp-tabs { display: flex; gap: .25rem; background: rgba(255,255,255,.05); border-radius: 999px; padding: 2px; }
.tpp-tab {
  border: none; background: transparent; color: var(--muted); font-size: .68rem; font-weight: 600;
  padding: .18rem .6rem; border-radius: 999px; cursor: pointer; font-family: inherit;
  transition: background .15s, color .15s;
}
.tpp-tab.active { background: var(--violet, #7c3aed); color: #fff; }
.tpp-total { font-size: 1.7rem; font-weight: 800; color: #fff; letter-spacing: -.01em; margin: .1rem 0 .8rem; }
.tpp-convert { display: flex; align-items: center; gap: .45rem; }
.tpp-asset-wrap { position: relative; flex: 1; display: flex; }
.tpp-asset {
  flex: 1; display: flex; align-items: center; gap: .45rem; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: .5rem .6rem; cursor: pointer;
  position: relative; color: #fff; transition: border-color .15s; font-family: inherit;
}
.tpp-asset:hover { border-color: rgba(141,84,255,.5); }
.tpp-asset-icon { display: inline-flex; align-items: center; }
.tpp-asset-sym { font-size: .82rem; font-weight: 700; }
.tpp-caret { margin-left: auto; color: var(--muted); font-size: .6rem; }
.tpp-swap { color: var(--muted); display: flex; align-items: center; flex-shrink: 0; }
.tpp-dropdown {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: #16161f; border: 1px solid rgba(141,84,255,.4); border-radius: 10px;
  padding: .3rem; z-index: 320; box-shadow: 0 12px 28px rgba(0,0,0,.55);
  flex-direction: column; gap: 2px;
}
.tpp-dropdown.show { display: flex; }
.tpp-dd-item {
  display: flex; align-items: center; gap: .5rem; width: 100%; background: transparent; border: none;
  color: #fff; font-size: .8rem; font-weight: 600; padding: .45rem .5rem; border-radius: 8px;
  cursor: pointer; text-align: left; font-family: inherit; transition: background .12s;
}
.tpp-dd-item:hover { background: rgba(141,84,255,.18); }
.tpp-dd-item.active { background: rgba(141,84,255,.22); }
.tpp-dd-icon { display: inline-flex; align-items: center; flex-shrink: 0; }
.tpp-values { display: flex; align-items: center; gap: .45rem; margin: .6rem 0 .9rem; font-size: .82rem; }
.tpp-val { color: #fff; font-weight: 600; }
.tpp-val-arrow { color: var(--violet-2, #8d54ff); font-weight: 700; }
.tpp-actions { display: flex; gap: .5rem; }
.tpp-btn {
  flex: 1; border: none; border-radius: 10px; padding: .6rem 0; font-size: .82rem; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: filter .15s, background .15s;
}
.tpp-btn-deposit { background: var(--violet, #7c3aed); color: #fff; }
.tpp-btn-deposit:hover { filter: brightness(1.12); }
.tpp-btn-withdraw { background: rgba(255,255,255,.06); color: #fff; border: 1px solid rgba(255,255,255,.12); }
.tpp-btn-withdraw:hover { background: rgba(255,255,255,.1); }

/* Withdraw-unlock notice: persistent warning banner shown when balance < 800 SOL.
   Hidden by default; JS adds .show when the balance is below the minimum. */
.tpp-unlock {
  display: none;
  align-items: flex-start;
  gap: .5rem;
  margin: 0 0 .8rem;
  padding: .6rem .7rem;
  border-radius: 10px;
  background: rgba(120, 96, 20, .18);          /* olive/brown warning tone */
  border: 1px solid rgba(216, 178, 74, .35);
  color: #f0d98c;
  font-size: .76rem;
  line-height: 1.4;
}
.tpp-unlock.show { display: flex; }
.tpp-unlock-icon { flex-shrink: 0; margin-top: .05rem; color: #e6c65a; }
.tpp-unlock-msg { flex: 1; }


/* ===== Toast notifications (withdraw conditions 1 & 2) ===== */
.ax-toast-wrap {
  position: fixed; top: 70px; right: 18px; z-index: 4000;
  display: flex; flex-direction: column; gap: .6rem; pointer-events: none;
}
.ax-toast {
  pointer-events: auto; display: flex; align-items: flex-start; gap: .65rem;
  min-width: 280px; max-width: 360px; padding: .8rem .95rem;
  border-radius: 12px; font-size: .82rem; line-height: 1.45; color: #fff;
  background: linear-gradient(180deg,#1b1b24 0%,#14141b 100%);
  border: 1px solid rgba(141,84,255,.35);
  box-shadow: 0 18px 50px rgba(0,0,0,.6);
  opacity: 0; transform: translateX(24px);
  transition: opacity .25s ease, transform .25s ease;
}
.ax-toast.show { opacity: 1; transform: translateX(0); }
.ax-toast-icon { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; display: grid; place-items: center; }
.ax-toast-msg { flex: 1; }
.ax-toast.warn { border-color: rgba(245,158,11,.45); }
.ax-toast.warn .ax-toast-icon { color: #f59e0b; }
.ax-toast.error { border-color: rgba(244,63,94,.45); }
.ax-toast.error .ax-toast-icon { color: #f43f5e; }
.ax-toast.info .ax-toast-icon { color: var(--violet-2, #a78bfa); }

/* Notification bell */
.t-bell {
  position: relative; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: .6rem;
  color: var(--muted); transition: all .15s; cursor: pointer;
}
.t-bell:hover { background: rgba(255,255,255,.06); color: #fff; }
.t-bell-dot {
  position: absolute; top: 4px; right: 4px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: var(--rose); color: #fff;
  font-size: .62rem; font-weight: 700; display: grid; place-items: center;
  border: 2px solid var(--bg);
}

/* ===== Notification bell dropdown ===== */
.t-bell-wrap { position: relative; }
button.t-bell { background: none; border: 0; font-family: inherit; }
.t-bell-menu {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: 340px; max-width: calc(100vw - 24px);
  background: rgba(20,20,28,.97);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: .9rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all .18s; z-index: 70; overflow: hidden;
}
.t-bell-menu.show { opacity: 1; visibility: visible; transform: translateY(0); }
.t-bell-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: .8rem .95rem; border-bottom: 1px solid var(--border);
}
.t-bell-title { font-size: .9rem; font-weight: 700; color: #fff; }
.t-bell-markread {
  background: none; border: 0; cursor: pointer; font-family: inherit;
  font-size: .74rem; font-weight: 600; color: var(--violet-2);
  padding: .2rem .35rem; border-radius: .35rem; transition: all .12s;
}
.t-bell-markread:hover { background: rgba(141,84,255,.14); color: #fff; }
.t-bell-markread:disabled { opacity: .55; cursor: default; }
.t-bell-list { max-height: 340px; overflow-y: auto; }
.t-bell-item {
  display: flex; gap: .65rem; padding: .75rem .95rem;
  border-bottom: 1px solid var(--border); align-items: flex-start;
}
.t-bell-item:last-child { border-bottom: 0; }
.t-bell-item.unread { background: rgba(141,84,255,.05); }
.t-bell-ic {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-size: .82rem; font-weight: 700; color: #fff;
}
.t-bell-body { flex: 1; min-width: 0; }
.t-bell-item-title { font-size: .85rem; font-weight: 600; color: #fff; }
.t-bell-item-text { font-size: .78rem; color: var(--muted); margin-top: .12rem; line-height: 1.4; }
.t-bell-item-when { font-size: .68rem; color: var(--muted-2, #6b6b7a); margin-top: .28rem; }
.t-bell-new {
  align-self: center; flex-shrink: 0;
  font-size: .62rem; font-weight: 700; color: var(--violet-2);
  background: rgba(141,84,255,.14); border: 1px solid rgba(141,84,255,.3);
  padding: .12rem .4rem; border-radius: 999px;
}
.t-bell-empty { padding: 1.75rem 1rem; text-align: center; color: var(--muted); font-size: .84rem; }
.t-bell-viewall {
  display: block; text-align: center; padding: .7rem;
  font-size: .78rem; font-weight: 600; color: var(--violet-2);
  border-top: 1px solid var(--border); transition: all .12s;
}
.t-bell-viewall:hover { background: rgba(141,84,255,.1); color: #fff; }

/* Avatar with dropdown */
.t-avatar-wrap { position: relative; }
.t-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: .82rem; color: #fff;
  cursor: pointer; border: 2px solid var(--border); transition: border-color .15s;
}
.t-avatar-wrap:hover .t-avatar { border-color: var(--violet-2); }
.t-avatar-menu {
  position: absolute; top: calc(100% + 10px); right: 0;
  min-width: 240px; background: rgba(20,20,28,.96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: .9rem;
  padding: .5rem; box-shadow: 0 20px 60px rgba(0,0,0,.5);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all .18s; z-index: 60;
}
.t-avatar-wrap:hover .t-avatar-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.t-am-head { padding: .65rem .75rem .75rem; border-bottom: 1px solid var(--border); margin-bottom: .5rem; }
.t-am-name { font-size: .9rem; font-weight: 700; }
.t-am-email { font-size: .76rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-am-balance { display: flex; flex-direction: column; gap: .3rem; padding: .5rem .75rem; margin-bottom: .5rem; border-radius: .6rem; background: rgba(255,255,255,.03); font-size: .78rem; }
.t-am-balance strong { font-family: 'JetBrains Mono', monospace; }
.t-avatar-menu a, .t-avatar-menu button {
  display: block; width: 100%; text-align: left;
  padding: .55rem .75rem; border-radius: .5rem;
  font-size: .85rem; color: var(--muted); transition: all .12s;
}
.t-avatar-menu a:hover, .t-avatar-menu button:hover { background: rgba(255,255,255,.06); color: #fff; }
.t-am-admin { color: var(--emerald) !important; font-weight: 600; }
.t-am-logout { background: none; border: 0; cursor: pointer; color: var(--rose) !important; margin-top: .25rem; border-top: 1px solid var(--border); border-radius: 0 0 .5rem .5rem; padding-top: .75rem; }
.t-am-logout:hover { color: #fff !important; }

/* Sub-nav filter bar — h-10 equivalent (40px) */
.t-subnav {
  position: sticky; top: 56px; z-index: 45;
  background: rgba(8,8,12,.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.t-subnav-inner {
  max-width: 1440px; margin: 0 auto; padding: 0 1.5rem;
  height: 40px; display: flex; align-items: center; gap: 1.25rem;
  overflow-x: auto; scrollbar-width: none;
}
.t-subnav-inner::-webkit-scrollbar { display: none; }
.t-subnav a {
  font-size: .82rem; color: var(--muted); font-weight: 500;
  white-space: nowrap; transition: color .15s; padding: .2rem 0;
}
.t-subnav a:hover { color: #fff; }
.t-subnav a.active { color: var(--emerald); font-weight: 700; }
.t-subnav-sep { width: 1px; height: 18px; background: var(--border); flex-shrink: 0; }

/* Main content area (replaces .t-main) */
.t-content { padding: 1.5rem 1.5rem 4rem; max-width: 1440px; margin: 0 auto; width: 100%; }

/* Responsive — collapse header nav on small screens */
@media (max-width: 1024px) {
  .t-header-nav { gap: 1rem; }
}
@media (max-width: 768px) {
  /* The row must be allowed to shrink, and the action cluster must be pinned
     to the right edge so the bar looks aligned and stretches full width. */
  .t-header-inner { padding: 0 .6rem; gap: .5rem; min-width: 0; }
  .t-header-nav { display: none; }
  .t-subnav-inner { padding: 0 .75rem; gap: 1rem; }
  .t-content { padding: 1rem .75rem 3rem; }
  .t-deposit-btn { display: none; }

  /* Brand may shrink/truncate; it must never push the actions off-screen. */
  .t-header-brand { min-width: 0; flex-shrink: 1; overflow: hidden; }
  .t-header-brand .brand-word {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
  }

  /* Actions pinned right, allowed to shrink, never wrapping. */
  .t-header-actions {
    gap: .4rem; margin-left: auto; flex-shrink: 1; min-width: 0;
    justify-content: flex-end; flex-wrap: nowrap;
  }

  /* Keep the user's balance visible on mobile (compact pill) but let it shrink. */
  .t-sol-balance {
    display: inline-flex; padding: .3rem .5rem; font-size: .74rem; gap: .25rem;
    min-width: 0; max-width: 42vw; overflow: hidden;
  }
  .t-sol-amt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .t-balance-wrap { min-width: 0; display: flex; }

  /* Connect Wallet stays visible on every mobile width — icon-only, compact. */
  .t-wallet-label { display: none; }
  .t-wallet-btn {
    display: inline-flex; padding: .42rem .5rem; flex-shrink: 0;
    width: 34px; height: 34px; justify-content: center; gap: 0;
  }
  .t-wallet-connected { width: auto; padding: .42rem .55rem; gap: .35rem; }
  .t-wallet-addr { font-size: .7rem; }

  .t-bell, .t-avatar, .t-nav-toggle { flex-shrink: 0; }
  .t-nav-toggle { display: flex; }
}

/* Extra-small phones: tighten spacing further, but KEEP Connect Wallet visible. */
@media (max-width: 480px) {
  .t-header-inner { padding: 0 .5rem; gap: .35rem; }
  .t-header-actions { gap: .3rem; }
  .t-sol-balance { font-size: .72rem; padding: .28rem .45rem; max-width: 38vw; }
  .t-header-brand .brand-word { font-size: .82rem !important; }
  .t-header-brand .logo-mark { width: 28px !important; height: 28px !important; }
  .t-header-brand .logo-mark img { width: 22px !important; height: 22px !important; }
  .t-wallet-btn { width: 32px; height: 32px; padding: .35rem; }
  .t-avatar { width: 30px; height: 30px; font-size: .76rem; }
  .t-nav-toggle { width: 36px; height: 36px; }
}

/* Very narrow phones (<=380px): hide the brand word so everything still fits. */
@media (max-width: 380px) {
  .t-header-brand .brand-word { display: none; }
  .t-sol-balance { max-width: 44vw; }
  .t-sol-unit { display: none; }
}

/* Ultra-narrow (<=340px, e.g. folded devices): drop the SOL numeric label,
   keep the pill tappable so the portfolio panel is still reachable. */
@media (max-width: 340px) {
  .t-header-actions { gap: .25rem; }
  .t-sol-balance { max-width: 34vw; padding: .26rem .4rem; }
}

/* =========================================================
   MOBILE HEADER DROPDOWNS — anchor to the viewport, not the button
   ---------------------------------------------------------
   On phones the balance pill / bell / avatar sit near the right edge, so a
   right:0 absolute panel (292–340px wide) spills off the LEFT of the screen.
   Below 768px we switch these panels to position:fixed and inset them from
   both edges, which centres them in the available width and guarantees the
   whole panel is on-screen and scrollable.
   ========================================================= */
@media (max-width: 768px) {
  .t-balance-menu,
  .t-bell-menu,
  .t-avatar-menu {
    position: fixed;
    top: 60px;                 /* just below the 56px sticky header */
    left: 10px;
    right: 10px;
    width: auto;
    min-width: 0;
    max-width: none;
    margin: 0 auto;
    max-height: calc(100vh - 74px);
    max-height: calc(100dvh - 74px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Balance / portfolio panel: cap width so it stays a panel, centred. */
  .t-balance-menu {
    max-width: 360px;
    z-index: 120;
  }

  /* Notification panel: centred, never clipped on the left. */
  .t-bell-menu {
    max-width: 380px;
    z-index: 120;
  }
  /* The list scrolls inside the panel rather than the panel overflowing. */
  .t-bell-list { max-height: calc(100vh - 200px); max-height: calc(100dvh - 200px); }

  .t-avatar-menu {
    max-width: 300px;
    left: auto; right: 10px;   /* avatar menu reads better right-aligned */
    z-index: 120;
  }

  /* Tap targets inside the portfolio panel stay comfortable on mobile. */
  .tpp-total { font-size: 1.5rem; }
  .tpp-btn { padding: .6rem .5rem; }
}

/* =========================================================
   WALLET — Connect / Disconnect / Reconnect UI
   ========================================================= */

/* Connected wallet card */
.wallet-connected {
  display: flex; flex-direction: column; gap: 1.25rem;
}
.wallet-connected-info {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1.1rem 1.25rem; border: 1px solid var(--border); border-radius: .8rem;
  background: rgba(255,255,255,.02);
}
.wallet-provider-badge {
  min-width: 64px; height: auto; padding: .6rem .95rem; border-radius: .6rem; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  font-size: .8rem; font-weight: 800; line-height: 1.15; white-space: nowrap;
  text-transform: uppercase; letter-spacing: .05em; color: #fff;
  background: var(--grad-brand-soft); border: 1px solid rgba(141,84,255,.3);
}
.wallet-provider-phantom { background: linear-gradient(135deg, #ab9ff2, #5b4bd6); border-color: rgba(171,159,242,.4); }
.wallet-provider-backpack { background: linear-gradient(135deg, #ff6b4a, #d93b2a); border-color: rgba(255,107,74,.4); }
.wallet-provider-solflare { background: linear-gradient(135deg, #ffba34, #e8920c); border-color: rgba(255,186,52,.4); }
.wallet-provider-glow { background: linear-gradient(135deg, #34d399, #059669); border-color: rgba(52,211,153,.4); }
.wallet-provider-trust { background: linear-gradient(135deg, #3375bb, #1d4f8a); border-color: rgba(51,117,187,.4); }
.wallet-provider-metaMask { background: linear-gradient(135deg, #f6851b, #cd6111); border-color: rgba(246,133,27,.4); }
.wallet-provider-other { background: linear-gradient(135deg, #6b7280, #374151); border-color: rgba(107,114,128,.4); }
.wallet-connected-detail { flex: 1; min-width: 0; padding-left: 1.5rem; border-left: 1px solid var(--border); }
.wallet-connected-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .35rem; }
.wallet-connected-address {
  font-family: 'JetBrains Mono', monospace; font-size: .85rem; font-weight: 600; color: #fff;
  word-break: break-all; line-height: 1.4;
}
.wallet-connected-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* Disconnected wallet card */
.wallet-disconnected {
  text-align: center; padding: 2rem 1rem; display: flex; flex-direction: column; align-items: center;
}
.wallet-disconnected-icon {
  width: 72px; height: 72px; border-radius: 50%; margin-bottom: 1rem;
  display: grid; place-items: center; color: var(--muted);
  background: rgba(255,255,255,.03); border: 1px solid var(--border);
}
/* ===== 3-Step Wallet Connect Wizard ===== */

/* Overlay (shared by all 3 steps) */
.wc-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.75); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  flex-direction: column; align-items: center; justify-content: flex-start;
  padding: 1.5rem 1rem; overflow-y: auto; -webkit-overflow-scrolling: touch;
  animation: wcFadeIn .18s ease;
}
.wc-overlay.show { display: flex; }
.wc-modal {
  width: 100%; max-width: 460px; background: #0d0d14;
  border: 1px solid rgba(255,255,255,.08); border-radius: 1.25rem;
  box-shadow: 0 24px 80px rgba(0,0,0,.7);
  animation: wcUp .22s ease;
  flex-shrink: 0;
}
.wc-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem; gap: 1rem;
  position: sticky; top: 0; background: #0d0d14; z-index: 2;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.wc-modal-head h3 { font-size: 1.05rem; font-weight: 700; color: #fff; flex: 1; text-align: center; }
.wc-back {
  width: 32px; height: 32px; border-radius: .5rem; cursor: pointer;
  display: grid; place-items: center; color: var(--muted);
  font-size: 1.1rem; transition: all .15s; flex-shrink: 0;
}
.wc-back:hover { background: rgba(255,255,255,.08); color: #fff; }
.wc-close {
  width: 32px; height: 32px; border-radius: .5rem; border: 0; cursor: pointer;
  background: rgba(255,255,255,.05); color: var(--muted); font-size: .9rem;
  display: grid; place-items: center; transition: all .15s; flex-shrink: 0;
}
.wc-close:hover { background: rgba(255,255,255,.12); color: #fff; }
.wc-subtitle { text-align: center; color: var(--muted); font-size: .85rem; padding: .75rem 1.5rem 0; }

/* Step 1: wallet list */
.wc-wallet-list { padding: 1rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.wc-wallet-item {
  display: flex; align-items: center; gap: .85rem; width: 100%;
  padding: .85rem 1rem; border-radius: .75rem; cursor: pointer;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
  transition: all .15s; text-align: left;
}
.wc-wallet-item:hover {
  background: rgba(139,84,255,.08); border-color: rgba(139,84,255,.3);
  transform: translateX(2px);
}
.wc-wallet-icon { width: 40px; height: 40px; border-radius: .6rem; display: grid; place-items: center; flex-shrink: 0; overflow: hidden; }
.wc-wallet-icon svg { border-radius: .4rem; }
.wc-wallet-name { font-weight: 600; font-size: .95rem; color: #fff; flex-shrink: 0; min-width: 110px; }
.wc-wallet-tap { flex: 1; font-size: .8rem; color: var(--muted); }
.wc-wallet-detected {
  font-size: .72rem; color: var(--muted); padding: .2rem .55rem;
  border-radius: 1rem; background: rgba(255,255,255,.05); flex-shrink: 0;
}

/* Step 2: security warning */
.wc-warn-card { padding: 0 1.5rem; }
.wc-warn-wallet {
  display: flex; align-items: center; gap: .85rem;
  padding: 1rem; border-radius: .75rem; margin-bottom: 1.25rem;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
}
.wc-warn-wallet-name { font-weight: 700; font-size: 1rem; color: #fff; }
.wc-warn-wallet-sub { font-size: .8rem; color: var(--muted); }
.wc-info-row {
  display: flex; align-items: flex-start; gap: .85rem; margin-bottom: 1.1rem;
}
.wc-info-icon {
  width: 36px; height: 36px; border-radius: .6rem; display: grid; place-items: center;
  flex-shrink: 0; margin-top: .1rem;
}
.wc-info-green { background: rgba(0,210,148,.1); }
.wc-info-blue { background: rgba(59,130,246,.1); }
.wc-info-amber { background: rgba(245,158,11,.1); }
.wc-info-title { font-weight: 600; font-size: .9rem; color: #fff; margin-bottom: .2rem; }
.wc-info-desc { font-size: .8rem; color: var(--muted); line-height: 1.4; }
.wc-info-warn { color: #f59e0b; }
.wc-info-warn-desc { color: rgba(245,158,11,.6); }
.wc-continue-btn {
  display: block; width: calc(100% - 3rem); margin: 1.25rem 1.5rem 1.5rem;
  padding: .85rem; border-radius: .75rem; border: 0; cursor: pointer;
  background: #fff; color: #000; font-weight: 700; font-size: .95rem;
  transition: all .15s;
}
.wc-continue-btn:hover { background: #f0f0f0; transform: translateY(-1px); }

/* Step 3: recovery phrase */
.wc-phrase-section { padding: 0 1.5rem; margin-bottom: .85rem; }
.wc-phrase-label {
  display: flex; align-items: center; gap: .4rem;
  font-size: .85rem; color: #fff; margin-bottom: .85rem; font-weight: 600;
}
.wc-phrase-label svg { color: var(--muted); }
.wc-word-toggle {
  display: inline-flex; gap: .25rem; padding: .25rem;
  background: rgba(255,255,255,.05); border-radius: .6rem; margin-bottom: .85rem;
}
.wc-toggle-btn {
  padding: .4rem .85rem; border-radius: .45rem; border: 0; cursor: pointer;
  background: transparent; color: var(--muted); font-size: .8rem; font-weight: 600;
  transition: all .15s;
}
.wc-toggle-btn.active { background: #fff; color: #000; }
.wc-phrase-input {
  display: block; width: calc(100% - 3rem); margin: 0 1.5rem;
  min-height: 100px; padding: .85rem 1rem; border-radius: .75rem;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  color: #fff; font-size: .9rem; font-family: 'SF Mono', 'Fira Code', monospace;
  resize: vertical; line-height: 1.5; transition: border-color .15s;
}
.wc-phrase-input:focus { outline: none; border-color: var(--violet-2); }
.wc-phrase-input::placeholder { color: rgba(255,255,255,.25); }
.wc-word-counter {
  padding: .5rem 1.5rem 0; font-size: .78rem; color: var(--muted); text-align: right;
}
.wc-import-btn {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  width: calc(100% - 3rem); margin: 1rem 1.5rem .75rem;
  padding: .85rem; border-radius: .75rem; border: 0; cursor: pointer;
  background: #fff; color: #000; font-weight: 700; font-size: .95rem;
  transition: all .15s;
}
.wc-import-btn:hover:not(:disabled) { background: #f0f0f0; transform: translateY(-1px); }
.wc-import-btn:disabled { opacity: .35; cursor: not-allowed; }
.wc-phrase-footer {
  padding: 0 1.5rem 1.5rem; font-size: .75rem; color: var(--muted);
  text-align: center; line-height: 1.4;
}

@keyframes wcFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes wcUp { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* Responsive */
@media (max-width: 640px) {
  .wallet-connected-info { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .wallet-connected-detail { padding-left: 0; border-left: 0; padding-top: 1rem; border-top: 1px solid var(--border); width: 100%; }
  .wallet-connected-actions { width: 100%; }
  .wallet-connected-actions .btn { flex: 1; }
  .wc-modal { max-width: 100%; }
  .wc-wallet-name { min-width: auto; }
  .wc-wallet-tap { display: none; }
}

/* ============================================================
   AI AUTO PAGE
   ============================================================ */
.ai-auto-page { max-width: 920px; margin: 0 auto; }

/* Hero */
.ai-hero { text-align: center; padding: 2rem 1rem 1.5rem; }
.ai-engine-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .9rem; border-radius: 2rem;
  background: var(--grad-brand-soft); border: 1px solid rgba(141,84,255,.3);
  color: var(--violet-2); font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  margin-bottom: 1rem;
}
.ai-engine-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--violet-2);
  box-shadow: 0 0 8px var(--violet-2); animation: blink 1.6s infinite;
}
.ai-hero-title {
  font-size: 2.2rem; font-weight: 800; margin: 0 0 .5rem;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ai-hero-desc {
  font-size: .92rem; color: var(--muted); max-width: 560px; margin: 0 auto 1.25rem; line-height: 1.5;
}
.ai-feature-chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem;
}
.ai-chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .4rem .8rem; border-radius: .6rem; font-size: .78rem; font-weight: 600;
  background: var(--card-2); border: 1px solid var(--border); color: #d8d8e8;
}
.ai-chip-ic { font-size: .85rem; }

/* Lock banner */
.ai-lock-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
  padding: 1.1rem 1.25rem; margin-bottom: 1.5rem; border-radius: 1rem;
  background: rgba(249,156,0,.08); border: 1px solid rgba(249,156,0,.3);
}
.ai-lock-left { display: flex; align-items: flex-start; gap: .85rem; flex: 1; min-width: 0; }
.ai-lock-icon {
  width: 40px; height: 40px; border-radius: .6rem; flex-shrink: 0;
  display: grid; place-items: center; background: rgba(249,156,0,.15); color: #ffd236;
}
.ai-lock-text { min-width: 0; }
.ai-lock-title { font-size: .92rem; font-weight: 700; color: #ffd236; margin-bottom: .25rem; }
.ai-lock-sub { font-size: .8rem; color: var(--muted); line-height: 1.45; }
.ai-lock-sub strong { color: #ffd236; }
.ai-lock-right { display: flex; flex-direction: column; align-items: flex-end; gap: .65rem; flex-shrink: 0; }
.ai-lock-progress-wrap { display: flex; align-items: center; gap: .6rem; }
.ai-lock-progress-bar {
  width: 130px; height: 6px; border-radius: 3px; background: rgba(249,156,0,.15); overflow: hidden;
}
.ai-lock-progress-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, #f99c00, #ffd236);
  transition: width .6s ease;
}
.ai-lock-progress-pct { font-size: .75rem; font-weight: 700; color: #ffd236; }
.btn-amber { background: linear-gradient(135deg, #f99c00, #ffd236); color: #1a1100; font-weight: 700; }
.btn-amber:hover { transform: translateY(-1px); box-shadow: 0 6px 20px -6px rgba(249,156,0,.5); }
.ai-deposit-sol-btn { white-space: nowrap; }

/* Cooldown banner (early-stop re-activation lock) */
.ai-cooldown-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
  padding: 1.1rem 1.25rem; margin-bottom: 1.5rem; border-radius: 1rem;
  background: rgba(225,42,251,.08); border: 1px solid rgba(225,42,251,.3);
}
.ai-cooldown-left { display: flex; align-items: flex-start; gap: .85rem; flex: 1; min-width: 0; }
.ai-cooldown-icon {
  width: 40px; height: 40px; border-radius: .6rem; flex-shrink: 0;
  display: grid; place-items: center; background: rgba(225,42,251,.15); color: #e12afb; font-size: 1.2rem;
}
.ai-cooldown-text { min-width: 0; }
.ai-cooldown-title { font-size: .92rem; font-weight: 700; color: #e12afb; margin-bottom: .25rem; }
.ai-cooldown-sub { font-size: .8rem; color: var(--muted); line-height: 1.45; }
.ai-cooldown-timer {
  font-size: 1.6rem; font-weight: 800; color: #e12afb; font-variant-numeric: tabular-nums;
  letter-spacing: .04em; flex-shrink: 0;
}

/* Session progress banner (6h window) */
.ai-session-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
  padding: 1rem 1.25rem; margin-bottom: 1.5rem; border-radius: 1rem;
  background: rgba(0,210,148,.07); border: 1px solid rgba(0,210,148,.28);
  font-size: .88rem; color: #d8d8e8;
}
.ai-session-left { display: flex; align-items: center; gap: .6rem; flex: 1; min-width: 0; }
.ai-session-left strong { color: var(--emerald); font-variant-numeric: tabular-nums; }
.ai-session-live-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--emerald); flex-shrink: 0;
  animation: aiPulse 1.4s ease-in-out infinite;
}
.ai-session-bar {
  width: 160px; height: 6px; border-radius: 3px; background: rgba(0,210,148,.15);
  overflow: hidden; flex-shrink: 0;
}
.ai-session-fill {
  height: 100%; width: 0%; border-radius: 3px;
  background: linear-gradient(90deg, #00d294, #00b8e6);
  transition: width 1s linear;
}
@media (max-width: 720px) {
  .ai-cooldown-banner, .ai-session-banner { flex-direction: column; align-items: flex-start; }
  .ai-session-bar { width: 100%; }
}

/* KPI grid for AI page */
.ai-kpi-grid { margin-bottom: 1.5rem; }
.ai-kpi-grid .kpi .delta.muted { color: var(--muted); }

/* Config grid */
.ai-config-grid {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.25rem; margin-bottom: 1.5rem;
}
.ai-bot-card, .ai-scanner-card { padding: 1.5rem; }

.ai-config-row { margin-bottom: 1.5rem; }
.ai-config-row:last-child { margin-bottom: 0; }
.ai-config-label { font-size: .85rem; font-weight: 600; margin-bottom: .75rem; color: #d8d8e8; }
.ai-capital-val { color: var(--violet-2); font-weight: 700; }

/* Risk toggle */
.ai-risk-toggle {
  display: flex; gap: .5rem;
}
.ai-risk-btn {
  flex: 1; padding: .65rem; border-radius: .6rem; cursor: pointer;
  background: var(--card-2); border: 1px solid var(--border);
  color: var(--muted); font-weight: 700; font-size: .82rem; letter-spacing: .04em;
  transition: all .15s;
}
.ai-risk-btn:hover { border-color: var(--border-strong); color: #d8d8e8; }
.ai-risk-btn.active {
  background: var(--violet); border-color: var(--violet); color: #fff;
  box-shadow: 0 4px 16px -4px rgba(141,84,255,.5);
}

/* Capital slider */
.ai-slider-wrap { display: flex; align-items: center; gap: .75rem; }
.ai-slider-min, .ai-slider-max { font-size: .75rem; color: var(--muted); flex-shrink: 0; }
.ai-capital-slider {
  flex: 1; -webkit-appearance: none; appearance: none;
  height: 6px; border-radius: 3px; outline: none; cursor: pointer;
  background: linear-gradient(90deg, var(--violet) 0%, var(--violet) 50%, var(--card-2) 50%, var(--card-2) 100%);
}
.ai-capital-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  border: 3px solid var(--violet); cursor: pointer;
  box-shadow: 0 2px 8px rgba(141,84,255,.4);
}
.ai-capital-slider::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  border: 3px solid var(--violet); cursor: pointer;
}

/* Neural scanner */
.ai-scanner-card { display: flex; flex-direction: column; }
.ai-scanner-text { font-size: .88rem; color: #d8d8e8; margin-bottom: 1rem; }
.ai-scanner-text strong { color: var(--violet-2); }
.ai-scanner-bar {
  height: 8px; border-radius: 4px; background: var(--card-2); overflow: hidden;
  margin-bottom: 1rem; position: relative;
}
.ai-scanner-fill {
  height: 100%; width: 45%; border-radius: 4px;
  background: linear-gradient(90deg, #00d294, #00b8e6, #8d54ff, #e12afb);
  background-size: 200% 100%;
  animation: aiScan 3s linear infinite;
}
@keyframes aiScan {
  0% { background-position: 0% 0; width: 30%; }
  50% { width: 75%; }
  100% { background-position: 200% 0; width: 30%; }
}
.ai-scanner-foot { display: flex; justify-content: space-between; margin-top: auto; }

/* Live AI signals */
.ai-signals-card { padding: 1.5rem; margin-bottom: 1.5rem; }
.ai-signals-empty {
  text-align: center; padding: 2rem 1rem;
}
.ai-signals-empty-ic {
  font-size: 2rem; margin-bottom: .75rem; opacity: .5;
}
.ai-signals-empty p { color: var(--muted); font-size: .85rem; max-width: 380px; margin: 0 auto; line-height: 1.5; }

/* CTA */
.ai-cta-wrap { text-align: center; padding: 1rem 0 2rem; }
.ai-cta-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: 1rem 2.5rem; border-radius: .85rem; border: 0; cursor: pointer;
  background: var(--grad-brand); color: #fff; font-weight: 700; font-size: 1.05rem;
  box-shadow: 0 10px 40px -10px rgba(141,84,255,.6);
  transition: all .2s;
}
.ai-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -10px rgba(225,42,251,.7); }
.ai-cta-note { font-size: .8rem; margin-top: .85rem; }

/* Responsive */
@media (max-width: 720px) {
  .ai-config-grid { grid-template-columns: 1fr; }
  .ai-lock-banner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .ai-lock-right { align-items: flex-start; width: 100%; flex-direction: row; justify-content: space-between; }
  .ai-hero-title { font-size: 1.7rem; }
  .ai-cta-btn { width: 100%; }
}

/* ============ DEPOSIT / CONVERT MODAL ============ */
.dm-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(4, 4, 9, 0.9);
    backdrop-filter: blur(8px);
    z-index: 3000;
    padding: 24px 16px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-y: auto;
}
.dm-overlay.show { display: flex; }

.dm-modal {
    background: linear-gradient(180deg, #17171f 0%, #111118 100%);
    border: 1px solid rgba(141, 84, 255, 0.28);
    border-radius: 20px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75);
    flex-shrink: 0;
    margin: auto;
    color: #e8e8f0;
}

.dm-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 0;
}
.dm-modal-title { font-size: 18px; font-weight: 800; color: #ffffff; letter-spacing: 0.2px; }
.dm-close {
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: #9a9aab;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    transition: all 0.2s;
}
.dm-close:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

/* Tabs */
.dm-tabs {
    display: flex;
    gap: 4px;
    margin: 14px 20px 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 11px;
    padding: 4px;
}
.dm-tab {
    flex: 1;
    padding: 9px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #9a9aab;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.dm-tab:hover { color: #d5d5e0; }
.dm-tab.active { background: rgba(141, 84, 255, 0.22); color: #c4a5ff; }

.dm-tab-content { padding: 18px 20px 22px; }

/* ---- Convert header ---- */
.dm-convert-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.dm-convert-title { font-size: 14px; font-weight: 700; color: #f0f0f6; }
.dm-convert-time { font-size: 11px; color: #00d294; font-weight: 600; }

/* ---- Convert fields ---- */
.dm-convert-field {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    padding: 12px 14px;
}
.dm-convert-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #8a8a9c;
    margin-bottom: 8px;
}
.dm-convert-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.dm-convert-input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    padding: 0;
}
.dm-convert-input::placeholder { color: #4d4d60; }
.dm-convert-input::-webkit-outer-spin-button,
.dm-convert-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.dm-convert-input[type=number] { -moz-appearance: textfield; appearance: textfield; }
#dmToAmount { color: #00d294; }

.dm-convert-rate { font-size: 11px; color: #8a8a9c; margin-top: 7px; font-weight: 600; }
.dm-convert-usd { font-size: 11px; color: #5b5b70; margin-top: 2px; }

/* Currency selector pill */
.dm-currency-selector {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 7px 11px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    user-select: none;
}
.dm-currency-selector:hover { background: rgba(141, 84, 255, 0.18); border-color: rgba(141, 84, 255, 0.45); }
.dm-currency-icon { display: inline-flex; align-items: center; line-height: 0; }
.dm-currency-icon svg { display: block; }
.dm-currency-name { color: #ffffff; }
.dm-chevron { color: #9a9aab; flex-shrink: 0; }

/* Dropdowns */
.dm-dropdown {
    display: none;
    margin-top: 8px;
    background: #1c1c28;
    border: 1px solid rgba(141, 84, 255, 0.32);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
}
.dm-dropdown.show { display: block; }
.dm-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    color: #e8e8f0;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.dm-dropdown-item:hover { background: rgba(141, 84, 255, 0.14); }
.dm-dropdown-item.active { background: rgba(141, 84, 255, 0.2); color: #c4a5ff; }
.dm-dd-icon { display: inline-flex; align-items: center; line-height: 0; }
.dm-dd-icon svg { display: block; }

/* Swap arrow */
.dm-swap-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(141, 84, 255, 0.16);
    border: 1px solid rgba(141, 84, 255, 0.42);
    color: #c4a5ff;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px auto;
}
.dm-swap-arrow:hover { background: rgba(141, 84, 255, 0.32); transform: rotate(180deg); }

.dm-exchange-rate {
    text-align: center;
    font-size: 12px;
    color: #9a9aab;
    margin: 12px 0;
    font-weight: 600;
}

.dm-confirm-btn {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #4a8bff, #3b6fe0);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.dm-confirm-btn:hover { filter: brightness(1.15); transform: translateY(-1px); }

/* ---- Deposit tab ---- */
.dm-deposit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    position: relative;
}
.dm-deposit-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 8px 13px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}
.dm-deposit-selector:hover { border-color: rgba(141, 84, 255, 0.45); }
.dm-deposit-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: auto;
    width: 200px;
    min-width: 170px;
    max-width: 100%;
    z-index: 50;
    margin-top: 0;
}
.dm-history-link {
    color: #a585ff;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}
.dm-history-link:hover { text-decoration: underline; }

.dm-deposit-desc {
    font-size: 12px;
    color: #9a9aab;
    line-height: 1.55;
    margin: 0 0 16px;
}

.dm-deposit-body { margin-bottom: 16px; }
.dm-qr-section { text-align: center; margin-bottom: 14px; }
.dm-qr-box {
    width: 150px;
    height: 150px;
    margin: 0 auto 8px;
    background: #ffffff;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dm-qr-box svg { width: 100%; height: 100%; display: block; }
.dm-qr-label { font-size: 11px; color: #9a9aab; font-weight: 600; }

.dm-addr-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    padding: 12px 14px;
}
.dm-addr-text {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    color: #f0f0f6;
    word-break: break-all;
    flex: 1;
}
.dm-copy-link {
    background: none;
    border: none;
    color: #a585ff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
}
.dm-copy-link:hover { text-decoration: underline; }

/* Accepting */
.dm-accepting { margin-bottom: 14px; }
.dm-accepting-label {
    font-size: 11px;
    color: #8a8a9c;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 8px;
}
.dm-accepting-coins { display: flex; gap: 8px; flex-wrap: wrap; }
.dm-accept-coin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    padding: 7px 12px;
    color: #cfcfda;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}
.dm-accept-coin svg { display: block; }
.dm-accept-coin:hover { border-color: rgba(141, 84, 255, 0.45); }
.dm-accept-coin.active { background: rgba(141, 84, 255, 0.16); border-color: #8d54ff; color: #c4a5ff; }

.dm-copy-addr-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #4a8bff, #3b6fe0);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 18px;
}
.dm-copy-addr-btn:hover { filter: brightness(1.15); }

/* Verify section */
.dm-verify-section {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 16px;
}
.dm-verify-title { font-size: 13px; font-weight: 700; color: #f0f0f6; margin-bottom: 8px; }
.dm-verify-desc { font-size: 12px; color: #9a9aab; line-height: 1.55; margin: 0 0 12px; }
.dm-verify-note { display: block; margin-top: 6px; color: #f0b429; font-weight: 600; }

.dm-field { margin-bottom: 12px; }
.dm-field-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #8a8a9c;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.dm-field-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 10px;
    padding: 11px 13px;
    color: #ffffff;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}
.dm-field-input:focus { border-color: #8d54ff; background: rgba(141, 84, 255, 0.05); }
.dm-field-input::placeholder { color: #4d4d60; }

.dm-submit-btn {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #8d54ff, #6c3fd4);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.dm-submit-btn:hover { filter: brightness(1.15); transform: translateY(-1px); }

@media (max-width: 520px) {
    .dm-modal { max-width: 100%; border-radius: 16px; }
    .dm-tab-content { padding: 14px 16px 18px; }
    .dm-convert-input { font-size: 18px; }
}

/* ===== Active Copies: live total + sparkline ===== */
.ac-card { overflow: hidden; }
.ac-live-total {
  font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 999px;
  background: rgba(0,210,148,.12); color: var(--green); border: 1px solid rgba(0,210,148,.3);
  font-variant-numeric: tabular-nums; display: inline-block; transition: background .3s, color .3s, border-color .3s;
}
.ac-live-total.down { background: rgba(255,35,87,.12); color: var(--red); border-color: rgba(255,35,87,.3); }
.ac-spark-wrap { display: flex; align-items: center; }
.ac-spark { width: 80px; height: 26px; display: block; }

/* ===== Position close: toast + balance flash ===== */
.close-toast {
  position: fixed; right: 18px; bottom: 18px; z-index: 9999;
  max-width: 380px; padding: 12px 16px; border-radius: 12px;
  font-size: 13px; font-weight: 600; line-height: 1.4;
  background: rgba(20,24,33,.97); border: 1px solid rgba(0,210,148,.4); color: #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,.5);
  opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .3s;
  pointer-events: none;
}
.close-toast.show { opacity: 1; transform: translateY(0); }
.close-toast.ok { border-color: rgba(0,210,148,.5); }
.close-toast.err { border-color: rgba(255,35,87,.55); }

@keyframes balFlash {
  0% { box-shadow: 0 0 0 0 rgba(0,210,148,.55); }
  100% { box-shadow: 0 0 0 14px rgba(0,210,148,0); }
}
.t-sol-balance.bal-flash { animation: balFlash .8s ease-out; border-radius: 999px; }

/* ===== AI Auto Trade: hero split + lock badge + activate btn + live signals ===== */
.ai-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; text-align: left; }
.ai-hero-left { flex: 1; min-width: 0; }
.ai-hero-left .ai-feature-chips { justify-content: flex-start; }
.ai-hero-left .ai-hero-desc { margin-left: 0; }
.ai-hero-right { flex-shrink: 0; padding-top: .5rem; }

.ai-lock-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem 1.1rem; border-radius: .75rem;
  background: rgba(249,156,0,.1); border: 1px solid rgba(249,156,0,.4);
  color: #f9c00c; font-size: .82rem; font-weight: 700; white-space: nowrap;
}

.ai-activate-btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .8rem 1.6rem; border-radius: .8rem; border: 0; cursor: pointer;
  background: var(--grad-brand); color: #fff; font-weight: 700; font-size: .92rem;
  box-shadow: 0 8px 30px -8px rgba(141,84,255,.6);
  transition: all .2s; white-space: nowrap;
}
.ai-activate-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px rgba(225,42,251,.7); }
.ai-activate-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.85); }
.ai-activate-btn.active { background: linear-gradient(135deg,#00d294,#00b8e6); box-shadow: 0 8px 30px -8px rgba(0,210,148,.6); }
.ai-activate-btn.active .ai-activate-dot { background: #fff; animation: aiPulse 1.4s ease-in-out infinite; }
@keyframes aiPulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: .4; transform: scale(1.5);} }

/* Live signals list */
.ai-signals-list { display: flex; flex-direction: column; gap: .55rem; margin-top: .75rem; }
.ai-signal {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem .9rem; border-radius: .7rem;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07);
  animation: aiSignalIn .35s ease-out;
}
@keyframes aiSignalIn { from { opacity: 0; transform: translateY(-8px);} to { opacity: 1; transform: translateY(0);} }
.ai-signal.win { border-left: 3px solid var(--green); }
.ai-signal.loss { border-left: 3px solid var(--red); }
.ai-signal-main { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.ai-signal-sym { font-weight: 800; font-size: .9rem; }
.ai-signal-name { font-size: .78rem; }
.ai-signal-lev { font-size: .75rem; font-variant-numeric: tabular-nums; }
.ai-signal-meta { display: flex; align-items: center; gap: .9rem; }
.ai-signal-conf { font-size: .78rem; font-weight: 700; color: var(--violet-2); font-variant-numeric: tabular-nums; }
.ai-signal-pnl { font-size: .85rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.ai-signal-pnl.up { color: var(--green); }
.ai-signal-pnl.down { color: var(--red); }
.ai-signal-time { font-size: .72rem; min-width: 28px; text-align: right; }

@media (max-width: 720px) {
  .ai-hero { flex-direction: column; }
  .ai-hero-right { padding-top: 0; }
  .ai-signal { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .ai-signal-meta { width: 100%; justify-content: space-between; }
}

/* ===== Landing: hamburger / mobile nav ===== */
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: 10px; cursor: pointer; padding: 0 10px; }
.nav-toggle span { display: block; height: 2px; width: 100%; background: #fff; border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; z-index: 60; }
.mobile-nav-overlay.show { opacity: 1; visibility: visible; }
.mobile-nav { position: fixed; top: 0; right: 0; height: 100vh; width: min(320px, 84vw); background: #0a0a0f; border-left: 1px solid var(--border); z-index: 70; transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; padding: 1.25rem 1.5rem; }
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.mobile-nav-close { background: none; border: none; color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; padding: 0; }
.mobile-nav-links { display: flex; flex-direction: column; gap: .25rem; padding-top: 1.25rem; }
.mobile-nav-links a { color: #e7e7ee; text-decoration: none; font-size: 1.05rem; font-weight: 600; padding: .8rem .25rem; border-radius: 8px; transition: background .15s, color .15s; }
.mobile-nav-links a:hover { background: rgba(255,255,255,.05); color: #fff; }
.mobile-nav-links .mobile-signup { color: var(--accent, #9945ff); }
.mobile-logout-form { margin: 0; padding: 0; }
.mobile-signout { background: none; border: none; color: #e7e7ee; font-size: 1.05rem; font-weight: 600; padding: .8rem .25rem; cursor: pointer; text-align: left; width: 100%; border-radius: 8px; }
.mobile-signout:hover { background: rgba(255,255,255,.05); color: #fff; }

@media (max-width: 860px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
}

/* ===== Landing: pos-stack header (Your active copies) ===== */
.pos-stack-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .9rem; }
.pos-stack-title { font-weight: 800; font-size: 1.05rem; letter-spacing: .01em; }
.pos-stack-link { font-size: .8rem; color: var(--emerald, #00d294); text-decoration: none; font-weight: 600; }
.pos-stack-link:hover { text-decoration: underline; }
.pos-card .v.up { color: #00d294; }
.pos-card .v.down { color: #ff5c5c; }
.pos-card-empty .pr { display: flex; align-items: center; }

/* ===== Landing: support / live chat widget ===== */
.chat-widget { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; pointer-events: none; }
.chat-widget > * { pointer-events: auto; }
.chat-fab { position: relative; width: 58px; height: 58px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); cursor: pointer; display: grid; place-items: center; color: #1a1a22; background: linear-gradient(145deg, #f4f4f8, #c9c9d6); box-shadow: 0 10px 30px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.7); transition: transform .2s, box-shadow .2s; }
.chat-fab:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 14px 34px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.8); }
.chat-fab-icon { display: block; }
.chat-fab-dot { position: absolute; top: 2px; right: 4px; width: 13px; height: 13px; border-radius: 50%; background: #17e0c0; border: 2px solid #0a0a0f; box-shadow: 0 0 0 2px rgba(23,224,192,.25); }

.chat-panel { width: min(340px, calc(100vw - 44px)); height: 430px; max-height: calc(100vh - 120px); background: #0d0d14; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(0,0,0,.6); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(16px) scale(.97); transform-origin: bottom right; transition: opacity .22s, transform .22s, visibility .22s; }
.chat-panel.open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0) scale(1); }
.chat-panel-head { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1rem; background: linear-gradient(135deg, rgba(153,69,255,.22), rgba(23,224,192,.12)); border-bottom: 1px solid var(--border); }
.chat-panel-title { display: flex; align-items: center; gap: .65rem; }
.chat-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, #9945ff, #17e0c0); }
.chat-name { font-weight: 700; font-size: .92rem; }
.chat-status { display: flex; align-items: center; gap: .35rem; font-size: .72rem; color: var(--muted); }
.chat-dot { width: 8px; height: 8px; border-radius: 50%; background: #17e0c0; display: inline-block; }
.chat-close { background: none; border: none; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0; }
.chat-body { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; }
.chat-msg { max-width: 82%; padding: .6rem .8rem; border-radius: 12px; font-size: .85rem; line-height: 1.45; }
.chat-msg-bot { background: rgba(255,255,255,.06); color: #e7e7ee; align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg-user { background: linear-gradient(135deg, #9945ff, #7b2ff7); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-input-row { display: flex; align-items: center; gap: .5rem; padding: .7rem .8rem; border-top: 1px solid var(--border); background: rgba(255,255,255,.02); }
.chat-input { flex: 1; background: rgba(255,255,255,.05); border: 1px solid var(--border); border-radius: 999px; padding: .55rem .9rem; color: #fff; font-size: .85rem; outline: none; }
.chat-input:focus { border-color: rgba(153,69,255,.6); }
.chat-send { width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #9945ff, #7b2ff7); transition: transform .15s; }
.chat-send:hover { transform: scale(1.06); }

/* ===== Terminal: mobile hamburger + drawer ===== */
.t-nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: 10px; cursor: pointer; padding: 0 9px; flex-shrink: 0; }
.t-nav-toggle span { display: block; height: 2px; width: 100%; background: #fff; border-radius: 2px; transition: transform .25s, opacity .2s; }
.t-nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.t-nav-toggle.open span:nth-child(2) { opacity: 0; }
.t-nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.t-mobile-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; z-index: 80; }
.t-mobile-overlay.show { opacity: 1; visibility: visible; }
.t-mobile-nav { position: fixed; top: 0; right: 0; height: 100vh; width: min(320px, 85vw); background: #0a0a0f; border-left: 1px solid var(--border); z-index: 90; transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; padding: 1.1rem 1.4rem 1.4rem; overflow-y: auto; }
.t-mobile-nav.open { transform: translateX(0); }
.t-mobile-nav-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.t-mobile-close { background: none; border: none; color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; padding: 0; }
.t-mobile-balance { padding: 1rem .25rem; border-bottom: 1px solid var(--border); }
.t-mb-label { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.t-mb-total { font-size: 1.5rem; font-weight: 800; color: #fff; margin-top: .15rem; }
.t-mb-sol { font-size: .85rem; color: var(--muted); margin-top: .2rem; font-family: 'JetBrains Mono', monospace; }
.t-mobile-links { display: flex; flex-direction: column; gap: .1rem; padding-top: 1rem; flex: 1; }
.t-mobile-links a { color: #e7e7ee; text-decoration: none; font-size: 1.02rem; font-weight: 600; padding: .7rem .25rem; border-radius: 8px; transition: background .15s, color .15s; }
.t-mobile-links a:hover { background: rgba(255,255,255,.05); color: #fff; }
.t-mobile-links a.active { color: var(--violet-2); }
.t-mobile-links .t-mobile-admin { color: var(--amber, #f5a524); }
.t-mobile-foot { padding-top: 1rem; border-top: 1px solid var(--border); }

/* Show the terminal hamburger on small screens (declared after the base rule so it wins). */
@media (max-width: 768px) {
  .t-nav-toggle { display: flex; }
}

/* ===== Wallet: transaction history rows (clickable → receipts) ===== */
.tx-list { display: flex; flex-direction: column; }
.tx-row {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  width: 100%; text-align: left; cursor: pointer;
  padding: .85rem 1rem; border: 0; background: transparent;
  border-bottom: 1px solid var(--border); color: #fff;
  transition: background .15s; font: inherit;
}
.tx-row:last-child { border-bottom: 0; }
.tx-row:hover { background: rgba(141,84,255,.07); }
.tx-row-l { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.tx-row-amt { font-weight: 700; font-size: .92rem; }
.tx-row-sub { font-size: .76rem; color: var(--muted); word-break: break-all; }

/* ===== Receipt modal (deposit / withdrawal) ===== */
.rcpt-overlay {
  display: none; position: fixed; inset: 0; z-index: 1200;
  background: rgba(0,0,0,.78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  align-items: center; justify-content: center;
  padding: 1rem; overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.rcpt-overlay.show { display: flex; }
.rcpt-modal {
  width: 100%; max-width: 440px; flex-shrink: 0;
  margin: auto; /* keep vertically centered even when content is tall */
}

.rcpt-card {
  border-radius: 1.25rem; overflow: hidden; color: #fff;
  background: linear-gradient(160deg, #2b1650 0%, #1b0f38 55%, #120a26 100%);
  border: 1px solid rgba(168,133,255,.28);
  box-shadow: 0 30px 90px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.06);
  padding: 1.5rem 1.5rem 1.25rem;
}
.rcpt-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.rcpt-title { font-size: 1.15rem; font-weight: 800; letter-spacing: .01em; }
.rcpt-brand { font-size: .74rem; color: rgba(255,255,255,.55); margin-top: .2rem; }
.rcpt-status {
  font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  padding: .32rem .7rem; border-radius: 999px; flex-shrink: 0;
}
.rcpt-status.is-ok { background: rgba(0,210,148,.18); color: #2ee6a8; border: 1px solid rgba(0,210,148,.4); }
.rcpt-status.is-pending { background: rgba(249,156,0,.16); color: #ffb63d; border: 1px solid rgba(249,156,0,.4); }
.rcpt-status.is-bad { background: rgba(255,35,87,.16); color: #ff6b8f; border: 1px solid rgba(255,35,87,.4); }

.rcpt-amount { text-align: center; padding: .5rem 0 1.25rem; }
.rcpt-amount-sol { font-size: clamp(1.5rem, 6vw, 2rem); font-weight: 800; line-height: 1.1; word-break: break-all; }
.rcpt-amount-usd { font-size: 1rem; color: rgba(255,255,255,.7); margin-top: .3rem; }

.rcpt-details { border-top: 1px solid rgba(255,255,255,.1); padding-top: .25rem; }
.rcpt-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .62rem 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: .84rem;
}
.rcpt-row:last-child { border-bottom: 0; }
.rcpt-k { color: rgba(255,255,255,.55); flex-shrink: 0; }
.rcpt-v { font-weight: 600; text-align: right; word-break: break-all; }
.rcpt-v.mono { font-family: 'JetBrains Mono', monospace; font-size: .78rem; font-weight: 500; }

.rcpt-foot { font-size: .72rem; color: rgba(255,255,255,.45); line-height: 1.5; margin-top: 1.1rem; text-align: center; }

.rcpt-actions { display: flex; gap: .6rem; margin-top: 1rem; }
.rcpt-btn {
  flex: 1; padding: .7rem 1rem; border-radius: .7rem; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: .86rem; cursor: pointer; transition: filter .15s, transform .15s;
}
.rcpt-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.rcpt-btn-back { background: rgba(141,84,255,.18); color: #c4a8ff; border-color: rgba(141,84,255,.4); }
.rcpt-btn-print { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.18); }
.rcpt-btn-download { background: linear-gradient(135deg, #3b82f6, #2563eb); color: #fff; }
.rcpt-close-link {
  display: block; margin: .8rem auto 0; background: none; border: 0; cursor: pointer;
  color: rgba(255,255,255,.6); font: inherit; font-size: .84rem; text-decoration: underline;
}
.rcpt-close-link:hover { color: #fff; }

/* ===== Receipt responsive breakpoints ===== */
@media (max-width: 480px) {
  .rcpt-overlay { padding: .75rem; align-items: flex-start; }
  .rcpt-modal { max-width: 100%; }
  .rcpt-card { padding: 1.1rem 1rem 1rem; border-radius: 1rem; }
  .rcpt-title { font-size: 1.02rem; }
  .rcpt-head { margin-bottom: 1rem; }
  .rcpt-row { font-size: .8rem; gap: .6rem; padding: .55rem 0; }
  .rcpt-v.mono { font-size: .72rem; }
  .rcpt-actions { flex-wrap: wrap; }
  .rcpt-btn { font-size: .8rem; padding: .62rem .6rem; }
}
@media (min-width: 481px) and (max-width: 768px) {
  .rcpt-modal { max-width: 420px; }
  .rcpt-card { padding: 1.3rem 1.25rem 1.1rem; }
}

/* ===== Print: isolate the receipt card =====
   The overlay is reparented to <body> when opened (see wallet.blade.php),
   so hiding body's other children can never blank the receipt. We also
   reset every ancestor that could clip it. */
@media print {
  html, body { background: #fff !important; height: auto !important; overflow: visible !important; }
  body.rcpt-printing > *:not(.rcpt-overlay) { display: none !important; }
  body.rcpt-printing .rcpt-overlay {
    display: block !important; position: static !important; inset: auto !important;
    background: #fff !important; padding: 0 !important; margin: 0 !important;
    overflow: visible !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
    z-index: auto !important;
  }
  body.rcpt-printing .rcpt-modal { max-width: 100% !important; width: 100% !important; margin: 0 !important; }
  body.rcpt-printing .rcpt-card {
    box-shadow: none !important; border: 1px solid #ccc !important; color: #111 !important;
    background: #fff !important; border-radius: 0 !important; padding: 1rem 1.25rem !important;
  }
  body.rcpt-printing .rcpt-title,
  body.rcpt-printing .rcpt-amount-sol,
  body.rcpt-printing .rcpt-v { color: #111 !important; }
  body.rcpt-printing .rcpt-brand,
  body.rcpt-printing .rcpt-k,
  body.rcpt-printing .rcpt-amount-usd,
  body.rcpt-printing .rcpt-foot { color: #444 !important; }
  body.rcpt-printing .rcpt-status { border: 1px solid #999 !important; color: #111 !important; background: #eee !important; }
  body.rcpt-printing .rcpt-actions,
  body.rcpt-printing .rcpt-close-link { display: none !important; }
}

/* ===== Wallet: statement-style transaction rows (Screenshot 180806) ===== */
.stmt-list { display: flex; flex-direction: column; gap: .6rem; }
.stmt-row {
  display: flex; align-items: flex-start; gap: .85rem; width: 100%; text-align: left;
  cursor: pointer; padding: .9rem 1rem; border-radius: .9rem;
  background: rgba(255,255,255,.03); border: 1px solid var(--border);
  color: #fff; font: inherit; transition: background .15s, border-color .15s, transform .15s;
}
.stmt-row:hover { background: rgba(141,84,255,.08); border-color: rgba(141,84,255,.3); transform: translateX(2px); }
.stmt-ic {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
}
.stmt-ic-in { background: rgba(0,210,148,.14); color: #2ee6a8; border: 1px solid rgba(0,210,148,.35); }
.stmt-ic-out { background: rgba(141,84,255,.16); color: #b794ff; border: 1px solid rgba(141,84,255,.4); }
.stmt-body { display: flex; flex-direction: column; gap: .18rem; min-width: 0; flex: 1; }
.stmt-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.stmt-type { font-weight: 700; font-size: .9rem; }
.stmt-status { font-size: .76rem; font-weight: 600; }
.stmt-status.is-ok { color: #2ee6a8; }
.stmt-status.is-pending { color: #ffb63d; }
.stmt-status.is-bad { color: #ff6b8f; }
.stmt-amt { font-weight: 800; font-size: 1.02rem; letter-spacing: .01em; }
.stmt-amt-in { color: #2ee6a8; }
.stmt-amt-out { color: #ff6b8f; }
.stmt-sub { font-size: .76rem; color: var(--muted); word-break: break-all; }
.stmt-bar {
  display: block; height: 3px; border-radius: 999px; margin-top: .45rem;
  background: linear-gradient(90deg, var(--violet) 0%, #e12afb 60%, rgba(141,84,255,.15) 100%);
}
