/* ============================================================
   REBATELIX — STYLE
   ============================================================ */
:root {
  --bg: #060a13;
  --bg-2: #0a1020;
  --surface: #0e1628;
  --surface-2: #131d33;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #e8eef8;
  --muted: #8b98b0;
  --mint: #19e3b1;
  --blue: #3ab8ff;
  --gold: #ffc857;
  --red: #ff6b7a;
  --grad: linear-gradient(100deg, var(--mint), var(--blue));
  --radius: 18px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .6);
  --font: "Be Vietnam Pro", var(--font-lang, system-ui), system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", var(--font-lang, ui-monospace), ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.02em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.center { text-align: center; margin-top: 2rem; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.4em; border-radius: 12px; font-weight: 700; font-size: .95rem;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--grad); color: #04121c; box-shadow: 0 10px 30px -10px rgba(25, 227, 177, .6); }
.btn--primary:hover { box-shadow: 0 14px 40px -10px rgba(58, 184, 255, .7); transform: translateY(-1px); }
.btn--ghost { border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); }
.btn--sm { padding: .55em 1em; font-size: .875rem; border-radius: 10px; }
.btn--lg { padding: 1em 1.7em; font-size: 1rem; }
.btn--block { width: 100%; }

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.eyebrow {
  display: inline-block; font-family: var(--mono); font-size: .78rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--mint); margin-bottom: .8rem;
}
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Promo ---------- */
.promo {
  position: relative; display: flex; align-items: center; justify-content: center; gap: .75rem;
  padding: .55rem 2.5rem; font-size: .875rem; text-align: center;
  background: linear-gradient(90deg, rgba(25, 227, 177, .12), rgba(58, 184, 255, .12));
  border-bottom: 1px solid var(--line);
}
.promo[hidden] { display: none; }
.promo b { color: var(--gold); }
.promo__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px var(--mint); flex: none; }
.promo__cta { font-weight: 700; color: var(--mint); white-space: nowrap; }
.promo__cta::after { content: " →"; }
.promo__close { position: absolute; inset-inline-end: 12px; font-size: 1.25rem; color: var(--muted); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 10, 19, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.header.is-scrolled { border-color: var(--line); }
.header__inner { display: flex; align-items: center; gap: 1.5rem; height: 70px; }
.logo { display: inline-flex; align-items: center; gap: .55rem; font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
.logo b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; gap: 1.6rem; margin-left: 1rem; }
.nav a { color: var(--muted); font-weight: 500; font-size: .95rem; transition: color .15s; white-space: nowrap; }
.nav a:hover { color: var(--text); }
.header__actions { margin-left: auto; display: flex; align-items: center; gap: .6rem; }

.lang { position: relative; }
.lang__btn { display: flex; align-items: center; gap: .45rem; padding: .5em .75em; border-radius: 10px; font-size: .875rem; font-weight: 600; border: 1px solid var(--line); }
.lang__btn:hover { background: rgba(255, 255, 255, .05); }
.lang__menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 200px; margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s;
}
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: none; }
.lang__menu { display: grid; grid-template-columns: repeat(3, 1fr); width: 600px; max-height: min(75vh, 560px); overflow-y: auto; gap: 2px; padding: 8px; }
.lang .fi { width: 1.4em; height: 1.05em; line-height: 1.05em; border-radius: 3px; flex: none; background-size: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.lang__menu button { padding: .65rem .8rem; color: var(--muted); }
.lang__menu button:hover { color: var(--text); }
.lang__menu button[aria-selected="true"] { color: var(--mint); font-weight: 700; }
.lang__code { display: inline-grid; place-items: center; min-width: 34px; padding: .15em .35em; border-radius: 6px; font-family: "JetBrains Mono", monospace; font-size: .7rem; font-weight: 700; background: rgba(255, 255, 255, .07); color: var(--muted); }
.lang__btn .lang__code { background: rgba(25, 227, 177, .12); color: var(--mint); }
.lang__menu button[aria-selected="true"] .lang__code { background: rgba(25, 227, 177, .18); color: var(--mint); }
.lang__menu button { width: 100%; display: flex; align-items: center; gap: .6rem; padding: .6rem .75rem; border-radius: 9px; font-size: .9rem; text-align: start; }
.lang__menu button:hover, .lang__menu button[aria-selected="true"] { background: rgba(25, 227, 177, .1); color: var(--mint); }

.burger { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.burger span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 90px; overflow: hidden; }
.hero__glow {
  position: absolute; inset: -20% -10% auto; height: 700px; pointer-events: none;
  background:
    radial-gradient(40% 50% at 20% 30%, rgba(25, 227, 177, .18), transparent 70%),
    radial-gradient(35% 45% at 80% 20%, rgba(58, 184, 255, .18), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent); opacity: .5;
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.hero__grid > *, .split > *, .brokers > *, .calc > *, .faq-wrap > *, .partner > * { min-width: 0; }
.pill { display: inline-flex; align-items: center; gap: .3rem; padding: .4rem .9rem; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); font-size: .875rem; margin-bottom: 1.5rem; }
.pill b { color: var(--mint); }
.pill__live { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); margin-right: .35rem; animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(25, 227, 177, .6); } 100% { box-shadow: 0 0 0 10px rgba(25, 227, 177, 0); } }
.hero__title { font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: 1.25rem; }
.hero__sub { font-size: 1.12rem; color: var(--muted); max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 1rem; }
.hero__free { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--muted); }
.hero__free svg { color: var(--mint); flex: none; }
.stats { display: grid; grid-template-columns: repeat(3, auto); gap: 2.5rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); width: fit-content; }
.stats b { display: block; font-size: 2rem; font-weight: 800; font-family: var(--mono); letter-spacing: -.03em; }
.stats span { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

.flowcard { position: relative; padding: 28px; border-radius: 24px; background: linear-gradient(160deg, rgba(25, 227, 177, .1), rgba(14, 22, 40, .9) 40%); border: 1px solid var(--line-2); box-shadow: var(--shadow); overflow: hidden; }
.flowcard__amount { margin-bottom: 1.5rem; }
.flowcard__plus { display: block; font-family: var(--mono); font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 700; color: var(--mint); letter-spacing: -.04em; line-height: 1; }
.flowcard__amount small { color: var(--muted); font-size: .9rem; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; }
.flow::before { content: ""; position: absolute; inset-inline-start: 23px; top: 24px; bottom: 24px; width: 2px; background: linear-gradient(var(--blue), var(--mint)); opacity: .5; }
.flow li { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 14px; background: rgba(6, 10, 19, .6); border: 1px solid var(--line); position: relative; }
.flow li b { display: block; font-size: 1rem; }
.flow li span { font-size: .85rem; color: var(--muted); }
.flow__icon { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; margin-left: -12px; margin-left: 0; }
.flow__icon svg { width: 22px; height: 22px; }
.flow__icon img { width: 46px; height: 46px; }
.flow__icon--a { background: rgba(255, 200, 87, .14); color: var(--gold); }
.flow__icon--c { background: rgba(25, 227, 177, .14); color: var(--mint); }

.ticker { margin: 20px -28px -28px; padding: 12px 0; border-top: 1px solid var(--line); background: rgba(0, 0, 0, .25); overflow: hidden; }
.ticker__track { display: flex; gap: 2rem; width: max-content; animation: tick 30s linear infinite; font-family: var(--mono); font-size: .82rem; }
.ticker__track span { color: var(--muted); white-space: nowrap; }
.ticker__track b { color: var(--mint); margin-left: .35rem; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 96px 0; position: relative; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.head { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: 1.3fr 1fr; overflow: hidden; }
.calc__inputs { padding: 32px; display: grid; gap: 28px; }
.field > span { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: .5em .9em; border-radius: 10px; border: 1px solid var(--line); font-size: .875rem; font-weight: 600; background: rgba(255, 255, 255, .02); display: inline-flex; align-items: center; gap: .45rem; transition: .15s; }
.chip:hover { border-color: var(--line-2); }
.chip.is-active { border-color: var(--mint); background: rgba(25, 227, 177, .1); color: var(--mint); }
.chip i { width: 8px; height: 8px; border-radius: 50%; }
.range { display: flex; align-items: center; gap: 16px; }
.range input { flex: 1; appearance: none; -webkit-appearance: none; height: 8px; border-radius: 8px; background: var(--surface-2); outline: none; }
.range input::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 5px solid var(--mint); cursor: pointer; box-shadow: 0 0 0 6px rgba(25, 227, 177, .15); }
.range input::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 5px solid var(--mint); cursor: pointer; }
.range output { min-width: 110px; text-align: end; font-family: var(--mono); font-weight: 700; font-size: 1.25rem; }
.calc__note { font-size: .82rem; color: var(--muted); margin: 0; }
.calc__result { padding: 32px; background: linear-gradient(160deg, rgba(25, 227, 177, .12), rgba(58, 184, 255, .06)); border-inline-start: 1px solid var(--line); display: flex; flex-direction: column; gap: 20px; justify-content: center; }
.calc__result span { font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.money { display: block; font-family: var(--mono); font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -.04em; color: var(--mint); line-height: 1.1; }
.money--dim { color: var(--muted); }
.calc__year { padding-top: 16px; border-top: 1px dashed var(--line-2); }
.calc__year b { display: block; font-family: var(--mono); font-size: 1.6rem; color: var(--gold); }

/* ---------- What is ---------- */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.split p { color: var(--muted); font-size: 1.05rem; }
.donut { padding: 32px; display: grid; justify-items: center; gap: 20px; }
.donut__svg { width: min(260px, 100%); }
.donut__big { font-family: var(--mono); font-size: 40px; font-weight: 700; fill: var(--text); }
.donut__small { font-family: var(--mono); font-size: 11px; fill: var(--muted); letter-spacing: .15em; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .9rem; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: .6rem; }
.legend i { width: 22px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .12); }

