/* ==========================================================================
   Mekong Lottery V2 — customer site stylesheet (BRIEF-AW)
   Styling source of truth: design-v2/canvas-source/*.dc.html
   Mobile-first (360px baseline per MobileHome.dc.html), single stylesheet.
   ========================================================================== */

:root {
  --bg: #FAF6EF;
  --ink: #24130E;
  --muted: #6E5F55;          /* body-safe on cream (>= 4.5:1) */
  --faint: #7C6A61;
  --line: #EAE0D2;
  --line-soft: #F1E8DA;
  --field-line: #DCCEB9;
  --panel: #F6EFE3;
  --card: #FFFFFF;
  --dark: #4E0D05;           /* dark lacquer header / hero */
  --dark-deep: #3D0A04;      /* footer */
  --brand: #B4170A;
  --brand-hover: #9C1207;
  --brand-deep: #8C1309;
  --gold: #C9A227;
  --gold-bright: #F0C94F;    /* gold text — dark backgrounds only */
  --gold-soft: #E8B54A;
  --gold-grad-a: #F3D372;
  --gold-grad-b: #DCA93C;
  --gold-ink: #3A230A;
  --gold-deep: #8A6A14;
  --gold-deep-2: #6E5410;
  --cream-on-dark: #F7E8CC;
  --cream-dim: #D9C2A6;
  --ok-bg: #E7F4EC;
  --ok: #177A46;
  --warn-bg: #FCF3DF;
  --warn: #A96A0B;
  --err-bg: #FBEAE8;
  --err: #B3261E;
  --radius-card: 14px;
  --shadow-card: 0 1px 2px rgba(36, 19, 14, .05), 0 8px 24px rgba(36, 19, 14, .05);
  --font-body: 'IBM Plex Sans Thai', 'IBM Plex Sans', 'Sukhumvit Set', 'Noto Sans Thai', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;         /* headroom for Thai/Lao/Myanmar vowel marks */
  -webkit-font-smoothing: antialiased;
  padding-bottom: 76px;      /* room for the mobile tab bar */
}

a { color: var(--brand-deep); text-decoration: none; }
a:hover { color: #C0170A; }

img { max-width: 100%; }

/* Per-script fallback stacks (Localization.dc.html) */
.lang-lo { font-family: 'Noto Sans Lao Looped', 'Noto Sans Lao', 'IBM Plex Sans Thai', sans-serif; }
.lang-zh { font-family: 'Noto Sans SC', 'PingFang SC', sans-serif; }
.lang-my { font-family: 'Noto Sans Myanmar', 'Myanmar Sangam MN', sans-serif; }

.mono, .num { font-family: var(--font-mono); }
.num { font-weight: 600; letter-spacing: .18em; }

.muted { color: var(--muted); }
.faint { color: var(--faint); }

.en-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--faint);
}

.divider { height: 1px; background: var(--line-soft); border: none; margin: 0; }

/* Accessibility: visible focus everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--dark);
  color: var(--gold-bright);
  padding: 10px 16px;
  z-index: 60;
  font-weight: 600;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ==========================================================================
   Header (dark lacquer band)
   ========================================================================== */

.site-header { background: var(--dark); border-bottom: 1px solid rgba(201, 162, 39, .45); }

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.header-logo img { height: 36px; width: auto; display: block; }

.header-nav { display: none; }   /* mobile: navigation lives in the tab bar */

.nav-link {
  position: relative;
  color: #EDD9BC;
  font-weight: 500;
  font-size: 15px;
  padding: 26px 14px;
  white-space: nowrap;
}
.nav-link:hover { color: var(--cream-on-dark); }
.nav-link.active { color: var(--gold-bright); font-weight: 600; }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 3px;
  background: #D9A93B;
  border-radius: 3px 3px 0 0;
}

.header-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.icon-btn {
  position: relative;
  min-width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .28);
  border: 1px solid rgba(201, 162, 39, .4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--cream-on-dark);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 0 12px;
  cursor: pointer;
}
.icon-btn:hover { background: rgba(0, 0, 0, .4); color: var(--cream-on-dark); }

.header-auth-link {
  color: #EDD9BC;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 6px;
  white-space: nowrap;
}
.header-auth-link:hover { color: var(--cream-on-dark); }

.header-auth-cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--gold-grad-a), var(--gold-grad-b));
  color: var(--gold-ink);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 2px 6px rgba(169, 120, 20, .25);
}
.header-auth-cta:hover { color: var(--gold-ink); filter: brightness(1.03); }

