/* ==========================================================================
   XAUUSD сигнал — дизайн систем
   Өнгө, зай, фонт нэг газар (:root). Inline style хэрэглэхгүй (CSP).
   ========================================================================== */
:root {
  --bg: #090c11;
  --bg-2: #0c1017;
  --surface: #11161e;
  --surface-2: #161c26;
  --surface-3: #1c2330;
  --line: #212a37;
  --line-2: #2b3645;
  --text: #e9edf3;
  --text-2: #b7c0cd;
  --muted: #7d889a;
  --gold: #d4a843;
  --gold-2: #f2cb63;
  --gold-ink: #1c1405;
  --gold-soft: rgba(212, 168, 67, .12);
  --pos: #26c281;
  --pos-soft: rgba(38, 194, 129, .12);
  --neg: #ef5b55;
  --neg-soft: rgba(239, 91, 85, .12);
  --warn: #f2b34c;
  --warn-soft: rgba(242, 179, 76, .12);
  --info: #5aa9ff;
  --info-soft: rgba(90, 169, 255, .12);
  --r-lg: 16px;
  --r: 12px;
  --r-sm: 8px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 10px 30px rgba(0, 0, 0, .28);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --header-h: 64px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: var(--gold-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; margin: 0; }
h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 750; }
h2 { font-size: 21px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 650; }
p { margin: 0 0 12px; }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--gold); color: var(--gold-ink); padding: 8px 12px; border-radius: var(--r-sm); }
.skip:focus { left: 8px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.soft { color: var(--text-2); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
.gold { color: var(--gold-2); }
.r { text-align: right; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20; height: var(--header-h);
  background: rgba(9, 12, 17, .82); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 28px; height: 28px; flex: none; }
.brand-name { display: flex; flex-direction: column; font-weight: 800; letter-spacing: .02em; font-size: 16px; line-height: 1.1; }
.brand-sub { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.menu { display: flex; gap: 4px; flex: 1; }
.menu a, .menu .linkbtn {
  color: var(--text-2); font-size: 14px; font-weight: 550; padding: 8px 12px; border-radius: var(--r-sm);
  background: none; border: 0; cursor: pointer; font-family: inherit;
}
.menu a:hover, .menu .linkbtn:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 10px; margin-left: auto; }
form.inline { display: inline; margin: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px;
  border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text);
  font: 650 15px/1 var(--font); cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, filter .15s;
}
.btn:hover { text-decoration: none; border-color: var(--muted); }
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--gold-ink); border-color: transparent; }
.btn-gold:hover { filter: brightness(1.06); border-color: transparent; }
.btn-ghost { background: transparent; }
.btn-danger { background: transparent; color: var(--neg); border-color: rgba(239, 91, 85, .5); }
.btn-danger:hover { background: var(--neg-soft); border-color: var(--neg); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 8px; }
.btn .ico { width: 16px; height: 16px; }

