/* ============================================================
   Player site theme — LUXEGAMING-style dark-blue casino skin.
   Palette sampled from the legacy public/ production theme:
     bg #050d1a · panel #071126 · brand #1b6fd4 · accent #3d9de8
   Layout: fixed left icon sidebar + offset top bar / main / footer.
   ============================================================ */
:root {
  --bg:        #050d1a;
  --bg-2:      #07111f;
  --panel:     #0a1830;
  --panel-2:   #0d1f3d;
  --line:      #16335e;
  --brand:     #1b6fd4;
  --brand-d:   #0f2a5a;
  --accent:    #3d9de8;
  --text:      #e8f4ff;
  --muted:     #7e93b5;
  --good:      #25a36b;
  --sidebar-w: 232px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(27,111,212,.18), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 18px; }

/* ============================================================
   Mobile off-canvas drawer (hamburger). Hidden off-screen; slides in on .open.
   Desktop uses the horizontal .top-nav instead (hamburger hidden there).
   ============================================================ */
.primary-nav {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--sidebar-w);
  background: linear-gradient(180deg, #08152b, #050d1a);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  z-index: 1000; overflow-y: auto;
  transform: translateX(-100%); transition: transform .25s ease;
}
.primary-nav.open { transform: translateX(0); }
.primary-nav::-webkit-scrollbar { width: 6px; }
.primary-nav::-webkit-scrollbar-thumb { background: #14294b; border-radius: 3px; }

.logo { font-weight: 800; letter-spacing: .5px; font-size: 22px; color: var(--text); }
.logo span { color: var(--accent); }
.logo-img { height: 34px; width: auto; max-width: 180px; display: block; object-fit: contain; }
.logo-side .logo-img { height: 38px; max-width: 190px; }
.logo-side {
  display: block; padding: 18px 20px; font-size: 21px;
  border-bottom: 1px solid var(--line);
  text-shadow: 0 0 18px rgba(61,157,232,.45);
}

.side-menu { display: flex; flex-direction: column; padding: 10px 0 24px; }
.side-menu a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 20px; color: #c4d4ec; font-weight: 600; font-size: 14px;
  border-left: 3px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.side-menu a .ico {
  width: 22px; text-align: center; font-size: 16px; flex: 0 0 22px;
  filter: drop-shadow(0 0 6px rgba(61,157,232,.35));
}
.side-menu a:hover { background: rgba(27,111,212,.12); color: #fff; }
.side-menu a.active {
  color: #fff; border-left-color: var(--accent);
  background: linear-gradient(90deg, rgba(27,111,212,.30), transparent);
}

/* Member-only menu entries (wallet/deposit/withdraw/bonus/account): hidden until
   authenticated, revealed when app.js sets `is-authed` on <body>. Matches the
   uatmeta.com behaviour (logged-out sees game categories only). */
.member-only { display: none !important; }
body.is-authed .member-only { display: flex !important; }

/* mobile drawer backdrop */
.nav-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 999;
}

/* ============================================================
   Top bar
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(5,13,26,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 22px; max-width: 1180px; margin: 0 auto;
}
.logo-top { display: block; }             /* header logo, all sizes */
.hamburger {
  display: none; background: none; border: 0; color: var(--text);
  font-size: 24px; cursor: pointer; line-height: 1;
}
.header-right { margin-left: auto; display: flex; align-items: center; }

/* ============================================================
   Top category nav (horizontal) — the uatmeta.com top menu
   ============================================================ */
.top-nav {
  background: linear-gradient(180deg, #08182e, #061322);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.top-nav-inner {
  display: flex; align-items: stretch; gap: 2px;
  max-width: 1180px; margin: 0 auto; padding: 0 14px;
  overflow-x: auto; scrollbar-width: none;
}
.top-nav-inner::-webkit-scrollbar { display: none; }
.top-nav-inner a {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 12px 16px; color: #cdddf2; font-weight: 700; font-size: 13.5px;
  text-transform: uppercase; letter-spacing: .3px;
  border-bottom: 3px solid transparent; transition: color .15s, border-color .15s, background .15s;
}
.top-nav-inner a .ico { font-size: 15px; filter: drop-shadow(0 0 6px rgba(29,160,203,.4)); }
.top-nav-inner a:hover { color: #fff; background: rgba(29,160,203,.12); }
.top-nav-inner a.active { color: #fff; border-bottom-color: var(--accent); }

/* Mega-menu dropdowns (game-provider menus) */
.top-nav-inner .nav-item { position: relative; display: inline-flex; }
.nav-dropdown {
  display: none; position: absolute; top: 100%; left: 0; z-index: 950;
  min-width: 220px; padding: 10px; border: 1px solid var(--line); border-top: 2px solid var(--accent);
  background: #08182e; box-shadow: 0 18px 40px rgba(0,0,0,.55); border-radius: 0 0 10px 10px;
  grid-template-columns: 1fr; gap: 2px;
}
.nav-dropdown-wide { min-width: 460px; grid-template-columns: repeat(2, 1fr); }
.nav-item.has-dropdown:hover .nav-dropdown,
.nav-item.has-dropdown:focus-within .nav-dropdown { display: grid; }
.nav-dropdown a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px; color: #cdddf2; font-size: 12.5px; font-weight: 600;
  text-transform: none; letter-spacing: 0; border-bottom: 0; border-radius: 7px;
}
.nav-dropdown a:hover { background: rgba(29,160,203,.14); color: #fff; }
.nav-dropdown a .count { color: var(--muted); font-size: 11px; font-weight: 500; }
.nav-dropdown .dd-empty { padding: 10px 12px; color: var(--muted); font-size: 12px; }

.login-form { display: flex; gap: 8px; align-items: center; }
.login-form input {
  padding: 8px 11px; border-radius: 8px; border: 1px solid var(--line);
  background: #03101f; color: var(--text); width: 140px; font-size: 13px;
}
.login-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(61,157,232,.25); }
.login-form .forgot { color: var(--muted); font-size: 12px; }

/* ============================================================
   Minimal framework primitives (replaces the Bootstrap CDN — the only Bootstrap
   classes the templates actually used: .btn/.btn-sm, .alert*, and a few utilities).
   Removing the ~230KB render-blocking external stylesheet is a large LCP win.
   ============================================================ */
/* The templates toggle visibility via the `hidden` attribute (account pill, login
   form, running bar, OTP steps …). Bootstrap's reboot used to enforce this; keep it
   so author display rules (e.g. .login-form{display:flex}) can't override it. */
[hidden] { display: none !important; }

.btn {
  display: inline-block; font-weight: 600; text-align: center; vertical-align: middle;
  cursor: pointer; user-select: none; border: 1px solid transparent;
  padding: 8px 16px; font-size: 14px; line-height: 1.5; border-radius: 8px;
  text-decoration: none; transition: filter .15s, background .15s, border-color .15s;
}
.btn:focus { outline: none; }
.btn:disabled { opacity: .6; cursor: default; }
.btn-sm { padding: 5px 12px; font-size: 13px; border-radius: 7px; }

.alert { padding: 12px 16px; border: 1px solid transparent; border-radius: 10px; margin-bottom: 14px; font-size: 14px; }
.alert-danger  { background: #2a1115; border-color: #5a2530; color: #ffb4b4; }
.alert-success { background: #0f2a1c; border-color: #1f5a3c; color: #a7e0c4; }

.d-none { display: none !important; }
.d-flex { display: flex !important; }
.w-100  { width: 100% !important; }
.gap-2  { gap: .5rem !important; }
.mt-3   { margin-top: 1rem !important; }

/* buttons */
.btn-login, .btn-register, .btn-logout {
  border: 0; border-radius: 8px; font-weight: 700; font-size: 13px;
  padding: 8px 16px; cursor: pointer; color: #fff; white-space: nowrap;
}
.btn-login  { background: linear-gradient(180deg, var(--brand), var(--brand-d)); box-shadow: 0 4px 14px rgba(27,111,212,.4); }
.btn-login:hover { filter: brightness(1.08); }
.btn-register { background: linear-gradient(180deg, #f0a823, #c9810a); color: #1a1206; box-shadow: 0 4px 14px rgba(240,168,35,.35); }
.btn-register:hover { filter: brightness(1.06); }
.btn-logout { background: #142a4d; border: 1px solid var(--line); }
.btn-logout:hover { background: #1b3a68; }
.mobile-login { display: none; }   /* injected by app.js; shown on phones only */

.account-pill { display: flex; gap: 12px; align-items: center; }
.account-pill .acc-name a, .account-link { color: var(--text); font-weight: 600; }
.account-pill .acc-name a:hover { color: var(--accent); }
.account-pill .balance {
  color: #ffd479; font-weight: 800;
  background: #0b1f3c; border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px;
}
.login-error { color: #ff9a9a; font-size: 12px; width: 100%; margin-top: 4px; }

/* ============================================================
   Page shell (offset by sidebar)
   ============================================================ */
main { padding: 22px 0 90px; }
.running-bar {
  display: flex; align-items: center; gap: 8px;
  background: #08182f; border-bottom: 1px solid var(--line);
  padding: 8px 22px; overflow: hidden; white-space: nowrap;
}
.running-icon { flex: 0 0 auto; }
.running-text { display: inline-block; color: #cfe0f5; font-size: 13px; white-space: nowrap; animation: marquee 22s linear infinite; }
@keyframes marquee { 0% { transform: translateX(60vw); } 100% { transform: translateX(-100%); } }

/* Member-area sub-nav tabs (injected by app.js on /web member pages), mirroring
   the legacy /secure member area: Deposit / Withdraw / Bonus / History / Profile. */
.member-tabs {
  display: flex; gap: 4px; margin: 4px 0 20px; overflow-x: auto;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.member-tabs a {
  flex: 0 0 auto; padding: 11px 20px; color: var(--muted); font-weight: 700;
  font-size: 14px; border-bottom: 3px solid transparent; margin-bottom: -1px;
  transition: color .15s, border-color .15s;
}
.member-tabs a:hover { color: #fff; }
.member-tabs a.active { color: #fff; border-bottom-color: var(--accent); }

.rail-title, .page-title {
  font-size: 16px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase;
  margin: 26px 0 14px; padding-left: 12px; position: relative; color: #eaf2ff;
}
.rail-title::before, .page-title::before {
  content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 4px;
  border-radius: 3px; background: linear-gradient(180deg, var(--accent), var(--brand));
}

/* ============================================================
   Hero banners + jackpot ticker
   ============================================================ */
.banners { display: grid; gap: 14px; margin-top: 4px; }
.banners img, .banners a { width: 100%; border-radius: 14px; display: block; }

/* Hero carousel (built by cms.js) */
/* Fixed aspect-ratio reserves layout space before the image loads (zero CLS).
   Ratios are sensible defaults for hero banners; tune per tenant if needed. */
.banner-carousel { position: relative; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.45); aspect-ratio: 1140 / 360; }
.banner-track { display: flex; transition: transform .45s ease; height: 100%; }
.banner-slide { flex: 0 0 100%; width: 100%; height: 100%; display: block; }
.banner-slide img { width: 100%; height: 100%; display: block; border-radius: 0; object-fit: cover; }
.banner-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(5,13,26,.55); color: #fff; font-size: 24px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.banner-arrow:hover { background: rgba(27,111,212,.85); }
.banner-arrow.prev { left: 12px; }
.banner-arrow.next { right: 12px; }
.banner-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.banner-dot { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: rgba(255,255,255,.45); transition: width .2s, background .2s; }
.banner-dot.active { background: var(--accent); width: 22px; border-radius: 5px; }
@media (max-width: 768px) { .banner-arrow { display: none; } }

.jackpot {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  margin: 16px 0 4px; padding: 14px 20px; border-radius: 14px;
  background: linear-gradient(90deg, #0a2143, #0f3a7a, #0a2143);
  border: 1px solid #245fad;
  box-shadow: 0 0 28px rgba(27,111,212,.45), inset 0 0 24px rgba(61,157,232,.25);
}
.jackpot-label { font-weight: 800; letter-spacing: 2px; color: #9fd0ff; text-transform: uppercase; font-size: 13px; }
.jackpot-amount {
  font-family: "Courier New", monospace; font-weight: 800;
  font-size: clamp(20px, 3.4vw, 34px); color: #ffe9a8;
  text-shadow: 0 0 14px rgba(255,205,80,.65); letter-spacing: 1px;
}

/* ============================================================
   Rails + game cards
   ============================================================ */
.rail { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.rail::-webkit-scrollbar { height: 8px; }
.rail::-webkit-scrollbar-thumb { background: #14294b; border-radius: 4px; }
.rail .card { flex: 0 0 158px; scroll-snap-align: start; }

/* Horizontal-rail scroll arrows (injected by app.js, desktop only) */
.rail-viewport { position: relative; }
.rail-arrow {
  position: absolute; top: calc(50% - 5px); transform: translateY(-50%); z-index: 5;
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(8,21,43,.92); color: #fff; font-size: 22px; cursor: pointer;
  display: none; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,.4);
}
.rail-viewport.rail-scrollable .rail-arrow { display: flex; }
.rail-arrow.prev { left: -6px; }
.rail-arrow.next { right: -6px; }
.rail-arrow:hover { background: rgba(27,111,212,.95); }
.rail-arrow:disabled { opacity: .3; cursor: default; }
@media (max-width: 768px) { .rail-arrow { display: none !important; } }

.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.provider-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 14px; }
.promo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }

.card, .card-wrap {
  position: relative; background: var(--panel); border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); transition: transform .15s, border-color .15s, box-shadow .15s;
}
.card:hover, .card-wrap:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 12px 26px rgba(0,0,0,.5); }
.card img { width: 100%; display: block; aspect-ratio: 1/1; object-fit: cover; }
.card .card-name { padding: 9px 10px; font-size: 13px; font-weight: 600; color: #dbe7f7; }
.rtp-badge {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  background: linear-gradient(180deg, #f0a823, #c9810a); color: #1a1206;
  font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 6px;
}

.provider-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 22px 10px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; transition: border-color .15s, transform .15s, box-shadow .15s;
}
.provider-tile:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0,0,0,.45); }
.provider-name { color: #eaf2ff; font-weight: 700; font-size: 15px; text-align: center; }
.provider-count { color: var(--muted); font-size: 12px; }

.promo-card { display: block; color: inherit; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: transform .15s, border-color .15s; }
.promo-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.promo-card img { width: 100%; display: block; }
.promo-card .promo-name { font-weight: 700; margin: 10px 12px 4px; }
.promo-card .promo-menu { color: var(--muted); font-size: 12px; margin: 0 12px 12px; }

/* Promotion landing page article (server-rendered operator HTML) */
.promo-article { color: #cfe0f5; line-height: 1.7; margin: 8px 0 24px; }
.promo-article img { max-width: 100%; height: auto; border-radius: 10px; }
.promo-article h1, .promo-article h2, .promo-article h3 { color: #eaf2ff; }
.promo-article a { color: var(--accent); }
.promo-cta { margin: 4px 0 50px; }

/* ============================================================
   Service row + payment strip
   ============================================================ */
.service-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.service-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line);
  border-radius: 14px; padding: 18px 20px;
}
.service-card h3 { margin: 0 0 12px; font-size: 14px; text-transform: uppercase; letter-spacing: .5px; color: #bcd2f0; }
.service-line { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed #133058; font-size: 14px; }
.service-line:last-child { border-bottom: 0; }
.service-line .badge-time { background: var(--good); color: #fff; border-radius: 20px; padding: 3px 12px; font-weight: 700; font-size: 12px; }

.banks { display: flex; flex-wrap: wrap; gap: 10px; }
.bank-chip { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; font-size: 13px; color: #cfe0f5; }

/* ============================================================
   Wallet / forms / tables
   ============================================================ */
.container.narrow { max-width: 560px; }
.wallet-balance {
  background: linear-gradient(135deg, #103a78, #0a1f3c); border: 1px solid #245fad;
  border-radius: 16px; padding: 24px 26px; margin: 16px 0 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,.4), inset 0 0 26px rgba(27,111,212,.18);
}
.wallet-label { color: #acc6ea; font-size: 13px; }
.wallet-amount { color: #ffe9a8; font-size: 32px; font-weight: 800; margin-top: 6px; text-shadow: 0 0 14px rgba(255,205,80,.4); }
.wallet-sub { color: var(--muted); font-size: 12px; margin-top: 6px; }
.wallet-actions { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }

.wallet-filter { display: flex; gap: 14px; align-items: end; flex-wrap: wrap; margin: 10px 0 14px; }
.wallet-filter label { color: var(--muted); font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.wallet-filter input { background: #03101f; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 7px 10px; }

.form-card { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin-top: 14px; }
.form-title { color: #eaf2ff; font-size: 16px; margin: 0 0 16px; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.form-control, .form-card .form-control {
  background: #03101f; border: 1px solid var(--line); color: var(--text);
  border-radius: 9px; padding: 10px 12px; width: 100%;
}
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(61,157,232,.25); }
.account-card { background: #03101f; border: 1px dashed #245fad; border-radius: 12px; padding: 16px 18px; margin-bottom: 16px; }
.acc-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.acc-row span { color: var(--muted); }
.acc-row strong { color: var(--text); }
.acc-hint { color: var(--muted); font-size: 12px; margin: 10px 0 0; }

/* Bootstrap button overrides to brand */
.btn-primary { background: linear-gradient(180deg, var(--brand), var(--brand-d)); border: 0; font-weight: 700; }
.btn-primary:hover { filter: brightness(1.08); background: linear-gradient(180deg, var(--brand), var(--brand-d)); }
.btn-outline-light { border: 1px solid var(--line); color: #cfe0f5; }
.btn-outline-light:hover { background: #142a4d; color: #fff; border-color: var(--accent); }

.table-wrap { overflow-x: auto; }
.txn-table { width: 100%; border-collapse: collapse; }
.txn-table th, .txn-table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.txn-table th { color: var(--muted); font-weight: 700; text-transform: uppercase; font-size: 12px; }
.txn-table td { color: #dbe7f7; }
.txn-table .num { text-align: right; }
.pager { display: flex; align-items: center; gap: 14px; justify-content: center; margin: 18px 0 40px; }
.pager #page-info { color: var(--muted); font-size: 13px; }

.empty-note { color: var(--muted); padding: 30px 0; text-align: center; }

/* ============================================================
   Footer + floating widgets
   ============================================================ */
/* Footer link columns (uatmeta.com-style) */
.footer-nav { background: #06101f; border-top: 1px solid var(--line); }
.footer-nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 28px 18px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.footer-col h4 {
  margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .6px;
  color: var(--accent); border-bottom: 1px solid var(--line); padding-bottom: 8px;
}
.footer-col a { display: block; padding: 5px 0; color: #aebfd6; font-size: 13px; }
.footer-col a:hover { color: #fff; }
@media (max-width: 768px) { .footer-nav-inner { grid-template-columns: repeat(2, 1fr); gap: 16px; } }

.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 26px 0; margin-top: 0; color: #aebfd6; }
.site-footer .container { font-size: 13px; line-height: 1.7; }
.copyright { color: var(--muted); text-align: center; margin: 0; }

/* Mobile: the operator SEO/footer copy can run thousands of chars and dominate the
   screen. Collapse it behind a fade + "Show more" toggle (matches the reference, which
   minimises SEO text on phones). Desktop is unaffected. */
@media (max-width: 768px) {
  .site-footer { position: relative; max-height: 240px; overflow: hidden; }
  .site-footer.seo-open { max-height: none; }
  .site-footer:not(.seo-open)::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px;
    background: linear-gradient(to bottom, rgba(0,0,0,0), var(--bg-2)); pointer-events: none;
  }
  .seo-toggle {
    display: block; width: calc(100% - 32px); margin: 8px 16px 12px; padding: 8px; background: none;
    border: 1px solid var(--line); border-radius: 8px; color: var(--accent);
    font-size: 13px; font-weight: 600;
  }
}
.seo-toggle { display: none; }

.floating { position: fixed; right: 16px; bottom: 24px; display: flex; flex-direction: column; gap: 10px; z-index: 800; }
.float-btn {
  width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px; cursor: pointer; text-align: center; color: #fff;
  background: var(--brand); box-shadow: 0 6px 18px rgba(0,0,0,.45);
}
.float-btn.whatsapp { background: #25a36b; font-size: 22px; }
.float-btn.livechat { background: linear-gradient(180deg, var(--brand), var(--brand-d)); font-size: 10px; }
.float-btn:hover { filter: brightness(1.1); }

/* ============================================================
   Per-section content states (loading / error / empty)
   ============================================================ */
.cms-state { padding: 18px 14px; text-align: center; color: var(--muted); font-size: 14px; width: 100%; }
.cms-state.cms-error { color: #e0a0a0; }
.cms-retry { margin-left: 8px; padding: 2px 12px; border: 1px solid currentColor; border-radius: 6px; background: transparent; color: var(--accent); cursor: pointer; font-size: 13px; }
.cms-retry:hover { background: rgba(255,255,255,.06); }
.cms-loading { opacity: .75; }

/* ============================================================
   Mobile bottom nav (hidden on desktop)
   ============================================================ */
.bottom-nav { display: none; }

/* ============================================================
   Responsive: collapse sidebar to a drawer ≤ 980px
   ============================================================ */
@media (max-width: 980px) {
  .primary-nav { box-shadow: 0 0 40px rgba(0,0,0,.6); }
  .nav-backdrop.open { display: block; }
  .hamburger { display: block; }
  .logo-top { display: block; }
  .top-nav { display: none; }   /* desktop top bar -> hamburger drawer on mobile */
}

@media (max-width: 768px) {
  .login-form { display: none; }                 /* hidden until the Login button opens it */
  .mobile-login { display: inline-block; }
  .login-form.open {
    display: flex; flex-direction: column; gap: 8px;
    position: fixed; top: 56px; left: 12px; right: 12px; z-index: 950;
    background: #08152b; border: 1px solid var(--line); border-radius: 12px;
    padding: 14px; box-shadow: 0 14px 34px rgba(0,0,0,.55);
  }
  .login-form.open input { width: 100%; }
  .login-form.open .btn-login, .login-form.open .btn-register { width: 100%; }
  .header-inner { padding: 10px 14px; }
  /* clear the fixed bottom-nav + iOS home indicator */
  main { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
  .service-row { grid-template-columns: 1fr; }
  .floating { bottom: calc(80px + env(safe-area-inset-bottom)); }

  /* 16px inputs stop iOS Safari from auto-zooming on focus */
  .form-control, .login-form input, .wallet-filter input { font-size: 16px; }

  /* taller hero ratio suits portrait mobile banners */
  .banner-carousel { aspect-ratio: 16 / 9; }

  .bottom-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 850;
    background: #08152b; border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);   /* iOS home-indicator safe area */
  }
  .bottom-nav a {
    flex: 1; text-align: center; padding: 9px 0 7px; font-size: 11px; font-weight: 600;
    color: #c4d4ec; display: flex; flex-direction: column; gap: 3px; align-items: center;
  }
  .bottom-nav a .ico { font-size: 17px; }
  .bottom-nav a.active { color: var(--accent); }
}

/* ============================================================
   QC pass (ui-ux-pro-max checklist): cursor, focus-visible, reduced-motion
   ============================================================ */
/* Inline sprite icons (replaces emoji): stroke style, currentColor */
svg.ico {
  width: 18px; height: 18px; flex: 0 0 18px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  vertical-align: middle;
}
.bottom-nav a svg.ico { width: 20px; height: 20px; flex-basis: 20px; }
.side-menu a svg.ico { color: var(--accent); }

a, button, .btn, .top-nav-inner a, .bottom-nav a, .seo-toggle { cursor: pointer; }
a:focus-visible, button:focus-visible, .btn:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
}

