/* =====================================================================
   Winstar theme - mobile app shell, navy + gold (from the Winstar logo)
   ===================================================================== */
:root {
    --ws-bg: #050d24;
    --ws-bg-outer: #020713;
    --ws-surface: #0c1a3d;
    --ws-surface-2: #12244f;
    --ws-surface-3: #1a2f63;
    --ws-line: rgba(233, 178, 39, .18);
    --ws-line-soft: rgba(255, 255, 255, .07);
    --ws-gold: #e9b227;
    --ws-gold-light: #fbe39a;
    --ws-gold-dark: #b8860b;
    --ws-gold-grad: linear-gradient(135deg, #fde9a6 0%, #f1c84b 38%, #e9b227 62%, #c48a12 100%);
    --ws-gold-grad-soft: linear-gradient(135deg, #f8de8a 0%, #e9b227 55%, #cf9a1d 100%);
    --ws-navy-grad: linear-gradient(180deg, #102457 0%, #0a1838 100%);
    --ws-text: #ffffff;
    --ws-muted: #94a3c6;
    --ws-ink: #0a1d47;
    --ws-success: #35d07f;
    --ws-danger: #ff6b6b;
    --ws-radius: 14px;
    --ws-shell: 430px;
    --ws-nav-h: 66px;
    /* retint the legacy template */
    --primary: #e9b227;
    --primary-hover: #f3c64d;
    --primary-dark: #b8860b;
    --secondary: #12244f;
    --title: #ffffff;
    --rgba-primary-1: rgba(233, 178, 39, .1);
    --rgba-primary-2: rgba(233, 178, 39, .2);
    --rgba-primary-3: rgba(233, 178, 39, .3);
    --rgba-primary-4: rgba(233, 178, 39, .4);
    --rgba-primary-5: rgba(233, 178, 39, .5);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    background: var(--ws-bg-outer) !important;
    color: var(--ws-text);
    font-family: "Poppins", sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-image: radial-gradient(1200px 600px at 50% -10%, rgba(233, 178, 39, .08), transparent 60%) !important;
    background-attachment: fixed !important;
    min-height: 100vh;
}

a { color: var(--ws-gold); text-decoration: none; }
a:hover { color: var(--ws-gold-light); }

/* ---------- App shell ---------- */
.ws-app {
    position: relative;
    max-width: var(--ws-shell);
    min-height: 100vh;
    margin: 0 auto;
    background: var(--ws-bg);
    box-shadow: 0 0 0 1px rgba(233, 178, 39, .06), 0 20px 60px rgba(0, 0, 0, .55);
    padding-bottom: calc(var(--ws-nav-h) + 24px);
    overflow-x: hidden;
}
.ws-app.ws-no-nav { padding-bottom: 24px; }

.ws-main { padding: 14px 14px 0; }
.ws-main.ws-flush { padding: 0; }

/* ---------- Top bar ---------- */
.ws-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 56px;
    padding: 0 14px;
    background: rgba(8, 19, 46, .94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--ws-line);
}
.ws-topbar__back {
    width: 34px; height: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px;
    color: var(--ws-text);
    background: rgba(255, 255, 255, .06);
    border: 0; cursor: pointer;
}
.ws-topbar__back:hover { color: var(--ws-gold); }
.ws-topbar__title {
    flex: 1;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ws-gold);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ws-topbar__right { min-width: 34px; display: flex; justify-content: flex-end; }
.ws-topbar__logo { height: 38px; width: auto; display: block; }
.ws-topbar__welcome {
    flex: 1;
    font-size: 12.5px; font-weight: 600;
    color: var(--ws-gold-light);
    text-align: center;
}
.ws-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px; font-weight: 700;
    color: var(--ws-ink);
    background: var(--ws-gold-grad);
    box-shadow: 0 4px 14px rgba(233, 178, 39, .25);
    white-space: nowrap;
}
.ws-chip .material-icons { font-size: 16px; }
.ws-topbar .ws-chip { padding: 5px 10px; font-size: 11px; }
.ws-chip--ghost { background: rgba(233, 178, 39, .12); color: var(--ws-gold); box-shadow: none; border: 1px solid var(--ws-line); }

/* ---------- Bottom navigation ---------- */
.ws-bottomnav {
    position: fixed;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    z-index: 40;
    width: 100%;
    max-width: var(--ws-shell);
    height: var(--ws-nav-h);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
    padding: 0 6px 8px;
    background: linear-gradient(180deg, #0d1d45 0%, #081430 100%);
    border-top: 1px solid var(--ws-line);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, .45);
}
.ws-bottomnav a {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    color: var(--ws-muted);
    font-size: 10.5px; font-weight: 500;
}
.ws-bottomnav a .material-icons { font-size: 23px; }
.ws-bottomnav a.active, .ws-bottomnav a:hover { color: var(--ws-gold); }
.ws-bottomnav__center { position: relative; }
.ws-bottomnav__center .ws-fab {
    width: 58px; height: 58px;
    margin-top: -30px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--ws-gold-grad);
    color: var(--ws-ink);
    border: 4px solid #0b1a3e;
    box-shadow: 0 6px 18px rgba(233, 178, 39, .45);
}
.ws-bottomnav__center .ws-fab .material-icons { font-size: 28px; }
.ws-bottomnav__center span.ws-fab-label { font-weight: 700; color: var(--ws-gold-light); font-size: 9.5px; }

