/* Tidewell — website + trading app. Everything is scoped to .tw so the admin panel can share a page in the demo. */
.tw {
  --primary: #e8b04b;
  --up: #22c58b;
  --down: #f0555a;
  --bg: #0e1216;
  --surface: #161c22;
  --text: #e6edf2;
  --surface-2: color-mix(in srgb, var(--text) 5%, var(--surface));
  --line: color-mix(in srgb, var(--text) 11%, var(--surface));
  --muted: color-mix(in srgb, var(--text) 60%, var(--bg));
  --on-primary: #16120a;
  --chart-bg: var(--bg);
  --chart-grid: color-mix(in srgb, var(--text) 6%, transparent);
  --r: 10px;
  --f-display: "Bricolage Grotesque", "IBM Plex Sans", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;  /* numbers use the normal font with even-width digits */
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--f-body);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
.tw *, .tw *::before, .tw *::after { box-sizing: border-box; }
.tw a { color: var(--primary); text-decoration: none; }
.tw a:hover { text-decoration: underline; }
.tw h1, .tw h2, .tw h3 { font-family: var(--f-display); letter-spacing: -0.01em; line-height: 1.12; margin: 0; text-wrap: balance; }
.tw p { margin: 0; }
.tw .mono, .tw .num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.tw .muted { color: var(--muted); }
.tw .up { color: var(--up); }
.tw .down { color: var(--down); }
.tw :focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.tw [hidden] { display: none !important; }

/* ---------- buttons & forms ---------- */
.tw .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text); font: 600 14px var(--f-body); cursor: pointer;
  white-space: nowrap; transition: background .15s, border-color .15s, transform .05s;
}
.tw .btn:hover { border-color: color-mix(in srgb, var(--text) 25%, var(--surface)); text-decoration: none; }
.tw .btn:active { transform: translateY(1px); }
.tw .btn.primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.tw .btn.primary:hover { background: color-mix(in srgb, var(--primary) 88%, white); }
.tw .btn.ghost { background: transparent; }
.tw .btn.danger { background: var(--down); border-color: var(--down); color: #fff; }
.tw .btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.tw .btn.lg { height: 48px; padding: 0 22px; font-size: 15px; }
.tw .btn.block { width: 100%; }
.tw .btn:disabled { opacity: .55; cursor: not-allowed; }
.tw .btn.is-busy { position: relative; color: transparent !important; }
.tw .btn.is-busy::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-color: var(--text) transparent var(--text) transparent; animation: tw-spin .7s linear infinite; }
.tw .btn.primary.is-busy::after { border-color: var(--on-primary) transparent var(--on-primary) transparent; }
@keyframes tw-spin { to { transform: rotate(360deg); } }
.tw .icon-btn { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 16px; padding: 6px; border-radius: 6px; }
.tw .icon-btn:hover { color: var(--text); background: var(--surface-2); }

.tw label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 500; }
.tw input, .tw select, .tw textarea {
  width: 100%; height: 42px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: 15px var(--f-body);
}
.tw textarea { height: auto; min-height: 90px; padding: 10px 12px; resize: vertical; }
.tw input[type="file"] { height: auto; padding: 8px; }
.tw input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); }
.tw input:focus, .tw select:focus, .tw textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent); }
.tw .check { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-weight: 400; }
.tw .check input { flex: none; margin-top: 2px; }
.tw .stack { display: grid; gap: 14px; }
.tw .row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.tw .grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.tw .err { color: var(--down); font-size: 14px; }

.tw .chip { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 99px; font: 600 11px/1 var(--f-body); letter-spacing: .03em; text-transform: uppercase; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.tw .chip.ok, .tw .chip.won, .tw .chip.approved, .tw .chip.paid, .tw .chip.verified { color: var(--up); border-color: color-mix(in srgb, var(--up) 35%, transparent); background: color-mix(in srgb, var(--up) 10%, transparent); }
.tw .chip.bad, .tw .chip.lost, .tw .chip.rejected, .tw .chip.blocked { color: var(--down); border-color: color-mix(in srgb, var(--down) 35%, transparent); background: color-mix(in srgb, var(--down) 10%, transparent); }
.tw .chip.pending, .tw .chip.open { color: var(--primary); border-color: color-mix(in srgb, var(--primary) 40%, transparent); background: color-mix(in srgb, var(--primary) 10%, transparent); }

/* ---------- toasts & modals ---------- */
.tw .tw-toasts { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 8px; z-index: 100; max-width: min(380px, calc(100vw - 32px)); }
.tw .toast { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--primary); padding: 12px 14px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.35); font-size: 14px; animation: tw-in .2s ease-out; }
.tw .toast-ok { border-left-color: var(--up); }
.tw .toast-error { border-left-color: var(--down); }
.tw .toast.out { opacity: 0; transform: translateY(6px); transition: .3s; }
@keyframes tw-in { from { opacity: 0; transform: translateY(8px); } }
.tw .modal-back { position: fixed; inset: 0; background: rgba(4,6,8,.66); display: grid; place-items: center; padding: 16px; z-index: 90; backdrop-filter: blur(3px); }
.tw .modal { width: min(460px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.tw .modal.wide { width: min(720px, 100%); }
.tw .modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px 0; }
.tw .modal-head h3 { font-size: 18px; }
.tw .modal-body { padding: 16px 18px 18px; display: grid; gap: 14px; }
.tw .modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* =========================================================
   Website (landing)
   ========================================================= */
.tw .site-wrap { width: min(1180px, 100%); margin: 0 auto; padding-inline: 20px; }
.tw .announce.geo-block { background: color-mix(in srgb, var(--down) 16%, var(--bg)); border-bottom-color: color-mix(in srgb, var(--down) 35%, transparent); }
.tw .announce { background: color-mix(in srgb, var(--primary) 14%, var(--bg)); color: var(--text); text-align: center; font-size: 13px; padding: 8px 16px; border-bottom: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); }
.tw .site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.tw .site-head .site-wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.tw .logo { display: inline-flex; align-items: center; gap: 10px; font: 700 19px var(--f-display); color: var(--text); letter-spacing: -0.02em; }
.tw .logo:hover { text-decoration: none; }
.tw .logo-mark { width: 28px; height: 28px; border-radius: 7px; background: var(--primary); display: grid; place-items: center; }
.tw .logo-mark svg { width: 18px; height: 18px; }
.tw .logo img { height: 30px; width: auto; }
.tw .site-nav { display: flex; gap: 22px; font-size: 14px; }
.tw .site-nav a { color: var(--muted); }
.tw .site-nav a:hover { color: var(--text); text-decoration: none; }
.tw .site-head .actions { margin-left: auto; display: flex; gap: 10px; }

.tw .hero { padding-block: 64px 40px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.tw .eyebrow { font: 600 12px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--primary); }
.tw .hero h1 { font-size: clamp(36px, 5.4vw, 64px); font-weight: 700; margin-top: 14px; }
.tw .hero p.lead { color: var(--muted); font-size: 18px; max-width: 34em; margin-top: 18px; }
.tw .hero .cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.tw .hero .fine { margin-top: 14px; font-size: 12.5px; color: var(--muted); max-width: 44em; }
.tw .hero-terminal { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 40px 90px -30px rgba(0,0,0,.6); }
.tw .hero-terminal .bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.tw .hero-terminal .bar strong { font: 600 15px var(--f-mono); }
.tw .hero-terminal .chart-box { height: 260px; position: relative; }
.tw .hero-terminal .buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 16px 16px; }
.tw .hero-terminal .buttons span { height: 44px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; color: #07100c; }

.tw .ticker { border-block: 1px solid var(--line); overflow: hidden; background: var(--surface); }
.tw .ticker-track { display: flex; gap: 36px; padding: 12px 20px; white-space: nowrap; animation: tw-marquee 50s linear infinite; width: max-content; }
.tw .ticker-item { font: 13px var(--f-mono); display: inline-flex; gap: 10px; }
.tw .ticker-item b { font-weight: 600; color: var(--text); }
@keyframes tw-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tw .ticker-track { animation: none; } }

.tw .section { padding-block: 72px; }
.tw .section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.tw .section-head h2 { font-size: clamp(28px, 3.4vw, 40px); max-width: 16em; }
.tw .features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.tw .feature { background: var(--bg); padding: 26px 24px 28px; display: grid; gap: 10px; align-content: start; }
.tw .feature h3 { font-size: 19px; }
.tw .feature p { color: var(--muted); font-size: 14.5px; }
.tw .feature .k { font: 600 12px var(--f-mono); color: var(--primary); }

.tw .steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; counter-reset: step; }
.tw .step { border-top: 2px solid var(--line); padding-top: 18px; display: grid; gap: 8px; }
.tw .step::before { counter-increment: step; content: "Step " counter(step); font: 600 12px var(--f-mono); color: var(--primary); letter-spacing: .06em; text-transform: uppercase; }
.tw .step h3 { font-size: 20px; }
.tw .step p { color: var(--muted); font-size: 14.5px; }

.tw .stats-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; padding: 28px 0; border-block: 1px solid var(--line); }
.tw .stat b { display: block; font: 700 34px var(--f-display); }
.tw .stat span { color: var(--muted); font-size: 13px; }

