:root {
  --bg: #060911;
  --bg-2: #090e19;
  --panel: rgba(15, 22, 36, .88);
  --panel-strong: #111a2a;
  --panel-soft: rgba(18, 28, 45, .68);
  --line: rgba(150, 170, 205, .13);
  --line-strong: rgba(128, 159, 213, .25);
  --text: #f4f7fb;
  --muted: #8f9bb0;
  --muted-2: #647088;
  --yellow: #f7c843;
  --yellow-2: #ffd968;
  --cyan: #35d7ff;
  --blue: #4f7cff;
  --violet: #8b5cf6;
  --green: #29d6a0;
  --red: #ff627d;
  --shadow: 0 28px 80px rgba(0,0,0,.42);
  --radius: 22px;
  --radius-sm: 14px;
}
* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; overflow-x: hidden; background: radial-gradient(circle at 15% 12%, rgba(47,94,176,.14), transparent 30%), radial-gradient(circle at 82% 82%, rgba(139,92,246,.10), transparent 28%), var(--bg); color: var(--text); font-family: "Segoe UI Variable", "Segoe UI", Inter, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button,input,select { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
.ambient { position: fixed; z-index: -2; width: 520px; height: 520px; border-radius: 50%; filter: blur(100px); opacity: .18; pointer-events: none; }
.ambient-a { top: -260px; left: -180px; background: #316dff; }
.ambient-b { right: -240px; bottom: -250px; background: #7048ff; }
.hidden { display: none !important; }
.positive { color: var(--green) !important; }
.negative { color: var(--red) !important; }
.muted { color: var(--muted); }
.eyebrow { color: var(--cyan); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }

.boot-screen { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 20px; }
.boot-copy { display: grid; gap: 6px; text-align: center; }
.boot-copy strong { font-size: 20px; }
.boot-copy span { color: var(--muted); font-size: 13px; }
.boot-track { width: 220px; height: 3px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.07); }
.boot-track i { display: block; width: 45%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, transparent, var(--yellow), transparent); animation: boot 1.2s infinite ease-in-out; }
@keyframes boot { from { transform: translateX(-120%); } to { transform: translateX(260%); } }

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-copy { min-width: 0; }
.brand-copy strong { display: block; font-size: 14px; line-height: 1.15; letter-spacing: -.01em; }
.brand-copy span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.brand-mark { position: relative; flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(247,200,67,.33); border-radius: 12px; background: linear-gradient(145deg, rgba(247,200,67,.18), rgba(247,200,67,.04)); box-shadow: inset 0 0 18px rgba(247,200,67,.08), 0 0 30px rgba(247,200,67,.08); transform: rotate(45deg); }
.brand-mark span,.brand-mark i,.brand-mark b { position: absolute; display: block; background: var(--yellow); border-radius: 2px; }
.brand-mark span { width: 5px; height: 17px; }
.brand-mark i { width: 17px; height: 5px; }
.brand-mark b { width: 7px; height: 7px; background: var(--bg); box-shadow: 0 0 0 2px var(--yellow); }
.brand-mark-xl { width: 64px; height: 64px; border-radius: 18px; }
.brand-mark-xl span { height: 28px; width: 7px; }
.brand-mark-xl i { width: 28px; height: 7px; }
.brand-mark-xl b { width: 11px; height: 11px; }

.tech-ticker { position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: 34px; overflow: hidden; border-bottom: 1px solid rgba(53,215,255,.16); background: rgba(3,7,14,.82); backdrop-filter: blur(18px); }
.tech-ticker::before,.tech-ticker::after { content: ""; position: absolute; z-index: 2; top: 0; width: 100px; height: 100%; pointer-events: none; }
.tech-ticker::before { left: 0; background: linear-gradient(90deg, #060911, transparent); }
.tech-ticker::after { right: 0; background: linear-gradient(-90deg, #060911, transparent); }
.ticker-track { width: max-content; height: 100%; display: flex; align-items: center; gap: 42px; padding-left: 42px; animation: ticker 30s linear infinite; color: #95a8c5; font-family: Consolas, monospace; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.ticker-track b { color: var(--green); font-weight: 700; }
.ticker-track i { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
@keyframes ticker { to { transform: translateX(-50%); } }

.login-page { min-height: 100vh; padding-top: 34px; display: grid; grid-template-columns: minmax(0,1.45fr) minmax(380px,.65fr); }
.login-visual { position: relative; min-height: calc(100vh - 34px); overflow: hidden; padding: 46px clamp(30px,5vw,78px); display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); background: radial-gradient(circle at 55% 42%, rgba(40,126,228,.18), transparent 36%), linear-gradient(135deg, rgba(7,12,22,.7), rgba(3,7,13,.94)); }
.login-visual::before { content: ""; position: absolute; inset: 0; opacity: .15; background-image: linear-gradient(rgba(85,142,224,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(85,142,224,.16) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to bottom, black, transparent 85%); }
.login-brand,.login-hero,.login-foot { position: relative; z-index: 3; }
.login-brand { display: flex; align-items: center; justify-content: space-between; }
.sim-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid rgba(53,215,255,.18); border-radius: 999px; background: rgba(53,215,255,.07); color: #9eeaff; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.sim-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.8); } }
.login-hero { display: grid; grid-template-columns: minmax(280px,.8fr) minmax(420px,1.2fr); gap: clamp(28px,4vw,64px); align-items: center; margin: 30px 0; }
.hero-copy h1 { max-width: 650px; margin: 14px 0 18px; font-size: clamp(38px,4.4vw,72px); line-height: .98; letter-spacing: -.055em; }
.hero-copy h1 em { color: var(--yellow); font-style: normal; text-shadow: 0 0 30px rgba(247,200,67,.18); }
.hero-copy p { max-width: 600px; margin: 0; color: #a6b3c8; font-size: clamp(14px,1.25vw,18px); line-height: 1.75; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.proof-chip { display: flex; align-items: center; gap: 8px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(14,22,36,.58); color: #b9c5d7; font-size: 12px; }
.proof-chip svg { width: 15px; color: var(--cyan); }

.ai-stage { position: relative; min-height: 470px; display: grid; place-items: center; isolation: isolate; }
.ai-core { position: relative; z-index: 3; width: min(88%, 560px); aspect-ratio: 1.36; overflow: hidden; border: 1px solid rgba(83,189,255,.34); border-radius: 32px; background: #07111e; box-shadow: 0 0 0 10px rgba(25,81,135,.06), 0 0 80px rgba(36,142,255,.22), inset 0 0 40px rgba(0,0,0,.5); }
.ai-core img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(1.08) brightness(.8); transform: scale(1.03); }
.ai-core::before { content: ""; position: absolute; z-index: 2; inset: 0; background: linear-gradient(90deg, rgba(4,9,17,.8), transparent 25%, transparent 70%, rgba(6,11,20,.52)), linear-gradient(0deg, rgba(6,11,20,.72), transparent 35%); }
.ai-core::after { content: ""; position: absolute; z-index: 4; left: 0; right: 0; height: 2px; top: 10%; background: linear-gradient(90deg, transparent, rgba(53,215,255,.95), transparent); box-shadow: 0 0 18px rgba(53,215,255,.8); animation: scan 4s ease-in-out infinite alternate; }
@keyframes scan { to { top: 88%; } }
.core-caption { position: absolute; z-index: 5; left: 22px; right: 22px; bottom: 18px; display: flex; justify-content: space-between; align-items: end; }
.core-caption strong { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.core-caption span { display: block; margin-top: 5px; color: #80dff9; font: 10px Consolas, monospace; }
.core-score { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--green); background: rgba(6,17,25,.84); color: var(--green); font-weight: 800; box-shadow: 0 0 20px rgba(41,214,160,.18); }
.core-orbit { position: absolute; z-index: 1; width: 92%; aspect-ratio: 1; border: 1px solid rgba(53,215,255,.15); border-radius: 50%; animation: orbit 28s linear infinite; }
.core-orbit::before,.core-orbit::after { content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 18px var(--cyan); }
.core-orbit::before { top: 15%; left: 12%; }
.core-orbit::after { right: 8%; bottom: 28%; background: var(--yellow); box-shadow: 0 0 18px var(--yellow); }
@keyframes orbit { to { transform: rotate(360deg); } }
.hud-card { position: absolute; z-index: 6; min-width: 150px; padding: 12px 14px; border: 1px solid rgba(117,162,230,.22); border-radius: 14px; background: rgba(8,15,27,.82); box-shadow: 0 18px 40px rgba(0,0,0,.28); backdrop-filter: blur(14px); }
.hud-card small { display: block; color: var(--muted); font: 9px Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; }
.hud-card strong { display: block; margin-top: 5px; font-size: 15px; }
.hud-card .mini-bars { display: flex; align-items: end; gap: 3px; height: 20px; margin-top: 8px; }
.hud-card .mini-bars i { width: 5px; border-radius: 4px; background: linear-gradient(var(--cyan), rgba(53,215,255,.15)); }
.hud-a { top: 4%; left: 0; animation: floatA 5s ease-in-out infinite; }
.hud-b { right: -2%; top: 16%; animation: floatB 6s ease-in-out infinite; }
.hud-c { left: 2%; bottom: 3%; animation: floatB 7s ease-in-out infinite reverse; }
.hud-d { right: 0; bottom: 1%; animation: floatA 5.5s ease-in-out infinite reverse; }
@keyframes floatA { 50% { transform: translateY(-9px); } }
@keyframes floatB { 50% { transform: translateY(8px); } }
.login-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted-2); font-size: 11px; }
.system-line { display: flex; align-items: center; gap: 9px; }
.system-line i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }

.login-side { min-height: calc(100vh - 34px); display: grid; place-items: center; padding: 38px clamp(24px,4vw,64px); background: linear-gradient(180deg, rgba(13,20,32,.94), rgba(7,11,19,.98)); }
.login-card { width: min(100%, 470px); padding: clamp(26px,3vw,42px); border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(150deg, rgba(20,30,48,.94), rgba(10,16,27,.96)); box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.035); }
.login-card-head { margin-bottom: 30px; }
.login-card-head .mobile-brand { display: none; margin-bottom: 28px; }
.login-card h2 { margin: 9px 0 9px; font-size: 30px; letter-spacing: -.035em; }
.login-card p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 13px; }
.form-grid { display: grid; gap: 17px; }
.form-group { display: grid; gap: 8px; }
.form-group label { color: #c3ccda; font-size: 12px; font-weight: 700; }
.input-wrap { position: relative; }
.input-wrap svg { position: absolute; left: 15px; top: 50%; width: 17px; transform: translateY(-50%); color: #6f7c92; pointer-events: none; }
.input,.select { width: 100%; min-height: 50px; padding: 0 16px; border: 1px solid var(--line); outline: none; border-radius: 13px; background: rgba(5,10,18,.65); color: var(--text); transition: .2s; }
.input.has-icon { padding-left: 44px; }
.input:focus,.select:focus { border-color: rgba(53,215,255,.45); box-shadow: 0 0 0 4px rgba(53,215,255,.06); }
.input::placeholder { color: #566176; }
.password-toggle { position: absolute; right: 10px; top: 50%; width: 34px; height: 34px; border: 0; background: transparent; transform: translateY(-50%); color: var(--muted); cursor: pointer; }
.login-options { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; }
.btn { min-height: 44px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 12px; cursor: pointer; font-weight: 750; transition: transform .2s, border-color .2s, background .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: linear-gradient(135deg, var(--yellow-2), var(--yellow)); color: #171203; box-shadow: 0 12px 30px rgba(247,200,67,.16); }
.btn-primary:hover { box-shadow: 0 15px 34px rgba(247,200,67,.24); }
.btn-secondary { border-color: var(--line); background: rgba(255,255,255,.035); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn-danger { background: rgba(255,98,125,.1); border-color: rgba(255,98,125,.18); color: #ff93a6; }
.btn-block { width: 100%; min-height: 52px; }
.login-security { margin-top: 20px; padding: 14px; display: flex; gap: 11px; border: 1px solid rgba(41,214,160,.14); border-radius: 13px; background: rgba(41,214,160,.055); }
.login-security svg { flex: 0 0 auto; width: 18px; color: var(--green); }
.login-security strong { display: block; font-size: 11px; }
.login-security span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.demo-note { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 10px; line-height: 1.6; text-align: center; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 260px minmax(0,1fr); background: linear-gradient(135deg, rgba(10,15,25,.96), rgba(5,8,14,.98)); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 24px 18px; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: rgba(7,11,19,.86); backdrop-filter: blur(24px); }
.sidebar .brand { padding: 0 8px 26px; border-bottom: 1px solid var(--line); }
.nav { display: grid; gap: 7px; margin-top: 24px; }
.nav-item { width: 100%; min-height: 46px; padding: 0 13px; display: flex; align-items: center; gap: 12px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--muted); cursor: pointer; text-align: left; font-weight: 650; }
.nav-item svg { width: 18px; }
.nav-item:hover { color: var(--text); background: rgba(255,255,255,.03); }
.nav-item.active { color: var(--text); border-color: rgba(247,200,67,.16); background: linear-gradient(90deg, rgba(247,200,67,.12), rgba(247,200,67,.03)); }
.nav-item.active svg { color: var(--yellow); }
.sidebar-bottom { margin-top: auto; }
.ai-mini-status { padding: 14px; border: 1px solid rgba(53,215,255,.14); border-radius: 15px; background: linear-gradient(145deg, rgba(53,215,255,.08), rgba(79,124,255,.03)); }
.ai-mini-head { display: flex; align-items: center; justify-content: space-between; }
.ai-mini-head strong { font-size: 11px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); animation: pulse 1.8s infinite; }
.ai-mini-status p { margin: 8px 0 10px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.ai-mini-meter { height: 4px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.06); }
.ai-mini-meter i { display: block; width: 84%; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--blue)); border-radius: inherit; animation: meter 2.8s ease-in-out infinite alternate; }
@keyframes meter { to { width: 96%; } }
.sidebar-user { margin-top: 13px; padding: 10px 8px 0; display: flex; align-items: center; gap: 10px; }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(109,140,191,.25); border-radius: 12px; background: linear-gradient(145deg, #1e2b43, #101827); color: #dce7f6; font-size: 12px; font-weight: 800; }
.sidebar-user-copy { min-width: 0; flex: 1; }
.sidebar-user-copy strong,.sidebar-user-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user-copy strong { font-size: 11px; }
.sidebar-user-copy span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.icon-button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.025); color: var(--muted); cursor: pointer; }
.icon-button svg { width: 17px; }

.app-main { min-width: 0; padding: 22px clamp(18px,3vw,42px) 50px; }
.topbar { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.page-title span { display: block; color: var(--muted); font-size: 11px; }
.page-title h1 { margin: 5px 0 0; font-size: clamp(22px,2.1vw,31px); letter-spacing: -.035em; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.clock-chip { min-height: 39px; padding: 0 13px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); font: 10px Consolas, monospace; }
.clock-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.content-stack { display: grid; gap: 18px; margin-top: 14px; }
.grid { display: grid; gap: 18px; }
.grid-hero { grid-template-columns: minmax(0,1.55fr) minmax(330px,.75fr); }
.grid-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4,minmax(0,1fr)); }
.card { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(18,27,43,.9), rgba(10,16,27,.88)); box-shadow: inset 0 1px rgba(255,255,255,.025); }
.card-pad { padding: 22px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.card-head h2,.card-head h3 { margin: 0; font-size: 16px; letter-spacing: -.015em; }
.card-head p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.card-action { color: var(--muted); font-size: 10px; }
.portfolio-card { padding: clamp(22px,3vw,34px); background: radial-gradient(circle at 82% 18%, rgba(53,215,255,.11), transparent 30%), radial-gradient(circle at 15% 100%, rgba(139,92,246,.09), transparent 35%), linear-gradient(145deg, rgba(18,28,46,.96), rgba(9,15,26,.96)); }
.portfolio-card::before { content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border: 1px solid rgba(53,215,255,.08); border-radius: 50%; box-shadow: 0 0 0 28px rgba(53,215,255,.025), 0 0 0 58px rgba(53,215,255,.015); }
.portfolio-top { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 20px; }
.portfolio-label { color: var(--muted); font-size: 11px; }
.portfolio-value { margin-top: 7px; font-size: clamp(32px,4vw,54px); font-weight: 780; letter-spacing: -.055em; }
.portfolio-currency { color: var(--muted); font-size: 15px; font-weight: 600; }
.return-pill { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 7px 10px; border-radius: 9px; background: rgba(41,214,160,.09); color: var(--green); font-size: 11px; font-weight: 750; }
.ai-control-chip { height: fit-content; padding: 9px 12px; display: flex; align-items: center; gap: 8px; border: 1px solid rgba(53,215,255,.17); border-radius: 11px; background: rgba(53,215,255,.06); color: #a6ecff; font-size: 10px; font-weight: 700; }
.ai-control-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.chart-wrap { position: relative; height: 220px; margin: 16px -4px 0; }
.chart-wrap svg { width: 100%; height: 100%; overflow: visible; }
.chart-grid line { stroke: rgba(144,166,204,.08); stroke-width: 1; }
.chart-line { fill: none; stroke: var(--cyan); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 8px rgba(53,215,255,.3)); }
.chart-area { fill: url(#areaGradient); }
.chart-point { fill: var(--panel-strong); stroke: var(--cyan); stroke-width: 3; }
.chart-labels { display: flex; justify-content: space-between; color: var(--muted-2); font-size: 9px; }
.range-switch { display: flex; align-items: center; gap: 5px; }
.range-switch button { min-width: 34px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 9px; cursor: pointer; }
.range-switch button.active { background: rgba(255,255,255,.07); color: var(--text); }
.fx-strip { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; margin-top: 20px; }
.fx-box { padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(3,8,15,.34); }
.fx-box span { display: block; color: var(--muted); font-size: 9px; }
.fx-box strong { display: block; margin-top: 4px; font-size: 12px; }

.ai-command { padding: 22px; background: radial-gradient(circle at 50% -10%, rgba(79,124,255,.18), transparent 45%), linear-gradient(160deg, rgba(16,27,46,.96), rgba(7,13,23,.96)); }
.ai-command::after { content: ""; position: absolute; inset: 0; opacity: .1; background-image: linear-gradient(rgba(53,215,255,.2) 1px, transparent 1px), linear-gradient(90deg, rgba(53,215,255,.2) 1px, transparent 1px); background-size: 30px 30px; mask-image: linear-gradient(to bottom, black, transparent); pointer-events: none; }
.ai-command > * { position: relative; z-index: 2; }
.ai-orb { position: relative; width: 98px; height: 98px; margin: 8px auto 18px; display: grid; place-items: center; border: 1px solid rgba(53,215,255,.22); border-radius: 50%; background: radial-gradient(circle, rgba(53,215,255,.23), rgba(79,124,255,.06) 50%, transparent 51%); box-shadow: 0 0 50px rgba(53,215,255,.12); }
.ai-orb::before,.ai-orb::after { content: ""; position: absolute; inset: -10px; border: 1px dashed rgba(53,215,255,.22); border-radius: 50%; animation: orbit 12s linear infinite; }
.ai-orb::after { inset: 10px; border-style: solid; animation-direction: reverse; animation-duration: 8s; }
.ai-orb span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: var(--cyan); color: #06101b; font-weight: 900; box-shadow: 0 0 22px rgba(53,215,255,.5); }
.ai-command-title { text-align: center; }
.ai-command-title h3 { margin: 0; font-size: 18px; }
.ai-command-title p { margin: 7px auto 0; max-width: 300px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.ai-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 19px; }
.ai-stat { padding: 10px 7px; border: 1px solid var(--line); border-radius: 11px; background: rgba(2,7,14,.32); text-align: center; }
.ai-stat strong { display: block; font-size: 14px; }
.ai-stat span { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.scan-feed { margin-top: 15px; display: grid; gap: 8px; }
.scan-row { padding: 9px 10px; display: grid; grid-template-columns: 1fr auto; gap: 8px; border-left: 2px solid var(--cyan); background: rgba(255,255,255,.025); }
.scan-row strong { display: block; font-size: 10px; }
.scan-row span { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.scan-row b { align-self: center; color: var(--green); font-size: 9px; }

.kpi { padding: 18px; }
.kpi-icon { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.03); color: var(--yellow); }
.kpi-icon svg { width: 18px; }
.kpi-top { display: flex; justify-content: space-between; }
.kpi-label { margin-top: 17px; color: var(--muted); font-size: 10px; }
.kpi-value { margin-top: 5px; font-size: 24px; font-weight: 780; letter-spacing: -.035em; }
.kpi-trend { margin-top: 8px; color: var(--green); font-size: 9px; }

.market-list,.activity-list,.user-list { display: grid; }
.market-row { min-height: 70px; padding: 11px 0; display: grid; grid-template-columns: minmax(155px,1.2fr) minmax(90px,.7fr) minmax(90px,.6fr) minmax(100px,.7fr); align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.market-row:last-child { border-bottom: 0; }
.asset-id { min-width: 0; display: flex; align-items: center; gap: 11px; }
.coin { flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: #07101b; font-size: 12px; font-weight: 900; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.asset-copy { min-width: 0; }
.asset-copy strong,.asset-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-copy strong { font-size: 12px; }
.asset-copy span { margin-top: 4px; color: var(--muted); font-size: 9px; }
.market-cell { text-align: right; }
.market-cell strong { display: block; font-size: 12px; }
.market-cell span { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.allocation-bar { height: 5px; margin-top: 7px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.05); }
.allocation-bar i { display: block; height: 100%; border-radius: inherit; }
.mobile-only { display: none; }

.donut-layout { display: grid; grid-template-columns: 155px minmax(0,1fr); align-items: center; gap: 22px; }
.donut { position: relative; width: 145px; height: 145px; border-radius: 50%; background: conic-gradient(var(--segments)); }
.donut::after { content: ""; position: absolute; inset: 23px; border-radius: 50%; background: #101827; box-shadow: inset 0 0 0 1px var(--line); }
.donut-center { position: absolute; z-index: 2; inset: 0; display: grid; place-content: center; text-align: center; }
.donut-center strong { font-size: 19px; }
.donut-center span { color: var(--muted); font-size: 8px; }
.legend { display: grid; gap: 9px; }
.legend-row { display: grid; grid-template-columns: 8px 1fr auto; gap: 8px; align-items: center; font-size: 10px; }
.legend-row i { width: 8px; height: 8px; border-radius: 3px; }
.legend-row span { color: var(--muted); }

.insight-card { padding: 22px; background: radial-gradient(circle at 100% 0, rgba(139,92,246,.15), transparent 38%), linear-gradient(145deg, rgba(20,27,48,.94), rgba(10,16,27,.93)); }
.insight-head { display: flex; align-items: center; gap: 12px; }
.insight-icon { width: 43px; height: 43px; display: grid; place-items: center; border: 1px solid rgba(139,92,246,.25); border-radius: 13px; background: rgba(139,92,246,.11); color: #b79bff; }
.insight-icon svg { width: 21px; }
.insight-head h3 { margin: 0; font-size: 14px; }
.insight-head p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.insight-body { margin-top: 17px; color: #b9c4d5; font-size: 11px; line-height: 1.75; }
.insight-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.insight-tags span { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.025); color: var(--muted); font-size: 8px; }

.activity-row { padding: 13px 0; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; gap: 11px; align-items: center; border-bottom: 1px solid var(--line); }
.activity-row:last-child { border-bottom: 0; }
.activity-icon { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 11px; background: rgba(53,215,255,.07); color: var(--cyan); }
.activity-icon.gain { background: rgba(41,214,160,.08); color: var(--green); }
.activity-icon svg { width: 16px; }
.activity-copy strong { display: block; font-size: 10px; }
.activity-copy span { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.activity-value { text-align: right; }
.activity-value strong { display: block; font-size: 10px; }
.activity-value span { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.data-table th { padding: 12px 10px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.data-table td { padding: 14px 10px; border-bottom: 1px solid var(--line); font-size: 10px; }
.data-table tbody tr:hover { background: rgba(255,255,255,.02); }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 8px; background: rgba(41,214,160,.08); color: var(--green); font-size: 8px; font-weight: 750; }
.status-pill.off { background: rgba(255,98,125,.08); color: var(--red); }
.row-actions { display: flex; justify-content: flex-end; gap: 6px; }
.row-actions button { height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.025); cursor: pointer; font-size: 9px; }

.admin-hero { padding: 24px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 24px; align-items: center; background: radial-gradient(circle at 85% 30%, rgba(53,215,255,.12), transparent 32%), linear-gradient(135deg, rgba(19,29,47,.96), rgba(9,15,25,.96)); }
.admin-hero h2 { margin: 7px 0 9px; font-size: 24px; }
.admin-hero p { max-width: 700px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.admin-ai-ring { width: 96px; height: 96px; display: grid; place-items: center; border: 1px solid rgba(53,215,255,.2); border-radius: 50%; background: radial-gradient(circle, rgba(53,215,255,.16), transparent 66%); }
.admin-ai-ring strong { font-size: 20px; }
.admin-ai-ring span { display: block; color: var(--muted); font-size: 8px; text-align: center; }

.modal-backdrop { position: fixed; z-index: 100; inset: 0; padding: 20px; display: grid; place-items: center; background: rgba(1,4,10,.76); backdrop-filter: blur(12px); }
.modal { width: min(100%, 650px); max-height: calc(100vh - 40px); overflow: auto; border: 1px solid var(--line-strong); border-radius: 22px; background: linear-gradient(150deg, #141e30, #0a101b); box-shadow: 0 35px 100px rgba(0,0,0,.55); }
.modal-lg { width: min(100%, 920px); }
.modal-head { position: sticky; z-index: 2; top: 0; padding: 20px 22px; display: flex; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); background: rgba(17,26,42,.94); backdrop-filter: blur(15px); }
.modal-head h3 { margin: 0; font-size: 18px; }
.modal-head p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.modal-body { padding: 22px; }
.modal-actions { padding: 17px 22px; display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line); }
.form-cols { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.asset-select-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin-top: 10px; }
.asset-check { position: relative; }
.asset-check input { position: absolute; opacity: 0; }
.asset-check label { padding: 11px 8px; display: grid; justify-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.02); cursor: pointer; font-size: 9px; }
.asset-check input:checked + label { border-color: rgba(53,215,255,.38); background: rgba(53,215,255,.08); color: #b9f1ff; }
.asset-check label i { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; color: #06101a; font-style: normal; font-weight: 900; }
.detail-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 18px; }
.detail-box { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); }
.detail-box span { display: block; color: var(--muted); font-size: 8px; }
.detail-box strong { display: block; margin-top: 5px; font-size: 15px; }
.action-tabs { display: flex; gap: 8px; margin: 18px 0 14px; }
.action-tabs button { min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.02); color: var(--muted); cursor: pointer; font-size: 9px; }
.action-tabs button.active { border-color: rgba(247,200,67,.3); background: rgba(247,200,67,.08); color: var(--yellow); }

.toast-root { position: fixed; z-index: 200; right: 20px; bottom: 20px; display: grid; gap: 10px; }
.toast { width: min(360px,calc(100vw - 40px)); padding: 14px 16px; display: grid; grid-template-columns: 24px 1fr; gap: 10px; border: 1px solid var(--line-strong); border-radius: 13px; background: rgba(15,23,37,.96); box-shadow: 0 20px 60px rgba(0,0,0,.4); animation: toastIn .25s ease-out; }
.toast.success { border-color: rgba(41,214,160,.24); }
.toast.error { border-color: rgba(255,98,125,.25); }
.toast strong { display: block; font-size: 10px; }
.toast span { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }
.empty-state { padding: 35px 15px; color: var(--muted); text-align: center; font-size: 11px; }
.bottom-nav { display: none; }

@media (max-width: 1220px) {
  .login-page { grid-template-columns: minmax(0,1.15fr) minmax(360px,.7fr); }
  .login-hero { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 48px; }
  .hero-copy p { max-width: 760px; }
  .ai-stage { min-height: 370px; }
  .ai-core { width: min(75%,520px); }
  .hud-a { left: 5%; }.hud-b { right: 4%; }.hud-c { left: 7%; }.hud-d { right: 5%; }
  .grid-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 980px) {
  .login-page { grid-template-columns: 1fr; }
  .login-visual { min-height: auto; padding-bottom: 24px; border-right: 0; }
  .login-hero { margin-bottom: 0; }
  .login-foot { display: none; }
  .login-side { min-height: auto; padding-top: 24px; padding-bottom: 60px; }
  .app-shell { grid-template-columns: 82px minmax(0,1fr); }
  .sidebar { padding: 20px 12px; }
  .sidebar .brand-copy,.nav-item span,.ai-mini-status,.sidebar-user-copy { display: none; }
  .sidebar .brand { justify-content: center; padding: 0 0 22px; }
  .nav-item { justify-content: center; padding: 0; }
  .sidebar-user { justify-content: center; padding-left: 0; padding-right: 0; }
  .grid-hero,.grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  body { padding-bottom: 72px; }
  .tech-ticker { height: 30px; }
  .login-page { padding-top: 30px; }
  .login-visual { padding: 24px 18px 10px; }
  .login-brand .brand { display: none; }
  .login-brand { justify-content: flex-end; }
  .hero-copy h1 { margin-top: 10px; font-size: 37px; }
  .hero-copy p { font-size: 13px; }
  .hero-proof { gap: 7px; margin-top: 20px; }
  .proof-chip { padding: 8px 10px; font-size: 9px; }
  .ai-stage { min-height: 330px; margin: 10px -12px 0; }
  .ai-core { width: 84%; border-radius: 22px; }
  .hud-card { min-width: 112px; padding: 9px 10px; }
  .hud-card small { font-size: 7px; }.hud-card strong { font-size: 11px; }
  .hud-a { top: 2%; left: 0; }.hud-b { right: 0; top: 10%; }.hud-c { left: 1%; bottom: 3%; }.hud-d { right: 0; bottom: 0; }
  .login-side { padding: 12px 14px 34px; }
  .login-card { padding: 24px 19px; border-radius: 22px; }
  .login-card-head .mobile-brand { display: flex; }
  .app-shell { display: block; }
  .sidebar { display: none; }
  .app-main { padding: 14px 13px 28px; }
  .topbar { min-height: 56px; }
  .page-title span { font-size: 9px; }
  .page-title h1 { font-size: 21px; }
  .clock-chip { display: none; }
  .top-actions .btn span { display: none; }
  .top-actions .btn { width: 42px; padding: 0; }
  .grid,.content-stack { gap: 12px; }
  .grid-3,.grid-4 { grid-template-columns: 1fr 1fr; }
  .card { border-radius: 18px; }
  .card-pad,.ai-command,.insight-card { padding: 17px; }
  .portfolio-card { padding: 18px; }
  .portfolio-value { font-size: 35px; }
  .portfolio-top { align-items: flex-start; }
  .ai-control-chip { padding: 7px 8px; font-size: 8px; }
  .chart-wrap { height: 180px; }
  .fx-strip { grid-template-columns: repeat(2,1fr); }
  .market-row { grid-template-columns: minmax(130px,1fr) auto auto; gap: 8px; }
  .market-row .market-cell:nth-child(2) { display: none; }
  .market-cell strong { font-size: 10px; }
  .donut-layout { grid-template-columns: 125px 1fr; gap: 15px; }
  .donut { width: 120px; height: 120px; }
  .donut::after { inset: 19px; }
  .form-cols { grid-template-columns: 1fr; }
  .asset-select-grid { grid-template-columns: repeat(3,1fr); }
  .detail-summary { grid-template-columns: 1fr; }
  .mobile-only { display: block; }
  .bottom-nav { position: fixed; z-index: 80; left: 10px; right: 10px; bottom: 8px; height: 62px; padding: 6px; display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line-strong); border-radius: 18px; background: rgba(10,16,27,.94); box-shadow: 0 15px 50px rgba(0,0,0,.42); backdrop-filter: blur(20px); }
  .bottom-nav button { display: grid; place-content: center; justify-items: center; gap: 4px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font-size: 8px; }
  .bottom-nav button svg { width: 17px; }
  .bottom-nav button.active { background: rgba(247,200,67,.09); color: var(--yellow); }
  .admin-hero { grid-template-columns: 1fr; }
  .admin-ai-ring { display: none; }
}
@media (max-width: 430px) {
  .grid-3,.grid-4 { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 34px; }
  .ai-stage { min-height: 300px; }
  .hud-card strong { font-size: 10px; }
  .core-caption { left: 14px; right: 14px; bottom: 12px; }
  .core-score { width: 44px; height: 44px; font-size: 12px; }
  .portfolio-value { font-size: 31px; }
  .donut-layout { grid-template-columns: 1fr; justify-items: center; }
  .legend { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

.pwa-install-banner{position:fixed;z-index:160;right:24px;bottom:24px;width:min(430px,calc(100vw - 32px));display:grid;grid-template-columns:52px minmax(0,1fr) auto 24px;align-items:center;gap:12px;padding:12px;border:1px solid rgba(71,221,191,.28);border-radius:18px;background:rgba(8,15,26,.96);box-shadow:0 22px 70px rgba(0,0,0,.5),0 0 40px rgba(40,206,178,.08);backdrop-filter:blur(22px)}
.pwa-install-banner[hidden]{display:none}.pwa-install-icon{width:52px;height:52px;overflow:hidden;border-radius:14px;box-shadow:0 0 24px rgba(36,213,180,.2)}.pwa-install-icon img{width:100%;height:100%;display:block}.pwa-install-copy{min-width:0;display:grid;gap:3px}.pwa-install-copy strong{color:#f6f8fb;font-size:12px}.pwa-install-copy span{color:var(--muted);font-size:10px;line-height:1.45}.pwa-install-action{min-height:36px;padding:0 14px;border:1px solid rgba(247,200,67,.35);border-radius:11px;background:linear-gradient(135deg,#f7c843,#f1a92f);color:#171203;font-size:10px;font-weight:800;cursor:pointer}.pwa-install-close{border:0;background:transparent;color:var(--muted);font-size:22px;cursor:pointer}.pwa-install-banner.is-guide{grid-template-columns:52px minmax(0,1fr) 24px}.pwa-install-banner.is-guide .pwa-install-action{display:none}
@media(max-width:700px){.pwa-install-banner{left:12px;right:12px;bottom:82px;width:auto;grid-template-columns:46px minmax(0,1fr) auto 20px;gap:9px;padding:10px;border-radius:16px}.pwa-install-icon{width:46px;height:46px;border-radius:12px}.pwa-install-copy strong{font-size:11px}.pwa-install-copy span{font-size:9px}.pwa-install-action{min-height:34px;padding:0 11px}.pwa-install-banner.is-guide{grid-template-columns:46px minmax(0,1fr) 20px}}
@media(display-mode:standalone){body{padding-top:env(safe-area-inset-top)}.pwa-install-banner{display:none!important}}