:root {
  --bg: #0a0f1e;
  --bg-2: #0d1428;
  --card: #131c3a;
  --card-2: #18234a;
  --line: #24305a;
  --text: #eef2ff;
  --muted: #8f9bc4;
  --teal: #2dd4bf;
  --teal-dark: #0f766e;
  --red: #f87171;
  --gold: #f5c451;
  --violet: #8b7cf6;
  --gpt: #10a37f;
  --claude: #d97757;
  --gemini: #5b8def;
  --grok: #7d87a8;
  --radius: 16px;
  --font-h: "Poppins", system-ui, sans-serif;
  --font-b: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font-b);
  color: var(--text);
  background:
    radial-gradient(900px 500px at 100% -10%, rgba(45, 212, 191, 0.09), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(139, 124, 246, 0.10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-family: var(--font-h); margin: 0; letter-spacing: -0.01em; }
button { font: inherit; color: inherit; cursor: pointer; }
input { font: inherit; }
code { background: rgba(255,255,255,.07); padding: 1px 6px; border-radius: 6px; }

.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.xsmall { font-size: 0.76rem; margin: 10px 0 0; }
.thin { font-family: var(--font-b); font-weight: 400; font-size: 0.9rem; }
.center { text-align: center; display: block; }
.accent { color: var(--teal); }
.gold-text { color: var(--gold); }

.card {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.eyebrow { color: var(--teal); font-family: var(--font-h); font-weight: 700; letter-spacing: .22em; font-size: .74rem; margin: 0 0 6px; }
.eyebrow-pill {
  display: inline-block; border: 1px solid rgba(45,212,191,.45); color: var(--teal);
  border-radius: 999px; padding: 7px 16px; font-family: var(--font-h); font-weight: 700;
  letter-spacing: .18em; font-size: .72rem;
}

/* ---------- buttons ---------- */
.btn {
  border: 1px solid transparent; border-radius: 12px; padding: 13px 20px;
  font-family: var(--font-h); font-weight: 600; font-size: .95rem; transition: .15s ease;
}
.btn-primary { background: var(--teal); color: #052a26; box-shadow: 0 8px 24px -10px rgba(45,212,191,.7); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn-outline { background: transparent; border-color: var(--line); color: var(--text); }
.btn-outline:hover { border-color: var(--teal); }
.btn-danger { background: transparent; border-color: rgba(248,113,113,.5); color: var(--red); }
.btn-block { width: 100%; }
.link { color: var(--teal); text-decoration: none; }

/* ---------- form ---------- */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: .82rem; color: var(--muted); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; background: #1a2550; border: 1px solid var(--line); color: var(--text);
  border-radius: 12px; padding: 13px 14px; outline: none; font-size: 1rem;
}
.field input:focus, .field select:focus { border-color: var(--teal); }
.form-error { color: var(--red); font-size: .86rem; margin: 0 0 12px; }

/* ---------- login ---------- */
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; }
.login-wrap { width: 100%; max-width: 1180px; display: grid; grid-template-columns: 1.25fr 420px; gap: 56px; align-items: center; }
.hero-title { font-size: clamp(2.2rem, 4.6vw, 4rem); line-height: 1.05; font-weight: 800; margin: 22px 0 16px; }
.hero-sub { color: var(--muted); font-size: 1.12rem; max-width: 520px; line-height: 1.55; }
.login-card h2 { font-size: 1.5rem; margin: 14px 0 6px; text-align: center; }
.login-card > p { text-align: center; margin: 0 0 20px; }
.login-card .btn { margin-top: 4px; margin-bottom: 14px; }
.avatar-lg { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto; background: linear-gradient(135deg, #8b7cf6, #2dd4bf); }
.demo-hint { margin-top: 16px; padding: 10px 12px; border-radius: 10px; background: rgba(245,196,81,.08); border: 1px solid rgba(245,196,81,.3); color: var(--gold); font-size: .82rem; text-align: center; }

.orbit { position: relative; width: 420px; height: 300px; margin-top: 34px; }
.ring { position: absolute; border: 1px dashed rgba(143,155,196,.25); border-radius: 50%; }
.ring-outer { width: 280px; height: 280px; left: 70px; top: 10px; }
.ring-inner { width: 190px; height: 190px; left: 115px; top: 55px; }
.bubble {
  position: absolute; width: 104px; height: 104px; border-radius: 50%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; box-shadow: 0 16px 40px -14px rgba(0,0,0,.7);
  animation: float 5s ease-in-out infinite;
}
.bubble strong { font-family: var(--font-h); font-size: .95rem; }
.bubble span { font-size: .78rem; opacity: .9; }
.b-gpt { background: linear-gradient(135deg, #14b88f, #0b7d62); left: 158px; top: -30px; }
.b-claude { background: linear-gradient(135deg, #e58a68, #b9583a); left: 318px; top: 105px; animation-delay: -1.2s; }
.b-gemini { background: linear-gradient(135deg, #6f9cf7, #3f6bd6); left: 158px; top: 232px; animation-delay: -2.4s; }
.b-grok { background: linear-gradient(135deg, #8a93b6, #5a6283); left: -2px; top: 105px; animation-delay: -3.6s; }
.b-center { width: 92px; height: 92px; background: linear-gradient(135deg, #2dd4bf, #67e8f9); color: #062a2a; left: 164px; top: 110px; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------- app shell ---------- */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; padding: 26px 18px; border-right: 1px solid var(--line);
  background: rgba(10,15,30,.7); backdrop-filter: blur(10px); display: flex; flex-direction: column;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--teal), #67e8f9); color: #062a2a; font-family: var(--font-h); font-weight: 800;
}
.brand-name { font-family: var(--font-h); font-weight: 700; font-size: 1.12rem; }
.brand-name span { color: var(--teal); }
.nav { display: flex; flex-direction: column; gap: 4px; margin-top: 34px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px;
  background: transparent; border: 1px solid transparent; color: var(--muted); text-align: left; font-weight: 500;
}
.nav-item:hover { color: var(--text); background: rgba(255,255,255,.03); }
.nav-item.active { color: var(--text); background: var(--card); border-color: var(--line); }
.nav-item.active .ico { filter: none; }
.ico { width: 22px; text-align: center; }
.sidebar-balance { margin-top: auto; padding: 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.sidebar-balance strong { font-family: var(--font-h); font-size: 1.3rem; }

.main { padding: 0 34px 60px; min-width: 0; }
.topbar { display: flex; justify-content: flex-end; align-items: center; padding: 20px 0 8px; gap: 12px; }
.brand-mobile { display: none; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.balance-chip { padding: 9px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: .9rem; }
.balance-chip strong { font-family: var(--font-h); margin-left: 4px; }
.avatar-sm { width: 38px; height: 38px; border-radius: 50%; border: 0; background: linear-gradient(135deg, #8b7cf6, #2dd4bf); }

.view { display: none; animation: fade .25s ease; }
.view.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.view-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 8px 0 20px; flex-wrap: wrap; }
.view-title { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
.view-head p.muted { margin: 6px 0 0; }
.live-dot { font-family: var(--font-b); font-size: .78rem; font-weight: 600; color: var(--teal); vertical-align: middle; padding: 4px 10px 4px 20px; border-radius: 999px; background: rgba(45,212,191,.1); position: relative; }
.live-dot::before { content: ""; position: absolute; left: 9px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--teal); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .2; } }

/* ---------- trade ---------- */
.asset-picker { display: flex; gap: 8px; flex-wrap: wrap; }
.asset-btn { padding: 8px 14px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-size: .86rem; font-weight: 600; }
.asset-btn.active { color: var(--teal); border-color: var(--teal); background: rgba(45,212,191,.08); }

.chart-card { padding: 0; overflow: hidden; }
.window-bar { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a3666; display: block; }
.chart-wrap { height: 520px; background: #0b1224; }
.chart-wrap .tradingview-widget-container, .chart-wrap .tradingview-widget-container__widget { height: 100%; width: 100%; }

.trade-grid { display: grid; grid-template-columns: 380px 1fr; gap: 20px; margin-top: 20px; }
.entry-card h3, .ai-card h3, .history-card h3, .notes-card h3 { font-size: 1.12rem; margin-bottom: 16px; }
.group { margin-bottom: 18px; }
.label { display: block; font-size: .82rem; color: var(--muted); margin-bottom: 8px; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg-btn {
  padding: 10px 14px; border-radius: 10px; background: transparent; border: 1px solid var(--line);
  color: var(--text); font-size: .9rem; font-weight: 500; flex: 1 1 auto;
}
.seg-btn.active { border-color: var(--teal); color: var(--teal); background: rgba(45,212,191,.1); }
.dir-seg .seg-btn { font-weight: 700; padding: 12px; }
.dir-seg .seg-btn.down.active { border-color: var(--red); color: var(--red); background: rgba(248,113,113,.1); }
.seg-input {
  width: 92px; flex: 1 1 80px; background: transparent; border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); padding: 10px 12px; outline: none;
}
.seg-input:focus, .seg-input.active { border-color: var(--teal); }
.entry-summary { padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px dashed var(--line); font-size: .9rem; margin-bottom: 14px; color: var(--muted); }
.entry-summary strong { color: var(--text); }

.ai-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.badge { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.badge-warn { color: var(--gold); background: rgba(245,196,81,.1); border: 1px solid rgba(245,196,81,.35); }

.ai-list { display: flex; flex-direction: column; gap: 10px; }
.ai-row {
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 14px; background: rgba(10,15,30,.45); border: 1px solid var(--line);
  transition: border-color .3s, background .3s;
}
.ai-row.waiting { opacity: .55; }
.ai-row.loading { border-color: rgba(45,212,191,.5); }
.ai-row.ok { border-color: rgba(45,212,191,.55); background: rgba(45,212,191,.07); }
.ai-row.no { border-color: rgba(248,113,113,.6); background: rgba(248,113,113,.08); }
.ai-num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-h); font-weight: 700; color: #fff; }
.ai-name { font-family: var(--font-h); font-weight: 600; }
.ai-reason { font-size: .86rem; color: var(--muted); margin-top: 2px; min-height: 1.2em; }
.ai-reason .conf { color: var(--text); opacity: .7; }
.ai-status { font-size: .82rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.ai-status.wait { color: var(--muted); background: rgba(255,255,255,.04); }
.ai-status.load { color: var(--teal); background: rgba(45,212,191,.08); display: flex; align-items: center; gap: 8px; }
.ai-status.ok { color: var(--teal); background: rgba(45,212,191,.14); }
.ai-status.no { color: var(--red); background: rgba(248,113,113,.14); }
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(45,212,191,.25); border-top-color: var(--teal); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress { height: 3px; border-radius: 3px; background: rgba(255,255,255,.06); overflow: hidden; margin-top: 8px; }
.progress > i { display: block; height: 100%; width: 0; background: var(--teal); transition: width linear; }

.verdict { margin-top: 16px; padding: 16px 18px; border-radius: 14px; border-left: 3px solid; }
.verdict.ok { background: rgba(45,212,191,.08); border-color: var(--teal); }
.verdict.no { background: rgba(245,196,81,.07); border-color: var(--gold); }
.verdict h4 { font-size: 1.05rem; margin-bottom: 6px; }
.verdict p { margin: 0 0 12px; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.verdict .row { display: flex; gap: 10px; flex-wrap: wrap; }
.verdict .row .btn { flex: 1 1 160px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: .86rem; color: var(--muted); margin-bottom: 12px; }
.check input { margin-top: 3px; accent-color: var(--gold); }

.active-trade { margin-top: 16px; padding: 16px 18px; border-radius: 14px; background: rgba(10,15,30,.5); border: 1px solid var(--line); }
.at-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.countdown { font-family: var(--font-h); font-size: 1.8rem; font-weight: 700; }
.at-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.at-grid div { background: rgba(255,255,255,.03); border-radius: 10px; padding: 10px; }
.at-grid span { display: block; font-size: .74rem; color: var(--muted); }
.at-grid strong { font-family: var(--font-h); font-size: .98rem; }
.up-txt { color: var(--teal); }
.down-txt { color: var(--red); }

.history-card { margin-top: 20px; }
.history { display: flex; flex-direction: column; }
.h-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 10px; padding: 12px 4px; border-top: 1px solid var(--line); font-size: .9rem; align-items: center; }
.h-row:first-child { border-top: 0; }
.h-row .muted { font-size: .8rem; }
.empty { color: var(--muted); font-size: .9rem; padding: 6px 0; }
.pill { display: inline-block; font-size: .76rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.pill.ok { color: var(--teal); background: rgba(45,212,191,.12); }
.pill.no { color: var(--red); background: rgba(248,113,113,.12); }
.pill.pend { color: var(--gold); background: rgba(245,196,81,.12); }

/* ---------- lessons ---------- */
.lessons-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
.player { padding: 0; overflow: hidden; position: sticky; top: 20px; }
.video { aspect-ratio: 16 / 9; background: #070b18; display: grid; place-items: center; }
.video iframe { width: 100%; height: 100%; border: 0; }
.video-placeholder { text-align: center; color: var(--muted); }
.play { width: 68px; height: 68px; border-radius: 50%; background: rgba(45,212,191,.15); display: grid; place-items: center; margin: 0 auto 12px; color: var(--teal); font-size: 1.6rem; }
.player-info { padding: 18px 22px 22px; }
.player-info h3 { font-size: 1.2rem; margin: 4px 0 14px; }
.player-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.modules { display: flex; flex-direction: column; gap: 14px; }
.module { padding: 18px; border-top: 3px solid; }
.mod-head { display: flex; gap: 14px; align-items: baseline; }
.mod-num { font-family: var(--font-h); font-size: 1.6rem; font-weight: 800; }
.mod-title { font-family: var(--font-h); font-weight: 700; font-size: 1rem; }
.mod-bar { height: 6px; background: rgba(255,255,255,.06); border-radius: 6px; margin: 12px 0 10px; overflow: hidden; }
.mod-bar i { display: block; height: 100%; background: var(--teal); border-radius: 6px; transition: width .3s; }
.lesson-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 10px; border-radius: 10px; border: 1px solid transparent; background: transparent; font-size: .9rem; color: var(--text); }
.lesson-item:hover { background: rgba(255,255,255,.03); }
.lesson-item.current { border-color: var(--line); background: rgba(45,212,191,.06); }
.lesson-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; font-size: .7rem; }
.lesson-item.done .lesson-dot { background: var(--teal); border-color: var(--teal); color: #052a26; }

/* ---------- payments ---------- */
.pay-grid { display: grid; grid-template-columns: 360px 1fr; gap: 20px; }
.balance-big { font-family: var(--font-h); font-size: 2.6rem; font-weight: 700; margin: 6px 0 20px; }
.pay-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-form-card h3 { margin-bottom: 4px; font-size: 1.15rem; }
.pay-form-card > p { margin: 0 0 18px; }
.quick { display: flex; gap: 8px; flex-wrap: wrap; margin: -4px 0 16px; }
.quick button { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-size: .84rem; }
.quick button.suggest { border-color: var(--teal); color: var(--teal); }
.methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 16px; }
.method { padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: transparent; text-align: left; font-size: .88rem; }
.method small { display: block; color: var(--muted); font-size: .74rem; margin-top: 2px; }
.method.active { border-color: var(--teal); background: rgba(45,212,191,.08); }
.speed { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.speed button { padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: transparent; text-align: left; }
.speed button strong { display: block; font-family: var(--font-h); }
.speed button small { color: var(--muted); }
.speed button.active { border-color: var(--teal); background: rgba(45,212,191,.08); }
.speed button.fast.active { border-color: var(--gold); background: rgba(245,196,81,.08); }
.calc { padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.03); font-size: .9rem; margin-bottom: 14px; }
.calc div { display: flex; justify-content: space-between; padding: 3px 0; }
.calc .total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; font-weight: 700; }

.rule-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.rule h4 { font-size: 1.02rem; }
.rule-num { font-family: var(--font-h); font-weight: 800; font-size: 2.2rem; margin: 6px 0 8px; }
.rule-num small { font-size: .95rem; color: var(--muted); font-weight: 600; }
.rule-num.teal { color: var(--teal); }
.rule-num.gold { color: var(--gold); }
.rule p { margin: 0; color: var(--muted); line-height: 1.5; font-size: .92rem; }
.rule p strong { color: var(--text); }
.rule-gold { border-color: rgba(245,196,81,.45); }
.notes-card { margin-top: 20px; }
.notes { margin: 0; padding-left: 20px; line-height: 1.9; color: #c9d1ee; }

/* ---------- profile ---------- */
.profile-card { max-width: 520px; }
.profile-rows { margin: 20px 0; }
.profile-row { display: flex; justify-content: space-between; padding: 13px 0; border-top: 1px solid var(--line); gap: 10px; }
.profile-row:first-child { border-top: 0; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 50;
  background: var(--card-2); border: 1px solid var(--line); padding: 12px 18px; border-radius: 12px;
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.6); font-size: .92rem; max-width: 90vw;
}
.toast.ok { border-color: var(--teal); }
.toast.err { border-color: var(--red); }

.bottom-nav { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .trade-grid { grid-template-columns: 1fr; }
  .lessons-layout { grid-template-columns: 1fr; }
  .player { position: static; }
  .pay-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .login-wrap { grid-template-columns: 1fr; gap: 28px; }
  .login-hero { text-align: center; }
  .hero-sub { margin: 0 auto; }
  .orbit { display: none; }
  .hero-title { margin-top: 16px; }
}
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .main { padding: 0 16px calc(90px + env(safe-area-inset-bottom)); }
  .topbar { justify-content: space-between; position: sticky; top: 0; z-index: 10; background: rgba(10,15,30,.85); backdrop-filter: blur(10px); margin: 0 -16px; padding: 12px 16px; }
  .brand-mobile { display: flex; padding: 0; }
  .balance-chip .muted { display: none; }
  .chart-wrap { height: 400px; }
  .rule-grid { grid-template-columns: 1fr; }
  .h-row { grid-template-columns: 1fr 1fr; }
  .card { padding: 18px; }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: rgba(13,20,40,.96); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  }
  .bn-item { background: transparent; border: 0; color: var(--muted); font-size: .72rem; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; }
  .bn-item span { font-size: 1.2rem; }
  .bn-item.active { color: var(--teal); }
  .at-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- PWA install ---------- */
.install-btn {
  margin: 0 0 12px; padding: 11px 14px; border-radius: 12px; border: 1px dashed rgba(45,212,191,.5);
  background: rgba(45,212,191,.06); color: var(--teal); font-weight: 600; font-size: .9rem;
}
.install-btn:hover { background: rgba(45,212,191,.12); }
.install-banner {
  position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 30;
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px;
  background: var(--card-2); border: 1px solid var(--line); box-shadow: 0 18px 40px -12px rgba(0,0,0,.7);
  max-width: 480px; margin: 0 auto;
}
.install-banner img { width: 44px; height: 44px; border-radius: 10px; }
.ib-text { flex: 1; display: flex; flex-direction: column; font-size: .82rem; color: var(--muted); }
.ib-text strong { color: var(--text); font-family: var(--font-h); font-size: .92rem; }
.install-banner .btn { padding: 9px 14px; font-size: .86rem; }
.ib-close { background: transparent; border: 0; color: var(--muted); font-size: 1rem; padding: 4px; }
@media (min-width: 821px) { .install-banner { bottom: 20px; left: auto; right: 20px; } }
@media (display-mode: standalone) { [data-install], .install-banner { display: none !important; } }