.tw .lb-preview { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.tw table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.tw table.t th { text-align: left; font: 600 11px var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.tw table.t td { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.tw table.t tr:last-child td { border-bottom: 0; }
.tw table.t .r { text-align: right; }
.tw .table-scroll { overflow-x: auto; }

.tw .faq { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 820px; }
.tw .faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.tw .faq summary { cursor: pointer; font: 600 17px var(--f-display); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.tw .faq summary::after { content: "+"; color: var(--primary); font-family: var(--f-mono); }
.tw .faq details[open] summary::after { content: "−"; }
.tw .faq p { color: var(--muted); margin-top: 10px; max-width: 62ch; }

.tw .cta-band { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 44px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.tw .cta-band h2 { font-size: clamp(26px, 3vw, 36px); max-width: 18em; }

.tw .site-foot { border-top: 1px solid var(--line); padding-block: 40px; margin-top: 40px; font-size: 13px; color: var(--muted); }
.tw .site-foot .cols { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.tw .risk { border: 1px solid color-mix(in srgb, var(--down) 30%, var(--line)); background: color-mix(in srgb, var(--down) 6%, transparent); padding: 14px 16px; border-radius: 10px; color: var(--text); font-size: 13px; margin-top: 24px; }
.tw .risk b { color: var(--down); }

/* language switcher */
.tw .lang-pick { display: inline-flex; gap: 2px; padding: 3px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); }
.tw .lang-pick a { padding: 5px 10px; border-radius: 7px; font-size: 12.5px; font-weight: 600; color: var(--muted); text-decoration: none; }
.tw .lang-pick a[aria-current] { background: color-mix(in srgb, var(--primary) 16%, transparent); color: var(--primary); }
.tw .lang-pick a:hover { color: var(--text); }

/* content pages (policies, About, Contact) and Learn articles */
.tw .doc-page { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 40px; align-items: start; padding-block: 28px 20px; }
.tw .crumbs { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.tw .crumbs a { color: var(--muted); }
.tw .crumbs a:hover { color: var(--primary); }
.tw .doc { max-width: 76ch; }
.tw .doc h1 { font-size: clamp(26px, 4vw, 38px); line-height: 1.15; }
.tw .doc-meta { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.tw .doc-lead { margin-top: 16px; font-size: 16px; line-height: 1.7; color: var(--text); }
.tw .doc-cover { width: 100%; margin-top: 18px; border-radius: 14px; border: 1px solid var(--line); }
.tw .doc-body { margin-top: 20px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.tw .doc-body h2 { margin-top: 28px; font-size: 20px; color: var(--text); }
.tw .doc-body h3 { margin-top: 22px; font-size: 16.5px; color: var(--text); }
.tw .doc-body h4 { margin-top: 18px; font-size: 15px; color: var(--text); }
.tw .doc-body p { margin-top: 12px; }
.tw .doc-body b { color: var(--text); }
.tw .doc-body ul, .tw .doc-body ol { margin: 12px 0 0 20px; display: flex; flex-direction: column; gap: 7px; }
.tw .doc-body li { padding-left: 2px; }
.tw .doc-body a { color: var(--primary); }
.tw .doc-body code { font-family: var(--f-mono); font-size: 13px; background: var(--surface); padding: 1px 5px; border-radius: 5px; }
.tw .doc-body hr { margin: 24px 0; border: 0; border-top: 1px solid var(--line); }
.tw .doc-body blockquote { margin: 16px 0; padding: 12px 14px; border-left: 3px solid var(--primary); border-radius: 0 10px 10px 0; background: color-mix(in srgb, var(--primary) 7%, transparent); color: var(--text); font-size: 14px; }
.tw .doc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tw .doc-tags a { font-size: 12.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; }
.tw .doc-tags a:hover { color: var(--primary); border-color: var(--primary); }
.tw .doc-side { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.tw .doc-links { display: flex; flex-direction: column; gap: 9px; }
.tw .doc-links a { font-size: 13px; color: var(--muted); }
.tw .doc-links a:hover { color: var(--text); }
.tw .doc-links a[aria-current] { color: var(--primary); font-weight: 600; }
.tw .empty-page { text-align: center; padding: 60px 0; }
.tw .empty-page .btn { margin-top: 18px; }

/* blog — magazine layout */
.tw .blog-page { display: flex; flex-direction: column; gap: 20px; padding-block: 28px 32px; }
.tw .blog-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.tw .blog-head { max-width: 58ch; }
.tw .blog-head h1 { font-size: clamp(30px, 4vw, 42px); }
.tw .blog-head p { margin-top: 8px; font-size: 15px; }
.tw .tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tw .tag-row a { font-size: 12.5px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; }
.tw .tag-row a:hover { color: var(--text); border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); }
.tw .tag-row a[aria-current] { color: var(--on-primary, #16120a); background: var(--primary); border-color: var(--primary); }

.tw .blog-hero { position: relative; display: block; min-height: 340px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--surface) center/cover no-repeat; }
.tw .blog-hero.noimg { background: linear-gradient(140deg, color-mix(in srgb, var(--primary) 22%, var(--surface)), var(--surface)); }
.tw .bh-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,8,11,.15) 30%, rgba(5,8,11,.9)); }
.tw .bh-body { position: absolute; left: 24px; right: 24px; bottom: 22px; display: flex; flex-direction: column; gap: 10px; }
.tw .bh-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.tw .bh-chip { height: 24px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: 6px; background: rgba(6,9,12,.7); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.tw .bh-chip.gold { background: var(--primary); color: var(--on-primary, #16120a); }
.tw .blog-hero b { font-family: var(--f-display); font-size: clamp(22px, 2.6vw, 32px); line-height: 1.2; color: #fff; max-width: 24ch; }
.tw .bh-ex { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.8); max-width: 62ch; }
.tw .bh-meta { font-size: 12px; color: rgba(255,255,255,.65); }
.tw .bh-play { position: absolute; left: 50%; top: 45%; transform: translate(-50%,-50%); width: 68px; height: 68px; border-radius: 50%; background: #ff3d33; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px rgba(0,0,0,.45); transition: transform .15s; }
.tw .bh-play svg { width: 34px; height: 34px; }
.tw .blog-hero:hover .bh-play { transform: translate(-50%,-50%) scale(1.06); }
.tw .blog-rule { height: 1px; background: linear-gradient(90deg, color-mix(in srgb, var(--primary) 50%, transparent), transparent); }

.tw .blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.tw .blog-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; transition: border-color .15s, transform .15s; }
.tw .blog-card:hover { border-color: color-mix(in srgb, var(--primary) 50%, var(--line)); transform: translateY(-2px); }
.tw .bc-img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg); }
.tw .bc-img img { width: 100%; height: 100%; object-fit: cover; }
.tw .bc-noimg { background: linear-gradient(140deg, color-mix(in srgb, var(--primary) 16%, var(--surface)), var(--surface)); }
.tw .bc-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 46px; height: 46px; border-radius: 50%; background: #ff3d33; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.4); }
.tw .bc-play svg { width: 24px; height: 24px; }
.tw .bc-line { height: 2px; background: linear-gradient(90deg, var(--primary), transparent); }
.tw .bc-body { display: flex; flex-direction: column; gap: 8px; padding: 14px; }
.tw .bc-cat { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); }
.tw .blog-card b { font-family: var(--f-display); font-size: 16px; line-height: 1.3; color: var(--text); }
.tw .bc-ex { font-size: 13px; line-height: 1.6; color: var(--muted); }
.tw .bc-meta { font-size: 11.5px; color: var(--muted); }
.tw .bc-watch { color: var(--primary); font-weight: 700; }

/* the video player: a picture with a play button until it is pressed */
.tw .vplayer { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #05080b center/cover no-repeat; border: 1px solid var(--line); }
.tw .vplayer.hero { margin-top: 18px; }
.tw .vplayer iframe, .tw .vplayer video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.tw .vfacade { cursor: pointer; }
.tw .vfacade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,8,11,.1), rgba(5,8,11,.45)); }
.tw .vplay { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); z-index: 2; width: 74px; height: 74px; border: 0; border-radius: 50%; background: #ff3d33; color: #fff; display: grid; place-items: center; box-shadow: 0 14px 34px rgba(0,0,0,.5); transition: transform .15s; }
.tw .vplay svg { width: 36px; height: 36px; }
.tw .vfacade:hover .vplay { transform: translate(-50%,-50%) scale(1.07); }
.tw .vtag { position: absolute; top: 10px; right: 10px; z-index: 2; height: 22px; padding: 0 9px; display: inline-flex; align-items: center; border-radius: 6px; background: rgba(6,9,12,.75); color: #fff; font-size: 10.5px; font-weight: 700; }
.tw .vhint { margin-top: 8px; font-size: 12px; color: var(--muted); }

.tw .doc-tags.top { margin-bottom: 10px; margin-top: 0; }
.tw .doc-fig { margin: 20px 0 0; display: flex; flex-direction: column; gap: 7px; }
.tw .doc-fig img { width: 100%; border-radius: 14px; border: 1px solid var(--line); }
.tw .doc-fig figcaption { font-size: 12px; color: var(--muted); }

@media (max-width: 860px) {
  .tw .doc-page { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .tw .doc-side { position: static; order: 2; }
  .tw .blog-hero { min-height: 260px; }
  .tw .bh-body { left: 16px; right: 16px; bottom: 16px; }
  .tw .blog-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
  .tw .vplay { width: 60px; height: 60px; }
  .tw .vplay svg { width: 28px; height: 28px; }
}

/* premium landing footer (Admin → Footer) */
.tw .foot-premium { border-top: 1px solid color-mix(in srgb, var(--primary) 35%, transparent); background: linear-gradient(180deg, var(--surface) 0%, color-mix(in srgb, var(--bg) 82%, var(--surface)) 100%); margin-top: 56px; padding-block: 34px 24px; }
.tw .foot-in { display: flex; flex-direction: column; gap: 22px; }
.tw .foot-top { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.tw .foot-brand { display: flex; flex-direction: column; gap: 10px; }
.tw .foot-top .logo { flex-shrink: 0; }
.tw .foot-tag { max-width: 42ch; color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0; }
.tw .foot-social { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.tw .foot-social .soc { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--text); transition: border-color .15s, color .15s, transform .15s; }
.tw .foot-social .soc svg { width: 18px; height: 18px; }
.tw .foot-social .soc:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.tw .foot-rule { height: 1px; background: linear-gradient(90deg, color-mix(in srgb, var(--primary) 45%, transparent), transparent); }
.tw .foot-h { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tw .foot-docs-wrap { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tw .foot-docs { display: flex; flex-wrap: wrap; gap: 8px; }
.tw .foot-docs .doc-pill { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 9px; font-size: 12.5px; font-weight: 600; color: var(--text); border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent); background: color-mix(in srgb, var(--primary) 8%, transparent); transition: background .15s, border-color .15s; }
.tw .foot-docs .doc-pill svg { width: 15px; height: 15px; color: var(--primary); flex-shrink: 0; }
.tw .foot-docs a.doc-pill:hover { background: color-mix(in srgb, var(--primary) 16%, transparent); border-color: var(--primary); }
.tw .foot-docs .doc-pill.off { opacity: .55; }
.tw .foot-mid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px 36px; align-items: start; }
.tw .foot-col { display: flex; flex-direction: column; gap: 12px; }
.tw .foot-links { display: flex; flex-direction: column; gap: 9px; }
.tw .foot-a { font-size: 13.5px; font-weight: 500; color: var(--text); }
.tw .foot-a:hover { color: var(--primary); }
.tw .foot-a.off { color: var(--muted); }
.tw .foot-risk { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 14px; font-size: 12.5px; line-height: 1.65; color: var(--muted); border: 1px solid color-mix(in srgb, var(--down) 28%, transparent); background: color-mix(in srgb, var(--down) 6%, transparent); }
.tw .foot-risk-h { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--down); }
.tw .foot-risk-h svg { width: 16px; height: 16px; }
.tw .foot-legal { margin: 0; font-size: 12px; line-height: 1.65; color: var(--muted); }
.tw .foot-bottom { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.tw .foot-bottom .spacer { flex-grow: 1; }
.tw .foot-age { height: 24px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: 12px; border: 1px solid var(--line); font-weight: 700; font-size: 11px; }
@media (max-width: 720px) {
  .tw .foot-premium { padding-block: 26px 20px; }
  .tw .foot-top { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
  .tw .foot-tag { flex: 0 0 auto; font-size: 12.5px; }
  .tw .foot-social { justify-content: center; margin-left: 0; }
  .tw .foot-mid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .tw .foot-docs-wrap { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .tw .hero { grid-template-columns: 1fr; padding-block: 40px 28px; }
  .tw .site-nav { display: none; }
  .tw .section { padding-block: 52px; }
  .tw .cta-band { padding: 28px; }
}
@media (max-width: 480px) {
  .tw .site-head .actions .btn.ghost { display: none; }
  .tw .site-wrap { padding-inline: 16px; }
}

/* ---------- auth ---------- */
.tw.auth-body { min-height: 100vh; }
.tw .auth-layout { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.tw .auth-side { background: var(--surface); border-right: 1px solid var(--line); padding: 40px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.tw .auth-side h2 { font-size: clamp(28px, 3vw, 40px); max-width: 12em; }
.tw .auth-side ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; color: var(--muted); }
.tw .auth-side li::before { content: "—  "; color: var(--primary); }
.tw .auth-main { display: grid; place-items: center; padding: 40px 20px; }
.tw .auth-card { width: min(400px, 100%); display: grid; gap: 22px; }
.tw .auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 4px; }
.tw .auth-tabs button { height: 38px; border: 0; background: none; color: var(--muted); font: 600 14px var(--f-body); border-radius: 7px; cursor: pointer; }
.tw .auth-tabs button[aria-selected="true"] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 820px) { .tw .auth-layout { grid-template-columns: 1fr; } .tw .auth-side { display: none; } }

/* =========================================================
   Trading app
   ========================================================= */
.tw.app-body, .tw .app { height: 100%; }
.tw .app { position: relative; display: grid; grid-template-columns: 76px 1fr; grid-template-rows: 58px 1fr; height: 100vh; height: 100dvh; overflow: hidden; }
.tw .app-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--surface); min-width: 0; }
.tw .app-top .logo { font-size: 17px; }
.tw .app-top .spacer { flex: 1; }
.tw .acct-switch { --acc: var(--primary); display: flex; align-items: center; gap: 7px; height: 40px; box-sizing: border-box; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 0 8px 0 10px; cursor: pointer; color: var(--text); font: inherit; }
.tw .acct-switch.real { --acc: var(--up); }
.tw .acct-switch[aria-expanded="true"] { border-color: var(--acc); }
.tw .acct-switch .ic { width: 18px; height: 18px; color: var(--acc); flex-shrink: 0; }
.tw .acct-switch .tag { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--acc); }
.tw .acct-switch .bal { font: 600 15px var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tw .acct-switch .caret { width: 15px; height: 15px; color: var(--muted); flex-shrink: 0; }
.tw .acct-menu { position: absolute; top: 60px; right: 120px; width: 330px; max-width: calc(100vw - 20px); box-sizing: border-box; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.5); padding: 6px; z-index: 30; display: flex; flex-direction: column; gap: 2px; }
.tw .acct-row { --acc: var(--primary); display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 10px; }
.tw .acct-row.real { --acc: var(--up); }
.tw .acct-row.on { background: var(--surface-2); }
.tw .acct-row .pick { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 8px; background: none; border: 0; color: var(--text); border-radius: 8px; cursor: pointer; font: inherit; text-align: left; }
.tw .acct-row .pick:hover { background: var(--surface-2); }
.tw .acct-row .badge { width: 36px; height: 36px; flex-shrink: 0; border-radius: 9px; background: var(--acc); color: #0b0f12; display: flex; align-items: center; justify-content: center; }
.tw .acct-row .badge svg { width: 20px; height: 20px; }
.tw .acct-row .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.tw .acct-row .txt b { font-size: 14px; }
.tw .acct-row .txt small { color: var(--muted); font-size: 12px; }
.tw .acct-row .txt .num { font: 600 16px var(--f-mono); font-variant-numeric: tabular-nums; margin-top: 2px; }
.tw .acct-row .tick { width: 20px; height: 20px; color: var(--acc); flex-shrink: 0; }
.tw .acct-row .mini { height: 34px; padding: 0 12px; border-radius: 8px; font: 700 12.5px var(--f-body); cursor: pointer; background: none; color: var(--acc); border: 1px solid var(--acc); flex-shrink: 0; }
.tw .acct-row .mini.fill { background: var(--acc); color: #0b0f12; }
.tw .acct-row .mini:hover { filter: brightness(1.1); }

.tw .rail { grid-row: 2; border-right: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 4px; padding: 10px 8px; }
.tw .rail a { position: relative; display: grid; justify-items: center; gap: 4px; padding: 10px 4px; border-radius: 10px; color: var(--muted); font-size: 11px; font-weight: 500; }
.tw .rail a svg { width: 22px; height: 22px; }
.tw .rail a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.tw .rail a[aria-current="page"] { color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent); }
.tw .rail .bottom { margin-top: auto; }

.tw .view { grid-row: 2; overflow: auto; min-width: 0; min-height: 0; }
.tw .page { padding: 28px 28px 60px; max-width: 1100px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.tw .page-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.tw .page-head h1 { font-size: 28px; }
.tw .panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.tw .panel-pad { padding: 20px; }
.tw .tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.tw .tabs button { background: none; border: 0; color: var(--muted); padding: 10px 14px; font: 600 14px var(--f-body); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tw .tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--primary); }
.tw .empty { padding: 36px 20px; text-align: center; color: var(--muted); font-size: 14px; }

/* trade screen */
.tw .trade { display: grid; grid-template-columns: 1fr 300px; height: 100%; min-height: 0; }
.tw .chart-col { display: grid; grid-template-rows: auto 1fr auto; min-width: 0; min-height: 0; border-right: 1px solid var(--line); }
.tw .chart-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tw .asset-btn { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; color: var(--text); cursor: pointer; font: inherit; }
.tw .asset-btn b { font: 600 15px var(--f-mono); }
.tw .asset-btn .pay { font: 600 13px var(--f-mono); color: var(--up); }
.tw .quote { font: 600 15px var(--f-mono); }
.tw .seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 3px; }
.tw .seg button { background: none; border: 0; color: var(--muted); font: 600 12px var(--f-mono); padding: 5px 9px; border-radius: 6px; cursor: pointer; }
.tw .seg button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); }
.tw .chart-area { position: relative; min-height: 280px; }
.tw .chart-area canvas { position: absolute; inset: 0; display: block; cursor: crosshair; }
.tw .practice-note { position: absolute; left: 12px; bottom: 34px; font-size: 12px; color: var(--muted); background: color-mix(in srgb, var(--bg) 80%, transparent); padding: 4px 8px; border-radius: 6px; pointer-events: none; }

.tw .ticket { display: grid; grid-template-rows: auto 1fr; min-height: 0; background: var(--surface); }
.tw .ticket-form { padding: 16px; display: grid; gap: 14px; border-bottom: 1px solid var(--line); }
.tw .stepper { display: grid; grid-template-columns: 38px 1fr 38px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; height: 46px; }
.tw .stepper button { height: 100%; background: none; border: 0; color: var(--muted); font-size: 18px; cursor: pointer; }
.tw .stepper button:hover { color: var(--text); }
.tw .stepper input, .tw .stepper output { border: 0; background: none; text-align: center; font: 600 17px var(--f-mono); height: 100%; padding: 0; color: var(--text); display: grid; place-items: center; box-shadow: none; }
.tw .field-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.tw .quick { display: flex; gap: 6px; margin-top: 6px; }
.tw .quick button { flex: 1; height: 26px; border-radius: 6px; border: 1px solid var(--line); background: none; color: var(--muted); font: 12px var(--f-mono); cursor: pointer; }
.tw .quick button:hover { color: var(--text); }
.tw .payout-line { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--muted); }
.tw .payout-line b { font: 700 20px var(--f-mono); color: var(--up); }
.tw .dir { display: grid; gap: 10px; }
.tw .dir button { height: 56px; border: 0; border-radius: 10px; font: 700 17px var(--f-display); color: #07100c; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; transition: filter .15s, transform .05s; }
.tw .dir button:hover { filter: brightness(1.08); }
.tw .dir button:active { transform: translateY(1px); }
.tw .dir button:disabled { opacity: .5; cursor: not-allowed; }
.tw .dir .b-up { background: var(--up); }
.tw .dir .b-down { background: var(--down); color: #1a0708; }
.tw .dir svg { width: 22px; height: 22px; }
.tw .ticket-list { overflow: auto; min-height: 0; }
.tw .ticket-list .tabs { padding: 0 8px; position: sticky; top: 0; background: var(--surface); z-index: 1; }
.tw .pos { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.tw .pos .sym { font: 600 13.5px var(--f-mono); display: flex; gap: 8px; align-items: center; }
.tw .pos .amt { font: 600 13.5px var(--f-mono); text-align: right; }
.tw .pos .meta { color: var(--muted); font-size: 12px; }
.tw .pos .meta.r { text-align: right; }
.tw .pos .bar { grid-column: 1 / -1; height: 3px; background: var(--line); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.tw .pos .bar i { display: block; height: 100%; background: var(--primary); }
.tw .arrow-up::before { content: "▲"; color: var(--up); font-size: 10px; }
.tw .arrow-down::before { content: "▼"; color: var(--down); font-size: 10px; }

/* asset picker */
.tw .asset-list { display: grid; max-height: 60vh; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.tw .asset-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.tw .asset-row:hover, .tw .asset-row[aria-current="true"] { background: var(--surface-2); }
.tw .asset-row b { font: 600 14px var(--f-mono); display: block; }
.tw .asset-row small { color: var(--muted); }
.tw .asset-row .pay { font: 600 14px var(--f-mono); color: var(--up); }

/* wallet */
.tw .methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tw .method { border: 1px solid var(--line); background: var(--bg); color: var(--text); border-radius: 12px; padding: 14px; text-align: left; cursor: pointer; font: inherit; display: grid; gap: 2px; }
.tw .method b { font: 700 17px var(--f-display); }
.tw .method small { color: var(--muted); }
.tw .method[aria-pressed="true"] { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.tw .addr-box { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; background: var(--bg); border: 1px dashed color-mix(in srgb, var(--primary) 45%, var(--line)); border-radius: 12px; padding: 16px; }
.tw .addr-box img { width: 120px; height: 120px; border-radius: 8px; background: #fff; padding: 6px; }
.tw .addr { font: 500 14px var(--f-mono); word-break: break-all; }
.tw .notice { border-radius: 10px; padding: 12px 14px; font-size: 13.5px; background: color-mix(in srgb, var(--primary) 9%, transparent); border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); }
.tw .notice.bad { background: color-mix(in srgb, var(--down) 8%, transparent); border-color: color-mix(in srgb, var(--down) 30%, transparent); }
.tw .kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 14px; }
.tw .kv dt { color: var(--muted); }
.tw .kv dd { margin: 0; text-align: right; font-family: var(--f-mono); }

/* leaderboard & copy */
.tw .me-row td { background: color-mix(in srgb, var(--primary) 9%, transparent); }
.tw .rank { font: 700 15px var(--f-mono); color: var(--muted); width: 48px; }
.tw .rank.top { color: var(--primary); }
.tw .providers { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.tw .provider { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: grid; gap: 14px; align-content: start; }
.tw .provider-head { display: flex; gap: 12px; align-items: center; }
.tw .avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font: 700 15px var(--f-display); background: color-mix(in srgb, var(--primary) 22%, var(--surface)); color: var(--primary); flex: none; }
.tw .provider-head b { font: 600 16px var(--f-display); display: block; }
.tw .provider-head small { color: var(--muted); }
.tw .pstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; border-block: 1px solid var(--line); padding-block: 12px; }
.tw .pstats div { display: grid; gap: 2px; }
.tw .pstats span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.tw .pstats b { font: 600 14px var(--f-mono); }
.tw .provider p { font-size: 13.5px; color: var(--muted); }

@media (max-width: 1000px) {
  .tw .trade { grid-template-columns: 1fr; grid-template-rows: auto auto; height: auto; }
  .tw .chart-col { height: min(66vh, 620px); min-height: 400px; }
  .tw .chart-col { border-right: 0; border-bottom: 1px solid var(--line); }
  .tw .ticket-list { max-height: none; }
}
@media (max-width: 720px) {
  .tw .app { grid-template-columns: 1fr; grid-template-rows: 54px 1fr 62px; }
  .tw .rail { grid-row: 3; flex-direction: row; justify-content: space-around; border-right: 0; border-top: 1px solid var(--line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px)); }
  .tw .rail a { padding: 6px 2px; font-size: 10px; flex: 1; }
  .tw .rail .bottom { margin-top: 0; }
  .tw .rail .hide-sm { display: none; }
  .tw .view { grid-row: 2; }
  .tw .app-top { padding: 0 8px; gap: 6px; }
  .tw .app-top .bell { width: 36px; height: 36px; }
  .tw .app-top .btn.primary { padding: 0 12px; font-size: 13px; }
  .tw .app-top .logo .word { display: none; }
  .tw .app-top .logo span.word, .tw .app-top .hide-sm { display: none; }
  .tw .acct-menu { right: 10px; top: 58px; }
  .tw .acct-switch { gap: 5px; padding: 0 6px 0 8px; }
  .tw .acct-switch .bal { font-size: 14px; }
  .tw .page { padding: 20px 16px 40px; }
  .tw .dir { grid-template-columns: 1fr 1fr; }
  .tw .pstats { grid-template-columns: repeat(2, 1fr); }
  .tw .addr-box { grid-template-columns: 1fr; }
}

/* ---------- chart tools (toolbar under the chart) ---------- */
.tw .chart-tools { display: flex; border-top: 1px solid var(--line); background: var(--surface); }
.tw .chart-tools button { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 6px; height: 46px; padding: 0 4px; background: none; border: 0; border-right: 1px solid var(--line); color: var(--text); font: 600 12.5px var(--f-body); cursor: pointer; }
.tw .chart-tools button:last-child { border-right: 0; }
.tw .chart-tools button:hover { background: var(--surface-2); }
.tw .chart-tools button[aria-pressed="true"] { color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); }
.tw .chart-tools svg { width: 18px; height: 18px; flex: none; }
.tw .chart-tools span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tw .ct-danger, .tw .chart-tools .ct-danger { color: var(--down); }
.tw .ct-badge { min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--primary); color: var(--on-primary); font: 700 10px/16px var(--f-mono); text-align: center; }

.tw .ind-chips { position: absolute; top: 8px; left: 8px; display: flex; flex-wrap: nowrap; gap: 6px; max-width: calc(100% - 96px); overflow-x: auto; scrollbar-width: none; pointer-events: none; }
.tw .ind-chips::-webkit-scrollbar { display: none; }
.tw .ind-chips:not(:empty) { pointer-events: auto; }
.tw .ind-chips.static { position: static; max-width: none; flex-wrap: wrap; overflow: visible; }
@media (max-width: 640px) { .tw .ind-chips:not(.static) [data-set] { display: none; } .tw .ind-chips:not(.static) .ind-chip { cursor: pointer; } }
.tw .ind-chip { pointer-events: auto; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 2px 0 8px; background: color-mix(in srgb, var(--bg) 86%, transparent); border: 1px solid var(--line); border-radius: 7px; font: 500 11px var(--f-mono); color: var(--text); white-space: nowrap; }
.tw .ind-chip i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.tw .ind-chip button { width: 22px; height: 22px; padding: 0; background: none; border: 0; color: var(--muted); display: grid; place-items: center; cursor: pointer; border-radius: 5px; }
.tw .ind-chip button:hover { color: var(--text); background: var(--surface-2); }
.tw .ind-chip svg { width: 14px; height: 14px; }

.tw .draw-bar { position: absolute; left: 50%; transform: translateX(-50%); bottom: 30px; display: flex; gap: 2px; padding: 4px; max-width: calc(100% - 16px); overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.tw .draw-bar button { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 9px; border: 1px solid transparent; background: none; color: var(--muted); cursor: pointer; }
.tw .draw-bar button:hover { color: var(--text); }
.tw .draw-bar button[aria-pressed="true"] { background: var(--surface-2); border-color: var(--line); color: var(--primary); }
.tw .db-sep { width: 1px; flex: none; margin: 6px 2px; background: var(--line); }
.tw .draw-bar:not([hidden]) ~ .practice-note { display: none; }

.tw .sel-bar { position: absolute; top: 40px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 2px; padding: 4px 4px 4px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.tw .sel-bar .sb-name { font: 600 12px var(--f-body); color: var(--muted); margin-right: 6px; white-space: nowrap; }
.tw .sel-bar button { width: 36px; height: 36px; display: grid; place-items: center; background: none; border: 0; border-radius: 8px; color: var(--muted); cursor: pointer; }
.tw .sel-bar button:hover { background: var(--surface-2); color: var(--text); }
.tw .sel-bar button i { display: block; width: 18px; height: 18px; border-radius: 9px; border: 2px solid var(--line); }
.tw .sel-bar button i.w { width: 18px; border: 0; border-radius: 2px; background: var(--text); }
.tw .sel-bar button[aria-pressed="true"] { color: var(--primary); }
.tw .sel-bar .sb-del { color: var(--down); }

.tw .pop-menu { position: fixed; z-index: 95; display: grid; min-width: 150px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.tw .pop-menu button { height: 38px; padding: 0 12px; text-align: left; background: none; border: 0; border-radius: 7px; color: var(--text); font: 500 13.5px var(--f-body); cursor: pointer; }
.tw .pop-menu button:hover { background: var(--surface-2); }
.tw .pop-menu button[aria-pressed="true"] { color: var(--primary); background: var(--surface-2); }
.tw .pop-menu.pop-swatches { grid-template-columns: repeat(4, 38px); min-width: 0; }
.tw .pop-swatches button, .tw .swatches button { width: 38px; height: 38px; padding: 0; display: grid; place-items: center; background: none; border: 0; border-radius: 8px; cursor: pointer; }
.tw .pop-swatches i, .tw .swatches i { display: block; width: 22px; height: 22px; border-radius: 11px; }
.tw .pop-swatches [aria-pressed="true"] i, .tw .swatches [aria-pressed="true"] i { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--text); }
.tw .swatches { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0; }
.tw .widths { display: flex; gap: 6px; }
.tw .widths button { width: 44px; height: 32px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; }
.tw .widths i { display: block; width: 22px; border-radius: 2px; background: var(--text); }
.tw .widths [aria-pressed="true"] { border-color: var(--primary); }
.tw .row-field { display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 500 14px var(--f-body); color: var(--text); }
.tw .row-field input[type="number"] { width: 110px; flex: none; text-align: center; font-family: var(--f-mono); }
.tw input.switch { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; flex: none; padding: 0; border: 0; border-radius: 13px; background: var(--line); position: relative; cursor: pointer; transition: background .15s; }
.tw input.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 10px; background: var(--muted); transition: transform .15s, background .15s; }
.tw input.switch:checked { background: var(--primary); }
.tw input.switch:checked::after { transform: translateX(18px); background: var(--on-primary); }
.tw .tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tw .tool-grid button { height: 74px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: 500 12.5px var(--f-body); cursor: pointer; }
.tw .tool-grid svg { width: 24px; height: 24px; }
.tw .tool-grid button[aria-pressed="true"] { border-color: var(--primary); color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); }
.tw .search-box { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; color: var(--muted); }
.tw .search-box input { height: 40px; padding: 0; border: 0; background: none; box-shadow: none; }
.tw .search-box input:focus { box-shadow: none; }
.tw .pill-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.tw .pill-tabs button { flex: none; height: 32px; padding: 0 12px; border-radius: 16px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: 600 12.5px var(--f-body); cursor: pointer; white-space: nowrap; }
.tw .pill-tabs button[aria-pressed="true"] { border-color: var(--primary); color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent); }
.tw .sheet-label { font: 600 11px var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.tw .ind-list { display: grid; max-height: 46vh; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.tw .ind-row { display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 0 10px 0 4px; border-bottom: 1px solid var(--line); }
.tw .ind-row:last-child { border-bottom: 0; }
.tw .ind-row .star { width: 40px; height: 40px; flex: none; display: grid; place-items: center; background: none; border: 0; color: var(--muted); cursor: pointer; }
.tw .ind-row .star[aria-pressed="true"] { color: var(--primary); }
.tw .ind-info { flex: 1; min-width: 0; display: grid; }
.tw .ind-info b { font: 500 14.5px var(--f-body); }
.tw .ind-info small { font-size: 12px; color: var(--muted); }
.tw .ind-row .add { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); cursor: pointer; }
.tw .ind-row .add:hover { border-color: var(--primary); color: var(--primary); }
@media (max-width: 640px) {
  .tw .modal-back.sheet-back { place-items: end stretch; padding: 0; }
  .tw .modal.sheet { width: 100%; max-height: 90vh; border-radius: 18px 18px 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom, 0px); animation: tw-sheet .2s ease-out; }
}
@keyframes tw-sheet { from { transform: translateY(24px); opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .tw .modal.sheet { animation: none; } }

@media (max-width: 420px) { .tw .chart-tools button { flex-direction: column; gap: 2px; height: 50px; font-size: 10.5px; } .tw .draw-bar { gap: 0; padding: 3px; } .tw .draw-bar button { width: 34px; height: 36px; } .tw .db-sep { margin: 6px 1px; } }

/* ---------- ticket extras (used on phones) ---------- */
.tw .st-mid { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; height: 100%; }
.tw .st-mid input { width: 100%; min-width: 0; }
.tw .m-ic { display: none; color: var(--muted); }
.tw .m-ic svg { width: 15px; height: 15px; display: block; }
.tw .dir .dl { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.tw .dir-pay { display: none; font: 600 12px var(--f-body); opacity: .8; margin-top: 2px; }
.tw .m-fab { display: none; }
.tw .m-tools small { font: 500 11px var(--f-body); color: var(--muted); margin-top: -3px; }
.tw .m-tools button { height: 84px; gap: 4px; }
.tw .m-tools svg { width: 22px; height: 22px; }
.tw .modal.m-trades .modal-body { padding: 0 0 12px; display: block; }
.tw .modal.m-trades .ticket-list { display: block; max-height: 60vh; overflow: auto; }

/* ---------- phones: the whole trade screen fits on one screen ---------- */
@media (max-width: 720px) {
  .tw .view:has(> .trade) { overflow: hidden; }
  .tw .trade { display: flex; flex-direction: column; height: 100%; }
  .tw .chart-col { flex: 1; min-height: 0; height: auto; display: flex; flex-direction: column; position: relative; border: 0; }
  .tw .chart-area { flex: 1; min-height: 0; }
  .tw .chart-tools { display: none; }
  .tw .chart-bar { position: absolute; top: 8px; left: 8px; right: 70px; z-index: 3; padding: 0; border: 0; gap: 8px; flex-wrap: nowrap; pointer-events: none; }
  .tw .chart-bar > * { pointer-events: auto; }
  .tw .asset-btn { height: 38px; padding: 0 10px; gap: 7px; background: color-mix(in srgb, var(--surface) 92%, transparent); }
  .tw .asset-btn b { font-size: 14px; }
  .tw .quote { font-size: 13.5px; padding: 3px 8px; border-radius: 7px; background: color-mix(in srgb, var(--bg) 80%, transparent); }
  .tw .m-fab { display: flex; flex-direction: column; gap: 10px; position: absolute; left: 8px; top: 54px; z-index: 3; }
  .tw .m-fab button { position: relative; width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border-radius: 11px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--text); cursor: pointer; }
  .tw .m-fab button[aria-pressed="true"] { color: var(--primary); border-color: var(--primary); }
  .tw .m-fab svg { width: 20px; height: 20px; }
  .tw .m-badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; box-sizing: border-box; border-radius: 9px; background: #3b8bff; color: #fff; font: 700 10.5px/18px var(--f-body); text-align: center; }
  .tw .ind-chips { top: 54px; left: 60px; max-width: calc(100% - 130px); }
  .tw .sel-bar { top: 104px; }
  .tw .practice-note { bottom: 26px; left: 60px; }
  .tw .ticket { display: block; flex: none; border-top: 1px solid var(--line); border-radius: 16px 16px 0 0; margin-top: -1px; }
  .tw .ticket-list { display: none; }
  .tw .ticket-form { grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 10px 10px; border-bottom: 0; }
  .tw .ticket-form .field-label, .tw .ticket-form .quick, .tw .ticket-form .payout-line { display: none; }
  .tw .ticket-form .dir, .tw .ticket-form .err { grid-column: 1 / -1; }
  .tw .ticket-form .err { margin: 0; }
  .tw .stepper { height: 44px; grid-template-columns: 36px 1fr 36px; }
  .tw .stepper input, .tw .stepper output { font-size: 16px; }
  .tw .m-ic { display: block; }
  .tw .st-mid input { width: 6ch; flex: 0 1 auto; text-align: left; }
  .tw .dir { gap: 10px; }
  .tw .dir button { height: 44px; padding: 0 12px; justify-content: flex-start; gap: 6px; font-size: 16px; border-radius: 10px; }
  .tw .dir svg { order: -1; width: 17px; height: 17px; flex: none; }
  .tw .dir .dl { flex: 1; min-width: 0; flex-direction: row; align-items: center; justify-content: space-between; }
  .tw .dir-pay { display: block; margin: 0; font: 700 13px var(--f-body); opacity: .85; }
}

/* ---------- top-up (deposit) flow ---------- */
.tw .dep { display: grid; gap: 14px; max-width: 560px; }
.tw .dep h3.dep-sec { display: flex; align-items: center; gap: 8px; margin: 6px 0 -4px; font: 700 14px var(--f-body); color: var(--text); }
.tw .dep-sec svg { width: 17px; height: 17px; color: var(--muted); }
.tw .coin-logo { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 800 16px var(--f-body); }
.tw .coin-logo.lg { width: 46px; height: 46px; font-size: 20px; }
.tw .promo-banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(120deg, color-mix(in srgb, var(--primary) 22%, transparent), color-mix(in srgb, var(--primary) 5%, transparent)); border: 1px solid color-mix(in srgb, var(--primary) 45%, transparent); }
.tw .pb-ic { width: 38px; height: 38px; flex: none; border-radius: 10px; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; }
.tw .pb-ic svg { width: 20px; height: 20px; }
.tw .promo-banner b, .tw .bonus-card b { display: block; font-size: 14px; }
.tw .promo-banner small, .tw .bonus-card small { color: var(--muted); font-size: 12.5px; }
.tw .dep-search { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--muted); }
.tw .dep-search input { flex: 1; min-width: 0; border: 0; background: none; box-shadow: none; padding: 0; height: 100%; color: var(--text); }
.tw .dep-search svg { width: 18px; height: 18px; flex: none; }
.tw .dep-list { display: grid; gap: 10px; }
.tw .dm-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.tw .dm-row:hover { border-color: color-mix(in srgb, var(--primary) 50%, var(--line)); }
.tw .dm-name { flex: 1; min-width: 0; display: grid; gap: 2px; }
.tw .dm-name b { font-size: 14.5px; }
.tw .dm-name small { color: var(--muted); font-size: 12px; }
.tw .dm-meta { display: grid; justify-items: end; gap: 2px; color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.tw .dm-meta span { display: flex; align-items: center; gap: 4px; }
.tw .dm-meta svg { width: 12px; height: 12px; }
.tw .dm-chev { color: var(--muted); display: grid; }
.tw .dm-chev svg { width: 16px; height: 16px; }
.tw .dm-group { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.tw .dm-group .dm-row { border: 0; background: none; }
.tw .dm-nets { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; padding: 0 12px 12px; }
.tw .dm-nets button { display: grid; gap: 2px; padding: 9px 10px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.tw .dm-nets button:hover { border-color: var(--primary); }
.tw .dm-nets b { font-size: 13px; }
.tw .dm-nets small { color: var(--muted); font-size: 11px; }
.tw .dep-wcard { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 4px; border-radius: 14px; background: color-mix(in srgb, var(--primary) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--primary) 45%, transparent); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.tw .dep-wcard + .dep-wcard { margin-top: 8px; }
.tw .dep-wcard.done { background: color-mix(in srgb, var(--up) 10%, var(--surface)); border-color: color-mix(in srgb, var(--up) 45%, transparent); }
.tw .dep-wcard.done .dw-ic { color: var(--up); }
.tw .dw-ic { color: var(--primary); display: grid; }
.tw .dw-ic svg { width: 22px; height: 22px; }
.tw .dw-t { flex: 1; display: grid; gap: 2px; }
.tw .dw-t small { color: var(--muted); font-size: 12px; }
.tw .dw-time { font: 700 16px var(--f-mono); font-variant-numeric: tabular-nums; color: var(--primary); }
.tw .dep-head { display: flex; align-items: center; gap: 10px; }
.tw .dep-head h2 { font-size: 22px; }
.tw .dep-head small { color: var(--muted); font-size: 12.5px; }
.tw .dep-back { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--text); cursor: pointer; }
.tw .dep-info { display: flex; gap: 14px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.tw .dep-info dl { flex: 1; display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; margin: 0; font-size: 13px; }
.tw .dep-info dt { color: var(--muted); }
.tw .dep-info dd { margin: 0; text-align: right; font-weight: 600; }
.tw .dp-label { display: flex; align-items: center; gap: 8px; font: 600 13px var(--f-body); color: var(--muted); }
.tw .dp-label svg { width: 17px; height: 17px; color: var(--primary); }
.tw .dep-amount, .tw .dep-promo { display: grid; gap: 8px; }
.tw .dep-amt-input { display: flex; align-items: center; gap: 6px; height: 54px; padding: 0 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; font: 700 20px var(--f-body); color: var(--muted); }
.tw .dep-amt-input:focus-within { border-color: var(--primary); }
.tw .dep-amt-input input { flex: 1; min-width: 0; border: 0; background: none; box-shadow: none; padding: 0; height: 100%; font: 700 20px var(--f-body); color: var(--text); }
.tw .dep-amt-input small { font-size: 12px; font-weight: 600; }
.tw .dep-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tw .dep-quick button { height: 36px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: 700 13px var(--f-body); cursor: pointer; }
.tw .dep-quick button[aria-pressed="true"] { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent); }
.tw .dep-promo-link { justify-self: start; display: flex; align-items: center; gap: 8px; padding: 6px 0; background: none; border: 0; color: var(--primary); font: 600 14px var(--f-body); cursor: pointer; }
.tw .dep-promo-link svg { width: 17px; height: 17px; }
.tw .dp-row { display: flex; gap: 8px; }
.tw .dp-row input { flex: 1; min-width: 0; height: 46px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tw .dp-row .btn { height: 46px; }
.tw .dep-promo.applied input { border-color: var(--up); }
.tw .dep-promo small { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.tw .dep-promo small.ok { color: var(--up); }
.tw .dep-promo small.warn { color: var(--primary); }
.tw .dep-promo small svg { width: 15px; height: 15px; }
.tw .dep-sum { display: grid; gap: 8px; padding: 14px; border-radius: 14px; background: linear-gradient(160deg, color-mix(in srgb, var(--up) 10%, transparent), color-mix(in srgb, var(--up) 2%, transparent)); border: 1px solid color-mix(in srgb, var(--up) 35%, transparent); }
.tw .dep-sum span { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--muted); }
.tw .dep-sum b { color: var(--text); font-weight: 700; }
.tw .dep-sum b.up, .tw .dep .up { color: var(--up); }
.tw .dep-sum hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
.tw .dep-sum .tot b { font: 700 26px var(--f-display); }
.tw .dep-terms { display: flex; gap: 6px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.tw .dep-terms svg { width: 14px; height: 14px; flex: none; margin-top: 1px; }
.tw .dep-go { width: 100%; }
.tw .dep-send { display: grid; justify-items: center; gap: 2px; text-align: center; }
.tw .dep-send small { color: var(--muted); font-size: 12.5px; }
.tw .dep-send b { font: 700 30px var(--f-display); }
.tw .dep-send .up { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12.5px; font-weight: 600; }
.tw .dep-send svg { width: 15px; height: 15px; }
.tw .dep-addr-card { display: grid; justify-items: center; gap: 12px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.tw .dep-qr { width: 160px; height: 160px; padding: 8px; background: #fff; border-radius: 10px; }
.tw .dep-addr { width: 100%; box-sizing: border-box; display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 12px; background: var(--bg); border: 1px dashed var(--line); border-radius: 10px; }
.tw .dep-addr span { flex: 1; min-width: 0; font: 600 13px var(--f-mono); word-break: break-all; }
.tw .dep-addr .btn { display: flex; gap: 6px; align-items: center; }
.tw .dep-addr .btn svg { width: 15px; height: 15px; }
.tw .dep-warn { display: flex; gap: 10px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--primary) 10%, transparent); border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent); font-size: 12.5px; line-height: 1.45; }
.tw .dep-warn svg { width: 18px; height: 18px; flex: none; color: var(--primary); }
.tw .dep-wait { justify-items: center; text-align: center; padding-top: 8px; }
.tw .dep-wait h2 { font-size: 22px; }
.tw .dep-wait > p { margin: -6px 0 0; font-size: 14px; line-height: 1.5; max-width: 440px; }
.tw .dw-ring { position: relative; width: 190px; height: 190px; }
.tw .dw-ring > svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.tw .dw-ring .trk { fill: none; stroke: var(--line); stroke-width: 8; }
.tw .dw-ring .bar { fill: none; stroke: var(--primary); stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset .9s linear; }
.tw .dw-num { position: absolute; inset: 0; display: grid; place-content: center; gap: 2px; }
.tw .dw-num b { font: 700 30px var(--f-mono); font-variant-numeric: tabular-nums; }
.tw .dw-num small { color: var(--muted); font-size: 12px; }
.tw .dw-done { width: 110px; height: 110px; margin: 40px auto; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--up) 16%, transparent); color: var(--up); }
.tw .dep-wait.rejected .dw-done { background: color-mix(in srgb, var(--down) 16%, transparent); color: var(--down); }
.tw .dw-done svg { width: 56px; height: 56px; stroke-width: 2.6; }
.tw .dw-done { box-shadow: 0 0 0 10px color-mix(in srgb, var(--up) 7%, transparent); animation: tw-pop .45s cubic-bezier(.2,1.4,.4,1); }
.tw .dep-wait.rejected .dw-done { box-shadow: 0 0 0 10px color-mix(in srgb, var(--down) 7%, transparent); }
.tw .dep-wait.approved .dw-done svg path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: tw-tick .5s .25s ease-out forwards; }
@keyframes tw-pop { from { transform: scale(.6); opacity: 0; } }
@keyframes tw-tick { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .tw .dw-done, .tw .dep-wait.approved .dw-done svg path { animation: none; stroke-dashoffset: 0; } }
.tw .dep-wait.approved .dw-ring, .tw .dep-wait.rejected .dw-ring { height: auto; }
.tw .dw-kv { width: 100%; box-sizing: border-box; display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; margin: 0; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; font-size: 13.5px; text-align: left; }
.tw .dw-kv dt { color: var(--muted); }
.tw .dw-kv dd { margin: 0; text-align: right; font-weight: 600; }
.tw .dw-actions { width: 100%; display: grid; gap: 10px; }
.tw .dw-actions .btn { width: 100%; }
.tw .bonus-card { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: color-mix(in srgb, var(--primary) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--primary) 40%, transparent); }
.tw .bc-top { display: flex; align-items: center; gap: 12px; }
.tw .bc-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.tw .bc-bar i { display: block; height: 100%; background: var(--primary); border-radius: 3px; }
.tw .bc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); }