/* ---------- pills & chips ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 650; white-space: nowrap; background: var(--surface-3); color: var(--text-2);
  border: 1px solid transparent;
}
.pill.pos { background: var(--pos-soft); color: var(--pos); }
.pill.neg { background: var(--neg-soft); color: var(--neg); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.info { background: var(--info-soft); color: var(--info); }
.pill.gold { background: var(--gold-soft); color: var(--gold-2); }
.pill.muted { background: var(--surface-3); color: var(--muted); }
.pill.outline { background: transparent; border-color: var(--line-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); display: inline-block; flex: none; }
.dot.pos { background: var(--pos); box-shadow: 0 0 0 4px var(--pos-soft); }
.dot.neg { background: var(--neg); box-shadow: 0 0 0 4px var(--neg-soft); }
.dot.muted { background: var(--warn); box-shadow: 0 0 0 4px var(--warn-soft); }
.side { display: inline-block; min-width: 58px; text-align: center; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 750; letter-spacing: .04em; }
.side.long { background: var(--pos-soft); color: var(--pos); }
.side.short { background: var(--neg-soft); color: var(--neg); }
.tier-chip { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; }
.tf-chip { font-size: 11px; font-weight: 700; color: var(--muted); background: var(--surface-3); padding: 2px 7px; border-radius: 5px; letter-spacing: .03em; }

/* ---------- sections ---------- */
main { padding-bottom: 24px; }
.section { margin: 56px 0; scroll-margin-top: calc(var(--header-h) + 16px); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 18px; }
.section-head .sub { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-2); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-foot { margin-top: 14px; }
.grid { display: grid; gap: 18px; }
.grid > * { min-width: 0; }
.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)); }
.split { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.flash { margin: 18px 0 0; padding: 12px 16px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface); }
.flash.ok { border-color: rgba(38, 194, 129, .45); }
.flash.error { border-color: rgba(239, 91, 85, .5); color: #ffb4ae; }
.empty { text-align: center; padding: 56px 20px; }

/* ---------- hero ---------- */
.hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center;
  margin: 28px 0 0; padding: 44px; border-radius: 22px; border: 1px solid var(--line); overflow: hidden;
  background:
    radial-gradient(900px 380px at 12% -10%, rgba(212, 168, 67, .16), transparent 60%),
    radial-gradient(600px 300px at 110% 120%, rgba(90, 169, 255, .08), transparent 60%),
    linear-gradient(180deg, var(--surface), var(--bg-2));
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%);
}
.hero > * { position: relative; }
.hero h1 { margin: 14px 0 14px; }
.lead { font-size: 17px; color: var(--text-2); max-width: 600px; margin-bottom: 24px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.proof { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 36px; }
.proof li { display: flex; flex-direction: column; }
.proof strong { font-size: 26px; font-weight: 750; font-variant-numeric: tabular-nums; }
.proof span { color: var(--muted); font-size: 13px; }
.fine { color: var(--muted); font-size: 12px; margin: 14px 0 0; }

.quote { background: rgba(17, 22, 30, .85); border: 1px solid var(--line-2); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
.quote-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.sym { font-weight: 800; letter-spacing: .04em; }
.sym small { color: var(--muted); font-weight: 600; margin-left: 6px; letter-spacing: 0; }
.quote-price { font-size: clamp(38px, 5vw, 52px); font-weight: 780; letter-spacing: -.02em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.quote-price .cur { font-size: 22px; color: var(--muted); font-weight: 600; margin-left: 6px; }
.quote-change { display: flex; align-items: center; gap: 8px; margin: 8px 0 18px; font-weight: 650; font-variant-numeric: tabular-nums; }
.range { margin: 4px 0 18px; }
.range-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; }
.range svg { display: block; width: 100%; height: 14px; }
.range .track { fill: var(--surface-3); }
.range .mark { fill: var(--text); stroke: var(--bg); stroke-width: 2; }
.meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 0; padding-top: 16px; border-top: 1px solid var(--line); }
.meta div { min-width: 0; }
.meta dt { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 650; }
.meta dd { margin: 3px 0 0; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.meta .wide { grid-column: 1 / -1; }

/* ---------- stats strip ---------- */
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.strip > div { padding: 18px 22px; border-right: 1px solid var(--line); }
.strip > div:last-child { border-right: 0; }
.kpi-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 650; }
.kpi-value { font-size: 24px; font-weight: 750; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }

/* ---------- chart ---------- */
.chart-card { padding: 18px 18px 14px; }
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; }
.seg .tf { background: transparent; color: var(--muted); border: 0; height: 30px; padding: 0 14px; border-radius: 7px; font: 650 13px/1 var(--font); cursor: pointer; }
.seg .tf:hover { color: var(--text); }
.seg .tf.active { background: var(--surface-3); color: var(--gold-2); box-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.chartwrap { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.chartbox { height: 470px; }
.legend { position: absolute; top: 8px; left: 10px; z-index: 3; pointer-events: none; font: 12px/1.4 var(--mono); color: var(--muted); background: rgba(17, 22, 30, .82); padding: 3px 8px; border-radius: 6px; }
.legend.up { color: var(--pos); }
.legend.down { color: var(--neg); }
.chart-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.keys { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.key { display: inline-flex; align-items: center; gap: 6px; }
.key i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.key .k-e50 { background: #f0b44c; }
.key .k-e200 { background: #5aa9ff; }
.key .k-sig { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 8px solid var(--pos); border-radius: 0; }
.key .k-lvl { background: repeating-linear-gradient(90deg, var(--gold-2) 0 4px, transparent 4px 7px); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.table th { position: sticky; top: 0; text-align: left; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; background: var(--surface-2); padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: rgba(255, 255, 255, .018); }
.table .total td { font-weight: 750; background: var(--surface-2); }
.table.compact th, .table.compact td { padding: 9px 12px; }
.table td.wrap { white-space: normal; min-width: 200px; }
.table .sub { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }

/* ---------- tiers ---------- */
.tier { display: flex; flex-direction: column; gap: 14px; }
.tier.off { opacity: .6; }
.tier-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tier-name { font-size: 18px; font-weight: 750; display: inline-flex; align-items: center; gap: 8px; }
.tier-trend { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 13px; }
.tier-trend strong { font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; margin: 0; }
.stats div { background: var(--surface); padding: 9px 12px; }
.stats dt { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 650; }
.stats dd { margin: 2px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.tier-note { font-size: 12px; color: var(--muted); margin: 0; }

/* ---------- calendar & news ---------- */
.cal .day td { background: var(--bg-2); color: var(--gold-2); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 8px 14px; }
.cal tr.past td { opacity: .45; }
.cal tr.soon td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.cal tr.soon td { background: rgba(212, 168, 67, .05); }
.impact { display: inline-flex; gap: 3px; vertical-align: middle; }
.impact i { width: 6px; height: 12px; border-radius: 2px; background: var(--surface-3); display: inline-block; }
.impact.high i { background: var(--neg); }
.impact.medium i:nth-child(-n+2) { background: var(--warn); }
.news { list-style: none; margin: 0; padding: 0; }
.news li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.news li:first-child { padding-top: 0; }
.news li:last-child { border-bottom: 0; padding-bottom: 0; }
.news .src-badge { width: 36px; height: 36px; border-radius: 9px; background: var(--surface-3); color: var(--gold-2); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.news a { color: var(--text); font-weight: 600; line-height: 1.45; }
.news a:hover { color: var(--gold-2); }
.news .src { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* ---------- results ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
svg.equity { width: 100%; height: auto; display: block; }
svg.equity .line { fill: none; stroke: var(--gold-2); stroke-width: 2.2; stroke-linejoin: round; }
svg.equity .area { fill: rgba(212, 168, 67, .12); }
svg.equity .zero { stroke: var(--line-2); stroke-dasharray: 4 4; }
svg.equity .lbl { fill: var(--muted); font-size: 12px; }
svg.equity .end { text-anchor: end; fill: var(--text); font-weight: 650; }

/* ---------- how it works ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 58px; }
.step::before {
  counter-increment: step; content: counter(step); position: absolute; top: 22px; left: 22px; width: 28px; height: 28px;
  border-radius: 8px; background: var(--gold-soft); color: var(--gold-2); font-weight: 800; display: grid; place-items: center; font-size: 14px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 14px; margin: 0; }
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--r-lg); border: 1px solid rgba(242, 179, 76, .35); background: var(--warn-soft); color: var(--text-2); font-size: 14px; }
.notice strong { color: var(--warn); }
.notice svg { flex: none; width: 22px; height: 22px; color: var(--warn); margin-top: 1px; }

/* ---------- forms ---------- */
.stack { display: grid; gap: 12px; }
label { font-size: 13px; font-weight: 600; color: var(--text-2); }
textarea, input[type=password], input[type=text] {
  width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: 15px/1.5 var(--font);
}
textarea { min-height: 130px; resize: vertical; }
textarea:focus, input:focus { outline: 2px solid rgba(212, 168, 67, .55); outline-offset: 1px; border-color: transparent; }
label.check { display: flex; gap: 10px; align-items: center; font-weight: 500; }
pre.cmd, pre.log { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; overflow-x: auto; font: 12px/1.55 var(--mono); color: var(--text-2); margin: 0; }
pre.log { max-height: 380px; overflow-y: auto; white-space: pre; }
.auth { max-width: 420px; margin: 72px auto; }
.auth .brand-mark { width: 40px; height: 40px; margin-bottom: 14px; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.list li { display: flex; gap: 10px; align-items: baseline; }

/* ---------- footer ---------- */
.site-footer { margin-top: 64px; border-top: 1px solid var(--line); background: var(--bg-2); }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.6fr; gap: 28px; padding: 36px 20px 24px; }
.foot-grid h4 { margin: 0 0 10px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.foot-grid ul a { color: var(--text-2); }
.foot-bottom { padding: 16px 20px 28px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; padding: 32px; gap: 28px; }
  .grid-4, .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip > div:nth-child(2) { border-right: 0; }
  .strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid .disclaimer { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .menu { display: none; }
}
@media (max-width: 640px) {
  :root { --header-h: 58px; }
  body { font-size: 14.5px; }
  .wrap { padding: 0 14px; }
  .section { margin: 40px 0; }
  .hero { padding: 22px 18px; border-radius: 18px; margin-top: 16px; }
  .lead { font-size: 15.5px; }
  .proof strong { font-size: 22px; }
  .quote { padding: 18px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .card { padding: 18px; }
  .chart-card { padding: 14px 12px 12px; }
  .chartbox { height: 340px; }
  .legend { font-size: 11px; max-width: calc(100% - 20px); }
  .brand-sub { display: none; }
  .nav-cta .btn { height: 34px; padding: 0 12px; font-size: 13px; }
  .foot-grid { grid-template-columns: 1fr; }
}

/* ---------- page-specific ---------- */
.h2-size { font-size: 24px; margin: 4px 0 6px; }
.h1-admin { font-size: 30px; margin: 8px 0 0; }
.kpi-value.small-v { font-size: 16px; line-height: 1.35; }

/* ---------- market report ---------- */
.tflist { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.tflist li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.stats.lv { margin-bottom: 12px; }
.stats.lv dd { font-size: 13px; }
.mkt { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.mkt-name { font-weight: 650; min-width: 110px; }
.mkt-px { font-size: 20px; font-weight: 750; margin-right: auto; }
.mkt-sub { margin: 2px 0 10px; }
.compact-news { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.compact-news li { padding: 10px 0; }
.compact-news a { font-size: 13.5px; }

/* ---------- join: QPay төлбөр -> Telegram эрх ---------- */
.join { max-width: 520px; margin: 40px auto 0; display: grid; gap: 18px; }
.join [hidden] { display: none !important; }
.join-card { display: grid; gap: 14px; }
.join-price { display: flex; align-items: baseline; gap: 8px; }
.join-price strong { font-size: 40px; font-weight: 800; color: var(--gold-2); letter-spacing: -.02em; }
.join-incl li::before { content: "✓"; color: var(--pos); font-weight: 800; }
.join-btn { width: 100%; height: 50px; font-size: 16px; }
.join-pay, .join-done { justify-items: center; text-align: center; }
.join-total { display: grid; gap: 2px; }
.join-total strong { font-size: 30px; font-weight: 800; }
.qr { background: #fff; padding: 12px; border-radius: 14px; line-height: 0; }
.qr img { width: 232px; height: auto; max-width: 100%; }
.dot.pulse { animation: join-pulse 1.4s infinite; }
@keyframes join-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .dot.pulse { animation: none; } }
.banks { width: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 4px; }
.banks a {
  display: grid; justify-items: center; gap: 6px; padding: 10px 4px 8px; border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--surface-2); color: var(--text-2); font-size: 11.5px; line-height: 1.25; text-align: center;
}
.banks a:hover { border-color: var(--gold); color: var(--text); text-decoration: none; }
.banks img, .bank-fallback { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: #fff; }
.bank-fallback { display: grid; place-items: center; font-weight: 800; color: var(--gold-ink); background: var(--gold-2); }
.join-done svg { width: 64px; height: 64px; }
.join-url { font: 12px/1.45 var(--mono); word-break: break-all; color: var(--muted); background: var(--bg-2); padding: 8px 10px; border-radius: var(--r-sm); }

/* ---------- бүртгэл, нэвтрэх, миний хуудас ---------- */
input[type=tel] {
  width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: 15px/1.5 var(--font);
}
.auth [hidden] { display: none !important; }
.auth-alt { margin: 16px 0 0; color: var(--muted); }
.verify { display: grid; gap: 12px; }
.verify-steps { margin: 0; padding-left: 20px; color: var(--text-2); font-size: 14px; display: grid; gap: 4px; }
.verify p { margin: 0; }
.account { max-width: 640px; margin: 40px auto 0; display: grid; gap: 18px; }
.account-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.account-head p { margin: 4px 0 0; }
.account-access { display: grid; gap: 12px; justify-items: start; }
.account-access p { margin: 0; }
.account-until strong { font-size: 22px; font-weight: 800; color: var(--gold-2); }
