@font-face { font-family: "Bai Jamjuree"; font-weight: 400; font-display: swap; src: url("/assets/fonts/BaiJamjuree/BaiJamjuree-Regular.woff2") format("woff2"), url("/assets/fonts/BaiJamjuree/BaiJamjuree-Regular.woff") format("woff"); }
@font-face { font-family: "Bai Jamjuree"; font-weight: 600; font-display: swap; src: url("/assets/fonts/BaiJamjuree/BaiJamjuree-SemiBold.woff2") format("woff2"), url("/assets/fonts/BaiJamjuree/BaiJamjuree-SemiBold.woff") format("woff"); }
@font-face { font-family: "Bai Jamjuree"; font-weight: 700; font-display: swap; src: url("/assets/fonts/BaiJamjuree/BaiJamjuree-Bold.woff2") format("woff2"), url("/assets/fonts/BaiJamjuree/BaiJamjuree-Bold.woff") format("woff"); }
@font-face { font-family: "Bai Jamjuree"; font-weight: 700; font-style: italic; font-display: swap; src: url("/assets/fonts/BaiJamjuree/BaiJamjuree-BoldItalic.woff2") format("woff2"); }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 800; font-display: swap; src: url("/assets/fonts/BeVietNamPro/BeVietNamPro-ExtraBold.woff2") format("woff2"), url("/assets/fonts/BeVietNamPro/BeVietNamPro-ExtraBold.woff") format("woff"); }
@font-face { font-family: "Martian Mono"; font-weight: 700; font-display: swap; src: url("/assets/fonts/MartianMono/MartianMono-Bold.ttf") format("truetype"); }
:root {
  --bg: #07101d;
  --bg2: #0c1830;
  --panel: #11203c;
  --panel2: #172a4d;
  --line: rgba(170, 198, 255, 0.14);
  --text: #f4f7fb;
  --muted: #93a4c4;
  --gold: #f6b429;
  --gold2: #c98412;
  --green: #21d36c;
  --green2: #11964c;
  --red: #ff5d73;
  --blue: #4aa3ff;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  --radius: 16px;
  --header: 64px;
  --nav: 46px;
  --sub: 40px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(246, 180, 41, 0.08), transparent 50%),
    radial-gradient(900px 400px at -10% 20%, rgba(33, 211, 108, 0.06), transparent 45%),
    var(--bg);
  font-family: "Bai Jamjuree", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