/* ---------- Brokers ---------- */
.tabs { display: flex; justify-content: center; gap: 6px; margin-bottom: 2rem; padding: 5px; width: fit-content; margin-inline: auto; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); }
.tabs button { padding: .55em 1.1em; border-radius: 10px; font-weight: 600; font-size: .9rem; color: var(--muted); display: inline-flex; gap: .4rem; align-items: center; }
.tabs button em { font-style: normal; font-size: .75rem; padding: 0 .45em; border-radius: 6px; background: rgba(255, 255, 255, .07); }
.tabs button.is-active { background: var(--surface-2); color: var(--text); }
.brokers { display: grid; grid-template-columns: 1fr 400px; gap: 24px; align-items: start; }
.brokers__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.bcard { text-align: start; padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); transition: .18s; display: grid; gap: 12px; }
.bcard:hover { border-color: var(--line-2); transform: translateY(-2px); }
.bcard.is-active { border-color: var(--mint); background: rgba(25, 227, 177, .06); box-shadow: 0 0 0 3px rgba(25, 227, 177, .12); }
.bcard__top { display: flex; align-items: center; gap: 10px; }
.bmark { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: .95rem; color: #06101c; flex: none; }
.bcard__name { font-weight: 700; }
.bcard__type { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.bcard__rate { font-family: var(--mono); font-size: 1.5rem; font-weight: 700; color: var(--mint); line-height: 1; }
.bcard__rate small { font-family: var(--font); font-size: .78rem; color: var(--muted); font-weight: 500; margin-left: .3rem; }
.bcard__meta { font-size: .8rem; color: var(--muted); }

.guide { padding: 26px; position: sticky; top: 90px; }
.guide__head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.guide__head h3 { margin: 0; }
.gtabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); margin-bottom: 18px; }
.gtabs button { padding: .55em; border-radius: 9px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.gtabs button.is-active { background: var(--surface-2); color: var(--text); }
.gsteps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; counter-reset: g; }
.gsteps li { display: flex; gap: 12px; font-size: .9rem; color: var(--muted); counter-increment: g; }
.gsteps li::before { content: counter(g); flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700; background: rgba(25, 227, 177, .12); color: var(--mint); }
.gsteps b { color: var(--text); }
.code { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 12px; border: 1px dashed var(--line-2); margin-bottom: 14px; }
.code small { display: block; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.code b { font-family: var(--mono); font-size: 1.05rem; letter-spacing: .04em; }
.code .btn { margin-inline-start: auto; }
.guide__note { font-size: .78rem; color: var(--muted); margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(255, 200, 87, .07); border: 1px solid rgba(255, 200, 87, .2); }

/* ---------- Compare ---------- */
.seg { display: flex; justify-content: center; gap: 6px; padding: 5px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); width: fit-content; margin: 0 auto 2rem; }
.seg button { padding: .55em 1.1em; border-radius: 10px; font-weight: 600; font-size: .9rem; color: var(--muted); }
.seg button.is-active { background: var(--grad); color: #04121c; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare__col { padding: 28px; }
.compare__col--win { border-color: rgba(25, 227, 177, .35); background: linear-gradient(180deg, rgba(25, 227, 177, .08), rgba(255, 255, 255, .01)); }
.compare__col h3 { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.25rem; }
.dim-dot { width: 24px; height: 24px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line-2); }
.compare dl { margin: 0; display: grid; gap: 2px; }
.compare dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.compare dt { color: var(--muted); }
.compare dd { margin: 0; text-align: end; font-weight: 600; display: flex; align-items: center; gap: .4rem; }
.compare dd.ok::before { content: "✓"; color: var(--mint); }
.compare dd.no { color: var(--muted); }
.compare dd.no::before { content: "✕"; color: var(--red); }
.compare__total { margin-top: 20px; }
.compare__total span { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.compare__total small { font-size: .9rem; color: var(--gold); }
.compare__total small.warn { color: var(--red); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { padding: 28px; position: relative; overflow: hidden; }
.step__n { display: block; font-family: var(--mono); font-size: 3rem; font-weight: 700; line-height: 1; margin-bottom: 1.2rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .9; }
.step p { color: var(--muted); margin: 0; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { padding: 26px; transition: .2s; }
.feature:hover { border-color: var(--line-2); transform: translateY(-3px); }
.feature__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.2rem; background: rgba(25, 227, 177, .1); color: var(--mint); border: 1px solid rgba(25, 227, 177, .25); }
.feature__icon svg { width: 22px; height: 22px; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq-side p { color: var(--muted); }
.contact { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-top: 12px; transition: .15s; }
.contact:hover { border-color: var(--line-2); }
.contact b { display: block; }
.contact small { color: var(--muted); font-size: .85rem; }
.contact__icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); flex: none; }
.contact__icon svg { width: 20px; height: 20px; }
.contact__icon.tg { background: #229ed9; color: #fff; }
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .02); transition: .2s; }
.faq details[open] { border-color: var(--line-2); background: rgba(255, 255, 255, .04); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { font-family: var(--mono); font-size: .8rem; color: var(--mint); }
.faq summary b { flex: 1; font-weight: 600; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; padding-inline-start: 54px; margin: 0; color: var(--muted); }

/* ---------- Partner ---------- */
.partner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding: 48px; position: relative; overflow: hidden; border-color: rgba(58, 184, 255, .3);
  background: radial-gradient(60% 120% at 100% 0%, rgba(58, 184, 255, .18), transparent 60%), radial-gradient(50% 100% at 0% 100%, rgba(25, 227, 177, .14), transparent 60%), var(--surface); }
