/* HA Quant — Intelligent Trading Terminal. Navy ink, buy green, sell brick, marigold for focus/brand */
:root {
    --ink: #152238;
    --ink-2: #24365A;
    --paper: #EEF1F5;
    --surface: #FFFFFF;
    --line: #D8DFE8;
    --text: #1B2433;
    --muted: #5B687C;
    --buy: #0A8A5A;
    --buy-soft: #E2F3EB;
    --sell: #C23B3B;
    --sell-soft: #FBE6E5;
    --marigold: #E9A400;

    --f-head: "Sora", "Segoe UI", system-ui, sans-serif;
    --f-body: "Manrope", "Segoe UI", system-ui, sans-serif;
    --r-sm: 6px;
    --r-md: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--f-body); color: var(--text); background: var(--paper); line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--f-head); line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--ink-2); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; }
dd, .sum-value, .otp, code { font-variant-numeric: tabular-nums; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--f-head); font-weight: 700; font-size: 1.05rem; color: var(--ink); text-decoration: none; }
.brand--light { color: #fff; }
/* mark: a strike price line crossing a candle */
.brand-mark { width: 22px; height: 22px; position: relative; flex: none; }
.brand-mark::before { content: ""; position: absolute; left: 8px; top: 3px; width: 6px; height: 16px; border-radius: 2px; background: var(--buy); }
.brand-mark::after { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: var(--marigold); }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, 5fr) 6fr; }
.auth--single { grid-template-columns: 1fr; }
.auth-side { background: var(--ink); color: #DCE4F0; padding: 2.5rem clamp(2rem, 4vw, 3.5rem); display: flex; flex-direction: column; gap: 2.5rem; position: relative; overflow: hidden; }
.auth-side::after { /* faint chart grid */
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .06;
    background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
    background-size: 48px 48px;
}
.side-body { margin: auto 0; max-width: 30rem; position: relative; z-index: 1; }
.side-title { font-size: clamp(1.7rem, 2.6vw, 2.35rem); font-weight: 600; color: #fff; }
.side-sub { margin-top: .9rem; color: #AFBCD0; max-width: 26rem; }
.side-example { margin-top: 2.25rem; }
.side-example-label { font-size: .8rem; color: #8FA0BA; margin-bottom: .5rem; }
.side-example .slip { box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55); }
.side-example .rr-risk, .side-example .rr-reward { animation: grow .9s .25s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes grow { from { transform: scaleX(0); } }
.side-foot { font-size: .82rem; color: #8FA0BA; position: relative; z-index: 1; }

.auth-main { display: grid; place-items: center; padding: 2.5rem 1.25rem; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card--wide { max-width: 520px; }
.auth-card > .brand { margin-bottom: 2rem; }
.step { font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: .6rem; }
.auth-card h2 { font-size: 1.75rem; font-weight: 600; color: var(--ink); }
.auth-card h2 + .muted { margin-top: .5rem; }

.form { display: grid; gap: 1.1rem; margin-top: 1.75rem; }
.field { display: grid; gap: .4rem; }
.field > span:first-child { font-size: .9rem; font-weight: 600; color: var(--ink); }
.field small { font-weight: 400; color: var(--muted); margin-left: .35rem; }
input[type=email], input[type=password], input[type=text] {
    width: 100%; font: inherit; font-size: 1rem; color: var(--text);
    padding: .78rem .9rem; background: var(--surface);
    border: 1.5px solid var(--line); border-radius: var(--r-sm);
    transition: border-color .15s;
}
input:focus { outline: none; border-color: var(--ink-2); box-shadow: 0 0 0 3px rgba(233, 164, 0, .35); }
.pw { position: relative; display: block; }
.pw input { padding-right: 4.5rem; }
.pw-toggle { position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); border: 0; background: none; font: inherit; font-size: .85rem; font-weight: 600; color: var(--ink-2); padding: .4rem .55rem; cursor: pointer; border-radius: 4px; }
.otp { font-family: var(--f-head); font-size: 1.6rem !important; letter-spacing: .5em; text-align: center; padding-left: 1.4rem !important; }

.btn { font: inherit; font-weight: 700; font-size: 1rem; color: #fff; background: var(--ink); border: 0; border-radius: var(--r-sm); padding: .85rem 1.2rem; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--ink-2); }
.btn-ghost { font: inherit; font-size: .88rem; font-weight: 600; color: var(--ink-2); background: transparent; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: .45rem .8rem; cursor: pointer; }
.btn-ghost:hover { border-color: var(--ink-2); }
.switch { margin-top: 1.5rem; font-size: .92rem; color: var(--muted); }
.switch a { font-weight: 600; }

.alert { margin-top: 1.25rem; padding: .8rem 1rem; border-radius: var(--r-sm); background: var(--sell-soft); color: #8E2323; border-left: 3px solid var(--sell); font-size: .92rem; }
.alert p + p { margin-top: .25rem; }

/* 2FA setup */
.setup { list-style: none; counter-reset: s; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.75rem; }
.setup > li { counter-increment: s; position: relative; padding-left: 2.6rem; }
.setup > li::before { content: counter(s); position: absolute; left: 0; top: -.1rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-family: var(--f-head); font-size: .9rem; font-weight: 600; }
.setup h3 { font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.setup p { color: var(--muted); margin-top: .2rem; }
.setup .form { margin-top: .9rem; }
.qr { margin-top: 1rem; width: 220px; padding: 10px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-md); }
.qr svg { display: block; width: 100%; height: auto; }
.manual { margin-top: .9rem; }
.manual summary { cursor: pointer; font-weight: 600; color: var(--ink-2); font-size: .92rem; }
.secret { margin-top: .6rem; display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.secret code { font-size: .95rem; padding: .5rem .7rem; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r-sm); word-break: break-all; }

/* ---------- App shell ---------- */
.topbar { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 10; }
.topbar-inner { max-width: 1180px; margin: 0 auto; padding: .8rem 1.25rem; display: flex; align-items: center; gap: 2rem; }
.topbar .brand { color: #fff; }
.topnav { display: flex; gap: .25rem; flex: 1; }
.topnav a { color: #B9C6DA; text-decoration: none; font-weight: 600; font-size: .92rem; padding: .45rem .8rem; border-radius: var(--r-sm); }
.topnav a.is-current { color: #fff; background: rgba(255, 255, 255, .1); }
.who { display: flex; align-items: center; gap: .9rem; }
.who-name { font-size: .9rem; color: #DCE4F0; }
.who form { margin: 0; }
.who .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .25); }
.who .btn-ghost:hover { border-color: #fff; }

.page { max-width: 1180px; margin: 0 auto; padding: 2.25rem 1.25rem 4rem; }
.intro h1 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 600; color: var(--ink); }
.intro .muted { margin-top: .3rem; }

.summary { margin-top: 1.75rem; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.sum { padding: 1.15rem 1.35rem; }
.sum + .sum { border-left: 1px solid var(--line); }
.sum-label { font-size: .85rem; font-weight: 600; color: var(--muted); }
.sum-value { font-family: var(--f-head); font-size: 1.9rem; font-weight: 600; color: var(--ink); margin-top: .15rem; }
.sum-note { font-size: .83rem; color: var(--muted); display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot--buy { background: var(--buy); }
.dot--sell { background: var(--sell); margin-left: .5rem; }
.acc { margin-top: .55rem; height: 6px; border-radius: 3px; background: var(--sell-soft); overflow: hidden; }
.acc span { display: block; height: 100%; width: var(--w); background: var(--buy); }

.calls { margin-top: 2.5rem; }
.calls-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.calls-head h2 { font-size: 1.25rem; font-weight: 600; color: var(--ink); }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { font: inherit; font-size: .88rem; font-weight: 600; color: var(--muted); background: none; border: 0; border-radius: 999px; padding: .4rem .95rem; cursor: pointer; }
.seg button.is-on { background: var(--ink); color: #fff; }

.slips { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1rem; }

/* ---------- Slip (one call) ---------- */
.slip { --c: var(--buy); --soft: var(--buy-soft); background: var(--surface); color: var(--text); border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: var(--r-md); padding: 1.1rem 1.2rem 1rem; display: grid; gap: 1rem; }
.slip--sell { --c: var(--sell); --soft: var(--sell-soft); }
.slip.is-closed { background: #F8F9FB; }
.slip.is-closed .slip-title h3, .slip.is-closed dd { color: var(--muted); }
.slip[hidden] { display: none; }

.slip-head { display: flex; align-items: flex-start; gap: .75rem; }
.act { flex: none; font-family: var(--f-head); font-weight: 700; font-size: .82rem; color: var(--c); background: var(--soft); padding: .3rem .6rem; border-radius: var(--r-sm); }
.slip-title { flex: 1; min-width: 0; }
.slip-title h3 { font-size: 1.08rem; font-weight: 600; color: var(--ink); }
.slip-title p { font-size: .83rem; color: var(--muted); margin-top: .1rem; }
.status { flex: none; font-size: .78rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.status--open { color: var(--ink); border-color: var(--marigold); background: #FFF6DD; }
.status--win { color: var(--buy); border-color: transparent; background: var(--buy-soft); }
.status--loss { color: var(--sell); border-color: transparent; background: var(--sell-soft); }

.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 0; }
.levels dt { font-size: .78rem; color: var(--muted); font-weight: 600; }
.levels dd { margin: .1rem 0 0; font-family: var(--f-head); font-weight: 600; font-size: 1rem; color: var(--ink); }
.levels small { display: block; font-family: var(--f-body); font-size: .76rem; font-weight: 700; color: var(--buy); }
.slip--sell .levels small { color: var(--buy); }

/* Risk : reward bar — red share = risk, green share = reward, tick = entry */
.rr-bar { position: relative; display: flex; height: 8px; border-radius: 4px; overflow: visible; }
.rr-risk { width: var(--risk); background: var(--sell); border-radius: 4px 0 0 4px; transform-origin: right; }
.rr-reward { flex: 1; background: var(--buy); border-radius: 0 4px 4px 0; transform-origin: left; }
.rr-entry { position: absolute; left: var(--risk); top: -4px; width: 3px; height: 16px; margin-left: -1.5px; background: var(--ink); border-radius: 2px; }
.rr-label { display: flex; justify-content: space-between; gap: .75rem; margin-top: .45rem; font-size: .8rem; color: var(--muted); }
.is-closed .rr-risk, .is-closed .rr-reward { opacity: .45; }

.slip-note { font-size: .9rem; color: var(--text); padding: .55rem .75rem; background: var(--paper); border-radius: var(--r-sm); }
.slip-foot { font-size: .8rem; color: var(--muted); }

.empty { text-align: center; padding: 3rem 1rem; background: var(--surface); border: 1.5px dashed var(--line); border-radius: var(--r-md); color: var(--muted); }
.empty h3 { color: var(--ink); font-size: 1.1rem; margin-bottom: .3rem; }
.empty--filter { padding: 2rem 1rem; }
.disclaimer { margin-top: 2rem; font-size: .82rem; color: var(--muted); max-width: 46rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .auth { grid-template-columns: 1fr; }
    .auth-side { padding: 1.75rem 1.25rem; gap: 1.5rem; }
    .side-example, .side-sub { display: none; }
    .side-title { font-size: 1.4rem; }
    .summary { grid-template-columns: repeat(2, 1fr); }
    .sum:nth-child(3) { border-left: 0; }
    .sum:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
    .topbar-inner { gap: 1rem; }
    .who-name, .topnav { display: none; }
    .who { margin-left: auto; }
    .slips { grid-template-columns: 1fr; }
    .seg { width: 100%; overflow-x: auto; }
    .rr-label { flex-direction: column; gap: .1rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Admin: post a call ---------- */
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--marigold); margin-bottom: .35rem; }
.intro--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.btn-ghost--dark { text-decoration: none; background: var(--surface); }
.small { font-size: .85rem; }

.toast { margin-top: 1.25rem; display: flex; align-items: center; gap: .65rem; padding: .8rem 1rem; border-radius: var(--r-md); background: var(--buy-soft); color: #075C3C; font-weight: 600; font-size: .94rem; border: 1px solid #BFE3D2; animation: toast-in .35s ease-out; }
.toast-icon { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--buy); color: #fff; font-size: .8rem; flex: none; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-6px); } }

.compose { margin-top: 1.75rem; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 1.5rem; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(21, 34, 56, .04), 0 8px 24px -12px rgba(21, 34, 56, .12); overflow: hidden; }
.group { border: 0; margin: 0; padding: 1.35rem 1.5rem; min-width: 0; }
.group + .group { border-top: 1px solid var(--line); }
.group legend { float: left; width: 100%; padding: 0; margin-bottom: .9rem; font-family: var(--f-head); font-size: .95rem; font-weight: 600; color: var(--ink); }
.group legend small { display: block; font-family: var(--f-body); font-weight: 500; font-size: .82rem; color: var(--muted); margin-top: .15rem; }
.group legend + * { clear: both; }
.grid { display: grid; gap: 1rem; }
.grid--2 { grid-template-columns: 1fr 1fr; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--note { grid-template-columns: 140px 1fr; }

input[type=number], input[type=date], select {
    width: 100%; font: inherit; font-size: 1rem; color: var(--text);
    padding: .78rem .9rem; background: var(--surface);
    border: 1.5px solid var(--line); border-radius: var(--r-sm);
    transition: border-color .15s, box-shadow .15s;
}
input[type=number] { font-variant-numeric: tabular-nums; }
input::placeholder { color: #A3AEBE; }
.field.is-off { opacity: .4; }
.field.is-off input { background: var(--paper); cursor: not-allowed; }

/* Buy / Sell big toggle */
.dir { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.dir-opt { --c: var(--buy); --soft: var(--buy-soft); position: relative; cursor: pointer; }
.dir-opt--sell { --c: var(--sell); --soft: var(--sell-soft); }
.dir-opt input { position: absolute; opacity: 0; }
.dir-opt span { display: flex; flex-direction: column; gap: .1rem; padding: .95rem 1.1rem .95rem 3rem; border: 1.5px solid var(--line); border-radius: var(--r-md); transition: all .15s; position: relative; }
.dir-opt span::before { content: ""; position: absolute; left: 1.05rem; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); transition: all .15s; }
.dir-opt b { font-family: var(--f-head); font-size: 1.05rem; color: var(--ink); }
.dir-opt small { font-size: .82rem; color: var(--muted); }
.dir-opt:hover span { border-color: var(--c); }
.dir-opt input:checked + span { border-color: var(--c); background: var(--soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }
.dir-opt input:checked + span::before { border-color: var(--c); background: var(--c); box-shadow: inset 0 0 0 3px var(--soft); }
.dir-opt input:checked + span b { color: var(--c); }
.dir-opt input:focus-visible + span { outline: 3px solid var(--marigold); outline-offset: 2px; }

/* Segment pills */
.pills { display: flex; background: var(--paper); border-radius: var(--r-sm); padding: 3px; gap: 3px; }
.pill { flex: 1; position: relative; }
.pill input { position: absolute; opacity: 0; }
.pill span { display: block; text-align: center; padding: .62rem .4rem; font-size: .9rem; font-weight: 600; color: var(--muted); border-radius: 5px; cursor: pointer; transition: all .15s; white-space: nowrap; }
.pill input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(21, 34, 56, .15); }
.pill input:focus-visible + span { outline: 3px solid var(--marigold); }

/* Price inputs */
.money { position: relative; }
.money i { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); font-style: normal; font-weight: 600; color: var(--muted); pointer-events: none; }
.money input { padding-left: 1.85rem; font-family: var(--f-head); font-weight: 600; }
.lvl > span:first-child { display: flex; align-items: center; gap: .4rem; }
.lvl > span:first-child::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--ink); }
.lvl--target > span:first-child::before { background: var(--buy); }
.lvl--sl > span:first-child::before { background: var(--sell); }
.lvl--target input:focus { border-color: var(--buy); }
.lvl--sl input:focus { border-color: var(--sell); }

.check { margin-top: 1rem; font-size: .88rem; font-weight: 600; padding: .6rem .8rem; border-radius: var(--r-sm); display: flex; align-items: center; gap: .5rem; }
.check[hidden] { display: none; }
.check--ok { background: var(--buy-soft); color: #075C3C; }
.check--ok::before { content: "\2713"; }
.check--bad { background: var(--sell-soft); color: #8E2323; }
.check--bad::before { content: "!"; display: grid; place-items: center; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--sell); color: #fff; font-size: .75rem; }

.panel-foot { display: flex; align-items: center; gap: 1rem; padding: 1.15rem 1.5rem; background: #F7F9FC; border-top: 1px solid var(--line); flex-wrap: wrap; }
.btn--wide { padding-left: 2.2rem; padding-right: 2.2rem; background: linear-gradient(180deg, var(--ink-2), var(--ink)); box-shadow: 0 6px 16px -6px rgba(21, 34, 56, .55); }
.btn--wide:hover { background: var(--ink-2); }

/* Live preview */
.preview { position: sticky; top: 5.25rem; padding: 1.25rem; border-radius: 14px; background: radial-gradient(120% 90% at 100% 0%, #2B4170 0%, var(--ink) 60%); box-shadow: 0 18px 40px -20px rgba(21, 34, 56, .6); }
.preview-label { display: flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #B9C6DA; margin-bottom: .9rem; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--marigold); box-shadow: 0 0 0 0 rgba(233, 164, 0, .6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(233, 164, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(233, 164, 0, 0); } }
.preview .slip { box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .45); transition: border-color .2s; }
.preview .rr-risk { transition: width .25s ease; }
.preview .rr-entry { transition: left .25s ease; }
.preview .slip-note[hidden] { display: none; }

/* All calls ledger */
.count { display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.6rem; padding: 0 .45rem; margin-left: .35rem; font-size: .8rem; font-weight: 700; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; vertical-align: middle; }
.seg button b { font-weight: 700; opacity: .6; margin-left: .2rem; }
.ledger { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.row { display: grid; grid-template-columns: auto minmax(160px, 1.2fr) minmax(260px, 1.4fr) 104px auto; align-items: center; gap: 1.1rem; padding: .9rem 1.2rem; transition: background .15s; }
.row + .row { border-top: 1px solid var(--line); }
.row:hover { background: #F8FAFD; }
.row[hidden] { display: none; }
.act--sm { --c: var(--buy); --soft: var(--buy-soft); min-width: 48px; text-align: center; }
.act--sell { --c: var(--sell); --soft: var(--sell-soft); }
.row-name { font-family: var(--f-head); font-weight: 600; color: var(--ink); }
.row-sub { font-size: .8rem; color: var(--muted); margin-top: .1rem; }
.row-levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 0; }
.row-levels dt { font-size: .72rem; font-weight: 600; color: var(--muted); }
.row-levels dd { margin: 0; font-family: var(--f-head); font-weight: 600; font-size: .92rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.row-levels .t dd { color: var(--buy); }
.row-levels .s dd { color: var(--sell); }
.row .status { justify-self: start; }
.row-actions { display: flex; gap: .4rem; justify-content: flex-end; flex-wrap: wrap; }
.row-actions form { margin: 0; }
.chip { font: inherit; font-size: .8rem; font-weight: 600; color: var(--ink-2); background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: .35rem .75rem; cursor: pointer; transition: all .15s; white-space: nowrap; }
.chip:hover { border-color: var(--ink-2); }
.chip--win { color: var(--buy); }
.chip--win:hover { background: var(--buy-soft); border-color: var(--buy); }
.chip--loss { color: var(--sell); }
.chip--loss:hover { background: var(--sell-soft); border-color: var(--sell); }
.chip--icon { display: grid; place-items: center; padding: .35rem .5rem; color: var(--muted); }
.chip--icon:hover { color: var(--sell); border-color: var(--sell); background: var(--sell-soft); }

.post-cta { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; font-weight: 700; font-size: .92rem; color: var(--ink); background: var(--marigold); padding: .65rem 1.05rem; border-radius: var(--r-sm); box-shadow: 0 6px 16px -8px rgba(233, 164, 0, .9); transition: transform .15s; }
.post-cta:hover { transform: translateY(-1px); }

@media (max-width: 1020px) {
    .compose { grid-template-columns: 1fr; }
    .preview { position: static; order: -1; }
    .row { grid-template-columns: auto 1fr auto; }
    .row-levels { grid-column: 1 / -1; grid-row: 2; }
    .row-actions { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 600px) {
    .group { padding: 1.15rem 1rem; }
    .grid--2, .grid--3, .grid--note, .dir { grid-template-columns: 1fr; }
    .panel-foot { padding: 1rem; }
    .btn--wide { width: 100%; }
}

/* ---------- Multiple targets (TP1 / TP2 / TP3) ---------- */
.levels--2 { grid-template-columns: repeat(2, 1fr); }
.tps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; }
.tps li { display: grid; gap: .05rem; padding: .5rem .6rem; background: var(--buy-soft); border-radius: var(--r-sm); border: 1px solid color-mix(in srgb, var(--buy) 18%, transparent); min-width: 0; }
.tp-tag { font-size: .7rem; font-weight: 800; letter-spacing: .06em; color: var(--buy); }
.tp-price { font-family: var(--f-head); font-weight: 600; font-size: .95rem; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tps small { font-size: .72rem; font-weight: 700; color: var(--buy); }
.slip.is-closed .tps li { background: #F1F3F6; border-color: var(--line); }
.slip.is-closed .tp-price { color: var(--muted); }
.rr-tp { position: absolute; top: 0; width: 2px; height: 8px; margin-left: -1px; background: rgba(255, 255, 255, .85); }
.preview .rr-tp { transition: left .25s ease; }

.tp-row { margin-top: 1rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 1rem; background: color-mix(in srgb, var(--buy-soft) 55%, transparent); border: 1px dashed color-mix(in srgb, var(--buy) 30%, transparent); border-radius: var(--r-md); }

.row-levels { grid-template-columns: auto 1fr auto; gap: 1rem; }
.row-levels .sep { color: var(--muted); font-weight: 400; margin: 0 .1rem; }
.row { grid-template-columns: auto minmax(150px, 1fr) minmax(300px, 1.7fr) 104px auto; }

@media (max-width: 1020px) {
    .row { grid-template-columns: auto 1fr auto; }
}
@media (max-width: 600px) {
    .tp-row { grid-template-columns: 1fr; padding: .85rem; }
    .row-levels { grid-template-columns: 1fr 1fr; }
    .row-levels .t { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- Live dashboard ---------- */
.live { display: inline-flex; align-items: center; gap: .4rem; margin-left: .6rem; padding: .22rem .6rem; vertical-align: middle; font-family: var(--f-body); font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--buy); background: var(--buy-soft); border-radius: 999px; }
.live .live-dot { background: var(--buy); box-shadow: 0 0 0 0 rgba(10, 138, 90, .55); animation: pulse-green 1.8s infinite; }
@keyframes pulse-green { 70% { box-shadow: 0 0 0 7px rgba(10, 138, 90, 0); } 100% { box-shadow: 0 0 0 0 rgba(10, 138, 90, 0); } }
.live--paused { color: var(--muted); background: var(--paper); }
.live--paused .live-dot { background: var(--muted); animation: none; }
.live--off { color: #8A5A00; background: #FFF3D1; }
.live--off .live-dot { background: var(--marigold); animation: none; }

.new-banner { margin: -.25rem 0 1rem; display: flex; align-items: center; gap: .55rem; padding: .7rem 1rem; border-radius: var(--r-md); background: var(--ink); color: #fff; font-weight: 600; font-size: .92rem; box-shadow: 0 10px 24px -14px rgba(21, 34, 56, .7); animation: toast-in .35s ease-out; }
.new-banner::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--marigold); flex: none; }
.new-banner[hidden] { display: none; }

.slip.is-new { animation: slip-in .6s ease-out, slip-glow 3.5s ease-out; }
.slip.is-new::after { content: "New"; position: absolute; top: -10px; right: 14px; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); background: var(--marigold); padding: .15rem .5rem; border-radius: 999px; animation: fade-late 8s forwards; }
.slip { position: relative; }
@keyframes slip-in { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
@keyframes slip-glow { 0%, 40% { box-shadow: 0 0 0 3px rgba(233, 164, 0, .55), 0 12px 28px -14px rgba(21, 34, 56, .4); } 100% { box-shadow: 0 0 0 0 rgba(233, 164, 0, 0); } }
@keyframes fade-late { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- Score ---------- */
.score-badge { display: inline-flex; align-items: center; gap: .3rem; font-family: var(--f-head); font-weight: 700; font-size: .95rem; color: #7A4F00; background: linear-gradient(180deg, #FFF3D1, #FFE7A3); border: 1px solid #F2CF6B; padding: .05rem .55rem; border-radius: 999px; font-variant-numeric: tabular-nums; }
.score-badge::before { content: ""; width: 10px; height: 10px; flex: none; background: var(--marigold); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.score-badge--sm { font-size: .72rem; padding: .05rem .45rem; margin-left: .35rem; vertical-align: middle; }
.lv-score[hidden] { display: none; }
.lv-score dd { margin-top: .2rem; }
.slip.is-closed .score-badge { filter: grayscale(.7); opacity: .75; }
.grid--note { grid-template-columns: 130px 130px 1fr; }
@media (max-width: 600px) {
    .grid--note { grid-template-columns: 1fr 1fr; }
    .grid--note > :last-child { grid-column: 1 / -1; }
}

/* ---------- Card header: long names never collide with status ---------- */
.slip-head { align-items: flex-start; }
.slip-title h3 { overflow-wrap: anywhere; line-height: 1.25; padding-top: .1rem; }
.slip-head .status { margin-top: .1rem; white-space: nowrap; }
.row-name { overflow-wrap: anywhere; }

/* ---------- Timeframe chip in note ---------- */
.slip-note { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.slip-note[hidden] { display: none; }
.tf-chip { display: inline-flex; align-items: center; gap: .3rem; flex: none; font-size: .76rem; font-weight: 700; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); padding: .12rem .5rem; border-radius: 999px; white-space: nowrap; }
.tf-chip[hidden] { display: none; }
.tf-chip::before { content: ""; width: 11px; height: 11px; flex: none; border-radius: 50%; border: 1.6px solid currentColor; background: linear-gradient(currentColor, currentColor) 50% 25% / 1.6px 35% no-repeat, linear-gradient(currentColor, currentColor) 70% 50% / 35% 1.6px no-repeat; box-sizing: border-box; }
.grid--note { grid-template-columns: 110px 110px 130px 1fr; }
@media (max-width: 1020px) { .grid--note { grid-template-columns: 1fr 1fr 1fr; } .grid--note > :last-child { grid-column: 1 / -1; } }
@media (max-width: 600px) { .grid--note { grid-template-columns: 1fr 1fr; } .grid--note > :nth-child(3) { grid-column: auto; } }

/* ---------- Posted date ---------- */
.slip-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; padding-top: .7rem; border-top: 1px dashed var(--line); }
.date-chip { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.date-chip::before { content: ""; width: 12px; height: 12px; flex: none; border: 1.6px solid currentColor; border-top-width: 3.5px; border-radius: 3px; box-sizing: border-box; }
.date-chip:empty { display: none; }
.slip-foot .ago { color: var(--muted); }

/* ---------- Levels row: Entry | SL | Score | Timeframe ---------- */
.levels--3 { grid-template-columns: repeat(3, 1fr); }
.levels--4 { grid-template-columns: 1.1fr 1.1fr .8fr 1fr; gap: .4rem; }
.levels--4 dd { font-size: .95rem; }
.lv-tf dd { margin-top: .2rem; }
.lv-tf .tf-chip { font-family: var(--f-head); font-size: .85rem; padding: .1rem .55rem; }
@media (max-width: 400px) { .levels--4 { grid-template-columns: 1fr 1fr; row-gap: .7rem; } }

/* ---------- Period filter (default: last 10 days) ---------- */
.period { margin-top: 1.5rem; display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.period-label { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.period-presets { display: inline-flex; flex-wrap: wrap; gap: .4rem; }
.period-pill { display: inline-flex; align-items: center; gap: .35rem; font: inherit; font-size: .88rem; font-weight: 600; color: var(--ink-2); text-decoration: none; background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: .42rem .9rem; cursor: pointer; transition: all .15s; white-space: nowrap; list-style: none; }
.period-pill::-webkit-details-marker { display: none; }
.period-pill:hover { border-color: var(--ink-2); }
.period-pill.is-on { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 6px 14px -8px rgba(21, 34, 56, .7); }
.period-custom { position: relative; }
.period-custom > summary::before { content: ""; width: 12px; height: 12px; flex: none; border: 1.6px solid currentColor; border-top-width: 3.5px; border-radius: 3px; box-sizing: border-box; }
.period-custom > summary::after { content: ""; width: 6px; height: 6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translate(-1px, -1px); margin-left: .1rem; transition: transform .15s; }
.period-custom[open] > summary::after { transform: rotate(-135deg) translate(-1px, -1px); }
.period-pop { position: absolute; z-index: 5; top: calc(100% + .5rem); left: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; align-items: end; width: min(420px, calc(100vw - 2.5rem)); padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px -18px rgba(21, 34, 56, .45); animation: toast-in .2s ease-out; }
.period-pop .field > span:first-child { font-size: .8rem; }
.period-pop input[type=date] { padding: .55rem .65rem; font-size: .92rem; }
.period-pop .btn { grid-column: 1 / -1; }
.btn--sm { padding: .6rem 1rem; font-size: .92rem; }
.empty-cta { display: inline-block; margin-top: 1rem; }
@media (max-width: 600px) {
    .period { gap: .5rem; }
    .period-label { width: 100%; }
    .period-presets { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding-bottom: .2rem; }
    .period-pop { position: fixed; left: 1rem; right: 1rem; top: auto; bottom: 1rem; width: auto; }
}

/* =====================================================================
   UI refresh: fluid width, live clock, stat cards, unified filter bar
   ===================================================================== */

/* ---------- Fluid width: screen ke hisaab se ---------- */
:root { --gutter: clamp(1rem, 3vw, 2.5rem); --maxw: 1680px; --topbar-h: 64px; }
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
.page { width: 100%; max-width: var(--maxw); padding: clamp(1.25rem, 2.5vw, 2.25rem) var(--gutter) 4rem; }
.topbar-inner { width: 100%; max-width: var(--maxw); padding: .7rem var(--gutter); gap: clamp(.75rem, 2vw, 2rem); }
.slips { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(.75rem, 1.4vw, 1.15rem); }
img, svg { max-width: 100%; }

/* ---------- Live clock (top bar) ---------- */
.clock { display: flex; align-items: center; gap: .7rem; padding: .3rem .4rem .3rem .45rem; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); flex: none; }
.clock-body { display: grid; line-height: 1.15; padding-right: .35rem; }
.clock-time { font-family: var(--f-head); font-weight: 600; font-size: .98rem; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.clock-date { font-size: .72rem; color: #B9C6DA; white-space: nowrap; }
.mkt { display: inline-flex; align-items: center; gap: .4rem; font-size: .72rem; font-weight: 700; letter-spacing: .03em; padding: .32rem .6rem; border-radius: 8px; white-space: nowrap; color: #DCE4F0; background: rgba(255, 255, 255, .08); }
.mkt-dot { width: 7px; height: 7px; border-radius: 50%; background: #8A97AB; flex: none; }
.mkt--open { color: #7BE3B4; background: rgba(10, 138, 90, .22); }
.mkt--open .mkt-dot { background: #2FD08E; box-shadow: 0 0 0 0 rgba(47, 208, 142, .6); animation: pulse-mkt 1.8s infinite; }
.mkt--pre { color: #FFD772; background: rgba(233, 164, 0, .18); }
.mkt--pre .mkt-dot { background: var(--marigold); }
@keyframes pulse-mkt { 70% { box-shadow: 0 0 0 6px rgba(47, 208, 142, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 208, 142, 0); } }

/* ---------- Hero ---------- */
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.hero h1 { font-size: clamp(1.45rem, 2.4vw, 2rem); font-weight: 600; color: var(--ink); }
.hero .muted { margin-top: .35rem; }

/* ---------- Stat cards ---------- */
.summary--cards { margin-top: 1.5rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.65rem, 1.2vw, 1rem); background: none; border: 0; border-radius: 0; }
.summary--cards .stat { --c: var(--ink); --soft: #E8EDF5; display: flex; align-items: center; gap: .95rem; padding: 1.05rem 1.15rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(21, 34, 56, .04); position: relative; overflow: hidden; transition: transform .15s, box-shadow .15s; min-width: 0; }
.summary--cards .stat::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--c); }
.summary--cards .stat:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -16px rgba(21, 34, 56, .35); }
.summary--cards .stat--open { --c: var(--marigold); --soft: #FFF3D1; }
.summary--cards .stat--win { --c: var(--buy); --soft: var(--buy-soft); }
.summary--cards .stat--loss { --c: var(--sell); --soft: var(--sell-soft); }
.summary--cards .stat--acc { --c: var(--ink-2); }
.stat-icon { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--soft); color: var(--c); }
.stat--open .stat-icon { color: #B07C00; }
.stat-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.stat-label { font-size: .8rem; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.stat-value { font-family: var(--f-head); font-size: clamp(1.5rem, 2.2vw, 1.9rem); font-weight: 600; color: var(--ink); line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat-value--sm { font-size: clamp(1.1rem, 1.6vw, 1.3rem); margin: .15rem 0 .1rem; }
.stat-note { font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.ring { --p: 0; width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--buy) calc(var(--p) * 1%), var(--sell-soft) 0); }
.ring span { width: 40px; height: 40px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-family: var(--f-head); font-weight: 700; font-size: .72rem; color: var(--ink); }

/* ---------- Unified filter bar (sticky) ---------- */
.filterbar { position: sticky; top: calc(var(--topbar-h) + .5rem); z-index: 8; margin-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem 1.25rem; flex-wrap: wrap; padding: .6rem .7rem; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 28px -20px rgba(21, 34, 56, .45); }
.fb-group { display: flex; align-items: center; gap: .6rem; min-width: 0; margin: 0; }
.fb-label { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-left: .3rem; flex: none; }
.filterbar .fb-seg { display: inline-flex; gap: 2px; padding: 3px; background: var(--paper); border: 0; border-radius: 10px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.filterbar .fb-seg::-webkit-scrollbar { display: none; }
.filterbar .fb-opt { display: inline-flex; align-items: center; gap: .35rem; font: inherit; font-size: .86rem; font-weight: 600; color: var(--muted); text-decoration: none; background: transparent; border: 0; border-radius: 8px; padding: .45rem .8rem; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; list-style: none; }
.filterbar .fb-opt::-webkit-details-marker { display: none; }
.filterbar .fb-opt:hover { color: var(--ink); background: rgba(255, 255, 255, .7); }
.filterbar .fb-opt.is-on { color: #fff; background: var(--ink); box-shadow: 0 4px 10px -5px rgba(21, 34, 56, .7); }
.filterbar .fb-opt--custom { background: var(--paper); border: 1.5px dashed var(--line); padding: .4rem .75rem; }
.filterbar .fb-opt--custom.is-on { border-style: solid; border-color: var(--ink); }
.fb-count { font-size: .72rem; font-weight: 700; min-width: 1.35rem; padding: .05rem .35rem; border-radius: 999px; background: rgba(21, 34, 56, .08); color: inherit; text-align: center; }
.fb-opt.is-on .fb-count { background: rgba(255, 255, 255, .2); }
.filterbar .period-pop { right: auto; left: 0; }

.calls { margin-top: 1.5rem; }
.calls-head { align-items: baseline; }
.calls-sub { font-size: .85rem; color: var(--muted); }

/* ---------- Cards: thoda zyada polish ---------- */
.slip { border-radius: 14px; box-shadow: 0 1px 2px rgba(21, 34, 56, .04); transition: transform .15s, box-shadow .15s; }
.slip:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -20px rgba(21, 34, 56, .4); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
    .summary--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1020px) {
    .topnav a { padding: .45rem .6rem; }
    .who-name { display: none; }
}
@media (max-width: 860px) {
    .clock-date { display: none; }
    .filterbar { position: static; }
    .filterbar .fb-group { width: 100%; }
    .filterbar form.fb-group { flex-wrap: wrap; }
}
@media (max-width: 600px) {
    :root { --gutter: 1rem; }
    .topbar-inner { gap: .6rem; padding-top: .55rem; padding-bottom: .55rem; }
    .topbar .brand { font-size: .98rem; }
    .clock { margin-left: auto; padding: .25rem .3rem; gap: .45rem; }
    .clock-time { font-size: .86rem; }
    .mkt { padding: .3rem; }
    .mkt #mktText { display: none; }
    .who { margin-left: 0; }
    .who .btn-ghost { padding: .4rem .6rem; font-size: .8rem; }
    .summary--cards { grid-template-columns: 1fr 1fr; }
    .summary--cards .stat { flex-direction: column; align-items: flex-start; gap: .6rem; padding: .9rem; }
    .stat-icon { width: 38px; height: 38px; border-radius: 10px; }
    .stat-icon svg { width: 20px; height: 20px; }
    .ring { width: 44px; height: 44px; }
    .ring span { width: 34px; height: 34px; font-size: .66rem; }
    .stat-note { font-size: .74rem; }
    .filterbar { padding: .55rem; gap: .6rem; }
    .fb-label { display: none; }
    .filterbar .fb-seg { width: 100%; }
    .filterbar .fb-opt { padding: .45rem .65rem; font-size: .82rem; }
    .period-custom { width: 100%; }
    .filterbar .fb-opt--custom { width: 100%; justify-content: center; }
    .hero .post-cta { width: 100%; justify-content: center; }
    .calls-head { flex-direction: column; align-items: flex-start; gap: .25rem; }
}
@media (max-width: 380px) {
    .topbar .brand { font-size: 0; gap: 0; }
    .summary--cards { grid-template-columns: 1fr; }
    .levels--3 { grid-template-columns: 1fr 1fr; row-gap: .7rem; }
}

/* Mobile: filter options wrap instead of hidden scroll */
@media (max-width: 600px) {
    .filterbar .fb-seg { flex-wrap: wrap; overflow: visible; }
    .filterbar .fb-seg .fb-opt { flex: 1 1 auto; justify-content: center; }
}

/* =====================================================================
   Search, pagination, theme toggle, dark mode
   ===================================================================== */

/* ---------- Filter bar rows ---------- */
.filterbar { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: .6rem; }
.fb-row > * { min-width: 0; }
.fb-row { display: flex; align-items: center; justify-content: space-between; gap: .6rem 1.25rem; flex-wrap: wrap; }
.fb-row--search { padding-bottom: .6rem; border-bottom: 1px solid var(--line); }

/* ---------- Search ---------- */
.search { position: relative; flex: 1 1 320px; max-width: 520px; margin: 0; }
.search-icon { position: absolute; left: .85rem; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; pointer-events: none; }
.search input[type=search] { width: 100%; font: inherit; font-size: .95rem; font-weight: 600; letter-spacing: .02em; color: var(--text); padding: .68rem 2.6rem .68rem 2.55rem; background: var(--paper); border: 1.5px solid transparent; border-radius: 10px; transition: border-color .15s, background .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
.search input[type=search]::-webkit-search-cancel-button { display: none; }
.search input[type=search]::placeholder { font-weight: 500; letter-spacing: 0; }
.search input[type=search]:focus { outline: none; background: var(--surface); border-color: var(--ink-2); box-shadow: 0 0 0 3px rgba(233, 164, 0, .3); }
.search-clear { position: absolute; right: .45rem; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--line); color: var(--text); cursor: pointer; }
.search-clear[hidden] { display: none; }
.search-clear svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.search-clear:hover { background: var(--sell-soft); color: var(--sell); }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip-q { font: inherit; font-size: .78rem; font-weight: 700; letter-spacing: .03em; color: var(--ink-2); background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: .32rem .7rem; cursor: pointer; transition: all .15s; }
.chip-q:hover { border-color: var(--ink-2); }
.chip-q.is-on { background: var(--marigold); border-color: var(--marigold); color: #1F1600; }

#callsLive { transition: opacity .15s; }
#callsLive.is-loading { opacity: .45; pointer-events: none; }
.filterbar .fb-seg a.fb-opt { text-decoration: none; }

/* ---------- Pagination ---------- */
.pager { margin-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: .9rem 1.5rem; flex-wrap: wrap; padding: .75rem .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.pager-info { font-size: .88rem; color: var(--muted); }
.pager-info b { color: var(--ink); font-variant-numeric: tabular-nums; }
.pager-nav { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.pg { min-width: 38px; height: 38px; padding: 0 .7rem; display: inline-flex; align-items: center; justify-content: center; gap: .3rem; font-family: var(--f-head); font-weight: 600; font-size: .9rem; color: var(--ink-2); text-decoration: none; background: var(--paper); border: 1.5px solid transparent; border-radius: 10px; transition: all .15s; font-variant-numeric: tabular-nums; }
a.pg:hover { border-color: var(--ink-2); background: var(--surface); }
.pg.is-on { background: var(--ink); color: #fff; box-shadow: 0 6px 14px -8px rgba(21, 34, 56, .7); }
.pg--edge { font-family: var(--f-body); font-size: .86rem; }
.pg svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pg.is-disabled { opacity: .4; cursor: default; }
.pg-gap { color: var(--muted); padding: 0 .2rem; }

/* ---------- Theme toggle ---------- */
.theme-toggle { display: inline-flex; align-items: center; gap: .4rem; flex: none; font: inherit; font-size: .82rem; font-weight: 700; color: #DCE4F0; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px; padding: .45rem .7rem; cursor: pointer; transition: background .15s, border-color .15s; }
.theme-toggle:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ti-sun { display: none; }
[data-theme="dark"] .ti-moon { display: none; }
[data-theme="dark"] .ti-sun { display: block; color: var(--marigold); }
.theme-toggle--float { position: fixed; top: 1rem; right: 1rem; z-index: 20; color: var(--ink); background: var(--surface); border-color: var(--line); box-shadow: 0 6px 18px -10px rgba(21, 34, 56, .4); }
.theme-toggle--float:hover { background: var(--surface); border-color: var(--ink-2); }
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after { transition: background-color .3s, border-color .3s, color .3s !important; }

/* =====================================================================
   DARK MODE
   ===================================================================== */
[data-theme="dark"] {
    color-scheme: dark;
    --ink: #E8EEF8;
    --ink-2: #B4C4E2;
    --paper: #0B111C;
    --surface: #131C2B;
    --line: #253249;
    --text: #D3DCEA;
    --muted: #8A98AF;
    --buy: #2EC48C;
    --buy-soft: rgba(46, 196, 140, .14);
    --sell: #F26D6D;
    --sell-soft: rgba(242, 109, 109, .14);
    --marigold: #F3B52C;
    --chrome: #070C15;
}
[data-theme="dark"] body { background: var(--paper); }

/* jahan --ink background tha (dark navy), wahan ab alag rang */
[data-theme="dark"] .topbar { background: var(--chrome); border-bottom: 1px solid var(--line); }
[data-theme="dark"] .auth-side { background: var(--chrome); }
[data-theme="dark"] .btn,
[data-theme="dark"] .btn--wide { background: #E8EEF8; color: #0B111C; box-shadow: none; }
[data-theme="dark"] .btn:hover,
[data-theme="dark"] .btn--wide:hover { background: #fff; }
[data-theme="dark"] .seg button.is-on,
[data-theme="dark"] .period-pill.is-on,
[data-theme="dark"] .filterbar .fb-opt.is-on,
[data-theme="dark"] .pg.is-on { background: #E8EEF8; border-color: #E8EEF8; color: #0B111C; box-shadow: none; }
[data-theme="dark"] .fb-opt.is-on .fb-count { background: rgba(11, 17, 28, .12); }
[data-theme="dark"] .fb-count { background: rgba(255, 255, 255, .08); }
[data-theme="dark"] .filterbar .fb-opt:hover { background: rgba(255, 255, 255, .06); }
[data-theme="dark"] .new-banner { background: #1D2940; color: var(--ink); }
[data-theme="dark"] .setup > li::before { background: #2A3A57; color: #fff; }
[data-theme="dark"] .rr-entry { background: #E8EEF8; }
[data-theme="dark"] .post-cta,
[data-theme="dark"] .slip.is-new::after { color: #1F1600; }

/* light-only hardcoded surfaces */
[data-theme="dark"] .slip.is-closed { background: #0F1724; }
[data-theme="dark"] .slip.is-closed .tps li { background: #182235; }
[data-theme="dark"] .status--open { background: rgba(243, 181, 44, .12); color: var(--marigold); border-color: rgba(243, 181, 44, .45); }
[data-theme="dark"] .panel-foot { background: #101827; }
[data-theme="dark"] .row:hover { background: rgba(255, 255, 255, .03); }
[data-theme="dark"] .live--off { background: rgba(243, 181, 44, .15); color: var(--marigold); }
[data-theme="dark"] .score-badge { background: rgba(243, 181, 44, .14); border-color: rgba(243, 181, 44, .4); color: #F7C85A; }
[data-theme="dark"] .summary--cards .stat { --soft: #1D2940; }
[data-theme="dark"] .summary--cards .stat--open { --soft: rgba(243, 181, 44, .14); }
[data-theme="dark"] .summary--cards .stat--win { --soft: var(--buy-soft); }
[data-theme="dark"] .summary--cards .stat--loss { --soft: var(--sell-soft); }
[data-theme="dark"] .stat--open .stat-icon { color: var(--marigold); }
[data-theme="dark"] .toast,
[data-theme="dark"] .check--ok { color: #86E5BC; border-color: rgba(46, 196, 140, .3); }
[data-theme="dark"] .check--bad,
[data-theme="dark"] .alert { color: #F8A3A3; }
[data-theme="dark"] input::placeholder { color: #5D6A80; }
[data-theme="dark"] .search input[type=search]:focus { background: #0F1724; }
[data-theme="dark"] .filterbar { background: color-mix(in srgb, var(--surface) 90%, transparent); }
[data-theme="dark"] .slip,
[data-theme="dark"] .summary--cards .stat,
[data-theme="dark"] .panel,
[data-theme="dark"] .pager,
[data-theme="dark"] .ledger { box-shadow: 0 1px 0 rgba(255, 255, 255, .02) inset; }
[data-theme="dark"] .slip:hover,
[data-theme="dark"] .summary--cards .stat:hover { box-shadow: 0 18px 36px -22px rgba(0, 0, 0, .9); }
[data-theme="dark"] .rr-tp { background: rgba(11, 17, 28, .85); }
[data-theme="dark"] .preview { background: radial-gradient(120% 90% at 100% 0%, #1F2E4D 0%, #0B111C 65%); border: 1px solid var(--line); }
[data-theme="dark"] .qr { background: #fff; }
[data-theme="dark"] .brand { color: var(--ink); }
[data-theme="dark"] .topbar .brand { color: #fff; }
[data-theme="dark"] .chip-q.is-on { color: #1F1600; }
[data-theme="dark"] .empty { background: var(--surface); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
    .theme-label { display: none; }
    .theme-toggle { padding: .45rem .55rem; }
}
@media (max-width: 860px) {
    .search { max-width: none; flex-basis: 100%; }
}
@media (max-width: 600px) {
    .fb-row--search { padding-bottom: .55rem; }
    .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -.1rem; padding-bottom: .1rem; }
    .chips::-webkit-scrollbar { display: none; }
    .chip-q { flex: none; }
    .pager { flex-direction: column; align-items: stretch; text-align: center; padding: .7rem; }
    .pager-nav { justify-content: center; }
    .pg { min-width: 34px; height: 36px; padding: 0 .5rem; }
    .pg--edge span { display: none; }
    .theme-toggle { padding: .38rem .45rem; }
    .clock { margin-left: auto; }
    .theme-toggle--float { top: .6rem; right: .6rem; }
}
@media (max-width: 430px) { .topbar .brand { font-size: 0; gap: 0; } }

/* Search ke baad filter bar lambi ho gayi: sticky hata diya taaki cards/pagination na dhake */
.filterbar { position: static; }

/* =====================================================================
   Login page: H&A Terminal brand
   ===================================================================== */
.auth--brand { grid-template-columns: minmax(420px, 1.05fr) 1fr; background: var(--paper); }

/* ---------- Left: brand hero (logo jaisa neon dark) ---------- */
.auth-hero { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding: clamp(2rem, 4vw, 3.5rem); color: #D9E2EF; background: radial-gradient(120% 80% at 50% 0%, #0E1A14 0%, #05080D 55%, #030508 100%); isolation: isolate; }
.auth-hero::before { /* faint chart grid */
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: .07;
    background-image: linear-gradient(#3DFF9A 1px, transparent 1px), linear-gradient(90deg, #3DFF9A 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 75%); mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 75%);
}
.hero-glow { position: absolute; z-index: -1; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(70px); opacity: .32; pointer-events: none; animation: drift 14s ease-in-out infinite alternate; }
.hero-glow--bull { background: #19D46E; top: -18vmax; left: -16vmax; }
.hero-glow--bear { background: #FF2E3F; bottom: -20vmax; right: -18vmax; opacity: .26; animation-delay: -7s; }
@keyframes drift { to { transform: translate(4vmax, 3vmax) scale(1.08); } }

.hero-body { margin: auto 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-logo { position: relative; width: clamp(210px, 26vw, 320px); aspect-ratio: 1; border-radius: 50%; padding: 6px; background: conic-gradient(from 210deg, #20E37A, #0B3B22 25%, #2B0A0E 50%, #FF3B4A 70%, #20E37A); box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 0 60px -8px rgba(32, 227, 122, .45), 0 0 90px -10px rgba(255, 59, 74, .35); animation: logo-in .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-logo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.hero-logo::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .12); animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes logo-in { from { opacity: 0; transform: scale(.92); } }

.hero-title { margin-top: clamp(1.6rem, 3vw, 2.4rem); font-size: clamp(1.55rem, 2.4vw, 2.2rem); font-weight: 600; color: #fff; max-width: 30rem; }
.hero-sub { margin-top: .75rem; color: #9FB0C6; max-width: 28rem; font-size: .98rem; }
.hero-feats { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; width: 100%; max-width: 30rem; text-align: left; }
.hero-feats li { display: flex; align-items: center; gap: .65rem; padding: .7rem .8rem; font-size: .88rem; font-weight: 600; color: #DCE6F2; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; backdrop-filter: blur(6px); }
.hf-icon { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 9px; }
.hf-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hf-icon--buy { color: #3DF59A; background: rgba(32, 227, 122, .14); }
.hf-icon--gold { color: #FFC94A; background: rgba(243, 181, 44, .14); }
.hf-icon--blue { color: #7FB2FF; background: rgba(90, 150, 255, .14); }
.hf-icon--sell { color: #FF7A85; background: rgba(255, 59, 74, .14); }
.hero-foot { font-size: .8rem; color: #71819A; text-align: center; }

/* ---------- Right: sign-in card ---------- */
.auth--brand .auth-main { position: relative; padding: clamp(1.5rem, 4vw, 3rem); }
.auth-card--glass { max-width: 430px; padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 1px 2px rgba(21, 34, 56, .05), 0 30px 60px -30px rgba(21, 34, 56, .35); animation: toast-in .5s ease-out both; }
.card-brand { display: flex; align-items: center; gap: .9rem; margin-bottom: .9rem; }
.card-brand img { width: 56px; height: 56px; flex: none; border-radius: 50%; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px rgba(32, 227, 122, .5), 0 8px 20px -8px rgba(32, 227, 122, .6); }
.card-brand .step { margin-bottom: .1rem; }
.auth-card--glass h2 { font-size: clamp(1.5rem, 2vw, 1.75rem); }
.auth-card--glass .form { margin-top: 1.5rem; }

.ifield { position: relative; display: block; }
.ifield-icon { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; transition: stroke .15s; }
.ifield input { padding-left: 2.6rem !important; height: 50px; border-radius: 12px !important; background: var(--paper) !important; border-color: transparent !important; }
.ifield input:focus { background: var(--surface) !important; border-color: #1FBF6A !important; box-shadow: 0 0 0 4px rgba(32, 227, 122, .18) !important; }
.ifield:focus-within .ifield-icon { stroke: #1FBF6A; }

.btn--glow { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: 52px; border-radius: 12px; font-size: 1.02rem; color: #04110A !important; background: linear-gradient(135deg, #2BEA84 0%, #12B862 100%) !important; box-shadow: 0 12px 28px -12px rgba(18, 184, 98, .8) !important; transition: transform .15s, box-shadow .15s, filter .15s; }
.btn--glow:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 16px 32px -12px rgba(18, 184, 98, .9) !important; }
.btn--glow:active { transform: translateY(0); }
.btn--glow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.btn--glow:hover svg { transform: translateX(3px); }

.secure-note { margin-top: 1.1rem; display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--muted); padding: .6rem .75rem; background: var(--paper); border-radius: 10px; }
.secure-note svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--buy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.auth--brand .switch { text-align: center; }

[data-theme="dark"] .auth-card--glass { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
[data-theme="dark"] .ifield input:focus { background: #0F1724 !important; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .auth--brand { grid-template-columns: 1fr; }
    .auth-hero { padding: 1.75rem 1.25rem 2rem; gap: 1.25rem; }
    .hero-logo { width: clamp(150px, 38vw, 210px); }
    .hero-title { font-size: clamp(1.3rem, 4.5vw, 1.7rem); margin-top: 1.25rem; }
    .hero-sub { font-size: .92rem; }
    .hero-feats { margin-top: 1.25rem; }
    .hero-foot { display: none; }
    .auth--brand .auth-main { padding: 1.5rem 1rem 2.5rem; }
}
@media (max-width: 480px) {
    .hero-feats { grid-template-columns: 1fr 1fr; gap: .45rem; }
    .hero-feats li { padding: .55rem .6rem; font-size: .78rem; gap: .5rem; }
    .hf-icon { width: 28px; height: 28px; }
    .hero-sub { display: none; }
    .auth-card--glass { padding: 1.35rem 1.1rem; border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-glow, .hero-logo::after { animation: none; }
}
.hero-title, .hero-sub { text-wrap: balance; }

/* ---------- HA Quant brand ---------- */
.brandx { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; min-width: 0; flex: none; }
.brandx-logo { width: 36px; height: 36px; flex: none; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1.5px rgba(32, 227, 122, .55), 0 0 14px -2px rgba(32, 227, 122, .45); }
.brandx-text { display: grid; line-height: 1.1; }
.brandx-name { font-family: var(--f-head); font-weight: 700; font-size: 1.08rem; letter-spacing: -.01em; color: var(--ink); }
.brandx-tag { font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.brandx--header .brandx-name { color: #fff; }
.brandx--header .brandx-tag { color: #7FE3AE; opacity: .85; }
.auth-card > .brandx { margin-bottom: 1.75rem; }

.hero-brand { margin-top: clamp(1.2rem, 2.4vw, 1.75rem); font-family: var(--f-head); font-weight: 700; font-size: clamp(1.9rem, 3.4vw, 2.8rem); letter-spacing: -.02em; line-height: 1; background: linear-gradient(90deg, #3DF59A, #E8F5EE 45%, #FFFFFF 55%, #FF6B77); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-tag { margin-top: .55rem; display: flex; align-items: center; gap: .7rem; font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #A9B9CD; }
.hero-tag span { width: 28px; height: 1px; background: linear-gradient(90deg, transparent, #3DF59A); }
.hero-tag span:last-child { background: linear-gradient(90deg, #FF5A67, transparent); }
.hero-title { margin-top: clamp(1.1rem, 2vw, 1.5rem); }

@media (max-width: 1180px) { .brandx--header .brandx-tag { display: none; } }
@media (max-width: 960px) {
    .hero-brand { font-size: clamp(1.6rem, 7vw, 2.1rem); }
    .hero-tag { font-size: .68rem; letter-spacing: .16em; }
}
@media (max-width: 480px) {
    .brandx--header .brandx-text { display: none; }
    .brandx--header .brandx-logo { width: 32px; height: 32px; }
}

/* ---------- Sign up: steps, password meter, match ---------- */
.steps { list-style: none; margin: .25rem 0 0; padding: 0; display: flex; gap: .5rem; flex-wrap: wrap; }
.steps li { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 600; color: var(--muted); padding: .3rem .65rem .3rem .3rem; background: var(--paper); border-radius: 999px; }
.steps li span { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; font-size: .72rem; font-weight: 800; background: var(--line); color: var(--text); }
.steps li.is-on { color: var(--ink); background: rgba(32, 227, 122, .12); }
.steps li.is-on span { background: linear-gradient(135deg, #2BEA84, #12B862); color: #04110A; }

.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: .15rem; }
.pw-meter i { height: 5px; border-radius: 3px; background: var(--line); transition: background .2s; }
.pw-meter[data-level="1"] i:nth-child(-n+1) { background: var(--sell); }
.pw-meter[data-level="2"] i:nth-child(-n+2) { background: var(--marigold); }
.pw-meter[data-level="3"] i:nth-child(-n+3) { background: #4DBB7A; }
.pw-meter[data-level="4"] i { background: linear-gradient(90deg, #2BEA84, #12B862); }
.pw-hint { font-size: .78rem; color: var(--muted); }
.pw-hint[data-level="1"] { color: var(--sell); }
.pw-hint[data-level="2"] { color: #B07C00; }
.pw-hint[data-level="3"], .pw-hint[data-level="4"] { color: var(--buy); }
[data-theme="dark"] .pw-hint[data-level="2"] { color: var(--marigold); }
.pw-match { font-size: .8rem; font-weight: 600; min-height: 1.1em; display: inline-flex; align-items: center; gap: .35rem; }
.pw-match.is-ok { color: var(--buy); }
.pw-match.is-ok::before { content: "\2713"; }
.pw-match.is-bad { color: var(--sell); }
.auth-card--glass .form { gap: 1rem; }
.auth-card--glass .field small { margin-left: .3rem; }

/* ---------- Forgot password, notices, session ---------- */
.notice { margin-top: 1.1rem; padding: .75rem .95rem; border-radius: 10px; font-size: .9rem; font-weight: 500; display: flex; gap: .55rem; align-items: flex-start; }
.notice::before { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 800; margin-top: .05rem; }
.notice--ok { background: var(--buy-soft); color: #075C3C; border: 1px solid rgba(10, 138, 90, .25); }
.notice--ok::before { content: "\2713"; background: var(--buy); color: #fff; }
.notice--info { background: rgba(233, 164, 0, .12); color: #7A4F00; border: 1px solid rgba(233, 164, 0, .35); }
.notice--info::before { content: "i"; background: var(--marigold); color: #1F1600; font-family: Georgia, serif; font-style: italic; }
[data-theme="dark"] .notice--ok { color: #86E5BC; }
[data-theme="dark"] .notice--info { color: #F7C85A; }

.label-row { display: flex !important; align-items: baseline; justify-content: space-between; gap: .5rem; }
.forgot-link { font-size: .82rem; font-weight: 600; color: #12A85A; text-decoration: none; }
.forgot-link:hover { text-decoration: underline; }
[data-theme="dark"] .forgot-link { color: #3DE08F; }

.otp-input { font-family: var(--f-head) !important; font-size: 1.15rem !important; font-weight: 600; letter-spacing: .3em; }
.otp-input::placeholder { letter-spacing: .3em; }
.help-box { margin-top: 1.1rem; font-size: .85rem; color: var(--muted); background: var(--paper); border-radius: 10px; padding: .6rem .8rem; }
.help-box summary { cursor: pointer; font-weight: 600; color: var(--ink-2); }
.help-box p { margin-top: .45rem; }

.who-name { display: grid; line-height: 1.15; text-align: right; }
.who-session { font-size: .68rem; color: #8FA0BA; font-weight: 600; }

/* =====================================================================
   Subscriptions: plans, pricing band, site layout, subscribe, about, admin
   ===================================================================== */

/* ---------- Plan cards ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(.9rem, 1.6vw, 1.4rem); align-items: stretch; max-width: 1120px; margin: 0 auto; }
.plan { position: relative; display: flex; flex-direction: column; gap: .9rem; padding: 1.6rem 1.5rem 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 1px 2px rgba(21, 34, 56, .04); transition: transform .2s, box-shadow .2s, border-color .2s; }
.plan:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(21, 34, 56, .45); }
.plan--popular { border: 1.5px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, #2BEA84, #F3B52C 50%, #FF5A67) border-box; box-shadow: 0 28px 56px -30px rgba(18, 184, 98, .55); }
.plan.is-selected { outline: 3px solid rgba(32, 227, 122, .55); outline-offset: 3px; }
.plan-ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #04110A; background: linear-gradient(135deg, #2BEA84, #12B862); padding: .3rem .8rem; border-radius: 999px; box-shadow: 0 8px 18px -8px rgba(18, 184, 98, .9); white-space: nowrap; }
.plan-head h3 { font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.plan-head p { margin-top: .2rem; font-size: .88rem; color: var(--muted); }
.plan-price { display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; }
.plan-amount { font-family: var(--f-head); font-size: clamp(2rem, 3.2vw, 2.5rem); font-weight: 700; color: var(--ink); letter-spacing: -.02em; line-height: 1; }
.plan-per { font-size: .95rem; color: var(--muted); font-weight: 600; }
.plan-sub { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; min-height: 1.5rem; font-size: .85rem; }
.plan-sub s { color: var(--muted); }
.plan-save { font-weight: 800; font-size: .75rem; color: #075C3C; background: var(--buy-soft); padding: .15rem .5rem; border-radius: 999px; }
.plan-month { color: var(--muted); font-weight: 600; }
[data-theme="dark"] .plan-save { color: #86E5BC; }
.plan-feats { list-style: none; margin: .2rem 0 0; padding: .9rem 0 0; border-top: 1px dashed var(--line); display: grid; gap: .55rem; flex: 1; }
.plan-feats li { display: flex; gap: .55rem; align-items: flex-start; font-size: .9rem; color: var(--text); }
.plan-feats svg { width: 18px; height: 18px; flex: none; margin-top: .1rem; padding: 2px; border-radius: 50%; background: var(--buy-soft); fill: none; stroke: var(--buy); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.plan-cta { margin-top: .4rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: 50px; font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; transition: all .15s; }
.plan-cta:hover { border-color: var(--ink-2); background: var(--surface); }
.plan-cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.plan-cta:hover svg { transform: translateX(3px); }
.plan--popular .plan-cta, .plan.is-selected .plan-cta { color: #04110A; background: linear-gradient(135deg, #2BEA84, #12B862); border-color: transparent; box-shadow: 0 12px 26px -12px rgba(18, 184, 98, .85); }
.plan-cta[aria-disabled="true"] { opacity: .7; }

/* ---------- Login: plans peek + pricing band ---------- */
.plans-peek { margin-top: 1.25rem; display: flex; align-items: center; gap: .75rem; padding: .8rem .9rem; text-decoration: none; color: var(--text); background: linear-gradient(135deg, rgba(43, 234, 132, .1), rgba(243, 181, 44, .1)); border: 1px solid rgba(43, 234, 132, .3); border-radius: 14px; transition: transform .15s, border-color .15s; }
.plans-peek:hover { transform: translateY(-1px); border-color: rgba(43, 234, 132, .6); }
.plans-peek-icon { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(135deg, #2BEA84, #12B862); color: #04110A; }
.plans-peek-icon svg { width: 18px; height: 18px; fill: currentColor; }
.plans-peek b { display: block; font-size: .92rem; color: var(--ink); }
.plans-peek small { font-size: .78rem; color: var(--muted); }
.plans-peek-arrow { margin-left: auto; width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(3px); } }

.pricing-band { position: relative; padding: clamp(3rem, 7vw, 5.5rem) var(--gutter, 1.25rem); background: radial-gradient(70% 60% at 15% 0%, rgba(43, 234, 132, .1), transparent 70%), radial-gradient(60% 50% at 90% 100%, rgba(255, 90, 103, .08), transparent 70%), var(--paper); border-top: 1px solid var(--line); }
.pricing-inner { max-width: 1160px; margin: 0 auto; text-align: center; }
.pricing-title { font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 700; color: var(--ink); letter-spacing: -.02em; text-wrap: balance; }
.pricing-lead { margin: .8rem auto 2.4rem; max-width: 40rem; color: var(--muted); text-wrap: balance; }
.pricing-band .plans { text-align: left; }
.pricing-trust, .sub-trust { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; justify-content: center; flex-wrap: wrap; gap: .6rem 1.4rem; font-size: .88rem; font-weight: 600; color: var(--muted); }
.pricing-trust li, .sub-trust li { display: inline-flex; align-items: center; gap: .45rem; }
.pricing-trust svg, .sub-trust svg { width: 18px; height: 18px; fill: none; stroke: var(--buy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pricing-more { margin-top: 1.2rem; font-size: .92rem; color: var(--muted); }
.pricing-more a { font-weight: 700; color: #12A85A; }

/* ---------- Site layout (about, subscribe) ---------- */
.site-body { min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); }
.site-main { flex: 1; }
.sitebar { position: sticky; top: 0; z-index: 20; background: rgba(5, 9, 14, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.sitebar-inner { max-width: var(--maxw, 1680px); margin: 0 auto; padding: .7rem var(--gutter, 1.25rem); display: flex; align-items: center; gap: clamp(.75rem, 2vw, 2rem); }
.sitenav { display: flex; gap: .2rem; flex: 1; }
.sitenav a { color: #B9C6DA; text-decoration: none; font-weight: 600; font-size: .92rem; padding: .45rem .8rem; border-radius: 8px; }
.sitenav a:hover { color: #fff; }
.sitenav a.is-current { color: #fff; background: rgba(255, 255, 255, .1); }
.sitebar-actions { display: flex; align-items: center; gap: .55rem; }
.sitebar-actions form { margin: 0; }
.sitebar-ghost { color: #fff !important; border-color: rgba(255, 255, 255, .25) !important; text-decoration: none; background: transparent; }
.sitebar-ghost:hover { border-color: #fff !important; }
.sitebar-cta { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font-weight: 700; font-size: .9rem; color: #04110A; text-decoration: none; background: linear-gradient(135deg, #2BEA84, #12B862); padding: .55rem 1rem; border-radius: 10px; box-shadow: 0 8px 20px -10px rgba(18, 184, 98, .9); white-space: nowrap; transition: transform .15s; }
.sitebar-cta:hover { transform: translateY(-1px); }

.site-foot { background: #04070C; color: #8D9BB1; border-top: 1px solid rgba(255, 255, 255, .06); }
.site-foot-inner { max-width: 1160px; margin: 0 auto; padding: 2.25rem var(--gutter, 1.25rem); display: grid; grid-template-columns: auto 1fr; gap: 1.25rem 2rem; align-items: center; }
.site-foot-brand { display: flex; align-items: center; gap: .7rem; }
.site-foot-brand img { width: 40px; height: 40px; border-radius: 50%; }
.sf-name { font-family: var(--f-head); font-weight: 700; color: #fff; }
.sf-tag { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: #6FD9A2; }
.site-foot-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem 1.2rem; }
.site-foot-links a { color: #C6D1E0; text-decoration: none; font-weight: 600; font-size: .9rem; }
.site-foot-links a:hover { color: #fff; }
.site-foot-legal { grid-column: 1 / -1; font-size: .78rem; line-height: 1.6; padding-top: 1.1rem; border-top: 1px solid rgba(255, 255, 255, .07); }

/* ---------- Subscribe page ---------- */
.sub-hero, .ab-hero { position: relative; overflow: hidden; isolation: isolate; color: #D9E2EF; background: radial-gradient(120% 80% at 50% 0%, #0E1A14 0%, #05080D 55%, #030508 100%); }
.sub-hero::before, .ab-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .07; background-image: linear-gradient(#3DFF9A 1px, transparent 1px), linear-gradient(90deg, #3DFF9A 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(70% 80% at 50% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(70% 80% at 50% 30%, #000 30%, transparent 75%); }
.sub-hero-inner { max-width: 760px; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter, 1.25rem) clamp(4.5rem, 9vw, 6.5rem); text-align: center; }
.sub-hero h1, .ab-hero h1 { margin-top: 1rem; font-size: clamp(1.8rem, 4vw, 2.9rem); font-weight: 700; color: #fff; letter-spacing: -.02em; text-wrap: balance; }
.sub-hero p, .ab-hero-text > p { margin: .9rem auto 0; max-width: 36rem; color: #A9B9CD; text-wrap: balance; }
.sub-pill { display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: #C8F5DD; background: rgba(43, 234, 132, .12); border: 1px solid rgba(43, 234, 132, .3); padding: .35rem .8rem; border-radius: 999px; }
.sub-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2BEA84; box-shadow: 0 0 10px #2BEA84; }
.sub-pill--ok { color: #C8F5DD; }
.sub-pill--warn { color: #FFE2A3; background: rgba(243, 181, 44, .14); border-color: rgba(243, 181, 44, .4); }
.sub-pill--warn::before { background: var(--marigold); box-shadow: 0 0 10px var(--marigold); }
.sub-go { margin-top: 1.4rem; height: 46px; padding: 0 1.4rem; }
.sub-trust { color: #A9B9CD; margin-top: 1.6rem; }
.sub-plans { position: relative; max-width: 1180px; margin: clamp(-3.5rem, -6vw, -2.5rem) auto 0; padding: 0 var(--gutter, 1.25rem) 4rem; }
.sub-setup, .sub-error { max-width: 1120px; margin: 0 auto 1.4rem !important; }
.sub-setup code { font-size: .85em; padding: .05rem .35rem; border-radius: 5px; background: rgba(0, 0, 0, .08); }
.sub-faq { max-width: 760px; margin: 3rem auto 0; display: grid; gap: .6rem; }
.sub-faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1.1rem; }
.sub-faq summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.sub-faq p { margin-top: .5rem; color: var(--muted); font-size: .92rem; }
.pay-overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(3, 6, 10, .55); backdrop-filter: blur(4px); }
.pay-overlay[hidden] { display: none; }
.pay-card { display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.4rem; background: var(--surface); color: var(--ink); border-radius: 14px; font-weight: 700; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.pay-spinner { width: 24px; height: 24px; border-radius: 50%; border: 3px solid var(--line); border-top-color: #12B862; animation: spin .8s linear infinite; }

/* ---------- About page ---------- */
.ab-hero-inner { max-width: 1160px; margin: 0 auto; padding: clamp(2.5rem, 6vw, 5rem) var(--gutter, 1.25rem); display: grid; grid-template-columns: 1.2fr .8fr; gap: 2.5rem; align-items: center; }
.ab-hero-text > p { margin-left: 0; }
.ab-hero h1 { text-align: left; }
.ab-actions { margin-top: 1.6rem; display: flex; gap: .7rem; flex-wrap: wrap; }
.ab-actions .sitebar-cta, .ab-ghost { height: 46px; padding: 0 1.3rem; display: inline-flex; align-items: center; }
.ab-logo { justify-self: center; width: clamp(220px, 28vw, 340px); }
.ab-section { max-width: 1160px; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter, 1.25rem) 0; text-align: center; }
.ab-h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.ab-h3 { font-size: 1.1rem; font-weight: 700; color: var(--ink); }
.ab-lead { margin: .8rem auto 2.2rem; max-width: 38rem; color: var(--muted); }
.ab-grid { margin-top: 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1rem; text-align: left; }
.ab-card { padding: 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; transition: transform .15s, box-shadow .15s; }
.ab-card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -26px rgba(21, 34, 56, .45); }
.ab-card .hf-icon { width: 42px; height: 42px; border-radius: 12px; }
.ab-card .hf-icon svg { width: 22px; height: 22px; }
.ab-card h3 { margin-top: .9rem; font-size: 1.02rem; font-weight: 700; color: var(--ink); }
.ab-card p { margin-top: .4rem; font-size: .92rem; color: var(--muted); }
.hf-icon--buy { color: #0E9F58; } .hf-icon--gold { color: #B07C00; } .hf-icon--blue { color: #2F6FE0; } .hf-icon--sell { color: #D2353F; }
.auth-hero .hf-icon--buy, [data-theme="dark"] .hf-icon--buy { color: #3DF59A; }
.auth-hero .hf-icon--gold, [data-theme="dark"] .hf-icon--gold { color: #FFC94A; }
.auth-hero .hf-icon--blue, [data-theme="dark"] .hf-icon--blue { color: #7FB2FF; }
.auth-hero .hf-icon--sell, [data-theme="dark"] .hf-icon--sell { color: #FF7A85; }
.ab-steps { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; text-align: left; counter-reset: none; }
.ab-steps li { display: flex; gap: .9rem; padding: 1.3rem; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.ab-steps li > span { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; font-family: var(--f-head); font-weight: 800; color: #04110A; background: linear-gradient(135deg, #2BEA84, #12B862); }
.ab-steps h3 { font-size: 1rem; font-weight: 700; color: var(--ink); }
.ab-steps p { margin-top: .3rem; font-size: .9rem; color: var(--muted); }
.ab-disclaimer { text-align: left; padding-bottom: 4rem; }
.ab-disclaimer p { margin-top: .5rem; padding: 1rem 1.2rem; font-size: .9rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--marigold); border-radius: 12px; }

/* ---------- Register: chosen plan ---------- */
.chosen-plan { margin-top: 1rem; display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; padding: .7rem .85rem; font-size: .9rem; background: linear-gradient(135deg, rgba(43, 234, 132, .12), rgba(43, 234, 132, .04)); border: 1px solid rgba(43, 234, 132, .35); border-radius: 12px; }
.chosen-plan-tag { font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #0E9F58; }
.chosen-plan b { color: var(--ink); }
.chosen-plan span:not(.chosen-plan-tag) { color: var(--muted); font-weight: 600; }
.chosen-plan a { margin-left: auto; font-size: .82rem; font-weight: 700; color: #12A85A; }
.welcome-toast { margin-bottom: .25rem; }

/* ---------- Admin: members + plans ---------- */
.adm-sum { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.adm-search { flex: 0 1 320px; }
.mrow { display: grid; grid-template-columns: minmax(220px, 1.4fr) minmax(160px, 1fr) auto; gap: 1rem; align-items: center; padding: .9rem 1.2rem; }
.mrow + .mrow { border-top: 1px solid var(--line); }
.mrow:hover { background: rgba(127, 140, 160, .05); }
.mrow-who { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.mrow-who > div { min-width: 0; }
.mrow-who .row-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; font-family: var(--f-head); font-weight: 700; color: #04110A; background: linear-gradient(135deg, #2BEA84, #F3B52C); }
.role-badge { font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #7A4F00; background: rgba(243, 181, 44, .18); padding: .1rem .4rem; border-radius: 6px; vertical-align: middle; }
[data-theme="dark"] .role-badge { color: #F7C85A; }
.mrow-status .row-sub { margin-top: .3rem; }
.mrow-actions { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
.mrow-actions form { margin: 0; }
.grant { display: flex; gap: .35rem; }
.grant select { width: auto; padding: .38rem .6rem; font-size: .82rem; border-radius: 999px; }
.prow { display: grid; grid-template-columns: 1.3fr 1fr auto 1.2fr; gap: 1rem; align-items: center; padding: .85rem 1.2rem; }
.prow + .prow { border-top: 1px solid var(--line); }
.prow-amt { font-family: var(--f-head); font-weight: 700; color: var(--ink); }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .74rem; }
.plan-edit-grid { margin-top: 1.5rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 1.2rem; }
.plan-edit-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.plan-edit-head h2 { font-size: 1.15rem; color: var(--ink); }
.plan-edit-wide { margin-top: 1rem; }
.plan-edit textarea { width: 100%; font: inherit; font-size: .92rem; color: var(--text); padding: .7rem .85rem; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-sm); resize: vertical; }
.plan-edit textarea:focus { outline: none; border-color: var(--ink-2); box-shadow: 0 0 0 3px rgba(233, 164, 0, .3); }
.plan-edit-toggles { margin-top: 1rem; display: flex; gap: 1.2rem; flex-wrap: wrap; }
.tgl { display: inline-flex; align-items: center; gap: .55rem; font-size: .9rem; font-weight: 600; color: var(--text); cursor: pointer; }
.tgl input { position: absolute; opacity: 0; }
.tgl span { width: 40px; height: 22px; border-radius: 999px; background: var(--line); position: relative; transition: background .15s; }
.tgl span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.tgl input:checked + span { background: #12B862; }
.tgl input:checked + span::after { transform: translateX(18px); }
.tgl input:focus-visible + span { outline: 3px solid var(--marigold); outline-offset: 2px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .topnav a { padding: .45rem .5rem; font-size: .86rem; }
}
@media (max-width: 960px) {
    .ab-hero-inner { grid-template-columns: 1fr; text-align: center; }
    .ab-hero h1, .ab-hero-text > p { text-align: center; margin-left: auto; margin-right: auto; }
    .ab-actions { justify-content: center; }
    .ab-logo { order: -1; width: clamp(170px, 42vw, 240px); }
    .ab-steps { grid-template-columns: 1fr; }
    .mrow { grid-template-columns: 1fr auto; }
    .mrow-actions { grid-column: 1 / -1; justify-content: flex-start; }
    .prow { grid-template-columns: 1fr auto; }
}
@media (max-width: 760px) {
    .sitenav { display: none; }
    .sitebar-actions { margin-left: auto; }
    .site-foot-inner { grid-template-columns: 1fr; }
    .site-foot-links { justify-content: flex-start; }
    .adm-sum { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .sitebar-actions .sitebar-ghost { display: none; }
    .sitebar-cta { padding: .5rem .8rem; font-size: .84rem; }
    .plan { padding: 1.4rem 1.15rem 1.2rem; }
    .grant select { max-width: 150px; }
}

/* ---------- Fixes: subscribe notes in hero, mobile headers, about plans ---------- */
.sub-note { margin: 1.6rem auto 0; max-width: 40rem; display: flex; gap: .6rem; align-items: flex-start; text-align: left; padding: .8rem 1rem; font-size: .9rem; line-height: 1.5; color: #FFE2A3; background: rgba(243, 181, 44, .12); border: 1px solid rgba(243, 181, 44, .4); border-radius: 12px; }
.sub-note::before { content: "i"; flex: none; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; font: italic 800 .75rem Georgia, serif; color: #1F1600; background: var(--marigold); margin-top: .1rem; }
.sub-note a { color: #fff; font-weight: 700; }
.sub-note code { font-size: .85em; padding: .05rem .35rem; border-radius: 5px; background: rgba(255, 255, 255, .1); color: #fff; }
.sub-note--err { color: #FFC9CD; background: rgba(255, 90, 103, .14); border-color: rgba(255, 90, 103, .45); }
.sub-note--err::before { content: "!"; font-family: inherit; font-style: normal; background: #FF5A67; color: #fff; }
.sub-note[hidden] { display: none; }
.sub-plans { margin-top: clamp(-3.5rem, -6vw, -2.5rem); }
.ab-section .plans { text-align: left; }
.who .btn-ghost { white-space: nowrap; }
@media (max-width: 600px) {
    .who-name { display: none !important; }
}
@media (max-width: 480px) {
    .sitebar-actions .sitebar-out { display: inline-flex; padding: .4rem .65rem; font-size: .8rem; }
}

/* =====================================================================
   Auth pages: animated background behind the form (right side only)
   ===================================================================== */
.auth--brand .auth-main { position: relative; overflow: hidden; isolation: isolate; --fbg-line: rgba(18, 184, 98, .22); --fbg-line2: rgba(18, 184, 98, .12); --fbg-glow: rgba(43, 234, 132, .28); --fbg-red: rgba(255, 70, 85, .18); }
[data-theme="dark"] .auth--brand .auth-main { --fbg-line: rgba(61, 245, 154, .38); --fbg-line2: rgba(61, 245, 154, .16); --fbg-glow: rgba(43, 234, 132, .32); --fbg-red: rgba(255, 70, 85, .22); background: radial-gradient(90% 70% at 50% 40%, #0C1622 0%, #070B12 70%); }
.auth--brand .auth-card { position: relative; z-index: 2; }
.fbg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

/* glow orbs drifting */
.fbg-orb { position: absolute; width: 38vmax; height: 38vmax; border-radius: 50%; filter: blur(60px); }
.fbg-orb--bull { background: var(--fbg-glow); top: -14vmax; right: -10vmax; animation: fbg-drift 16s ease-in-out infinite alternate; }
.fbg-orb--bear { background: var(--fbg-red); bottom: 0; left: -16vmax; animation: fbg-drift 19s ease-in-out -8s infinite alternate-reverse; }
@keyframes fbg-drift { to { transform: translate(-6vmax, 5vmax) scale(1.12); } }

/* light rays rotating behind the card */
.fbg-rays { position: absolute; left: 50%; top: 44%; width: 140vmax; height: 140vmax; translate: -50% -50%; opacity: .5;
    background: repeating-conic-gradient(from 0deg, transparent 0deg 7deg, var(--fbg-line2) 7deg 9deg, transparent 9deg 18deg);
    -webkit-mask-image: radial-gradient(circle, #000 0%, rgba(0, 0, 0, .55) 18%, transparent 42%); mask-image: radial-gradient(circle, #000 0%, rgba(0, 0, 0, .55) 18%, transparent 42%);
    animation: fbg-spin 60s linear infinite; }
@keyframes fbg-spin { to { rotate: 360deg; } }

/* soft pulsing halo right behind the card */
.fbg-halo { position: absolute; left: 50%; top: 44%; width: min(620px, 90%); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
    background: radial-gradient(circle, var(--fbg-glow) 0%, transparent 62%); animation: fbg-pulse 5s ease-in-out infinite; }
@keyframes fbg-pulse { 50% { transform: scale(1.12); opacity: .7; } }

/* 3D grid floor moving towards you */
.fbg-floor { position: absolute; left: -60%; right: -60%; bottom: 0; height: 48%; perspective: 340px; perspective-origin: 50% 0%; }
.fbg-floor-grid { position: absolute; inset: 0; transform-origin: 50% 0%; transform: rotateX(72deg);
    background-image: linear-gradient(var(--fbg-line) 1.5px, transparent 1.5px), linear-gradient(90deg, var(--fbg-line) 1.5px, transparent 1.5px);
    background-size: 56px 56px; animation: fbg-floor 2.2s linear infinite;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 100%); mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 100%); }
@keyframes fbg-floor { to { background-position: 0 56px; } }
.fbg-horizon { position: absolute; left: 0; right: 0; bottom: 48%; height: 2px; background: linear-gradient(90deg, transparent, #2BEA84 30%, #F3B52C 50%, #FF5A67 70%, transparent); opacity: .55; filter: blur(.5px); box-shadow: 0 0 24px 4px var(--fbg-glow); animation: fbg-horizon 4s ease-in-out infinite; }
@keyframes fbg-horizon { 50% { opacity: .9; } }

/* rising candlesticks */
.fbg-candles span { position: absolute; bottom: -60px; left: var(--x); width: 6px; height: var(--h); border-radius: 2px; opacity: 0; scale: var(--s);
    animation: fbg-rise var(--d) linear var(--delay) infinite; }
.fbg-candles span::before { content: ""; position: absolute; left: 50%; top: -8px; bottom: -8px; width: 1.5px; translate: -50% 0; background: inherit; opacity: .7; }
.fbg-candles .up { background: #12B862; box-shadow: 0 0 10px rgba(18, 184, 98, .55); }
.fbg-candles .dn { background: #E5484D; box-shadow: 0 0 10px rgba(229, 72, 77, .5); }
@keyframes fbg-rise { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: .55; } 80% { opacity: .35; } 100% { transform: translateY(-115vh); opacity: 0; } }
[data-theme="dark"] .fbg-candles span { animation-name: fbg-rise-dark; }
@keyframes fbg-rise-dark { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: .75; } 80% { opacity: .5; } 100% { transform: translateY(-115vh); opacity: 0; } }

/* glass card so the motion shows faintly through the edges */
.auth--brand .auth-card--glass { background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
[data-theme="dark"] .auth--brand .auth-card--glass { background: color-mix(in srgb, var(--surface) 86%, transparent); border-color: rgba(255, 255, 255, .08); }

@media (max-width: 960px) {
    .fbg-floor { height: 38%; }
    .fbg-horizon { bottom: 38%; }
    .fbg-candles span:nth-child(n+11) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .fbg-orb, .fbg-rays, .fbg-halo, .fbg-floor-grid, .fbg-horizon { animation: none; }
    .fbg-candles { display: none; }
}

/* fbg floor fix: classic receding floor (near edge at bottom, horizon at top) */
.auth--brand .auth-main { --fbg-line: rgba(18, 184, 98, .32); }
[data-theme="dark"] .auth--brand .auth-main { --fbg-line: rgba(61, 245, 154, .45); }
.fbg-floor { left: -50%; right: -50%; height: 46%; perspective: none; }
.fbg-floor-grid { inset: -320% 0 0 0; transform-origin: 50% 100%; transform: perspective(640px) rotateX(68deg);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 45%); mask-image: linear-gradient(to bottom, transparent 0%, transparent 25%, #000 70%); }
.fbg-horizon { bottom: 46%; }
@media (max-width: 960px) { .fbg-floor { height: 36%; } .fbg-horizon { bottom: 36%; } }
.fbg-horizon { bottom: 31%; }
@media (max-width: 960px) { .fbg-horizon { bottom: 24%; } }

/* Light mode: form background animation thoda gehra (dark mode unchanged) */
:root:not([data-theme="dark"]) .auth--brand .auth-main { --fbg-line: rgba(14, 160, 86, .42); --fbg-line2: rgba(14, 160, 86, .18); --fbg-glow: rgba(30, 210, 115, .34); --fbg-red: rgba(240, 60, 75, .22); }
:root:not([data-theme="dark"]) .fbg-candles span { animation-name: fbg-rise-light; }
@keyframes fbg-rise-light { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: .7; } 80% { opacity: .45; } 100% { transform: translateY(-115vh); opacity: 0; } }
:root:not([data-theme="dark"]) .fbg-horizon { opacity: .7; }

/* Auth hero logo: halka 3D jhoolna + tairna (text padhne laayak rahe isliye poora spin nahi) */
.auth-hero .hero-logo { animation: logo-in .8s cubic-bezier(.2, .7, .2, 1) both, logo-sway 7s ease-in-out .8s infinite; will-change: transform; }
@keyframes logo-sway {
    0%, 100% { transform: perspective(900px) rotateY(-14deg) rotateX(3deg) translateY(0); }
    50%      { transform: perspective(900px) rotateY(14deg) rotateX(-3deg) translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) { .auth-hero .hero-logo { animation: none; } }

/* Auth hero logo: logo sthir, sirf rangeen ring ghoome (pichhla sway hataya) */
.auth-hero .hero-logo { animation: logo-in .8s cubic-bezier(.2, .7, .2, 1) both; will-change: auto; background: none; isolation: isolate; }
.auth-hero .hero-logo::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%;
    background: conic-gradient(from 0deg, #20E37A, #0B3B22 25%, #2B0A0E 50%, #FF3B4A 70%, #20E37A);
    animation: spin 6s linear infinite; }
@media (prefers-reduced-motion: reduce) { .auth-hero .hero-logo::before { animation: none; } }

/* Auth hero logo: poora logo dheere-dheere ghoome (30s ka ek chakkar) */
.auth-hero .hero-logo { animation: logo-in .8s cubic-bezier(.2, .7, .2, 1) both, logo-turn 30s linear .8s infinite; }
@keyframes logo-turn { to { rotate: 360deg; } }
@media (prefers-reduced-motion: reduce) { .auth-hero .hero-logo { animation: none; } }

/* =====================================================================
   Auth hero logo: 3D coin spin (video jaisa) + glow aura + floor shadow
   (pichhle ring-spin / turn animations ki jagah)
   ===================================================================== */
.logo-stage { position: relative; display: grid; place-items: center; perspective: 1100px; }
.auth-hero .hero-logo.coin { isolation: auto; background: conic-gradient(from 210deg, #20E37A, #0B3B22 25%, #2B0A0E 50%, #FF3B4A 70%, #20E37A);
    transform-style: preserve-3d; will-change: transform; animation: coin-spin 6s linear infinite; }
.auth-hero .hero-logo.coin::before { content: none; }
.auth-hero .hero-logo.coin::after { display: none; }
.coin-face { position: absolute; inset: 6px; width: calc(100% - 12px) !important; height: calc(100% - 12px) !important; border-radius: 50%; object-fit: cover;
    backface-visibility: hidden; -webkit-backface-visibility: hidden; transform: translateZ(1px); }
.coin-back { transform: rotateY(180deg) translateZ(1px); }
@keyframes coin-spin { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }

/* video jaisa peeche chamakta glow, saans leta hua */
.logo-aura { position: absolute; width: 150%; aspect-ratio: 1; border-radius: 50%; z-index: -1;
    background: radial-gradient(circle, rgba(43, 234, 132, .55) 0%, rgba(43, 234, 132, .18) 32%, rgba(255, 70, 85, .12) 50%, transparent 68%);
    filter: blur(8px); animation: aura-breathe 3s ease-in-out infinite; }
@keyframes aura-breathe { 50% { transform: scale(1.12); opacity: .75; } }

/* neeche zameen par parchhai, coin ke saath patli-chaudi */
.logo-shadow { position: absolute; bottom: -22px; width: 62%; height: 16px; border-radius: 50%; background: radial-gradient(ellipse, rgba(43, 234, 132, .45), transparent 70%); filter: blur(4px);
    animation: shadow-spin 3s ease-in-out infinite; }
@keyframes shadow-spin { 0%, 100% { transform: scaleX(1); opacity: .9; } 50% { transform: scaleX(.35); opacity: .5; } }

@media (prefers-reduced-motion: reduce) {
    .auth-hero .hero-logo.coin, .logo-aura, .logo-shadow { animation: none; }
}

/* Coin spin thoda dheema: 10s ka chakkar (parchhai aadhe samay me, taaki kinare par patli ho) */
.auth-hero .hero-logo.coin { animation-duration: 10s; }
.logo-shadow { animation-duration: 5s; }

/* ---------- Launch offer ---------- */
.offer-banner { position: relative; overflow: hidden; max-width: 1120px; margin: 0 auto 2.2rem; display: flex; align-items: center; gap: 1rem 1.4rem; flex-wrap: wrap; text-align: left;
    padding: 1rem 1.25rem; border-radius: 18px; color: #EAF7F0; background: linear-gradient(120deg, #06231A 0%, #0B3A26 45%, #3A0F16 100%);
    border: 1px solid rgba(43, 234, 132, .35); box-shadow: 0 20px 44px -26px rgba(18, 184, 98, .7); }
.offer-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .14) 45%, transparent 60%); transform: translateX(-100%); animation: offer-shine 4.5s ease-in-out infinite; pointer-events: none; }
@keyframes offer-shine { 60%, 100% { transform: translateX(100%); } }
.offer-banner-icon { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, #2BEA84, #F3B52C); color: #04110A; box-shadow: 0 8px 20px -8px rgba(43, 234, 132, .8); }
.offer-banner-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.offer-banner-text { flex: 1 1 260px; }
.offer-banner-title { font-family: var(--f-head); font-weight: 700; font-size: 1.05rem; color: #fff; }
.offer-banner-sub { font-size: .86rem; color: #B9D9C8; margin-top: .15rem; }
.offer-meter { flex: 0 1 260px; min-width: 200px; }
.offer-meter p { font-size: .82rem; color: #B9D9C8; margin-bottom: .35rem; }
.offer-meter b { font-family: var(--f-head); font-size: 1.05rem; color: #F7C85A; }
.offer-meter-bar { display: block; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.offer-meter-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2BEA84, #F3B52C, #FF5A67); }

.offer-tag { align-self: flex-start; display: inline-flex; align-items: center; gap: .3rem; margin-top: -.25rem; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
    color: #7A4F00; background: linear-gradient(135deg, #FFE7A3, #FFD25A); padding: .25rem .6rem; border-radius: 999px; box-shadow: 0 6px 14px -8px rgba(243, 181, 44, .9); }
.offer-tag svg { width: 13px; height: 13px; fill: currentColor; }
.plan--offer .plan-amount { background: linear-gradient(90deg, #0E9F58, #12B862); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="dark"] .plan--offer .plan-amount { background: linear-gradient(90deg, #3DF59A, #9BF5C8); -webkit-background-clip: text; background-clip: text; }
.plan--offer .plan-sub s { font-weight: 600; }
.feat-offer { font-weight: 700; color: #0E7F48 !important; }
[data-theme="dark"] .feat-offer { color: #6FE8A9 !important; }

.sub-plans .offer-banner { margin-bottom: 1.6rem; }
@media (max-width: 600px) {
    .offer-banner { padding: .95rem 1rem; }
    .offer-meter { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .offer-banner::after { animation: none; } }
.adm-offer { margin-top: 1.5rem; }
.adm-offer .offer-banner { margin: 0 0 .6rem; max-width: none; }
.offer-field input { border-color: rgba(243, 181, 44, .55) !important; background: rgba(243, 181, 44, .06) !important; }

/* Launch offer: 1000 ke baad ka price */
.plan-after { display: flex; align-items: center; gap: .45rem; margin-top: -.2rem; padding: .45rem .65rem; font-size: .8rem; font-weight: 600; color: #8A4B00;
    background: rgba(243, 181, 44, .12); border: 1px dashed rgba(243, 181, 44, .6); border-radius: 10px; }
.plan-after svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.plan-after b { color: var(--ink); }
[data-theme="dark"] .plan-after { color: #F7C85A; }
.offer-banner-after { margin-top: .4rem; font-size: .8rem; color: #F7DDA0; }
.offer-banner-after b { color: #fff; }

/* "HA Quant": light -> dark gradient, roshni dheere-dheere chalti hai */
.auth-hero .hero-brand {
    background: linear-gradient(90deg, #F4FFF9 0%, #B6F7D2 22%, #3DF59A 45%, #12B862 65%, #0A6B3B 85%, #F4FFF9 100%);
    background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 2px 14px rgba(43, 234, 132, .35));
    animation: brand-sweep 6s linear infinite;
}
@keyframes brand-sweep { from { background-position: 0% 50%; } to { background-position: -200% 50%; } }

/* "Intelligent Trading Terminal": left se right apni jagah par aaye */
.auth-hero .hero-tag { animation: tag-slide 1s cubic-bezier(.2, .8, .2, 1) .35s both; }
.auth-hero .hero-tag span { transform-origin: right center; animation: tag-line 0.8s ease-out 1.1s both; }
.auth-hero .hero-tag span:last-child { transform-origin: left center; }
@keyframes tag-slide { from { opacity: 0; transform: translateX(-120px); } to { opacity: 1; transform: translateX(0); } }
@keyframes tag-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
    .auth-hero .hero-brand, .auth-hero .hero-tag, .auth-hero .hero-tag span { animation: none; }
}

/* Coin spin aur dheema: 16s ka chakkar (parchhai aadhe samay me) */
.auth-hero .hero-logo.coin { animation-duration: 16s; }
.logo-shadow { animation-duration: 8s; }

/* =====================================================================
   App header: no wrapping, graceful shrink, ☰ menu under 1100px
   ===================================================================== */
.topbar { position: sticky; }
.topbar-inner { flex-wrap: nowrap; }
.topnav { flex: 1 1 auto; min-width: 0; align-items: center; }
.topnav a { white-space: nowrap; }
.who { flex: none; }
.nav-toggle, .nav-user { display: none; }
.nav-toggle { width: 40px; height: 40px; flex: none; place-items: center; padding: 0; color: #fff; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px; cursor: pointer; }
.nav-toggle:hover { background: rgba(255, 255, 255, .12); }
.nav-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.nav-toggle .nt-close { display: none; }
.topbar.is-open .nav-toggle .nt-open { display: none; }
.topbar.is-open .nav-toggle .nt-close { display: block; }

@media (max-width: 1440px) { .clock-date { display: none; } }
@media (max-width: 1280px) { .who-name { display: none !important; } .theme-label { display: none; } .theme-toggle { padding: .45rem .55rem; } }

@media (max-width: 1100px) {
    .nav-toggle { display: inline-grid; order: -1; }
    .topbar-inner { gap: .6rem; }
    .clock { margin-left: auto; }
    .topnav { position: absolute; top: 100%; left: 0; right: 0; z-index: 30; display: none !important; flex-direction: column; align-items: stretch; gap: .15rem;
        padding: .6rem var(--gutter, 1rem) 1rem; background: var(--ink); border-top: 1px solid rgba(255, 255, 255, .08);
        box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .6); }
    [data-theme="dark"] .topnav { background: var(--chrome); }
    .topbar.is-open .topnav { display: flex !important; animation: menu-in .18s ease-out; }
    .topnav a { padding: .75rem .9rem; font-size: 1rem; border-radius: 10px; }
    .topnav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
    .nav-user { display: flex; align-items: center; gap: .7rem; padding: .4rem .3rem .8rem; margin-bottom: .3rem; border-bottom: 1px solid rgba(255, 255, 255, .08); color: #DCE4F0; }
    .nav-user b { display: block; color: #fff; font-size: .98rem; }
    .nav-user small { font-size: .78rem; color: #8FA0BA; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } }
@media (max-width: 480px) {
    .nav-toggle { width: 36px; height: 36px; }
    .clock .mkt { display: none; }
}

/* Clock: date har screen par (chhota format, time ke neeche) */
.clock .clock-date { display: block !important; }
@media (max-width: 480px) {
    .clock-body { padding-right: .2rem; }
    .clock-time { font-size: .82rem; }
    .clock .clock-date { font-size: .64rem; }
}

/* Filter bar ka "Custom dates" popup cards ke upar dikhe (static filterbar par z-index kaam nahi karta tha) */
.filterbar { position: relative; z-index: 25; }
.period-custom { position: relative; z-index: 26; }
.filterbar .period-pop { z-index: 40; }
@media (max-width: 600px) {
    .filterbar .period-pop { position: absolute; top: calc(100% + .45rem); bottom: auto; left: 0; right: 0; width: auto; }
}

/* Jo target lag gaya uska tile */
.tps li.is-hit { background: linear-gradient(135deg, rgba(18, 184, 98, .22), rgba(18, 184, 98, .1)); border-color: rgba(18, 184, 98, .55); }
.tp-hit { display: inline-block; margin-left: .2rem; font-size: .62rem; font-weight: 800; letter-spacing: .03em; color: #fff; background: #12B862; padding: .05rem .35rem; border-radius: 999px; vertical-align: 1px; }
.slip.is-closed .tps li.is-hit { background: rgba(18, 184, 98, .14); border-color: rgba(18, 184, 98, .4); }
.slip.is-closed .tps li.is-hit .tp-price { color: var(--buy); }
.status--open { white-space: nowrap; }

/* Filter bar apni jagah par rahe (relative + purana sticky "top" use neeche khiska raha tha) */
.filterbar { top: auto; }

/* Header hamesha sabse upar: scroll par filter bar / cards / popup header ke upar na chadhen */
.topbar { z-index: 100; }
.sitebar { z-index: 100; }

/* ---------- Signal filter (note column) ---------- */
.fb-row--signal { padding-top: .6rem; border-top: 1px solid var(--line); justify-content: flex-start; }
.fb-row--signal[hidden] { display: none; }
.fb-group--signal { flex: 1 1 auto; }
.filterbar .sig-seg { flex-wrap: nowrap; }
.sig-opt .sig-name { max-width: 18rem; overflow: hidden; text-overflow: ellipsis; }
.sig-dot { width: .5rem; height: .5rem; border-radius: 50%; flex: none; background: var(--marigold); box-shadow: 0 0 0 3px rgba(232, 168, 34, .18); }
.sig-dot--up { background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, .18); }
.sig-dot--down { background: #dc2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, .18); }
.fb-opt.is-on .sig-dot { box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); }
@media (max-width: 720px) {
    .fb-row--signal { padding-top: .55rem; }
    .filterbar .sig-seg { flex-wrap: wrap !important; overflow: visible !important; }
    .filterbar .sig-seg .fb-opt { flex: 1 1 auto !important; justify-content: center; }
    .sig-opt .sig-name { max-width: 14rem; }
}

/* ---------- Timeframe filter (Signal ki line me, right side) ---------- */
.fb-row--signal { justify-content: space-between; }
.fb-group--signal { flex: 0 1 auto; }
.fb-group--signal:empty, .fb-group--tf:empty { display: none; }
.filterbar .tf-seg { flex-wrap: nowrap; }
.tf-ico { width: .85rem; height: .85rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; opacity: .7; }
.fb-opt.is-on .tf-ico { opacity: 1; }
@media (max-width: 720px) {
    .fb-group--tf { width: 100%; }
    .filterbar .tf-seg { flex-wrap: wrap !important; overflow: visible !important; }
    .filterbar .tf-seg .fb-opt { flex: 1 1 auto !important; justify-content: center; }
}

/* ---------- Post a call: ledger timeframe filter ---------- */
.ledger-tf { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: -.25rem 0 1rem; }
.seg--tf button { display: inline-flex; align-items: center; gap: .3rem; }
.row-tf { display: inline-flex; align-items: center; font-weight: 700; color: var(--ink-2); }
@media (max-width: 720px) {
    .ledger-tf .fb-label { display: inline; }
    .ledger-tf .seg { width: 100%; flex-wrap: wrap; }
    .ledger-tf .seg button { flex: 1 1 auto; justify-content: center; }
}
