/* Trading — shaxsiy savdo paneli. Qorong'i (standart) + yorug' mavzu. */

:root {
  --bg: #08080a;
  --bg-2: #0c0c0f;
  --surface: #121214;
  --surface-2: #19191c;
  --surface-3: #222226;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f2f2ef;
  --text-2: rgba(242, 242, 239, .64);
  --text-3: rgba(242, 242, 239, .40);
  --accent: #3d6dff;
  --accent-2: #7d9dff;
  --accent-soft: rgba(61, 109, 255, .16);
  --glow: rgba(42, 92, 255, .55);
  --buy: #30d158;
  --buy-soft: rgba(48, 209, 88, .14);
  --sell: #ff453a;
  --sell-soft: rgba(255, 69, 58, .14);
  --warn: #ffb340;
  --warn-soft: rgba(255, 179, 64, .13);
  --glass: rgba(20, 20, 23, .72);
  --shadow: 0 10px 40px rgba(0, 0, 0, .45);
  --radius: 20px;
  --radius-sm: 14px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --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);
  --tabbar-h: 64px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f5f5f7;
    --bg-2: #eeeef1;
    --surface: #ffffff;
    --surface-2: #f4f4f6;
    --surface-3: #e9e9ed;
    --line: rgba(0, 0, 0, .08);
    --line-2: rgba(0, 0, 0, .14);
    --text: #0b0b0d;
    --text-2: rgba(11, 11, 13, .62);
    --text-3: rgba(11, 11, 13, .40);
    --accent: #2457f5;
    --accent-2: #2457f5;
    --accent-soft: rgba(36, 87, 245, .10);
    --glow: rgba(36, 87, 245, .22);
    --buy: #1a9c47;
    --buy-soft: rgba(26, 156, 71, .11);
    --sell: #e0342a;
    --sell-soft: rgba(224, 52, 42, .10);
    --warn: #b86e00;
    --warn-soft: rgba(255, 159, 10, .14);
    --glass: rgba(255, 255, 255, .74);
    --shadow: 0 10px 34px rgba(0, 0, 0, .10);
    color-scheme: light;
  }
}

:root[data-theme="light"] {
  --bg: #f5f5f7;
  --bg-2: #eeeef1;
  --surface: #ffffff;
  --surface-2: #f4f4f6;
  --surface-3: #e9e9ed;
  --line: rgba(0, 0, 0, .08);
  --line-2: rgba(0, 0, 0, .14);
  --text: #0b0b0d;
  --text-2: rgba(11, 11, 13, .62);
  --text-3: rgba(11, 11, 13, .40);
  --accent: #2457f5;
  --accent-2: #2457f5;
  --accent-soft: rgba(36, 87, 245, .10);
  --glow: rgba(36, 87, 245, .22);
  --buy: #1a9c47;
  --buy-soft: rgba(26, 156, 71, .11);
  --sell: #e0342a;
  --sell-soft: rgba(224, 52, 42, .10);
  --warn: #b86e00;
  --warn-soft: rgba(255, 159, 10, .14);
  --glass: rgba(255, 255, 255, .74);
  --shadow: 0 10px 34px rgba(0, 0, 0, .10);
  color-scheme: light;
}

/* ---------- asos ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
  min-height: 100vh;
  min-height: 100dvh;
}
button, input, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
[hidden] { display: none !important; }
.num, .mono { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); letter-spacing: 0; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.up { color: var(--buy); }
.down { color: var(--sell); }
.warn { color: var(--warn); }
.accent { color: var(--accent-2); }
.nowrap { white-space: nowrap; }
::selection { background: var(--accent-soft); }

/* ---------- karkas ---------- */
.app { min-height: 100vh; min-height: 100dvh; }
.main {
  padding: calc(var(--sat) + 14px) calc(var(--sar) + 16px) calc(var(--tabbar-h) + var(--sab) + 28px) calc(var(--sal) + 16px);
  max-width: 760px;
  margin: 0 auto;
}
.sidebar { display: none; }