h1, h2, .jack-hero strong { font-family: "Be Vietnam Pro", "Bai Jamjuree", sans-serif; font-weight: 800; }
.pot, .bal, .jack-hero strong, [data-odometer] { font-family: "Martian Mono", monospace; }
img.broken { visibility: hidden; }
.mainnav { scrollbar-width: none; }
.mainnav::-webkit-scrollbar { display: none; }
.prose img.cover { display: block; width: 100%; max-width: 640px; border-radius: 12px; margin: 12px 0; }
.wordmark { font-family: "Be Vietnam Pro", "Bai Jamjuree", sans-serif; font-weight: 800; font-size: 26px; letter-spacing: -0.04em; color: #fff; line-height: 1; }
.wordmark i { color: #21d36c; font-style: normal; }
.footer .wordmark { font-size: 30px; }
.logo img { height: 34px; width: auto; }
.footer .logo img { height: 40px; }
.offer-list a img, .cat-grid img { width: 28px; height: 28px; object-fit: contain; }
.offer-list a span { display: flex; gap: 10px; align-items: center; }
.rank img { width: 72px; height: 72px; object-fit: contain; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.float-pot img { width: 56px; float: left; margin-right: 8px; }
.legal img { height: 32px; width: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: min(1240px, calc(100% - 32px)); margin: 0 auto; }
.top {
  position: sticky; top: 0; z-index: 40;
  background: rgba(7, 16, 29, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.bar, .mainnav, .predict-bar { width: min(1240px, calc(100% - 32px)); margin: 0 auto; }
.bar { height: var(--header); display: flex; align-items: center; gap: 10px; }
.logo { font-weight: 800; font-size: 28px; letter-spacing: -0.04em; display: flex; align-items: center; gap: 8px; }
.logo i {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold), #fff1c9); color: #1a1203; font-style: normal; font-size: 16px;
}
.logo span { color: var(--gold); }
.grow { flex: 1; }
.btn {
  border: 0; cursor: pointer; border-radius: 999px; padding: 10px 16px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-align: center;
}
.btn.gold { background: linear-gradient(180deg, #ffd56a, var(--gold) 40%, var(--gold2)); color: #2a1a04; }
.btn.green { background: linear-gradient(180deg, #47e88d, var(--green) 45%, var(--green2)); color: #042413; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn.sm { padding: 7px 12px; font-size: 13px; }
.btn.block { width: 100%; }
.btn:disabled, .btn.disabled { opacity: 0.45; pointer-events: none; }
.icon-btn, .avatar {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--panel); display: grid; place-items: center; position: relative; cursor: pointer;
}
.icon-btn svg { width: 18px; height: 18px; }
.badge-dot {
  position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 99px; background: var(--red); color: white; font-size: 10px; display: grid; place-items: center;
}
.bal { font-weight: 800; color: var(--gold); background: #1b2742; border-radius: 999px; padding: 8px 12px; }
.avatar-wrap { position: relative; }
.avatar { background: linear-gradient(135deg, #2450ff, #21d36c); font-weight: 800; border: 0; }
.menu {
  display: none; position: absolute; right: 0; top: calc(100% + 8px); width: 280px;
  background: #0e1b33; border: 1px solid var(--line); border-radius: 16px; padding: 8px; box-shadow: var(--shadow);
}
.avatar-wrap:hover .menu, .avatar-wrap.open .menu { display: block; }
.menu a, .menu button {
  width: 100%; text-align: left; background: transparent; border: 0; padding: 10px 12px; border-radius: 10px; cursor: pointer; display: flex; justify-content: space-between;
}
.menu a:hover, .menu button:hover { background: rgba(255,255,255,.05); }
.vip-mini { display: block; padding: 12px; border-radius: 12px; background: linear-gradient(135deg, #2a220f, #143024); margin-bottom: 6px; }
.menu-head { display: none; }
.only-sm, .only-sm-link { display: none; }
.account-back { display: none; }
.predict-nav { display: none; }
.tag { font-size: 10px; font-weight: 800; color: #042413; background: var(--green); border-radius: 99px; padding: 2px 6px; }
.tag.hot { background: var(--red); color: white; }
.mainnav { height: var(--nav); display: flex; gap: 6px; align-items: center; overflow: auto; }
.mainnav a {
  flex: 0 0 auto; color: var(--muted); font-weight: 600; font-size: 13.5px; padding: 6px 10px; border-radius: 999px;
  display: inline-flex; gap: 6px; align-items: center;
}
.mainnav a.on, .mainnav a:hover { color: white; background: rgba(74, 163, 255, .12); }
.predict-bar {
  height: var(--sub); display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-top: 1px solid var(--line); color: #d7e4ff; font-size: 13px; font-weight: 700; letter-spacing: .04em;
}
.predict-bar a { color: #042413; background: var(--gold); border-radius: 999px; padding: 4px 10px; font-size: 12px; }
main { padding: 22px 0 72px; }
.flash {
  width: min(1240px, calc(100% - 32px)); margin: 12px auto 0; padding: 12px 14px; border-radius: 12px;
  background: #123224; border: 1px solid rgba(33, 211, 108, .4);
}
.flash.err { background: #3a1720; border-color: rgba(255, 93, 115, .45); }
.hero { position: relative; border-radius: 20px; overflow: hidden; min-height: 280px; background: #10192b; }
.hero .slide, .modal .slide { display: none; }
.hero .slide.on, .modal .slide.on { display: block; }
.modal .box.pad { padding: 16px; overflow: auto; }
.modal form[hidden] { display: none; }
.hero img { width: 100%; height: 320px; object-fit: cover; }
.hero .navb {
  position: absolute; inset: auto 12px 12px auto; display: flex; gap: 8px;
}
.hero .navb button, .sarrow {
  width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); color: white; cursor: pointer;
}
.halls { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 16px; }
.hall {
  position: relative; min-height: 150px; border-radius: 18px; overflow: hidden; background: linear-gradient(160deg, #1a3158, #0d182b);
  border: 1px solid var(--line); display: flex; align-items: flex-end; padding: 12px;
}
.hall img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.hall b { position: relative; z-index: 1; font-size: 16px; text-shadow: 0 2px 8px #000; }
.section { margin-top: 28px; }
.section h2 { margin: 0 0 12px; font-size: 22px; letter-spacing: .02em; }
.row-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.muted { color: var(--muted); }
.scroller { display: flex; gap: 12px; overflow: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.scroller .gcard { flex: 0 0 160px; scroll-snap-align: start; }
.jack-hero {
  display: grid; grid-template-columns: 280px 1fr; gap: 16px; align-items: center;
  background: radial-gradient(circle at 20% 20%, #3a2a10, #10192c 55%);
  border: 1px solid rgba(246, 180, 41, .3); border-radius: 20px; padding: 18px;
}
.jack-hero strong { display: block; font-size: 32px; color: var(--gold); }
.games { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.gcard {
  position: relative; background: var(--panel); border-radius: 14px; overflow: hidden; border: 1px solid transparent;
}
.gcard:hover { border-color: rgba(246, 180, 41, .45); }
.gthumb { display: block; aspect-ratio: 3/4; background: #182848; position: relative; }
.gthumb img { width: 100%; height: 100%; object-fit: cover; }
.ph { display: grid; place-items: center; height: 100%; padding: 10px; text-align: center; font-weight: 700; }
.pot, .live, .hot {
  position: absolute; left: 6px; bottom: 6px; font-size: 11px; font-weight: 800;
  background: rgba(0,0,0,.72); color: var(--gold); border-radius: 8px; padding: 3px 6px;
}
.live { left: auto; right: 6px; top: 6px; bottom: auto; color: white; background: #e23b4a; }
.hot { left: auto; right: 6px; bottom: 6px; color: #2a1a04; background: var(--gold); }
.heart {
  position: absolute; top: 6px; left: 6px; z-index: 2; width: 28px; height: 28px; border-radius: 50%;
  border: 0; background: rgba(0,0,0,.45); color: white; cursor: pointer;
}
.heart.on { color: #ff4d6a; }
.gmeta { padding: 8px 10px 10px; }
.gmeta h3 { margin: 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gmeta p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.play {
  position: absolute; left: 8px; right: 8px; bottom: 58px; text-align: center;
  background: var(--green); color: #042413; font-weight: 800; border-radius: 999px; padding: 8px;
  opacity: 0; transform: translateY(6px); transition: .18s ease;
}
.gcard:hover .play { opacity: 1; transform: none; }
.promo-grid, .card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pcard, .panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.pcard img { width: 100%; height: 150px; object-fit: cover; background: #0d1830; }
.pcard .pad, .panel .pad, .pad { padding: 14px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.filters a, .chip {
  border: 1px solid var(--line); background: #101c33; color: var(--muted); border-radius: 999px; padding: 6px 12px; cursor: pointer;
}
.filters a.on, .chip.on { color: #042413; background: var(--green); border-color: transparent; font-weight: 700; }
.partners { display: flex; gap: 8px; overflow: auto; padding: 4px 0 12px; }
.partners a {
  flex: 0 0 auto; height: 48px; min-width: 84px; padding: 6px 10px; border-radius: 12px;
  background: #101c33; border: 1px solid var(--line); display: grid; place-items: center;
}
.partners a.on { border-color: var(--gold); }
.partners img { height: 28px; width: auto; object-fit: contain; }
.pager { display: flex; gap: 6px; justify-content: center; margin: 18px 0; flex-wrap: wrap; }
.pager a, .pager span { min-width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: #101c33; }
.pager .on { background: var(--gold); color: #2a1a04; font-weight: 800; }
.empty { text-align: center; padding: 40px 10px; color: var(--muted); }
.table-wrap { overflow: auto; border-radius: 16px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; background: #0e1b32; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; font-size: 13px; }
th { color: var(--muted); font-weight: 600; background: #0c1730; }
.lobby-hero { display: grid; grid-template-columns: 1.4fr .8fr; gap: 14px; margin-bottom: 12px; }
.lobby-hero img { width: 100%; height: 220px; object-fit: cover; border-radius: 18px; }
.searchline { display: flex; gap: 8px; margin: 8px 0 12px; }
.searchline input, .field input, .field select, .field textarea, .searchline select {
  width: 100%; background: #0c1730; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; outline: none;
}
.field { margin-bottom: 12px; }
.field label { display: block; margin-bottom: 6px; color: #d5e2f8; font-weight: 600; }
.help { color: var(--muted); font-size: 12px; }
.auth-shell { min-height: calc(100vh - 180px); display: grid; place-items: center; }
.auth-card { width: min(440px, 100%); background: #101c33; border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.tabs a { text-align: center; padding: 10px; border-radius: 12px; background: #0c1730; color: var(--muted); font-weight: 700; }
.tabs a.on { background: var(--gold); color: #2a1a04; }
.check { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; }
.passwrap { position: relative; }
.passwrap button { position: absolute; right: 8px; top: 8px; border: 0; background: transparent; color: var(--gold); cursor: pointer; }
.account-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 16px; }
.side a { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 10px; color: #d5e2f8; }
.side a.on, .side a:hover { background: rgba(33, 211, 108, .12); }
.user-card { padding: 14px; border-radius: 16px; background: linear-gradient(160deg, #243864, #12213d); margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.note {
  background: rgba(246, 180, 41, .08); border: 1px solid rgba(246, 180, 41, .3); border-radius: 12px; padding: 10px 12px; color: #ffe3a8; font-size: 13px;
}
.prose h1, .prose h2 { margin-top: 0; }
.prose table { margin: 10px 0 16px; }
.prose td, .prose th { white-space: normal; }
.article { width: min(860px, 100%); }
.modal[hidden], .sheet[hidden], .drawer[hidden] { display: none; }
.modal, .sheet, .drawer { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.62); display: grid; }
.modal { place-items: center; padding: 16px; }
.modal .box { width: min(520px, 100%); background: #0e1b33; border-radius: 18px; overflow: hidden; position: relative; }
.modal img { width: 100%; max-height: 70vh; object-fit: contain; background: #050b16; }
.sheet { align-items: end; }
.sheet .box, .drawer .box { background: #0e1b33; width: min(640px, 100%); margin: 0 auto; border-radius: 18px 18px 0 0; padding: 16px; max-height: 80vh; overflow: auto; }
.drawer { justify-items: end; }
.drawer .box { width: min(420px, 100%); height: 100%; border-radius: 0; max-height: none; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cat-grid a, .offer-list a, .support-list a {
  background: #132445; border-radius: 12px; padding: 12px 8px; text-align: center; font-size: 13px; font-weight: 700;
}
.offer-list a, .support-list a { display: flex; text-align: left; justify-content: space-between; margin-bottom: 8px; }
.bottom-nav {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; height: 64px;
  background: rgba(8, 16, 32, .96); border-top: 1px solid var(--line); grid-template-columns: repeat(5, 1fr); align-items: end;
}
.bottom-nav button, .bottom-nav a {
  background: transparent; border: 0; color: var(--muted); font-size: 11px; font-weight: 700; padding-bottom: 8px; cursor: pointer;
}
.bottom-nav .mid {
  width: 58px; height: 58px; border-radius: 50%; margin: -22px auto 6px; display: grid; place-items: center;
  background: radial-gradient(circle at 40% 30%, #ffe08a, var(--gold)); color: #2a1a04; font-size: 12px;
}
.float-pot, .toasts, .side-tabs, .topbtn { position: fixed; z-index: 35; }
.float-pot { left: 14px; bottom: 78px; width: 180px; background: #14100a; border: 1px solid rgba(246,180,41,.4); border-radius: 16px; padding: 10px; }
.toasts { right: 14px; bottom: 78px; display: grid; gap: 8px; }
.toast {
  background: rgba(10, 18, 34, .92); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; width: 230px; font-size: 13px;
}
.side-tabs { right: 0; top: 40%; display: grid; }
.side-tabs a, .side-tabs button {
  writing-mode: vertical-rl; border: 0; background: #12305a; color: white; padding: 10px 6px; cursor: pointer; border-radius: 10px 0 0 10px; margin-top: 4px;
}
.topbtn { right: 14px; bottom: 78px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--gold); color: #2a1a04; font-weight: 800; display: none; cursor: pointer; }
.footer { border-top: 1px solid var(--line); padding: 28px 0 90px; background: #060d18; color: var(--muted); }
.fgrid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 18px; }
.footer a { display: block; padding: 3px 0; color: #d5e2f8; }
.footer h4 { margin: 0 0 8px; color: white; }
.legal { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.pill { border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; font-size: 12px; }
.status { font-weight: 800; }
.status.ok { color: var(--green); }
.status.wait { color: var(--gold); }
.status.live { color: #ff8080; }
.rank-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rank { padding: 14px; border-radius: 16px; background: #121e38; border: 1px solid var(--line); }
.rank.on { border-color: var(--gold); box-shadow: inset 0 0 0 1px rgba(246,180,41,.3); }
.barline { height: 8px; background: #0c1730; border-radius: 99px; overflow: hidden; }
.barline span { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--gold)); }
.qrbox { width: 160px; height: 160px; display: grid; place-items: center; background: white; color: #111; border-radius: 12px; font-weight: 800; text-align: center; padding: 8px; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
@media (max-width: 1020px) {
  .games { grid-template-columns: repeat(4, 1fr); }
  .halls, .promo-grid, .card-grid, .rank-grid { grid-template-columns: repeat(2, 1fr); }
  .jack-hero, .lobby-hero, .account-wrap, .fgrid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .games, .halls { grid-template-columns: repeat(3, 1fr); }
  .hide-sm { display: none !important; }
  .bar .btn.gold.hide-xs, .search-label { display: none; }
  .hero img { height: 180px; }
  .play { opacity: 1; transform: none; bottom: 8px; }
  .gmeta { display: none; }
  .bottom-nav { display: grid; }
  .float-pot { display: none; }
  .side-tabs { display: none; }
  .toasts { left: 12px; right: 12px; bottom: 76px; }
  .toast { width: auto; }
  .only-sm { display: block; }
  .only-sm-link { display: flex; }
  .nap { width: 38px; height: 38px; padding: 0; border-radius: 50%; }
  .nap img { width: 20px; height: 20px; }
  .bal { font-size: 12px; padding: 6px 8px; }
  .avatar-wrap:hover .menu { display: none; }
  .avatar-wrap.open .menu {
    display: block; position: fixed; inset: 0; width: auto; z-index: 80;
    border-radius: 0; overflow: auto; padding: 16px 12px 88px;
  }
  .menu-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
  .menu-head button { background: transparent; border: 0; color: white; font-size: 18px; cursor: pointer; }
  .side .user-card, .side .panel { display: none; }
  .account-back { display: flex; font-weight: 800; font-size: 18px; margin: 4px 0 12px; }
  .rank-grid { display: flex; overflow: auto; scroll-snap-type: x mandatory; gap: 12px; }
  .rank { min-width: 78%; scroll-snap-align: start; flex: none; }
  .auth-shell { min-height: calc(100vh - 140px); align-items: start; padding-top: 12px; }
  .auth-card { border: 0; background: transparent; padding: 8px 0 24px; }
  body.page-predict .bottom-nav { display: none; }
  body.page-predict .predict-tabs { display: none; }
  .predict-nav {
    display: grid; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; height: 64px;
    grid-template-columns: repeat(3, 1fr); align-items: center; text-align: center;
    background: rgba(8, 16, 32, .96); border-top: 1px solid var(--line);
  }
  .predict-nav a { color: var(--muted); font-weight: 700; font-size: 13px; }
  .predict-nav a.on { color: var(--gold); }
}

/* admin + CMS */
.admin-stats { grid-template-columns: repeat(4, 1fr); }
.admin-stats b { display: block; font-size: 20px; color: var(--gold); }
.admin-forms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 14px 0; }
.admin-forms h3 { margin-top: 0; }
.admin-row { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-row .field { flex: 1 1 140px; }
.admin-row .grow { flex: 3 1 260px; }
.gw-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gw-card h3 { margin: 0; }
.ticket-card { margin-bottom: 12px; }
td.actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
td.actions form { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
td.wrap-cell { white-space: normal; min-width: 160px; max-width: 360px; }
.mini-input { width: 120px; background: #0c1730; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; color: inherit; }
.site-banner { width: min(1240px, calc(100% - 32px)); margin: 10px auto 0; padding: 8px 14px; border-radius: 12px; background: #10213e; border: 1px solid var(--line); overflow: hidden; }
.site-banner.warn { background: #3a2a10; border-color: rgba(246, 180, 41, .45); color: #ffe3a8; font-weight: 700; }
.marquee span { display: inline-block; padding-left: 100%; white-space: nowrap; animation: marquee 22s linear infinite; }
@keyframes marquee { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .marquee span { animation: none; padding-left: 0; } }
@media (max-width: 900px) {
  .admin-stats, .admin-forms, .gw-grid { grid-template-columns: 1fr; }
}
.mock-banner { background: #b3122b; color: #fff; font-weight: 800; text-align: center; padding: 10px; border-radius: 12px; margin-bottom: 12px; letter-spacing: .04em; }
.qr-payload { font-family: monospace; font-size: 12px; word-break: break-all; }
