/* Fortunex AI — black, gold & white design system.
   Note: the --red* variables and .red / .card-red classes are the ACCENT colour, which is now gold.
   Real red is only used for errors and losses (--danger / --neg). */
:root {
  --bg: #050505;
  --bg-2: #0B0B0E;
  --card: #111114;
  --red: #D4A537;
  --red-bright: #F0C75E;
  --red-dark: #8A6A1F;
  --red-btn-end: #B8892B;
  --glow: rgba(212, 165, 55, 0.35);
  --on-gold: #0B0B0E;
  --danger: #FF4D4F;
  --text: #FFFFFF;
  --text-soft: #E4E4E8;
  --border-strong: #3a3a42;
  --header-bg: rgba(5, 5, 5, .88);
  --overlay: rgba(17, 17, 20, .96);
  --shadow: rgba(0, 0, 0, .6);
  --gold-wash: #19150B;
  --grid: #1F1F25;
  color-scheme: dark;
  --text-2: #B5B5BC;
  --text-3: #8A8A92;
  --border: #29292F;
  --border-soft: #1A1A1F;
  --pos: #22C55E;
  --neg: #FF4D4F;
  --radius: 14px;
  --display: 'Chakra Petch', 'Segoe UI', system-ui, sans-serif;
  --body: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.55; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--red-bright); text-decoration: none; }
