/* ===== WIN BINGO Base Styles ===== */
:root {
    --bg: #0b0e1a;
    --bg-2: #10142a;
    --panel: rgba(255, 255, 255, 0.04);
    --panel-2: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.09);
    --text: #e8ecf6;
    --muted: #8b93a7;
    --gold: #ffd24a;
    --gold-2: #f5b50a;
    --green: #2dd47a;
    --red: #ff5566;
    --blue: #4aa8ff;
    --radius: 16px;
    --font: 'Poppins', system-ui, sans-serif;
    --font-display: 'Orbitron', var(--font);

    /* Height of the fixed bottom menu, which floats over the page and must be
       reserved by anything sized to "the rest of the viewport". game.js
       overwrites this with the measured value. The fallback covers the tallest
       variant -- the desktop menu (~84px, its 66px round PLAY button sets the
       row height) -- plus the phone's bottom safe-area inset, which the menu
       adds to its own padding and which is worth ~34px on a gesture-bar phone.
       Leaving env() out here is what would let the board slide under the menu
       for the frame before JS measures, since the fallback would then be short
       by exactly the inset. */
    --bottom-nav-h: calc(5.75rem + env(safe-area-inset-bottom));
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: radial-gradient(1200px 600px at 70% -10%, #1a2140 0%, var(--bg) 55%),
                var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.55;
}

body.bg-dark { background: radial-gradient(1200px 600px at 70% -10%, #1a2140 0%, var(--bg) 55%), var(--bg); }

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

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.5px; }
h2 { font-size: 1.15rem; margin-bottom: 0.9rem; }

.muted { color: var(--muted); }
.small { font-size: 0.8rem; }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.gold-text { color: var(--gold); }

/* ===== Glass panels ===== */
.glass {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(12px);
}

.panel {
    padding: 1.2rem;
    margin-bottom: 1.1rem;
}
.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 0.8rem;
}
.panel-head h2 { margin: 0; }
.panel-hint { font-size: 0.78rem; color: var(--muted); }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.6rem 1.1rem;
    border-radius: 10px;
    border: 1px solid transparent;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
    text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
    color: #1a1200;
    box-shadow: 0 4px 18px rgba(245, 181, 10, 0.35);
}
.btn-gold:hover { filter: brightness(1.06); }