/* ---------- Generic building blocks ---------- */
.ws-card {
    background: var(--ws-surface);
    border: 1px solid var(--ws-line-soft);
    border-radius: var(--ws-radius);
    padding: 14px;
}
.ws-card + .ws-card { margin-top: 12px; }
.ws-card--gold-edge { border-color: var(--ws-line); }

.ws-section-title {
    display: flex; align-items: center; gap: 8px;
    margin: 18px 0 10px;
    font-size: 14px; font-weight: 700;
    color: var(--ws-gold);
}
.ws-section-title::before {
    content: ""; width: 4px; height: 16px; border-radius: 4px;
    background: var(--ws-gold-grad);
}

.ws-band {
    margin: 4px 0 14px;
    padding: 13px;
    text-align: center;
    font-weight: 700; font-size: 13.5px; letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ws-gold);
    background: var(--ws-surface-2);
    border: 1px solid var(--ws-line);
    border-radius: 12px;
}

.ws-empty {
    padding: 22px 12px;
    text-align: center;
    font-size: 12.5px;
    color: var(--ws-muted);
    background: rgba(255, 255, 255, .02);
    border: 1px dashed var(--ws-line-soft);
    border-radius: 12px;
}
.ws-empty .material-icons { display: block; font-size: 30px; margin-bottom: 6px; color: rgba(233, 178, 39, .45); }

.ws-muted { color: var(--ws-muted) !important; }
.ws-gold { color: var(--ws-gold) !important; }

/* ---------- Buttons ---------- */
.ws-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%;
    min-height: 46px;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 700; font-size: 15px; letter-spacing: .04em;
    cursor: pointer;
    transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
    text-decoration: none;
}
.ws-btn:active { transform: scale(.98); }
.ws-btn--gold {
    color: var(--ws-ink) !important;
    background: var(--ws-gold-grad);
    border: 0;
    box-shadow: 0 8px 20px rgba(233, 178, 39, .28), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.ws-btn--gold:hover { filter: brightness(1.06); color: var(--ws-ink) !important; }
.ws-btn--outline {
    color: var(--ws-gold) !important;
    background: transparent;
    border: 1.5px solid var(--ws-gold);
}
.ws-btn--outline:hover { background: rgba(233, 178, 39, .08); }
.ws-btn--sm { min-height: 30px; padding: 4px 14px; font-size: 11.5px; width: auto; }
.ws-btn[disabled], .ws-btn.is-disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Forms ---------- */
.ws-field { margin-bottom: 16px; }
.ws-label {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 8px;
    font-size: 13.5px; font-weight: 600; color: var(--ws-text);
}
.ws-label .material-icons { font-size: 18px; color: var(--ws-gold); }
.ws-input, input.ws-input, select.ws-input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    color: var(--ws-text) !important;
    background: var(--ws-surface-2) !important;
    border: 1px solid var(--ws-line-soft) !important;
    border-radius: 10px !important;
    font-size: 14px;
    outline: none;
    box-shadow: none !important;
    transition: border-color .15s ease;
}
.ws-input::placeholder { color: #6f7fa6; }
.ws-input:focus { border-color: var(--ws-gold) !important; }
.ws-input[disabled] { opacity: .7; }
.ws-input-group { display: flex; gap: 8px; }
.ws-input-group > select.ws-input { flex: 0 0 96px; padding: 0 8px; }
.ws-input-wrap { position: relative; }
.ws-input-wrap .ws-input { padding-right: 46px; }
.ws-input-wrap .ws-eye {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--ws-muted); background: transparent; border: 0; cursor: pointer;
}
.ws-input-wrap .ws-eye:hover { color: var(--ws-gold); }
.ws-check { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ws-muted); cursor: pointer; }
.ws-check input { width: 16px; height: 16px; accent-color: var(--ws-gold); }
.ws-hint { font-size: 12px; margin-top: 6px; color: var(--ws-success); }