.screen { display: none; }
.screen.active { display: block; animation: screenIn .24s var(--ease); }
@keyframes screenIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* pastki tab bar (telefon) */
.tabbar {
  position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-around; align-items: stretch;
  height: calc(var(--tabbar-h) + var(--sab));
  padding: 6px calc(var(--sar) + 6px) var(--sab) calc(var(--sal) + 6px);
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  border-top: 1px solid var(--line);
}
.tab {
  flex: 1; min-width: 44px; min-height: 44px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  background: none; border: 0; padding: 0; color: var(--text-3);
  font-size: 10.5px; font-weight: 500; letter-spacing: 0;
  transition: color .18s var(--ease);
}
.tab svg { width: 24px; height: 24px; }
.tab.active { color: var(--text); }
.tab.active svg { color: var(--accent-2); }

/* kompyuter: yon panel */
@media (min-width: 900px) {
  .app { display: grid; grid-template-columns: 236px minmax(0, 1fr); }
  .tabbar { display: none; }
  .sidebar {
    display: flex; flex-direction: column;
    position: sticky; top: 0; height: 100vh; height: 100dvh;
    padding: 22px 14px 18px;
    border-right: 1px solid var(--line);
    background: var(--bg-2);
  }
  .main { max-width: 1180px; width: 100%; padding: 30px 40px 60px; }
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 22px; font-size: 19px; font-weight: 300; letter-spacing: -0.02em; }
.brand img { border-radius: 7px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-item {
  display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 12px;
  border: 0; background: none; border-radius: 11px; text-align: left; color: var(--text-2);
  font-size: 14.5px; transition: background .15s, color .15s;
}
.side-item svg { width: 20px; height: 20px; }
.side-item:hover { background: var(--surface); color: var(--text); }
.side-item.active { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.side-item.active svg { color: var(--accent-2); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding: 0 6px; }
.side-status { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3); }

/* ---------- umumiy elementlar ---------- */
.ph { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 18px; flex-wrap: wrap; }
.ph h1 { margin: 0; font-size: 34px; line-height: 1.05; font-weight: 300; letter-spacing: -0.035em; }
.ph .ph-right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
@media (min-width: 900px) { .ph h1 { font-size: 40px; } }

.label {
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-3); font-weight: 500;
}
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 2px 10px; }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.card + .card { margin-top: 12px; }
.card.pad-lg { padding: 22px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2);
  font-size: 12.5px; color: var(--text-2); white-space: nowrap; font-weight: 500;
}
.chip.sm { height: 24px; padding: 0 9px; font-size: 11.5px; }
.chip.mono { font-family: var(--mono); font-size: 11.5px; }
.chip.buy { color: var(--buy); background: var(--buy-soft); border-color: transparent; }
.chip.sell { color: var(--sell); background: var(--sell-soft); border-color: transparent; }
.chip.warn { color: var(--warn); background: var(--warn-soft); border-color: transparent; }
.chip.accent { color: var(--accent-2); background: var(--accent-soft); border-color: transparent; }
.chip svg { width: 14px; height: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); flex: none; }
.dot.on { background: var(--buy); box-shadow: 0 0 0 3px var(--buy-soft); }
.dot.off { background: var(--text-3); }
.dot.high { background: var(--sell); }
.dot.medium { background: var(--warn); }
.dot.low { background: #d4c34a; }
.dot.up { background: var(--buy); }
.dot.down { background: var(--sell); }
.dot.flat { background: var(--text-3); }

/* segmentli tugmalar (pill) */
.seg {
  display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.seg::-webkit-scrollbar { display: none; }
.seg button {
  min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: none;
  color: var(--text-2); font-size: 13.5px; font-weight: 500; white-space: nowrap;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.seg button.on { background: var(--surface-3); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .25), inset 0 0 0 1px var(--line); }
.seg.lg button { min-height: 40px; padding: 0 18px; font-size: 14.5px; }
.seg .mini-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-left: 7px; vertical-align: 1px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text);
  font-size: 14.5px; font-weight: 500; transition: transform .12s var(--ease), background .15s, opacity .15s;
}
.btn:hover { background: var(--surface-3); }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--text); color: var(--bg); border-color: transparent; }
.btn-primary:hover { background: var(--text); opacity: .9; }
.btn-accent { background: var(--accent); color: #fff; border-color: transparent; box-shadow: 0 6px 24px -6px var(--glow); }
.btn-accent:hover { background: var(--accent); opacity: .92; }
.btn-ghost { background: none; border-color: var(--line); }
.btn-sm { min-height: 34px; padding: 0 13px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; padding: 0; min-height: 40px; }
.btn .spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.input {
  width: 100%; min-height: 50px; padding: 0 16px; border-radius: 14px;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text);
  font-size: 17px; outline: none; transition: border-color .15s, box-shadow .15s;
  font-variant-numeric: tabular-nums;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

/* ---------- Bozor: hero ---------- */
.home-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.home-main, .home-side { min-width: 0; }
@media (min-width: 1100px) {
  .home-grid { grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); align-items: start; gap: 22px; }
  .home-side { position: sticky; top: 24px; }
}
.home-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }

.hero { position: relative; padding: 24px 2px 18px; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; z-index: -1; left: -10%; top: -30%; width: 90%; height: 170%;
  background: radial-gradient(closest-side, var(--glow), transparent 72%);
  opacity: .55; filter: blur(20px); pointer-events: none;
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { opacity: .45; transform: scale(1); } 50% { opacity: .62; transform: scale(1.04); } }
.hero-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hero-price {
  margin: 6px 0 4px; font-weight: 200; font-size: clamp(50px, 15vw, 92px); line-height: 1;
  letter-spacing: -0.055em; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.hero-price .dec { color: var(--text-3); }
.hero-chg { display: flex; align-items: center; gap: 10px; font-size: 15px; font-variant-numeric: tabular-nums; flex-wrap: wrap; }
.hero-chg .pct { font-weight: 600; }
.trend-row { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.tr {
  display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px 0 9px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-family: var(--mono); font-size: 11.5px; color: var(--text-2);
}
.tr svg { width: 12px; height: 12px; }
.tr.up svg { color: var(--buy); }
.tr.down svg { color: var(--sell); }

/* ---------- Signal kartasi ---------- */
.signal { padding: 0; overflow: hidden; }
.signal-glow { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: .9; }
.signal.buy .signal-glow { background: radial-gradient(120% 60% at 0% 0%, var(--buy-soft), transparent 60%); }
.signal.sell .signal-glow { background: radial-gradient(120% 60% at 0% 0%, var(--sell-soft), transparent 60%); }
.sig-in { position: relative; padding: 18px; }
@media (min-width: 600px) { .sig-in { padding: 22px 24px; } }
.sig-variants { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.sig-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.side-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: clamp(40px, 12vw, 56px); font-weight: 700; letter-spacing: -0.04em; line-height: 1;
}
.side-badge .arrow { width: .8em; height: .8em; border-radius: 50%; display: grid; place-items: center; }
.side-badge .arrow svg { width: 60%; height: 60%; }
.side-badge.buy { color: var(--buy); }
.side-badge.sell { color: var(--sell); }
.side-badge.buy .arrow { background: var(--buy-soft); }
.side-badge.sell .arrow { background: var(--sell-soft); }
.sig-sub { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }

.grade-ring { position: relative; width: 78px; height: 78px; flex: none; }
.grade-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.grade-ring .g-txt { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.grade-ring .g-grade { font-size: 25px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.grade-ring .g-score { font-family: var(--mono); font-size: 10px; color: var(--text-3); margin-top: 3px; }

.action-box { margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.action-main { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.action-when { margin-top: 4px; font-size: 13.5px; color: var(--text-2); }

/* qadamlar */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 16px; position: relative; }
.step { position: relative; text-align: center; padding: 0 4px; }
.step::before {
  content: ""; position: absolute; top: 15px; left: calc(-50% + 18px); right: calc(50% + 18px); height: 2px;
  background: var(--line-2); border-radius: 2px;
}
.step:first-child::before { display: none; }
.step.done::before, .step.now::before { background: var(--accent); }
.step-dot {
  width: 32px; height: 32px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--line-2); color: var(--text-3); font-size: 13px; font-weight: 600; background: var(--surface);
  position: relative;
}
.step-dot svg { width: 16px; height: 16px; }
.step.done .step-dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.step.now .step-dot { border-color: var(--accent); color: var(--accent-2); box-shadow: 0 0 0 5px var(--accent-soft); }
.step.now .step-dot::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid var(--accent);
  opacity: 0; animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse { 0% { opacity: .7; transform: scale(.85); } 100% { opacity: 0; transform: scale(1.35); } }
.step-t { margin-top: 8px; font-size: 12.5px; font-weight: 600; line-height: 1.2; }
.step-s { margin-top: 3px; font-size: 11.5px; color: var(--text-3); line-height: 1.25; font-variant-numeric: tabular-nums; }
.step.now .step-t { color: var(--accent-2); }

/* narx narvoni (ladder) */
.ladder-wrap { margin-top: 18px; }
.ladder { position: relative; height: 320px; }
.ladder svg.track { position: absolute; left: 0; top: 0; width: 60px; height: 100%; overflow: visible; }
.lrow {
  position: absolute; left: 60px; right: 0; height: 38px; margin-top: -19px;
  display: flex; align-items: center; gap: 10px; padding: 0 12px 0 8px;
  border-radius: 12px; font-variant-numeric: tabular-nums; transition: top .3s var(--ease);
}
.lrow .tag {
  font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .04em;
  min-width: 50px; height: 22px; padding: 0 6px; border-radius: 7px; display: grid; place-items: center; flex: none;
}
.lrow .px { font-family: var(--mono); font-size: 14px; letter-spacing: -0.01em; white-space: nowrap; }
.lrow .r { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; min-width: 0; }
.lrow .usd { font-weight: 600; font-size: 14px; white-space: nowrap; }
.lrow .rr { font-family: var(--mono); font-size: 10.5px; color: var(--text-3); white-space: nowrap; }
.lrow.tp { background: var(--buy-soft); }
.lrow.tp .tag { background: var(--buy); color: #04110a; }
.lrow.tp .usd { color: var(--buy); }
.lrow.sl { background: var(--sell-soft); }
.lrow.sl .tag { background: var(--sell); color: #fff; }
.lrow.sl .usd { color: var(--sell); }
.lrow.en { background: var(--accent-soft); }
.lrow.en .tag { background: var(--accent); color: #fff; }
.lrow.en .usd { color: var(--text-2); font-weight: 500; font-size: 13px; }
.lrow.now { background: transparent; border: 1px dashed var(--line-2); }
.lrow.now .tag { background: var(--text); color: var(--bg); }
.lrow.now .px { color: var(--text); font-weight: 600; }
@media (max-width: 360px) {
  .lrow { gap: 7px; padding: 0 8px 0 6px; }
  .lrow .tag { min-width: 44px; font-size: 9.5px; }
  .lrow .px { font-size: 13px; }
}

/* lot / risk */
.size-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.tile { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.tile .label { display: block; margin-bottom: 6px; }
.tile .v { font-size: 22px; font-weight: 300; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .s { font-size: 12px; color: var(--text-3); margin-top: 2px; font-variant-numeric: tabular-nums; line-height: 1.3; }
@media (max-width: 420px) { .size-grid .tile { padding: 11px 11px; } .size-grid .tile .v { font-size: 20px; } .size-grid .tile.big .v { font-size: 26px; } .size-grid .tile .s { font-size: 11.5px; } }
.tile.big .v { font-size: 30px; }

.sig-foot { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.sig-foot .btn { flex: 1 1 140px; }

details.more { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 4px; }
details.more summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  min-height: 42px; color: var(--text-2); font-size: 13.5px; font-weight: 500;
}
details.more summary::-webkit-details-marker { display: none; }
details.more summary svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
details.more[open] summary svg { transform: rotate(180deg); }
.pts { display: flex; flex-direction: column; gap: 6px; padding-bottom: 8px; }
.pt { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-2); line-height: 1.35; }
.pt .w { flex: none; min-width: 30px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-family: var(--mono); font-size: 11px; font-weight: 600; }
.pt .w.p { background: var(--buy-soft); color: var(--buy); }
.pt .w.n { background: var(--sell-soft); color: var(--sell); }
.pt .w.z { background: var(--surface-3); color: var(--text-3); }
.scorebar { display: flex; height: 6px; border-radius: 6px; overflow: hidden; gap: 2px; margin: 4px 0 12px; }
.scorebar i { display: block; height: 100%; border-radius: 3px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 13px; padding-bottom: 10px; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; color: var(--text-2); }

.flags { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.flag {
  display: flex; gap: 8px; align-items: flex-start; padding: 9px 12px; border-radius: 12px;
  background: var(--warn-soft); color: var(--warn); font-size: 12.5px; line-height: 1.35;
}
.flag svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }

.empty {
  text-align: center; padding: 34px 18px; color: var(--text-2);
}
.empty .e-ico { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 16px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-3); }
.empty .e-ico svg { width: 26px; height: 26px; }
.empty .e-t { font-size: 18px; color: var(--text); font-weight: 500; letter-spacing: -0.02em; }
.empty .e-s { font-size: 13px; margin-top: 4px; }

/* mini kartalar (boshqa simvollar) */
.minis { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.mini {
  display: flex; flex-direction: column; gap: 6px; text-align: left; width: 100%;
  padding: 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface);
  transition: transform .12s var(--ease), border-color .15s;
}
.mini:hover { border-color: var(--line-2); }
.mini:active { transform: scale(.98); }
.mini .m-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.mini .m-price { font-size: 21px; font-weight: 300; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.mini svg.spark { width: 100%; height: 38px; }

/* bozorlar paneli */
.dash { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
@media (max-width: 899px) {
  .dash { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .dash::-webkit-scrollbar { display: none; }
  .dash .dchip { flex: 0 0 auto; min-width: 128px; scroll-snap-align: start; }
}
.dchip { padding: 11px 13px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.dchip .d-n { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dchip .d-v { font-size: 17px; font-weight: 400; letter-spacing: -0.02em; margin-top: 3px; font-variant-numeric: tabular-nums; }
.dchip .d-c { font-size: 12px; font-variant-numeric: tabular-nums; font-weight: 500; }

.info-rows { display: flex; flex-direction: column; }
.info-row { display: flex; align-items: center; gap: 10px; min-height: 46px; border-top: 1px solid var(--line); font-size: 13.5px; }
.info-row:first-child { border-top: 0; }
.info-row .ir-l { color: var(--text-2); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.info-row .ir-r { color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Grafik ---------- */
.chart-card { padding: 0; overflow: hidden; }
.chart-box { position: relative; height: calc(100vh - 290px); height: calc(100dvh - 290px - var(--sat) - var(--sab)); min-height: 340px; }
@media (min-width: 900px) { .chart-box { height: calc(100vh - 230px); min-height: 460px; } }
.chart-el { position: absolute; inset: 0; }
.zone-band {
  position: absolute; left: 0; right: 0; pointer-events: none; z-index: 2;
  background: var(--accent-soft); border-top: 1px dashed var(--accent); border-bottom: 1px dashed var(--accent); opacity: .9;
}
.chart-legend {
  position: absolute; z-index: 3; left: 12px; top: 10px; pointer-events: none;
  font-family: var(--mono); font-size: 11px; color: var(--text-2); display: flex; gap: 10px; flex-wrap: wrap;
}
.chart-legend b { color: var(--text); font-weight: 600; }
.chart-msg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-3); font-size: 14px; text-align: center; padding: 20px; }
.chart-levels { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.attr { margin-top: 14px; font-size: 11.5px; color: var(--text-3); text-align: center; }
.attr a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 2px; }

/* ---------- Jurnal ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.risk-hero { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.risk-hero .tile { background: var(--surface); }
.risk-hero .tile .v { font-size: 26px; }
.trades { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .trades { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.trade { padding: 14px 16px; }
.trade + .trade { margin-top: 0; }
.t-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.t-top .t-sym { font-weight: 600; letter-spacing: -0.01em; }
.t-top .t-r { margin-left: auto; font-size: 20px; font-weight: 300; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.t-lv { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.t-lv div { padding: 7px 8px; border-radius: 10px; background: var(--surface-2); min-width: 0; }
.t-lv .label { font-size: 9.5px; display: block; }
.t-lv .mono { font-size: 12.5px; display: block; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: 12px; color: var(--text-3); }
.st { }
.st.wait { color: var(--text-2); }
.st.open { color: var(--accent-2); background: var(--accent-soft); border-color: transparent; }
.st.win { color: var(--buy); background: var(--buy-soft); border-color: transparent; }
.st.loss { color: var(--sell); background: var(--sell-soft); border-color: transparent; }
.st.exp { color: var(--text-3); }
.groups { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 800px) { .groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gtable { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.gtable th { text-align: left; font-family: var(--mono); font-size: 10.5px; color: var(--text-3); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; padding: 0 0 8px; }
.gtable td { padding: 8px 0; border-top: 1px solid var(--line); }
.gtable th:not(:first-child), .gtable td:not(:first-child) { text-align: right; }

/* ---------- Yangiliklar ---------- */
.news-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.news-grid > *, .set-grid > *, .groups > *, .trades > * { min-width: 0; }
@media (min-width: 1000px) { .news-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: start; } }
.day-h { margin: 14px 2px 6px; }
.day-h:first-child { margin-top: 0; }
.ev { display: grid; grid-template-columns: 48px 1fr; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); }
.ev:first-of-type { border-top: 0; }
.ev .ev-t { font-family: var(--mono); font-size: 13px; color: var(--text); padding-top: 1px; }
.ev .ev-title { font-size: 14px; line-height: 1.3; display: flex; gap: 8px; align-items: baseline; }
.ev .ev-title .dot { transform: translateY(-1px); }
.ev .ev-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.ev .ev-meta b { color: var(--text-2); font-weight: 500; font-family: var(--mono); }
.ev.past { opacity: .45; }
.tone-bar { display: flex; height: 8px; border-radius: 8px; overflow: hidden; gap: 2px; margin: 8px 0 6px; }
.tone-bar i { display: block; height: 100%; }
.tone-legend { display: flex; gap: 14px; font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.tone-legend span { display: inline-flex; align-items: center; gap: 6px; }
.hl { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.hl:first-child { border-top: 0; }
.hl .dot { margin-top: 7px; }
.hl .hl-t { font-size: 14.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hl .hl-m { margin-top: 4px; display: flex; gap: 10px; font-size: 11.5px; color: var(--text-3); }
.hl .hl-m .mono { font-size: 11px; }
.hl:hover .hl-t { color: var(--accent-2); }

/* ---------- Sozlamalar ---------- */
.set-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .set-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.field { display: block; margin-top: 14px; }
.field:first-child { margin-top: 0; }
.field .label { display: block; margin: 0 0 7px 2px; }
.input-wrap { position: relative; }
.input-wrap .unit { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-size: 15px; pointer-events: none; }
.input-wrap .input { padding-right: 44px; }
.quick { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.quick button { min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text-2); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.quick button.on { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }
.preview { display: grid; gap: 8px; margin-top: 4px; }
.pv { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.pv .pv-sym { font-weight: 600; font-size: 14px; }
.pv .pv-lot { font-size: 22px; font-weight: 300; letter-spacing: -0.03em; text-align: right; font-variant-numeric: tabular-nums; }
.pv .pv-sub { grid-column: 1 / -1; display: flex; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.save-row { display: flex; gap: 8px; margin-top: 18px; }
.save-row .btn { flex: 1; }
.upd { display: flex; align-items: center; gap: 14px; }
.upd .upd-v { font-size: 26px; font-weight: 300; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.progress { height: 3px; border-radius: 3px; background: var(--surface-3); overflow: hidden; margin-top: 14px; }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .5s linear; }

/* ---------- toast (shisha pill) ---------- */
.toast {
  position: fixed; z-index: 60; left: 50%; bottom: calc(var(--tabbar-h) + var(--sab) + 16px);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 999px;
  background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px);
  border: 1px solid var(--line-2); box-shadow: var(--shadow);
  font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 9px; white-space: nowrap;
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .dot { width: 8px; height: 8px; }
@media (min-width: 900px) { .toast { bottom: 28px; left: calc(50% + 118px); } }

/* ---------- kirish oynasi ---------- */
.gate { position: fixed; inset: 0; z-index: 80; background: var(--bg); display: grid; place-items: center; padding: 24px; }
.gate-card { width: 100%; max-width: 340px; text-align: center; display: flex; flex-direction: column; gap: 12px; }
.gate-icon { margin: 0 auto 6px; border-radius: 18px; box-shadow: 0 12px 50px -10px var(--glow); }
.gate-title { margin: 0; font-size: 30px; font-weight: 300; letter-spacing: -0.03em; }
.gate-sub { margin: -4px 0 8px; color: var(--text-2); font-size: 14px; }
.gate-err { margin: 0; color: var(--sell); font-size: 13px; }

/* ---------- skeleton / xato ---------- */
.skel { border-radius: 14px; background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* Mac ilova: oyna sarlavhasi yo'q, chap panel uchun bo'shliq */
html.is-mac .sidebar { padding-top: 16px; }