.partner p { color: var(--muted); font-size: 1.05rem; margin-bottom: 1.6rem; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(6, 10, 19, .55); border: 1px solid var(--line); font-weight: 600; }
.checks li::before { content: "✓"; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #04121c; font-size: .85rem; flex: none; }

/* ---------- Footer ---------- */
.footer { padding: 64px 0 32px; border-top: 1px solid var(--line); background: var(--bg-2); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer__grid p { max-width: 320px; margin-top: 1rem; font-size: .92rem; }
.footer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 1rem; }
.footer__grid a:not(.logo) { display: block; padding: .3rem 0; font-size: .92rem; }
.footer__grid a:not(.logo):hover { color: var(--mint); }
.footer__risk { font-size: .8rem; color: var(--muted); padding: 20px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.footer__copy { font-size: .82rem; color: var(--muted); margin: 20px 0 0; text-align: center; }

/* ---------- Floating ---------- */
.float { position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 40; }
.float__btn { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow); transition: transform .15s; }
.float__btn:hover { transform: scale(1.06); }
.float__btn svg { width: 24px; height: 24px; }
.float__btn.tg { background: #229ed9; color: #fff; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(3, 6, 12, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal[hidden] { display: none; }
.modal__box { max-width: 460px; padding: 32px; text-align: center; background: var(--surface); box-shadow: var(--shadow); }
.modal__icon { width: 52px; height: 52px; margin: 0 auto 1rem; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 1.5rem; color: var(--gold); background: rgba(255, 200, 87, .12); border: 1px solid rgba(255, 200, 87, .3); }
.modal__box p { font-size: .95rem; }
.modal__box .btn { margin-top: .5rem; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); padding: .7rem 1.2rem; border-radius: 12px; background: var(--mint); color: #04121c; font-weight: 700; opacity: 0; transition: .25s; z-index: 120; pointer-events: none; }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Blog ---------- */
.nav a.is-current { color: var(--text); }
.head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; text-align: start; max-width: none; }
.head--row > div { max-width: 640px; }
.head--row p { margin-bottom: 0; }
.page-hero { position: relative; overflow: hidden; padding: 72px 0 24px; }
.page-hero .head { position: relative; z-index: 1; margin-bottom: 0; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; }
.section--tight { padding-top: 32px; }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.post { display: flex; flex-direction: column; overflow: hidden; transition: transform .2s, border-color .2s; }
.post:hover { transform: translateY(-3px); border-color: var(--line-2); }
.post__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.post__body h3 { font-size: 1.12rem; line-height: 1.35; margin-bottom: .6rem; }
.post__body p { color: var(--muted); font-size: .92rem; margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post__meta { display: flex; gap: 1rem; font-size: .78rem; color: var(--muted); font-family: var(--mono); margin-bottom: .75rem; }
.post__meta { flex-wrap: wrap; row-gap: .2rem; }
.post__meta span { white-space: nowrap; }
.post__meta span + span::before { content: "·"; margin-right: 1rem; }
.post__more { margin-top: auto; font-weight: 700; font-size: .9rem; color: var(--mint); }

.cover { position: relative; aspect-ratio: 16 / 8; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.cover::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 28px 28px; opacity: .6; }
.cover svg { position: relative; width: 56px; height: 56px; }
.cover__tag { position: absolute; inset-inline-start: 14px; top: 14px; font-family: var(--mono); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .3em .7em; border-radius: 7px; background: rgba(6, 10, 19, .65); border: 1px solid var(--line-2); }
.cover--rebates { background: radial-gradient(80% 120% at 20% 0%, rgba(25, 227, 177, .35), transparent 60%), var(--surface); color: var(--mint); }
.cover--basics { background: radial-gradient(80% 120% at 80% 0%, rgba(58, 184, 255, .35), transparent 60%), var(--surface); color: var(--blue); }
.cover--guides { background: radial-gradient(80% 120% at 50% 0%, rgba(255, 200, 87, .3), transparent 60%), var(--surface); color: var(--gold); }
.cover--big { aspect-ratio: 16 / 6; border: 1px solid var(--line); border-radius: var(--radius); margin: 28px 0 32px; }
.cover--big svg { width: 84px; height: 84px; }

.article-wrap { padding-top: 48px; }
.article { max-width: 780px; }
.back { display: inline-block; color: var(--muted); font-size: .9rem; margin-bottom: 28px; }
.back:hover { color: var(--mint); }
.article__head h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; letter-spacing: -.03em; }
.article__lead { font-size: 1.15rem; color: var(--muted); }
.prose { font-size: 1.06rem; line-height: 1.75; color: #cfd8e8; }
.prose h2 { font-size: 1.5rem; margin: 2.2rem 0 .8rem; color: var(--text); }
.prose a { color: var(--mint); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); }
.prose ul { padding-inline-start: 1.2rem; margin: 0 0 1.2rem; }
.prose li { margin-bottom: .45rem; }
.prose li::marker { color: var(--mint); }
.prose pre { font-family: var(--mono); font-size: .92rem; padding: 16px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); border-inline-start: 3px solid var(--mint); white-space: pre-wrap; margin: 0 0 1.2rem; color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4rem; font-size: .95rem; }
.prose th, .prose td { padding: 12px 14px; text-align: start; border-bottom: 1px solid var(--line); }
.prose th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.prose td:last-child { font-family: var(--mono); color: var(--mint); }
.note { font-size: .92rem; padding: 14px 16px; border-radius: 12px; background: rgba(255, 200, 87, .07); border: 1px solid rgba(255, 200, 87, .22); color: var(--text); margin: 1.4rem 0; }
.note--info { background: rgba(58, 184, 255, .08); border-color: rgba(58, 184, 255, .25); margin-top: 0; }
.article__cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 28px; margin: 48px 0; border-color: rgba(25, 227, 177, .3); background: linear-gradient(120deg, rgba(25, 227, 177, .1), rgba(58, 184, 255, .06)); }
.article__cta h3 { margin-bottom: .3rem; }
.article__cta p { color: var(--muted); margin: 0; }
.article__related h2 { font-size: 1.5rem; margin-bottom: 1.2rem; }
.article__related .posts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.article__related .post__body p { display: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
  .nav {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; gap: 0; margin: 0; padding: 10px 20px 20px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s ease;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem; color: var(--text); }
  .burger { display: flex; }
  .burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .burger.is-open span:nth-child(2) { opacity: 0; }
  .burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}