/* ---------- Auth (login / register) ---------- */
.ws-auth-hero {
    position: relative;
    padding: 18px 16px 34px;
    text-align: center;
    background: linear-gradient(180deg, #fffdf7 0%, #f7edd2 100%);
}
.ws-auth-hero img { width: 200px; max-width: 70%; height: auto; }
.ws-auth-hero__back {
    position: absolute; left: 12px; top: 14px;
    width: 34px; height: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px; color: var(--ws-ink); background: rgba(10, 29, 71, .08);
}
.ws-auth-body {
    position: relative;
    margin-top: -18px;
    padding: 22px 18px 28px;
    background: var(--ws-bg);
    border-radius: 20px 20px 0 0;
}
.ws-auth-head { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--ws-line-soft); }
.ws-auth-head h1 { margin: 0 0 4px; font-size: 20px; font-weight: 700; color: var(--ws-text); }
.ws-auth-head p { margin: 0; font-size: 12px; line-height: 1.6; color: var(--ws-muted); }
.ws-auth-tab {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    margin-bottom: 18px; padding-bottom: 8px;
    color: var(--ws-gold); font-weight: 700; font-size: 13px;
    border-bottom: 2px solid var(--ws-gold);
}
.ws-auth-row { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 20px; }
.ws-auth-actions .ws-btn + .ws-btn { margin-top: 12px; }
.ws-captcha-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.ws-captcha-row img { height: 42px; width: 120px; border-radius: 8px; background: #fff; }

/* ---------- Home ---------- */
.ws-banner {
    position: relative;
    overflow: hidden;
    min-height: 150px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--ws-line);
    background:
        radial-gradient(220px 140px at 88% 20%, rgba(233, 178, 39, .45), transparent 70%),
        radial-gradient(260px 160px at 10% 110%, rgba(83, 126, 255, .35), transparent 70%),
        linear-gradient(135deg, #142b66 0%, #0b1838 60%, #1b0f3d 100%);
}
.ws-banner__logo { height: 34px; width: auto; opacity: .95; }
.ws-banner__title {
    margin: 10px 0 2px;
    font-size: 24px; line-height: 1.1; font-weight: 800;
    letter-spacing: .02em;
    background: var(--ws-gold-grad);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    text-transform: uppercase;
}
.ws-banner__sub { font-size: 13px; font-weight: 600; color: #fff; }
.ws-banner__tag {
    display: inline-block; margin-top: 10px;
    padding: 4px 12px; border-radius: 999px;
    font-size: 11px; font-weight: 700; color: var(--ws-ink) !important; background: var(--ws-gold-grad);
}
.ws-banner__art {
    position: absolute; right: 10px; bottom: 6px;
    font-size: 64px; line-height: 1;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .5));
}
.ws-sparkle { position: absolute; color: var(--ws-gold-light); opacity: .8; font-size: 12px; animation: ws-twinkle 2.4s ease-in-out infinite; }
@keyframes ws-twinkle { 0%, 100% { opacity: .2; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }

.ws-notice {
    display: flex; align-items: center; gap: 8px;
    margin-top: 12px; padding: 8px 12px;
    font-size: 12px;
    color: var(--ws-gold-light);
    background: var(--ws-surface);
    border: 1px solid var(--ws-line);
    border-radius: 999px;
    overflow: hidden;
}
.ws-notice .material-icons { font-size: 18px; color: var(--ws-gold); }
.ws-notice__track { flex: 1; overflow: hidden; white-space: nowrap; }
.ws-notice__track span { display: inline-block; padding-left: 100%; animation: ws-marquee 22s linear infinite; }
@keyframes ws-marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ---------- Game tiles ---------- */
.ws-game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

/* Home: gold cards */
.ws-game-card {
    display: flex; flex-direction: column; align-items: center; justify-content: space-between;
    aspect-ratio: 1 / 1.02;
    padding: 8px 4px 8px;
    border-radius: 14px;
    background: var(--ws-gold-grad-soft);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 6px 16px rgba(0, 0, 0, .35);
    color: var(--ws-ink) !important;
    text-align: center;
}
.ws-game-card:hover { filter: brightness(1.05); }
.ws-game-card__art {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    width: 100%;
    font-size: 42px; line-height: 1;
    filter: drop-shadow(0 4px 6px rgba(10, 29, 71, .35));
}
.ws-game-card__art img { max-width: 92%; max-height: 72px; object-fit: contain; }
.ws-game-card__name {
    font-size: 11px; font-weight: 800; letter-spacing: .02em;
    text-transform: uppercase; color: var(--ws-ink);
    line-height: 1.15; max-width: 100%;
}

/* Live games: dark art tiles */
.ws-game-tile { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.ws-game-tile__art {
    position: relative;
    width: 100%;
    aspect-ratio: 1.45 / 1;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    border: 2px solid transparent;
    background:
        radial-gradient(circle at 50% 35%, var(--tint, #1a2f63) 0%, #08142f 78%) padding-box,
        var(--ws-gold-grad) border-box;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .45);
    font-size: 40px; line-height: 1;
    overflow: hidden;
}
.ws-game-tile__art img { width: 100%; height: 100%; object-fit: cover; }
.ws-game-tile__label {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 3px 4px;
    font-size: 10px; font-weight: 800; letter-spacing: .04em;
    text-align: center; text-transform: uppercase;
    color: var(--ws-gold-light);
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .75));
    line-height: 1.1;
}
.ws-game-tile .ws-btn { width: 86%; min-height: 26px; font-size: 10.5px; padding: 3px 8px; }

.ws-soon-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ws-soon {
    position: relative;
    aspect-ratio: 0.82 / 1;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--ws-line);
    background: radial-gradient(circle at 50% 30%, var(--tint, #3b1a5a) 0%, #0a1430 80%);
    display: flex; align-items: center; justify-content: center;
    font-size: 40px;
}
.ws-soon__foot {
    position: absolute; left: 0; right: 0; bottom: 0;
    display: flex; align-items: center; justify-content: space-between; gap: 4px;
    padding: 6px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .85));
}
.ws-soon__name { font-size: 10px; font-weight: 700; color: #fff; line-height: 1.1; }
.ws-soon__badge {
    font-size: 8.5px; font-weight: 700; line-height: 1.1; text-align: center;
    padding: 3px 5px; border-radius: 6px;
    color: var(--ws-gold-light); border: 1px solid var(--ws-gold); background: rgba(0, 0, 0, .35);
}

/* ---------- Game (bet) page ---------- */
.ws-game-hero {
    position: relative;
    height: 170px;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid transparent;
    background:
        radial-gradient(circle at 70% 40%, var(--tint, #1a2f63) 0%, #08142f 75%) padding-box,
        var(--ws-gold-grad) border-box;
}
.ws-game-hero__art {
    position: absolute; right: 18px; top: 50%; transform: translateY(-58%);
    font-size: 92px; line-height: 1;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .55));
}
.ws-game-hero__art img { height: 140px; width: auto; }
.ws-game-hero__body { position: absolute; left: 16px; right: 16px; bottom: 14px; }
.ws-game-hero__icon {
    width: 40px; height: 40px; margin-bottom: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; color: var(--ws-ink); background: var(--ws-gold-grad);
}
.ws-game-hero h2 {
    margin: 0;
    font-size: 22px; font-weight: 800; letter-spacing: .04em;
    text-transform: uppercase;
    background: var(--ws-gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ws-game-hero p { margin: 2px 0 0; font-size: 11.5px; color: #dfe6f7; }

.ws-amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.ws-amount {
    height: 40px;
    border-radius: 8px;
    font-weight: 700; font-size: 13px;
    color: var(--ws-text);
    background: var(--ws-surface-2);
    border: 1px solid var(--ws-line-soft);
    cursor: pointer;
}
.ws-amount.active { color: var(--ws-ink); background: var(--ws-gold-grad); border-color: transparent; }
.ws-amount-input { position: relative; margin-bottom: 12px; }
.ws-amount-input .ws-input { padding-left: 30px; }
.ws-amount-input::before { content: "$"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ws-gold); font-weight: 700; }
.ws-bet-total {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px; padding: 10px 14px;
    border-radius: 10px;
    background: var(--ws-surface-2); border: 1px solid var(--ws-line-soft);
}
.ws-bet-total small { display: block; font-size: 10.5px; color: var(--ws-muted); }
.ws-bet-total strong { font-size: 18px; color: var(--ws-gold); }
.ws-bet-total .material-icons { color: var(--ws-gold); font-size: 30px; }

.ws-overlay {
    position: fixed; inset: 0;
    z-index: 60;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    background: rgba(2, 7, 19, .72);
    backdrop-filter: blur(4px);
}
.ws-overlay__card {
    width: 100%; max-width: 300px;
    padding: 24px 20px;
    text-align: center;
    border-radius: 18px;
    background: var(--ws-navy-grad);
    border: 1px solid var(--ws-line);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .6);
}
.ws-overlay__icon {
    width: 54px; height: 54px; margin: 0 auto 12px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: rgba(233, 178, 39, .15); color: var(--ws-gold);
}
.ws-overlay__card h3 { margin: 0 0 4px; font-size: 18px; font-weight: 700; color: #fff; }
.ws-overlay__card p { margin: 0; font-size: 12px; color: var(--ws-muted); }
.ws-countdown { margin: 10px 0 6px; font-size: 34px; font-weight: 800; letter-spacing: .04em; color: var(--ws-gold); font-variant-numeric: tabular-nums; }
.ws-overlay__next { font-size: 11.5px; font-weight: 600; color: var(--ws-success); }

/* ---------- Stats / agency ---------- */
.ws-hero-gold {
    margin: -14px -14px 0;
    padding: 22px 16px 60px;
    text-align: center;
    background: var(--ws-gold-grad);
    color: var(--ws-ink);
}
.ws-hero-gold__amount { font-size: 30px; font-weight: 800; }
.ws-hero-gold__pill {
    display: inline-block; margin-top: 6px; padding: 4px 14px;
    border-radius: 999px; font-size: 11.5px; font-weight: 600;
    color: var(--ws-gold-light); background: rgba(10, 29, 71, .85);
}
.ws-split {
    position: relative;
    margin: -44px 0 16px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--ws-surface);
    border: 1px solid var(--ws-line);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
}
.ws-split__head { display: grid; grid-template-columns: 1fr 1fr; background: var(--ws-surface-3); }
.ws-split__head div { padding: 11px 6px; text-align: center; font-size: 12.5px; font-weight: 600; }
.ws-split__body { display: grid; grid-template-columns: 1fr 1fr; }
.ws-split__col { padding: 10px 6px 12px; text-align: center; }
.ws-split__col + .ws-split__col { border-left: 1px solid var(--ws-line-soft); }
.ws-stat { margin-bottom: 9px; }
.ws-stat:last-child { margin-bottom: 0; }
.ws-stat b { display: block; font-size: 14px; font-weight: 700; color: #fff; }
.ws-stat b.is-green { color: var(--ws-success); }
.ws-stat b.is-gold { color: var(--ws-gold); }
.ws-stat span { font-size: 10.5px; color: var(--ws-muted); }

.ws-list { display: flex; flex-direction: column; gap: 10px; }
.ws-row {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 14px;
    border-radius: 12px;
    color: var(--ws-text) !important;
    background: var(--ws-surface);
    border: 1px solid var(--ws-line-soft);
    font-size: 13px; font-weight: 600;
}
.ws-row:hover { border-color: var(--ws-line); }
.ws-row__icon {
    width: 30px; height: 30px; flex: 0 0 30px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px; color: var(--ws-gold); background: rgba(233, 178, 39, .14);
}
.ws-row__icon .material-icons { font-size: 18px; }
.ws-row__text { flex: 1; }
.ws-row__end { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ws-muted); }
.ws-row__end .material-icons { font-size: 18px; }

.ws-stat-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    border-radius: 14px; overflow: hidden;
    background: var(--ws-surface);
    border: 1px solid var(--ws-line);
}
.ws-stat-grid > div { padding: 14px 8px; text-align: center; }
.ws-stat-grid > div:nth-child(odd) { border-right: 1px solid var(--ws-line-soft); }
.ws-stat-grid > div:nth-child(n+3) { border-top: 1px solid var(--ws-line-soft); }
.ws-stat-grid b { display: block; font-size: 17px; color: var(--ws-gold); }
.ws-stat-grid span { display: block; font-size: 11.5px; color: var(--ws-muted); }
.ws-stat-grid .ws-btn { margin-top: 8px; }

/* ---------- Filters / tables ---------- */
.ws-search { display: flex; gap: 8px; margin-bottom: 10px; }
.ws-search .ws-input { flex: 1; border-radius: 999px !important; }
.ws-search .ws-btn { width: auto; min-height: 46px; padding: 0 18px; }
.ws-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 8px; margin-bottom: 14px; }
.ws-filters .ws-input { height: 40px; font-size: 12.5px; border-radius: 999px !important; padding: 0 12px; }

