/* Cybex Games — single stylesheet, no build step. */
:root {
    --bg: #07070a;
    --bg-2: #0d0d12;
    --surface: #121218;
    --surface-2: #181820;
    --border: #24242e;
    --border-2: #30303c;
    --text: #f4f4f7;
    --muted: #9b9bab;
    --dim: #6b6b7a;
    --red: #f23a55;
    --red-2: #ff5a72;
    --red-dark: #b81d36;
    --red-glow: rgba(242, 58, 85, .35);
    --green: #22c58b;
    --amber: #f5b33d;
    --blue: #4c8dff;
    --radius: 14px;
    --radius-sm: 9px;
    --head: 'Rajdhani', 'Segoe UI', sans-serif;
    --body: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
    --fg: #ffffff;
}

:root { color-scheme: dark; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 15px/1.6 var(--body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
a { color: var(--red-2); text-decoration: none; }
a:hover { color: var(--fg); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; line-height: 1.1; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
code, pre, .mono { font-family: var(--mono); font-size: .88em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
::selection { background: var(--red); color: #fff; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 760px; }
main { flex: 1; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.red { color: var(--red); }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; gap: 12px; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---- Header ---------------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(7, 7, 10, .82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a {
    color: var(--muted); font-family: var(--head); font-weight: 600; font-size: 1.02rem;
    letter-spacing: .04em; text-transform: uppercase; padding: 8px 12px; border-radius: 8px;
}
.nav a:hover, .nav a.active { color: var(--fg); background: var(--surface); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.menu-toggle { display: none; background: none; border: 1px solid var(--border-2); color: var(--fg); border-radius: 8px; padding: 6px 10px; cursor: pointer; }
@media (max-width: 860px) {
    .menu-toggle { display: block; margin-left: auto; }
    .nav, .nav-actions { display: none; }
    .site-header.open .container { flex-wrap: wrap; height: auto; padding-top: 18px; padding-bottom: 18px; }
    .site-header.open .nav, .site-header.open .nav-actions { display: flex; flex-direction: column; width: 100%; align-items: stretch; }
    .brand img { height: 24px; }
}

/* ---- Buttons --------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font: 600 .95rem/1 var(--body); padding: 12px 20px; border-radius: 10px;
    border: 1px solid transparent; cursor: pointer; transition: .15s ease; white-space: nowrap;
    color: var(--fg); background: var(--surface-2); border-color: var(--border-2);
}
.btn:hover { color: var(--fg); border-color: #4a4a58; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%); border-color: var(--red); box-shadow: 0 8px 24px -8px var(--red-glow); }
.btn-primary:hover { box-shadow: 0 10px 30px -6px var(--red-glow); border-color: var(--red-2); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--fg); background: var(--surface); }
.btn-danger { background: transparent; border-color: rgba(242, 58, 85, .45); color: var(--red-2); }
.btn-danger:hover { background: rgba(242, 58, 85, .12); }
.btn-success { background: rgba(34, 197, 139, .12); border-color: rgba(34, 197, 139, .5); color: #5ee2b0; }
.btn-sm { padding: 7px 12px; font-size: .84rem; border-radius: 8px; }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }
button:disabled, .btn[disabled] { opacity: .5; pointer-events: none; }

/* ---- Cards ----------------------------------------------------------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.card-head h3 { margin: 0; }
.card.flush { padding: 0; overflow: hidden; }
.card.flush .card-head { padding: 20px 24px 0; }

.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; position: relative; overflow: hidden; }
.stat .label { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.stat .value { font-family: var(--head); font-size: 2rem; font-weight: 700; margin-top: 4px; }
.stat .sub { color: var(--dim); font-size: .82rem; }
.stat.accent { border-color: rgba(242, 58, 85, .4); background: linear-gradient(160deg, rgba(242, 58, 85, .14), var(--surface) 60%); }

/* ---- Hero ------------------------------------------------------------ */
.hero { position: relative; padding: 90px 0 80px; overflow: hidden; }
.hero::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(800px 400px at 85% 10%, rgba(242, 58, 85, .22), transparent 60%),
        radial-gradient(600px 300px at 0% 100%, rgba(242, 58, 85, .10), transparent 60%);
    pointer-events: none;
}
.hero::after {
    content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .35;
    background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at 60% 30%, #000 10%, transparent 70%);
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 span { color: var(--red); }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px; font: 600 .78rem/1 var(--body); letter-spacing: .14em;
    text-transform: uppercase; color: var(--red-2); background: rgba(242, 58, 85, .1);
    border: 1px solid rgba(242, 58, 85, .3); padding: 7px 12px; border-radius: 999px; margin-bottom: 20px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-points { display: flex; gap: 24px; margin-top: 34px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.hero-points b { color: var(--fg); font-family: var(--head); font-size: 1.4rem; display: block; }
.hero-points .flex { align-items: flex-start; }
.hero-points .icon { margin-top: 5px; }
@media (max-width: 900px) { .hero .container { grid-template-columns: 1fr; } .hero { padding: 56px 0; } }

/* The floating e-PIN card */
.pin-card {
    position: relative; aspect-ratio: 1.6; border-radius: 22px; padding: 28px;
    background: linear-gradient(135deg, #1c1c25 0%, #0f0f14 55%, #2a0d15 100%);
    border: 1px solid #2c2c38;
    box-shadow: 0 30px 80px -20px rgba(242, 58, 85, .35), inset 0 1px 0 rgba(255, 255, 255, .06);
    display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
    transform: rotate(-4deg);
}
.pin-card::before { content: ''; position: absolute; width: 300px; height: 300px; right: -90px; top: -120px; background: radial-gradient(circle, rgba(242, 58, 85, .5), transparent 65%); }
.pin-card .top { display: flex; justify-content: space-between; align-items: center; position: relative; }
.pin-card .top img { height: 22px; }
.pin-card .chip { width: 46px; height: 34px; border-radius: 7px; background: linear-gradient(135deg, #f3d38a, #b98a3a); opacity: .9; }
.pin-card .code { font: 600 clamp(1rem, 2.4vw, 1.5rem) var(--mono); letter-spacing: .12em; position: relative; }
.pin-card .bottom { display: flex; justify-content: space-between; align-items: end; position: relative; }
.pin-card .amount { font: 700 2.4rem/1 var(--head); }
.pin-card .amount small { font-size: 1rem; color: var(--muted); }
.pin-card-2 { position: absolute; inset: 0; transform: rotate(6deg) translate(22px, 14px); opacity: .35; filter: blur(.5px); }
.hero-visual { position: relative; max-width: 460px; justify-self: center; width: 100%; }

/* ---- Sections -------------------------------------------------------- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; }

.product {
    position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 26px 22px 22px; display: flex; flex-direction: column; gap: 6px; transition: .2s ease;
}
.product:hover { border-color: rgba(242, 58, 85, .55); transform: translateY(-3px); box-shadow: 0 20px 40px -24px var(--red-glow); }
.product .badge-top { position: absolute; top: 14px; right: 14px; }
.product .face { font: 700 2.6rem/1 var(--head); }
.product .face small { font-size: 1rem; color: var(--muted); margin-left: 4px; }
.product .name { color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.product .price { margin: 10px 0 14px; color: var(--muted); font-size: .9rem; }
.product .price b { color: var(--fg); font-size: 1.1rem; }
.product .btn { margin-top: auto; }
.products-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }

.step { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step .num {
    width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
    font: 700 1.3rem var(--head); color: #fff; background: linear-gradient(135deg, var(--red), var(--red-dark));
}

.pay-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.pay-chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 9px;
    background: var(--surface-2); border: 1px solid var(--border-2); font-weight: 700; font-size: .82rem; letter-spacing: .03em;
}
.pay-chip { height: 50px; min-width: 76px; justify-content: center; color: var(--muted); }
.pay-chip img { height: 28px; width: auto; max-width: 56px; filter: invert(1); opacity: .85; }
.pay-chip:hover img { opacity: 1; }
.pay-chip.sm { height: 26px; min-width: 38px; padding: 0 7px; border-radius: 6px; }
.pay-chip.sm img { height: 13px; }
.icon { flex-shrink: 0; vertical-align: -3px; }
.icon-tile {
    width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
    color: var(--red-2); background: rgba(242, 58, 85, .08); border: 1px solid rgba(242, 58, 85, .25);
}

.cta-band {
    border-radius: 22px; padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    background: linear-gradient(120deg, rgba(242, 58, 85, .22), rgba(242, 58, 85, .04) 60%), var(--surface);
    border: 1px solid rgba(242, 58, 85, .35);
}

/* ---- Footer ---------------------------------------------------------- */
.site-footer {
    padding: 56px 0 28px; margin-top: 80px; color: var(--dim); font-size: .9rem;
    background: radial-gradient(700px 300px at 0% 100%, rgba(242, 58, 85, .10), transparent 70%), var(--bg-2);
    border-top: 1px solid var(--border);
}
.footer-box {
    display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px;
    border: 1px solid var(--border-2); border-radius: 18px; padding: 36px 34px;
    background: rgba(255, 255, 255, .015);
}
.footer-brand img { height: 22px; width: auto; opacity: .9; margin-bottom: 18px; }
.footer-company { font: 700 2.1rem/1.1 var(--head); color: var(--fg); margin-bottom: 10px; }
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col h4 { color: var(--fg); font: 700 1.15rem var(--head); margin: 4px 0 6px; letter-spacing: .02em; }
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: var(--fg); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 22px 4px 0; }
@media (max-width: 860px) { .footer-box { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-box { grid-template-columns: 1fr; padding: 26px 22px; } }

.portal-footer { padding: 26px 0; margin-top: 60px; background: var(--bg-2); }
.portal-footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.portal-footer .footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.portal-footer a { color: var(--muted); }

/* ---- Policy & company pages --------------------------------------- */
.policy-hero {
    padding: 72px 0 64px; text-align: center; border-bottom: 1px solid var(--border);
    background: radial-gradient(600px 240px at 50% 120%, rgba(242, 58, 85, .22), transparent 70%), linear-gradient(180deg, var(--bg-2), var(--bg));
}
.policy-hero h1 { margin: 0; }
.policy-body { max-width: 760px; padding-top: 44px; }
.policy-date { font-weight: 700; color: var(--fg); }
.prose { color: #c9c9d4; line-height: 1.75; }
.prose h2 { font-size: 1.5rem; margin: 2em 0 .6em; color: var(--fg); }
.prose strong { color: var(--fg); }
.prose ol, .prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .7em; }
.prose li::marker { color: var(--red-2); font-weight: 700; }
.prose ol > li > strong:first-child { display: block; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose table { margin: 1em 0; }
.policy-others { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border); }
.page-hero {
    padding: 64px 0 80px; border-bottom: 1px solid var(--border);
    background: radial-gradient(700px 300px at 15% 120%, rgba(242, 58, 85, .22), transparent 70%), linear-gradient(180deg, var(--bg-2), var(--bg));
}
.page-hero h1 { margin: 0; }
.page-hero .eyebrow { margin-bottom: 18px; }
.hero-sub { color: var(--red-2); font: 600 1.15rem/1.5 var(--body); max-width: 560px; margin: 14px auto 0; }
.contact-hero { padding-bottom: 150px; }
.contact-card { max-width: 660px; margin: -110px auto 0; position: relative; padding: 40px 44px; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .8); }
@media (max-width: 560px) { .contact-card { padding: 26px 20px; } }
.hp { position: absolute; left: -9999px; }
.pt-0 { padding-top: 0; }

.media-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 12px; }
.media-card img { width: 100%; aspect-ratio: 490 / 407; object-fit: cover; border-radius: 12px; }
.media-card-body { padding: 20px 12px 12px; }
.principles { padding-left: 1.2em; margin: 0; }
.principles li { margin-bottom: 4px; }

.why-band {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); border-radius: 22px; overflow: hidden;
    background: linear-gradient(120deg, #1a0f24, #120a18 60%, #200d18); border: 1px solid var(--border);
}
.why-art { width: 100%; height: 100%; object-fit: cover; }
.why-content { padding: 52px 44px; }
.why-content > p { color: #d6d6df; }
.why-item { display: flex; gap: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--border-2); border-radius: 14px; padding: 16px 18px; margin-top: 14px; }
.why-item h4 { margin: 0 0 4px; font-size: 1.15rem; color: var(--fg); }
.why-item p { color: var(--muted); font-size: .92rem; }
.why-check { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--red); color: var(--red-2); display: grid; place-items: center; flex-shrink: 0; }
@media (max-width: 860px) { .why-band { grid-template-columns: 1fr; } .why-art { max-height: 340px; } .why-content { padding: 32px 22px; } }

.map-wrap { border-radius: 18px; overflow: hidden; border: 1px solid var(--border); height: 380px; background: var(--surface); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.contact-art { border-radius: 18px; width: 100%; max-width: 380px; justify-self: center; opacity: .9; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; margin-top: 18px; }
.contact-item .icon-tile { margin: 0; width: 42px; height: 42px; }
.contact-item b { color: var(--fg); }

/* ---- Forms ----------------------------------------------------------- */
.auth-wrap { display: grid; place-items: center; padding: 60px 20px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card .logo { display: block; margin: 0 auto 26px; height: 34px; width: auto; }
.field { margin-bottom: 16px; }
label, .label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: #d9d9e2; }
.input, input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=search], select, textarea {
    width: 100%; background: var(--bg-2); border: 1px solid var(--border-2); color: var(--text);
    border-radius: var(--radius-sm); padding: 11px 14px; font: inherit; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(242, 58, 85, .18); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); font-size: .9rem; }
.check input { margin-top: 4px; accent-color: var(--red); width: 16px; height: 16px; }
.help { color: var(--dim); font-size: .8rem; margin-top: 4px; }
.error { color: var(--red-2); font-size: .82rem; margin-top: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* Radio-card selectors (gateways, quantity) */
.choices { display: grid; gap: 10px; }
.choice { position: relative; display: block; cursor: pointer; margin: 0; }
.choice input { position: absolute; opacity: 0; }
.choice .box {
    display: flex; align-items: center; gap: 14px; padding: 15px 16px; border-radius: 12px;
    border: 1px solid var(--border-2); background: var(--bg-2); transition: .15s;
}
.choice .box:hover { border-color: #4a4a58; }
.choice input:checked + .box { border-color: var(--red); background: rgba(242, 58, 85, .07); box-shadow: 0 0 0 1px var(--red) inset; }
.choice input:focus-visible + .box { box-shadow: 0 0 0 3px rgba(242, 58, 85, .3); }
.choice .radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border-2); flex-shrink: 0; position: relative; }
.choice input:checked + .box .radio { border-color: var(--red); }
.choice input:checked + .box .radio::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--red); }
.choice .title { font-weight: 600; color: var(--fg); }
.choice .desc { font-size: .82rem; color: var(--muted); }

.qty { display: flex; align-items: center; border: 1px solid var(--border-2); border-radius: 10px; overflow: hidden; width: max-content; }
.qty button { background: var(--surface-2); color: var(--fg); border: 0; width: 44px; height: 44px; font-size: 1.2rem; cursor: pointer; }
.qty button:hover { background: var(--border-2); }
.qty input { width: 64px; text-align: center; border: 0; border-radius: 0; background: var(--bg-2); height: 44px; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }

.summary-row { display: flex; justify-content: space-between; padding: 8px 0; color: var(--muted); }
.summary-row b { color: var(--fg); }
.summary-total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 14px; font-size: 1.1rem; }
.summary-total b { font: 700 1.7rem var(--head); color: var(--fg); }

/* ---- Alerts / badges ------------------------------------------------- */
.alert { padding: 13px 16px; border-radius: 10px; margin-bottom: 20px; border: 1px solid; font-size: .92rem; }
.alert-success { background: rgba(34, 197, 139, .09); border-color: rgba(34, 197, 139, .4); color: #8cefc9; }
.alert-error { background: rgba(242, 58, 85, .09); border-color: rgba(242, 58, 85, .4); color: #ff9aab; }
.alert-info { background: rgba(76, 141, 255, .08); border-color: rgba(76, 141, 255, .35); color: #a9c6ff; }
.alert-warn { background: rgba(245, 179, 61, .08); border-color: rgba(245, 179, 61, .35); color: #ffd68a; }

.badge {
    display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 700; letter-spacing: .05em;
    text-transform: uppercase; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--border-2); color: var(--muted); white-space: nowrap;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.plain::before { display: none; }
.badge-red { color: var(--red-2); border-color: rgba(242, 58, 85, .4); background: rgba(242, 58, 85, .08); }
.badge-green, .badge-paid, .badge-active, .badge-completed { color: #5ee2b0; border-color: rgba(34, 197, 139, .4); background: rgba(34, 197, 139, .08); }
.badge-amber, .badge-pending, .badge-awaiting_review, .badge-approved { color: #ffc964; border-color: rgba(245, 179, 61, .4); background: rgba(245, 179, 61, .08); }
.badge-blue, .badge-redeemed { color: #8db4ff; border-color: rgba(76, 141, 255, .4); background: rgba(76, 141, 255, .08); }
.badge-failed, .badge-cancelled, .badge-void, .badge-rejected, .badge-banned, .badge-refunded { color: var(--red-2); border-color: rgba(242, 58, 85, .4); background: rgba(242, 58, 85, .08); }

/* ---- Tables ---------------------------------------------------------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; font-weight: 600; color: var(--dim); text-transform: uppercase; letter-spacing: .07em; font-size: .72rem; padding: 12px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255, 255, 255, .015); }
.empty { text-align: center; color: var(--dim); padding: 40px 16px; }

/* ---- PIN display ----------------------------------------------------- */
.pin-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-2); flex-wrap: wrap; }
.pin-row + .pin-row { margin-top: 10px; }
.pin-code { font: 600 1.08rem var(--mono); letter-spacing: .1em; color: var(--fg); flex: 1; min-width: 220px; }
.pin-code.hidden-code { filter: blur(6px); user-select: none; }

/* ---- Account layout -------------------------------------------------- */
.page-head { padding: 40px 0 26px; }
.page-head h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 4px; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 26px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs a { padding: 10px 14px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a.active, .tabs a:hover { color: var(--fg); border-color: var(--red); }

/* ---- Pagination ------------------------------------------------------ */
.pagination { display: flex; gap: 6px; list-style: none; padding: 0; margin: 20px 0 0; flex-wrap: wrap; }
.pagination li > * { display: block; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--border); color: var(--muted); font-size: .88rem; }
.pagination li.active > * { background: var(--red); border-color: var(--red); color: #fff; }
.pagination li.disabled > * { opacity: .4; }

/* ---- Docs ------------------------------------------------------------ */
.docs pre { background: #050507; border: 1px solid var(--border); border-radius: 12px; padding: 18px; overflow-x: auto; line-height: 1.55; color: #d6d6e0; }
.docs code:not(pre code) { background: var(--surface-2); border: 1px solid var(--border); padding: 1px 6px; border-radius: 5px; color: #ffb3c0; }
.docs h2 { margin-top: 48px; padding-top: 10px; }
.docs h3 { margin-top: 28px; }
.endpoint { display: inline-flex; gap: 10px; align-items: center; font-family: var(--mono); background: var(--surface-2); border: 1px solid var(--border-2); padding: 8px 12px; border-radius: 9px; }
.method { font-weight: 700; font-size: .78rem; padding: 2px 7px; border-radius: 5px; background: var(--red); color: #fff; }
.method.get { background: var(--blue); }
.docs-layout { display: grid; grid-template-columns: 220px 1fr; gap: 48px; }
.docs-nav { position: sticky; top: 100px; align-self: start; display: flex; flex-direction: column; gap: 2px; }
.docs-nav a { color: var(--muted); padding: 6px 10px; border-radius: 7px; font-size: .9rem; }
.docs-nav a:hover { color: var(--fg); background: var(--surface); }
@media (max-width: 860px) { .docs-layout { grid-template-columns: 1fr; } .docs-nav { position: static; flex-direction: row; flex-wrap: wrap; } }

/* ---- Admin ----------------------------------------------------------- */
.admin { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-side { background: var(--bg-2); border-right: 1px solid var(--border); padding: 22px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.admin-side .brand { padding: 4px 10px 22px; display: flex; align-items: center; gap: 10px; }
.admin-side .brand img { height: 22px; }
.admin-side .brand span { font: 700 .68rem var(--body); letter-spacing: .14em; color: var(--red-2); border: 1px solid rgba(242, 58, 85, .4); padding: 3px 7px; border-radius: 6px; }
.side-label { color: var(--dim); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; padding: 16px 12px 6px; }
.side-link { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 9px; color: var(--muted); font-weight: 500; font-size: .93rem; }
.side-link svg { width: 18px; height: 18px; opacity: .8; flex-shrink: 0; }
.side-link:hover { color: var(--fg); background: var(--surface); }
.side-link.active { color: var(--fg); background: linear-gradient(90deg, rgba(242, 58, 85, .2), rgba(242, 58, 85, .04)); box-shadow: inset 2px 0 0 var(--red); }
.side-link .count { margin-left: auto; background: var(--red); color: #fff; font-size: .7rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.admin-main { min-width: 0; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 32px; border-bottom: 1px solid var(--border); background: rgba(7, 7, 10, .8); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(10px); }
.admin-top h1 { font-size: 1.6rem; margin: 0; }
.admin-content { padding: 28px 32px 60px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--red), var(--red-dark)); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.admin-menu-toggle { display: none; }
@media (max-width: 980px) {
    .admin { grid-template-columns: 1fr; }
    .admin-side { position: fixed; left: 0; top: 0; z-index: 100; width: 260px; transform: translateX(-100%); transition: transform .2s; }
    .admin.open .admin-side { transform: none; box-shadow: 20px 0 60px rgba(0, 0, 0, .6); }
    .admin-menu-toggle { display: inline-flex; }
    .admin-top, .admin-content { padding-left: 18px; padding-right: 18px; }
}

.bars { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 10px; }
.bars .bar { flex: 1; background: linear-gradient(180deg, var(--red), rgba(242, 58, 85, .25)); border-radius: 5px 5px 2px 2px; min-height: 3px; position: relative; }
.bars .bar:hover { background: var(--red-2); }
.bars .bar span { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); font-size: .7rem; color: var(--muted); white-space: nowrap; margin-bottom: 4px; opacity: 0; }
.bars .bar:hover span { opacity: 1; }
.bars-labels { display: flex; gap: 6px; margin-top: 8px; }
.bars-labels span { flex: 1; text-align: center; font-size: .66rem; color: var(--dim); }

.kv { display: grid; grid-template-columns: 160px 1fr; gap: 10px 16px; font-size: .92rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
.secret-box { display: flex; gap: 8px; }
.secret-box input { font-family: var(--mono); font-size: .85rem; }
details summary { cursor: pointer; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.toolbar input[type=search] { max-width: 320px; }
.toolbar select { width: auto; }
.inline { display: inline; }

/* ---- Light theme (player account + sign-in pages; admin forces dark) ---- */
:root[data-theme="light"] {
    color-scheme: light;
    --bg: #f4f4f7;
    --bg-2: #ffffff;
    --surface: #ffffff;
    --surface-2: #f1f1f5;
    --border: #e3e3ea;
    --border-2: #d2d2dc;
    --text: #23232b;
    --muted: #5f5f6c;
    --dim: #8a8a96;
    --fg: #121218;
    --red: #e02443;
    --red-2: #d01c3a;
}
[data-theme="light"] .site-header { background: rgba(244, 244, 247, .88); }
[data-theme="light"] .btn:hover { border-color: #b9b9c6; }
[data-theme="light"] .btn-primary, [data-theme="light"] .btn-primary:hover { color: #fff; }
[data-theme="light"] label, [data-theme="light"] .label { color: var(--text); }
[data-theme="light"] .prose { color: var(--text); }
[data-theme="light"] .docs pre { background: #15151b; }
[data-theme="light"] .choice .box:hover { border-color: #b9b9c6; }
[data-theme="light"] tbody tr:hover td { background: rgba(0, 0, 0, .02); }
[data-theme="light"] .stat.accent { background: linear-gradient(160deg, rgba(224, 36, 67, .08), var(--surface) 60%); }
[data-theme="light"] .alert-success { color: #137a52; }
[data-theme="light"] .alert-error { color: #b4182f; }
[data-theme="light"] .alert-info { color: #2856b3; }
[data-theme="light"] .alert-warn { color: #8a5a00; }
[data-theme="light"] .badge-green, [data-theme="light"] .badge-paid, [data-theme="light"] .badge-active, [data-theme="light"] .badge-completed, [data-theme="light"] .btn-success { color: #137a52; }
[data-theme="light"] .badge-amber, [data-theme="light"] .badge-pending, [data-theme="light"] .badge-awaiting_review, [data-theme="light"] .badge-approved { color: #8a5a00; }
[data-theme="light"] .badge-blue, [data-theme="light"] .badge-redeemed { color: #2856b3; }
[data-theme="light"] .pay-chip img { filter: none; }
/* The e-PIN card artwork is always dark. */
.pin-card { color: #fff; }
.pin-card .muted { color: #a6a6b4; }
.btn-primary { color: #fff; }
.btn-primary:hover { color: #fff; }

/* Logo variants (white text / dark text). */
.logo-for-light { display: none; }
[data-theme="light"] .logo-for-dark { display: none; }
[data-theme="light"] .logo-for-light { display: block; }
.brand img { height: 30px; width: auto; }
.auth-card a.logo { display: block; width: max-content; margin: 0 auto 26px; }
.auth-card a.logo img { height: 34px; width: auto; }

/* ---- Theme + language controls --------------------------------------- */
.prefs { display: flex; gap: 6px; align-items: center; }
.pref-btn {
    height: 36px; min-width: 36px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--border-2); background: transparent;
    color: var(--fg); display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; font: 600 .78rem var(--body); list-style: none;
}
.pref-btn::-webkit-details-marker { display: none; }
.pref-btn:hover { border-color: var(--red); color: var(--red-2); }
[data-theme="light"] .theme-sun, [data-theme="dark"] .theme-moon { display: none; }
.lang-menu { position: relative; }
.lang-list { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 180px; padding: 6px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border-2); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .45); z-index: 80; }
.lang-list a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; color: var(--text); font-size: .9rem; }
.lang-list a b { font: 600 .72rem var(--body); color: var(--dim); width: 22px; }
.lang-list a:hover { background: var(--surface-2); color: var(--fg); }
.lang-list a.active { background: rgba(242, 58, 85, .12); color: var(--red-2); }
.auth-prefs { position: fixed; top: 16px; inset-inline-end: 16px; z-index: 20; }

/* Longer translated labels: keep menu items on one line, let the menu scroll if needed. */
.nav { min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav a, .nav-actions .btn { white-space: nowrap; }
@media (max-width: 1400px) { .site-header .container { gap: 16px; } .nav a { padding: 8px 9px; font-size: .95rem; } .hide-narrow { display: none; } }

/* ---- Right-to-left (Arabic) ------------------------------------------ */
[dir="rtl"] .check input { margin-top: 6px; }
[dir="rtl"] th { text-align: right; }
[dir="rtl"] .right { text-align: left; }
[dir="rtl"] .flip-rtl, [dir="rtl"] .btn .icon[class*="arrow"] { transform: scaleX(-1); }
[dir="rtl"] .side-link .count { margin-left: 0; margin-right: auto; }
[dir="rtl"] .kv dt, [dir="rtl"] .kv dd { text-align: right; }
[dir="rtl"] .summary-row, [dir="rtl"] .card-head { direction: rtl; }
[dir="rtl"] .eyebrow, [dir="rtl"] .badge, [dir="rtl"] th, [dir="rtl"] .stat .label { letter-spacing: 0; }