/* assets/css/style.css */

/* =========================
   THEME / BASE
========================= */
:root {
    --gold: #d6b36a;
    --gold2: #b78b3e;

    --bg0: #050505;
    --bg1: #101010;

    --text: #f0f0f0;
    --muted: rgba(255, 255, 255, .65);

    --panel: rgba(255, 255, 255, .045);
    --stroke: rgba(255, 255, 255, .18);
    --strokeGold: rgba(214, 179, 106, .60);

    --shadow: 0 18px 44px rgba(0, 0, 0, .55);
    --radius: 14px;
}

* {
    box-sizing: border-box;
}

/* body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: linear-gradient(180deg, var(--bg0), var(--bg1));
    overflow-x: hidden;
} */

/* Shared background overlay */
.page-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(1100px 700px at 50% 20%, rgba(255, 255, 255, .08), transparent 55%),
        radial-gradient(900px 600px at 50% 15%, rgba(214, 179, 106, .08), transparent 60%);
    filter: blur(.2px);
    opacity: .9;
    z-index: 0;
}

/* =========================
   SHARED BRAND (LOGIN + HOME)
========================= */
.brand__logo,
.brand-logo {
    letter-spacing: 2px;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(180deg, #f2d79a, var(--gold2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, .6);
}

.brand__logo span,
.brand-logo span {
    background: linear-gradient(180deg, #ffffff, #bfbfbf);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand__sub,
.brand-subtitle {
    letter-spacing: 2px;
    color: rgba(255, 255, 255, .55);
}

.brand__logo {
    font-size: clamp(26px, 3vw, 34px);
}

.brand__sub {
    font-size: 10px;
    margin-top: 4px;
}

.brand-logo {
    font-size: clamp(44px, 7vw, 64px);
}

.brand-subtitle {
    font-size: 12px;
    margin-top: 8px;
}

/* =========================
   LOGIN PAGE UI
========================= */
.login-page {
    position: relative;
    z-index: 1;
}

.login-card {
    max-width: 520px;
    position: relative;
    padding: 24px 18px 44px;
}

@media (min-width: 576px) {
    .login-card {
        padding: 28px 24px 54px;
    }
}

.login-title {
    color: var(--gold);
    font-weight: 900;
    letter-spacing: .5px;
    font-size: clamp(26px, 4.5vw, 34px);
}

.label-gold {
    color: var(--gold);
    font-weight: 700;
    margin-bottom: .55rem;
}

.input-dark {
    height: 56px;
    border-radius: 10px;
    color: #f2f2f2;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--stroke);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}

.input-dark:focus {
    border-color: var(--strokeGold);
    box-shadow: 0 0 0 .2rem rgba(214, 179, 106, .15);
    background: rgba(255, 255, 255, .05);
    color: #fff;
}

.input-dark::placeholder {
    color: rgba(255, 255, 255, .45);
}

.btn-eye {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(0, 0, 0, .35);
    color: rgba(255, 255, 255, .85);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-eye:hover {
    background: rgba(0, 0, 0, .5);
}

.btn-login {
    border-radius: 999px;
    border: 1px solid rgba(214, 179, 106, .75);
    background: rgba(0, 0, 0, .20);
    color: var(--gold);
    font-weight: 900;
    letter-spacing: .5px;
    box-shadow: inset 0 0 0 1px rgba(214, 179, 106, .20), 0 18px 40px rgba(0, 0, 0, .35);
}

.btn-login:hover {
    background: rgba(214, 179, 106, .08);
    color: #f1d99f;
}

.text-muted-soft {
    color: rgba(255, 255, 255, .6);
}

.link-signup {
    color: #ffffff;
    font-weight: 900;
    text-decoration: none;
}

.link-signup:hover {
    text-decoration: underline;
}

/* =========================
   HOME PAGE UI
========================= */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(180deg, rgba(0, 0, 0, .85), rgba(0, 0, 0, .35));
    backdrop-filter: blur(10px);
}

.btn-pill {
    border-radius: 999px;
    padding: .45rem .8rem;
    font-weight: 900;
}

.btn-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 900;
}

.btn-soft {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .88);
}

.btn-soft:hover {
    background: rgba(255, 255, 255, .09);
}

.dot-user {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f2c94c;
    margin-right: .4rem;
}

.acct {
    text-align: left;
    line-height: 1.05;
    padding: .35rem .6rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .10);
}

.acct__user {
    font-weight: 900;
    font-size: 13px;
    color: rgba(255, 255, 255, .92);
}

.acct__bal {
    font-weight: 900;
    font-size: 13px;
    color: rgba(255, 255, 255, .92);
}

.nav-row {
    display: flex;
    justify-content: center;
    gap: 38px;
    padding: 10px 0 14px;
}

.nav-itemx {
    text-decoration: none;
    color: rgba(255, 255, 255, .75);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 90px;
}

.nav-ic {
    font-size: 34px;
    opacity: .8;
}

.nav-tx {
    font-weight: 900;
    font-size: 14px;
}

.nav-itemx.active {
    color: var(--gold);
}

.nav-itemx.active .nav-ic {
    opacity: 1;
    filter: drop-shadow(0 10px 18px rgba(214, 179, 106, .18));
}

.nav-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(214, 179, 106, .55), transparent);
}

.main-wrap {
    /* padding-bottom: 86px; */
    min-height: calc(100vh - var(--nav-h));
}

/* for mobile bottom nav */
.page-title {
    color: var(--gold);
    font-weight: 950;
    letter-spacing: .5px;
}

