/* ==========================================================================
   MS39 desktop shell — black + gold, app-style layout.
   A fixed sidebar on the left, one centred column for the page. Loaded after
   web.css, so it also re-seats the older components (product grids, account
   forms, auth pages) inside that column without touching their markup.
   ========================================================================== */

:root {
  --side-w: 280px;
  --col-w:  980px;
}

body.gk {
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(212, 169, 55, .07), transparent 60%),
    var(--c-bg);
  color: var(--c-ink);
  min-height: 100vh;
  padding-top: 0 !important;
}
body.gk ::selection { background: var(--gold); color: var(--on-gold); }
body.gk h1, body.gk h2, body.gk h3, body.gk h4, body.gk h5, body.gk h6 { color: var(--c-ink); }

/* --- Buttons ------------------------------------------------------------- */
.gk-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 20px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: filter .15s ease, background .15s ease, color .15s ease;
}
.gk-btn.sm { height: 34px; padding: 0 16px; font-size: 13px; }
.gk-btn.gold { background: var(--gold-grad); color: var(--on-gold); box-shadow: 0 4px 16px rgba(212, 169, 55, .25); }
.gk-btn.gold:hover { color: var(--on-gold); filter: brightness(1.08); }
.gk-btn.ghost { border: 1px solid var(--gold-line); color: var(--gold-lit); background: transparent; }
.gk-btn.ghost:hover { background: var(--gold-glow); color: var(--gold-lit); }

/* The older CTAs, repainted gold with dark ink so they read on black. */
body.gk .btn-orange, body.gk .btn-gold, body.gk .btn-deposit, body.gk .acc-btn,
body.gk .hdr-cta.join, body.gk .btn-primary {
  background: var(--gold-grad) !important; color: var(--on-gold) !important;
  border: 0 !important; border-radius: var(--radius-pill); font-weight: 600;
}
body.gk .btn-orange:hover, body.gk .btn-gold:hover { color: var(--on-gold) !important; filter: brightness(1.08); }
body.gk .pill-hot { background: linear-gradient(135deg, #e0484f, #b3202a); }
body.gk .pill-new { background: var(--gold-grad); color: var(--on-gold); }
body.gk .pill-rtp { background: rgba(212, 169, 55, .18); color: var(--gold-lit); }

/* --- Sidebar ------------------------------------------------------------- */
.gk-side {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--side-w);
  background: linear-gradient(180deg, #121214 0%, #0d0d0f 100%);
  border-right: 1px solid var(--c-line);
  padding: 22px 18px 30px; overflow-y: auto; z-index: 60;
  scrollbar-width: thin; scrollbar-color: #2b2b30 transparent;
}
.gk-brand { display: block; padding: 2px 8px 18px; }
.gk-brand img { height: 46px; width: auto; display: block; }

.gk-usercard {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #1d1a12, #151517 70%);
  border: 1px solid var(--gold-line);
}
.gk-usercard .av {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%;
  display: grid; place-items: center; font-size: 20px;
  background: var(--gold-grad); color: var(--on-gold);
}
.gk-usercard .who { min-width: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.gk-usercard .who b { font-size: 16px; color: var(--c-ink); overflow: hidden; text-overflow: ellipsis; }
.gk-usercard .who small { font-size: 12px; color: var(--c-muted); }
.gk-usercard .tier { font-size: 11px; color: var(--gold-lit); display: flex; gap: 4px; align-items: center; white-space: nowrap; }
.gk-usercard.guest { flex-direction: column; align-items: stretch; gap: 4px; }
.gk-usercard.guest b { color: var(--gold-lit); font-size: 15px; }
.gk-usercard.guest small { color: var(--c-muted); font-size: 12px; }
.gk-auth-btns { display: flex; gap: 10px; margin-top: 10px; }
.gk-auth-btns .gk-btn { flex: 1; }

.gk-side-hd {
  margin: 22px 8px 8px; font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--c-faint); font-weight: 600;
}
.gk-side-group {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--radius-lg); padding: 6px;
}
.gk-side-group a {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 10px; border-radius: 10px; color: var(--c-body);
  font-size: 14px; transition: background .15s ease, color .15s ease;
}
.gk-side-group a .ic {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%;
  display: grid; place-items: center; font-size: 15px;
  background: rgba(212, 169, 55, .12); color: var(--gold);
  transition: background .15s ease, color .15s ease;
}
.gk-side-group a .lb { flex: 1; min-width: 0; }
.gk-side-group a .chev { font-size: 11px; color: var(--c-faint); }
.gk-side-group a .cnt {
  font-style: normal; font-size: 11px; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 10px; background: var(--c-red-badge); color: #fff; display: grid; place-items: center;
}
.gk-side-group a:hover { background: var(--c-soft-2); color: var(--c-ink); }
.gk-side-group a.active { background: var(--gold-glow); color: var(--gold-lit); }
.gk-side-group a.active .ic,
.gk-side-group a:hover .ic { background: var(--gold-grad); color: var(--on-gold); }

/* --- Main column --------------------------------------------------------- */
.gk-main { margin-left: var(--side-w); min-height: 100vh; }
.gk-col  { max-width: var(--col-w); margin: 0 auto; padding: 0 28px 30px; }

.gk-top {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 74px; margin: 0 -28px 8px; padding: 0 28px;
  background: rgba(10, 10, 11, .97);
  border-bottom: 1px solid rgba(255, 255, 255, .04);
}
.gk-hello { display: flex; align-items: center; gap: 12px; }
.gk-hello .gk-mark { width: 40px; height: 40px; background: none; border: 0; padding: 0; }
.gk-hello b { display: block; font-size: 19px; color: var(--c-ink); line-height: 1.2; }
.gk-hello small { color: var(--c-muted); font-size: 12px; }
.gk-back { display: flex; align-items: center; gap: 10px; color: var(--c-ink); font-weight: 600; font-size: 17px; }
.gk-back i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--c-surface); border: 1px solid var(--c-line); font-size: 14px; }
.gk-back:hover { color: var(--gold-lit); }