.btn-outline {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-gold-outline {
    background: rgba(255, 210, 74, 0.08);
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: 0 0 0 1px rgba(255, 210, 74, 0.15) inset;
}
.btn-gold-outline:hover {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
    border-color: var(--gold);
    color: #1a1200;
    box-shadow: 0 4px 18px rgba(245, 181, 10, 0.35);
}

.btn-danger { background: rgba(255, 85, 102, 0.15); border-color: rgba(255, 85, 102, 0.5); color: var(--red); }
.btn-danger:hover { background: rgba(255, 85, 102, 0.25); }

.btn-block { width: 100%; }
.btn-sm { padding: 0.35rem 0.7rem; font-size: 0.78rem; }

.icon-btn {
    background: var(--panel-2);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 10px;
    width: 38px;
    height: 38px;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.icon-btn:hover { border-color: var(--gold); }

/* ===== Navbar ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 0.65rem 1.4rem;
    margin: 0.7rem 0.9rem;
    border-radius: 14px;
    background: linear-gradient(120deg, rgba(255, 210, 74, 0.18), rgba(74, 168, 255, 0.15) 40%, rgba(160, 107, 255, 0.18) 75%, rgba(255, 85, 102, 0.12)), rgba(16, 20, 42, 0.88);
    background-size: 220% 220%;
    border: 2px solid transparent;
    box-shadow: 0 4px 22px rgba(255, 150, 40, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    animation: navbar-flow 12s ease-in-out infinite;
}
.navbar::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;
    background: conic-gradient(from var(--angle, 0deg), #ffd24a, #ff7b1c, #ff5566, #a06bff, #4aa8ff, #2ee6a8, #ffd24a);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    animation: nav-border-spin 3s linear infinite;
    filter: drop-shadow(0 0 6px rgba(255, 150, 40, 0.5));
    pointer-events: none;
}
@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes nav-border-spin { to { --angle: 360deg; } }
@keyframes navbar-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.navbar-brand { display: flex; align-items: center; gap: 0.55rem; font-family: var(--font-display); font-weight: 900; font-size: 1.15rem; color: var(--text); }
.navbar-brand:hover { text-decoration: none; }
.brand-text { background: linear-gradient(90deg, var(--gold), #fff3c4); -webkit-background-clip: text; background-clip: text; color: transparent; }

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 0.6rem calc(0.55rem + env(safe-area-inset-bottom));
    background: rgba(8, 11, 24, 0.92);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
}
.bottom-nav .nav-link {
    flex: 1;
    max-width: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.78rem;
    padding: 0.45rem 0.7rem;
    border-radius: 10px;
    white-space: nowrap;
}
.nav-link { color: var(--muted); }
.nav-link:hover { color: var(--text); text-decoration: none; }
.nav-link.active { color: var(--gold); background: rgba(255, 210, 74, 0.1); }
.nav-ico { font-size: 1.2rem; line-height: 1; }
.bottom-nav .nav-play {
    position: relative;
    flex: 0 0 auto;
    width: 66px;
    height: 66px;
    margin-top: 0;
    border-radius: 50%;
    padding: 0;
    gap: 0.1rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    color: #1a1200;
    box-shadow: 0 6px 18px rgba(255, 210, 74, 0.35);
    overflow: visible;
}
.bottom-nav .nav-play .nav-ico { font-size: 1.85rem; line-height: 1; }
.bottom-nav .nav-play::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    z-index: -1;
    background: linear-gradient(135deg, #ffd24a, #ff8c00, #ff2e63, #229ed9, #ffd24a);
    background-size: 300% 300%;
    filter: blur(6px);
    opacity: 0.5;
    animation: play-glow 4s ease-in-out infinite;
}
@keyframes play-glow {
    0% { background-position: 0% 50%; transform: scale(1); opacity: 0.5; }
    50% { background-position: 100% 50%; transform: scale(1.05); opacity: 0.65; }
    100% { background-position: 0% 50%; transform: scale(1); opacity: 0.5; }
}
.bottom-nav .nav-play:hover { color: #1a1200; }
.bottom-nav .nav-play.active {
    color: #1a1200;
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    box-shadow: 0 0 0 3px rgba(255, 210, 74, 0.35), 0 6px 18px rgba(255, 210, 74, 0.45);
}

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 0.6rem; }
.nav-stats { margin-left: auto; display: flex; align-items: stretch; gap: 1rem; min-width: 0; }
.nav-stats .stat { text-align: center; line-height: 1.15; }
.nav-stats .stat-label { font-size: 0.6rem; }
.nav-stats .stat strong { font-size: 0.92rem; white-space: nowrap; color: var(--text); }
.coin-balance {
    display: flex; align-items: center; gap: 0.4rem;
    background: rgba(255, 210, 74, 0.1);
    border: 1px solid rgba(255, 210, 74, 0.3);
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.coin-balance:hover { text-decoration: none; color: var(--text); border-color: var(--gold); background: rgba(255, 210, 74, 0.18); transform: translateY(-1px); }
.coin-label { color: var(--gold); font-size: 0.72rem; font-weight: 700; }

.logout-btn {
    display: inline-flex; align-items: center; gap: 0.35rem;
    color: #ff8a9b; background: rgba(255, 90, 120, 0.12);
    border: 1px solid rgba(255, 90, 120, 0.3);
    padding: 0.4rem 0.85rem; border-radius: 999px;
    font-size: 0.82rem; font-weight: 700; text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.logout-btn:hover { text-decoration: none; background: rgba(255, 90, 120, 0.22); color: #ffb3c0; border-color: rgba(255, 90, 120, 0.5); }

.nav-refresh {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: rgba(255, 210, 74, 0.1);
    border: 1px solid rgba(255, 210, 74, 0.3);
    padding: 0.4rem 0.8rem; border-radius: 999px;
    font-size: 0.85rem; font-weight: 700; color: var(--text);
    cursor: pointer; white-space: nowrap;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.nav-refresh:hover { border-color: var(--gold); background: rgba(255, 210, 74, 0.18); transform: translateY(-1px); }

.user-menu { position: relative; }
.avatar-btn {
    width: 38px; height: 38px; border-radius: 50%;
    border: 2px solid var(--gold);
    background: var(--panel-2); color: var(--text);
    cursor: pointer; font-weight: 700; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center;
}
.avatar-btn img { width: 100%; height: 100%; object-fit: cover; }
.dropdown {
    position: absolute; right: 0; top: calc(100% + 8px);
    min-width: 200px;
    background: #141935; border: 1px solid var(--border);
    border-radius: 12px; padding: 0.4rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 60;
}
.dropdown.open { display: block; }
.dropdown a { display: block; padding: 0.55rem 0.8rem; border-radius: 8px; color: var(--text); font-size: 0.88rem; }
.dropdown a:hover { background: var(--panel-2); color: var(--gold); text-decoration: none; }
.dropdown-header { padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--border); margin-bottom: 0.3rem; display: flex; flex-direction: column; }
.dropdown-header small { color: var(--muted); }

.badge {
    display: inline-block;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    background: var(--panel-2);
    color: var(--text);
}
.badge-pending { background: rgba(255, 210, 74, 0.18); color: var(--gold); }
.badge-approved, .badge-active, .badge-won, .badge-completed { background: rgba(45, 212, 122, 0.18); color: var(--green); }
.badge-rejected, .badge-banned, .badge-lost, .badge-deleted, .badge-cancelled { background: rgba(255, 85, 102, 0.18); color: var(--red); }
.badge-suspended { background: rgba(255, 140, 0, 0.18); color: #ff8c00; }
.badge-unbalanced { background: rgba(255, 140, 0, 0.22); color: #ffb020; }
.badge-overpay { background: rgba(255, 85, 102, 0.18); color: var(--red); }
.badge-telebirr { background: rgba(75, 120, 255, 0.18); color: #7aa5ff; }
.badge-cbe { background: rgba(45, 212, 122, 0.18); color: var(--green); }

/* ===== Forms ===== */
.auth-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 1rem; }
.auth-wrap { width: 100%; max-width: 420px; }
.auth-card { padding: 2rem; text-align: center; }
.auth-logo { width: 64px; height: 64px; margin-bottom: 0.6rem; }
.auth-title { font-size: 1.6rem; margin-bottom: 0.25rem; }
.auth-subtitle { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.2rem; }
.auth-alt { margin-top: 1rem; font-size: 0.88rem; color: var(--muted); }

/* ===== Phone number with a fixed country-code prefix =====
   The "+251" is a non-editable <span>, so the input only ever holds the
   9 national digits. AuthController folds that back to 09XXXXXXXX on
   submit, so the value never has to travel with the prefix. */
.phone-input {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--panel-2);
    overflow: hidden;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.phone-input:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(255, 210, 74, .18);
}
.phone-prefix {
    display: flex;
    align-items: center;
    padding: 0 .8rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--muted);
    background: rgba(255, 255, 255, .05);
    border-right: 1px solid var(--border);
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
}
.phone-input input {
    flex: 1;
    min-width: 0;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    letter-spacing: .06em;
}
.phone-input input:focus { outline: none; }
/* "Not finished yet" -- tinted with the accent, not the error colour, so a
   half-typed number does not flash red while the player is still typing. */