@media (max-width: 760px) {
  .lang__menu { grid-template-columns: 1fr 1fr; width: 420px; }
}
@media (max-width: 1080px) {
  .brokers { grid-template-columns: 1fr; }
  .guide { position: static; }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .hero__grid, .split, .faq-wrap, .partner { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 64px; }
  .calc { grid-template-columns: 1fr; }
  .calc__result { border-inline-start: 0; border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > div:first-child { grid-column: 1 / -1; }
  .posts, .article__related .posts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .hide-sm, .lang__label { display: none; }
  .lang__menu { position: fixed; top: 64px; inset-inline: 16px; width: auto; grid-template-columns: 1fr 1fr; }
  .lang__menu button { padding: .6rem .55rem; font-size: .85rem; }
  .header__actions { gap: .4rem; }
  .stats { gap: 1.25rem; width: 100%; grid-template-columns: repeat(3, 1fr); }
  .stats b { font-size: 1.4rem; }
  .stats span { font-size: .68rem; }
  .compare { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .calc__inputs, .calc__result { padding: 22px; }
  .partner { padding: 28px 22px; }
  .flowcard { padding: 22px; }
  .ticker { margin: 18px -22px -22px; }
  .range output { min-width: 90px; font-size: 1.05rem; }
  .tabs, .seg { width: 100%; }
  .tabs button, .seg button { flex: 1; justify-content: center; padding: .55em .5em; font-size: .82rem; }
  .compare dl > div { flex-direction: column; gap: 4px; }
  .compare dd { text-align: start; }
  .faq details p { padding-inline-start: 20px; }
  .posts, .article__related .posts { grid-template-columns: 1fr; }
  .head--row { flex-direction: column; align-items: flex-start; }
  .article__cta { flex-direction: column; align-items: flex-start; }
  .prose { font-size: 1rem; }
  .prose table { font-size: .85rem; }
  .prose th, .prose td { padding: 10px 8px; }
  .page-hero { padding-top: 48px; }
  .promo { font-size: .8rem; padding-right: 2.2rem; padding-left: 1rem; flex-wrap: wrap; gap: .4rem; }
}

/* ============================================================
   RTL & SCRIPTS
   ============================================================ */
[dir="rtl"] .ticker, [dir="rtl"] .range input, [dir="rtl"] .money, [dir="rtl"] .code b { direction: ltr; }
[dir="rtl"] .money { text-align: end; }
/* số kèm ký hiệu (+, $, %) giữ thứ tự trái→phải */
[dir="rtl"] :is(.stats b, .flowcard__plus, .calc__year b, .range output, .bcard__rate, .compare__total small) { direction: ltr; text-align: end; }
[dir="rtl"] :is(.pill b, .js-stat-traders, #heroAmount, .tabs em) { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .bcard__rate small { margin: 0 .3rem 0 0; }
[dir="rtl"] .arr, [dir="rtl"] .promo__cta::after { display: inline-block; transform: scaleX(-1); }
[dir="rtl"] .hero__free svg, [dir="rtl"] .compare dd { unicode-bidi: plaintext; }
/* letter-spacing / uppercase break cursive & complex scripts */
html:is([lang="ar"], [lang="fa"], [lang="ur"], [lang="ps"], [lang="hi"], [lang="ne"], [lang="bn"], [lang="my"], [lang="dz"], [lang="th"], [lang="zh"], [lang="ja"], [lang="ko"])
  :is(h1, h2, h3, h4, .hero__title, .eyebrow, .stats span, .field > span, .calc__result span, .compare__total span, .cover__tag, .bcard__type, .footer h4, .prose th, .code small, .post__meta) {
  letter-spacing: 0; text-transform: none;
}
html:is([lang="my"], [lang="dz"], [lang="th"], [lang="hi"], [lang="ne"], [lang="bn"], [lang="ur"], [lang="ar"], [lang="fa"], [lang="ps"]) body { line-height: 1.85; }
html:is([lang="my"], [lang="dz"], [lang="th"], [lang="hi"], [lang="ne"], [lang="bn"], [lang="ur"], [lang="ar"], [lang="fa"], [lang="ps"]) :is(h1, h2, h3, .hero__title) { line-height: 1.45; }
html:is([lang="my"], [lang="dz"]) .hero__title { font-size: clamp(2rem, 4.4vw, 3.4rem); }
html[lang="dz"] body { font-size: 17px; }

@media (max-width: 420px) {
  .header__inner { gap: .6rem; }
  .logo { font-size: 1.1rem; gap: .4rem; }
  .logo img { width: 28px; height: 28px; }
  .header__actions { gap: .3rem; }
  .header__actions .btn--sm { padding: .5em .7em; font-size: .82rem; }
  .lang__btn { padding: .45em .5em; }
  .burger { width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   LOGO SÀN · TIN TỨC · CÔNG CỤ
   ============================================================ */
.bmark--img { overflow: hidden; padding: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.bmark--img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.chip__logo { width: 18px; height: 18px; border-radius: 5px; object-fit: contain; flex: none; }
.ticker__track span { display: inline-flex; align-items: center; gap: .4rem; }
.ticker__track img { width: 16px; height: 16px; border-radius: 4px; object-fit: contain; }

/* thẻ bài có ảnh + nhãn ngôn ngữ gốc */
.cover--img { background: var(--surface); }
.cover--img::before { display: none; }
.cover--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover--gold { background: radial-gradient(80% 120% at 30% 0%, rgba(255, 200, 87, .38), transparent 60%), var(--surface); color: var(--gold); }
.cover--forex { background: radial-gradient(80% 120% at 70% 0%, rgba(58, 184, 255, .35), transparent 60%), var(--surface); color: var(--blue); }
.cover--crypto { background: radial-gradient(80% 120% at 50% 0%, rgba(247, 166, 0, .3), transparent 60%), var(--surface); color: #f7a600; }
.cover--market { background: radial-gradient(80% 120% at 20% 0%, rgba(25, 227, 177, .3), transparent 60%), var(--surface); color: var(--mint); }
.cover--education { background: radial-gradient(80% 120% at 80% 0%, rgba(167, 139, 250, .32), transparent 60%), var(--surface); color: #a78bfa; }
.post__lang { font-weight: 700; color: var(--gold); }
.prose .tag { color: var(--blue); }
.empty { padding: 40px 28px; text-align: center; color: var(--muted); }
.tabs--start { margin-inline: 0; flex-wrap: wrap; }

.news-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; align-items: start; }
.posts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fbbox { padding: 22px; position: sticky; top: 88px; }
.fbbox h3 { margin-bottom: .3rem; }
.fbbox__frame { margin: 14px 0; border-radius: 12px; overflow: hidden; background: #fff; height: 130px; }
.fbbox__frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* công cụ */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.tgrid--calc { grid-template-columns: minmax(0, 1fr) 340px; }
.tcard { padding: 26px; }
.tcard h2 { font-size: 1.45rem; margin-bottom: .3rem; }
.tcard > .muted { margin-bottom: 1.1rem; font-size: .94rem; }
.tcard--rebate { position: sticky; top: 88px; }
.tcard--rebate h3 { margin: .4rem 0 .5rem; }
.tnote { font-size: .8rem; color: var(--muted); margin: 14px 0 0; line-height: 1.6; }
.gwrap { overflow-x: auto; }
.gtable { width: 100%; border-collapse: collapse; font-size: .9rem; }
.gtable th { text-align: start; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 0 10px 10px; border-bottom: 1px solid var(--line); }
.gtable td { padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.gtable td:first-child { white-space: normal; font-weight: 600; }
.gtable tr.is-world td { color: var(--gold); }
.gtable .gnum { font-family: var(--mono); text-align: end; }
.gtable th:not(:first-child) { text-align: end; }
.chg { font-size: .8rem; color: var(--muted); }
.chg.is-up { color: var(--mint); }
.chg.is-down { color: var(--red); }
.skeleton { height: 320px; border-radius: 12px; background: linear-gradient(90deg, var(--surface), var(--surface-2), var(--surface)); background-size: 200% 100%; animation: sk 1.2s linear infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.tv { min-height: 520px; }
.tv--chart { height: 560px; min-height: 0; }
.tv .tradingview-widget-container, .tv .tradingview-widget-container__widget { height: 100%; }
#tvCalendar { min-height: 560px; }

.cform { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.tfield[hidden] { display: none; }
.tfield span { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: .4rem; }
.tfield input, .tfield select { width: 100%; padding: .7em .85em; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: inherit; font-family: var(--mono); font-size: .95rem; }
.tfield input:focus, .tfield select:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px rgba(25, 227, 177, .15); }
.cout { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.cres { flex: 1 1 160px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); }
.cres small { display: block; color: var(--muted); font-size: .78rem; margin-bottom: .25rem; }
.cres b { font-family: var(--mono); font-size: 1.15rem; }
.cres--big { border-color: rgba(25, 227, 177, .4); background: rgba(25, 227, 177, .07); }
.cres--big b { font-size: 1.6rem; color: var(--mint); }
.cres.is-down { border-color: rgba(255, 107, 122, .4); background: rgba(255, 107, 122, .07); }
.cres.is-down b { color: var(--red); }
[dir="rtl"] .cres b, [dir="rtl"] .gtable .gnum, [dir="rtl"] .tfield input { direction: ltr; unicode-bidi: isolate; }

@media (max-width: 1080px) {
  .news-layout, .tgrid, .tgrid--calc { grid-template-columns: minmax(0, 1fr); }
  .fbbox, .tcard--rebate { position: static; }
  .fbbox__frame { max-width: 500px; }
}
@media (max-width: 760px) {
  .posts--2 { grid-template-columns: minmax(0, 1fr); }
  .tcard { padding: 20px 16px; }
  .cform { grid-template-columns: minmax(0, 1fr); }
  .gtable { font-size: .82rem; }
  .gtable td, .gtable th { padding-inline: 6px; }
  .tv--chart { height: 420px; }
}
@media (max-width: 760px) { .gtable th:nth-child(4), .gtable td:nth-child(4) { display: none; } .gtable td:first-child { min-width: 7.5em; } }

/* Nhận định vàng hôm nay + nhãn xu hướng */
.today { padding: 24px 26px; border-color: rgba(255, 200, 87, .28); background: radial-gradient(120% 140% at 0% 0%, rgba(255, 200, 87, .12), transparent 55%), var(--surface); }
.today__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.today__head .eyebrow { color: var(--gold); margin: 0; }
.today__date { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.today__body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; }
.today__body > div:only-child { grid-column: 1 / -1; }
.today__img { width: 180px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.today__body h3 { font-size: 1.35rem; margin: .5rem 0 .4rem; line-height: 1.3; }
.today__body p { color: var(--muted); margin-bottom: .8rem; }
.today__risk { font-size: .78rem; color: var(--muted); margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.today--home { margin-bottom: 20px; }
.news-layout + .tabs { margin-top: 36px; }
.bias { display: inline-flex; align-items: center; gap: .3em; font-size: .78rem; font-weight: 700; padding: .25em .65em; border-radius: 999px; border: 1px solid; white-space: nowrap; vertical-align: middle; }
.bias--up { color: var(--mint); border-color: rgba(25, 227, 177, .45); background: rgba(25, 227, 177, .1); }
.bias--down { color: var(--red); border-color: rgba(255, 107, 122, .45); background: rgba(255, 107, 122, .1); }
.bias--side { color: var(--gold); border-color: rgba(255, 200, 87, .45); background: rgba(255, 200, 87, .1); }
.cover__bias { position: absolute; inset-inline-end: 14px; top: 14px; }
.cover__bias .bias { background: rgba(6, 10, 19, .8); }
.note--warn { background: rgba(255, 200, 87, .07); border-color: rgba(255, 200, 87, .3); font-size: .9rem; }
@media (max-width: 640px) {
  .today { padding: 20px 16px; }
  .today__body { grid-template-columns: minmax(0, 1fr); }
  .today__img { width: 100%; }
}