a:hover { color: var(--text); }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; }
p { margin: 0; }
.mono { font-family: var(--mono); }
.display { font-family: var(--display); }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.red { color: var(--red); }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
.glow-text { text-shadow: 0 0 28px rgba(212,165,55,0.45); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.stack { display: flex; flex-direction: column; }
.row { display: flex; flex-wrap: wrap; align-items: center; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; }
.between { justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 2px; }


/* ---------- Light mode (html[data-theme="light"]) ---------- */
html[data-theme="light"] {
  --bg: #FFFFFF;
  --bg-2: #F7F5F0;
  --card: #FFFFFF;
  --text: #141416;
  --text-2: #55565E;
  --text-3: #74757D;
  --text-soft: #2B2C31;
  --border: #E5DFD2;
  --border-soft: #EFEAE0;
  --border-strong: #CBC2AE;
  --red: #C9982E;
  --red-bright: #8C6512;
  --red-dark: #6E5010;
  --red-btn-end: #B08221;
  --glow: rgba(201, 152, 46, 0.30);
  --header-bg: rgba(255, 255, 255, .92);
  --overlay: rgba(255, 255, 255, .97);
  --shadow: rgba(40, 30, 10, .14);
  --gold-wash: #FBF4E2;
  --grid: #ECE6DA;
  --pos: #15803D;
  --neg: #D92D20;
  --danger: #D92D20;
  color-scheme: light;
}
html[data-theme="light"] .red { color: #A87A1C; }
html[data-theme="light"] .glow-text { text-shadow: none; }
html[data-theme="light"] .card, html[data-theme="light"] .pk, html[data-theme="light"] .tile { box-shadow: 0 1px 2px rgba(40,30,10,.04), 0 8px 24px rgba(40,30,10,.06); }
html[data-theme="light"] .hero-stat-num { text-shadow: none; color: #A87A1C; }
html[data-theme="light"] .hero-glow { opacity: .55; }
html[data-theme="light"] .badge-ok { background: rgba(21,128,61,.08); border-color: rgba(21,128,61,.35); }
html[data-theme="light"] .badge-bad { background: rgba(217,45,32,.07); border-color: rgba(217,45,32,.35); }
html[data-theme="light"] .flash-success { background: rgba(21,128,61,.06); border-color: rgba(21,128,61,.4); }
html[data-theme="light"] .flash-error { background: rgba(217,45,32,.06); border-color: rgba(217,45,32,.4); }
html[data-theme="light"] .step-num { background: #fff; }
html[data-theme="light"] .tk-price { color: var(--text-2); }

/* Theme switch button */
.theme-toggle { width: 44px; height: 44px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--card); border: 1px solid var(--border); border-radius: 10px; color: var(--red-bright); cursor: pointer; transition: border-color .2s; }
.theme-toggle:hover { border-color: var(--red); }
.theme-toggle .ic-sun { display: none; }
html[data-theme="light"] .theme-toggle .ic-sun { display: block; }
html[data-theme="light"] .theme-toggle .ic-moon { display: none; }
.side .theme-toggle { width: 38px; height: 38px; margin-left: auto; }

/* ---------- Buttons ---------- */
.btn, .btn-ghost, .btn-dark, .btn-danger, .btn-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: 10px; font: 600 15px/1 var(--body); cursor: pointer; border: 0; text-align: center; white-space: nowrap;
  transition: transform .2s, box-shadow .2s, border-color .2s, background .2s;
}
.btn { color: var(--on-gold); background: linear-gradient(180deg, #F6D57E 0%, var(--red) 55%, var(--red-btn-end) 100%); box-shadow: inset 0 0 0 1px var(--red-bright), 0 8px 28px var(--glow); }
.btn:hover { color: var(--on-gold); transform: translateY(-1px); box-shadow: inset 0 0 0 1px var(--red-bright), 0 10px 36px rgba(212,165,55,.5); }
.btn-ghost { color: var(--text); background: var(--card); border: 1px solid rgba(212,165,55,.45); }
.btn-ghost:hover { color: var(--text); border-color: var(--red-bright); }
.btn-dark { color: var(--text); background: var(--card); border: 1px solid var(--border); }
.btn-dark:hover { color: var(--text); border-color: var(--border-strong); }
.btn-danger { color: #fff; background: #7A0E14; border: 1px solid var(--danger); }
.btn-danger:hover { color: #fff; background: #9B1219; }
.btn-link { min-height: 40px; padding: 0 8px; background: none; color: var(--red-bright); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled], .btn-ghost[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: .06em; white-space: nowrap; }
.brand-name span { color: var(--red); }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { white-space: nowrap; color: var(--text); font-size: 14px; padding: 8px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover { color: var(--red-bright); }
.nav-links a.active { color: var(--red-bright); border-bottom-color: var(--red); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-actions .login { color: var(--text); font-weight: 500; padding: 12px 8px; white-space: nowrap; }
.burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: var(--card); border: 1px solid var(--border); border-radius: 10px; color: var(--text); cursor: pointer; }
.mobile-menu { display: none; }
.mobile-menu.open { display: flex; flex-direction: column; position: fixed; inset: 64px 0 0 0; z-index: 49; background: var(--bg); padding: 8px 20px 24px; overflow-y: auto; }
.mobile-menu a.m-link { display: flex; align-items: center; justify-content: space-between; min-height: 56px; border-bottom: 1px solid var(--border); color: var(--text); font-size: 18px; font-weight: 500; }
.mobile-menu a.m-link::after { content: '›'; color: var(--red-bright); }
.mobile-menu a.m-link.active { color: var(--red-bright); }
.mobile-menu .m-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.mobile-menu .m-actions .btn, .mobile-menu .m-actions .btn-ghost { min-height: 52px; }

/* ---------- Sections ---------- */
section.sec { padding: 104px 0; }
section.sec-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.eyebrow { font-family: var(--mono); font-size: 13px; color: var(--red-bright); letter-spacing: .1em; text-transform: uppercase; }
.sec-head { display: flex; flex-direction: column; gap: 14px; max-width: 660px; }
.sec-head.center { align-items: center; text-align: center; margin: 0 auto; }
.h1 { font-family: var(--display); font-weight: 700; font-size: 64px; line-height: 1.04; letter-spacing: -.01em; }
.h2 { font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 1.1; }
.h3 { font-family: var(--display); font-weight: 700; font-size: 26px; }
.lead { font-size: 18px; line-height: 1.6; color: var(--text-2); }

/* Hero */
.hero { position: relative; padding: 88px 0 72px; overflow: hidden; }
.hero::before { content: ''; position: absolute; right: -120px; top: 40px; width: 720px; height: 520px; background: radial-gradient(closest-side, rgba(212,165,55,.22), rgba(212,165,55,0) 70%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.pill { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-2); font-size: 13px; color: var(--text-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); display: inline-block; flex-shrink: 0; }
.dot.green { background: var(--pos); box-shadow: none; }
.dot.grey { background: transparent; border: 2px solid var(--text-3); box-shadow: none; }
@keyframes pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.pulse { animation: pulse 2.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Installed app (PWA): notch / home-indicator safe areas ---------- */
:root { --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px); --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px); }
.site-header { padding-top: var(--sat); }
.site-header .wrap { padding-left: max(32px, var(--sal)); padding-right: max(32px, var(--sar)); }
.mobile-menu.open { top: calc(64px + var(--sat)); padding-bottom: calc(24px + var(--sab)); }
.shell .side { padding-top: calc(24px + var(--sat)); }
body .site-footer { padding-bottom: calc(32px + var(--sab)); }
@media (max-width: 900px) { .shell .side { padding-top: calc(12px + var(--sat)); } }
html.is-app body { overscroll-behavior-y: none; -webkit-tap-highlight-color: transparent; }
html.is-app .main { padding-bottom: calc(56px + var(--sab)); }

/* Install prompt */
.install-bar { position: fixed; z-index: 90; left: 12px; right: 12px; bottom: calc(12px + var(--sab)); max-width: 520px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px;
  background: var(--overlay); border: 1px solid rgba(212,165,55,.55); border-radius: 16px; box-shadow: 0 0 40px rgba(212,165,55,.25), 0 20px 40px var(--shadow); backdrop-filter: blur(10px);
  transform: translateY(140%); transition: transform .35s ease; }
.install-bar.show { transform: translateY(0); }
.install-bar img { width: 44px; height: 44px; border-radius: 10px; background: var(--bg); flex-shrink: 0; }
.install-bar .ib-text { flex: 1 1 auto; min-width: 0; font-size: 13px; color: var(--text-2); line-height: 1.4; }
.install-bar .ib-text strong { display: block; color: var(--text); font-size: 15px; }
.install-bar .ib-close { width: 36px; height: 36px; flex-shrink: 0; border: 0; border-radius: 8px; background: transparent; color: var(--text-2); font-size: 20px; cursor: pointer; }
.install-bar .btn { min-height: 42px; padding: 0 16px; font-size: 14px; flex-shrink: 0; }

/* Live market ticker */
html:has(.ticker:not([hidden])) { scroll-padding-top: 132px; }
.ticker { position: sticky; top: calc(76px + var(--sat)); z-index: 45; display: flex; align-items: stretch; height: 44px; background: var(--bg-2); border-bottom: 1px solid var(--border); font-size: 13px; overflow: hidden; }
.ticker[hidden] { display: none; }
.ticker-label { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 0 16px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--text); background: linear-gradient(90deg, rgba(212,165,55,.22), rgba(212,165,55,.06)); border-right: 1px solid rgba(212,165,55,.4); }
.ticker-viewport { position: relative; flex: 1 1 auto; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.ticker-track { display: inline-flex; align-items: center; height: 100%; white-space: nowrap; will-change: transform; animation: tickerScroll var(--ticker-duration, 40s) linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tk { display: inline-flex; align-items: center; gap: 10px; padding: 0 22px; border-right: 1px solid var(--border-soft); font-family: var(--mono); }
.tk b { font-weight: 500; color: var(--text); }
.tk-price { color: var(--text-2); font-variant-numeric: tabular-nums; }
.ticker-src { flex: 0 0 auto; display: flex; align-items: center; padding: 0 14px; font-size: 11px; color: var(--text-3); border-left: 1px solid var(--border); }
@media (max-width: 860px) { .ticker { height: 40px; top: calc(64px + var(--sat)); } html:has(.ticker:not([hidden])) { scroll-padding-top: 116px; } .ticker-src { display: none; } .ticker-label { padding: 0 12px; } .tk { padding: 0 16px; } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } .ticker-viewport { overflow-x: auto; } }
.brand-logo { display: block; width: auto; max-width: 100%; }
.hero-visual { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 420px; }
.hero-glow { position: absolute; inset: 6% 4% 4%; background: radial-gradient(closest-side, rgba(212,165,55,.42), rgba(212,165,55,.12) 55%, rgba(212,165,55,0) 75%); filter: blur(10px); pointer-events: none; }
.hero-ring { position: absolute; width: 82%; aspect-ratio: 1; top: 4%; left: 9%; border-radius: 50%; border: 1px solid rgba(212,165,55,.35); box-shadow: 0 0 60px rgba(212,165,55,.18), inset 0 0 60px rgba(212,165,55,.12); pointer-events: none; animation: ringPulse 5s ease-in-out infinite; }
@keyframes ringPulse { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.02); } }
.hero-robot { position: relative; display: block; width: 100%; max-width: 560px; height: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 100%); mask-image: linear-gradient(to bottom, #000 82%, transparent 100%); }
@media (prefers-reduced-motion: reduce) { .hero-ring { animation: none; } }
@media (max-width: 860px) { .hero-visual { min-height: 0; max-width: 440px; margin: 0 auto; width: 100%; } .brand-logo { height: 32px !important; } }
.hero-stat { display: inline-flex; align-self: flex-start; flex-direction: column; gap: 4px; padding: 14px 20px; border: 1px solid rgba(212,165,55,.45); border-radius: 14px; background: linear-gradient(180deg, var(--gold-wash), var(--card)); box-shadow: 0 0 32px rgba(212,165,55,.15); }
.hero-stat-num { font-family: var(--mono); font-size: 34px; font-weight: 500; line-height: 1.1; color: var(--red-bright); text-shadow: 0 0 22px rgba(212,165,55,.45); font-variant-numeric: tabular-nums; }
.hero-stat-label { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
@media (max-width: 860px) { .hero-stat { align-self: stretch; } .hero-stat-num { font-size: 30px; } }
.terminal { position: relative; border: 1px solid var(--border); border-radius: 18px; background: linear-gradient(180deg, var(--card), var(--bg-2)); box-shadow: 0 0 80px rgba(212,165,55,.18), 0 30px 60px var(--shadow); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.term-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile { background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px; min-width: 0; }
.tile .k { font-size: 11px; color: var(--text-2); }
.tile .v { font-family: var(--mono); font-size: 18px; margin-top: 4px; }
.tag { display: inline-flex; align-items: center; font-family: var(--mono); font-size: 11px; color: var(--text-2); border: 1px solid var(--border); border-radius: 6px; padding: 3px 8px; white-space: nowrap; }
.tag.red { color: var(--red-bright); border-color: rgba(212,165,55,.5); }
.chart svg { display: block; width: 100%; }

/* Trust strip */
.trust { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.trust .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 22px; padding-bottom: 22px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); font-weight: 600; font-size: 14px; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.card-pad { padding: 24px; }
.card-hover { transition: border-color .25s, box-shadow .25s, transform .25s; }
.card-hover:hover { border-color: rgba(212,165,55,.6); box-shadow: 0 0 32px rgba(212,165,55,.14); transform: translateY(-2px); }
.card-red { border-color: rgba(212,165,55,.5); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.icon-box { width: 48px; height: 48px; border-radius: 12px; background: rgba(212,165,55,.1); border: 1px solid rgba(212,165,55,.35); display: inline-flex; align-items: center; justify-content: center; color: var(--red-bright); flex-shrink: 0; }
.feature { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.feature h3 { font-size: 19px; font-weight: 600; font-family: var(--body); }
.feature p { color: var(--text-2); font-size: 15px; line-height: 1.6; }

/* Steps */
.steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.steps::before { content: ''; position: absolute; left: 8%; right: 8%; top: 27px; height: 2px; background: linear-gradient(90deg, rgba(212,165,55,0), var(--red) 15%, var(--red) 85%, rgba(212,165,55,0)); }
.steps li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.step-num { width: 54px; height: 54px; border-radius: 50%; background: var(--bg); border: 2px solid var(--red); box-shadow: 0 0 20px var(--glow); display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--red-bright); }
.steps strong { font-size: 16px; }
.steps li .txt { display: flex; flex-direction: column; gap: 4px; }
.steps span.d { color: var(--text-2); font-size: 14px; line-height: 1.5; }

/* Packages */
.pk-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.pk-grid.n-1 { grid-template-columns: minmax(0, 360px); } .pk-grid.n-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pk-grid.n-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pk-grid.n-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pk { position: relative; padding: 26px 22px; display: flex; flex-direction: column; gap: 18px; }
.pk.featured { background: linear-gradient(180deg, var(--gold-wash), var(--card) 40%); border-color: var(--red); box-shadow: 0 0 44px rgba(212,165,55,.28); }
.pk-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 5px 12px; border-radius: 999px; background: var(--red); color: var(--on-gold); font-weight: 600; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; white-space: nowrap; }
.pk h3 { font-family: var(--display); font-size: 22px; }
.price { font-family: var(--mono); font-size: 26px; font-weight: 500; color: var(--red-bright); }
.price-was { font-family: var(--mono); font-size: 14px; color: var(--text-3); text-decoration: line-through; }
.off { font-size: 11px; font-weight: 600; color: var(--red-bright); border: 1px solid rgba(212,165,55,.5); border-radius: 6px; padding: 2px 6px; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--text-soft); }
.ticks li { display: flex; gap: 8px; }
.ticks li::before { content: '✓'; color: var(--red-bright); font-weight: 700; }

/* Notice / alerts */
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 16px; border: 1px solid rgba(212,165,55,.4); border-radius: 12px; background: rgba(212,165,55,.06); font-size: 14px; line-height: 1.55; color: var(--text-soft); }
.flash-stack { display: flex; flex-direction: column; gap: 8px; }
.flash { padding: 14px 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); font-size: 15px; }
.flash-success { border-color: rgba(34,197,94,.5); background: rgba(34,197,94,.08); }
.flash-error { border-color: rgba(255,77,79,.6); background: rgba(255,77,79,.08); }
.flash-info { border-color: var(--border-strong); }

/* Affiliate band */
.band { position: relative; overflow: hidden; border: 1px solid rgba(212,165,55,.5); border-radius: 22px; background: linear-gradient(120deg, var(--gold-wash) 0%, var(--card) 55%); padding: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }

/* FAQ */
details.faq { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 0 22px; }
details.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; font-weight: 600; font-size: 16px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; color: var(--red-bright); font-size: 24px; transition: transform .2s; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { margin: 0 0 20px; color: var(--text-2); line-height: 1.65; }

/* Forms */
label.lbl { font-size: 14px; color: var(--text-2); }
.field { display: flex; flex-direction: column; gap: 8px; }
.input, select.input, textarea.input {
  width: 100%; min-height: 50px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-2); color: var(--text);
  font: 400 15px var(--body);
}
textarea.input { padding: 12px 14px; min-height: 120px; line-height: 1.5; resize: vertical; }
.input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(212,165,55,.25); }
.input.mono { font-family: var(--mono); }
.input[readonly] { color: var(--text-2); }
.help { font-size: 12px; color: var(--text-3); }
.err { font-size: 13px; color: var(--danger); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-2); line-height: 1.5; min-height: 32px; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--red); flex-shrink: 0; }
fieldset.plain { border: 0; margin: 0; padding: 0; min-width: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 64px 0 32px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot-grid nav { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.foot-grid nav strong { font-size: 13px; letter-spacing: .08em; }
.foot-grid nav a { color: var(--text-2); }
.foot-grid nav a:hover { color: var(--text); }
.social { width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-2); }
.social:hover { color: var(--text); border-color: var(--red); }
.legal-note { font-size: 12px; line-height: 1.65; color: var(--text-3); }

/* Prose (legal pages) */
.prose { max-width: 760px; color: var(--text-soft); line-height: 1.75; }
.prose h2 { font-family: var(--display); font-size: 24px; margin: 32px 0 10px; color: var(--text); }
.prose p { margin: 0 0 14px; color: var(--text-2); }
.prose ul { margin: 0 0 14px; padding-left: 20px; color: var(--text-2); }
.prose li { margin-bottom: 6px; }

/* Auth */
.auth { display: flex; flex-wrap: wrap; min-height: 100vh; }
.auth-aside { position: relative; overflow: hidden; flex: 1 1 520px; min-width: 0; padding: 48px; background: var(--bg-2); border-right: 1px solid var(--border); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.auth-aside::after { content: ''; position: absolute; left: -160px; bottom: -160px; width: 560px; height: 560px; background: radial-gradient(closest-side, rgba(212,165,55,.25), rgba(212,165,55,0)); pointer-events: none; }
.auth-aside > * { position: relative; z-index: 1; }
.auth-main { flex: 1 1 480px; min-width: 0; padding: 48px 24px; display: flex; align-items: center; justify-content: center; }
.auth-box { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 22px; }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; }
.tabs a { flex: 1; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; font-weight: 600; font-size: 15px; color: var(--text-2); }
.tabs a.on { background: var(--red); color: var(--on-gold); box-shadow: 0 0 18px var(--glow); }

/* App shell (dashboard + admin) */
.shell { display: flex; flex-wrap: wrap; min-height: 100vh; }
.side { flex: 0 0 248px; min-width: 0; padding: 24px 16px; background: var(--bg-2); border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 24px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 14px; border-radius: 10px; color: var(--text-2); font-size: 15px; border-left: 3px solid transparent; }
.side-nav a:hover { color: var(--text); background: var(--card); }
.side-nav a.on { color: var(--text); background: rgba(212,165,55,.1); border-left-color: var(--red); }
.count { font-size: 11px; font-weight: 600; font-family: var(--mono); color: var(--on-gold); background: var(--red); border-radius: 999px; padding: 1px 7px; }
.main { flex: 1 1 560px; min-width: 0; padding: 28px 32px 56px; display: flex; flex-direction: column; gap: 24px; }
.page-title { font-family: var(--display); font-size: 30px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.stat { padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.stat .k { font-size: 13px; color: var(--text-2); }
.stat .v { font-family: var(--mono); font-size: 26px; }
.stat .s { font-size: 12px; color: var(--text-3); }
.app-top { display: none; }
.hide-lg { display: none; }
@media (max-width: 900px) { .hide-lg { display: block; } }

/* Tables */
.table-box { overflow-x: auto; position: relative; max-width: 100%; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tbl th { text-align: left; font-weight: 500; color: var(--text-2); padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 13px; white-space: nowrap; }
table.tbl td { padding: 13px 16px; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl td.num, table.tbl th.num { text-align: right; }
.empty { padding: 32px; text-align: center; color: var(--text-2); }

.badge { display: inline-flex; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; border: 1px solid; }
.badge-ok { color: var(--pos); background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.4); }
.badge-bad { color: var(--danger); background: rgba(255,77,79,.1); border-color: rgba(255,77,79,.45); }
.badge-neutral { color: var(--text); border-color: var(--border-strong); }
.badge-muted { color: var(--text-2); border-color: var(--border); }

.list-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-2); }
.key-box { font-family: var(--mono); font-size: 15px; padding: 12px 14px; background: var(--bg-2); border: 1px dashed rgba(212,165,55,.5); border-radius: 10px; word-break: break-all; }
.timeline { display: flex; flex-direction: column; gap: 14px; list-style: none; margin: 0; padding: 0; font-size: 14px; }
.msg { padding: 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-2); }
.msg.staff { border-color: rgba(212,165,55,.45); background: var(--gold-wash); }
.pager { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.filters .input { min-height: 42px; width: auto; }
.kv { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 10px 16px; font-size: 14px; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; word-break: break-word; }

/* Loading screen */
.loader { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: var(--bg); transition: opacity .35s; }
.loader.done { opacity: 0; pointer-events: none; }
.loader img { animation: pulse 1.4s ease-in-out infinite; filter: drop-shadow(0 0 18px rgba(212,165,55,.6)); }
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 1s linear infinite; }

@media print {
  .side, .loader, .site-header, .site-footer, .btn, .btn-ghost, .hide-lg, a[href="/dashboard/orders"] { display: none !important; }
  body { background: #fff; color: #000; }
  .card { border-color: #ccc; background: #fff; }
  .muted, .faint, .legal-note { color: #333 !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .nav-links { display: none; }
  .burger { display: inline-flex; }
}
@media (max-width: 1180px) {
  .pk-grid, .pk-grid.n-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
  .steps::before { display: none; }
}
@media (max-width: 900px) {
  .shell { flex-direction: column; flex-wrap: nowrap; }
  .side { flex: 0 0 auto; width: 100%; flex-direction: row; flex-wrap: wrap; padding: 12px 16px; gap: 12px; border-right: 0; border-bottom: 1px solid var(--border); }
  .side .side-extra { display: none; }
  .main { flex: 1 1 auto; width: 100%; }
  .side-nav { flex-direction: row; overflow-x: auto; width: 100%; min-width: 0; gap: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .side-nav a { border-left: 0; border-bottom: 2px solid transparent; border-radius: 8px; white-space: nowrap; min-height: 40px; }
  .side-nav a.on { border-bottom-color: var(--red); }
  .main { padding: 20px 16px 48px; }
}
@media (max-width: 860px) {
  .wrap { padding: 0 16px; }
  .site-header .wrap { padding-left: max(16px, var(--sal)); padding-right: max(16px, var(--sar)); }
  .site-header .wrap { height: 64px; }
  .nav-actions .login, .nav-actions .hide-sm { display: none; }
  .hero { padding: 40px 0 32px; }
  .hero-grid, .grid-2 { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .h1 { font-size: 44px; }
  .h2 { font-size: 32px; }
  .lead { font-size: 17px; }
  section.sec { padding: 56px 0; }
  .hero .ctas { flex-direction: column; align-items: stretch; }
  .hero .ctas .btn, .hero .ctas .btn-ghost { min-height: 52px; }
  .pk-grid, .pk-grid.n-2, .pk-grid.n-3, .pk-grid.n-4 { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .steps li { flex-direction: row; text-align: left; align-items: center; gap: 16px; }
  .steps li .txt { display: flex; flex-direction: column; gap: 2px; }
  .step-num { width: 44px; height: 44px; font-size: 16px; flex-shrink: 0; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .band { padding: 28px 20px; }
  .auth-aside { flex-basis: 100%; padding: 28px 20px; }
  .auth-aside .aside-extra { display: none; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .kv dd { margin-bottom: 10px; }
  .card-pad { padding: 18px; }
}
@media (max-width: 480px) {
  .term-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .term-grid .tile:nth-child(3) { display: none; }
  .terminal { padding: 12px; }
  .h1 { font-size: 40px; }
  .brand-name { font-size: 17px; }
  .nav-actions .btn { display: none; }
}

/* =====================================================================
   Hero v2 — headline + tilted dashboard preview + platforms + stats bar
   ===================================================================== */
:root {
  --dash-bg: #0C0C0F; --dash-side: #08080A; --dash-card: #111115; --dash-line: rgba(255,255,255,.06); --dash-k: #9A9AA3;
}
html[data-theme="light"] {
  --dash-bg: #FFFFFF; --dash-side: #FBFAF6; --dash-card: #FFFFFF; --dash-line: #EEE8DC; --dash-k: #6E6F77;
}
.hero2 { position: relative; overflow: hidden; padding: 56px 0 40px; }
.hero2-bg { position: absolute; inset: 0; pointer-events: none; color: var(--red); }
.hero2-bg::before { content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(900px 520px at 72% 38%, rgba(212,165,55,.16), transparent 60%),
    radial-gradient(500px 360px at 20% 55%, rgba(212,165,55,.07), transparent 70%); }
.hero2-bg::after { content: ''; position: absolute; inset: 0; opacity: .55;
  background-image: radial-gradient(rgba(240,199,94,.55) 1px, transparent 1.4px), radial-gradient(rgba(240,199,94,.35) .8px, transparent 1.2px);
  background-size: 140px 120px, 90px 70px; background-position: 0 0, 40px 30px;
  -webkit-mask-image: radial-gradient(70% 60% at 30% 60%, #000, transparent 75%); mask-image: radial-gradient(70% 60% at 30% 60%, #000, transparent 75%); }
html[data-theme="light"] .hero2-bg::after { opacity: .35; }
.hero2-net { position: absolute; left: 0; top: 18%; width: 55%; height: 70%; opacity: .22; filter: drop-shadow(0 0 3px rgba(255,200,80,.8)); }
.hero2-candles { position: absolute; right: 0; top: 14%; width: 70px; height: 52%; opacity: .55; filter: drop-shadow(0 0 8px rgba(212,165,55,.5)); }
.hero2-swoosh { position: absolute; right: -6%; bottom: -4%; width: 92%; height: 70%; opacity: .75; z-index: -1; filter: drop-shadow(0 0 6px rgba(240,199,94,.7)); }
/* Gold sparkles, light sweep and bar graph behind the hero */
.hero2-bars { position: absolute; left: 0; right: 0; top: 34%; width: 100%; height: 34%; opacity: .34;
  -webkit-mask-image: linear-gradient(90deg, transparent, rgba(0,0,0,.5) 20%, #000 45%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, rgba(0,0,0,.5) 20%, #000 45%, #000 85%, transparent); }
.hero2-bars rect { transform-box: fill-box; transform-origin: bottom; animation: barRise 1.4s cubic-bezier(.2,.8,.2,1) both, barGlow 4s ease-in-out infinite; animation-delay: calc(var(--i) * 35ms), calc(1.4s + var(--i) * 90ms); }
@keyframes barRise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes barGlow { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }
html[data-theme="light"] .hero2-bars { opacity: .28; }
.hero2-shine { position: absolute; inset: -20% -40%; background: linear-gradient(105deg, transparent 42%, rgba(246,213,126,.10) 48%, rgba(255,240,200,.18) 50%, rgba(246,213,126,.10) 52%, transparent 58%);
  animation: heroShine 9s ease-in-out infinite; }
@keyframes heroShine { 0% { transform: translateX(-60%); } 55%, 100% { transform: translateX(60%); } }
.hero2-sparkles { position: absolute; inset: 0; }
.hero2-sparkles i { position: absolute; width: var(--z); height: var(--z); opacity: 0; animation: twinkle var(--t) ease-in-out var(--d) infinite; }
.hero2-sparkles .spk { border-radius: 50%; width: calc(var(--z) + 1px); height: calc(var(--z) + 1px); background: #F6D57E; box-shadow: 0 0 6px 1px rgba(246,213,126,.9), 0 0 14px rgba(212,165,55,.6); }
.hero2-sparkles .spk-star { background: radial-gradient(circle, #FFF6DA 0 12%, transparent 13%), linear-gradient(0deg, transparent 46%, #F6D57E 48% 52%, transparent 54%), linear-gradient(90deg, transparent 46%, #F6D57E 48% 52%, transparent 54%);
  filter: drop-shadow(0 0 4px rgba(246,213,126,.95)); }
@keyframes twinkle { 0%, 100% { opacity: .35; transform: scale(.6) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
html[data-theme="light"] .hero2-sparkles .spk { background: #C9952A; box-shadow: 0 0 6px rgba(201,149,42,.7); }
html[data-theme="light"] .hero2-sparkles .spk-star { filter: drop-shadow(0 0 3px rgba(180,130,30,.8)) saturate(1.3) brightness(.85); }
html[data-theme="light"] .hero2-shine { opacity: .6; }
@media (max-width: 860px) { .hero2-sparkles i:nth-child(2n) { display: none; } .hero2-bars { height: 26%; } }
@media (prefers-reduced-motion: reduce) {
  .hero2-bars rect, .hero2-shine, .hero2-sparkles i { animation: none; }
  .hero2-sparkles i { opacity: .7; }
}
.hero2-wrap { position: relative; max-width: 1480px; margin: 0 auto; padding: 0 40px; }
.hero2-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.2fr); gap: 40px; align-items: center; }
.hero2-copy { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.hero2-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border: 1px solid rgba(212,165,55,.4); border-radius: 8px; background: rgba(212,165,55,.06);
  font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--red-bright); text-transform: uppercase; }
.hero2-title { margin: 0; font-family: var(--body); font-weight: 700; font-size: clamp(40px, 4.5vw, 74px); line-height: 1.06; letter-spacing: -.025em; color: var(--text); }
.gold-text { background: linear-gradient(180deg, #F8DC8D 0%, #E2B954 45%, #B8892B 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-theme="light"] .gold-text { background: linear-gradient(180deg, #D9AE48 0%, #B8892B 60%, #94701F 100%); -webkit-background-clip: text; background-clip: text; }
.hero2-lead { margin: 0; max-width: 560px; font-size: 20px; line-height: 1.6; color: var(--text-soft); }
html[data-theme="light"] .hero2-lead { color: var(--text-2); }
.hero2-ctas { display: flex; flex-wrap: wrap; gap: 18px; }
.hero2-btn { min-height: 60px; padding: 0 32px; font-size: 18px; border-radius: 8px; gap: 14px; }
.hero2-btn-ghost { background: transparent; border: 1.5px solid var(--red); }
html[data-theme="light"] .hero2-btn-ghost { background: #fff; border-color: rgba(201,152,46,.55); }
.hero2-feats { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.hero2-feats li { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hero2-feats strong { font-size: 15px; font-weight: 600; color: var(--text); margin-top: 10px; }
.hero2-feats li > span:not(.hf-ico) { font-size: 14px; line-height: 1.6; color: var(--text-3); }
.hf-ico { width: 54px; height: 54px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--red); color: var(--red-bright);
  background: radial-gradient(circle, rgba(212,165,55,.14), transparent 70%); box-shadow: 0 0 18px rgba(212,165,55,.18); }
.hf-ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.hero2-feats li:nth-child(3) .hf-ico svg { fill: currentColor; stroke: none; }

/* dashboard preview */
.hero2-visual { position: relative; min-width: 0; z-index: 0; }
.dash-stage { position: relative; width: 100%; }
.dash-fit { width: 900px; transform-origin: top left; perspective: 1500px; padding: 20px 0; }
.dash { display: grid; grid-template-columns: 150px minmax(0, 1fr); width: 900px; border-radius: 26px; overflow: hidden; font-family: var(--body); color: var(--text);
  border: 6px solid transparent;
  background: linear-gradient(var(--dash-bg), var(--dash-bg)) padding-box, linear-gradient(135deg, #FFF6D0 0%, #F7D677 12%, #B8862B 26%, #FFE7A0 42%, #D9A93E 56%, #8F6519 68%, #FCE3A0 82%, #C99A34 100%) border-box;
  box-shadow: 0 0 0 1px rgba(255,228,150,.7), 0 0 22px rgba(255,205,90,.75), 0 0 70px rgba(255,190,60,.5), 0 0 160px rgba(255,180,40,.28), 0 50px 90px var(--shadow);
  transform: rotateY(-22deg) rotateX(6deg) rotateZ(2deg) scale(1.1); transform-origin: 92% 50%; }
.dash svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dash-side { background: var(--dash-side); border-right: 1px solid var(--dash-line); padding: 22px 12px; display: flex; flex-direction: column; gap: 4px; }
.dash-brand { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 13px; letter-spacing: .02em; margin: 0 4px 16px; color: var(--text); white-space: nowrap; }
.dash-brand b { color: var(--red); font-weight: 700; }
.dash-nav { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px; font-size: 12.5px; color: var(--text-2); }
.dash-nav svg { width: 15px; height: 15px; flex-shrink: 0; }
.dash-nav.on { color: var(--text); background: linear-gradient(90deg, rgba(212,165,55,.28), rgba(212,165,55,.08)); box-shadow: inset 0 0 0 1px rgba(212,165,55,.35); }
.dash-nav:last-child { margin-top: auto; }
.dash-main { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.dash-top { display: flex; justify-content: space-between; align-items: flex-start; }
.dash-k { font-size: 11.5px; color: var(--dash-k); }
.dash-bal { font-size: 25px; font-weight: 600; margin-top: 4px; letter-spacing: -.01em; }
.dash-bal .pos { font-size: 14px; font-weight: 600; margin-left: 6px; }
.dash-tools { display: flex; align-items: center; gap: 14px; }
.dash-bell { position: relative; width: 20px; height: 20px; color: var(--text-2); }
.dash-bell svg { width: 20px; height: 20px; }
.dash-bell i { position: absolute; top: 0; right: 1px; width: 6px; height: 6px; border-radius: 50%; background: var(--neg); }
.dash-avatar { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--on-gold); background: linear-gradient(135deg, #F6D57E, #B8892B); }
.dash-chart { position: relative; padding: 34px 0 0 30px; border-radius: 12px; background: var(--dash-card); border: 1px solid var(--dash-line); }
.dash-selects { position: absolute; top: 8px; right: 10px; display: flex; gap: 8px; }
.dash-selects span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--dash-line); border-radius: 6px; font-size: 11px; color: var(--text-2); background: var(--dash-bg); }
.dash-selects svg { width: 12px; height: 12px; }
.dash-ylab { position: absolute; left: 8px; top: 34px; height: 130px; display: flex; flex-direction: column; justify-content: space-between; font-size: 9.5px; color: var(--dash-k); }
.dash-svg { display: block; width: 100%; height: 150px; }
.dash-grid line { stroke: var(--dash-line); stroke-width: 1; }
.dash-line { stroke: #E2B954; filter: drop-shadow(0 0 4px rgba(240,199,94,.85)); }
.dash-dot { fill: #F6D57E; stroke: none; filter: drop-shadow(0 0 6px #F6D57E); }
.dash-xlab { display: flex; justify-content: space-between; padding: 6px 8px 8px 0; font-size: 9.5px; color: var(--dash-k); }
.dash-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dash-stat { position: relative; padding: 13px 14px; border-radius: 12px; background: var(--dash-card); border: 1px solid var(--dash-line); }
.dash-stat > svg { position: absolute; right: 12px; top: 26px; width: 26px; height: 26px; color: var(--red); stroke-width: 1.5; }
.dash-v { font-size: 19px; font-weight: 600; margin-top: 8px; }
.dash-s { font-size: 10.5px; margin-top: 7px; }
.dash-s.gold { color: var(--red-bright); }
.dash-bottom { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; }
.dash-card { padding: 12px 14px; border-radius: 12px; background: var(--dash-card); border: 1px solid var(--dash-line); }
.dash-ct { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; font-weight: 600; margin-bottom: 8px; }
.dash-ct svg { width: 14px; height: 14px; color: var(--text-2); }
.dash-trades table { width: 100%; border-collapse: collapse; font-size: 11px; }
.dash-trades th { text-align: left; font-weight: 500; color: var(--dash-k); padding: 5px 4px; border-bottom: 1px solid var(--dash-line); }
.dash-trades td { padding: 7px 4px; border-bottom: 1px solid var(--dash-line); }
.dash-trades tr:last-child td { border-bottom: 0; }
.dash-donut-row { display: flex; align-items: center; gap: 16px; }
.dash-donut { position: relative; width: 120px; height: 120px; flex-shrink: 0; }
.dash-donut svg { width: 120px; height: 120px; }
.dash-donut circle { fill: none; stroke-width: 13; }
.dash-donut .dd-track { stroke: var(--dash-line); }
.dd-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.dd-center b { font-size: 16px; font-weight: 600; }
.dd-center span { font-size: 9.5px; color: var(--dash-k); }
.dash-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 11px; flex: 1; }
.dash-legend li { display: flex; align-items: center; gap: 7px; }
.dash-legend i { width: 8px; height: 8px; border-radius: 50%; }
.dash-legend b { margin-left: auto; font-weight: 500; }
.dash-note { margin: 12px 0 0; text-align: center; font-size: 11px; color: var(--text-3); }

/* platforms strip */
.hero2-trust { margin-top: 44px; display: flex; flex-wrap: nowrap; align-items: center; gap: 22px 30px; padding: 22px 30px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-2); }
.ht-label { font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--red-bright); white-space: nowrap; }
.ht-items { flex: 1 1 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 22px; min-width: 0; }
.ht-item { display: inline-flex; align-items: center; gap: 7px; font-size: 18px; font-weight: 600; color: var(--text); opacity: .92; white-space: nowrap; }
.ht-item svg { width: 18px; height: 18px; fill: none; stroke: var(--red); stroke-width: 1.5; stroke-linejoin: round; }
.ht-logo { display: block; height: 26px; width: auto; max-width: 128px; object-fit: contain; }
.ht-logo-l { display: none; }
html[data-theme="light"] .ht-logo-d { display: none; }
html[data-theme="light"] .ht-logo-l { display: block; }
.ht-secure { display: flex; align-items: center; gap: 14px; padding-left: 30px; border-left: 1px solid var(--border); }
.ht-secure svg { width: 34px; height: 34px; fill: none; stroke: var(--red); stroke-width: 1.5; stroke-linejoin: round; flex-shrink: 0; }
.ht-secure b { display: block; font-size: 13px; letter-spacing: .12em; color: var(--red-bright); font-weight: 600; }
.ht-secure span { font-size: 13px; color: var(--text-2); }

/* stats bar */
.hero2-stats { margin-top: 20px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: 14px; background: var(--bg-2); padding: 26px 0; }
.hero2-stats.n-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.hero2-stats.n-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hero2-stats.n-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hs { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 12px; text-align: center; border-left: 1px solid var(--border); min-width: 0; }
.hs:first-child { border-left: 0; }
.hs-row { display: flex; align-items: center; gap: 14px; }
.hs-row svg { width: 38px; height: 38px; fill: none; stroke: var(--red); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.hs-v { font-size: 32px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap; }
.hs-l { font-size: 17px; color: var(--text-2); }
.hs-stars { color: var(--red); letter-spacing: 4px; font-size: 15px; }
.hero2-risk { margin: 16px 0 0; text-align: center; font-size: 12px; color: var(--text-3); }

@media (max-width: 1280px) {
  .hero2-stats, .hero2-stats.n-5, .hero2-stats.n-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 22px; }
  .hs:nth-child(3n+1) { border-left: 0; }
  .hs-v { font-size: 28px; }
}
@media (max-width: 1100px) {
  .hero2-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .dash { transform: rotateY(-14deg) rotateX(4deg) rotateZ(1deg); }
}
.mdash-stage { display: none; }
.mdash-fit { width: 320px; perspective: 900px; padding: 12px 0; }
.mdash { width: 320px; padding: 14px; border-radius: 22px; display: flex; flex-direction: column; gap: 10px; font-family: var(--body); color: var(--text);
  border: 5px solid transparent;
  background: linear-gradient(var(--dash-bg), var(--dash-bg)) padding-box, linear-gradient(135deg, #FFF6D0 0%, #F7D677 12%, #B8862B 26%, #FFE7A0 42%, #D9A93E 56%, #8F6519 68%, #FCE3A0 82%, #C99A34 100%) border-box;
  box-shadow: 0 0 0 1px rgba(255,228,150,.7), 0 0 18px rgba(255,205,90,.75), 0 0 60px rgba(255,190,60,.45), 0 30px 60px var(--shadow);
  transform: rotateY(-22deg) rotateX(5deg) rotateZ(1.5deg); transform-origin: 70% 50%; }
.mdash svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mdash .dash-brand { margin: 0; }
.md-top { display: flex; justify-content: space-between; align-items: center; }
.md-user { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); }
.md-user svg { width: 14px; height: 14px; }
.md-user .dash-avatar { width: 28px; height: 28px; }
.md-bal { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.md-bal .dash-bal { font-size: 21px; white-space: nowrap; }
.md-bal .dash-bal .pos { font-size: 12px; margin-left: 2px; }
.md-bal .dash-selects { position: static; gap: 5px; }
.md-bal .dash-selects span { padding: 3px 7px; font-size: 10px; }
.md-chart { position: relative; padding: 4px 0 0 26px; }
.md-chart .dash-ylab { top: 4px; left: 0; height: 100px; }
.md-chart .dash-svg { height: 110px; }
.md-chart .dash-xlab { font-size: 8.5px; padding-right: 0; }
.md-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.md-stats .dash-stat { padding: 10px 11px; }
.md-stats .dash-stat > svg { top: 18px; right: 10px; width: 24px; height: 24px; }
.md-stats .dash-v { font-size: 16px; margin-top: 4px; }
.md-stats .dash-s { margin-top: 4px; font-size: 10px; }
.mdash .dash-trades { padding: 10px 10px 4px; }
.mdash .dash-trades table { font-size: 9.5px; }
.mdash .dash-trades th, .mdash .dash-trades td { padding: 5px 2px; }

/* Phone: headline on top, large robot under the text, full-width buttons, 2x2 feature cards, stats card */
@media (max-width: 860px) {
  .hero2 { padding: 18px 0 22px; }
  .hero2-wrap { padding: 0 16px; }
  .hero2-grid { grid-template-columns: minmax(0, 1fr); gap: 0; align-items: start;
    grid-template-areas: "badge" "title" "lead" "visual" "ctas" "feats"; grid-template-rows: none; }
  .hero2-copy { display: contents; }
  .hero2-badge { grid-area: badge; justify-self: start; margin-bottom: 16px; padding: 7px 14px; border-radius: 999px; font-size: clamp(9px, 2.6vw, 13px); letter-spacing: .06em; gap: 8px; max-width: 100%; }
  .hero2-title { grid-area: title; font-size: clamp(34px, 10.5vw, 64px); line-height: 1.04; letter-spacing: -.035em; position: relative; z-index: 2; }
  .hero2-lead { grid-area: lead; margin-top: 12px; max-width: 58%; font-size: clamp(14px, 3.9vw, 19px); line-height: 1.5; position: relative; z-index: 2; }
  .hero2-visual { grid-area: visual; margin: clamp(-64px, -12vw, -36px) -16px 0 4%; position: relative; z-index: 1; }
  .hero-ai { margin: 0 -8% 0 0; }
  .hero2-ctas { grid-area: ctas; margin-top: clamp(-60px, -11vw, -36px); flex-direction: column; gap: 12px; position: relative; z-index: 3; }
  .hero2-btn { width: 100%; min-height: 0; height: clamp(50px, 13vw, 60px); padding: 0 12px; font-size: clamp(15px, 4.2vw, 18px); gap: 10px; justify-content: center; border-radius: 12px; }
  .hero2-btn-ghost { background: var(--bg); }
  .dash-stage, .mdash-stage { display: none; }
  .hero2-feats { grid-area: feats; margin-top: 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .hero2-feats li { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 12px; row-gap: 3px; align-items: start; align-content: start; padding: 14px 12px;
    background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; }
  .hf-ico { grid-row: span 2; width: 42px; height: 42px; }
  .hf-ico svg { width: 22px; height: 22px; }
  .hero2-feats strong { margin-top: 0; font-size: clamp(13px, 3.6vw, 15px); line-height: 1.3; }
  .hero2-feats li > span:not(.hf-ico) { font-size: clamp(11.5px, 3.2vw, 13px); line-height: 1.4; }
  .hero2-candles { display: none; }
  .hero2-stats, .hero2-stats.n-5, .hero2-stats.n-4, .hero2-stats.n-3 { margin-top: 14px; padding: 16px 0; row-gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 16px; }
  .hero2-stats.n-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hs, .hs:nth-child(2n), .hs:nth-child(3n+1) { border-left: 1px solid var(--border); padding: 2px 4px; gap: 4px; }
  .hero2-stats .hs:nth-child(3n+1) { border-left: 0; }
  .hero2-stats.n-4 .hs { border-left: 1px solid var(--border); } .hero2-stats.n-4 .hs:first-child { border-left: 0; }
  .hs-row { flex-direction: column; gap: 6px; }
  .hs-row svg { width: 28px; height: 28px; }
  .hs-v { font-size: clamp(15px, 4.4vw, 20px); font-weight: 700; letter-spacing: -.02em; }
  .hs-l { font-size: clamp(11px, 3vw, 13px); line-height: 1.3; }
  .hs-stars { font-size: 9px; letter-spacing: 1px; }
  .hero2-trust { margin-top: 14px; flex-direction: column; align-items: center; text-align: center; padding: 16px 14px; gap: 12px; }
  .ht-label { font-size: 11px; letter-spacing: .14em; color: var(--text-2); }
  .ht-items { flex: none; width: 100%; justify-content: center; gap: 10px 18px; }
  .ht-item { font-size: clamp(13px, 3.6vw, 15px); gap: 5px; }
  .ht-item svg { width: 14px; height: 14px; }
  .ht-logo { height: clamp(18px, 5vw, 24px); max-width: 100px; }
  .ht-secure { display: flex; justify-content: center; width: 100%; padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--border); gap: 10px; }
  .ht-secure svg { width: 26px; height: 26px; }
  .ht-secure { align-items: center; }
  .ht-secure div { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; justify-content: flex-start; text-align: left; }
  .ht-secure b { font-size: 12px; }
  .ht-secure span { font-size: 12px; padding-left: 12px; border-left: 1px solid var(--border); }
  .hero2-risk { font-size: 11px; }
  .hero2-wrap { display: flex; flex-direction: column; }
  .hero2-stats { order: 1; } .hero2-trust { order: 2; } .hero2-risk { order: 3; }
  .hero2-bars { top: 30%; height: 26%; opacity: .22; }
}
html[data-theme="light"] .dash, html[data-theme="light"] .mdash { box-shadow: 0 0 0 1px rgba(200,150,50,.5), 0 0 18px rgba(230,170,50,.45), 0 0 60px rgba(230,170,50,.25), 0 40px 70px var(--shadow); }
[hidden] { display: none !important; }
.learn-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .learn-steps { grid-template-columns: 1fr; } }
/* Hero robot artwork: black robot in dark mode, white robot in light mode */
.hero-ai { display: block; margin: -60px -12% -50px -8%; }
.hero-ai img { display: block; width: 100%; height: auto; }
.hero-ai-l { display: none; }
html[data-theme="light"] .hero-ai-d { display: none; }
html[data-theme="light"] .hero-ai-l { display: block; }
@media (max-width: 860px) { .hero-ai { margin: 0 -14% 0 -8%; } }


/* ---------- Dashboard sidebar: toggle to show / hide ---------- */
.shell-app .side-nav a { justify-content: flex-start; }
.shell-app .side-nav .count { margin-left: auto; }
.sn-ico { display: inline-flex; width: 20px; height: 20px; flex-shrink: 0; color: var(--text-3); }
.sn-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.shell-app .side-nav a.on .sn-ico, .shell-app .side-nav a:hover .sn-ico { color: var(--red-bright); }
.app-top { display: flex; align-items: center; gap: 14px; margin: -8px 0 -6px; }
.side-toggle { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg-2); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.side-toggle:hover { border-color: var(--red); }
.app-top-brand { display: none; }
.side-close { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border);
  background: transparent; color: var(--text-2); cursor: pointer; flex-shrink: 0; }
.side-close:hover { color: var(--text); border-color: var(--red); }
.shell-app .side .theme-toggle { margin-left: auto; }
.side-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.55); backdrop-filter: blur(2px); }

@media (min-width: 901px) {
  .shell-app { flex-wrap: nowrap; }
  .shell-app .side { position: sticky; top: 0; height: 100vh; overflow-y: auto; transition: margin-left .25s ease, opacity .2s ease; }
  body.side-closed .shell-app .side { margin-left: -248px; opacity: 0; pointer-events: none; }
  body.side-closed .app-top-brand { display: block; }
  .side-backdrop { display: none !important; }
  .side-close { display: none; }
}
@media (max-width: 900px) {
  .shell.shell-app { flex-direction: column; flex-wrap: nowrap; }
  .shell-app .side { position: fixed; top: 0; left: 0; bottom: 0; z-index: 80; width: min(290px, 86vw); flex: none; flex-direction: column; flex-wrap: nowrap;
    padding: calc(16px + var(--sat)) 16px 20px; gap: 20px; border-right: 1px solid var(--border); border-bottom: 0; overflow-y: auto;
    transform: translateX(-105%); transition: transform .25s ease; box-shadow: 20px 0 50px rgba(0,0,0,.35); }
  body.side-open .shell-app .side { transform: none; }
  .shell-app .side .side-extra { display: flex; }
  .shell-app .side-nav { flex-direction: column; overflow: visible; gap: 2px; }
  .shell-app .side-nav a { border-left: 3px solid transparent; border-bottom: 0; border-radius: 10px; min-height: 46px; white-space: normal; }
  .shell-app .side-nav a.on { border-left-color: var(--red); border-bottom-color: transparent; }
  .app-top { position: sticky; top: 0; z-index: 30; margin: -20px -16px 0; padding: calc(10px + var(--sat)) 16px 10px; background: var(--bg); border-bottom: 1px solid var(--border); }
  .app-top-brand { display: block; }
  .side-toggle span { display: none; }
  .side-toggle { padding: 0 11px; }
}

/* Tournament page */
.tourn-top { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: 20px; align-items: stretch; }
.tourn-banner { display: block; min-width: 0; }
.tourn-top.portrait { grid-template-columns: minmax(0, 1fr) minmax(320px, 1.15fr); max-width: 1300px; }
.tourn-rules { position: relative; min-height: 320px; }
.tourn-rules-in { position: absolute; inset: 0; overflow-y: auto; padding: 24px; scrollbar-width: thin; }
.tourn-main { max-width: 900px; }
.extra-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.extra-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: 900px; }
@media (max-width: 1100px) { .tourn-top { grid-template-columns: 1fr; } .tourn-top.portrait { grid-template-columns: 1fr; } .tourn-top.portrait .tourn-banner { max-width: 560px; width: 100%; margin: 0 auto; } .tourn-rules { min-height: 0; } .tourn-rules-in { position: static; } }
.tourn-banner img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--border); }
.tourn-steps { display: flex; flex-wrap: wrap; gap: 8px; }
.tourn-steps span { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); font-size: 13px; color: var(--text-3); }
.tourn-steps span.now { border-color: var(--red); color: var(--red-bright); background: rgba(212,165,55,.08); }
.tourn-steps span.done { border-color: rgba(34,197,94,.45); color: var(--pos, #22c55e); }
.tourn-state { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 12px; border: 1px solid var(--border); font-size: 14px; line-height: 1.6; color: var(--text-2); }
.tourn-state strong { color: var(--text); font-size: 15px; }
.tourn-state.pending { border-color: rgba(212,165,55,.45); background: rgba(212,165,55,.06); }
.tourn-state.ok { border-color: rgba(34,197,94,.45); background: rgba(34,197,94,.06); }
.tourn-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.tourn-shot { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--text-3); }
.tourn-shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-2); }

/* ===== Deriv AI Trader (always dark, terminal look) ===== */
.dt { --g: #22c55e; --r: #ef4444; --au: #f5b81c; --dbg: #07090c; --dp: #0e1116; --dl: #1d222b; --dt1: #f3f4f6; --dt2: #a3a9b4; --dt3: #6b7280;
  background: var(--dbg); color: var(--dt1); border: 1px solid var(--dl); border-radius: 18px; overflow: hidden; }
.dt .pos { color: var(--g); } .dt .neg { color: var(--r); } .dt .gold { color: var(--au); }
.dt h2 { font-size: 17px; font-weight: 700; color: var(--dt1); margin: 0; }
.dt-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 22px; border-bottom: 1px solid var(--dl); background: linear-gradient(180deg, #0d1015, #07090c); }
.dt-brand { display: flex; flex-direction: column; line-height: 1.1; }
.dt-logo { font-weight: 800; font-size: 22px; letter-spacing: .02em; color: #fff; }
.dt-logo b { color: var(--au); }
.dt-brand small { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--au); opacity: .85; margin-top: 3px; }
.dt-meta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.dt-meta > div { display: flex; flex-direction: column; gap: 2px; }
.dt-meta small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dt2); }
.dt-meta strong { font-size: 17px; color: #fff; }
.dt-meta strong.neg { color: var(--r); }
.dt-live { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--dt2); }
.dt-live i { width: 10px; height: 10px; border-radius: 50%; background: var(--dt3); }
.dt-live[data-state="on"], .dt-live[data-state="run"] { color: var(--g); }
.dt-live[data-state="on"] i, .dt-live[data-state="run"] i { background: var(--g); box-shadow: 0 0 10px var(--g); }
.dt-live[data-state="run"] i { animation: dtPulse 1.2s infinite; }
.dt-live[data-state="wait"] { color: var(--au); } .dt-live[data-state="wait"] i { background: var(--au); animation: dtPulse 1s infinite; }
@keyframes dtPulse { 50% { opacity: .35; } }
.dt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 10px; font-weight: 800; font-size: 16px; cursor: pointer; border: 1px solid transparent; text-decoration: none; transition: filter .15s, transform .15s; }
.dt-btn svg { width: 16px; height: 16px; fill: currentColor; }
.dt-btn:hover { filter: brightness(1.1); }
.dt-btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.dt-start { background: var(--g); color: #04130a; box-shadow: 0 0 18px rgba(34,197,94,.35); }
.dt-stop { background: var(--r); color: #fff; box-shadow: 0 0 18px rgba(239,68,68,.45); }
.dt-warn { padding: 9px 22px; font-size: 13px; text-align: center; color: #1a1205; background: linear-gradient(90deg, #b8860b, #e7b52c, #b8860b); font-weight: 600; }
.dt-connect { padding: 28px 22px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; border-bottom: 1px solid var(--dl); }
.dt-connect h2 { font-size: 20px; }
.dt-connect p { color: var(--dt2); max-width: 620px; font-size: 14px; line-height: 1.6; margin: 0; }
.dt-connect .dt-note { font-size: 13px; color: var(--dt3); }
.dt-connect a:not(.dt-btn) { color: var(--au); }
.dt-ctrl { display: grid; grid-template-columns: 1.6fr repeat(5, minmax(0, 1fr)); gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--dl); }
.dt-f { display: flex; flex-direction: column; gap: 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--dt2); }
.dt-f input, .dt-f select { height: 42px; border-radius: 9px; border: 1px solid var(--dl); background: var(--dp); color: #fff; padding: 0 12px; font-size: 15px; font-family: inherit; letter-spacing: 0; text-transform: none; width: 100%; }
.dt-f input:focus, .dt-f select:focus { outline: none; border-color: var(--au); box-shadow: 0 0 0 3px rgba(245,184,28,.18); }
.dt-f input:disabled, .dt-f select:disabled { opacity: .6; }
.dt-hero { text-align: center; padding: 26px 22px 22px; background: radial-gradient(60% 100% at 50% 0%, rgba(34,197,94,.06), transparent 70%); border-bottom: 1px solid var(--dl); }
.dt-hero > small { font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--dt2); }
.dt-pl { font-size: clamp(48px, 8vw, 88px); font-weight: 800; line-height: 1.1; margin: 6px 0 4px; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.dt-pl .dt-cur { font-size: .32em; font-weight: 700; margin-left: .35em; opacity: .75; letter-spacing: .08em; }
.dt-pl.pos { color: var(--g); text-shadow: 0 0 30px rgba(34,197,94,.35); }
.dt-pl.neg { color: var(--r); text-shadow: 0 0 30px rgba(239,68,68,.35); }
.dt-hero p { margin: 0; color: var(--dt2); font-size: 14px; }
.dt-prog { width: min(520px, 90%); height: 6px; border-radius: 6px; background: #252a33; margin: 16px auto 6px; overflow: hidden; }
.dt-prog i { display: block; height: 100%; width: 0; background: var(--g); border-radius: 6px; transition: width .4s; box-shadow: 0 0 10px var(--g); }
.dt-hero .dt-runs { font-size: 12px; color: var(--dt3); }
.dt-kpis { display: flex; justify-content: center; gap: clamp(20px, 6vw, 60px); margin-top: 16px; }
.dt-kpis div { display: flex; flex-direction: column; gap: 2px; }
.dt-kpis strong { font-size: 24px; color: #fff; } .dt-kpis strong.pos { color: var(--g); } .dt-kpis strong.neg { color: var(--r); }
.dt-kpis small { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--dt2); }
.dt-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.dt-panel { padding: 20px 22px; min-width: 0; }
.dt-panel + .dt-panel { border-left: 1px solid var(--dl); }
.dt-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.dt-tabs button { padding: 8px 14px; border-radius: 8px; border: 1px solid var(--dl); background: var(--dp); color: var(--dt1); font-weight: 600; font-size: 13px; cursor: pointer; }
.dt-tabs button.on { background: var(--au); color: #1a1205; border-color: var(--au); }
.dt-tabs button:disabled:not(.on) { opacity: .45; cursor: not-allowed; }
.dt-ph { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dt-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--dl); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--dt2); }
.dt-pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--dt3); }
.dt-pill[data-state="scan"] { border-color: var(--au); color: var(--au); } .dt-pill[data-state="scan"] i { background: var(--au); animation: dtPulse 1s infinite; }
.dt-pill[data-state="exec"] { border-color: var(--g); color: var(--g); } .dt-pill[data-state="exec"] i { background: var(--g); animation: dtPulse .6s infinite; }
.dt-ring { --ring: var(--au); position: relative; width: 230px; height: 230px; margin: 14px auto 18px; }
.dt-ring[data-dir="up"] { --ring: var(--g); } .dt-ring[data-dir="down"] { --ring: var(--r); }
.dt-ring svg { width: 100%; height: 100%; overflow: visible; }
.dt-ring circle { fill: none; transition: stroke .3s; }
.dt-ring .r-bg { stroke: #1b1f27; stroke-width: 10; }
.dt-ring .r-arc { stroke: var(--ring); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 150 403; transform-origin: 100px 100px; filter: drop-shadow(0 0 8px var(--ring)); }
.dt-ring .r-in { stroke: var(--ring); stroke-width: 2; opacity: .35; stroke-dasharray: 4 8; transform-origin: 100px 100px; }
.dt-ring.scanning .r-arc { animation: dtSpin 1.6s linear infinite; }
.dt-ring.scanning .r-in { animation: dtSpin 6s linear infinite reverse; }
@keyframes dtSpin { to { transform: rotate(360deg); } }
.dt-ring-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; }
.dt-ring-c strong { font-size: 18px; color: #fff; }
.dt-ring-c span { font-size: 13px; color: var(--dt2); }
.dt-ring[data-dir="up"] #dt-quote { color: var(--g); } .dt-ring[data-dir="down"] #dt-quote { color: var(--r); }
.dt-log { height: 220px; overflow-y: auto; background: #050608; border: 1px solid var(--dl); border-radius: 10px; padding: 10px 14px; font-size: 13px; line-height: 1.75; scrollbar-width: thin; }
.dt-log > div { display: grid; grid-template-columns: 70px 90px 1fr; gap: 8px; }
.dt-log .l-t { color: var(--dt3); }
.dt-log .l-g { font-weight: 700; }
.dt-log .l-info { color: #38bdf8; } .dt-log .l-scan { color: #22d3ee; } .dt-log .l-signal { color: var(--g); }
.dt-log .l-execute { color: var(--au); } .dt-log .l-result { color: var(--g); } .dt-log .l-error { color: var(--r); }
.dt-log .l-m { color: #e5e7eb; word-break: break-word; }
.dt-log .l-m.pos { color: var(--g); } .dt-log .l-m.neg { color: var(--r); } .dt-log .l-m.gold { color: var(--au); }
.dt-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.dt-stats > div { background: var(--dp); border: 1px solid var(--dl); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dt-stats small { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--dt2); }
.dt-stats strong { font-size: 24px; color: #fff; }
.dt-stats strong.pos { color: var(--g); } .dt-stats strong.neg { color: var(--r); }
.dt-bar { height: 6px; border-radius: 6px; background: #252a33; overflow: hidden; }
.dt-bar i { display: block; height: 100%; width: 0; background: var(--g); transition: width .4s; }
.dt-bar i.neg { background: var(--r); }
.dt-tape { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; max-height: 360px; overflow-y: auto; scrollbar-width: thin; }
.dt-empty { color: var(--dt3); font-size: 14px; margin: 0; }
.dt-tape-i { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; background: var(--dp); border: 1px solid var(--dl); border-radius: 12px; padding: 10px 14px; }
.dt-tape-i strong { display: block; color: #fff; font-size: 15px; } .dt-tape-i small { color: var(--dt2); font-size: 12px; }
.dt-tape-i .r { text-align: right; } .dt-tape-i .r strong.pos { color: var(--g); } .dt-tape-i .r strong.neg { color: var(--r); }
.dt-badge { padding: 7px 12px; border-radius: 7px; font-weight: 800; font-size: 13px; letter-spacing: .06em; }
.dt-badge.rise { background: var(--g); color: #04130a; } .dt-badge.fall { background: var(--r); color: #fff; }
.dt-disc { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 22px; border-top: 1px solid var(--dl); font-size: 13px; color: var(--dt3); }
.dt-disc button { background: none; border: 1px solid var(--dl); color: var(--dt2); border-radius: 8px; padding: 7px 12px; cursor: pointer; font-size: 13px; }
.dt-disc button:hover { border-color: var(--r); color: var(--r); }
@media (max-width: 1100px) { .dt-ctrl { grid-template-columns: repeat(3, minmax(0, 1fr)); } .dt-f-acc { grid-column: 1 / -1; } }
@media (max-width: 900px) { .dt-grid { grid-template-columns: 1fr; } .dt-panel + .dt-panel { border-left: 0; border-top: 1px solid var(--dl); } }
@media (max-width: 560px) {
  .dt-top { padding: 14px 16px; } .dt-meta { gap: 14px; width: 100%; } .dt-meta > div { flex: 1 1 28%; }
  .dt-meta .dt-live { flex: 1 1 40%; } .dt-btn#dt-start, .dt-btn#dt-stop { flex: 1 1 50%; }
  .dt-ctrl { grid-template-columns: 1fr 1fr; padding: 14px 16px; } .dt-panel { padding: 16px; } .dt-hero { padding: 22px 16px; }
  .dt-log > div { grid-template-columns: 62px 1fr; } .dt-log .l-m { grid-column: 1 / -1; margin-top: -4px; }
  .dt-kpis strong { font-size: 20px; } .dt-ring { width: 200px; height: 200px; }
}
.dt-rules { margin: 0; padding: 12px 22px; font-size: 13px; line-height: 1.6; color: var(--dt2); border-bottom: 1px solid var(--dl); background: #0b0e13; }
.dt-rules:empty { display: none; }

/* ===== Tournament page (prize-draw layout, Fortunex gold) ===== */
.crumbs { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--text-3); }
.crumbs a { color: var(--text-2); }
.th-hero { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); background: #050505; min-height: 360px; display: flex; align-items: flex-start; }
.th-hero picture, .th-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.th-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,5,.88) 0%, rgba(5,5,5,.55) 38%, rgba(5,5,5,.05) 70%, rgba(5,5,5,.6) 100%); }
.th-hero-in { position: relative; z-index: 1; padding: 34px 24px 150px; width: 100%; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.th-hero h1 { font-family: var(--display); font-size: clamp(28px, 4.4vw, 48px); font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .01em; color: #fff; margin: 0; line-height: 1.05; }
.th-hero h1 span { color: var(--red-bright); }
.th-hero p { max-width: 640px; color: #e4e4e8; font-size: 15px; line-height: 1.6; margin: 0; }
.th-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.th-cta .btn, .th-cta .btn-ghost { min-height: 48px; padding: 0 26px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.th-hero .btn-ghost { background: rgba(0,0,0,.35); color: #fff; backdrop-filter: blur(4px); }
.th-eyebrow { display: block; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); }
.th-qual h2 { font-size: 22px; margin-top: 4px; }
.th-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); font-size: 13px; color: var(--text-2); white-space: nowrap; }
.th-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.th-chip i.on { background: var(--pos); box-shadow: 0 0 8px var(--pos); }
.th-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.th-step { border: 1px solid var(--border); background: var(--bg-2); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.th-step .k { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.th-step strong { font-size: 17px; }
.th-step small { font-size: 12px; color: var(--text-3); }
.th-step.done { border-color: rgba(34,197,94,.45); } .th-step.done strong { color: var(--pos); }
.th-step.wait { border-color: rgba(212,165,55,.5); } .th-step.wait strong { color: var(--red-bright); }
.th-upload { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 12px; align-items: end; }
.th-sec { display: flex; flex-direction: column; gap: 18px; margin-top: 12px; }
.th-head { text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.th-head h2 { font-family: var(--display); font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; text-transform: uppercase; margin: 0; }
.th-head h2 span { color: var(--red); }
.th-head p { color: var(--text-2); max-width: 560px; margin: 0; font-size: 15px; }
.th-prizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.th-prize { position: relative; border: 1px solid var(--border); border-radius: 18px; background: radial-gradient(120% 70% at 50% 0%, var(--gold-wash), var(--card) 70%); padding: 22px 18px 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; overflow: hidden; }
.th-prize.grand { border-color: rgba(212,165,55,.6); box-shadow: 0 0 0 1px rgba(212,165,55,.18), 0 18px 50px -20px var(--glow); }
.th-badge { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); background: linear-gradient(90deg, var(--red), var(--red-bright)); color: var(--on-gold); font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px; }
.th-prize.grand .th-eyebrow { margin-top: 26px; }
.th-prize h3 { font-family: var(--display); font-size: 24px; font-weight: 800; font-style: italic; text-transform: uppercase; margin: 0; }
.th-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.th-tiles div { border: 1px solid var(--border); border-radius: 12px; padding: 10px; background: color-mix(in srgb, var(--bg-2) 80%, transparent); display: flex; flex-direction: column; gap: 2px; }
.th-tiles small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.th-tiles strong { font-size: 20px; color: var(--red-bright); font-family: var(--display); }
.th-car { display: block; width: calc(100% + 36px); margin: 0 -18px; }
.th-car img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.th-standing { width: 100%; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; background: var(--bg-2); }
.th-standing small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.th-standing strong { font-size: 16px; } .th-standing .mono { font-size: 13px; color: var(--text-2); }
.th-count { text-align: center; color: var(--text-2); margin: 0; font-size: 14px; } .th-count strong { color: var(--red-bright); }
.th-table tr.me td { background: var(--gold-wash); }
.th-rank { font-family: var(--display); font-weight: 800; font-size: 18px; width: 56px; }
.th-rank.r1 { color: #F0C75E; } .th-rank.r2 { color: #C9CDD3; } .th-rank.r3 { color: #D08A4E; }
.th-how { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.th-how .card { display: flex; flex-direction: column; gap: 6px; }
.th-how p { margin: 0; font-size: 14px; line-height: 1.6; }
.th-num { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 800; color: var(--on-gold); background: linear-gradient(135deg, var(--red), var(--red-bright)); }
@media (max-width: 1100px) { .th-prizes { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; width: 100%; } .th-how, .th-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .th-hero { min-height: 0; flex-direction: column; }
  .th-hero picture { position: relative; order: 2; margin-top: -30px; }
  .th-hero picture img { position: static; height: auto; }
  .th-hero::after { background: linear-gradient(180deg, rgba(5,5,5,.9) 0%, rgba(5,5,5,.75) 55%, rgba(5,5,5,0) 75%); }
  .th-hero-in { padding: 26px 16px 0; }
  .th-cta .btn, .th-cta .btn-ghost { flex: 1 1 140px; }
  .th-upload { grid-template-columns: 1fr; }
  .th-how { grid-template-columns: 1fr; }
}

/* ===== MT5 Investor Access ===== */
.inv-h { font-family: var(--display); font-size: 24px; margin: 4px 0 -8px; }
.inv-p { font-size: 15px; line-height: 1.7; max-width: 820px; margin: 0; }
.inv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 18px; max-width: 1100px; }
.inv-card { display: flex; flex-direction: column; gap: 14px; border-color: rgba(212,165,55,.35); background: radial-gradient(120% 80% at 0% 0%, var(--gold-wash), var(--card) 60%); }
.inv-live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--red-bright); }
.inv-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--pos); box-shadow: 0 0 8px var(--pos); }
.inv-fields { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.inv-fields > div { display: grid; grid-template-columns: 84px 1fr; gap: 10px; align-items: center; }
.inv-fields dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.inv-fields dd { margin: 0; display: flex; gap: 8px; align-items: center; min-width: 0; }
.inv-fields dd .input { height: 40px; min-width: 0; flex: 1; font-size: 14px; padding: 0 10px; }
@media (max-width: 560px) { .inv-fields > div { grid-template-columns: 1fr; gap: 6px; } }

/* ===== Floating support button ===== */
.support-fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px 0 18px; border-radius: 999px;
  background: linear-gradient(135deg, var(--red-bright), var(--red)); color: var(--on-gold); font-weight: 800; font-size: 15px; text-decoration: none;
  box-shadow: 0 10px 30px -6px var(--glow), 0 2px 8px rgba(0,0,0,.35); transition: transform .15s, box-shadow .15s; }
.support-fab:hover { transform: translateY(-2px); color: var(--on-gold); box-shadow: 0 14px 36px -6px var(--glow), 0 2px 8px rgba(0,0,0,.35); }
.support-fab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 640px) { .support-fab { right: 14px; bottom: 14px; width: 56px; padding: 0; justify-content: center; } .support-fab span { display: none; } }
@media print { .support-fab { display: none; } }

/* ===== Admin quick access ===== */
.adm-quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.adm-tile { display: flex; gap: 14px; align-items: center; padding: 16px; text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.adm-tile:hover { border-color: rgba(212,165,55,.55); transform: translateY(-1px); color: var(--text); }
.adm-ico { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--gold-wash); border: 1px solid rgba(212,165,55,.35); color: var(--red-bright); }
.adm-ico svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.adm-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.adm-t small { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.adm-t strong { font-size: 19px; font-family: var(--display); }
.adm-t span { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== Bulk Trader & Bot Builder ===== */
.dk { display: flex; flex-direction: column; gap: 18px; padding-bottom: 96px; }
.dk-bar { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: flex-end; padding: 14px 18px; }
.dk-bar .dk-acc { flex: 1 1 220px; max-width: 320px; }
.dk-meta { display: flex; flex-direction: column; gap: 2px; }
.dk-meta small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.dk-meta strong { font-size: 16px; } .dk-meta strong.neg { color: var(--neg); }
.dk-connect { flex: 1 1 260px; font-size: 14px; }
.dk-f { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); min-width: 0; }
.dk-f select, .dk-f input, .bb-line select, .bb-line input { height: 44px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-2); color: var(--text); padding: 0 12px; font-size: 15px; font-family: inherit; letter-spacing: 0; text-transform: none; width: 100%; }
.dk-f select:focus, .dk-f input:focus, .bb-line select:focus, .bb-line input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(212,165,55,.18); }
.dk-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.dk-card { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.dk-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bk-tick { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; background: var(--bg-2); }
.bk-tick small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.bk-tick strong { font-size: 30px; font-weight: 800; }
.bk-tick .btn-ghost svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; margin-right: 6px; vertical-align: -2px; }
.bk-digits { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px 8px; padding: 16px 10px 22px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-2); }
.bk-d { --ring: var(--border-strong); --pct: 0%; position: relative; aspect-ratio: 1; max-width: 76px; width: 100%; margin: 0 auto; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(closest-side, var(--card) 82%, transparent 84% 100%), conic-gradient(var(--ring) var(--pct), var(--border) 0); box-shadow: 0 4px 14px -6px var(--shadow); }
.bk-d .dn { font-size: 20px; font-weight: 800; line-height: 1; } .bk-d .p { font-size: 11px; color: var(--text-2); margin-top: 3px; }
.bk-d[data-rank="hi"] { --ring: var(--pos); } .bk-d[data-rank="lo"] { --ring: var(--neg); }
.bk-d.cur { --ring: var(--red-bright); box-shadow: 0 0 0 2px var(--red), 0 0 16px -2px var(--glow); }
.bk-d.cur::after { content: ""; position: absolute; bottom: -14px; border: 6px solid transparent; border-top-color: var(--red-bright); }
.bk-strip { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; min-height: 30px; }
.bk-strip span { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; }
.bk-strip .g { background: linear-gradient(180deg, #2fd16b, #16a34a); } .bk-strip .r { background: linear-gradient(180deg, #ff5a5f, #dc2626); }
.dk-switch { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.dk-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dk-switch span { width: 44px; height: 24px; flex-shrink: 0; border-radius: 999px; background: var(--border-strong); position: relative; transition: background .2s; }
.dk-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.dk-switch input:checked + span { background: var(--pos); } .dk-switch input:checked + span::after { transform: translateX(20px); }
.dk-switch input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.bk-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bk-side { min-height: 60px; border: 0; border-radius: 12px; color: #fff; font-weight: 800; font-size: 18px; cursor: pointer; box-shadow: 0 8px 22px -10px rgba(0,0,0,.6); transition: transform .12s, filter .12s; }
.bk-side .v { font-weight: 600; font-size: 15px; opacity: .92; }
.bk-side.a { background: linear-gradient(180deg, #2fd16b, #15913f); } .bk-side.b { background: linear-gradient(180deg, #ff5a5f, #c81e1e); }
.bk-side:hover { filter: brightness(1.08); } .bk-side:active { transform: scale(.98); }
.bk-side.sel { box-shadow: 0 0 0 3px var(--red-bright), 0 8px 22px -10px rgba(0,0,0,.6); }
.dk-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dk-stats > div { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--bg-2); display: flex; flex-direction: column; gap: 4px; }
.dk-stats small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.dk-stats strong { font-size: 20px; }
.dk-tape { display: flex; flex-direction: column; gap: 6px; max-height: 420px; overflow-y: auto; scrollbar-width: thin; }
.dk-row { display: grid; grid-template-columns: auto 1fr auto auto auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; font-size: 13px; }
.dk-tag { padding: 4px 8px; border-radius: 6px; font-weight: 800; font-size: 12px; color: #fff; white-space: nowrap; }
.dk-tag.win { background: #16a34a; } .dk-tag.loss { background: #dc2626; }
.dk-sym { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .dk-stake, .dk-time { color: var(--text-3); }
.dk-runbar { position: sticky; bottom: 14px; z-index: 30; display: grid; grid-template-columns: auto auto 1fr; gap: 0; align-items: stretch; padding: 0; overflow: hidden; border-color: rgba(212,165,55,.4); box-shadow: 0 12px 30px -12px var(--shadow); }
.dk-run { display: inline-flex; align-items: center; gap: 10px; padding: 0 26px; min-height: 58px; border: 0; background: linear-gradient(180deg, #2fd16b, #15913f); color: #fff; font-weight: 800; font-size: 19px; cursor: pointer; }
.dk-run svg { width: 22px; height: 22px; fill: currentColor; }
.dk-run.stop { background: linear-gradient(180deg, #ff5a5f, #c81e1e); }
.dk-run.stop svg path { d: path("M7 7h10v10H7z"); }
.dk-fast { display: flex; flex-direction: column; justify-content: center; padding: 0 16px; border-right: 1px solid var(--border); position: relative; cursor: pointer; background: var(--gold-wash); }
.dk-fast small { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); } .dk-fast strong { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.dk-fast input { position: absolute; opacity: 0; }
.dk-fast .sw { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 36px; height: 20px; border-radius: 999px; background: var(--border-strong); }
.dk-fast .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s; }
.dk-fast input:checked + .sw { background: var(--pos); } .dk-fast input:checked + .sw::after { transform: translateX(16px); }
.dk-fast { padding-right: 60px; }
.dk-status { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; padding: 8px 14px; font-weight: 700; font-size: 15px; text-align: center; }
.dk-status i { width: 70%; height: 3px; border-radius: 3px; background: repeating-linear-gradient(90deg, var(--text-3) 0 4px, transparent 4px 40%); opacity: .6; }
.dk-status[data-tone="ok"] { color: var(--pos); } .dk-status[data-tone="bad"] { color: var(--neg); } .dk-status[data-tone="info"] { color: var(--red-bright); }
.dk-status[data-tone="run"] { color: var(--pos); } .dk-status[data-tone="run"] i { background: linear-gradient(90deg, transparent, var(--pos), transparent); background-size: 50% 100%; background-repeat: no-repeat; animation: dkRun 1.2s linear infinite; opacity: 1; }
@keyframes dkRun { from { background-position: -50% 0; } to { background-position: 150% 0; } }
/* Bot Builder */
.bb-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; }
.bb-title { background: linear-gradient(135deg, var(--red), var(--red-bright)); color: var(--on-gold); font-weight: 800; padding: 9px 14px; border-radius: 10px; margin-right: 6px; }
.bb-import { display: contents; }
.bb-tool { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; min-width: 62px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-2); color: var(--text); font-size: 11px; font-weight: 600; cursor: pointer; position: relative; }
.bb-tool:hover { border-color: rgba(212,165,55,.55); }
.bb-tool svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.bb-tool input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.bb-upload { display: none; }
.bb-mybots { margin-left: auto; } .bb-mybots select { height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-2); color: var(--text); padding: 0 10px; max-width: 240px; }
.bb-ws { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 18px; border-radius: 16px; border: 1px dashed var(--border-strong);
  background-color: var(--bg-2); background-image: radial-gradient(var(--border) 1px, transparent 1px); background-size: 18px 18px; }
.bb-block { border-radius: 12px; overflow: hidden; border: 1px solid rgba(212,165,55,.35); background: var(--card); box-shadow: 0 10px 26px -14px var(--shadow); align-self: start; }
.bb-block header { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-weight: 800; color: var(--on-gold); background: linear-gradient(135deg, var(--red), var(--red-bright)); }
.bb-ic { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; background: rgba(0,0,0,.18); color: var(--on-gold); }
.bb-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.bb-line { display: grid; grid-template-columns: 120px 1fr; gap: 10px; align-items: center; font-size: 13px; color: var(--text-2); }
.bb-line select, .bb-line input { height: 38px; font-size: 14px; }
.bb-inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .bb-inline input { width: 84px; }
.bb-check { grid-template-columns: auto 1fr; } .bb-check input { width: 18px; height: 18px; accent-color: var(--red); }
@media (max-width: 1000px) { .dk-grid, .bb-ws { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .bk-digits { gap: 10px 4px; padding: 14px 6px 20px; } .bk-d .dn { font-size: 17px; } .bk-d .p { font-size: 10px; }
  .dk-runbar { grid-template-columns: auto 1fr; } .dk-fast { display: none; } .dk-run { padding: 0 20px; }
  .bb-line { grid-template-columns: 1fr; gap: 4px; } .bb-mybots { margin-left: 0; width: 100%; } .bb-mybots select { max-width: none; width: 100%; }
  .dk-row { grid-template-columns: auto 1fr auto; } .dk-row .dk-stake, .dk-row .dk-time { display: none; }
}

/* Never let the page itself scroll sideways on phones (wide tables scroll inside their own box). */
html, body { max-width: 100%; overflow-x: clip; }
.main, .shell-app main { min-width: 0; }

/* ===== Installation guide ===== */
.gd { border: 1px solid var(--border); border-radius: 12px; background: var(--bg-2); }
.gd summary { cursor: pointer; padding: 12px 16px; font-weight: 700; color: var(--red-bright); }
.gd-body { padding: 0 18px 16px; max-height: 560px; overflow-y: auto; }
.gd-h { font-family: var(--display); font-size: 17px; color: var(--red-bright); margin: 18px 0 6px; }
.gd-sub { font-weight: 700; margin: 12px 0 4px; }
.gd-p { color: var(--text-2); line-height: 1.65; margin: 0 0 8px; font-size: 15px; }
.gd-ul { margin: 0 0 10px; padding-left: 20px; color: var(--text-2); line-height: 1.65; font-size: 15px; }
.gd-ul li { margin-bottom: 4px; }
.gd-note { margin: 8px 0 12px; padding: 10px 12px; border-left: 3px solid var(--red); background: var(--gold-wash); font-weight: 600; border-radius: 0 8px 8px 0; }

/* Contact links: Telegram / WhatsApp */
.cl-list { display: grid; gap: 10px; }
.cl { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface, rgba(255,255,255,.02)); color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.cl:hover { transform: translateY(-1px); }
.cl-ic { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; flex: none; }
.cl-telegram .cl-ic { background: #229ED9; }
.cl-whatsapp .cl-ic { background: #25D366; }
.cl-telegram:hover { border-color: #229ED9; }
.cl-whatsapp:hover { border-color: #25D366; }
.cl-t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.cl-t small { color: var(--text-2); overflow-wrap: anywhere; }
.cl-go { color: var(--text-2); }
.social-telegram:hover { color: #229ED9; border-color: #229ED9; }
.social-whatsapp:hover { color: #25D366; border-color: #25D366; }

/* Deriv: reset trades */
.dt-reset { background: transparent; color: var(--text); border-color: var(--border); }
.dt-reset:hover { border-color: var(--au, #d4a017); }
.dk-reset { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--border); background: transparent; color: var(--text); font-weight: 700; font-size: 13px; cursor: pointer; }
.dk-reset svg, .dt-reset svg { width: 15px; height: 15px; fill: currentColor; }
.dk-reset:hover { border-color: var(--au, #d4a017); }
.dk-reset:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 640px) { .dt-btn#dt-reset { flex: 1 1 100%; } }

/* Announcement pop-up */
.promo { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,.66); backdrop-filter: blur(3px); }
.promo[hidden] { display: none; }
.promo-box { position: relative; width: 100%; max-width: 420px; padding: 30px 26px 20px; border-radius: 18px; border: 1px solid var(--au, #d4a017); background: var(--card, #111); color: var(--text); text-align: center; box-shadow: 0 0 40px rgba(212,160,23,.25); animation: promoIn .25s ease-out; }
.promo-box h2 { font-size: 22px; line-height: 1.25; margin: 10px 0 8px; }
.promo-box p { color: var(--text-2); font-size: 15px; line-height: 1.55; margin: 0 0 18px; }
.promo-ic { width: 60px; height: 60px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #229ED9; color: #fff; }
.promo-tag { display: block; margin-top: 12px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--au, #d4a017); }
.promo-x { position: absolute; top: 8px; right: 10px; width: 40px; height: 40px; border: 0; background: transparent; color: var(--text-2); font-size: 26px; cursor: pointer; border-radius: 8px; }
.promo-x:hover { color: var(--text); }
.promo-later { margin-top: 10px; min-height: 40px; }
html.promo-open { overflow: hidden; }
@keyframes promoIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .promo-box { animation: none; } }

/* Deriv: voice toggle */
.dt-voice .x { display: none; }
.dt-voice.off { color: var(--text-2); }
.dt-voice.off .w { display: none; }
.dt-voice.off .x { display: inline; }
@media (max-width: 640px) { .dt-btn#dt-voice { flex: 1 1 100%; } }

/* ===================== Dashboard home (v2) ===================== */
.db { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.db-ic { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; border: 1px solid; }
.db-ic.sm { width: 38px; height: 38px; border-radius: 50%; }
.db-green { color: #34d399; background: rgba(34,197,94,.14); border-color: rgba(34,197,94,.35); }
.db-purple { color: #a78bfa; background: rgba(139,92,246,.16); border-color: rgba(139,92,246,.38); }
.db-blue { color: #60a5fa; background: rgba(59,130,246,.15); border-color: rgba(59,130,246,.38); }
.db-red { color: #fb7185; background: rgba(239,68,68,.15); border-color: rgba(239,68,68,.38); }
.db-teal { color: #2dd4bf; background: rgba(20,184,166,.14); border-color: rgba(20,184,166,.36); }
.db-indigo { color: #a5b4fc; background: rgba(99,102,241,.16); border-color: rgba(99,102,241,.38); }
.db-gold { color: var(--red-bright); background: rgba(212,165,55,.14); border-color: rgba(212,165,55,.42); }

.db-hero { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 26px;
  border: 1px solid rgba(212,165,55,.55); border-radius: 18px; background: linear-gradient(110deg, var(--gold-wash) 0%, var(--card) 60%, var(--gold-wash) 100%); box-shadow: 0 0 40px rgba(212,165,55,.12); }
.db-hero-main { position: relative; z-index: 1; display: flex; align-items: center; gap: 18px; min-width: 0; flex: 1 1 380px; }
.db-crown { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; color: var(--red-bright); border: 2px solid var(--red); background: rgba(212,165,55,.08); }
.db-crown.sm { width: 56px; height: 56px; }
.db-hero h1 { font-size: 28px; line-height: 1.2; margin: 0; }
.db-hero h1 span:first-child { color: var(--text); }
.db-hero p { margin: 6px 0 12px; color: var(--text-2); font-size: 15px; }
.db-chips { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; }
.db-chip { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); }
.db-chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--text-3); }
.db-chip i.on { background: var(--pos); box-shadow: 0 0 8px rgba(34,197,94,.7); }
.db-chip.pos { color: var(--pos); font-weight: 600; }
.db-chip-link { color: var(--red-bright); font-weight: 600; }
.db-bal { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; padding: 16px 18px; min-width: 280px; border: 1px solid rgba(212,165,55,.45); border-radius: 14px; background: rgba(0,0,0,.25); }
[data-theme="light"] .db-bal { background: rgba(255,255,255,.6); }
.db-bal-top { display: flex; align-items: center; gap: 12px; }
.db-bal small { display: block; color: var(--text-2); font-size: 13px; }
.db-bal strong { font-size: 24px; font-variant-numeric: tabular-nums; }
.db-bal-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.db-hero-art { position: absolute; right: 330px; top: 8px; width: 300px; height: 120px; color: var(--red); opacity: .35; pointer-events: none; }

.db-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.db-tile { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); min-width: 0; }
.db-tile .db-ic { margin-bottom: 6px; }
.db-k { color: var(--text-2); font-size: 14px; }
.db-v { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; line-height: 1.15; }
.db-s { color: var(--text-3); font-size: 13px; }
.db-link { color: var(--red-bright); font-weight: 600; text-decoration: none; }

.db-card { padding: 18px 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); min-width: 0; }
.db-card h2 { font-size: 18px; margin: 0; }
.db-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.db-head a { font-size: 14px; color: var(--red-bright); font-weight: 600; text-decoration: none; }
.db-sub { display: block; font-size: 12px; font-weight: 500; color: var(--text-3); margin-top: 2px; }
.db-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(34,197,94,.4); background: rgba(34,197,94,.1); color: var(--pos); font-size: 13px; font-weight: 600; }
.db-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--pos); }

.db-row { display: grid; gap: 18px; }
.db-row-a { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); }
.db-row-b { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); }

.db-legend { display: flex; gap: 14px; font-size: 13px; color: var(--text-2); }
.db-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.pos-bg { background: var(--pos); } .neg-bg { background: var(--neg); }
.db-range { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-2); margin-bottom: 12px; }
.db-range a { padding: 6px 14px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--text-2); text-decoration: none; }
.db-range a.on { background: linear-gradient(180deg, var(--red-bright), var(--red)); color: var(--on-gold); }
.db-chart { position: relative; min-height: 220px; border: 1px solid var(--border-soft); border-radius: 12px; padding: 12px; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 100% 25%, 12.5% 100%; }
.db-chart svg { display: block; width: 100%; height: 230px; }
.db-axis { stroke: var(--border-strong); stroke-width: 1; }
.pos-fill { fill: var(--pos); } .neg-fill { fill: var(--neg); }
.db-lbl { fill: var(--text-3); font-size: 12px; }
.db-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 200px; text-align: center; }
.db-empty small { color: var(--text-2); max-width: 340px; }

.db-acts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.db-acts li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--border-soft); }
.db-acts li:first-child { border-top: 0; padding-top: 0; }
.db-acts a, .db-acts strong { color: var(--text); font-weight: 600; font-size: 14px; text-decoration: none; display: block; }
.db-acts small { color: var(--text-3); font-size: 12px; display: block; margin-top: 2px; }
.db-acts time { color: var(--text-3); font-size: 12px; white-space: nowrap; align-self: start; }

.db-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.db-quick-card h2 { margin-bottom: 14px; }
.db-q { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 16px 10px; border-radius: 12px; border: 1px solid var(--border); color: var(--text); font-weight: 700; font-size: 14px; text-decoration: none; transition: transform .15s, border-color .15s; }
.db-q small { color: var(--text-3); font-weight: 500; font-size: 12px; margin-top: -4px; }
.db-q:hover { transform: translateY(-2px); }
.db-q-green { background: linear-gradient(180deg, rgba(34,197,94,.12), transparent); border-color: rgba(34,197,94,.3); }
.db-q-gold { background: linear-gradient(180deg, rgba(212,165,55,.12), transparent); border-color: rgba(212,165,55,.35); }
.db-q-purple { background: linear-gradient(180deg, rgba(139,92,246,.13), transparent); border-color: rgba(139,92,246,.32); }
.db-q-blue { background: linear-gradient(180deg, rgba(59,130,246,.13), transparent); border-color: rgba(59,130,246,.32); }

.db-ov { margin: 0; display: flex; flex-direction: column; }
.db-ov div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--border-soft); }
.db-ov div:first-child { border-top: 0; padding-top: 0; }
.db-ov dt { display: inline-flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 14px; }
.db-ov dt svg { color: var(--text-3); }
.db-ov dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; }

.db-mk { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.db-mk li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 64px; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--border-soft); font-size: 14px; }
.db-mk li:first-child { border-top: 0; padding-top: 0; }
.db-mk b { display: block; font-size: 13px; }
.db-mk small { color: var(--text-3); font-size: 12px; }
.db-mk .mono:last-child { text-align: right; }
.db-coin { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; font-weight: 800; font-size: 13px; color: #fff; background: #4b5563; }
.db-coin-btc { background: #f7931a; } .db-coin-eth { background: #627eea; } .db-coin-sol { background: #9945ff; } .db-coin-bnb { background: #f3ba2f; color: #111; } .db-coin-xrp { background: #23292f; } .db-coin-dog { background: #c2a633; } .db-coin-ada { background: #0033ad; } .db-coin-ton { background: #0098ea; }

.db-ai { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.db-ai-i { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-2); }
.db-ai-i > div { flex: 1; min-width: 0; }
.db-ai-i strong { display: block; font-size: 15px; }
.db-ai-i small { display: block; color: var(--text-3); font-size: 12px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-st { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.db-st i { width: 8px; height: 8px; border-radius: 50%; background: var(--pos); }

.db-acct-box { border: 1px solid var(--border); border-radius: 12px; padding: 16px; background: var(--bg-2); }
.db-acct-id { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border-soft); }
.db-acct-id strong { display: block; font-size: 20px; }
.db-acct-id small { color: var(--red-bright); font-size: 14px; }
.db-acct-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding-top: 14px; }
.db-acct-grid small { display: block; color: var(--text-3); font-size: 12px; }
.db-acct-grid b { font-size: 17px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

.db-only-sm { display: none; }

/* top bar: bell + user */
.app-top-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.top-bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; color: var(--text); border: 1px solid var(--border); }
.top-bell i { position: absolute; top: 8px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--neg); box-shadow: 0 0 0 2px var(--bg); }
.top-user { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.top-av { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--red); color: var(--red-bright); font-weight: 800; font-size: 17px; background: rgba(212,165,55,.08); }
.top-name b { display: block; font-size: 14px; }
.top-name small { color: var(--text-3); font-size: 12px; }

/* mobile bottom nav */
.bnav { display: none; }

@media (max-width: 1280px) {
  .db-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .db-row-b { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .db-row-b .db-quick-card { grid-column: 1 / -1; }
  .db-hero-art { display: none; }
}
@media (max-width: 900px) {
  .db-row-a, .db-row-b { grid-template-columns: minmax(0, 1fr); }
  .top-name { display: none; }
}
@media (max-width: 760px) {
  .db { gap: 14px; }
  .db-hero { padding: 18px; }
  .db-hero-main { flex-basis: 100%; align-items: flex-start; }
  .db-crown { display: none; }
  .db-hero h1 { font-size: 24px; }
  .db-bal { min-width: 0; width: 100%; }
  .db-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .db-tile { padding: 14px; }
  .db-v { font-size: 20px; }
  .db-only-sm { display: block; }
  .db-quick.db-only-sm { display: grid; }
  .db-hide-sm { display: none; }
  .db-quick { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .db-q { padding: 12px 4px; font-size: 12px; gap: 8px; }
  .db-q .db-ic { width: 40px; height: 40px; }
  .db-card { padding: 16px; }
  .db-acts li { grid-template-columns: auto minmax(0, 1fr); }
  .db-acts time { grid-column: 2; }
  .db-ai { grid-template-columns: minmax(0, 1fr); }
  .db-mk li { grid-template-columns: auto minmax(0, 1fr) auto 58px; }
  .bnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 65; padding: 6px 4px calc(6px + var(--sab));
    background: var(--header-bg); backdrop-filter: blur(12px); border-top: 1px solid var(--border); }
  .bnav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0 4px; color: var(--text-2); font-size: 11px; font-weight: 600; text-decoration: none; border-bottom: 3px solid transparent; }
  .bnav a svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .bnav a.on { color: var(--red-bright); border-bottom-color: var(--red); }
  .shell-app .main { padding-bottom: calc(88px + var(--sab)); }
  .support-fab { bottom: calc(84px + var(--sab)); }
}
.db-chart svg { height: 200px; }
.db-xl { display: flex; margin-top: 6px; }
.db-xl span { flex: 1; text-align: center; font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: visible; }
@media (max-width: 760px) { .db-xl span { font-size: 10px; } .db-chart svg { height: 160px; } }

/* Deriv: simulation mode */
.dt-simbar { padding: 9px 22px; font-size: 13px; text-align: center; color: #1a1205; background: linear-gradient(90deg, #b8860b, #e7b52c, #b8860b); font-weight: 600; }
.dt-simbar strong { display: inline-block; margin-right: 8px; padding: 1px 9px; border-radius: 5px; background: #1a1205; color: #e7b52c; letter-spacing: .08em; }
.dt.dt-is-sim .dt-hero { position: relative; }
.dt.dt-is-sim .dt-warn { display: none; }

/* Deriv: mode dropdown in the status pill (admins / simulation users) */
.dt-live-sel { position: relative; padding: 6px 30px 6px 12px; border: 1px solid var(--dl, #1d222b); border-radius: 999px; background: rgba(255,255,255,.03); cursor: pointer; }
.dt-live-sel select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; padding: 0; min-height: 28px; }
.dt-live-sel select:focus-visible { outline: 2px solid var(--au); outline-offset: 4px; border-radius: 4px; }
.dt-live-sel select option { color: #111; text-transform: none; letter-spacing: 0; }
.dt-live-sel svg { position: absolute; right: 10px; top: 50%; width: 14px; height: 14px; margin-top: -7px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.dt-live-sel:has(select:disabled) { opacity: .6; cursor: not-allowed; }
.dt.dt-is-sim #dt-bal { cursor: pointer; }
.dt-bal-edit { width: 150px; min-height: 32px; padding: 2px 8px; border-radius: 8px; border: 1px solid #e7b52c; background: rgba(0,0,0,.4); color: #fff; font-size: 15px; font-weight: 700; }

/* Offers in the pop-up */
.promo-box { max-height: calc(100vh - 32px); overflow-y: auto; }
.promo-loading { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 40px 0; color: var(--text-2); }
.promo-spin { width: 44px; height: 44px; border-radius: 50%; border: 4px solid rgba(212,165,55,.25); border-top-color: var(--red-bright); animation: promoSpin .8s linear infinite; }
@keyframes promoSpin { to { transform: rotate(360deg); } }
.promo-count { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 6px 0 16px; }
.promo-count span { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border: 1px solid rgba(212,165,55,.4); border-radius: 10px; background: rgba(212,165,55,.07); font-size: 11px; color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; }
.promo-count b { font-size: 22px; color: var(--red-bright); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.promo-list { list-style: none; margin: 0 0 14px; padding: 0; text-align: left; }
.promo-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--border-soft); }
.promo-list li:first-child { border-top: 0; }
.promo-list strong { font-size: 15px; }
.promo-list small { display: block; color: var(--text-3); font-size: 12px; margin-top: 2px; }
.promo-list .tag { font-size: 10px; }
.promo-price { font-size: 18px; font-weight: 800; color: var(--red-bright); font-variant-numeric: tabular-nums; }
.offer-ends { font-size: 13px; font-weight: 600; color: var(--red-bright); }
.promo-group { margin: 6px 0 2px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); text-align: left; }

/* Flagship: Fortunex AI Sovereign */
.flag { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 0; overflow: hidden; border: 1px solid var(--red); border-radius: 22px;
  background: radial-gradient(ellipse at 20% 50%, rgba(240,199,94,.18), transparent 60%), linear-gradient(120deg, #0a0a0c, var(--card)); box-shadow: 0 0 60px rgba(212,165,55,.28); margin-top: 14px; }
.flag-img { display: flex; align-items: center; justify-content: center; background: #000; }
.flag-img img { display: block; width: 100%; height: 100%; max-height: 460px; object-fit: cover; }
.flag-body { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 34px 36px; }
.flag-badge { display: inline-flex; align-self: flex-start; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--on-gold); background: linear-gradient(90deg, var(--red-bright), var(--red)); box-shadow: 0 0 18px rgba(240,199,94,.45); }
.flag h3 { font-size: 34px; line-height: 1.1; margin: 0; }
.flag-tag { color: var(--red-bright); font-size: 17px; font-weight: 600; margin: 0; }
.flag-price { font-size: 40px; }
.flag-ticks { margin: 4px 0; }
.flag-hero img { display: block; width: 100%; max-width: 420px; border-radius: 18px; border: 1px solid var(--red); box-shadow: 0 0 40px rgba(212,165,55,.3); }
.promo-list li.promo-flag { margin: 0 -10px; padding: 12px 10px; border: 1px solid var(--red); border-radius: 12px; background: rgba(212,165,55,.08); }
.promo-flag-tag { display: block; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--red-bright); margin-bottom: 2px; }
[data-theme="light"] .flag { background: radial-gradient(ellipse at 20% 50%, rgba(212,165,55,.18), transparent 60%), #111; color: #fff; }
[data-theme="light"] .flag .muted, [data-theme="light"] .flag .ticks li { color: #e5e5e5; }
@media (max-width: 820px) {
  .flag { grid-template-columns: minmax(0, 1fr); }
  .flag-img img { max-height: 320px; }
  .flag-body { padding: 22px 20px; }
  .flag h3 { font-size: 28px; }
  .flag-price { font-size: 32px; }
}
.flag-hero { display: block; align-self: flex-start; } .flag-hero img { height: auto; aspect-ratio: 900 / 890; object-fit: cover; }

/* Deriv: session summary pop-up */
.dt-sum { position: fixed; inset: 0; z-index: 95; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,.7); backdrop-filter: blur(3px); }
.dt-sum[hidden] { display: none; }
.dt-sum-box { width: 100%; max-width: 420px; padding: 28px 24px 20px; border-radius: 18px; border: 1px solid var(--red); background: var(--card); text-align: center; box-shadow: 0 0 40px rgba(212,165,55,.25); animation: promoIn .25s ease-out; }
.dt-sum-tag { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red-bright); }
.dt-sum-box h2 { font-size: 20px; margin: 8px 0 4px; }
.dt-sum-v { font-size: 46px; font-weight: 800; line-height: 1.1; margin-bottom: 16px; font-variant-numeric: tabular-nums; }
.dt-sum-v.pos { color: #22c55e; text-shadow: 0 0 24px rgba(34,197,94,.35); }
.dt-sum-v.neg { color: #ef4444; text-shadow: 0 0 24px rgba(239,68,68,.35); }
.dt-sum-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.dt-sum-grid div { padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-2); }
.dt-sum-grid small { display: block; font-size: 12px; color: var(--text-3); }
.dt-sum-grid b { font-size: 17px; font-variant-numeric: tabular-nums; }
.dt-sum-r { font-size: 13px; color: var(--text-2); margin: 0 0 14px; }

/* Deriv: AI brain scanner (Engine Activity) */
.dt-brain { --ring: var(--au); position: relative; width: 100%; max-width: 560px; aspect-ratio: 1 / 0.9; margin: 6px auto 14px; border-radius: 16px; overflow: hidden;
  background-color: #07060a; background-image: radial-gradient(60% 55% at 50% 45%, rgba(212,175,55,.10), transparent 70%),
  linear-gradient(rgba(212,175,55,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(212,175,55,.08) 1px, transparent 1px);
  background-size: auto, 40px 40px, 40px 40px; border: 1px solid rgba(212,175,55,.25); }
.dt-brain canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dt-hud { position: absolute; z-index: 1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; font-weight: 700; padding: 8px 11px; border-radius: 9px;
  background: linear-gradient(180deg, rgba(28,22,10,.88), rgba(10,8,4,.88)); box-shadow: 0 0 0 1px rgba(212,175,55,.45), 0 0 18px rgba(212,175,55,.15); max-width: 46%; }
.dt-hud small { display: block; color: #9a8e6e; font-size: 9.5px; font-weight: 400; letter-spacing: .08em; margin-bottom: 2px; }
.dt-hud .val { color: #f7e08f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.dt-hud .val.up { color: #22e58b; text-shadow: 0 0 10px rgba(34,229,139,.45); }
.dt-hud .val.down { color: #ff4560; text-shadow: 0 0 10px rgba(255,69,96,.45); }
.dt-hud.tl { top: 4%; left: 3%; } .dt-hud.tr { top: 4%; right: 3%; text-align: right; } .dt-hud.br { bottom: 4%; right: 3%; text-align: right; }
.dt-brain-c { position: absolute; z-index: 1; left: 3%; bottom: 4%; display: flex; flex-direction: column; gap: 2px; padding: 8px 11px; border-radius: 9px;
  background: rgba(10,8,4,.85); box-shadow: 0 0 0 1px rgba(212,175,55,.3); font-size: 12px; max-width: 46%; }
.dt-brain-c #dt-quote { font-size: 16px; font-weight: 800; color: #fff; }
.dt-brain-c #dt-sig { color: var(--dt2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dt-brain[data-dir="up"] #dt-quote { color: var(--g); } .dt-brain[data-dir="down"] #dt-quote { color: var(--r); }
.dt-brain.flash-win { animation: dtFlashWin .7s ease-out; } .dt-brain.flash-loss { animation: dtFlashLoss .7s ease-out; }
@keyframes dtFlashWin { 0% { box-shadow: 0 0 0 2px rgba(34,229,139,.9), 0 0 40px rgba(34,229,139,.5); } 100% { box-shadow: none; } }
@keyframes dtFlashLoss { 0% { box-shadow: 0 0 0 2px rgba(255,69,96,.9), 0 0 40px rgba(255,69,96,.5); } 100% { box-shadow: none; } }
@media (max-width: 480px) { .dt-hud, .dt-brain-c { font-size: 10.5px; padding: 6px 8px; } .dt-brain-c #dt-quote { font-size: 14px; } }
.dk-simbar { margin-top: -6px; padding: 9px 22px; border-radius: 10px; font-size: 13px; text-align: center; color: #1a1205; background: linear-gradient(90deg, #b8860b, #e7b52c, #b8860b); font-weight: 600; }
.db-coin-xau { background: linear-gradient(135deg, #f7e08f, #b8860b); color: #1a1205; font-size: 11px; }
.cl-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pk-group { scroll-margin-top: 90px; }
.myai-sec { margin-top: 10px; scroll-margin-top: 80px; }
.myai-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.myai-head h2 { font-size: 19px; margin: 0; }
.myai-head p { font-size: 13px; margin: 3px 0 0; }
.myai-tip { padding: 12px 16px; border-radius: 12px; border: 1px dashed rgba(212,165,55,.5); background: rgba(212,165,55,.06); font-size: 14px; color: var(--text-2); }
.myai-tip a { font-weight: 700; }
@media (max-width: 820px) { .flag-img { height: 300px; } .flag-img img { height: 100%; max-height: none; } }

/* Deriv Copy Trading */
.cp { display: flex; flex-direction: column; gap: 18px; }
.cp-warn { padding: 10px 18px; border-radius: 12px; font-size: 13px; text-align: center; color: #1a1205; background: linear-gradient(90deg, #b8860b, #e7b52c, #b8860b); font-weight: 600; }
.cp-center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 32px 20px; }
.cp-center h2 { font-size: 20px; margin: 0; }
.cp-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.cp-pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border); font-size: 13px; font-weight: 700; color: var(--text-2); }
.cp-pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--text-3); }
.cp-pill[data-state="on"] { color: var(--pos); border-color: rgba(34,197,94,.45); }
.cp-pill[data-state="on"] i { background: var(--pos); box-shadow: 0 0 8px rgba(34,197,94,.7); animation: dtPulse 1.4s infinite; }
.cp-log { max-height: 220px; overflow-y: auto; font-size: 12.5px; line-height: 1.7; color: var(--text-2); border-top: 1px solid var(--border-soft); padding-top: 10px; }
.cp-log .pos { color: var(--pos); } .cp-log .neg { color: var(--neg); }
.cp-stats { margin: 0; display: flex; flex-direction: column; }
.cp-stats div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--border-soft); }
.cp-stats div:first-child { border-top: 0; }
.cp-stats dt { color: var(--text-2); font-size: 14px; } .cp-stats dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
@media (max-width: 900px) { .cp-grid { grid-template-columns: minmax(0, 1fr); } }
.cp-bal { font-size: 13px; color: var(--text-2); margin-left: auto; }
.cp-keep { margin: 0; padding: 10px 14px; border-radius: 10px; border: 1px dashed rgba(212,165,55,.55); background: rgba(212,165,55,.07); font-size: 13px; color: var(--red-bright); font-weight: 600; }
.cp-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cp-kpis div { padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-2); }
.cp-kpis small { display: block; font-size: 12px; color: var(--text-3); } .cp-kpis b { font-size: 17px; }
.cp-tape { display: flex; flex-direction: column; gap: 6px; max-height: 280px; overflow-y: auto; }
.cp-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 10px; align-items: center; font-size: 13px; padding: 6px 0; border-top: 1px solid var(--border-soft); }
.cp-row:first-child { border-top: 0; }
.cp-tag { font-weight: 700; } .cp-tag.win { color: var(--pos); } .cp-tag.loss { color: var(--neg); }

.inv-disc { padding: 16px 20px; border-radius: 14px; border: 1px solid rgba(231,181,44,.55); background: rgba(231,181,44,.09); display: flex; flex-direction: column; gap: 8px; }
.inv-disc strong { font-size: 15px; color: #e7b52c; letter-spacing: .02em; }
.inv-disc p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--text-2); }
.cp-share { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-2); font-size: 13px; line-height: 1.6; color: var(--text-2); }
.cp-share strong { font-size: 14px; color: var(--text); }
.cp-share .check { font-size: 13px; }
.cp-simbar { padding: 10px 14px; border-radius: 10px; background: rgba(231,181,44,.12); border: 1px solid rgba(231,181,44,.5); color: #e7b52c; font-size: 13px; font-weight: 600; }
.cp-due { border: 1px solid rgba(255,90,95,.55); background: rgba(255,90,95,.06); }
.vt-tip { margin: 6px 0 -6px; font-size: 14px; color: var(--text-2); } .vt-tip a { font-weight: 700; }

.ea-box { border: 1px solid rgba(232,180,76,.55); background: linear-gradient(180deg, rgba(232,180,76,.07), transparent); }
.ea-key { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.ea-key .ea-k { color: #f8d98e; font-weight: 700; letter-spacing: .06em; font-size: 16px; }
/* copy trading with an API token */
.cpa-master { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(34,197,94,.45); background: rgba(34,197,94,.08); font-size: 15px; }
.cpa-master strong { color: var(--pos); }
.cpa-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pos); box-shadow: 0 0 0 4px rgba(34,197,94,.18); flex-shrink: 0; }
.cpa-token { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--border); background: var(--bg-2); font-size: 13px; color: var(--text-2); }
.cpa-token .btn-ghost { align-self: flex-start; }
.cpa-token ol { margin: 0; padding-left: 18px; line-height: 1.7; }
.cpa-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.cpa-dl div { padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-2); min-width: 0; }
.cpa-dl dt { font-size: 12px; color: var(--text-3); } .cpa-dl dd { margin: 2px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.cpa-edit summary { cursor: pointer; font-weight: 600; color: var(--text-2); margin-bottom: 12px; }
@media (max-width: 560px) { .cpa-dl { grid-template-columns: 1fr; } }

/* "Log in with API token" (admins and chosen users) */
.dk-api { padding: 0; }
.dk-api summary { display: flex; align-items: center; gap: 10px; padding: 12px 16px; cursor: pointer; font-weight: 700; font-size: 14px; list-style: none; }
.dk-api summary::-webkit-details-marker { display: none; }
.dk-api summary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--gold, #e7b52c); }
.dk-api-n { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--pos); }
.dk-api-body { display: flex; flex-direction: column; gap: 12px; padding: 0 16px 16px; }
.dk-api-acc { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 13px; }
.dk-api-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.dk-api-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-3); min-width: 0; }
@media (max-width: 640px) { .dk-api-form { grid-template-columns: 1fr; } }
.cpa-share-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border: 1px dashed var(--border); border-radius: 10px; font-size: 13px; }