.phone-input.invalid { border-color: var(--gold); }
/* Set only when a submit was actually blocked. */
.phone-input.error { border-color: var(--red); }
.phone-hint {
    display: block;
    margin-top: .35rem;
    font-size: .75rem;
    font-weight: 400;
    color: var(--muted);
}
.phone-error { color: var(--red); font-weight: 600; }

/* "Forgot password?" sits under the password field, right-aligned. */
.auth-forgot {
    display: block;
    margin-top: .45rem;
    text-align: right;
    font-size: .78rem;
    font-weight: 400;
}
.auth-forgot a { color: var(--muted); text-decoration: none; }
.auth-forgot a:hover { color: var(--gold); text-decoration: underline; }

.field { margin-bottom: 0.9rem; text-align: left; }
.field label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--muted); margin-bottom: 0.35rem; }
.field label small { font-weight: 400; }
.field input, .field select, .field textarea, .copy-input {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.25);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.12s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }
.field textarea { resize: vertical; }
.field select option { background: #141935; }

.stack-form .btn { margin-top: 0.4rem; }

.password-current-box {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.25);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.9rem;
    word-break: break-all;
}
.password-current-box:empty::before { content: '—'; color: var(--muted); }

/* ===== Alerts & toasts ===== */
.alert { padding: 0.7rem 1rem; border-radius: 10px; font-size: 0.85rem; margin-bottom: 0.9rem; }
.alert-danger { background: rgba(255, 85, 102, 0.12); border: 1px solid rgba(255, 85, 102, 0.4); color: var(--red); }
.alert-success { background: rgba(45, 212, 122, 0.12); border: 1px solid rgba(45, 212, 122, 0.4); color: var(--green); }

