/* MaxBet — app.css
   Single mobile-first stylesheet. Colours come from the logo: navy #182151, amber #ffa600.
   Breakpoints: 640px (large phone / small tablet), 960px (desktop). */

:root {
  --navy-950: #0b1030;
  --navy-900: #111843;
  --navy: #182151;
  --navy-700: #26307a;
  --navy-100: #e6e9f5;
  --amber: #ffa600;
  --amber-600: #e08f00;
  --amber-100: #fff3d6;

  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #f8f9fd;
  --text: #151a3a;
  --muted: #5b6385;
  --border: #e2e6f1;

  --good: #0ca30c;
  --good-ink: #067a06;
  --good-bg: #e5f6e5;
  --critical: #d03b3b;
  --critical-bg: #fbe9e9;
  --pending: #8a93b2;
  --pending-bg: #eef0f6;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(17, 24, 67, .06), 0 1px 3px rgba(17, 24, 67, .08);
  --shadow: 0 6px 24px rgba(17, 24, 67, .08);
  --shadow-lg: 0 18px 48px rgba(11, 16, 48, .22);

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 60px;
  --bottomnav-h: 64px;
  --gutter: 16px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  padding-bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom));
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--amber-600); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; font-weight: 700; color: var(--navy); }
h1 { font-size: clamp(1.75rem, 6vw, 2.75rem); }
h2 { font-size: clamp(1.35rem, 4.5vw, 2rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 560px; }
.section { padding: 32px 0; }
.section__head { margin-bottom: 20px; }
.section__head p { color: var(--muted); margin: 0; }
.eyebrow { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--amber-600); margin-bottom: 6px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: .95rem; line-height: 1.2;
  cursor: pointer; text-align: center; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn--amber { background: var(--amber); color: var(--navy-950); }
.btn--amber:hover { background: var(--amber-600); color: var(--navy-950); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-700); color: #fff; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn--light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.25); }
.btn--light:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn--sm { min-height: 36px; padding: 6px 14px; font-size: .85rem; }
.btn--block { width: 100%; }
.btn .spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--amber-100); color: var(--navy-950);
  border: 1px dashed var(--amber-600); font-weight: 600; font-size: .85rem; cursor: pointer;
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header__inner { height: 100%; display: flex; align-items: center; gap: 16px; }
.header__logo img { height: 34px; width: auto; }
.header__nav { display: none; margin-left: auto; gap: 4px; }
.header__nav a {
  padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 500;
}
.header__nav a:hover { color: var(--navy); background: var(--surface-2); }
.header__nav a.is-active { color: var(--navy); background: var(--navy-100); font-weight: 600; }
.header__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.usermenu { position: relative; }
.usermenu__toggle {
  display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; cursor: pointer;
}
.usermenu__avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--amber); color: var(--navy-950); font-weight: 700; font-size: .85rem;
}
.usermenu__name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: .9rem; }
.usermenu__panel {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 8px; display: none;
}
.usermenu.is-open .usermenu__panel { display: block; }
.usermenu__panel .plan-pill { margin: 4px 8px 8px; }
.usermenu__panel a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--text); }
.usermenu__panel a:hover { background: var(--surface-2); }

.plan-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.plan-pill--on { background: var(--good-bg); color: var(--good-ink); }
.plan-pill--off { background: var(--pending-bg); color: var(--muted); }

/* ---------- Bottom nav (mobile) ---------- */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--bottomnav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface); border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(17,24,67,.06);
}
.bottomnav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--muted); font-size: .7rem; font-weight: 500;
}
.bottomnav i { font-size: 1.3rem; line-height: 1; }
.bottomnav a.is-active { color: var(--navy); font-weight: 600; }
.bottomnav a.is-active i { color: var(--amber-600); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, rgba(11,16,48,.94), rgba(24,33,81,.88)), url("../img/bg.jpg") center / cover;
  padding: 36px 0 44px;
}
.hero::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,166,0,.35), transparent 70%); pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; display: grid; gap: 24px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 12px; }
.hero h1 span { color: var(--amber); }
.hero p { color: rgba(255,255,255,.8); max-width: 560px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero__art { display: none; }
.hero--compact { padding: 28px 0 32px; }
.hero--compact p { margin-bottom: 0; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 22px; max-width: 460px; }
.stat-row div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-sm); padding: 10px; }
.stat-row strong { display: block; font-size: 1.15rem; color: var(--amber); }
.stat-row span { font-size: .72rem; color: rgba(255,255,255,.75); }

