/* ===== Mahjong Nusantara — gaya situs ===== */
:root {
  --felt: #0f4d3a;
  --felt-dark: #0a3528;
  --felt-light: #16684e;
  --gold: #e3b54a;
  --gold-dark: #b8892a;
  --ivory: #fbf6e9;
  --ink: #1d2a24;
  --muted: #8fb3a4;
  --red: #c62828;
  --card: rgba(8, 40, 30, .78);
  --line: rgba(227, 181, 74, .25);
  --radius: 14px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { background: #0a3528; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font); color: #eef6f1; line-height: 1.5;
  background: radial-gradient(1200px 700px at 50% -10%, #1b7a5b 0%, var(--felt) 45%, var(--felt-dark) 100%) fixed;
}
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.2; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.15rem; color: var(--gold); }
.muted { color: var(--muted); } .small, small { font-size: .82rem; } .center { text-align: center; }
.container { max-width: 1100px; margin: 0 auto; padding: 18px; }

/* Topbar */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px 20px; background: rgba(0, 0, 0, .28); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20; backdrop-filter: blur(6px);
}
.brand { font-weight: 700; font-size: 1.1rem; color: #fff; display: flex; align-items: center; gap: 8px; }
.brand-tile {
  display: inline-grid; place-items: center; width: 28px; height: 36px; border-radius: 5px;
  background: var(--ivory); color: var(--red); font-weight: 800; box-shadow: 0 3px 0 #c9bfa6;
}
.topbar nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.topbar nav a { color: #d9ece3; }
.nav-user { font-weight: 600; color: var(--gold) !important; }
form.inline { display: inline; margin: 0; }
.link-btn { background: none; border: 0; color: #f0a5a5; cursor: pointer; font: inherit; padding: 0; }

/* Buttons & forms */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: 10px; border: 0; cursor: pointer; font: 600 .95rem var(--font);
  background: linear-gradient(180deg, #2fa477, #1d7f5a); color: #fff; box-shadow: 0 3px 0 #145a40;
  transition: transform .08s, filter .15s;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #145a40; }
.btn-gold { background: linear-gradient(180deg, #f2cb68, var(--gold-dark)); color: #3b2a05; box-shadow: 0 3px 0 #8a6518; }
.btn-danger { background: linear-gradient(180deg, #e35a5a, #a82525); box-shadow: 0 3px 0 #6e1717; }
.btn-ghost { background: transparent; border: 1px solid var(--line); box-shadow: none; color: #d9ece3; }
.btn-small { padding: 6px 12px; font-size: .85rem; }
.btn-block { width: 100%; margin-top: 8px; }
label { display: block; margin: 10px 0; font-size: .9rem; color: #cfe5db; }
input[type=text], input[type=password], input[type=email], select {
  display: block; width: 100%; margin-top: 5px; padding: 10px 12px; border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .15); background: rgba(0, 0, 0, .3); color: #fff; font: 1rem var(--font);
}
input:focus, select:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
select option { color: #000; }
.code-input { text-transform: uppercase; letter-spacing: .5em; font-size: 1.6rem !important; text-align: center; font-weight: 700; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.alert { padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; }
.alert-ok { background: rgba(47, 164, 119, .25); border: 1px solid #2fa477; }
.alert-error { background: rgba(198, 40, 40, .25); border: 1px solid #e57373; }
.alert-warn { background: rgba(227, 181, 74, .2); border: 1px solid var(--gold); }

/* Auth */
.auth-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: center; min-height: 70vh; }
.auth-hero h1 { font-size: 2.4rem; }
.auth-hero p { color: #cfe5db; max-width: 460px; }
.hero-tiles { display: flex; gap: 10px; margin-bottom: 18px; }
.hero-tiles span {
  width: 64px; height: 84px; display: grid; place-items: center; font-size: 2.3rem; font-weight: 800; color: #1a2f6b;
  background: linear-gradient(180deg, #fffdf6, #efe6cd); border-radius: 9px; box-shadow: 0 6px 0 #c4b48c, 0 10px 18px rgba(0, 0, 0, .35);
  font-family: 'Noto Serif CJK SC', 'Microsoft YaHei', serif;
}
.hero-tiles span:nth-child(odd) { transform: rotate(-4deg); } .hero-tiles span:nth-child(even) { transform: rotate(3deg) translateY(6px); }
.hero-tiles .red { color: var(--red); } .hero-tiles .green { color: #1f8a4c; } .hero-tiles .blue { color: #1d4ea8; }
.auth-card { max-width: 420px; width: 100%; justify-self: end; }

/* Lobby */
.lobby-head { margin-bottom: 14px; }
.lobby-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.lobby-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lobby-grid .card { display: flex; flex-direction: column; }
.lobby-grid .card .btn-block { margin-top: auto; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.grid3 label { margin: 6px 0; font-size: .8rem; }
.table-list { display: flex; flex-direction: column; gap: 8px; }
.room-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .05); color: #fff; }
.room-row:hover { background: rgba(255, 255, 255, .1); text-decoration: none; }
.room-row .code { font-family: monospace; font-size: 1.1rem; color: var(--gold); letter-spacing: .15em; font-weight: 700; }
.room-row .grow { flex: 1; }
.badge { padding: 2px 10px; border-radius: 99px; font-size: .78rem; background: rgba(255, 255, 255, .12); }
.badge-playing { background: #2fa477; } .badge-finished { background: #6a6a6a; }

/* Data table */
.scroll-x { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; }
table.data th, table.data td { padding: 9px 10px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, .08); white-space: nowrap; }
table.data th { color: var(--gold); font-weight: 600; font-size: .85rem; }
table.data tr.me td { background: rgba(227, 181, 74, .12); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.pos { color: #7ee2b0; } .neg { color: #ff9a9a; }
ul.plain { list-style: none; padding: 0; } ul.plain li { padding: 5px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.rules ul { padding-left: 20px; } .rules li { margin: 5px 0; }

.footer { text-align: center; color: var(--muted); font-size: .8rem; padding: 20px; }

@media (max-width: 860px) {
  .auth-wrap, .lobby-grid, .lobby-grid.two { grid-template-columns: 1fr; }
  .auth-card { justify-self: stretch; max-width: none; }
  .auth-hero h1 { font-size: 1.8rem; }
  .grid3 { grid-template-columns: 1fr 1fr 1fr; }
}

/* ===== Panel pengaturan suara ===== */
.nav-audio { font-size: 1rem; line-height: 1; }
.snd-panel { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; background: rgba(0, 0, 0, .5); padding: 16px; }
.snd-panel.open { display: grid; }
.snd-card {
  width: min(360px, 100%); max-height: 100%; overflow: auto; background: #0d4433; color: #eef6f1;
  border: 2px solid var(--gold, #e3b54a); border-radius: 16px; padding: 14px 18px 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, .55);
  font-family: var(--font, system-ui, sans-serif);
}
.snd-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; color: var(--gold, #e3b54a); font-size: 1.05rem; }
.snd-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 6px 0; font-size: .95rem; color: #eef6f1; cursor: pointer; }
.snd-master { padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, .12); font-weight: 600; }
.snd-group { padding: 6px 0 8px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.snd-slider { display: flex; align-items: center; gap: 10px; }
.snd-slider output { min-width: 42px; text-align: right; font-variant-numeric: tabular-nums; color: var(--gold, #e3b54a); font-size: .85rem; }
.snd-slider input[type=range] { flex: 1; accent-color: var(--gold, #e3b54a); height: 28px; cursor: pointer; }
.snd-slider input[type=range]:disabled { opacity: .35; cursor: not-allowed; }
.snd-foot { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.snd-panel.muted-all .snd-group { opacity: .45; }
/* Sakelar on/off */
input.sw { appearance: none; -webkit-appearance: none; width: 46px; height: 26px; border-radius: 99px; background: #4a5f57; position: relative; cursor: pointer; flex: none; margin: 0; transition: background .2s; }
input.sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
input.sw:checked { background: #2fa477; }
input.sw:checked::after { transform: translateX(20px); }
input.sw:disabled { opacity: .45; cursor: not-allowed; }
input.sw:focus-visible { outline: 2px solid var(--gold, #e3b54a); outline-offset: 2px; }
.icon-btn { background: rgba(255, 255, 255, .1); border: 0; border-radius: 8px; padding: 4px 8px; cursor: pointer; font-size: 1rem; color: #fff; }
.icon-btn:hover { background: rgba(255, 255, 255, .18); }

/* ===== Dompet, toko, sewa meja ===== */
.wallet-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 10px; border-radius: 99px; background: rgba(0,0,0,.3); border: 1px solid var(--line); color: #fff !important; text-decoration: none !important; font-size: .85rem; }
.wallet-chip .chip-level { background: rgba(255,255,255,.12); border-radius: 99px; padding: 1px 8px; }
.wallet-chip .chip-vip { background: linear-gradient(180deg,#f2cb68,#b8892a); color: #3b2a05; border-radius: 99px; padding: 1px 8px; font-weight: 700; }
.nav-admin { color: #ffcf6b !important; font-weight: 600; }
.lobby-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.wallet-card { display: grid; grid-template-columns: auto auto; gap: 4px 22px; padding: 12px 18px; border-radius: 14px; background: linear-gradient(135deg, rgba(227,181,74,.22), rgba(0,0,0,.25)); border: 1px solid rgba(227,181,74,.5); color: #fff; text-decoration: none !important; }
.wallet-card b { font-size: 1.35rem; display: block; }
.wc-label { font-size: .75rem; color: var(--muted); }
.wc-cta { grid-column: 1 / -1; font-size: .82rem; color: var(--gold); }
.mini-list { list-style: none; padding: 0; margin: 8px 0; font-size: .88rem; color: #cfe5db; }
.mini-list li { padding: 2px 0; }
.mission-list { list-style: none; padding: 0; margin: 6px 0 10px; }
.mission-list li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.07); font-size: .9rem; }
.mission-list li > span:first-child { flex: 1; }
.mission-list li.done { opacity: .6; }
.mission-list.big li { gap: 12px; }
.m-name { flex: 1.6 !important; }
.m-bar { flex: 1; height: 8px; background: rgba(255,255,255,.1); border-radius: 99px; overflow: hidden; min-width: 60px; }
.m-bar span { display: block; height: 100%; background: linear-gradient(90deg,#2fa477,#7ee2b0); }
.m-prog { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .82rem; min-width: 34px; text-align: right; }
.badge-claim { background: var(--gold); color: #3b2a05; font-weight: 700; }
.badge-pending { background: #8a6518; } .badge-paid { background: #2fa477; } .badge-failed, .badge-expired { background: #7a3030; }
.badge.big { font-size: .9rem; padding: 5px 14px; }

.rent-form { margin-top: 18px; }
.table-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 12px 0; }
.tt { position: relative; margin: 0; cursor: pointer; }
.tt input { position: absolute; opacity: 0; pointer-events: none; }
.tt-body { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px; border-radius: 14px; border: 2px solid rgba(255,255,255,.12); background: rgba(0,0,0,.25); transition: border-color .15s, transform .15s; }
.tt:hover .tt-body { transform: translateY(-2px); }
.tt.active .tt-body, .tt input:checked + .tt-body { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(227,181,74,.2); }
.tt input:focus-visible + .tt-body { outline: 2px solid var(--gold); outline-offset: 2px; }
.tt.locked { cursor: not-allowed; opacity: .55; }
.tt-name { font-weight: 700; font-size: 1.05rem; color: #fff; }
.tt-premium .tt-name { color: #9fd8ff; } .tt-vip .tt-name { color: var(--gold); }
.tt-cost { font-weight: 700; color: var(--gold); }
.tt-dur { font-size: .82rem; color: var(--muted); }
.tt-feat { display: flex; flex-direction: column; gap: 2px; font-size: .8rem; color: #cfe5db; margin-top: 4px; }
.tt-note { font-size: .78rem; color: #ffb3b3; margin-top: auto; padding-top: 6px; }
.rent-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
.rent-options label { margin: 6px 0; }
.rent-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }

.shop-head { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.balance-card { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.balance-card.vip-on { border-color: var(--gold); background: linear-gradient(135deg, rgba(227,181,74,.25), var(--card)); }
.bc-label { font-size: .8rem; color: var(--muted); }
.bc-value { font-size: 1.7rem; }
.lv-bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.lv-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-dark), var(--gold)); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.product { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 16px 16px; border-radius: 14px; background: rgba(0,0,0,.25); border: 1px solid var(--line); text-align: center; }
.p-badge { position: absolute; top: -10px; right: 12px; background: linear-gradient(180deg,#ff6b6b,#c62828); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.p-icon { font-size: 2.2rem; }
.p-name { font-size: 1.05rem; }
.p-price { font-size: 1.4rem; font-weight: 800; color: var(--gold); }
.p-price small { font-size: .8rem; color: var(--muted); font-weight: 400; }
.vip-card { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; background: linear-gradient(135deg, rgba(227,181,74,.25), rgba(8,40,30,.85)); border-color: var(--gold); }
.vip-buy { display: flex; flex-direction: column; gap: 8px; min-width: 240px; text-align: center; }
.ad-card .ad-count { font-size: 1.05rem; }
.note-card h3 { color: var(--gold); }
.ad-overlay { position: fixed; inset: 0; z-index: 150; background: rgba(0,0,0,.75); display: grid; place-items: center; padding: 16px; }
.ad-overlay[hidden] { display: none; }
.ad-box { width: min(420px, 100%); background: #fff; color: #222; border-radius: 16px; overflow: hidden; }
.ad-tag { background: #ffd54f; color: #333; font-size: .75rem; font-weight: 700; padding: 4px 10px; }
.ad-creative { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 36px 20px; text-align: center; background: linear-gradient(160deg, #f1f8e9, #c5e1a5); }
.ad-logo { font-size: 3.5rem; }
.ad-foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: #f5f5f5; }

.checkout { max-width: 760px; margin: 0 auto; }
.co-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.co-code { font-family: monospace; font-size: 1.3rem; letter-spacing: .05em; }
.co-table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; }
.co-table td { padding: 8px 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
.co-table td:first-child { color: var(--muted); width: 120px; }
.co-total td { font-size: 1.2rem; font-weight: 800; color: var(--gold); border-bottom: 0; }
.qris-demo { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: start; }
.qris-box { background: #fff; color: #222; border-radius: 14px; padding: 14px; text-align: center; }
.qris-title { font-weight: 800; letter-spacing: .1em; }
.demo-tag { background: #c62828; color: #fff; font-size: .7rem; padding: 2px 8px; border-radius: 99px; letter-spacing: 0; vertical-align: middle; }
.qris-svg { width: 100%; height: auto; margin: 8px 0; image-rendering: pixelated; }
.qris-amount { font-size: 1.2rem; font-weight: 800; }
.qris-steps form { margin: 8px 0; }
.co-success { text-align: center; padding: 10px 0; }
.co-check { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center; font-size: 2.2rem; background: #2fa477; }

.admin-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.kpi span { font-size: .78rem; color: var(--muted); } .kpi b { font-size: 1.4rem; } .kpi small { color: #a9cbbd; font-size: .75rem; }
.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 220px; padding-top: 18px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.bar { width: 100%; max-width: 38px; background: linear-gradient(180deg, var(--gold), var(--gold-dark)); border-radius: 6px 6px 0 0; }
.bar-val { font-size: .68rem; color: var(--gold); min-height: 1em; }
.bar-lbl { font-size: .68rem; color: var(--muted); }
.admin-form { align-items: end; }
.danger-card { border-color: rgba(229,115,115,.5); }

/* Legal */
.legal { max-width: 900px; margin: 0 auto; line-height: 1.65; }
.legal h2 { margin-top: 1.4em; } .legal h3 { color: #cfe5db; font-size: 1rem; margin-top: 1em; }
.legal ul, .legal ol { padding-left: 22px; } .legal li { margin: 4px 0; }
.legal-table td, .legal-table th { white-space: normal; vertical-align: top; font-size: .88rem; }
.legal-highlight { padding: 12px 16px; border-radius: 12px; background: rgba(47,164,119,.18); border: 1px solid #2fa477; margin: 12px 0; }
.footer-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 6px; }
.footer-links a { color: #e3b54a; }
.footer-note { font-size: .72rem; margin-top: 4px; opacity: .8; }

@media (max-width: 860px) {
  .table-types, .rent-options, .shop-head, .product-grid, .kpi-grid { grid-template-columns: 1fr 1fr; }
  .qris-demo { grid-template-columns: 1fr; }
  .qris-box { max-width: 260px; margin: 0 auto; }
}
@media (max-width: 560px) {
  .table-types, .rent-options, .shop-head, .product-grid, .kpi-grid { grid-template-columns: 1fr; }
}

/* ---------- Admin: Harga & Paket ---------- */
#harga { scroll-margin-top: 70px; }
#harga h3 { margin: 18px 0 6px; font-size: 1rem; color: var(--gold, #e3b54a); }
.price-note { background: rgba(227, 181, 74, .1); border: 1px solid rgba(227, 181, 74, .4); border-radius: 10px; padding: 10px 14px; font-size: .88rem; }
.price-note ul { margin: 6px 0 0 18px; } .price-note li { margin: 3px 0; }
.price-table input[type=text] { margin: 0; padding: 6px 8px; min-width: 0; }
.price-table .w-num { width: 64px; text-align: right; display: inline-block; }
.price-table td.num { white-space: nowrap; }
.price-table .w-price { width: 110px; text-align: right; }
.price-table td { vertical-align: middle; }
.price-table td:nth-child(2) input { width: 190px; }
.price-table td:nth-child(6) input { width: 130px; }
.switch-lbl { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.price-actions { margin-top: 10px; }
.price-reset { margin-top: 8px; }
.pill { font-size: .7rem; padding: 1px 8px; border-radius: 99px; background: rgba(227, 181, 74, .2); color: var(--gold, #e3b54a); font-weight: 700; }
td.pre { white-space: normal; font-size: .82rem; }
@media (max-width: 700px) { #harga { scroll-margin-top: 190px; } }

/* Pilihan Mode Belajar di formulir */
label.check { display: flex; align-items: center; gap: 8px; flex-direction: row; cursor: pointer; margin: 8px 0; align-self: end; min-height: 44px; }
label.check span { line-height: 1.35; }
label.check input[type=checkbox] { width: 18px; height: 18px; margin: 0; accent-color: #2fa477; flex: none; }

/* Admin: laporan chat */
#laporan { scroll-margin-top: 70px; }
#laporan tr.rep-new td { background: rgba(229, 57, 53, .08); }
#laporan audio { height: 32px; max-width: 220px; margin-top: 4px; }
.rep-form { display: flex; gap: 4px; flex-wrap: wrap; }
@media (max-width: 700px) { #laporan { scroll-margin-top: 190px; } }

/* Captcha login & daftar */
.captcha-row { display: flex; align-items: center; gap: 12px; margin: 4px 0 8px; flex-wrap: wrap; }
.captcha-img { border-radius: 8px; border: 1px solid rgba(255, 255, 255, .2); background: #fff; max-width: 100%; height: auto; }
.captcha-q { font-size: 1.3rem; font-weight: 700; letter-spacing: .05em; padding: 8px 14px; border-radius: 8px; background: rgba(255, 255, 255, .08); }
.captcha-new { font-size: .85rem; white-space: nowrap; }
.captcha-input { text-transform: uppercase; letter-spacing: .25em; font-weight: 700; }

/* Admin: pemilih pemain (pencarian) */
.usel { position: relative; display: flex; flex-direction: column; gap: 4px; }
.usel-list { position: absolute; top: 100%; left: 0; right: 0; z-index: 30; margin: 4px 0 0; padding: 4px; list-style: none; max-height: 320px; overflow-y: auto;
  background: #0b2f23; border: 1px solid rgba(227, 181, 74, .5); border-radius: 10px; box-shadow: 0 12px 30px rgba(0, 0, 0, .5); min-width: 300px; }
.usel-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: .9rem; }
.usel-list li small { color: var(--muted); }
.usel-list li.active, .usel-list li:hover { background: rgba(227, 181, 74, .15); }
.usel-list li.usel-empty { cursor: default; color: var(--muted); }
.usel-list mark { background: rgba(227, 181, 74, .45); color: inherit; border-radius: 3px; padding: 0 1px; }
.usel-tk { white-space: nowrap; font-weight: 700; }
.usel-picked { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px;
  background: rgba(47, 164, 119, .18); border: 1px solid rgba(47, 164, 119, .6); font-size: .9rem; min-height: 44px; }
.usel-picked small { color: var(--muted); }
.usel [hidden] { display: none !important; }
#adjust-form { align-items: start; }
#adjust-form .usel label { margin: 0; }

/* Lupa password & kotak surat uji */
.code-input { font-size: 1.4rem; letter-spacing: .5em; text-align: center; font-weight: 700; }
.mailbox details { border-bottom: 1px solid rgba(255, 255, 255, .08); padding: 6px 0; }
.mailbox summary { cursor: pointer; }
.mailbox pre { white-space: pre-wrap; background: rgba(0, 0, 0, .25); padding: 10px; border-radius: 8px; font-size: .85rem; }
.auth-wrap.auth-single { display: block; max-width: 480px; margin: 24px auto; }
.auth-wrap.auth-single .auth-card { width: 100%; max-width: none; }

/* Tombol "Ambil" misi di lobby (badge yang bisa diklik) */
.badge-btn { border: 0; cursor: pointer; font: inherit; font-size: .78rem; line-height: 1.4; display: inline-block; }
.badge-btn:hover { filter: brightness(1.1); text-decoration: none; }
.badge-btn:active { transform: translateY(1px); }

/* ===== Download aplikasi Android (QR) ===== */
.apk-box { display: flex; gap: 14px; align-items: center; margin-top: 18px; padding: 12px; border-radius: 14px;
           background: rgba(0,0,0,.25); border: 1px solid rgba(227,181,74,.35); text-align: left; }
.apk-qr { flex: 0 0 auto; line-height: 0; }
.apk-qr svg { display: block; width: 168px; height: 168px; max-width: 42vw; max-height: 42vw; border-radius: 8px; }
.apk-info { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; min-width: 0; }
.apk-info .btn { margin-top: 2px; }
.apk-admin { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.apk-admin .apk-qr svg { width: 180px; height: 180px; }
.apk-form { display: grid; gap: 10px; max-width: 560px; }
.apk-form label { display: grid; gap: 4px; }
.apk-form .switch-lbl { display: flex; gap: 8px; align-items: center; }
.apk-link { word-break: break-all; }
@media (max-width: 640px) {
  .apk-box { flex-direction: column; text-align: center; }
  .apk-info { align-items: center; }
  .apk-admin { grid-template-columns: 1fr; }
}

/* ===== Transfer bank (checkout & admin) ===== */
.tf-box h2 { margin-top: 0; }
.tf-bank { background: rgba(0,0,0,.25); border: 1px solid rgba(227,181,74,.35); border-radius: 12px; padding: 6px 14px; margin: 10px 0 14px; }
.tf-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.tf-row:last-child { border-bottom: 0; }
.tf-row > span { color: var(--muted); width: 130px; }
.tf-row > b { flex: 1; font-size: 1.05rem; word-break: break-all; }
.tf-amount > b { font-size: 1.4rem; color: var(--gold); }
.tf-mono { font-family: monospace; letter-spacing: .04em; }
mark.tf-uniq { background: var(--gold); color: #3b2a05; border-radius: 4px; padding: 0 3px; margin-left: 1px; }
.tf-steps { padding-left: 20px; line-height: 1.6; }
.tf-form { display: grid; gap: 8px; margin: 12px 0 8px; }
.tf-form label { display: grid; gap: 4px; }
.co-wait { background: #8a6518; }
.tf-admin td { vertical-align: middle; }
.tf-admin tr.tf-confirmed { background: rgba(47,164,119,.12); }
.tf-nominal { font-weight: 800; white-space: nowrap; }
.tf-actions { white-space: nowrap; }
.tf-actions form { margin-right: 4px; }
.admin-form .span3 { grid-column: 1 / -1; }
@media (max-width: 640px) { .tf-row > span { width: 100%; } }

/* Catatan versi aplikasi (Admin) */
.admin-form textarea { width: 100%; box-sizing: border-box; font: inherit; color: inherit; background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.18); border-radius: 10px; padding: 8px 10px; resize: vertical; }
.admin-form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