.toasts { position: fixed; bottom: 1rem; right: 1rem; z-index: 200; display: flex; flex-direction: column; gap: 0.5rem; }
.toast {
    padding: 0.75rem 1.1rem; border-radius: 10px; min-width: 240px; max-width: 340px;
    background: #1a2040; border: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    font-size: 0.88rem;
    animation: toast-in 0.25s ease;
}
.toast.success { border-color: rgba(45, 212, 122, 0.6); }
.toast.error { border-color: rgba(255, 85, 102, 0.6); }
.toast.info { border-color: rgba(74, 168, 255, 0.6); }
.toast.out { opacity: 0; transform: translateX(20px); transition: all 0.3s ease; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

/* ===== Tables ===== */
.table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.table th {
    text-align: left; padding: 0.6rem 0.7rem; color: var(--muted);
    font-weight: 600; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}
.table td { padding: 0.6rem 0.7rem; border-bottom: 1px solid rgba(255, 255, 255, 0.04); vertical-align: middle; }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
.table-scroll { overflow-x: auto; max-width: 100%; }
.row-me td { background: rgba(255, 210, 74, 0.06); }

/* ===== Modals ===== */
.modal {
    position: fixed; inset: 0; z-index: 120;
    background: rgba(5, 8, 18, 0.72);
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(4px);
}
.modal-content { position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 2rem); overflow-y: auto; padding: 1.5rem; border-radius: var(--radius); background: #131830; }
.modal-close {
    position: absolute; top: 0.7rem; right: 1rem; cursor: pointer;
    font-size: 1.5rem; color: var(--muted); line-height: 1;
}
.modal-close:hover { color: var(--text); }

/* ===== Daily bonus ===== */
.daily-bonus-panel {
    margin-top: 0.9rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 210, 74, 0.35);
    background: linear-gradient(135deg, rgba(255, 210, 74, 0.12), rgba(255, 140, 0, 0.06));
    display: flex; flex-direction: column; gap: 0.5rem;
}
.daily-bonus-panel.hidden { display: none; }
.dbp-row { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; font-size: 0.9rem; }
.dbp-label { color: var(--muted); font-size: 0.82rem; font-weight: 600; }
.dbp-row .btn { margin-left: auto; }
#dbp-expires { margin-left: auto; }

/* ===== Player-to-player balance transfer ===== */
.wallet-actions-extra { gap: 0.5rem; flex-wrap: wrap; }

/* ===== Bonus popup ===== */
.bonus-popup-content { text-align: center; }
.bonus-popup-icon { font-size: 3rem; line-height: 1; margin-bottom: 0.6rem; }
.bonus-popup-content h3 { margin-bottom: 0.5rem; }
.bonus-popup-msg { color: var(--text); font-size: 1rem; margin-bottom: 1.1rem; }
.bonus-popup-msg strong { color: var(--gold); }

/* ===== Content layout ===== */
.content-wrap { max-width: 1080px; margin: 0 auto; padding: 1.2rem 1.2rem 5rem; }
.content-wrap.narrow { max-width: 720px; }

/* ===== Stats / mini stats ===== */
.stats-row { display: flex; gap: 0.8rem; margin: 1rem 0; flex-wrap: wrap; }
.mini-stat { flex: 1; min-width: 80px; text-align: center; background: var(--panel-2); border-radius: 12px; padding: 0.6rem; }
.mini-stat strong { display: block; font-size: 1.1rem; color: var(--gold); }
.mini-stat span { font-size: 0.72rem; color: var(--muted); }