.ws-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--ws-line-soft); }
.ws-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 12px; }
.ws-table th {
    position: sticky; top: 0;
    padding: 10px 8px;
    text-align: left; white-space: nowrap;
    font-weight: 700; color: var(--ws-gold);
    background: var(--ws-surface-3);
}
.ws-table td { padding: 9px 8px; white-space: nowrap; color: #dfe6f7; border-top: 1px solid var(--ws-line-soft); }
.ws-table tr:nth-child(even) td { background: rgba(255, 255, 255, .02); }
.ws-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; }
.ws-badge--on { color: #062a17; background: var(--ws-success); }
.ws-badge--off { color: #fff; background: #4a5677; }
.ws-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: 12px; color: var(--ws-muted); }
.ws-pager .ws-btn { width: auto; }

/* ---------- Account ---------- */
.ws-profile {
    margin: -14px -14px 0;
    padding: 22px 16px 70px;
    background: var(--ws-gold-grad);
    border-radius: 0 0 26px 26px;
    color: var(--ws-ink);
}
.ws-profile__row { display: flex; align-items: center; gap: 12px; }
.ws-avatar {
    width: 56px; height: 56px; flex: 0 0 56px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    font-size: 22px; font-weight: 800;
    color: var(--ws-gold);
    background: var(--ws-navy-grad);
    border: 3px solid rgba(255, 255, 255, .7);
}
.ws-profile__name { font-size: 17px; font-weight: 700; }
.ws-uid {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 3px; padding: 2px 10px;
    border-radius: 999px; font-size: 11px; font-weight: 700;
    color: var(--ws-gold-light); background: rgba(10, 29, 71, .85);
    cursor: pointer;
}
.ws-uid .material-icons { font-size: 13px; }
.ws-profile__meta { margin-top: 4px; font-size: 10.5px; opacity: .8; }

.ws-balance {
    position: relative;
    margin: -56px 0 14px;
    padding: 16px;
    border-radius: 16px;
    background: var(--ws-surface-2);
    border: 1px solid var(--ws-line);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
}
.ws-balance small { font-size: 12px; color: var(--ws-muted); }
.ws-balance__amount { display: flex; align-items: center; gap: 8px; margin-top: 2px; font-size: 24px; font-weight: 800; color: var(--ws-gold); }
.ws-balance__amount a { color: var(--ws-muted); display: inline-flex; }
.ws-balance__actions { display: flex; gap: 26px; margin-top: 14px; }
.ws-balance__actions a { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: #fff; }
.ws-balance__actions .ws-ico {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px; color: var(--ws-ink); background: var(--ws-gold-grad);
}

.ws-tiles { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-bottom: 12px; }
.ws-tile {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 13px 12px;
    border-radius: 12px;
    background: var(--ws-surface);
    border: 1px solid var(--ws-line-soft);
    color: var(--ws-text) !important;
}
.ws-tile .material-icons { font-size: 24px; color: var(--ws-gold); }
.ws-tile b { display: block; font-size: 13px; font-weight: 700; }
.ws-tile span { font-size: 10.5px; color: var(--ws-muted); }

.ws-menu { border-radius: 12px; overflow: hidden; background: var(--ws-surface); border: 1px solid var(--ws-line-soft); margin-bottom: 12px; }
.ws-menu a { display: flex; align-items: center; gap: 12px; padding: 14px; color: var(--ws-text) !important; font-size: 13px; font-weight: 600; }
.ws-menu a + a { border-top: 1px solid var(--ws-line-soft); }
.ws-menu a .material-icons:first-child { color: var(--ws-gold); }
.ws-menu a .ws-row__text { flex: 1; }
.ws-menu a .material-icons:last-child { color: var(--ws-muted); font-size: 20px; }

.ws-telegram {
    display: flex; align-items: center; gap: 12px;
    padding: 14px; margin-bottom: 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, #12306b 0%, #0c1a3d 100%);
    border: 1px solid var(--ws-line-soft);
}
.ws-telegram__icon { width: 42px; height: 42px; flex: 0 0 42px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: #2aa3df; }
.ws-telegram b { display: block; font-size: 13.5px; }
.ws-telegram span { font-size: 10.5px; color: var(--ws-muted); }
.ws-telegram .ws-btn { flex: 0 0 auto; }

.ws-service { padding: 14px; border-radius: 12px; background: var(--ws-surface); border: 1px solid var(--ws-line-soft); margin-bottom: 18px; }
.ws-service h4 { margin: 0 0 12px; font-size: 13.5px; font-weight: 700; color: #fff; }
.ws-service__grid { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.ws-service__grid a { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ws-muted) !important; }
.ws-service__grid .material-icons { font-size: 26px; color: var(--ws-gold); }
.ws-logout { width: 60%; margin: 0 auto; display: flex; }

/* ---------- Rewards ---------- */
.ws-reward-head {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #3a2a05 0%, #1d1504 100%);
    border: 1px solid rgba(233, 178, 39, .4);
}
.ws-reward-head b { font-size: 17px; color: var(--ws-gold-light); }
.ws-reward-head p { margin: 2px 0 0; font-size: 11px; color: #d9cfae; }
.ws-reward-head .material-icons { font-size: 40px; color: var(--ws-gold); }
.ws-sub-head { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 10px; }
.ws-sub-head h3 { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; font-weight: 700; color: var(--ws-gold); }
.ws-sub-head h3 .material-icons { font-size: 18px; }

.ws-wheel-box { padding: 18px 14px 14px; text-align: center; border-radius: 14px; background: var(--ws-surface); border: 1px solid var(--ws-line-soft); }
.ws-wheel-wrap { position: relative; width: 240px; height: 240px; margin: 6px auto 16px; }
.ws-wheel-pointer {
    position: absolute; left: 50%; top: -10px; transform: translateX(-50%);
    z-index: 3;
    width: 0; height: 0;
    border-left: 13px solid transparent; border-right: 13px solid transparent; border-top: 24px solid var(--ws-gold-light);
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .5));
}
.ws-wheel {
    position: relative;
    width: 100%; height: 100%;
    border-radius: 50%;
    border: 8px solid #c48a12;
    box-shadow: 0 0 0 3px #fbe39a, 0 10px 30px rgba(0, 0, 0, .55), inset 0 0 18px rgba(0, 0, 0, .45);
    background: conic-gradient(
        #e9b227 0deg 45deg, #5a3a0a 45deg 90deg, #d49a1c 90deg 135deg, #4a2f08 135deg 180deg,
        #e9b227 180deg 225deg, #5a3a0a 225deg 270deg, #d49a1c 270deg 315deg, #4a2f08 315deg 360deg);
    transition: transform 4.5s cubic-bezier(.17, .67, .2, 1);
}
.ws-wheel__label {
    position: absolute; left: 50%; top: 50%;
    width: 50%; height: 20px; margin-top: -10px;
    transform-origin: 0 50%;
    text-align: right; padding-right: 18px;
    font-size: 11px; font-weight: 800; color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}
.ws-wheel__hub {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    z-index: 2;
    width: 54px; height: 54px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: var(--ws-ink);
    background: var(--ws-gold-grad);
    border: 4px solid #5a3a0a;
}
.ws-spins-left { margin-top: 8px; font-size: 11.5px; color: var(--ws-muted); }
.ws-spins-left b { color: var(--ws-success); }
.ws-mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.ws-mini-stats div { padding: 10px 4px; text-align: center; border-radius: 12px; background: var(--ws-surface); border: 1px solid var(--ws-line-soft); }
.ws-mini-stats .material-icons { font-size: 18px; color: var(--ws-gold); }
.ws-mini-stats b { display: block; font-size: 13px; }
.ws-mini-stats span { font-size: 10px; color: var(--ws-muted); }

/* ---------- Legacy inner pages (template content inside the new shell) ---------- */
.ws-main .content-body { margin: 0 !important; padding: 0 !important; min-height: auto !important; background: transparent !important; }
.ws-main .content-body > .container-fluid, .ws-main .container-fluid { padding: 0 !important; }
.ws-main .row { --bs-gutter-x: .75rem; }
.ws-main .card {
    height: auto !important;
    margin-bottom: 14px;
    color: var(--ws-text);
    background: var(--ws-surface) !important;
    border: 1px solid var(--ws-line-soft) !important;
    border-radius: var(--ws-radius) !important;
    box-shadow: none !important;
}
.ws-main .card-header { background: transparent !important; border-bottom: 1px solid var(--ws-line-soft) !important; padding: 12px 14px !important; }
.ws-main .card-body { padding: 14px !important; }
.ws-main .card-footer { background: transparent !important; border-top: 1px solid var(--ws-line-soft) !important; }
.ws-main h1, .ws-main h2, .ws-main h3, .ws-main h4, .ws-main h5, .ws-main h6,
.ws-main .card-title, .ws-main .title, .ws-main .heading { color: var(--ws-gold) !important; }
.ws-main .text-dark, .ws-main .text-black { color: var(--ws-text) !important; }
.ws-main .text-muted, .ws-main .text-secondary { color: var(--ws-muted) !important; }
.ws-main .text-primary { color: var(--ws-gold) !important; }
.ws-main .bg-white, .ws-main .bg-light { background: var(--ws-surface-2) !important; }
.ws-main .form-control, .ws-main .form-select, .ws-main select, .ws-main textarea, .ws-main input[type=text],
.ws-main input[type=number], .ws-main input[type=password], .ws-main input[type=email], .ws-main input[type=date] {
    color: var(--ws-text) !important;
    background: var(--ws-surface-2) !important;
    border: 1px solid var(--ws-line-soft) !important;
    border-radius: 10px !important;
}
.ws-main .form-control:focus { border-color: var(--ws-gold) !important; box-shadow: none !important; }
.ws-main .form-control::placeholder { color: #6f7fa6; }
.ws-main .form-control[disabled], .ws-main .form-control[readonly] { opacity: .8; }
.ws-main .btn { border-radius: 999px !important; font-weight: 700; }
.ws-main .btn-primary, .ws-main .btn-success, .ws-main .btn-info, .ws-main .btn-theme {
    color: var(--ws-ink) !important;
    background: var(--ws-gold-grad) !important;
    border: 0 !important;
}
.ws-main .btn-outline-primary, .ws-main .btn-outline-light { color: var(--ws-gold) !important; border: 1.5px solid var(--ws-gold) !important; background: transparent !important; }
.ws-main .table, .ws-main table { color: #dfe6f7 !important; --bs-table-bg: transparent; --bs-table-color: #dfe6f7; }
.ws-main .table > :not(caption) > * > * { background: transparent !important; color: #dfe6f7 !important; border-color: var(--ws-line-soft) !important; }
.ws-main .table th, .ws-main table th { color: var(--ws-gold) !important; background: var(--ws-surface-3) !important; white-space: nowrap; }
.ws-main .table-responsive { border-radius: 12px; }
.ws-main .gridpagerstyle a, .ws-main .gridpagerstyle span { background: var(--ws-surface-2) !important; color: var(--ws-text) !important; border-color: var(--ws-line) !important; }
.ws-main .gridpagerstyle span { background: var(--ws-gold) !important; color: var(--ws-ink) !important; }
.ws-main .alert { position: static !important; width: auto !important; border-radius: 12px; }
.ws-main .nav-tabs .nav-link, .ws-main .nav-pills .nav-link { color: var(--ws-muted); }
.ws-main .nav-tabs .nav-link.active, .ws-main .nav-pills .nav-link.active { color: var(--ws-ink); background: var(--ws-gold-grad); border-color: transparent; }
.ws-main .bubles-down, .ws-main .mb-6 { margin-bottom: 0 !important; }
.ws-main .dropdown-menu { background: var(--ws-surface-2); border: 1px solid var(--ws-line); }
.ws-main .dropdown-item { color: var(--ws-text); }

/* ---------- Message popups (MessageBox / PopScript.js) ---------- */
#messageModal {
    position: fixed !important; inset: 0; z-index: 2000;
    opacity: 1 !important;
    display: flex !important; align-items: center; justify-content: center;
    background: rgba(2, 7, 19, .75) !important;
}
#messageModal .modal-dialog { width: 100%; max-width: 340px; margin: 20px; transform: none !important; }
#messageModal .modal-content { color: var(--ws-text); background: var(--ws-navy-grad) !important; border: 1px solid var(--ws-line) !important; border-radius: 18px !important; box-shadow: 0 18px 50px rgba(0, 0, 0, .6); overflow: hidden; }
#messageModal .modal-header { display: flex; justify-content: center; padding: 14px 16px 10px; border-bottom: 1px solid var(--ws-line-soft); }
#messageModal .modal-title { margin: 0; color: var(--ws-gold) !important; font-size: 16px; font-weight: 700; }
#messageModal .modal-body { padding: 16px; color: #e6ecfa; text-align: center; font-size: 13.5px; line-height: 1.7; word-break: break-word; }
#messageModal .modal-footer { display: flex; justify-content: center; padding: 0 16px 16px; border-top: 0; }
#messageModal .btn { min-width: 120px; min-height: 40px; border-radius: 999px; font-weight: 700; color: var(--ws-ink) !important; background: var(--ws-gold-grad) !important; border: 0 !important; cursor: pointer; }
#success-alert, #warning-alert, #danger-alert { position: fixed !important; top: 14px; left: 50%; transform: translateX(-50%); width: calc(100% - 28px); max-width: 400px; z-index: 2000; border-radius: 12px; }

/* ---------- Toast (copy feedback etc.) ---------- */
.ws-toast {
    position: fixed; left: 50%; bottom: calc(var(--ws-nav-h) + 20px);
    z-index: 2100;
    transform: translateX(-50%) translateY(20px);
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 12.5px; font-weight: 600;
    color: var(--ws-ink); background: var(--ws-gold-grad);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
    opacity: 0; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}
.ws-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 360px) {
    .ws-game-card__name { font-size: 9.5px; }
    .ws-filters { grid-template-columns: 1fr 1fr; }
    .ws-filters > :last-child { grid-column: 1 / -1; }
}