.gk-top-acts { position: relative; display: flex; align-items: center; gap: 8px; }
.gk-icobtn {
  position: relative; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; font-size: 17px;
  background: var(--c-surface); border: 1px solid var(--c-line); color: var(--gold);
  transition: border-color .15s ease, background .15s ease;
}
.gk-icobtn:hover { border-color: var(--gold-line); background: var(--gold-glow); color: var(--gold-lit); }
.gk-icobtn .dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--c-red-badge); }
.gk-icobtn.lang-pick { padding: 0; }
.gk-icobtn.lang-pick .flag { width: 22px; height: 22px; flex-basis: 22px; }

body.gk .lang-panel {
  top: 52px; right: 0; background: var(--c-surface);
  border: 1px solid var(--gold-line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
}
body.gk .lang-opt.active { color: var(--gold-lit); }

/* --- Old wrappers, re-seated in the column -------------------------------- */
body.gk .container-x { max-width: none; padding-left: 0; padding-right: 0; }
body.gk .page-hero { display: none; }
body.gk .sec { padding-top: 18px; padding-bottom: 18px; }
body.gk .auth-wrap, body.gk .acc-wrap { background: transparent; min-height: 0; padding: 10px 0 30px; }
body.gk .ticker-bar {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--radius); margin: 14px 0 0;
}
body.gk .ticker-bar .container-x { padding: 0 14px; height: 40px; }
body.gk .ticker-bar .ico { color: var(--gold); }

/* --- Home: wallet --------------------------------------------------------- */
.gk-wallet { padding: 6px 0 14px; }
.gk-bal { display: flex; align-items: center; gap: 10px; }
.gk-bal .cur { font-size: 26px; font-weight: 700; color: var(--gold); }
.gk-bal b { font-size: 30px; font-weight: 700; color: var(--c-ink); letter-spacing: .01em; }
.gk-bal b.masked, .gk-chip-bal b.masked { color: transparent; text-shadow: 0 0 14px rgba(244, 239, 226, .55); user-select: none; }
.gk-bal .eye { background: none; border: 0; color: var(--c-muted); font-size: 20px; padding: 0 2px; }
.gk-bal .eye:hover { color: var(--gold-lit); }
.gk-bal-acts { display: flex; align-items: center; gap: 18px; margin-top: 10px; }
.gk-pill {
  height: 36px; padding: 0 22px; border-radius: var(--radius-pill);
  display: inline-flex; align-items: center; font-weight: 600;
  border: 1px solid var(--gold); color: var(--gold-lit);
}
.gk-pill:hover { background: var(--gold-grad); color: var(--on-gold); }
.gk-link { color: var(--c-body); font-weight: 500; }
.gk-link:hover { color: var(--gold-lit); }
.gk-chip-bal { margin-left: auto; font-size: 13px; color: var(--c-muted); display: flex; align-items: center; gap: 6px; }
.gk-chip-bal i { color: var(--gold); }
.gk-chip-bal b { color: var(--c-ink); }