/* ---------- Cards / layout ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 20px; }
.card + .card { margin-top: 16px; }
.card__title { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.card__title h2, .card__title h3 { margin: 0; }
.grid-2 { display: grid; gap: 20px; }
.grid-2 > .card + .card { margin-top: 0; }
.lift { margin-top: -24px; position: relative; z-index: 2; }

/* ---------- Tabs (segmented) ---------- */
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: 1 0 auto; min-height: 40px; padding: 8px 14px; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted); font-weight: 600; font-size: .88rem; cursor: pointer; white-space: nowrap;
}
.tabs button[aria-selected="true"], .tabs button[aria-pressed="true"] { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.tabs--sm button { min-height: 34px; padding: 6px 12px; font-size: .8rem; }
.table-toggle { margin-top: 12px; font-size: .85rem; }
.table-toggle summary { cursor: pointer; color: var(--navy-700); font-weight: 600; }
.table-toggle table { width: 100%; border-collapse: collapse; margin-top: 8px; font-variant-numeric: tabular-nums; }
.table-toggle th, .table-toggle td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.tabs button .bi-lock-fill { font-size: .75rem; opacity: .7; }
.tabpanel { padding-top: 16px; }
.day-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .85rem; margin-bottom: 12px; }
.day-label i { color: var(--amber-600); }