/* Layout grid */
.content-grid {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 18px;
    align-items: start;
}

@media (max-width: 991.98px) {
    .content-grid {
        grid-template-columns: 92px 1fr;
        gap: 12px;
    }
}

/* Side categories */
.sidecats {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: sticky;
    top: 104px;
}

@media (max-width: 991.98px) {
    .sidecats {
        top: 76px;
    }
}

.cat-btn {
    height: 64px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
    color: rgba(255, 255, 255, .88);
    font-weight: 950;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, .35);
}

.cat-btn span {
    font-size: 15px;
}

@media (max-width: 991.98px) {
    .cat-btn {
        height: 56px;
        padding: 0;
    }

    .cat-btn span {
        display: none;
    }
}

.cat-btn.active {
    border-color: rgba(214, 179, 106, .65);
    background: linear-gradient(180deg, rgba(214, 179, 106, .85), rgba(183, 139, 62, .55));
    color: #1a1a1a;
}

/* Games grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

@media (max-width: 991.98px) {
    .games-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

.game-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .03);
    box-shadow: var(--shadow);
    min-height: 150px;
}

@media (min-width: 992px) {
    .game-card {
        min-height: 170px;
    }
}

.game-card--wide {
    grid-column: span 2;
    min-height: 170px;
}

@media (max-width: 991.98px) {
    .game-card--wide {
        grid-column: span 2;
        min-height: 140px;
    }
}

.game-img {
    position: absolute;
    inset: 0;
    opacity: .95;
    transform: scale(1.02);
}

.game-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(600px 300px at 40% 55%, rgba(0, 0, 0, .08), rgba(0, 0, 0, .55)),
        linear-gradient(135deg, rgba(255, 255, 255, .06), transparent 45%);
}

.game-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(0, 0, 0, .45);
    border: 1px solid rgba(255, 255, 255, .14);
    color: rgba(255, 255, 255, .92);
    font-weight: 950;
    letter-spacing: .3px;
}

.game-label {
    position: absolute;
    left: 18px;
    top: 24px;
    z-index: 2;
    color: rgba(255, 255, 255, .95);
    text-shadow: 0 16px 30px rgba(0, 0, 0, .65);
}

.gl-title {
    font-weight: 950;
    font-size: clamp(22px, 2.3vw, 34px);
    color: var(--gold);
}

.gl-sub {
    display: inline-block;
    margin-top: 4px;
    padding: 4px 10px;
    border-radius: 10px;
    background: rgba(0, 0, 0, .45);
    border: 1px solid rgba(255, 255, 255, .14);
    color: rgba(255, 255, 255, .9);
    font-weight: 950;
    font-size: 12px;
}

/* Placeholder gradients */
.gradient-sport {
    background: linear-gradient(135deg, #0b0b0b, #3a3a3a 40%, #111 70%),
        radial-gradient(circle at 70% 60%, rgba(214, 179, 106, .75), transparent 45%);
}

.gradient-joker {
    background: linear-gradient(135deg, #151515, #2b2b2b), radial-gradient(circle at 70% 30%, rgba(255, 92, 122, .55), transparent 55%);
}

.gradient-pg {
    background: linear-gradient(135deg, #161616, #2e2e2e), radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .18), transparent 55%);
}

.gradient-gae {
    background: linear-gradient(135deg, #131313, #2a2a2a), radial-gradient(circle at 70% 60%, rgba(214, 179, 106, .35), transparent 55%);
}

.gradient-seven {
    background: linear-gradient(135deg, #141414, #2d2d2d), radial-gradient(circle at 25% 65%, rgba(255, 0, 150, .25), transparent 55%);
}

.gradient-poker {
    background: linear-gradient(135deg, #101010, #2a2a2a), radial-gradient(circle at 60% 40%, rgba(255, 200, 0, .20), transparent 55%);
}

.gradient-hall {
    background: linear-gradient(135deg, #141414, #2b2b2b), radial-gradient(circle at 55% 55%, rgba(214, 179, 106, .25), transparent 55%);
}

.gradient-aug {
    background: linear-gradient(135deg, #111, #2a2a2a), radial-gradient(circle at 30% 35%, rgba(255, 255, 255, .16), transparent 55%);
}

.gradient-muay {
    background: linear-gradient(135deg, #121212, #2a2a2a), radial-gradient(circle at 60% 60%, rgba(255, 120, 0, .20), transparent 55%);
}

.gradient-sicbo {
    background: linear-gradient(135deg, #121212, #2b2b2b), radial-gradient(circle at 30% 60%, rgba(255, 255, 255, .14), transparent 55%);
}

.gradient-2 {
    background: linear-gradient(135deg, #151515, #2f2f2f), radial-gradient(circle at 75% 40%, rgba(214, 179, 106, .18), transparent 55%);
}

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 74px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, .72);
    border-top: 1px solid rgba(255, 255, 255, .12);
    backdrop-filter: blur(10px);
    z-index: 70;
    padding-bottom: env(safe-area-inset-bottom);
}

.bnav {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: rgba(255, 255, 255, .70);
    border: 1px solid transparent;
    background: transparent;
}

.bnav-ic {
    font-size: 22px;
}

.bnav.active {
    color: var(--gold);
    border-color: rgba(214, 179, 106, .35);
    background: rgba(214, 179, 106, .08);
}

/* ===== Tabs ===== */
.tab-panel {
    display: none;
}

.tab-panel.is-active {
    display: block;
}