.gk-guest {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 22px; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, #221c0e, #141416 65%);
  border: 1px solid var(--gold-line);
}
.gk-guest b { display: block; font-size: 22px; color: var(--gold-lit); }
.gk-guest span { color: var(--c-body); font-size: 13px; }
.gk-guest .gk-auth-btns { margin: 0; min-width: 260px; }

/* --- Home: quick actions -------------------------------------------------- */
.gk-quick {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: linear-gradient(180deg, #1a1810, #141416);
  border: 1px solid var(--gold-line); border-radius: var(--radius-lg);
  padding: 12px 6px; margin-bottom: 18px;
}
.gk-quick a {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--gold-lit); font-size: 12.5px; font-weight: 600; padding: 4px;
  border-right: 1px solid rgba(212, 169, 55, .14);
}
.gk-quick a:last-child { border-right: 0; }
.gk-quick a i { font-size: 22px; color: var(--gold); transition: transform .15s ease; }
.gk-quick a:hover i { transform: translateY(-2px); }

/* --- Home: slideshow ------------------------------------------------------ */
.gk-hero {
  position: relative; aspect-ratio: 2172 / 724; border-radius: var(--radius-lg);
  overflow: hidden; background: #000; touch-action: pan-y; cursor: grab; user-select: none;
  border: 1px solid var(--c-line);
}
.gk-hero .hero-track { display: flex; height: 100%; will-change: transform; }
.gk-hero .hero-slide { position: relative; flex: 0 0 100%; height: 100%; overflow: hidden; }
/* Contain, never cover: the box is the upload's own 3:1 ratio, so a picture
   at spec fills it exactly and any other shape is letterboxed, not cropped. */