.tw .dep-offers { display: grid; gap: 10px; }
.tw .dep-offers:empty { display: none; }
.tw .offer-card { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 24%, var(--surface)) 0%, var(--surface) 70%); border: 1px solid color-mix(in srgb, var(--primary) 50%, transparent); }
.tw .offer-card.on { border-color: var(--up); background: linear-gradient(135deg, color-mix(in srgb, var(--up) 16%, var(--surface)) 0%, var(--surface) 70%); }
.tw .oc-val { width: 64px; flex: none; display: grid; justify-items: center; font: 800 20px var(--f-display); color: var(--primary); line-height: 1.05; }
.tw .offer-card.on .oc-val { color: var(--up); }
.tw .oc-val small { font: 600 10.5px var(--f-body); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.tw .oc-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.tw .oc-t b { font-size: 14.5px; }
.tw .oc-t small { color: var(--muted); font-size: 12.5px; }
.tw .oc-code { justify-self: start; margin-top: 4px; display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border: 1px dashed color-mix(in srgb, var(--primary) 60%, transparent); border-radius: 6px; font: 700 12px var(--f-body); letter-spacing: .06em; }
.tw .oc-code svg { width: 13px; height: 13px; color: var(--primary); }
.tw .offer-card .btn { flex: none; display: flex; align-items: center; gap: 4px; }
.tw .offer-card .btn svg { width: 14px; height: 14px; }

/* ---------- leaderboard ---------- */
.tw .lb-page { max-width: 780px; }
.tw .avatar.lg { width: 54px; height: 54px; font-size: 19px; }
.tw .podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: end; margin-bottom: 16px; }
.tw .pod { position: relative; display: grid; justify-items: center; gap: 4px; padding: 16px 8px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.tw .pod-1 { order: 2; padding-top: 22px; background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 18%, var(--surface)), var(--surface) 70%); border-color: color-mix(in srgb, var(--primary) 55%, transparent); }
.tw .pod-2 { order: 1; }
.tw .pod-3 { order: 3; }
.tw .pod.me, .tw .lb-row.me { border-color: var(--up); }
.tw .pod-rank { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 800 13px var(--f-display); background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.tw .pod-1 .pod-rank { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.tw .pod-2 .pod-rank { background: #c3ccd4; color: #10151a; border-color: #c3ccd4; }
.tw .pod-3 .pod-rank { background: #c58b52; color: #1a1006; border-color: #c58b52; }
.tw .pod-name { font-size: 13.5px; line-height: 1.2; word-break: break-word; }
.tw .pod-country { font-size: 11.5px; color: var(--muted); }
.tw .pod-profit { font: 700 17px var(--f-mono); font-variant-numeric: tabular-nums; margin-top: 2px; }
.tw .pod-1 .pod-profit { font-size: 20px; }
.tw .pod-meta { font-size: 11px; color: var(--muted); }
.tw .lb-list { display: grid; gap: 8px; }
.tw .lb-row, .tw .lb-you { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.tw .lb-rank { width: 22px; flex: none; text-align: center; font: 700 14px var(--f-mono); color: var(--muted); }
.tw .lb-who { flex: 1; min-width: 0; display: grid; gap: 2px; }
.tw .lb-who b { font-size: 14px; }
.tw .lb-who small { color: var(--muted); font-size: 12px; }
.tw .lb-profit { font: 700 15px var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tw .lb-you { margin-top: 14px; background: color-mix(in srgb, var(--primary) 10%, var(--surface)); border-color: color-mix(in srgb, var(--primary) 45%, transparent); }
.tw .lb-note { margin: 16px 0 0; font-size: 12px; color: var(--muted); }
@media (max-width: 420px) {
  .tw .podium { gap: 6px; }
  .tw .pod { padding: 14px 4px 12px; }
  .tw .avatar.lg { width: 44px; height: 44px; font-size: 16px; }
  .tw .pod-profit { font-size: 15px; }
  .tw .pod-1 .pod-profit { font-size: 17px; }
  .tw .pod-name { font-size: 12.5px; }
}

.tw .lb-highlight { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 11px 14px; border-radius: 12px; background: color-mix(in srgb, var(--primary) 10%, transparent); border: 1px dashed color-mix(in srgb, var(--primary) 55%, transparent); font-size: 12.5px; line-height: 1.45; }
.tw .lb-highlight svg { width: 18px; height: 18px; flex: none; color: var(--primary); }

/* ---- profile menu, live chat and tickets ---- */
.tw .p-menu { display: flex; flex-direction: column; gap: 10px; max-width: 620px; }
.tw .p-card { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); background: linear-gradient(150deg, color-mix(in srgb, var(--primary) 14%, transparent), transparent); }
.tw .p-avatar { width: 50px; height: 50px; flex-shrink: 0; border-radius: 25px; background: var(--primary); color: var(--on-primary, #16120a); display: grid; place-items: center; font-weight: 700; font-size: 18px; }
.tw .p-who { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tw .p-who b { font-family: var(--f-display); font-size: 17px; }
.tw .p-who span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.tw .p-sec { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tw .p-sec > span:first-child { flex-shrink: 0; }
.tw .p-sec::after { content: ""; flex-grow: 1; height: 1px; background: var(--line); order: 1; }
.tw .sup-dot { order: 2; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--up); }
.tw .sup-dot::before { content: ""; width: 7px; height: 7px; border-radius: 4px; background: currentColor; }
.tw .sup-dot.off { color: var(--muted); }
.tw .p-row { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: var(--text); transition: border-color .15s; }
.tw .p-row:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); }
.tw .p-row.danger { color: var(--down); }
.tw .p-ic { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; background: color-mix(in srgb, var(--text) 6%, transparent); display: grid; place-items: center; }
.tw .p-ic svg { width: 18px; height: 18px; }
.tw .p-txt { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tw .p-txt b { font-size: 14px; font-weight: 600; }
.tw .p-txt span { font-size: 11.5px; color: var(--muted); }
.tw .p-badge { height: 20px; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--down); color: #fff; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; }
.tw .p-go { color: var(--muted); display: grid; place-items: center; }
.tw .p-go svg { width: 16px; height: 16px; }
.tw .rail a .nav-badge { position: absolute; top: 4px; right: 50%; transform: translateX(17px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--down); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; }

.tw .sub-head { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.tw .sub-back { width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); }
.tw .sub-back svg { width: 18px; height: 18px; }
.tw .sub-title { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.tw .sub-title b { font-family: var(--f-display); font-size: 19px; }
.tw .sub-title span { font-size: 11.5px; color: var(--muted); }

.tw .t-row { display: flex; flex-direction: column; gap: 6px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); }
.tw .t-row:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); }
.tw .t-top { display: flex; align-items: center; gap: 8px; }
.tw .t-top b { flex-grow: 1; font-size: 14px; font-weight: 600; }
.tw .t-meta { font-size: 11.5px; color: var(--muted); }

.tw .chat-page { display: flex; flex-direction: column; gap: 12px; height: 100%; min-height: 0; padding-bottom: 16px; }
.tw .view:has(> .chat-page) { overflow: hidden; }
.tw .p-row, .tw .t-row { text-decoration: none; }
.tw .p-row:hover, .tw .t-row:hover { text-decoration: none; }
.tw .chat-box { flex-grow: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px 2px 12px; }
.tw .m-sys { align-self: center; max-width: 80%; padding: 8px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 12px; color: var(--muted); text-align: center; }
.tw .m-row { display: flex; }
.tw .m-row.me { justify-content: flex-end; }
.tw .m-bub { max-width: min(78%, 520px); display: flex; flex-direction: column; gap: 5px; padding: 10px 12px; border-radius: 14px 14px 14px 4px; background: var(--surface); border: 1px solid var(--line); }
.tw .m-row.me .m-bub { border-radius: 14px 14px 4px 14px; background: var(--primary); border-color: transparent; color: var(--on-primary, #16120a); }
.tw .m-txt { font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.tw .m-time { align-self: flex-end; font-size: 10px; opacity: .65; }
.tw .m-file { display: flex; flex-direction: column; gap: 6px; color: inherit; }
.tw .m-file img { max-width: 100%; max-height: 220px; border-radius: 9px; object-fit: cover; }
.tw .m-doc { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; background: rgba(0,0,0,.15); }
.tw .m-doc svg { width: 18px; height: 18px; }
.tw .m-fname { display: flex; flex-direction: column; font-size: 11.5px; font-weight: 600; }
.tw .m-fname small { font-weight: 400; opacity: .7; font-size: 10.5px; }
.tw .chat-bar { flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 10px 0 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.tw .chat-clip { width: 42px; height: 42px; flex-shrink: 0; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--muted); cursor: pointer; }
.tw .chat-clip svg { width: 19px; height: 19px; }
.tw .chat-input { width: auto; flex: 1 1 120px; min-width: 0; height: 44px; padding: 0 14px; border-radius: 22px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 14px; }
.tw .chat-send { width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center; border: 0; border-radius: 23px; background: var(--primary); color: var(--on-primary, #16120a); cursor: pointer; }
.tw .chat-send svg { width: 20px; height: 20px; }
.tw .chat-file { order: 3; width: 100%; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.tw .chat-file button { border: 0; background: none; color: var(--down); font-size: 14px; cursor: pointer; }

/* ---- contact page ---- */
.tw .contact-page { display: flex; flex-direction: column; gap: 22px; padding-block: 30px 40px; }
.tw .contact-head { max-width: 58ch; }
.tw .contact-head h1 { font-size: clamp(28px, 4vw, 40px); }
.tw .contact-head p { margin-top: 8px; font-size: 15px; }
.tw .contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) 300px; gap: 24px; align-items: start; }
.tw .contact-form { display: flex; flex-direction: column; gap: 13px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.tw .cf-two { display: flex; gap: 12px; flex-wrap: wrap; }
.tw .cf-two label { flex: 1 1 180px; }
.tw .contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.tw .cf-check { flex-direction: row !important; align-items: flex-start; gap: 9px !important; font-weight: 400 !important; font-size: 12px !important; line-height: 1.5; }
.tw .cf-check input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; accent-color: var(--primary); }
.tw .cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tw .cf-done { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 30px 10px; text-align: center; }
.tw .cf-tick { width: 54px; height: 54px; border-radius: 27px; display: grid; place-items: center; background: color-mix(in srgb, var(--up) 16%, transparent); color: var(--up); font-size: 26px; }
.tw .cf-done b { font-family: var(--f-display); font-size: 17px; max-width: 34ch; }
.tw .contact-side { display: flex; flex-direction: column; gap: 12px; }
.tw .cs-card { display: flex; gap: 11px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.tw .cs-ic { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); display: grid; place-items: center; }
.tw .cs-ic svg { width: 18px; height: 18px; }
.tw .cs-card > span:last-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tw .cs-card b { font-size: 13px; }
.tw .cs-card a, .tw .cs-card small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.tw .cs-card a:hover { color: var(--primary); }
.tw .cs-cta { display: flex; flex-direction: column; gap: 9px; padding: 14px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); background: linear-gradient(150deg, color-mix(in srgb, var(--primary) 12%, transparent), transparent); }
.tw .cs-cta b { font-family: var(--f-display); font-size: 15px; }
.tw .cs-cta .muted { font-size: 12px; line-height: 1.55; }
@media (max-width: 860px) { .tw .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.tw .p-row.locked { opacity: .92; border-style: dashed; }
.tw .p-row.locked .p-ic { color: var(--muted); }
.tw .p-row.locked .p-txt span { line-height: 1.5; }
.tw .lock-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); }
.tw .lock-ic svg { width: 22px; height: 22px; }

/* ---- notification bell, invite, affiliate, tour, sounds ---- */
.tw .app-top .bell { position: relative; width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); }
.tw .app-top .bell:hover { color: var(--text); }
.tw .app-top .bell svg { width: 19px; height: 19px; }
.tw .bell-n { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--down); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 18px; text-align: center; }
.tw .n-list { display: flex; flex-direction: column; gap: 9px; max-width: 640px; }
.tw .n-row { display: flex; gap: 11px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: var(--text); }
.tw .n-row.new { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); background: color-mix(in srgb, var(--primary) 6%, var(--surface)); }
.tw .n-dot { width: 9px; height: 9px; flex-shrink: 0; margin-top: 5px; border-radius: 5px; background: var(--primary); }
.tw .n-dot.off { background: transparent; }
.tw .n-body { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tw .n-body b { font-size: 14px; font-weight: 600; }
.tw .n-body span { font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.tw .n-time { font-size: 11px; color: var(--muted); }

.tw .inv-hero { display: flex; align-items: center; gap: 13px; padding: 16px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); background: linear-gradient(150deg, color-mix(in srgb, var(--primary) 14%, transparent), transparent); }
.tw .inv-ic { width: 44px; height: 44px; flex-shrink: 0; border-radius: 13px; background: color-mix(in srgb, var(--primary) 16%, transparent); color: var(--primary); display: grid; place-items: center; }
.tw .inv-ic svg { width: 24px; height: 24px; }
.tw .kpis3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.tw .kpi-box { display: flex; flex-direction: column; gap: 4px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.tw .kpi-box span { font-size: 10.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.tw .kpi-box b { font-family: var(--f-display); font-size: 21px; }
.tw .copy-row { display: flex; align-items: center; gap: 8px; padding: 9px 9px 9px 12px; border: 1px dashed color-mix(in srgb, var(--primary) 45%, transparent); border-radius: 11px; background: var(--bg); }
.tw .copy-row input { flex-grow: 1; min-width: 0; border: 0; background: none; color: var(--text); font-size: 13px; font-weight: 600; padding: 0; }
.tw .share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tw .share-row a { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 13px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2, var(--surface)); color: var(--text); font-size: 12.5px; font-weight: 600; }
.tw .share-row a:hover { border-color: var(--primary); color: var(--primary); }
.tw .step-row { display: flex; gap: 11px; }
.tw .step-n { width: 26px; height: 26px; flex-shrink: 0; border-radius: 13px; background: color-mix(in srgb, var(--primary) 15%, transparent); color: var(--primary); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.tw .bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; }
.tw .bars span { flex: 1 1 0; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--primary), color-mix(in srgb, var(--primary) 25%, transparent)); min-height: 3px; }
.tw .deal-row { display: flex; align-items: center; gap: 9px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.tw .deal-row span:first-child { flex-grow: 1; color: var(--muted); }
.tw .deal-row b { font-weight: 700; }

.tw .tour-mask { position: fixed; inset: 0; z-index: 90; }
.tw .tour-hole { position: absolute; border-radius: 14px; border: 2px solid var(--primary); box-shadow: 0 0 0 9999px rgba(3,6,9,.72); transition: all .2s; }
.tw .tour-card { position: fixed; z-index: 91; left: 12px; right: 12px; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--primary) 50%, transparent); box-shadow: 0 18px 44px rgba(0,0,0,.6); max-width: 420px; margin-inline: auto; }
.tw .tour-card .t-top { display: flex; align-items: center; gap: 9px; }
.tw .tour-step { height: 22px; padding: 0 9px; display: inline-flex; align-items: center; border-radius: 11px; background: color-mix(in srgb, var(--primary) 15%, transparent); color: var(--primary); font-size: 10.5px; font-weight: 700; }
.tw .tour-card b { font-family: var(--f-display); font-size: 16px; }
.tw .tour-card p { font-size: 13px; line-height: 1.6; color: var(--muted); margin: 0; }
.tw .tour-dots { display: flex; align-items: center; gap: 6px; }
.tw .tour-dots i { width: 7px; height: 7px; border-radius: 4px; background: var(--line); }
.tw .tour-dots i.on { width: 18px; background: var(--primary); }
.tw .sw-row { display: flex; align-items: center; gap: 11px; padding: 9px 0; }
.tw .sw-row .sw-t { flex-grow: 1; display: flex; flex-direction: column; gap: 2px; }
.tw .sw-row .sw-t b { font-size: 13.5px; font-weight: 500; }
.tw .sw-row .sw-t span { font-size: 11.5px; color: var(--muted); }
.tw .switch { width: 44px; height: 26px; flex-shrink: 0; border-radius: 13px; border: 1px solid var(--line); background: var(--surface-2, var(--surface)); position: relative; cursor: pointer; padding: 0; }
.tw .switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 10px; background: var(--muted); transition: .15s; }
.tw .switch[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); }
.tw .switch[aria-pressed="true"]::after { left: 20px; background: var(--on-primary, #16120a); }
.tw .pof-box { display: flex; flex-direction: column; gap: 11px; padding: 16px; border-radius: 16px; background: color-mix(in srgb, var(--down) 7%, transparent); border: 1px solid color-mix(in srgb, var(--down) 32%, transparent); }
.tw .pof-box h3 { font-family: var(--f-display); font-size: 15px; display: flex; align-items: center; gap: 9px; }
.tw .pof-box h3 svg { width: 22px; height: 22px; flex: 0 0 22px; color: var(--down); }
.tw .pof-box p { font-size: 13px; line-height: 1.65; color: var(--muted); margin: 0; }

/* ---- forgotten password on the sign-in card ---- */
.tw .hint { color: var(--muted); font-size: 12.5px; font-weight: 400; margin: -4px 0 0 }
.linkish { background:none; border:0; padding:0; color:var(--muted); font:inherit; font-size:13.5px; text-align:left; cursor:pointer; text-decoration:underline; text-underline-offset:3px }
.linkish:hover { color:var(--text) }
.ok-note { margin:0; padding:10px 12px; border-radius:10px; font-size:13.5px; line-height:1.5;
  background:color-mix(in srgb, var(--up) 14%, transparent); border:1px solid color-mix(in srgb, var(--up) 40%, transparent); color:var(--up) }

/* ---- the admin is looking at a trader's account ---- */
.tw .imp-bar {
  position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 9px 14px; font-size: 12.5px; line-height: 1.5;
  background: color-mix(in srgb, var(--primary) 20%, var(--bg)); border-bottom: 1px solid var(--primary); color: var(--text);
}
.tw .imp-bar span { flex-grow: 1; min-width: 0; }
.tw.app-body.imp-on .app { height: calc(100vh - 40px); height: calc(100dvh - 40px); }
@media (max-width: 720px) { .tw .imp-bar { font-size: 11.5px; padding: 8px 10px; } }

/* ---- deposit methods: the admin's own picture and badge ---- */
.tw .coin-logo.img { object-fit: contain; background: var(--surface-2); padding: 3px; }
.tw .dm-badge { display: inline-block; margin-left: 7px; padding: 1px 7px; border-radius: 99px; font: 600 10.5px/1.6 var(--f-body);
  letter-spacing: .04em; text-transform: uppercase; font-style: normal; vertical-align: middle;
  background: color-mix(in srgb, var(--primary) 18%, transparent); color: var(--primary); }

.tw .dm-nets button { display: flex; align-items: center; gap: 10px; text-align: left; }
.tw .dm-net-logo { width: 26px; height: 26px; flex: none; border-radius: 6px; object-fit: contain; background: var(--surface-2); padding: 2px; }
.tw .dm-net-txt { display: grid; gap: 1px; min-width: 0; }

/* ---- pictures the owner sets (Admin → Pictures) ---- */
.tw .hero-pic { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--surface);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.6); }
.tw .hero-pic img { display: block; width: 100%; height: auto; }
.tw .auth-pic { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); margin-top: 4px; }
.tw .auth-pic img { display: block; width: 100%; height: auto; max-height: 260px; object-fit: cover; }
.tw .feature-pic { width: 40px; height: 40px; object-fit: contain; border-radius: 9px; margin-bottom: 2px; }

.tw .avatar.img, .tw .p-avatar.img { object-fit: cover; padding: 0; }
.tw .ph-row { display: flex; gap: 14px; align-items: flex-start; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.tw .ph-box { width: 72px; height: 72px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: color-mix(in srgb, var(--primary) 22%, var(--surface)); color: var(--primary); font: 700 24px var(--f-display); }
.tw .ph-box img { width: 100%; height: 100%; object-fit: cover; }