.wallet-grid, .profile-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1.1rem; }
.wallet-grid > *, .profile-grid > * { min-width: 0; }
.wallet-card { text-align: center; }
.big-balance { display: flex; align-items: center; justify-content: center; gap: 0.5rem; font-size: 2.2rem; font-weight: 700; margin: 0.6rem 0; }
.wallet-actions { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; margin: 1rem 0; }
.promo-row { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.promo-row input { flex: 1; min-width: 0; padding: 0.6rem 0.8rem; border-radius: 10px; border: 1px solid var(--border); background: rgba(0, 0, 0, 0.25); color: var(--text); }
#promo-input {
    position: relative;
    border: 3px solid transparent;
    background:
        rgba(0, 0, 0, 0.35) padding-box,
        conic-gradient(from var(--neon-angle, 0deg),
            var(--gold), #000000 25%, #000000 50%, var(--gold) 75%, var(--gold)) border-box;
    animation: neon-rotate 4s linear infinite;
    box-shadow: 0 0 12px rgba(255, 210, 74, 0.35);
}
#promo-input:focus {
    box-shadow: 0 0 20px rgba(255, 210, 74, 0.55);
    outline: none;
}
@property --neon-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes neon-rotate {
    to { --neon-angle: 360deg; }
}

.referral-box { background: var(--panel-2); border-radius: 12px; padding: 0.8rem; margin-top: 0.8rem; }
.copy-input { text-align: center; font-weight: 600; }

.share-row { background: var(--panel-2); border-radius: 12px; padding: 0.8rem; margin-top: 0.8rem; }
.share-row p { margin: 0 0 0.6rem; }
.share-btns { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.share-btn {
    display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 0.5rem 0.85rem; border-radius: 999px; border: 1px solid var(--border);
    font-size: 0.82rem; font-weight: 600; color: var(--text); background: rgba(0, 0, 0, 0.25);
    cursor: pointer; text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.share-btn svg { width: 18px; height: 18px; flex: none; }
.share-btn:hover { transform: translateY(-2px); color: #fff; }
.share-telegram { color: #229ed9; }
.share-telegram:hover { background: #229ed9; border-color: #229ed9; }
.share-whatsapp { color: #25d366; }
.share-whatsapp:hover { background: #25d366; border-color: #25d366; color: #fff; }
.share-facebook { color: #1877f2; }
.share-facebook:hover { background: #1877f2; border-color: #1877f2; }
.share-sms { color: #8bc34a; }
.share-sms:hover { background: #8bc34a; border-color: #8bc34a; }
.share-tiktok { color: #25f4ee; }
.share-tiktok:hover { background: #111; border-color: #25f4ee; box-shadow: 0 0 10px rgba(37, 244, 238, 0.35); }

.avatar-lg {
    width: 84px; height: 84px; border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    color: #1a1200; font-weight: 900; font-size: 2rem;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 0.8rem; overflow: hidden;
}
.avatar-lg img { width: 100%; height: 100%; object-fit: cover; }

.profile-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.8rem; }
.profile-head .avatar-lg { margin: 0; }
.profile-actions { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }

/* ===== Leaderboard tabs ===== */
.lb-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.lb-tabs-section { margin-bottom: 0.5rem; }
.lb-tab { padding: 0.5rem 1rem; border-radius: 999px; background: var(--panel); border: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.lb-tab.active { background: rgba(255, 210, 74, 0.12); color: var(--gold); border-color: rgba(255, 210, 74, 0.4); }

/* ===== Notifications ===== */
.notif-list { display: flex; flex-direction: column; gap: 0.5rem; }
.notif-item { display: flex; gap: 0.8rem; align-items: flex-start; padding: 0.8rem; border-radius: 12px; background: var(--panel-2); }
.notif-item.unread { border-left: 3px solid var(--gold); }
.notif-icon { font-size: 1.3rem; }
.notif-body p { font-size: 0.9rem; }
.notif-body strong { display: block; }

/* ===== Error 404 ===== */
.error-404 { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; text-align: center; }
.ball-lost { width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #3a4468, #141935); display: flex; align-items: center; justify-content: center; font-size: 2.4rem; color: var(--gold); }

/* ===== Footer ===== */
.site-footer { text-align: center; color: var(--muted); font-size: 0.8rem; padding: 1.4rem; }