/* ---------- Slip card ---------- */
.slip-list { display: grid; gap: 14px; }
.slip {
  position: relative; overflow: hidden; color: #fff;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='60'%3E%3Ctext x='0' y='38' font-family='Arial' font-weight='700' font-size='18' fill='white' fill-opacity='.05' transform='rotate(-12 80 30)'%3EMAXBET%3C/text%3E%3C/svg%3E"),
    linear-gradient(140deg, var(--navy-900), var(--navy-700));
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.slip::before {
  content: ""; position: absolute; width: 180px; height: 180px; right: -60px; top: -70px; border-radius: 50%;
  background: rgba(255,166,0,.16);
}
.slip > * { position: relative; }
.slip__head, .slip__body, .slip__foot { padding: 14px 16px; }
.slip__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px dashed rgba(255,255,255,.18); }
.slip__bookie { display: flex; align-items: center; gap: 10px; font-weight: 600; min-width: 0; }
.slip__bookie span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slip__bookie img { width: 64px; height: 28px; object-fit: contain; background: #fff; border-radius: 6px; padding: 2px 4px; flex: none; }
.slip__body { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.slip__label { display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.slip__value { display: block; font-size: 1.5rem; letter-spacing: .04em; font-variant-numeric: tabular-nums; color: var(--amber); word-break: break-all; line-height: 1.2; }
.slip__foot { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; background: rgba(0,0,0,.18); }
.slip__odds strong { font-size: 1.15rem; }
.slip__promo .chip { margin-top: 2px; }
.slip__join { margin-left: auto; color: #fff; font-weight: 600; font-size: .85rem; display: inline-flex; align-items: center; gap: 6px; }
.slip__join:hover { color: var(--amber); }

.status { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; flex: none; }
.status--won { background: var(--good-bg); color: var(--good-ink); }
.status--expired { background: var(--critical-bg); color: var(--critical); }
.status--pending { background: rgba(255,255,255,.14); color: #fff; }

/* ---------- Empty / locked states ---------- */
.empty { text-align: center; padding: 28px 16px; border: 1px dashed var(--border); border-radius: var(--radius-lg); background: var(--surface-2); }
.empty__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; font-size: 1.5rem; background: var(--navy-100); color: var(--navy); margin-bottom: 12px; }
.empty--locked .empty__icon { background: var(--amber-100); color: var(--amber-600); }
.empty p { color: var(--muted); max-width: 380px; margin: 0 auto 16px; }

/* ---------- Socials ---------- */
.socials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.social {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  border-radius: 999px; font-weight: 600; font-size: .88rem; color: #fff;
}
.social:hover { color: #fff; filter: brightness(1.08); }
.social--telegram { background: #229ed9; }
.social--whatsapp { background: #1fa855; }
.social--x { background: #111; }
.hero .socials { max-width: 460px; }
/* Small phones: icon-only buttons (labels stay available to screen readers via aria-label) */
@media (max-width: 639px) {
  .social span { display: none; }
  .social i { font-size: 1.2rem; }
}

/* ---------- Wekabet ads ---------- */
.weka { display: grid; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card + .weka, .weka + .card, .weka + .apk, .card + .apk, .apk + .card { margin-top: 16px; }
.weka__media { display: block; background: var(--navy-950); }
.weka__media img, .weka__media video { display: block; width: 100%; height: auto; }
.weka__media img { aspect-ratio: 1 / 1; object-fit: cover; }
.weka__media video { aspect-ratio: 16 / 9; object-fit: cover; }
.weka__body { padding: 18px 20px 20px; }
.weka__body h3 { margin-bottom: 6px; }
.weka__body p { margin-bottom: 14px; font-size: .92rem; }
.weka__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.weka__ctas .btn { flex: 1 1 140px; }

.apk {
  display: grid; gap: 14px; align-items: center; padding: 20px; color: #fff;
  background: linear-gradient(135deg, var(--navy-950), var(--navy-700)); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.apk__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: #3ddc84; color: var(--navy-950); font-size: 1.6rem; }
.apk h3 { color: #fff; margin-bottom: 4px; }
.apk p { margin: 0; color: rgba(255,255,255,.78); font-size: .9rem; }
.apk .eyebrow { color: var(--amber); }

/* ---------- Features ---------- */
.features { display: grid; gap: 12px; }
.feature { display: flex; gap: 14px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.feature__icon { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--navy-100); color: var(--navy); font-size: 1.2rem; }
.feature h3 { font-size: 1rem; margin-bottom: 4px; }
.feature p { margin: 0; color: var(--muted); font-size: .9rem; }
.about-art { max-width: 340px; margin: 0 auto; }

/* ---------- History chart ---------- */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.kpi { padding: 12px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); }
.kpi span { display: block; font-size: .72rem; color: var(--muted); }
.kpi strong { display: block; font-size: 1.35rem; color: var(--navy); font-variant-numeric: tabular-nums; }
.chart { width: 100%; height: 300px; }
.chart-note { font-size: .8rem; color: var(--muted); margin: 8px 0 0; }

/* ---------- Pricing ---------- */
.region { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; }
.region button { border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: .85rem; color: var(--muted); cursor: pointer; min-height: 38px; }
.region button.is-active { background: var(--navy); color: #fff; }
.plans { display: grid; gap: 16px; margin-top: 20px; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 24px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.plan--featured { border: 2px solid var(--amber); box-shadow: var(--shadow); }
.plan--active { border: 2px solid var(--good); }
.plan__badge { position: absolute; top: -12px; left: 20px; padding: 3px 12px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--amber); color: var(--navy-950); }
.plan--active .plan__badge { background: var(--good); color: #fff; }
.plan h3 { margin: 0; }
.plan__price { font-size: 2rem; font-weight: 700; color: var(--navy); line-height: 1; }
.plan__price small { font-size: .9rem; font-weight: 500; color: var(--muted); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.plan li { display: flex; gap: 8px; font-size: .92rem; }
.plan li i { color: var(--good); }
.plan .btn { margin-top: auto; }
.plan__meta { font-size: .82rem; color: var(--good-ink); font-weight: 600; }
.pay-methods { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-methods span { padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .82rem; font-weight: 500; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: .88rem; }
.input {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
  font-size: 16px; /* prevents iOS zoom */
}
.input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(24,33,81,.12); }
.input[readonly] { background: var(--surface-2); color: var(--muted); }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 48px; }
.input-wrap button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: transparent; color: var(--muted); cursor: pointer; border-radius: 8px; }
.hint { font-size: .8rem; color: var(--muted); }
.hint--ok { color: var(--good-ink); }
.hint--bad { color: var(--critical); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--navy); flex: none; }
.form-links { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: .88rem; }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); background: var(--amber-100); color: var(--navy-950); font-size: .9rem; }
.notice i { font-size: 1.2rem; color: var(--amber-600); }
.notice--info { background: var(--navy-100); }
.notice--info i { color: var(--navy); }

/* ---------- Checkout ---------- */
.steps { display: flex; gap: 8px; margin-bottom: 18px; }
.steps span { flex: 1; height: 4px; border-radius: 4px; background: var(--border); }
.steps span.is-done { background: var(--amber); }
.summary { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: var(--radius); background: var(--navy); color: #fff; margin-bottom: 18px; }
.summary strong { color: var(--amber); font-size: 1.3rem; }
.summary span { display: block; font-size: .78rem; color: rgba(255,255,255,.7); }
.pending-box { text-align: center; padding: 8px 0; }
.pending-box .spinner-lg { width: 48px; height: 48px; margin: 0 auto 16px; border: 4px solid var(--navy-100); border-top-color: var(--amber); border-radius: 50%; animation: spin .9s linear infinite; }
.pending-box .actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: flex-end; justify-content: center;
  background: rgba(11,16,48,.55);
}
.modal.is-open { display: flex; animation: fade .15s ease-out; }
.modal__dialog {
  width: 100%; max-height: 92vh; overflow-y: auto;
  background: var(--surface); border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 20px var(--gutter) calc(20px + env(safe-area-inset-bottom));
  box-shadow: var(--shadow-lg); animation: rise .2s ease-out;
}
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.modal__head h2 { font-size: 1.2rem; margin: 0; }
.modal__close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--surface-2); cursor: pointer; font-size: 1.1rem; }
.modal__dialog h3 { margin-top: 18px; }
.modal__dialog ul { padding-left: 20px; }
.modal__foot { margin-top: 16px; font-size: .82rem; color: var(--muted); }
body.has-modal { overflow: hidden; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(24px); opacity: .5; } }

/* ---------- Toast ---------- */
.toasts { position: fixed; z-index: 200; left: var(--gutter); right: var(--gutter); top: calc(var(--header-h) + 10px); display: grid; gap: 8px; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--radius); background: var(--navy-950); color: #fff; box-shadow: var(--shadow-lg);
  font-size: .9rem; animation: rise .2s ease-out;
}
.toast i { font-size: 1.1rem; }
.toast--success i { color: #5fd35f; }
.toast--error i { color: #ff8a8a; }
.toast--info i { color: var(--amber); }

/* ---------- Support FAB ---------- */
.fab {
  position: fixed; right: var(--gutter); bottom: calc(var(--bottomnav-h) + 16px + env(safe-area-inset-bottom)); z-index: 55;
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: #229ed9; color: #fff; font-size: 1.4rem; box-shadow: var(--shadow-lg); display: grid; place-items: center;
}

/* ---------- Footer ---------- */
.footer { margin-top: 32px; background: var(--navy-950); color: rgba(255,255,255,.72); padding: 32px 0 20px; font-size: .9rem; }
.footer__grid { display: grid; gap: 24px; }
.footer__logo { display: inline-block; background: #fff; border-radius: 12px; padding: 8px 12px; margin-bottom: 12px; }
.footer__logo img { height: 30px; width: auto; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 10px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer a { color: rgba(255,255,255,.8); }
.footer a:hover { color: var(--amber); }
.footer__legal { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; font-size: .8rem; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); font-size: 1.05rem; }
.age-badge { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--critical); color: #fff; font-weight: 700; font-size: .75rem; }

/* ---------- ≥ 640px ---------- */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .section { padding: 48px 0; }
  .card { padding: 28px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .modal { align-items: center; padding: 24px; }
  .modal__dialog { max-width: 480px; border-radius: var(--radius-lg); padding: 24px; }
  .toasts { left: auto; width: 360px; }
  .chart { height: 340px; }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
  .slip__value { font-size: 1.75rem; }
  .weka:not(.weka--video) { grid-template-columns: minmax(0, 300px) 1fr; align-items: center; }
  .weka__body { padding: 24px 28px; }
  .apk { grid-template-columns: auto 1fr auto; padding: 24px 28px; }
}

/* ---------- ≥ 960px ---------- */
@media (min-width: 960px) {
  :root { --header-h: 72px; }
  body { padding-bottom: 0; }
  .bottomnav { display: none; }
  .fab { bottom: 24px; right: 24px; }
  .header__logo img { height: 40px; }
  .header__nav { display: flex; }
  .header__actions { margin-left: 16px; }
  .hero { padding: 64px 0 80px; }
  .hero--compact { padding: 48px 0 56px; }
  .hero__inner { grid-template-columns: 1.1fr .9fr; }
  .hero__art { display: block; max-width: 420px; justify-self: end; }
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
}

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