/* Logout keeps the .linklike behaviour contract from _footer.php */
.linklike {
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  padding: 8px 6px;
  color: #EDD9BC;
  font-weight: 600;
  font-size: 14px;
}
.linklike:hover { color: var(--cream-on-dark); }

/* ---------- locale switcher (Localization.dc.html) ---------- */

.locale { position: relative; }
.locale > summary { list-style: none; }
.locale > summary::-webkit-details-marker { display: none; }

.locale-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(300px, calc(100vw - 32px));
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(36, 19, 14, .12);
  padding: 8px;
  z-index: 50;
  display: flex;
  flex-direction: column;
}

.locale-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 9px;
  color: var(--ink);
}
.locale-item:hover { background: var(--panel); color: var(--ink); }
.locale-item .locale-native { font-size: 14.5px; font-weight: 600; }
.locale-item .locale-gloss { display: block; font-size: 11.5px; font-weight: 400; color: var(--faint); }
.locale-item.is-current { background: #F8EDCE; }
.locale-item.is-current .locale-native { font-weight: 700; color: var(--gold-deep-2); }
.locale-item[data-locale-pending] .locale-gloss::after {
  content: " ·";
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 16px 56px;
  width: 100%;
}

.page-title { font-size: 24px; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
.page-sub { color: var(--muted); font-size: 14px; margin-top: 4px; }

.crumb {
  font-size: 13px;
  color: var(--faint);
  margin-bottom: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.sec-title { font-size: 20px; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
.sec-link { font-size: 14px; font-weight: 600; }

/* ==========================================================================
   Cards, chips, buttons
   ========================================================================== */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.card-pad { padding: 20px; }
.card-title { font-size: 17px; font-weight: 700; margin: 0; }
.card-gold {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 8px 24px rgba(169, 120, 20, .12);
}
.card-cream { background: #FFFDF6; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 12px;
  white-space: nowrap;
}
.chip-success { background: var(--ok-bg); color: var(--ok); }
.chip-warn { background: var(--warn-bg); color: var(--warn); }
.chip-danger { background: var(--err-bg); color: var(--err); }
.chip-neutral { background: #F1EAE0; color: var(--muted); }
.chip-gold { background: #F8EDCE; color: var(--gold-deep); }
.chip-brand { background: #F9E9E5; color: var(--brand-deep); }
.dot { width: 7px; height: 7px; border-radius: 999px; background: currentColor; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  min-height: 46px;
  padding: 8px 22px;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.btn-brand { background: var(--brand); color: #FFF7EC; }
.btn-brand:hover { background: var(--brand-hover); color: #FFF7EC; }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-grad-a), var(--gold-grad-b));
  color: var(--gold-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 2px 6px rgba(169, 120, 20, .25);
}
.btn-gold:hover { color: var(--gold-ink); filter: brightness(1.03); }
.btn-ghost { background: var(--card); border: 1px solid var(--field-line); color: var(--ink); }
.btn-ghost:hover { border-color: #C9B394; color: var(--ink); }
.btn-quiet { background: var(--panel); color: var(--muted); }
.btn-ghost-dark {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(240, 201, 79, .55);
  color: var(--cream-on-dark);
}
.btn-ghost-dark:hover { background: rgba(255, 255, 255, .1); color: var(--cream-on-dark); }
.btn-sm { min-height: 38px; padding: 6px 16px; font-size: 14px; border-radius: 9px; }
.btn-lg { min-height: 52px; padding: 10px 28px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }

/* Bare .ghost button (created by the withdrawals page JS) */
button.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 6px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  border-radius: 9px;
  background: var(--card);
  border: 1px solid var(--field-line);
  color: var(--ink);
  cursor: pointer;
}
button.ghost:hover { border-color: #C9B394; }

/* ==========================================================================
   Forms
   ========================================================================== */

.field-label,
label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  margin: 14px 0 6px;
  display: block;
}

.input,
input {
  width: 100%;
  max-width: 420px;
  min-height: 48px;
  border-radius: 10px;
  border: 1.5px solid var(--field-line);
  background: var(--card);
  padding: 8px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
}
.input::placeholder,
input::placeholder { color: #B4A594; }
.input:focus,
input:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(201, 162, 39, .25); }

.hint { font-size: 12.5px; color: var(--faint); margin-top: 6px; }

/* Form status banner — class contract owned by _footer.php showMessage() */
.msg { margin: 12px 0; padding: 12px 14px; border-radius: 10px; display: none; font-size: 14px; }
.msg.ok { display: block; background: var(--ok-bg); border: 1px solid #BFE3CC; color: var(--ok); }
.msg.err { display: block; background: var(--err-bg); border: 1px solid #F0C7C3; color: var(--err); }

/* ==========================================================================
   Tables & list rows
   ========================================================================== */

.table-scroll { overflow-x: auto; }

.tbl,
table {
  width: 100%;
  border-collapse: collapse;
}
.tbl th,
table th {
  text-align: left;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--faint);
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.tbl td,
table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  vertical-align: middle;
}
.tbl tr:last-child td,
table tr:last-child td { border-bottom: none; }

.lrow { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.lrow:last-child { border-bottom: none; }

/* ==========================================================================
   Hero (dark lacquer band) + trust strip
   ========================================================================== */

.hero { position: relative; background: var(--dark); color: var(--cream-on-dark); overflow: hidden; }
.hero-inner {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px 16px 48px;
}
.hero-wave { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; opacity: .5; pointer-events: none; }

.overline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--gold-soft);
  text-transform: uppercase;
}
.hero h1 {
  font-size: 26px;
  line-height: 1.3;
  font-weight: 700;
  color: #FBF3E4;
  margin: 12px 0 10px;
  letter-spacing: -0.01em;
}
.hero .lede { font-size: 15px; color: #E3CBA8; margin: 0 0 24px; max-width: 560px; line-height: 1.7; }

.trust-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
.trust-item { display: flex; gap: 14px; align-items: flex-start; }
.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid #EADFC9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.trust-item h4 { margin: 2px 0 4px; font-size: 15px; font-weight: 700; }
.trust-item p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.55; }

/* ==========================================================================
   Draw cards (open drawings)
   ========================================================================== */

.draw-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }

.draw-card-item { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.draw-card-item .draw-when { font-size: 17px; font-weight: 700; }
.draw-meta { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; color: var(--muted); }
.draw-meta strong { color: var(--ink); font-weight: 600; }

/* ==========================================================================
   Balance panels (wallet)
   ========================================================================== */

.balance-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 20px 0; }

.balance-dark {
  background: var(--dark);
  border-radius: 16px;
  padding: 24px;
  color: var(--cream-on-dark);
  position: relative;
  overflow: hidden;
}
.balance-dark .balance-value { font-size: 34px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; }
.balance-dark .balance-sub { font-size: 13px; color: #C7AC8C; margin: 6px 0 18px; }

.balance-gold {
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #E0C879;
  background: #FFFDF6;
  position: relative;
}
.balance-gold .balance-value { font-size: 34px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; color: var(--gold-deep-2); }
.balance-gold .balance-sub { font-size: 13px; color: var(--faint); margin: 6px 0 18px; }

.balance-label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.balance-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Legacy .panel/.balances classes kept working for any older markup */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 20px; margin: 12px 0; box-shadow: var(--shadow-card); }
.balances { display: flex; gap: 16px; flex-wrap: wrap; }
.balance { flex: 1; min-width: 160px; }
.balance .value { font-size: 1.6rem; font-weight: 700; }

/* ==========================================================================
   Auth (split brand panel + form card)
   ========================================================================== */

.auth-wrap { display: grid; grid-template-columns: 1fr; gap: 0; max-width: 920px; margin: 12px auto; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-card); border: 1px solid var(--line); background: var(--card); }

.auth-brand {
  background: var(--dark);
  color: var(--cream-on-dark);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}
.auth-brand img { width: 190px; height: auto; display: block; }
.auth-brand h2 { font-size: 20px; font-weight: 700; color: #FBF3E4; margin: 24px 0 8px; line-height: 1.4; }
.auth-brand p { font-size: 14px; color: #E3CBA8; line-height: 1.7; margin: 0 0 20px; }
.auth-points { display: flex; flex-direction: column; gap: 12px; font-size: 14px; position: relative; }
.auth-points .auth-point { display: flex; align-items: center; gap: 12px; }
.auth-wave { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; opacity: .4; pointer-events: none; }

.auth-form { padding: 24px; }
.auth-tabs { display: flex; background: #F1EAE0; border-radius: 12px; padding: 4px; margin-bottom: 24px; }
.auth-tab {
  flex: 1;
  text-align: center;
  border-radius: 9px;
  padding: 10px 0;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--muted);
}
.auth-tab.active { background: var(--card); font-weight: 700; color: var(--ink); box-shadow: 0 1px 3px rgba(36, 19, 14, .08); }
.auth-form h1 { font-size: 22px; font-weight: 700; margin: 0 0 6px; }
.auth-form .auth-sub { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.auth-alt { text-align: center; font-size: 13.5px; color: var(--muted); margin: 22px 0 0; }

/* ==========================================================================
   Footer (dark)
   ========================================================================== */

.site-footer { background: var(--dark-deep); color: var(--cream-dim); margin-top: 56px; }

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px 16px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.footer-inner img { height: 40px; width: auto; }
.footer-tag { font-size: 13.5px; color: #C7AC8C; margin-top: 12px; max-width: 320px; line-height: 1.6; }
.footer-col-title { color: var(--gold-bright); font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.footer-link { display: block; color: var(--cream-dim); font-size: 13.5px; padding: 4px 0; }
.footer-link:hover { color: var(--cream-on-dark); }
.footer-note { font-size: 12.5px; color: #C7AC8C; line-height: 1.6; margin: 6px 0; }

.footer-bottom { border-top: 1px solid rgba(201, 162, 39, .25); margin-top: 32px; }
.footer-bottom-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  color: #C7AC8C;
}

/* ==========================================================================
   Mobile tab bar (MobileHome.dc.html)
   ========================================================================== */

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: var(--card);
  border-top: 1px solid var(--line);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom, 0px));
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--faint);
  padding-top: 6px;
  min-height: 44px;
  position: relative;
}
.tab-item:hover { color: var(--muted); }
.tab-item.active { color: var(--brand-deep); }

.tab-fab {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--gold-deep);
  position: relative;
}
.tab-fab .fab-circle {
  position: absolute;
  top: -28px;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-grad-a), var(--gold-grad-b));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(169, 120, 20, .4), inset 0 1px 0 rgba(255, 255, 255, .5);
  border: 3px solid var(--card);
}
.tab-fab .fab-label { margin-top: 30px; }

/* ==========================================================================
   Ticket object (orders detail / shared pattern)
   ========================================================================== */

.ticket-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(36, 19, 14, .05);
}
.tkt-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px 0; gap: 8px; }
.tkt-brand { font-size: 9px; font-weight: 700; letter-spacing: .16em; color: var(--gold); white-space: nowrap; }
.tkt-date { font-size: 9px; font-weight: 600; letter-spacing: .06em; color: #B4A594; white-space: nowrap; }
.tkt-body { padding: 6px 16px 12px; }
.ticket-num { font-family: var(--font-mono); font-size: 24px; font-weight: 600; letter-spacing: .2em; color: var(--ink); }
.tkt-perf { position: relative; border-top: 1.5px dashed #E0D3BE; }
.tkt-perf::before,
.tkt-perf::after {
  content: "";
  position: absolute;
  top: -8px;
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.tkt-perf::before { left: -8.5px; }
.tkt-perf::after { right: -8.5px; }
.tkt-foot { display: flex; align-items: center; justify-content: space-between; padding: 11px 16px 13px; gap: 8px; }
.ticket-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ticket-price { font-size: 14px; font-weight: 700; color: var(--muted); }

/* ==========================================================================
   Breakpoints
   ========================================================================== */

@media (min-width: 720px) {
  .container { padding: 32px 24px 64px; }
  .page-title { font-size: 26px; }
  .hero-inner { padding: 48px 24px 64px; }
  .hero h1 { font-size: 32px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .draw-grid { grid-template-columns: repeat(2, 1fr); }
  .balance-grid { grid-template-columns: 1fr 1fr; }
  .auth-wrap { grid-template-columns: 5fr 6fr; }
  .auth-brand { padding: 40px 36px; }
  .auth-form { padding: 36px; }
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; padding: 44px 24px 0; }
  .footer-bottom-inner { flex-direction: row; justify-content: space-between; align-items: center; padding: 16px 24px; }
}

@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .header-inner { padding: 0 32px; min-height: 76px; gap: 36px; }
  .header-logo img { height: 48px; }
  .header-nav { display: flex; gap: 6px; align-items: center; flex: 1; }
  .header-right { gap: 14px; margin-left: 0; }
  .container { padding: 36px 32px 64px; }
  .hero-inner { padding: 56px 32px 96px; }
  .hero h1 { font-size: 38px; }
  .hero .lede { font-size: 16px; }
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .draw-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { padding: 44px 32px 0; }
  .footer-bottom-inner { padding: 16px 32px; }
}

/* ==========================================================================
   Small screens: no horizontal scroll at 360px
   ========================================================================== */

@media (max-width: 719px) {
  .auth-brand { display: block; }
  .auth-brand img { width: 150px; }
  table th, table td { padding: 10px 10px; }
  .btn { padding-left: 16px; padding-right: 16px; }
}