.gk-hero .hero-img { object-fit: contain; }
.gk-hero .hero-dots { left: 0; right: 0; bottom: 14px; transform: none; justify-content: center; }
.gk-hero .hero-dots button { background: rgba(255, 255, 255, .5); }
.gk-hero .hero-dots button.active { background: var(--gold); }
.gk-hero-plate {
  position: absolute; inset: 0; padding: 40px 48px;
  display: flex; flex-direction: column; justify-content: center;
  background:
    radial-gradient(500px 300px at 85% 40%, rgba(212, 169, 55, .35), transparent 70%),
    linear-gradient(120deg, #0c0c0e 30%, #2a2210);
}
.gk-hero-plate .kicker { color: var(--gold); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
.gk-hero-plate h2 { font-size: 36px; font-weight: 800; margin: 8px 0; max-width: 560px;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.gk-hero-plate p { color: var(--c-body); margin: 0; }

/* --- Home: reward cards --------------------------------------------------- */
.gk-rewards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 6px; }
.gk-rewards .col-l { display: grid; gap: 12px; }
.gk-reward {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border-radius: var(--radius-lg); background: var(--c-surface); border: 1px solid var(--c-line);
  transition: border-color .15s ease, transform .15s ease;
}
.gk-reward:hover { border-color: var(--gold-line); transform: translateY(-1px); }
.gk-reward .ic {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--gold-glow); color: var(--gold); font-size: 20px;
}
.gk-reward b { display: block; color: var(--c-ink); font-size: 15px; }
.gk-reward small { color: var(--c-muted); font-size: 12px; }
.gk-reward.tall { align-items: flex-start; flex-direction: column; justify-content: space-between;
  background: linear-gradient(140deg, #221c0e, #151517 70%); border-color: var(--gold-line); }
.gk-reward.tall b { font-size: 18px; color: var(--gold-lit); }
.gk-reward .deco { position: absolute; right: -6px; bottom: -14px; font-size: 92px; color: rgba(212, 169, 55, .1); }

/* --- Lobby (home) and product pages: the category rail -------------------- */
.gk-lobby { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; margin-top: 20px; scroll-margin-top: 90px; }
.gk-prod  { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; align-items: start; }
.gk-prod-body { min-width: 0; }
.gk-cat-rail { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 86px; align-self: start; }
.gk-cat-rail > * {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 4px; border-radius: 14px; font-size: 11.5px; line-height: 1.2; text-align: center;
  background: var(--c-surface); border: 1px solid var(--c-line); color: var(--c-muted);
  transition: all .15s ease;
}
.gk-cat-rail > * i { font-size: 22px; color: var(--gold); }
.gk-cat-rail > *:hover { color: var(--c-ink); border-color: var(--gold-line); }
.gk-cat-rail > .active { background: var(--gold-grad); color: var(--on-gold); border-color: transparent; font-weight: 600; }
.gk-cat-rail > .active i { color: var(--on-gold); }

.gk-logo-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 8px; scrollbar-width: thin; scrollbar-color: #2b2b30 transparent; }
.gk-logo-strip a {
  flex: 0 0 104px; height: 50px; border-radius: 10px; display: grid; place-items: center;
  background: var(--c-surface); border: 1px solid var(--c-line); padding: 6px; font-size: 11px; color: var(--c-body); text-align: center;
}
.gk-logo-strip a:hover { border-color: var(--gold-line); }
.gk-logo-strip a.maint { opacity: .45; }
.gk-logo-strip img { max-width: 100%; max-height: 100%; object-fit: contain; }

.gk-plat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.gk-plat {
  position: relative; display: block; border-radius: 14px; overflow: hidden;
  /* A thin gold frame on every card, brightening on hover. */
  background: var(--c-surface); border: 1.5px solid rgba(212, 169, 55, .55);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
/* Every card is the upload box's own shape (PLATFORM_ICON_BOX, 520×676), so
   the row lines up whatever a file's size, and contain means a picture is
   only ever scaled, never cut. */
.gk-plat img { width: 100%; height: auto; aspect-ratio: 520 / 676; object-fit: contain; display: block; }
.gk-plat:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 8px 24px rgba(212, 169, 55, .15); }
.gk-plat.plate { aspect-ratio: 3 / 4; display: flex; align-items: flex-end; padding: 10px; }
.gk-plat.plate .nm { position: relative; z-index: 2; font-weight: 700; color: #fff; text-shadow: 0 1px 4px #000; }
.gk-plat.plate .pill-hot { position: absolute; top: 8px; right: 8px; z-index: 2; }
.gk-empty { color: var(--c-muted); text-align: center; padding: 40px 0; }

/* --- Home: sections, rails ------------------------------------------------ */
.gk-sec { margin-top: 26px; }
.gk-sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.gk-sec-head h2 { font-size: 18px; font-weight: 700; margin: 0; padding-left: 12px; position: relative; }
.gk-sec-head h2::before { content: ''; position: absolute; left: 0; top: 3px; bottom: 3px; width: 4px; border-radius: 4px; background: var(--gold-grad); }
.gk-sec-head a { color: var(--gold); font-size: 13px; }
.gk-sec-head a:hover { color: var(--gold-lit); }

.gk-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 148px; gap: 12px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: #2b2b30 transparent; }
.gk-game { display: block; min-width: 0; }
.gk-game .thumb { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--c-surface); border: 1px solid var(--c-line); }
.gk-game .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.gk-game:hover .thumb img { transform: scale(1.06); }
.gk-game .pill-hot { position: absolute; top: 6px; left: 6px; font-size: 10px; padding: 4px 6px; }
.gk-game .name { font-size: 12.5px; color: var(--c-body); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --- Product pages: chips, tabs, grids ------------------------------------ */
body.gk .provider-bar { margin-top: 0; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
body.gk .provider-chip {
  background: var(--c-surface); border: 1px solid var(--c-line); color: var(--c-body); border-radius: 12px;
}
body.gk .provider-chip:hover { border-color: var(--gold-line); color: var(--c-ink); }
body.gk .provider-chip.active { border-color: var(--gold); background: var(--gold-glow); color: var(--gold-lit); box-shadow: inset 0 0 0 1px var(--gold); }
body.gk .tab-pills { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-pill); padding: 4px; display: inline-flex; gap: 4px; flex-wrap: wrap; }
body.gk .tab-pill { background: transparent; color: var(--c-body); border: 0; border-radius: var(--radius-pill); }
body.gk .tab-pill.active, body.gk .tab-pill:hover { background: var(--gold-grad); color: var(--on-gold); }
body.gk .search-box, body.gk .sort-select, body.gk .form-control, body.gk .form-select {
  background-color: var(--c-soft); border: 1px solid var(--c-line); color: var(--c-ink); border-radius: 12px;
}
body.gk .form-control::placeholder { color: var(--c-faint); }
body.gk .form-control:focus, body.gk .form-select:focus { border-color: var(--gold); background-color: var(--c-soft); color: var(--c-ink); }
body.gk .form-select { --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23d4a937' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
body.gk .search-box input { background: transparent; color: var(--c-ink); }
body.gk .tile-grid, body.gk .game-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
body.gk .tile-card .thumb, body.gk .game-card .thumb { border-radius: 14px; border: 1px solid var(--c-line); overflow: hidden; }
body.gk .tile-card .name, body.gk .game-card .name b { color: var(--c-ink); }
body.gk .tile-card .prov, body.gk .game-card .prov { color: var(--c-muted); }
body.gk .tile-card:hover .thumb, body.gk .game-card:hover .thumb { border-color: var(--gold-line); }
body.gk .rail-btn { background: var(--c-surface); color: var(--gold); border: 1px solid var(--c-line); }

/* --- Account pages -------------------------------------------------------- */
.gk-acc main { min-width: 0; }
.gk-acc-wallets { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.gk-acc-bal {
  position: relative; padding: 16px 18px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #221c0e, #151517 70%); border: 1px solid var(--gold-line);
  display: flex; flex-direction: column; gap: 4px;
}
.gk-acc-bal.chip { background: var(--c-surface); border-color: var(--c-line); }
.gk-acc-bal .lbl { font-size: 12.5px; color: var(--c-muted); display: flex; align-items: center; gap: 6px; }
.gk-acc-bal .lbl i { color: var(--gold); }
.gk-acc-bal .amt b { font-size: 24px; color: var(--c-ink); }
.gk-acc-bal .amt small { color: var(--gold); font-weight: 600; }
.gk-acc-bal .go { color: var(--gold-lit); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.gk-acc-bal .tag { font-size: 11.5px; color: var(--c-faint); }

body.gk .acc-card, body.gk .auth-card, body.gk .auth-box, body.gk .promo-item, body.gk .vip-card,
body.gk .acc-panel, body.gk .acc-table-wrap, body.gk .modal-content {
  background: var(--c-surface) !important; border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  color: var(--c-ink); box-shadow: none;
}
body.gk table, body.gk .table { color: var(--c-body); --bs-table-bg: transparent; --bs-table-color: var(--c-body); border-color: var(--c-line); }
body.gk .table > :not(caption) > * > * { border-color: var(--c-line); }
body.gk th { color: var(--c-muted); }
body.gk label { color: var(--c-body); }
body.gk dialog { background: var(--c-surface); color: var(--c-ink); border: 1px solid var(--gold-line); }
body.gk dialog::backdrop { background: rgba(0, 0, 0, .7); }
body.gk .text-muted, body.gk .text-muted-2 { color: var(--c-muted) !important; }

/* --- Footer --------------------------------------------------------------- */
.gk-foot { margin-top: 40px; padding: 24px 0 10px; border-top: 1px solid var(--c-line); }
.gk-foot-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.gk-foot h5 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--c-faint); margin-bottom: 10px; }
.gk-foot .foot-badges img { filter: grayscale(.2) brightness(.95); }
.gk-foot .social-row a { color: var(--gold); }
.gk-foot .copyright { text-align: center; color: var(--c-faint); font-size: 12px; margin-top: 22px; border: 0; padding: 0; }

body.gk .float-top { background: var(--c-surface); color: var(--gold); border: 1px solid var(--gold-line); }
body.gk .float-chat { background: var(--gold-grad); color: var(--on-gold); }

/* Narrower desktop windows: shrink the sidebar before the column. */
@media (max-width: 1360px) {
  :root { --side-w: 244px; }
  .gk-plat-grid, body.gk .tile-grid, body.gk .game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Responsible-gaming marks are dark artwork; lift them onto the black. */
.gk-foot .foot-badges.lg img { filter: invert(1) grayscale(1) brightness(.75); }

/* Deposit speed tabs: gold for the chosen one, dark for the rest. */
body.gk .speed-tabs a { background: var(--c-soft-2); color: var(--c-body); border-radius: 12px 12px 0 0; }
body.gk .speed-tabs a.active { background: var(--gold-grad); color: var(--on-gold); }
body.gk .acc-submit:not(:disabled) { color: var(--on-gold); }

/* VIP page: the hero artwork is light on its left, so lay a dark wash under
   the copy; the tab strip sits under our own 74px bar. */
body.gk .vip-hero-in { background: linear-gradient(90deg, rgba(10,10,11,.94) 0%, rgba(10,10,11,.75) 38%, transparent 62%); }
body.gk .vip-tabbar { top: 74px; background: rgba(10, 10, 11, .97); backdrop-filter: none; }
body.gk .vip-tab.active, body.gk .vip-tab:hover { color: var(--gold-lit); }

/* Promotion list: secondary button */
body.gk .btn-info-blue { background: transparent !important; border: 1px solid var(--gold) !important; color: var(--gold-lit) !important; border-radius: 999px; }

/* No footer any more: breathing room under the last section. */
.gk-col { padding-bottom: 80px; }

/* Language list: flag, name, chevron — one full-width row per language. */
.lang-list { display: flex; flex-direction: column; }
.lang-list-hd { margin: 14px 0 4px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--c-faint); }
.lang-row {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 4px; border-bottom: 1px solid var(--c-line);
  color: var(--c-ink); font-size: 16px; text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.lang-row:hover { background: var(--gold-glow); color: var(--gold-lit); }
.lang-row .lf { flex: 0 0 40px; width: 40px; height: 27px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.lang-row .lf-svg { width: 100%; height: 100%; display: block; }
.lang-row .lf-globe { display: grid; place-items: center; width: 100%; height: 100%; background: var(--c-soft-2); color: var(--gold); }
.lang-row .ln { flex: 1; }
.lang-row > .bi { color: var(--c-muted); font-size: 15px; }
.lang-row.active { color: var(--gold-lit); }
.lang-row.active > .bi { color: var(--gold); font-size: 18px; }
body.gk .lang-panel { width: 340px; padding-bottom: 8px; }
body.gk .lang-panel .lang-row:last-child { border-bottom: 0; }

/* My Account hub + Rebate Rate — the same rules as the mobile build's mgk.css,
   so the two pages look alike; capped in width on the wide canvas. */
/* --- My Account: user + balance + Deposit, then a plain list ---------------- */
.ma-wrap { max-width: 760px; padding: 4px 0 24px; }
.ma-head {
  background: linear-gradient(135deg, #2a2210 0%, #17150f 60%, #111113 100%);
  border: 1px solid var(--gold-line); border-radius: 16px; padding: 16px; margin-bottom: 14px;
}
.ma-user { display: flex; align-items: center; gap: 12px; }
.ma-user .av {
  width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-grad); color: var(--on-gold); font-size: 22px;
}
.ma-user b { font-size: 18px; font-weight: 600; color: var(--c-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ma-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ma-info { min-width: 0; flex: 1; }
.ma-info .ma-bal { margin-top: 14px; }
.ma-acts { display: flex; flex-direction: column; gap: 8px; flex: 0 0 auto; }
.ma-bal { min-width: 0; }
.ma-bal small { display: block; font-size: 12px; color: var(--c-muted); margin-bottom: 2px; }
.ma-bal .cur { font-size: 14px; font-weight: 600; color: var(--c-muted); margin-right: 4px; }
.ma-bal b { font-size: 24px; font-weight: 700; color: var(--gold-lit); }
.ma-dep, .ma-signout {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--gold-grad); color: var(--on-gold); font-weight: 600; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(212, 169, 55, .3); text-decoration: none;
}
.ma-dep, .ma-wd { height: 38px; padding: 0 16px; font-size: 14px; min-width: 116px; }
.ma-wd {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 999px;
  border: 1px solid var(--gold); color: var(--gold-lit); font-weight: 600; text-decoration: none; background: transparent;
}
.ma-wd:hover { color: var(--gold-lit); background: var(--gold-glow); }
.ma-list { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 16px; overflow: hidden; }
.ma-list a, .ma-list button {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 15px 16px;
  background: none; border: 0; border-bottom: 1px solid var(--c-line);
  color: var(--c-ink); font-size: 15px; text-align: left; text-decoration: none;
}
.ma-list > :last-child { border-bottom: 0; }
.ma-list a:active, .ma-list button:active { background: var(--gold-glow); }
.ma-list .ic { font-size: 19px; color: var(--gold); width: 22px; text-align: center; }
.ma-list .lb { flex: 1; }
.ma-list .dot { width: 8px; height: 8px; border-radius: 50%; background: #e5484d; }
.ma-list .chev { font-size: 14px; color: var(--c-faint); }
.ma-signout { display: flex; width: 100%; height: 48px; margin-top: 18px; font-size: 15px; }
.ma-signout:hover, .ma-dep:hover { color: var(--on-gold); }

/* --- Rebate Rate: one card per category, platform and % per row ------------- */
.rr-intro { font-size: 13px; color: var(--c-muted); margin: 0 0 14px; }
.rr-card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 16px; padding: 4px 16px; margin-bottom: 14px; }
.rr-card h2 { font-size: 14px; font-weight: 600; color: var(--gold-lit); margin: 12px 0 4px; display: flex; align-items: center; gap: 8px; }
.rr-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-top: 1px solid var(--c-line); font-size: 14px; }
.rr-card h2 + .rr-row { border-top: 0; }
.rr-row b { color: var(--gold-lit); font-weight: 600; }
.rr-empty { text-align: center; color: var(--c-muted); padding: 40px 0; font-size: 14px; }
.rr-empty i { display: block; font-size: 34px; color: var(--gold); margin-bottom: 8px; }

/* 信用模式: Deposit / Withdraw for a member opened by a credit agent. */
.credit-notice {
  max-width: 760px; margin: 8px 0; padding: 40px 24px; text-align: center;
  background: var(--c-surface); border: 1px solid var(--gold-line); border-radius: 16px;
}
.credit-notice .ic {
  width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-glow); color: var(--gold); font-size: 26px;
}
.credit-notice h2 { font-size: 18px; font-weight: 600; color: var(--gold-lit); margin: 0 0 8px; }
.credit-notice p { font-size: 13px; color: var(--c-muted); margin: 0 0 20px; }
.credit-notice-btn {
  display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 26px;
  border-radius: 999px; background: var(--gold-grad); color: var(--on-gold); font-weight: 600; text-decoration: none;
}
.credit-notice-btn:hover { color: var(--on-gold); }

/* Login / register: the form alone now that the side banner is gone. */
body.gk .auth-grid { grid-template-columns: minmax(0, 420px); }

/* Rebate Rate: three columns — Self, Level 1, Level 2. */
.rr-row b { flex: 0 0 110px; text-align: right; }
.rr-row span { flex: 1; min-width: 0; }
.rr-row.rr-hd { font-size: 11px; color: var(--c-faint); padding: 6px 0; text-transform: uppercase; letter-spacing: .04em; }
.rr-row.rr-hd b { color: var(--c-faint); font-weight: 600; }

/* Favourite games — the star in a card's top-right corner (inc/favorites.php)
   and the My Favourites page. */
.fav-star { position: absolute; top: 6px; right: 6px; z-index: 3; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(0, 0, 0, .55); color: #fff; font-size: 14px; cursor: pointer;
  transition: transform .15s ease, color .15s ease; }
.fav-star:hover { transform: scale(1.12); color: #ff6b74; }
.fav-star.on { color: #ff3b47; }
.fav-star[aria-busy="true"] { opacity: .5; pointer-events: none; }
.thumb:has(.fav-star) { position: relative; }
.fav-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.fav-empty .fav-browse { display: inline-block; margin-top: 16px; padding: 9px 28px; border-radius: 999px;
  background: var(--gold-grad); color: var(--on-gold); font-weight: 600; }

/* --- My Account → Agent (account/agent.php): team list, 占成% form, report --- */
.agp-note { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; font-size: 13px; margin-bottom: 12px; }
.agp-note.ok  { background: rgba(63,180,111,.14); color: #3fb46f; }
.agp-note.err { background: rgba(224,72,79,.14); color: #e0484f; }
.agp-head, .agp-sum {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-bottom: 14px;
  background: var(--c-surface); border: 1px solid var(--gold-line, var(--c-line)); border-radius: 16px; overflow: hidden;
}
.agp-head > div, .agp-sum > div { padding: 12px 10px; text-align: center; border-left: 1px solid var(--c-line); min-width: 0; }
.agp-head > div:first-child, .agp-sum > div:first-child { border-left: 0; }
.agp-head small, .agp-sum small { display: block; font-size: 11px; color: var(--c-muted); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agp-head b { font-size: 18px; font-weight: 700; color: var(--gold-lit); }
.agp-sum b { font-size: 13px; font-weight: 600; color: var(--c-ink); word-break: break-word; }
.agp-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; margin-bottom: 14px;
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 999px; }
.agp-tabs a { display: flex; align-items: center; justify-content: center; gap: 5px; height: 38px; min-width: 0; white-space: nowrap; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--c-muted); text-decoration: none; }
.agp-tabs a.on { background: var(--gold-grad); color: var(--on-gold); }
.agp-card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 16px; margin-bottom: 14px; }
.agp-list .agp-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--c-line); }
.agp-list .agp-row:first-child { border-top: 0; }
.agp-row .who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.agp-row .who b { font-size: 14px; color: var(--c-ink); overflow: hidden; text-overflow: ellipsis; }
.agp-row .who small { font-size: 11px; color: var(--c-faint); }
.agp-row a.who { text-decoration: none; }
.agp-row .who b i { font-size: 11px; color: var(--c-faint); }
.agp-tag { font-size: 12px; font-weight: 600; color: var(--gold-lit); background: var(--gold-glow); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.agp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; padding: 0 20px;
  border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.agp-btn.sm { height: 32px; padding: 0 14px; font-size: 13px; }
.agp-btn.gold { background: var(--gold-grad); color: var(--on-gold); }
.agp-btn.gold:hover { color: var(--on-gold); }
.agp-btn.line { background: transparent; border-color: var(--gold); color: var(--gold-lit); }
.agp-form { padding: 16px; }
.agp-field { margin-bottom: 14px; min-width: 0; }
.agp-field label { display: block; font-size: 12px; color: var(--c-muted); margin-bottom: 6px; }
.agp-field label i { color: #e0484f; font-style: normal; }
.agp-cap { float: right; color: var(--gold-lit); font-weight: 600; }
.agp-static { padding: 10px 0; font-size: 15px; color: var(--c-ink); }
.agp-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.agp-filter { padding: 14px; }
.agp-dates { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
.agp-dates .agp-field { margin-bottom: 0; }
.agp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.agp-chips:first-child { margin: 0 0 12px; }
.agp-chips a { font-size: 12px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--c-line); color: var(--c-muted); text-decoration: none; }
.agp-chips a.on { border-color: var(--gold); color: var(--gold-lit); background: var(--gold-glow); }
.agp-crumb { font-size: 13px; color: var(--c-muted); margin: 0 0 12px; }
.agp-crumb a { color: var(--gold-lit); }
.agp-h { font-size: 14px; font-weight: 600; color: var(--gold-lit); margin: 18px 0 8px; }
.agp-empty { text-align: center; color: var(--c-muted); padding: 26px 0; font-size: 13px; }
.agp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.agp-tbl table { width: 100%; border-collapse: collapse; font-size: 12px; white-space: nowrap; }
.agp-tbl th, .agp-tbl td { padding: 9px 10px; border-top: 1px solid var(--c-line); text-align: left; }
.agp-tbl thead th { color: var(--c-faint); font-weight: 600; border-top: 0; }
.agp-tbl thead tr.grp th { text-align: center; color: var(--gold-lit); border-bottom: 1px solid var(--c-line); }
.agp-tbl tfoot th { color: var(--c-ink); background: var(--gold-glow); }
.agp-tbl .num { text-align: right; }
.agp-tbl .sep { border-left: 1px solid var(--c-line); }
.agp-tbl tr.off td { opacity: .5; }
.agp-tbl td a { color: var(--gold-lit); }
.agp-n.up { color: #3fb46f; }
.agp-n.down { color: #e0484f; }
@media (max-width: 420px) {
  .agp-dates { grid-template-columns: 1fr 1fr; }
  .agp-dates .agp-btn { grid-column: 1 / -1; }
}

/* Invite: the four head counts above the code */
.ref-stats { display: grid; grid-template-columns: repeat(4, 1fr); padding: 16px 6px; }
.ref-stats > div { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 6px; text-align: center; border-left: 1px solid var(--c-line); }
.ref-stats > div:first-child { border-left: 0; }
.ref-stats b { font-size: 26px; line-height: 1; font-weight: 700; color: var(--gold-lit); }
.ref-stats small { font-size: 12px; line-height: 1.3; color: var(--c-muted); }

/* Agent Centre: the 佣金钱包 strip, and the settlements under it */
.agp-wallet { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; padding: 14px 16px;
  background: var(--c-surface); border: 1px solid var(--gold-line, var(--c-line)); border-radius: 16px; text-decoration: none; }
.agp-wallet .agp-btn { flex: none; }
.agp-wallet span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.agp-wallet small { font-size: 11px; color: var(--c-muted); }
.agp-wallet b { font-size: 20px; font-weight: 700; color: var(--gold-lit); }
.agp-wallet b.neg { color: #e0484f; }
.agp-wallet > i, .agp-list a.agp-row > i { font-size: 13px; color: var(--c-faint); }
.agp-list a.agp-row { text-decoration: none; }
.agp-amt { font-size: 13px; font-weight: 600; color: var(--c-ink); white-space: nowrap; }
.agp-btn.agp-wide { width: 100%; }
.agp-btn[disabled] { opacity: .45; pointer-events: none; }

/* Lobby: a platform under maintenance — grey, labelled, not clickable */
.gk-plat.maint, .gk-plat.plate.maint { position: relative; cursor: default; pointer-events: none; }
.gk-plat.maint img { filter: grayscale(1) brightness(.55); }
.gk-plat.plate.maint { filter: grayscale(1) brightness(.7); }
.gk-plat.maint .plat-maint, .gk-plat.plate.maint .plat-maint {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3;
  max-width: 92%; padding: 5px 10px; border-radius: 999px; background: rgba(0, 0, 0, .72); border: 1px solid rgba(255, 255, 255, .35);
  color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .02em; text-align: center; white-space: nowrap;
}
