/* ═══════════════════════════════════════════════════════════════════════════════
   PASUX - Betting Social Media App
   Instagram-Style Dark Neon Theme - v2 (Accent System + Mobile Margins)
   ═══════════════════════════════════════════════════════════════════════════════ */

:root {
    --bg-primary: #0A0E17;
    --bg-surface: #121829;
    --bg-elevated: #162035;
    --bg-input: #1A2035;
    --bg-hover: #1E2640;
    --bg-press: #253050;
    --border-color: #1E2A45;
    --border-light: #2A3050;
    --border-focus: #3A4570;
    --neon-green: #00E5A3;
    --neon-green-rgb: 0, 229, 163;
    --neon-blue: #00B4D8;
    --neon-blue-rgb: 0, 180, 216;
    --gold: #FFD700;
    --gold-rgb: 255, 215, 0;
    --red: #FF4757;
    --red-rgb: 255, 71, 87;
    --orange: #FFA502;
    --orange-rgb: 255, 165, 2;
    --purple: #9B59B6;
    --purple-rgb: 155, 89, 182;
    --text-primary: #FFFFFF;
    --text-secondary: #E0E0E0;
    --text-muted: #999999;
    --text-dim: #666666;
    --text-faint: #444444;
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-mono: 'SF Mono', SFMono-Regular, ui-monospace, Menlo, Monaco, monospace;
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.4);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.5);
    --shadow-float: 0 12px 36px rgba(0,0,0,0.5);
    --shadow-neon-green: 0 0 20px rgba(0,229,163,0.25);
    --shadow-neon-blue: 0 0 20px rgba(0,180,216,0.25);
    --duration-fast: 150ms;
    --duration-normal: 250ms;
    --duration-slow: 400ms;
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-navbar: 300;
    --z-overlay: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-toast: 700;

    /* ── Accent color system (set via inline style per card) ── */
    --accent-hex: var(--neon-green);
    --accent-rgb: var(--neon-green-rgb);
}

/* ─── Reset ─── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; }
body { font-family:var(--font-main); background:var(--bg-primary); color:var(--text-secondary); min-height:100vh; line-height:1.6; overflow-x:hidden; -webkit-tap-highlight-color:transparent; }
a { color:var(--neon-green); text-decoration:none; transition:opacity var(--duration-fast); }
a:hover { opacity:0.85; }
img { max-width:100%; display:block; object-fit:cover; }
button { font-family:inherit; cursor:pointer; border:none; background:none; outline:none; -webkit-tap-highlight-color:transparent; }
input, textarea, select { font-family:inherit; outline:none; }
::-webkit-scrollbar { width:6px; height:6px; }
::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb { background:var(--border-light); border-radius:var(--radius-full); }
::selection { background:rgba(0,229,163,0.3); color:var(--text-primary); }


/* ═══════════════════════════════════════════════════════════════════════════════
   1. NAVBAR
   ═══════════════════════════════════════════════════════════════════════════════ */
.navbar {
    position:sticky; top:0; z-index:var(--z-navbar);
    background:rgba(10,14,23,0.92);
    border-bottom:1px solid var(--border-color);
    backdrop-filter:blur(20px) saturate(180%);
    -webkit-backdrop-filter:blur(20px) saturate(180%);
}

.navbar-inner {
    display:flex; align-items:center; justify-content:space-between;
    height:60px; max-width:935px; margin:0 auto; padding:0 16px; gap:16px;
}

.nav-logo {
    display:flex; align-items:center; gap:10px;
    color:var(--text-primary); font-weight:800; font-size:22px;
    letter-spacing:1.5px; text-decoration:none; flex-shrink:0;
}
.nav-logo:hover { opacity:1; }

.logo-icon {
    width:34px; height:34px; border-radius:8px;
    background:linear-gradient(135deg, var(--neon-green), var(--neon-blue));
    display:flex; align-items:center; justify-content:center;
    color:var(--bg-primary); font-weight:900; font-size:18px; flex-shrink:0;
    box-shadow:0 2px 8px rgba(0,229,163,0.3);
}

.logo-text {
    color:white; font-weight:800; font-size:22px; letter-spacing:1px;
    background:linear-gradient(135deg, var(--text-primary), var(--neon-green));
    -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
}

.nav-center {
    display:flex; gap:4px;
}

.nav-link {
    display:flex; align-items:center; gap:6px;
    padding:8px 16px; border-radius:var(--radius-md);
    color:var(--text-muted); font-size:14px; font-weight:500;
    transition:all var(--duration-fast); position:relative;
}
.nav-link:hover { color:var(--text-primary); background:rgba(255,255,255,0.05); }
.nav-link.active { color:var(--neon-green); background:rgba(0,229,163,0.08); }
.nav-link.active::after {
    content:''; position:absolute; bottom:-1px; left:50%; transform:translateX(-50%);
    width:20px; height:2px; background:var(--neon-green); border-radius:var(--radius-full);
}

.nav-right { display:flex; gap:8px; align-items:center; }

.nav-icon-btn {
    background:var(--bg-input); border:1px solid var(--border-light);
    color:var(--text-muted); width:38px; height:38px;
    border-radius:var(--radius-md); cursor:pointer;
    display:flex; align-items:center; justify-content:center;
    transition:all var(--duration-fast); position:relative;
}
.nav-icon-btn:hover {
    color:var(--neon-green); border-color:rgba(0,229,163,0.4);
    background:rgba(0,229,163,0.08);
}

/* Desktop global navigation for non-home pages */
.desktop-global-nav { display:none; }
.desktop-global-nav-inner {
    max-width: 1180px;
    margin: 0 auto;
    height: 64px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.desktop-global-brand {
    color: var(--text-primary);
    font-weight: 800;
    text-decoration: none;
    flex-shrink: 0;
}
.desktop-global-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.desktop-global-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    background: rgba(255,255,255,0.01);
    font-size: 13px;
    font-weight: 600;
    transition: all var(--duration-fast);
}
.desktop-global-link:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.04);
    border-color: var(--border-color);
}
.desktop-global-link.active {
    color: var(--neon-green);
    background: rgba(0,229,163,0.1);
    border-color: rgba(0,229,163,0.32);
}
.desktop-global-auth {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-primary);
    text-decoration: none;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    transition: all var(--duration-fast);
}
.desktop-global-auth:hover {
    color: var(--neon-green);
    border-color: rgba(0,229,163,0.32);
}
[data-theme="light"] .desktop-global-nav {
    background: rgba(255,255,255,0.94);
    border-bottom-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .desktop-global-link {
    color: #475569;
}
[data-theme="light"] .desktop-global-link:hover {
    color: #0f172a;
    background: rgba(15,23,42,0.04);
    border-color: rgba(15,23,42,0.1);
}
[data-theme="light"] .desktop-global-link.active {
    color: #028e67;
    background: rgba(2,142,103,0.1);
    border-color: rgba(2,142,103,0.28);
}
[data-theme="light"] .desktop-global-auth {
    color: #0f172a;
    background: #ffffff;
    border-color: rgba(15,23,42,0.16);
}


/* ═══════════════════════════════════════════════════════════════════════════════
   2. STORIES BAR
   ═══════════════════════════════════════════════════════════════════════════════ */
.stories-bar {
    background:var(--bg-primary); border-bottom:1px solid var(--border-color);
    padding:10px 0; overflow:hidden;
}

.stories-scroll {
    display:flex; gap:20px; overflow-x:auto; scrollbar-width:none;
    -ms-overflow-style:none; scroll-snap-type:x proximity;
    padding:0 16px; -webkit-overflow-scrolling:touch;
}
.stories-scroll::-webkit-scrollbar { display:none; }

.story-item {
    display:flex; flex-direction:column; align-items:center; gap:6px;
    flex-shrink:0; cursor:pointer; scroll-snap-align:start; text-decoration:none;
}

.story-ring {
    width:68px; height:68px; border-radius:var(--radius-full); padding:3px;
    background:linear-gradient(135deg, var(--neon-green), var(--neon-blue), var(--purple));
    background-size:200% 200%; animation:storyGradientShift 4s ease infinite;
    transition:transform 180ms ease-out;
    aspect-ratio:1;
}
.story-item:hover .story-ring { transform:scale(1.03); }



@keyframes storyGradientShift {
    0%,100% { background-position:0% 50%; }
    50% { background-position:100% 50%; }
}

.story-avatar-wrap {
    width:100%; height:100%; border-radius:var(--radius-full);
    border:3px solid var(--bg-primary); background:var(--bg-elevated);
    display:flex; align-items:center; justify-content:center;
    color:var(--neon-green); font-weight:700; font-size:22px; overflow:hidden;
}
.story-avatar-wrap img { width:100%; height:100%; object-fit:cover; border-radius:var(--radius-full); }

.story-name {
    font-size:11px; color:var(--text-muted); max-width:68px;
    text-align:center; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.story-item.story-watched {
    opacity: 0.55;
}
.story-item.story-watched .story-ring {
    background: rgba(255,255,255,0.16);
}



/* ═══════════════════════════════════════════════════════════════════════════════
   3. FEED / POST CARDS
   ═══════════════════════════════════════════════════════════════════════════════ */
.feed-container {
    max-width:750px; margin:0 auto; padding:0 16px 80px;
}

/* ── Post Card ── */
.post-card {
    background:var(--bg-surface);
    border-radius:var(--radius-lg);
    border-left:3px solid var(--accent-hex);
    box-shadow:0 0 20px rgba(var(--accent-rgb), 0.2), 0 4px 16px rgba(0,0,0,0.3);
    overflow:hidden; position:relative;
    margin:0 0 12px 0;
    animation:cardEntrance var(--duration-slow) ease both;
}
.post-card:hover { background:rgba(255,255,255,0.02); }

@keyframes cardEntrance {
    from { opacity:0; transform:translateY(12px); }
    to { opacity:1; transform:translateY(0); }
}

/* ── Post Header ── */
.post-header {
    padding:12px 16px; display:flex; justify-content:space-between; align-items:center;
}

.post-user {
    display:flex; align-items:center; gap:10px; text-decoration:none; flex:1; min-width:0;
}
.post-user:hover { opacity:1; }

.post-avatar {
    width:36px; height:36px; border-radius:var(--radius-full);
    background:rgba(var(--accent-rgb), 0.15); color:var(--accent-hex);
    display:flex; align-items:center; justify-content:center;
    font-weight:700; font-size:14px; flex-shrink:0; overflow:hidden;
    border:2px solid var(--accent-hex);
    box-shadow:0 0 12px rgba(var(--accent-rgb), 0.35);
}
.post-avatar img { width:100%; height:100%; object-fit:cover; border-radius:var(--radius-full); }

.post-user-info { display:flex; flex-direction:column; gap:1px; min-width:0; }

.post-username {
    color:white; font-weight:600; font-size:13px; line-height:1.2;
    display:flex; align-items:center; gap:4px; flex-wrap:wrap;
}

.post-handle {
    color:var(--text-dim); font-size:12px; line-height:1.2;
}

.post-header-right {
    display:flex; align-items:center; gap:8px; flex-shrink:0;
}

/* ── Verified Badge ── */
.verified-badge {
    display:inline-flex; align-items:center; justify-content:center;
    color:var(--neon-blue); font-size:13px; flex-shrink:0;
}

/* ── Pro Badge ── */
.pro-badge {
    display:inline-flex; align-items:center; gap:3px;
    padding:2px 7px; border-radius:4px; font-size:10px; font-weight:700;
    background:linear-gradient(135deg, rgba(255,215,0,0.2), rgba(255,165,2,0.15));
    color:var(--gold); border:1px solid rgba(255,215,0,0.4);
    letter-spacing:0.3px; text-transform:uppercase;
}

/* ── Follow Button ── */
.follow-btn {
    padding:5px 16px; border-radius:var(--radius-sm); font-size:12px; font-weight:700;
    cursor:pointer; transition:all var(--duration-normal); border:none; letter-spacing:0.2px;
    background:var(--neon-green); color:var(--bg-primary);
}
.follow-btn:hover { background:#00cc91; box-shadow:var(--shadow-neon-green); }
.follow-btn.following {
    background:transparent; color:var(--text-muted); border:1px solid var(--border-light);
}
.follow-btn.following:hover { border-color:var(--red); color:var(--red); background:rgba(255,71,87,0.08); }


/* ═══════════════════════════════════════════════════════════════════════════════
   4. ODDS SECTION
   ═══════════════════════════════════════════════════════════════════════════════ */
.post-odds-section {
    padding:20px 16px; text-align:center;
    background:linear-gradient(180deg, rgba(var(--accent-rgb), 0.06), transparent);
    position:relative;
}

.odds-display { position:relative; }

.odds-value {
    font-size:48px; font-weight:900; color:var(--accent-hex);
    text-shadow:0 0 30px rgba(var(--accent-rgb), 0.4), 0 0 60px rgba(var(--accent-rgb), 0.2), 0 0 100px rgba(var(--accent-rgb), 0.1);
    line-height:1; letter-spacing:-1px;
}

.odds-meta {
    display:flex; align-items:center; justify-content:center; gap:8px; margin-top:10px;
    flex-wrap:wrap; padding:0 12px;
}

.bookmaker-tag {
    min-height:28px; padding:6px 12px; border-radius:7px;
    background:linear-gradient(135deg, #0EA5E9, #00E5A3);
    color:#06111f; border:1px solid rgba(255,255,255,0.18);
    font-size:12px; font-weight:900; letter-spacing:0.45px;
    text-transform:uppercase; line-height:1;
    box-shadow:0 8px 18px rgba(0,180,216,0.20), inset 0 1px 0 rgba(255,255,255,0.35);
    display:inline-flex; align-items:center; justify-content:center;
    max-width:180px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

.bet-code {
    min-height:28px; padding:6px 11px; border-radius:7px;
    color:#F8FAFC; font-size:12px; font-family:var(--font-mono);
    font-weight:900; letter-spacing:0.75px; line-height:1;
    background:rgba(255,255,255,0.09);
    border:1px dashed rgba(255,255,255,0.28);
    box-shadow:inset 0 1px 0 rgba(255,255,255,0.08);
    display:inline-flex; align-items:center; justify-content:center;
    max-width:190px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   5. BET LEGS
   ═══════════════════════════════════════════════════════════════════════════════ */
.post-legs { padding:0 16px; }

.leg-row {
    display:flex; align-items:center; gap:8px; padding:8px 0;
    border-bottom:1px solid rgba(255,255,255,0.04); transition:background var(--duration-fast);
}
.leg-row:last-child { border-bottom:none; }
.leg-row:hover { background:rgba(255,255,255,0.02); }
.leg-row.won { border-left:3px solid var(--neon-green); padding-left:5px; }
.leg-row.lost { border-left:3px solid var(--red); padding-left:5px; }

.leg-icon { color:var(--text-dim); font-size:12px; width:16px; text-align:center; }

.leg-match {
    color:var(--text-muted); font-size:13px; flex:1;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

.leg-selection {
    color:white; font-size:13px; font-weight:600; max-width:120px;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

.leg-odds {
    color:var(--neon-green); font-size:13px; font-weight:700;
    font-family:var(--font-mono); min-width:36px; text-align:right;
}

.leg-number {
    padding:4px 8px; border-radius:6px;
    background:rgba(0,229,163,0.1); color:var(--neon-green);
    font-weight:700; font-size:12px; min-width:28px; text-align:center; flex-shrink:0;
}

.leg-info { display:flex; flex-direction:column; flex:1; min-width:0; }
.leg-market { color:var(--text-dim); font-size:12px; }


/* ═══════════════════════════════════════════════════════════════════════════════
   6. POST CAPTION
   ═══════════════════════════════════════════════════════════════════════════════ */
.post-caption {
    padding:8px 16px; font-size:13px; line-height:1.5; color:var(--text-secondary);
}
.post-caption.full { padding:12px 16px; }
.post-caption p { margin:0; }
.prediction-label {
    display: block;
    margin: 0 0 5px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
}

.caption-more {
    color:var(--text-dim); font-size:13px; cursor:pointer;
}
.caption-more:hover { color:var(--text-muted); }

.analysis-label {
    color:var(--neon-green); font-size:12px; font-weight:700;
    letter-spacing:1px; text-transform:uppercase; margin-bottom:6px;
    display:flex; align-items:center; gap:6px;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   7. REACTION BAR & BREAKDOWN
   ═══════════════════════════════════════════════════════════════════════════════ */
.post-reaction-bar {
    display:flex; align-items:center; gap:6px; padding:4px 16px; flex-wrap:wrap;
}

.reaction-breakdown {
    display:flex; gap:4px; align-items:center;
}

.breakdown-item {
    font-size:12px; color:var(--text-dim);
}

.reaction-total-count {
    font-size:13px; font-weight:600; color:var(--text-primary);
}

.post-stats-separator {
    color:var(--text-dim); font-size:13px; margin:0 2px;
}

.post-stat {
    font-size:13px; color:var(--text-dim);
}


/* ═══════════════════════════════════════════════════════════════════════════════
   8. STAR RATING
   ═══════════════════════════════════════════════════════════════════════════════ */
.post-rating {
    display:flex; align-items:center; gap:2px; padding:4px 16px;
}

.star-btn {
    font-size:16px; color:var(--text-faint); cursor:pointer;
    transition:all var(--duration-fast); background:none; border:none; padding:2px; line-height:1;
}
.star-btn:hover { transform:scale(1.3); }
.star-btn.active { color:var(--gold); text-shadow:0 0 8px rgba(255,215,0,0.4); }
.star-btn.rated { color:var(--gold); }
.star-btn.bounce { animation:starBounce 0.4s ease; }

@keyframes starBounce {
    0% { transform:scale(1); }
    50% { transform:scale(1.4); }
    100% { transform:scale(1); }
}

.rating-text {
    font-size:12px; font-weight:700; color:var(--text-muted); margin-left:6px;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   9. ACTION BUTTONS (Instagram-style bottom bar)
   ═══════════════════════════════════════════════════════════════════════════════ */
.post-actions {
    display:flex; align-items:center; justify-content:space-between;
    padding:6px 16px;
}

.action-btn {
    background:none; border:none; color:var(--text-primary);
    font-size:22px; padding:4px; cursor:pointer;
    transition:all var(--duration-fast); display:flex;
    align-items:center; justify-content:center;
    width:32px; height:32px; position:relative;
}
.action-btn:hover { opacity:0.6; }
.action-btn:active { transform:scale(0.85); }

.action-btn.active, .action-heart.active {
    color:var(--red);
}
.action-heart.active:hover { opacity:0.8; }
.action-heart.bounce { animation:heartBounce 0.4s ease; }

@keyframes heartBounce {
    0% { transform:scale(1); }
    25% { transform:scale(1.3); }
    50% { transform:scale(0.95); }
    100% { transform:scale(1); }
}

.action-bookmark.active { color:var(--gold); }
.action-bookmark.active:hover { opacity:0.8; }


/* ═══════════════════════════════════════════════════════════════════════════════
   10. COMMENTS
   ═══════════════════════════════════════════════════════════════════════════════ */
.comments-preview { padding:0 16px; }
.comments-preview.has-comments,
.comments-section {
    max-height: 320px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-light) transparent;
}
.comments-preview.has-comments::-webkit-scrollbar,
.comments-section::-webkit-scrollbar { width: 5px; }
.comments-preview.has-comments::-webkit-scrollbar-thumb,
.comments-section::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: var(--radius-full);
}

.view-all-comments {
    color:var(--text-dim); font-size:13px; cursor:pointer;
    display:block; margin-bottom:4px; transition:color var(--duration-fast);
}
.view-all-comments:hover { color:var(--text-muted); }

.comments-section { padding:0 16px; }

.comments-title {
    color:var(--text-primary); font-size:16px; font-weight:700;
    padding:12px 0 8px; border-top:1px solid var(--border-color);
}

.comment-item {
    display:flex; gap:8px; padding:6px 0; font-size:13px; line-height:1.4;
}

.comment-avatar {
    width:24px; height:24px; border-radius:var(--radius-full);
    background:var(--bg-elevated); display:flex; align-items:center;
    justify-content:center; font-size:10px; font-weight:700;
    color:var(--neon-green); flex-shrink:0; overflow:hidden;
}

.comment-body { flex:1; min-width:0; }

.comment-nick { font-weight:600; color:var(--text-primary); margin-right:4px; }

.comment-text { color:var(--text-secondary); word-break:break-word; }

.comment-meta { display:flex; gap:16px; margin-top:2px; }
.comment-meta span { font-size:11px; color:var(--text-dim); cursor:pointer; }
.comment-meta span:hover { color:var(--text-muted); }

.comment-time { font-size:11px; color:var(--text-dim); }

.no-comments { color:var(--text-dim); font-size:13px; padding:12px 0; text-align:center; }


/* ── Comment Input ── */
.comment-input {
    display:flex; align-items:center; gap:8px;
    padding:8px 16px; border-top:1px solid var(--border-color); min-height:48px;
    transition:max-height 0.24s ease, opacity 0.2s ease, padding 0.2s ease;
}
.comment-input.is-collapsed {
    max-height:0;
    min-height:0;
    opacity:0;
    overflow:hidden;
    padding-top:0;
    padding-bottom:0;
    border-top:0;
    pointer-events:none;
}
.comment-input.is-active {
    max-height:64px;
    opacity:1;
    pointer-events:auto;
}

.comment-input-field {
    flex:1; background:none; border:none; color:var(--text-primary);
    font-size:14px; padding:6px 0; line-height:1.3;
}
.comment-input-field::placeholder { color:var(--text-dim); }

.comment-send-btn {
    background:none; border:none; color:var(--neon-green);
    font-size:14px; font-weight:700; padding:6px; cursor:pointer;
    opacity:0.4; transition:all var(--duration-fast);
}
.comment-send-btn:hover { opacity:1; }


/* Desktop Comments Drawer */
.desktop-comments-drawer {
    position:fixed; right:0; top:0; width:360px; height:100vh;
    background:var(--bg-surface); border-left:1px solid var(--border-color);
    z-index:var(--z-modal); transform:translateX(100%);
    transition:transform var(--duration-normal); display:flex;
    flex-direction:column; box-shadow:-4px 0 16px rgba(0,0,0,0.3);
}
.desktop-comments-drawer.show { transform:translateX(0); }

.drawer-header {
    display:flex; align-items:center; justify-content:space-between;
    padding:16px; border-bottom:1px solid var(--border-color); flex-shrink:0;
}
.drawer-header h3 {
    color:var(--text-primary); font-size:16px; font-weight:700; margin:0;
}
.drawer-close {
    background:none; border:none; color:var(--text-muted);
    font-size:18px; cursor:pointer; padding:4px;
    transition:color var(--duration-fast);
}
.drawer-close:hover { color:var(--text-primary); }

.drawer-content {
    flex:1; overflow-y:auto; padding:12px 16px;
    scrollbar-width:thin; scrollbar-color:var(--border-light) transparent;
}
.drawer-content::-webkit-scrollbar { width:6px; }
.drawer-content::-webkit-scrollbar-track { background:transparent; }
.drawer-content::-webkit-scrollbar-thumb {
    background:var(--border-light); border-radius:var(--radius-full);
}

.drawer-input {
    display:flex; align-items:center; gap:8px;
    padding:12px 16px; border-top:1px solid var(--border-color); flex-shrink:0;
}
.drawer-comment-input {
    flex:1; background:none; border:none; color:var(--text-primary);
    font-size:14px; padding:6px 0; line-height:1.3;
}
.drawer-comment-input::placeholder { color:var(--text-dim); }

.drawer-comment-send {
    background:none; border:none; color:var(--neon-green);
    font-size:14px; font-weight:700; padding:6px; cursor:pointer;
    opacity:0.4; transition:all var(--duration-fast);
}
.drawer-comment-send:hover { opacity:1; }

@media (max-width:768px) {
    .desktop-comments-drawer { display:none; }
}


/* ═══════════════════════════════════════════════════════════════════════════════
   11. STATUS BADGES
   ═══════════════════════════════════════════════════════════════════════════════ */
.status-badge {
    display:inline-flex; align-items:center; gap:4px;
    padding:3px 10px; border-radius:var(--radius-sm);
    font-size:11px; font-weight:700; letter-spacing:0.5px; text-transform:uppercase;
}

.status-active {
    background:rgba(0,229,163,0.12); color:var(--neon-green);
    border:1px solid rgba(0,229,163,0.3);
    animation:activePulse 2s ease infinite;
}
@keyframes activePulse {
    0%, 100% { opacity:1; }
    50% { opacity:0.7; }
}
.status-pending {
    background:rgba(255,165,2,0.12); color:var(--orange);
    border:1px solid rgba(255,165,2,0.3);
}
.status-won {
    background:rgba(0,229,163,0.12); color:var(--neon-green);
    border:1px solid rgba(0,229,163,0.3);
}
.status-lost {
    background:rgba(255,71,87,0.12); color:var(--red);
    border:1px solid rgba(255,71,87,0.3);
}
.status-partial {
    background:rgba(0,180,216,0.12); color:var(--neon-blue);
    border:1px solid rgba(0,180,216,0.3);
}


/* ═══════════════════════════════════════════════════════════════════════════════
   12. DETAIL PAGE
   ═══════════════════════════════════════════════════════════════════════════════ */
.detail-container {
    max-width:614px; margin:0 auto; padding:16px 16px 80px;
}

.detail-post { border:1px solid var(--border-color); border-radius:var(--radius-lg); margin-bottom:16px; }
.detail-return-btn {
    display:inline-flex; align-items:center; gap:8px;
    margin:0 0 12px; padding:9px 14px;
    border-radius:var(--radius-full); border:1px solid var(--border-light);
    background:rgba(255,255,255,0.04); color:var(--text-primary);
    font-size:13px; font-weight:700; cursor:pointer;
}
.detail-return-btn:hover {
    border-color:rgba(0,229,163,0.4);
    background:rgba(0,229,163,0.08);
}

.detail-stats-row {
    display:flex; justify-content:space-around; padding:12px 16px;
    border-top:1px solid var(--border-color);
}
.detail-stats-row span {
    font-size:12px; color:var(--text-dim); display:flex; align-items:center; gap:4px;
}

/* Related Section */
.related-section {
    padding:0 16px; margin-top:24px;
}
.related-section h3 {
    color:var(--text-primary); font-size:16px; font-weight:700; margin-bottom:12px;
}

.related-grid {
    display:grid; grid-template-columns:repeat(3, 1fr); gap:8px;
}

.related-card {
    background:var(--bg-surface); border-radius:var(--radius-md);
    border:1px solid var(--border-color); padding:12px;
    text-decoration:none; transition:all var(--duration-fast);
    display:flex; flex-direction:column; gap:4px;
}
.related-card:hover { transform:translateY(-2px); box-shadow:var(--shadow-lg); }

.related-odds {
    font-size:20px; font-weight:900; color:var(--neon-green);
}

.related-status { font-size:10px; font-weight:700; letter-spacing:0.5px; }

.related-legs { font-size:11px; color:var(--text-dim); }


/* ═══════════════════════════════════════════════════════════════════════════════
   13. EXPLORE PAGE
   ═══════════════════════════════════════════════════════════════════════════════ */
.explore-container {
    max-width:935px; margin:0 auto; padding:16px 12px 80px;
}

.explore-title {
    color:var(--text-primary); font-size:24px; font-weight:700;
    display:flex; align-items:center; gap:10px; margin-bottom:4px;
}
.explore-title i { color:var(--neon-green); }



.explore-tabs {
    display:flex; gap:4px; border-bottom:1px solid var(--border-color);
    margin-bottom:16px; overflow-x:auto; scrollbar-width:none;
}
.explore-tabs::-webkit-scrollbar { display:none; }

.explore-tab {
    padding:12px 20px; font-size:14px; font-weight:600;
    color:var(--text-muted); background:none; border:none;
    cursor:pointer; white-space:nowrap; position:relative;
    transition:color var(--duration-fast);
}
.explore-tab:hover { color:var(--text-primary); }
.explore-tab.active { color:var(--text-primary); }
.explore-tab.active::after {
    content:''; position:absolute; bottom:-1px; left:0; right:0;
    height:2px; background:var(--text-primary); border-radius:var(--radius-full);
}

.explore-section { /* Container for tab content */ }

.explore-grid {
    display:grid; grid-template-columns:repeat(auto-fill, minmax(280px, 1fr)); gap:12px;
}

.explore-card {
    background:var(--bg-surface); border-radius:var(--radius-lg);
    border:1px solid var(--border-color); padding:16px;
    transition:all var(--duration-normal); cursor:pointer; text-decoration:none;
    display:flex; flex-direction:column; gap:8px; position:relative;
}
.explore-card:hover { transform:translateY(-2px); box-shadow:var(--shadow-lg); border-color:var(--border-light); }

.explore-card-odds {
    font-size:28px; font-weight:900; color:var(--neon-green);
    text-shadow:0 0 20px rgba(0,229,163,0.3);
}

.explore-card-info { display:flex; flex-direction:column; gap:2px; }

.explore-card-tipster {
    color:var(--text-primary); font-size:14px; font-weight:600;
    display:flex; align-items:center; gap:4px;
}

.explore-card-meta { color:var(--text-dim); font-size:12px; }

.explore-card-stats {
    display:flex; gap:12px; font-size:12px; color:var(--text-dim);
}

.explore-card-rating {
    color:var(--text-muted); font-size:12px;
}
.explore-card-rating i { color:var(--gold); }

.hot-badge, .won-badge {
    position:absolute; top:8px; right:8px; padding:3px 8px;
    border-radius:var(--radius-sm); font-size:10px; font-weight:700;
    letter-spacing:0.5px; text-transform:uppercase;
}
.hot-badge {
    background:rgba(255,165,2,0.15); color:var(--orange);
    border:1px solid rgba(255,165,2,0.3);
}
.won-badge {
    background:rgba(0,229,163,0.15); color:var(--neon-green);
    border:1px solid rgba(0,229,163,0.3);
}

.won-card { border-color:rgba(0,229,163,0.2); }
.explore-card.hot { border-color:rgba(255,165,2,0.2); }


/* ═══════════════════════════════════════════════════════════════════════════════
   14. TIPSTARS PAGE
   ═══════════════════════════════════════════════════════════════════════════════ */
.tipstars-container {
    max-width:935px; margin:0 auto; padding:16px 12px 80px;
}




/* ═══════════════════════════════════════════════════════════════════════════════
   15. PROFILE PAGE (Tipstar Detail)
   ═══════════════════════════════════════════════════════════════════════════════ */
.profile-container {
    max-width:935px; margin:0 auto; padding-bottom:80px;
}

.profile-header {
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(var(--accent-rgb), 0.28);
    box-shadow: 0 16px 40px rgba(0,0,0,0.35), 0 0 26px rgba(var(--accent-rgb), 0.18);
    margin: 14px 12px 0;
    padding: 16px 14px 18px;
}

.profile-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}
.profile-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7,12,20,0.36) 0%, rgba(7,12,20,0.78) 62%, rgba(7,12,20,0.92) 100%);
}
.profile-cover img { width:100%; height:100%; object-fit:cover; }

.profile-header > *:not(.profile-cover) {
    position: relative;
    z-index: 1;
}

.profile-avatar-wrap {
    margin-top: 2px;
    display: inline-block;
    position: relative;
}

.profile-avatar {
    width:88px; height:88px; border-radius:var(--radius-full);
    background:linear-gradient(135deg, var(--neon-green), var(--neon-blue));
    color:var(--bg-primary); display:inline-flex; align-items:center;
    justify-content:center; font-weight:900; font-size:36px;
    border:4px solid var(--bg-primary); box-shadow:0 0 30px rgba(0,229,163,0.25);
    overflow:hidden;
}
.profile-avatar img { width:100%; height:100%; border-radius:var(--radius-full); object-fit:cover; }

.profile-verified {
    position:absolute; bottom:2px; right:2px; width:22px; height:22px;
    background:var(--neon-blue); border-radius:var(--radius-full);
    border:2px solid var(--bg-primary); display:flex; align-items:center;
    justify-content:center; color:white; font-size:11px;
}

.profile-info { margin-top:8px; }
.profile-info h1 {
    color:white; font-size:20px; font-weight:700;
    display:flex; align-items:center; justify-content:center; gap:6px;
}

.profile-handle { color:var(--text-dim); font-size:14px; display:block; margin-top:2px; }

.profile-bio {
    color:var(--text-muted); font-size:14px; max-width:400px;
    margin:6px auto 0; line-height:1.5;
}

.profile-actions {
    display:flex; justify-content:center; gap:8px; margin-top:12px;
}

.follow-btn-lg {
    padding:8px 40px; border-radius:var(--radius-sm); font-size:14px; font-weight:700;
    cursor:pointer; transition:all var(--duration-normal); border:none; letter-spacing:0.3px;
    background:var(--neon-green); color:var(--bg-primary);
}
.follow-btn-lg:hover { background:#00cc91; box-shadow:var(--shadow-neon-green); }
.follow-btn-lg.following {
    background:transparent; color:var(--text-muted); border:1px solid var(--border-light);
}
.follow-btn-lg.following:hover { border-color:var(--red); color:var(--red); }



.profile-stats {
    display:flex; justify-content:center; padding:16px 0;
    border-top:1px solid rgba(255,255,255,0.14); margin-top:16px;
}

.profile-stat-item {
    text-align:center; flex:1; cursor:pointer; padding:4px 0;
    transition:opacity var(--duration-fast);
}
.profile-stat-item:hover { opacity:0.7; }
.profile-stat-item strong { display:block; font-size:18px; font-weight:800; color:var(--text-primary); }
.profile-stat-item span { font-size:13px; color:var(--text-muted); }

/* Profile Slips Grid */
.profile-slips-section { padding:0 16px; margin-top:16px; }
.profile-slips-section h2 {
    color:var(--text-primary); font-size:16px; font-weight:700; margin-bottom:12px;
}

.profile-slips-grid {
    display:grid; grid-template-columns:repeat(3, 1fr); gap:8px;
}

.profile-slip-card {
    aspect-ratio:1; background:var(--bg-surface); border-radius:var(--radius-md);
    border:1px solid var(--border-color); position:relative; overflow:hidden;
    cursor:pointer; transition:all var(--duration-fast); text-decoration:none;
    display:flex; flex-direction:column; justify-content:center; align-items:center;
    gap:4px; padding:12px;
}
.profile-slip-card:hover { opacity:0.85; }

.profile-slip-odds {
    font-size:20px; font-weight:900; color:var(--neon-green);
}

.profile-slip-meta { font-size:10px; color:var(--text-dim); }

.profile-slip-stats {
    display:flex; gap:8px; font-size:10px; color:var(--text-dim);
}


/* ═══════════════════════════════════════════════════════════════════════════════
   16. BOOKMARKS PAGE
   ═══════════════════════════════════════════════════════════════════════════════ */
.bookmarks-container {
    max-width:614px; margin:0 auto; padding:16px 12px 80px;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   17. BOTTOM NAVIGATION
   ═══════════════════════════════════════════════════════════════════════════════ */
.bottom-nav {
    position: fixed;
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(92vw, 380px);
    min-height: 62px;
    padding: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
    background: rgba(5, 17, 24, 0.82);
    backdrop-filter: blur(22px) saturate(170%);
    -webkit-backdrop-filter: blur(22px) saturate(170%);
    border: 1px solid rgba(0, 229, 163, 0.18);
    border-radius: 24px;
    box-shadow: 0 18px 42px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.08);
    z-index: var(--z-navbar);
}

.bottom-nav-item {
    flex: 1 1 0;
    min-width: 0;
    height: 46px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 4px 2px;
    border-radius: 16px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all var(--duration-fast);
}
.bottom-nav-item:hover { color:var(--text-primary); }
.bottom-nav-item.active {
    color: var(--neon-green);
    transform: translateY(-2px) scale(1.12);
    text-shadow: 0 0 16px rgba(0,229,163,0.42);
}
.bottom-nav-item i { font-size:19px; line-height:1; width:22px; text-align:center; }
.bottom-nav-item span {
    max-width: 100%;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   18. MODAL OVERLAY & SHARE SHEET
   ═══════════════════════════════════════════════════════════════════════════════ */
.modal-overlay {
    position:fixed; inset:0; background:rgba(0,0,0,0.6);
    z-index:var(--z-overlay); opacity:0; visibility:hidden;
    transition:all var(--duration-normal); display:flex;
    align-items:flex-end; justify-content:center;
}
.modal-overlay.show { opacity:1; visibility:visible; }

.search-modal {
    position:fixed; top:0; left:0; right:0;
    background:var(--bg-surface); padding:16px;
    z-index:var(--z-modal); transform:translateY(-100%);
    transition:transform var(--duration-normal);
}
.modal-overlay.show .search-modal { transform:translateY(0); }

.search-modal-header {
    display:flex; align-items:center; gap:12px;
    background:var(--bg-input); border-radius:var(--radius-md);
    border:1px solid var(--border-light); padding:10px 16px;
}
.search-modal-header i { color:var(--text-dim); }
.search-modal-header input {
    flex:1; background:none; border:none; color:white;
    font-size:15px; outline:none;
}
.search-modal-header input::placeholder { color:var(--text-dim); }
.search-modal-header button {
    background:none; border:none; color:var(--text-muted);
    font-size:16px; cursor:pointer;
}
.search-results {
    max-width: 760px;
    margin: 14px auto 0;
    display: grid;
    gap: 14px;
}
.search-section h4 {
    margin: 0 0 8px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}
.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--border-light);
}
.search-result-avatar,
.search-result-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: rgba(0, 229, 163, 0.1);
    color: var(--neon-green);
    font-weight: 800;
    overflow: hidden;
}
.search-result-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.search-result-main {
    min-width: 0;
    display: grid;
    gap: 3px;
}
.search-result-main strong {
    font-size: 14px;
}
.search-result-main small,
.search-empty {
    color: var(--text-muted);
    font-size: 13px;
}
.search-result-main i {
    color: var(--neon-blue);
}
.post-reaction-bar .post-stats-separator:last-child {
    display: none;
}

/* Share Sheet */
.share-sheet {
    position:fixed; bottom:0; left:0; right:0;
    background:var(--bg-surface); border-radius:24px 24px 0 0;
    padding:8px 0 40px; z-index:var(--z-modal);
    transform:translateY(100%); transition:transform var(--duration-slow);
    max-height:70vh; overflow-y:auto; max-width:500px; margin:0 auto;
}
.modal-overlay.show .share-sheet { transform:translateY(0); }

.share-sheet-handle {
    width:40px; height:4px; background:var(--border-light);
    border-radius:var(--radius-full); margin:8px auto 16px;
}

.share-sheet h3 {
    text-align:center; color:var(--text-primary); font-size:16px;
    font-weight:700; margin-bottom:16px; padding:0 16px;
}

.share-options {
    display:flex; justify-content:center; gap:20px; padding:0 16px;
    margin-bottom:20px; flex-wrap:wrap;
}

.share-opt {
    display:flex; flex-direction:column; align-items:center; gap:8px;
    cursor:pointer; transition:transform var(--duration-fast); background:none; border:none;
    color:white;
}
.share-opt:hover { transform:scale(1.08); }
.share-opt i {
    width:56px; height:56px; border-radius:var(--radius-full);
    display:flex; align-items:center; justify-content:center;
    font-size:24px; transition:box-shadow var(--duration-fast);
}
.share-opt span { font-size:11px; color:var(--text-muted); font-weight:500; }

.share-opt.whatsapp i { background:#25D366; color:white; }
.share-opt.twitter i { background:#1DA1F2; color:white; }
.share-opt.telegram i { background:#0088CC; color:white; }
.share-opt.copy i { background:var(--bg-elevated); color:var(--text-primary); border:1px solid var(--border-light); }


/* ═══════════════════════════════════════════════════════════════════════════════
   19. REACTION PICKER
   ═══════════════════════════════════════════════════════════════════════════════ */
.reaction-picker {
    position:fixed; background:var(--bg-elevated);
    border:1px solid var(--border-light); border-radius:var(--radius-xl);
    padding:6px 8px; display:flex; gap:2px;
    box-shadow:var(--shadow-float); z-index:var(--z-popover);
    opacity:0; visibility:hidden; pointer-events:none;
    transition:all var(--duration-normal);
}
.reaction-picker.show {
    opacity:1; visibility:visible; pointer-events:auto;
    animation:reactionPickerIn var(--duration-normal) ease;
}

@keyframes reactionPickerIn {
    from { opacity:0; transform:scale(0.6) translateY(8px); }
    to { opacity:1; transform:scale(1) translateY(0); }
}

.reaction-opt {
    width:42px; height:42px; display:flex; align-items:center;
    justify-content:center; font-size:24px; border-radius:var(--radius-full);
    cursor:pointer; transition:all var(--duration-fast); background:none; border:none;
}
.reaction-opt:hover { background:rgba(255,255,255,0.1); transform:scale(1.25) translateY(-4px); }
.reaction-opt:active { transform:scale(0.9); }


/* ═══════════════════════════════════════════════════════════════════════════════
   20. DOUBLE-TAP HEART
   ═══════════════════════════════════════════════════════════════════════════════ */
.double-tap-heart {
    position:fixed; z-index:var(--z-popover);
    font-size:80px; color:white; pointer-events:none;
    opacity:0; transform:scale(0);
    transition:all 0.3s ease;
}
.double-tap-heart.show {
    opacity:1; transform:scale(1);
    animation:doubleTapHeart 0.8s ease forwards;
}

@keyframes doubleTapHeart {
    0% { opacity:0; transform:scale(0); }
    15% { opacity:1; transform:scale(1.2); }
    30% { transform:scale(0.95); }
    45% { transform:scale(1.05); }
    80% { opacity:1; transform:scale(1); }
    100% { opacity:0; transform:scale(1) translateY(-20px); }
}


/* ═══════════════════════════════════════════════════════════════════════════════
   21. TOAST NOTIFICATIONS
   ═══════════════════════════════════════════════════════════════════════════════ */
.toast-container {
    position:fixed; top:72px; left:50%; transform:translateX(-50%);
    z-index:var(--z-toast); display:flex; flex-direction:column;
    align-items:center; gap:8px; pointer-events:none;
}

.toast {
    background:var(--bg-elevated); color:var(--text-primary);
    padding:12px 20px; border-radius:var(--radius-md); font-size:14px; font-weight:500;
    box-shadow:var(--shadow-float); border:1px solid var(--border-light);
    animation:toastIn var(--duration-normal) ease both; pointer-events:auto;
    max-width:90vw; backdrop-filter:blur(20px);
    opacity:0; transform:translateY(-16px) scale(0.9);
}
.toast.show { opacity:1; transform:translateY(0) scale(1); }

.toast-success, .toast.toast-success { border-color:rgba(0,229,163,0.3); }
.toast-error, .toast.toast-error { border-color:rgba(255,71,87,0.3); }
.toast-info, .toast.toast-info { border-color:rgba(0,180,216,0.3); }

@keyframes toastIn {
    from { opacity:0; transform:translateY(-16px) scale(0.9); }
    to { opacity:1; transform:translateY(0) scale(1); }
}


/* ═══════════════════════════════════════════════════════════════════════════════
   22. INFINITE SCROLL LOADER
   ═══════════════════════════════════════════════════════════════════════════════ */
.infinite-loader {
    display:flex; justify-content:center; padding:32px 0;
}

.loading-spinner {
    display:flex; gap:6px; align-items:center;
}

.spinner-dot {
    width:8px; height:8px; border-radius:var(--radius-full);
    background:var(--neon-green); animation:spinnerPulse 1.2s ease-in-out infinite;
}
.spinner-dot:nth-child(2) { animation-delay:0.2s; }
.spinner-dot:nth-child(3) { animation-delay:0.4s; }

@keyframes spinnerPulse {
    0%, 100% { opacity:0.3; transform:scale(0.8); }
    50% { opacity:1; transform:scale(1.2); }
}


/* ═══════════════════════════════════════════════════════════════════════════════
   23. EMPTY STATES
   ═══════════════════════════════════════════════════════════════════════════════ */
.empty-state {
    text-align:center; padding:80px 20px; color:var(--text-dim);
    animation:fadeIn var(--duration-slow);
}
.empty-state i { font-size:48px; margin-bottom:16px; display:block; opacity:0.4; }
.empty-state h3 { color:var(--text-muted); font-size:18px; font-weight:600; margin-bottom:6px; }
.empty-state p { font-size:14px; max-width:300px; margin:0 auto; }

@keyframes fadeIn {
    from { opacity:0; } to { opacity:1; }
}


/* ═══════════════════════════════════════════════════════════════════════════════
   24. PAGINATION
   ═══════════════════════════════════════════════════════════════════════════════ */
.pagination {
    display:flex; justify-content:center; align-items:center;
    gap:20px; padding:32px 0;
}

.page-btn {
    padding:8px 20px; border-radius:var(--radius-md);
    background:var(--bg-surface); color:var(--neon-green);
    font-weight:600; font-size:14px; border:1px solid var(--border-light);
    transition:all var(--duration-fast); display:flex;
    align-items:center; gap:6px; text-decoration:none;
}
.page-btn:hover { background:var(--neon-green); color:var(--bg-primary); border-color:var(--neon-green); }

.page-info { color:var(--text-muted); font-size:14px; }


/* ═══════════════════════════════════════════════════════════════════════════════
   25. MISC ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════════ */
@keyframes fadeUp {
    from { opacity:0; transform:translateY(12px); }
    to { opacity:1; transform:translateY(0); }
}

@keyframes slideDown {
    from { opacity:0; transform:translateY(-8px); }
    to { opacity:1; transform:translateY(0); }
}


/* ═══════════════════════════════════════════════════════════════════════════════
   26. RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .nav-center { display:none; }
    .bottom-nav { display:flex; }
    .feed-container { max-width:100%; padding:0 12px 40px; }
    .detail-container { max-width:100%; padding:16px 12px 80px; }
    .bookmarks-container { max-width:100%; padding:16px 12px 80px; }
    .explore-container { max-width:100%; padding:16px 12px 80px; }
    .tipstars-container { max-width:100%; padding:16px 12px 80px; }
    .profile-container { max-width:100%; }
    .explore-grid { grid-template-columns:repeat(2, 1fr); }

    .related-grid { grid-template-columns:repeat(2, 1fr); }
}

@media (min-width: 769px) {
    .bottom-nav { display:none; }
    .feed-container { max-width:750px; margin:0 auto; padding:0 16px 80px; }
    body.has-desktop-global-nav {
        padding-top: 64px;
    }
    .desktop-global-nav {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 980;
        background: rgba(8, 13, 21, 0.95);
        border-bottom: 1px solid var(--border-color);
        backdrop-filter: blur(16px) saturate(170%);
        -webkit-backdrop-filter: blur(16px) saturate(170%);
    }
}

@media (max-width: 480px) {
    .feed-container { padding:0 10px 80px; }
    .detail-container { padding:12px 10px 80px; }
    .bookmarks-container { padding:12px 10px 80px; }
    .explore-container { padding:12px 10px 80px; }
    .tipstars-container { padding:12px 10px 80px; }
    .explore-grid { grid-template-columns:1fr; }
    .profile-slips-grid { grid-template-columns:repeat(2, 1fr); }
    .odds-value { font-size:36px; }
    .post-card { margin:0 0 6px 0; border-radius:var(--radius-md); }
}


/* ═══════════════════════════════════════════════════════════════════════════════
   27. LIGHT THEME
   ═══════════════════════════════════════════════════════════════════════════════ */
[data-theme="light"] {
    --bg-primary: #F8F9FA;
    --bg-surface: #FFFFFF;
    --bg-elevated: #F0F2F5;
    --bg-input: #E4E6EB;
    --bg-hover: #D8DADF;
    --bg-press: #CED0D4;
    --border-color: #DBDFE4;
    --border-light: #E4E6EB;
    --border-focus: #B0B5BD;
    --text-primary: #1C1E21;
    --text-secondary: #4A4B4D;
    --text-muted: #65676B;
    --text-dim: #8A8D91;
    --text-faint: #B0B3B8;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.15);
    --shadow-float: 0 12px 36px rgba(0,0,0,0.1);
    --shadow-neon-green: 0 0 20px rgba(0,229,163,0.15);
    --shadow-neon-blue: 0 0 20px rgba(0,180,216,0.15);
}

[data-theme="light"] .navbar {
    background: rgba(248,249,250,0.92);
}

[data-theme="light"] .stories-bar {
    background: var(--bg-primary);
}

[data-theme="light"] .bottom-nav {
    background: rgba(248,249,250,0.95);
}

[data-theme="light"] .post-card {
    background: var(--bg-surface);
    box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.08), 0 2px 8px rgba(0,0,0,0.06);
}
[data-theme="light"] .post-card:hover {
    background: rgba(0,0,0,0.01);
}

[data-theme="light"] .post-avatar {
    box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.15);
}

[data-theme="light"] .post-odds-section {
    background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.04), transparent);
}

[data-theme="light"] .odds-value {
    text-shadow: none;
}

[data-theme="light"] .logo-text {
    background: linear-gradient(135deg, var(--text-primary), var(--neon-green));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

[data-theme="light"] .explore-card-odds {
    text-shadow: none;
}

[data-theme="light"] .post-username {
    color: var(--text-primary);
}

[data-theme="light"] .leg-selection {
    color: var(--text-primary);
}

[data-theme="light"] .comment-nick {
    color: var(--text-primary);
}

[data-theme="light"] .share-opt {
    color: var(--text-primary);
}

[data-theme="light"] .search-modal-header input {
    color: var(--text-primary);
}

[data-theme="light"] .nav-link:hover {
    background: rgba(0,0,0,0.04);
}

[data-theme="light"] .nav-link.active {
    background: rgba(0,229,163,0.08);
}

[data-theme="light"] .nav-icon-btn:hover {
    background: rgba(0,229,163,0.08);
}

[data-theme="light"] .story-avatar-wrap {
    border-color: var(--bg-primary);
}

[data-theme="light"] .leg-row:hover {
    background: rgba(0,0,0,0.02);
}

[data-theme="light"] .leg-row {
    border-bottom-color: rgba(0,0,0,0.06);
}

[data-theme="light"] .modal-overlay {
    background: rgba(0,0,0,0.4);
}

[data-theme="light"] .toast {
    background: var(--bg-surface);
    color: var(--text-primary);
}

[data-theme="light"] .profile-avatar {
    border-color: var(--bg-primary);
}

[data-theme="light"] .profile-verified {
    border-color: var(--bg-primary);
}



[data-theme="light"] .comment-input-field {
    color: var(--text-primary);
}

[data-theme="light"] .reaction-picker {
    background: var(--bg-surface);
}

[data-theme="light"] .share-sheet {
    background: var(--bg-surface);
}

[data-theme="light"] .search-modal {
    background: var(--bg-surface);
}

[data-theme="light"] .star-btn.active {
    text-shadow: none;
}




/* ═══════════════════════════════════════════════════════════════════════════════
   THEME TOGGLE
   ═══════════════════════════════════════════════════════════════════════════════ */
.theme-toggle {
    transition: all var(--duration-fast);
}
.theme-toggle:hover {
    transform: rotate(20deg);
}


/* ═══════════════════════════════════════════════════════════════════════════════
   REELS PANEL - Won Bets Carousel
   ═══════════════════════════════════════════════════════════════════════════════ */
.reels-panel {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
}
.reels-header {
    padding: 0 16px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.reels-header h3 {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.reels-header h3 i { color: var(--gold); }
.reels-timer-hint {
    font-size: 11px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 4px;
}
.reels-timer-hint i {
    font-size: 12px;
    color: var(--orange);
}
.reels-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0 16px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
}
.reels-scroll::-webkit-scrollbar { display: none; }

/* ── Reel Card Wrapper (multi-post support) ── */
.reel-card-wrapper {
    flex-shrink: 0;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ── Reel Mini Slips (horizontal row below reel card) ── */
.reel-slips-mini {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0 2px;
}
.reel-slips-mini::-webkit-scrollbar { display: none; }

.reel-slip-mini {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    text-decoration: none;
    transition: all var(--duration-fast);
    cursor: pointer;
}
.reel-slip-mini:hover {
    border-color: rgba(var(--accent-rgb), 0.5);
    background: rgba(var(--accent-rgb), 0.06);
}

.reel-slip-mini-odds {
    font-size: 12px;
    font-weight: 800;
    color: var(--accent-hex);
    line-height: 1;
}

.reel-slip-mini-label {
    font-size: 9px;
    color: var(--text-dim);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.reel-slip-mini.single {
    background: rgba(var(--accent-rgb), 0.08);
    border-color: rgba(var(--accent-rgb), 0.3);
    flex-direction: row;
    gap: 4px;
    padding: 4px 10px;
}
.reel-slip-mini.single .reel-slip-mini-odds {
    font-size: 12px;
}
.reel-slip-mini.single .reel-slip-mini-label {
    font-size: 9px;
}




/* ═══════════════════════════════════════════════════════════════════════════════
   TIPSTER PROFILE VARIATIONS (Accent System via CSS Custom Properties)
   ═══════════════════════════════════════════════════════════════════════════════ */



/* Pro tipster gets a special glow effect */
.post-card.pro-post {
    background: linear-gradient(180deg, rgba(255,215,0,0.03), var(--bg-surface));
    box-shadow: inset 0 1px 0 rgba(255,215,0,0.1), 0 0 20px rgba(var(--accent-rgb), 0.2), 0 4px 16px rgba(0,0,0,0.3);
}
.post-card.pro-post .post-header {
    background: linear-gradient(90deg, rgba(255,215,0,0.03), transparent);
}

/* Verified tipster gets subtle badge glow */
.post-card.verified-post .verified-badge {
    filter: drop-shadow(0 0 4px rgba(0,180,216,0.5));
}




/* ═══════════════════════════════════════════════════════════════════════════════
   LOGIN PAGE
   ═══════════════════════════════════════════════════════════════════════════════ */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--bg-primary);
}
.login-card {
    width: 100%;
    max-width: 400px;
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    padding: 40px 32px;
    box-shadow: var(--shadow-xl);
}
.login-logo {
    text-align: center;
    margin-bottom: 32px;
}
.login-logo .logo-icon.large {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    margin: 0 auto 12px;
    font-size: 26px;
}
.login-logo h1 {
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--text-primary), var(--neon-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.login-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 4px;
}
.login-form .form-group {
    margin-bottom: 16px;
}
.login-form .form-group label {
    display: block;
    color: var(--neon-green);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.login-form .form-group label i {
    margin-right: 6px;
}
.login-form .form-group input {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}
.login-form .form-group input:focus {
    border-color: var(--neon-green);
}
.login-form .form-group input::placeholder {
    color: var(--text-dim);
}
.login-btn {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-md);
    background: var(--neon-green);
    color: var(--bg-primary);
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}
.login-btn:hover {
    opacity: 0.9;
    box-shadow: var(--shadow-neon-green);
}
.login-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
    color: var(--text-dim);
    font-size: 12px;
}
.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}
.login-btn-google {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--border-light);
    cursor: not-allowed;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
    opacity: 0.7;
    position: relative;
}
.coming-soon-badge {
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(0,229,163,0.15);
    color: var(--neon-green);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.login-footer {
    text-align: center;
    margin-top: 24px;
}
.login-footer a {
    color: var(--text-muted);
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}
.login-footer a:hover {
    color: var(--neon-green);
    opacity: 1;
}
.alert {
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 13px;
    margin-bottom: 16px;
    font-weight: 500;
}
.alert-error {
    background: rgba(255,71,87,0.12);
    color: var(--red);
    border: 1px solid rgba(255,71,87,0.3);
}
.alert-success {
    background: rgba(0,229,163,0.12);
    color: var(--neon-green);
    border: 1px solid rgba(0,229,163,0.3);
}


/* ═══════════════════════════════════════════════════════════════════════════════
   28. LOGO ICON IMAGE (PX Logo)
   ═══════════════════════════════════════════════════════════════════════════════ */
.logo-icon-img {
    width:36px; height:36px; border-radius:8px; flex-shrink:0;
    object-fit:cover;
    box-shadow:0 2px 8px rgba(0,229,163,0.3);
}

.nav-back-btn {
    display:flex; align-items:center; justify-content:center;
    width:38px; height:38px; border-radius:var(--radius-md);
    color:var(--text-primary); text-decoration:none;
    transition:all var(--duration-fast);
}
.nav-back-btn:hover { background:rgba(255,255,255,0.05); }


/* ═══════════════════════════════════════════════════════════════════════════════
   29. ACTIVE LEG ROW
   ═══════════════════════════════════════════════════════════════════════════════ */
.leg-row.active-leg {
    border-left:3px solid var(--neon-green); padding-left:5px;
    background:rgba(0,229,163,0.03);
}
.leg-row.active-leg .leg-selection { color:var(--neon-green); }


/* ═══════════════════════════════════════════════════════════════════════════════
   30. SHARE LINK BOX
   ═══════════════════════════════════════════════════════════════════════════════ */
.share-link-preview {
    padding:0 16px 12px;
}
.share-link-box {
    display:flex; align-items:center; gap:8px;
    background:var(--bg-input); border-radius:var(--radius-md);
    border:1px solid var(--border-light); padding:4px 4px 4px 12px;
}
.share-link-box input {
    flex:1; background:none; border:none; color:var(--neon-green);
    font-size:13px; font-family:var(--font-mono); outline:none;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.copy-link-btn {
    padding:8px 14px; border-radius:var(--radius-sm);
    background:var(--neon-green); color:var(--bg-primary);
    font-size:12px; font-weight:700; cursor:pointer;
    transition:all var(--duration-fast); border:none;
    display:flex; align-items:center; gap:4px;
}
.copy-link-btn:hover { background:#00cc91; }


/* ═══════════════════════════════════════════════════════════════════════════════
   31. TIPSTARS SEARCH BAR
   ═══════════════════════════════════════════════════════════════════════════════ */
.tipstars-search {
    display:flex; align-items:center; gap:12px;
    background:var(--bg-input); border-radius:var(--radius-md);
    border:1px solid var(--border-light); padding:10px 16px;
    margin-bottom:16px;
}
.tipstars-search i { color:var(--text-dim); font-size:14px; }
.tipstars-search input {
    flex:1; background:none; border:none; color:var(--text-primary);
    font-size:14px; outline:none;
}
.tipstars-search input::placeholder { color:var(--text-dim); }


/* ═══════════════════════════════════════════════════════════════════════════════
   32. TRENDING TIPSTERS BANNER
   ═══════════════════════════════════════════════════════════════════════════════ */
.tipstars-trending-banner {
    display:flex; align-items:center; gap:12px;
    background:linear-gradient(135deg, #C8E64C, #4CAF50);
    border-radius:var(--radius-lg); padding:8px 12px;
    margin-bottom:0; margin-top:0; cursor:pointer;
    transition:transform var(--duration-fast);
    text-decoration:none;
    max-width:935px;
    margin-left:auto;
    margin-right:auto;
}
.tipstars-trending-banner:hover { transform:scale(1.01); }

.trending-avatars {
    display:flex; gap:-4px;
}
.trending-avatar-ring {
    width:32px; height:32px; border-radius:var(--radius-full);
    border:2px solid rgba(255,255,255,0.3); overflow:hidden;
    background:var(--bg-elevated); display:flex; align-items:center;
    justify-content:center; font-size:12px; font-weight:700;
    color:var(--neon-green); margin-left:-6px; flex-shrink:0;
    box-shadow:0 0 8px rgba(0,0,0,0.2);
}
.trending-avatar-ring:first-child { margin-left:0; }
.trending-avatar-ring img { width:100%; height:100%; object-fit:cover; border-radius:var(--radius-full); }
.trending-avatar-ring.more-ring {
    background:rgba(255,255,255,0.2); color:white; font-size:10px;
}

.trending-info {
    flex:1; display:flex; flex-direction:column;
}
.trending-info strong { color:white; font-size:14px; font-weight:700; }
.trending-info span { color:rgba(255,255,255,0.8); font-size:12px; }

.trending-arrow { color:white; font-size:16px; opacity:0.7; }


/* ═══════════════════════════════════════════════════════════════════════════════
   33. TIPSTARS SECTIONS & MINI CARDS (Reference Image 3 style)
   ═══════════════════════════════════════════════════════════════════════════════ */
.tipstars-section {
    margin-bottom:24px;
}
.tipstars-section-title {
    color:var(--text-primary); font-size:18px; font-weight:700;
    margin-bottom:12px; display:flex; align-items:center; gap:8px;
}

.tipstars-flex-row {
    display:flex; gap:12px; overflow-x:auto; scrollbar-width:none;
    padding-bottom:4px; -webkit-overflow-scrolling:touch;
    scroll-snap-type:x proximity;
}
.tipstars-flex-row::-webkit-scrollbar { display:none; }

.tipstars-grid-row {
    flex-wrap:wrap;
}

.tipstars-all-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
}
.tipstars-all-row::-webkit-scrollbar { display: none; }
.tipstars-all-row .tipstar-mini-card {
    flex-shrink: 0;
}

.tipstar-mini-card {
    flex-shrink:0; width:140px; background:var(--bg-surface);
    border-radius:var(--radius-lg); overflow:hidden; position:relative;
    text-decoration:none; transition:all var(--duration-normal);
    border:1px solid rgba(var(--accent-rgb), 0.2);
    box-shadow:0 0 16px rgba(var(--accent-rgb), 0.1), 0 4px 12px rgba(0,0,0,0.2);
    scroll-snap-align:start; text-align:center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.tipstar-mini-card:hover {
    transform:translateY(-2px);
    box-shadow:0 0 20px rgba(var(--accent-rgb), 0.2), 0 8px 24px rgba(0,0,0,0.3);
    border-color:rgba(var(--accent-rgb), 0.35);
}
.tipstar-mini-card > *:not(.tipstar-mini-cover) {
    position: relative;
    z-index: 2;
}

.tipstars-grid-row .tipstar-mini-card {
    flex-shrink:0;
}

.tipstar-mini-cover {
    position:absolute;
    inset:0;
    height:auto;
    background:linear-gradient(135deg, rgba(var(--accent-rgb), 0.3), rgba(var(--accent-rgb), 0.1));
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
}
.tipstar-mini-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9,14,23,0.16) 0%, rgba(9,14,23,0.74) 62%, rgba(9,14,23,0.94) 100%);
}
.mini-verified {
    position:absolute; top:4px; left:4px; font-size:10px;
    color:var(--neon-blue);
    z-index: 2;
}
.mini-pro {
    position:absolute; top:4px; right:4px; padding:1px 5px;
    border-radius:3px; background:rgba(255,215,0,0.2);
    color:var(--gold); font-size:8px; font-weight:700; letter-spacing:0.3px;
    z-index: 2;
}

.rank-badge {
    position:absolute; bottom:4px; right:4px; padding:2px 6px;
    border-radius:3px; font-size:9px; font-weight:700;
    letter-spacing:0.3px; backdrop-filter:blur(10px);
}
.rank-badge.diamond {
    background:rgba(100, 200, 255, 0.9); color:#fff;
}
.rank-badge.ruby {
    background:rgba(255, 100, 150, 0.9); color:#fff;
}
.rank-badge.tanzanite {
    background:rgba(100, 255, 200, 0.9); color:#000;
}

.tipstar-mini-avatar {
    width:44px; height:44px; border-radius:var(--radius-full);
    margin:12px auto 8px; background:rgba(var(--accent-rgb), 0.15);
    color:var(--accent-hex); display:flex; align-items:center;
    justify-content:center; font-weight:700; font-size:16px;
    border:2px solid rgba(var(--accent-rgb), 0.6);
    overflow:hidden;
    box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.28);
}
.tipstar-mini-avatar img { width:100%; height:100%; object-fit:cover; border-radius:var(--radius-full); }

.tipstar-mini-card h4 {
    color:var(--text-primary); font-size:13px; font-weight:700;
    margin-bottom:2px; padding:0 8px;
}

.tipstar-mini-accuracy {
    color:rgba(255,255,255,0.82); font-size:11px; display:block; margin-bottom:4px;
}

.tipstar-mini-stats {
    display:flex; justify-content:center; gap:8px; font-size:10px;
    color:rgba(255,255,255,0.74); margin-bottom:6px;
}
.tipstar-mini-stats strong { color:#fff; }

.mini-follow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 94px;
    padding: 6px 18px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.35px;
    cursor: pointer;
    transition: transform var(--duration-fast), box-shadow var(--duration-fast), filter var(--duration-fast), border-color var(--duration-fast), color var(--duration-fast), background var(--duration-fast);
    border: 1px solid rgba(255,255,255,0.24);
    margin: 6px 0 12px;
    color: #06111d;
    background: linear-gradient(135deg, #74E3FF, #00B4D8);
    box-shadow: 0 8px 18px rgba(0,180,216,0.34), inset 0 1px 0 rgba(255,255,255,0.46);
    position: relative;
    overflow: hidden;
}
.mini-follow-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(108deg, transparent 0%, rgba(255,255,255,0.32) 45%, transparent 72%);
    transform: translateX(-120%);
    transition: transform 0.45s ease;
}
.tipstar-mini-card:hover .mini-follow-btn::before {
    transform: translateX(120%);
}
.mini-follow-btn:hover {
    transform: translateY(-1px);
    filter: saturate(1.07);
}
.mini-follow-btn:active {
    transform: translateY(0);
}
.mini-follow-btn.following {
    background: rgba(8,14,24,0.6);
    color: #dce6ff;
    border: 1px solid rgba(255,255,255,0.24);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 6px 12px rgba(0,0,0,0.24);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.mini-follow-btn.following:hover {
    border-color: rgba(255,110,110,0.78);
    color: #ffe2e2;
    background: rgba(255,71,87,0.2);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 0 14px rgba(255,71,87,0.24);
}

.tipstars-top-row {
    overflow-x: visible;
    justify-content: flex-start;
}
.top-tier-card {
    position: relative;
    border-width: 1px;
}
.top-tier-badge {
    min-height: 28px;
    width: calc(100% - 14px);
    margin: 8px 7px 0;
    padding: 5px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #071018;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.72px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255,255,255,0.24);
    background: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(255,255,255,0.12));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 7px 16px rgba(0,0,0,0.28);
    text-shadow: 0 1px 0 rgba(255,255,255,0.35);
}
.top-tier-badge i {
    font-size: 10px;
    filter: drop-shadow(0 1px 0 rgba(255,255,255,0.26));
}
.top-tier-diamond {
    border-color: rgba(52,211,255,0.55);
    box-shadow: 0 0 22px rgba(52,211,255,0.18), 0 4px 12px rgba(0,0,0,0.25);
}
.top-tier-diamond .mini-follow-btn {
    background: linear-gradient(135deg, #75ECFF, #00B4D8);
    color: #052130;
    border-color: rgba(156,243,255,0.52);
    box-shadow: 0 10px 18px rgba(0,180,216,0.34), inset 0 1px 0 rgba(255,255,255,0.58);
}
.top-tier-diamond .top-tier-badge {
    color: #052133;
    border-color: rgba(156,243,255,0.56);
    background: linear-gradient(135deg, #A4F4FF, #38D8F3);
}
.top-tier-gold {
    border-color: rgba(255,199,44,0.58);
    box-shadow: 0 0 22px rgba(255,199,44,0.18), 0 4px 12px rgba(0,0,0,0.25);
}
.top-tier-gold .mini-follow-btn {
    background: linear-gradient(135deg, #FFE69A, #FFB021);
    color: #3c2202;
    border-color: rgba(255,226,150,0.52);
    box-shadow: 0 10px 18px rgba(255,176,33,0.3), inset 0 1px 0 rgba(255,255,255,0.58);
}
.top-tier-gold .top-tier-badge {
    color: #3d2504;
    border-color: rgba(255,228,164,0.55);
    background: linear-gradient(135deg, #FFEFB8, #FFC65A);
}
.top-tier-platinum {
    border-color: rgba(210,222,235,0.58);
    box-shadow: 0 0 22px rgba(210,222,235,0.16), 0 4px 12px rgba(0,0,0,0.25);
}
.top-tier-platinum .mini-follow-btn {
    background: linear-gradient(135deg, #F2F6FC, #A5B5CB);
    color: #223248;
    border-color: rgba(223,233,245,0.62);
    box-shadow: 0 10px 18px rgba(149,167,191,0.32), inset 0 1px 0 rgba(255,255,255,0.62);
}
.top-tier-platinum .top-tier-badge {
    color: #243449;
    border-color: rgba(229,238,248,0.6);
    background: linear-gradient(135deg, #FCFDFF, #C5D2E3);
}
.top-tier-card .tipstar-mini-avatar {
    border-color: currentColor;
}

.tipstars-all-row .mini-follow-btn,
.tipstars-all-grid .mini-follow-btn {
    background: linear-gradient(135deg, rgba(var(--accent-rgb),0.98), rgba(var(--accent-rgb),0.72));
    color: #06121d;
    border-color: rgba(255,255,255,0.24);
    box-shadow: 0 9px 16px rgba(var(--accent-rgb),0.34), inset 0 1px 0 rgba(255,255,255,0.45);
}

.tipstars-all-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-height: 460px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-light) transparent;
}
.tipstars-all-grid::-webkit-scrollbar { width: 5px; }
.tipstars-all-grid::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: var(--radius-full);
}
.tipstars-all-grid .tipstar-mini-card {
    width: 100%;
    min-width: 0;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   34. PROFILE PERFORMANCE DOTS (Reference Image 2 style)
   ═══════════════════════════════════════════════════════════════════════════════ */
.profile-performance-section {
    padding:16px; margin-top:8px;
}
.profile-performance-section h3 {
    color:var(--text-primary); font-size:14px; font-weight:700; margin-bottom:10px;
}

.performance-dots {
    display:flex; gap:8px; justify-content:center;
}
.perf-dot {
    width:28px; height:28px; border-radius:var(--radius-full);
    display:flex; align-items:center; justify-content:center;
    font-size:11px; transition:transform var(--duration-fast);
}
.perf-dot:hover { transform:scale(1.15); }
.perf-dot.won {
    background:rgba(0,229,163,0.15); color:var(--neon-green);
    border:1px solid rgba(0,229,163,0.3);
}
.perf-dot.lost {
    background:rgba(255,71,87,0.12); color:var(--text-dim);
    border:1px solid rgba(255,71,87,0.2);
}
.perf-dot.active {
    background:rgba(0,229,163,0.08); color:var(--text-dim);
    border:1px solid var(--border-light);
}


/* ═══════════════════════════════════════════════════════════════════════════════
   35. PROFILE EMPTY STATE (Reference Image 2 style)
   ═══════════════════════════════════════════════════════════════════════════════ */
.profile-empty-slips {
    text-align:center; padding:32px 16px;
    background:var(--bg-surface); border-radius:var(--radius-lg);
    border:1px solid var(--border-color);
}
.profile-empty-slips i {
    font-size:32px; margin-bottom:12px; display:block; opacity:0.5;
}
.profile-empty-slips p {
    color:var(--text-primary); font-size:14px; font-weight:600; margin-bottom:4px;
}
.profile-empty-slips span {
    color:var(--text-dim); font-size:12px; display:block;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   36. RESPONSIVE ADDITIONS
   ═══════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .tipstars-flex-row.tipstars-grid-row {
        display:flex; flex-wrap:nowrap; overflow-x:auto;
    }
    .tipstar-mini-card { width:130px; }
    .profile-slips-grid { grid-template-columns:repeat(2, 1fr); }
    .tipstars-all-row { flex-wrap: nowrap; }
    .tipstars-top-row {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        overflow: visible;
    }
    .tipstars-top-row .tipstar-mini-card,
    .tipstars-all-grid .tipstar-mini-card {
        width: 100%;
    }
    .tipstars-all-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        max-height: 430px;
    }
}
@media (max-width: 480px) {
    .tipstar-mini-card { width:120px; }
    .tipstars-top-row,
    .tipstars-all-grid {
        gap: 8px;
    }
    .tipstars-all-grid {
        max-height: 390px;
    }
    .tipstars-all-grid .tipstar-mini-card,
    .tipstars-top-row .tipstar-mini-card {
        width: 100%;
    }
    .tipstars-all-grid .tipstar-mini-avatar,
    .tipstars-top-row .tipstar-mini-avatar {
        width: 40px;
        height: 40px;
    }
    .tipstars-all-grid .tipstar-mini-stats,
    .tipstars-top-row .tipstar-mini-stats {
        gap: 4px;
        font-size: 9px;
    }
    .tipstars-all-grid .mini-follow-btn,
    .tipstars-top-row .mini-follow-btn {
        padding: 5px 12px;
    }
    .tipstars-trending-banner { padding:10px 12px; }
    .trending-avatar-ring { width:28px; height:28px; }
    .logo-icon-img { width:30px; height:30px; }
}


/* ═══════════════════════════════════════════════════════════════════════════════
   PASUAX LOGO — Styled text brand logo
   ═══════════════════════════════════════════════════════════════════════════════ */
.pasuax-logo {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-weight: 900;
    font-size: 24px;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    user-select: none;
}
.pasuax-logo .pasuax-x {
    background: linear-gradient(135deg, var(--neon-green), var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 28px;
    text-shadow: none;
    position: relative;
}
.nav-logo:hover .pasuax-logo { opacity: 1; }


/* ═══════════════════════════════════════════════════════════════════════════════
   GLOBAL IMAGE FIX — object-fit: cover for all user content images
   ═══════════════════════════════════════════════════════════════════════════════ */
img {
    object-fit: cover;
}
.post-avatar img,
.story-avatar-wrap img,
.profile-avatar img,
.profile-cover img,
.comment-avatar img { object-fit: cover; }


/* ═══════════════════════════════════════════════════════════════════════════════
   HERO POSTER CAROUSEL — Auto-slide with scale animation
   ═══════════════════════════════════════════════════════════════════════════════ */
.hero-carousel {
    position: relative;
    overflow: visible;
    padding: 4px 0 0;
    margin: 0 auto;
    max-width: 935px;
}
.active-bets-strip {
    max-width: 935px;
    margin: 18px auto 0;
    padding: 0 10px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}
.active-bets-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
}
.active-bets-title h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 900;
    line-height: 1.12;
}
.active-bets-title h2 i {
    color: var(--gold);
    text-shadow: 0 0 16px rgba(255,215,0,0.35);
}
.active-bets-title span {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}
.active-bets-view {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--neon-green);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}
.hero-carousel-viewport {
    overflow: hidden;
    width: 100%;
}
.hero-carousel-track {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 20px 10px; /* Alibi kwa ajili ya scaling bila clipping */
    will-change: transform;
}
.hero-card {
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 3px solid rgba(var(--accent-rgb), 0.72);
    background: var(--bg-surface);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 0 30px rgba(var(--accent-rgb), 0.34), 0 8px 32px rgba(0,0,0,0.5);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, opacity 0.3s ease;
    aspect-ratio: 1;
    transform-origin: center;
    width: 125px; /* Base footprint stable kwa Desktop */
    height: 125px;
}

/* Desktop State Logic kutumia Scale kuzuia Layout Shift */
.hero-card-active { 
    transform: scale(1.2); 
    border-width: 4px; 
    border-color: var(--accent-hex); 
    box-shadow: 0 0 0 2px rgba(255,255,255,0.1), 0 0 42px rgba(var(--accent-rgb), 0.55);
    z-index: 2;
}
.hero-card-neighbor { transform: scale(1); z-index: 1; }
.hero-card-small { transform: scale(0.85); opacity: 0.7; z-index: 0; }

.hero-card:hover {
    transform: scale(1.12) !important; /* Subtle, professional focus */
    z-index: 10 !important;
    box-shadow: 0 0 40px rgba(var(--accent-rgb), 0.4), 0 10px 30px rgba(0,0,0,0.5);
}

.hero-card-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
}
.hero-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    opacity: 1;
}
.hero-card-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 1;
    border-radius: 50%;
}
.hero-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    width: 100%;
    height: 100%;
    gap: 4px;
}
.hero-card-rank {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    min-width: 30px;
    height: 30px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 10, 18, 0.72);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    font-weight: 900;
    font-size: 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}
.hero-card-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.hero-card-odds {
    font-size: 18px; /* Balanced size kwa kadi mpya */
    font-weight: 900;
    color: var(--accent-hex);
    text-shadow: 0 0 30px rgba(var(--accent-rgb), 0.6), 0 2px 8px rgba(0,0,0,0.5);
    line-height: 1;
}
.hero-card-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.hero-card-tipstar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.hero-card-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-hex);
    box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.5);
}
.hero-card-avatar-letter {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(var(--accent-rgb), 0.25);
    color: var(--accent-hex);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    border: 2px solid var(--accent-hex);
}
.hero-card-name {
    color: white;
    font-weight: 700;
    font-size: 11px;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hero-card-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.hero-card-bookmaker {
    padding: 1px 6px;
    border-radius: 8px;
    background: rgba(0,180,216,0.18);
    color: var(--neon-blue);
    font-size: 9px;
    font-weight: 600;
}
.hero-card-legs {
    color: rgba(255,255,255,0.5);
    font-size: 9px;
}
.hero-card-status-wrap {
    margin-top: 2px;
}
.hero-active-bet {
    color: #06110e;
    background: linear-gradient(135deg, #00E5A3, #2CF6D3);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 0 16px rgba(0,229,163,0.42);
}
/* Round empty state */
.hero-carousel-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    color: var(--text-dim);
    gap: 6px;
    padding: 16px;
}
.hero-carousel-empty i {
    font-size: 48px;
    color: var(--neon-green);
    opacity: 0.4;
}
.hero-carousel-empty h3 {
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 700;
}
.hero-carousel-empty p {
    color: var(--text-dim);
    font-size: 13px;
}
[data-theme="light"] .hero-card { border-color: rgba(0,0,0,0.15); }
[data-theme="light"] .hero-card-overlay {
    background: transparent;
}
@media (max-width: 768px) {
    .hero-card,
    .hero-card-active,
    .hero-card-neighbor,
    .hero-card-small { width: 86px; height: 86px; }
    .hero-card-active { border-width: 3px; }
    .hero-card-odds { font-size: 16px; }
    .hero-card-name { font-size: 9px; max-width: 60px; }
    .hero-carousel { padding: 2px 0 0; }
    .hero-card-avatar, .hero-card-avatar-letter { width: 20px; height: 20px; font-size: 8px; border-width: 1px; }
    .hero-card-content { padding: 4px; gap: 2px; }
    .hero-card-bookmaker { font-size: 7px; padding: 0px 3px; }
    .hero-card-legs { font-size: 7px; }
    .hero-card-status-wrap .status-badge { font-size: 7px; padding: 0px 3px; }
    .hero-carousel-viewport { min-height: 108px; }
    .hero-carousel-track { gap: 8px; padding: 10px 12px; }
    .hero-card { border-width: 2px; }
}
@media (max-width: 480px) {
    .hero-card,
    .hero-card-active,
    .hero-card-neighbor,
    .hero-card-small { width: 74px; height: 74px; }
    .hero-card-active { border-width: 2px; }
    .hero-card-odds { font-size: 13px; }
    .hero-card-name { font-size: 8px; max-width: 50px; }
    .hero-card-avatar, .hero-card-avatar-letter { width: 16px; height: 16px; font-size: 7px; border-width: 1px; }
    .hero-carousel-viewport { min-height: 94px; }
    .hero-carousel-track { gap: 7px; padding: 10px 12px; }
    .hero-card-content { padding: 3px; gap: 1px; }
    .hero-card-bookmaker { font-size: 6px; padding: 0px 2px; }
    .hero-card-legs { font-size: 6px; }
    .hero-card-status-wrap .status-badge { font-size: 6px; padding: 0px 2px; }
    .hero-card { border-width: 1px; }
    .hero-card-tipstar { gap: 2px; }
    .hero-card-meta { gap: 3px; }
}


/* ═══════════════════════════════════════════════════════════════════════════════
   TRENDING TIPTERS PANEL — Full banner cards, auto-scroll billboard carousel
   ═══════════════════════════════════════════════════════════════════════════════ */
.trending-tipsters-panel {
    background: var(--bg-primary);
    padding: 2px 0 0;
    overflow: hidden;
}
.trending-tipsters-viewport {
    overflow: hidden;
    max-width: 935px;
    margin: 0 auto;
    padding: 0 16px;
}
.trending-tipsters-track {
    display: flex;
    gap: 12px;
    will-change: transform;
    transform: translateZ(0);
}
.trending-tipster-card {
    flex-shrink: 0;
    width: calc((100% - 24px) / 3);
    min-width: 220px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    transition: transform var(--duration-normal), box-shadow var(--duration-normal);
    will-change: transform;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.trending-tipster-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.trending-tipster-banner {
    height: 180px;
    position: relative;
    display: flex;
    align-items: stretch;
    padding: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.trending-tipster-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.55) 40%, rgba(0,0,0,0.12) 75%, rgba(0,0,0,0.02) 100%);
    z-index: 1;
}
.trending-tipster-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 14px 16px;
    width: 100%;
}
.trending-tipster-top-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.trending-tipster-name {
    color: white;
    font-weight: 800;
    font-size: 17px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    letter-spacing: 0.2px;
}
.trending-tipster-verified {
    color: var(--neon-blue);
    font-size: 14px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.trending-tipster-pro {
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    background: rgba(255,215,0,0.25);
    color: var(--gold);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border: 1px solid rgba(255,215,0,0.4);
}
.trending-tipster-stats-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}
.trending-stat {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
}
.trending-stat-value {
    font-size: 18px;
    font-weight: 900;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.trending-stat-label {
    font-size: 9px;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.trending-stat-divider {
    width: 1px;
    height: 28px;
    background: rgba(255,255,255,0.2);
    flex-shrink: 0;
}
.trending-tipster-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.trending-tipster-handle {
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    font-weight: 500;
}
.trending-tipster-cta {
    color: white;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.15);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background var(--duration-fast);
}
.trending-tipster-card:hover .trending-tipster-cta {
    background: rgba(255,255,255,0.25);
}


/* ═══════════════════════════════════════════════════════════════════════════════
   REEL BANNER CARDS — Full banner style (same as trending tipsters)
   ═══════════════════════════════════════════════════════════════════════════════ */
.reel-banner-card {
    display: block;
    text-decoration: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--duration-normal), box-shadow var(--duration-normal);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.reel-banner-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.reel-banner-bg {
    height: 160px;
    position: relative;
    display: flex;
    align-items: stretch;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.reel-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.55) 40%, rgba(0,0,0,0.12) 75%, rgba(0,0,0,0.02) 100%);
    z-index: 1;
}
.reel-banner-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px 14px;
    width: 100%;
}
.reel-banner-top {
    display: flex;
    align-items: center;
    gap: 6px;
}
.reel-banner-name {
    color: white;
    font-weight: 800;
    font-size: 14px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.reel-banner-verified {
    color: var(--neon-blue);
    font-size: 12px;
}
.reel-banner-status {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: rgba(0,229,163,0.2);
    color: var(--neon-green);
    border: 1px solid rgba(0,229,163,0.3);
}
.reel-banner-odds {
    font-size: 32px;
    font-weight: 900;
    color: white;
    text-shadow: 0 0 30px rgba(255,255,255,0.3), 0 4px 16px rgba(0,0,0,0.5);
    line-height: 1;
    text-align: center;
    letter-spacing: -1px;
}
.reel-banner-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.reel-banner-meta {
    color: rgba(255,255,255,0.65);
    font-size: 12px;
    font-weight: 600;
}
.reel-banner-cta {
    color: white;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.15);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background var(--duration-fast);
}
.reel-banner-card:hover .reel-banner-cta {
    background: rgba(255,255,255,0.25);
}


/* ═══════════════════════════════════════════════════════════════════════════════
   STORY/STATUS VIEWER — WhatsApp-style full-screen popup
   ═══════════════════════════════════════════════════════════════════════════════ */
.story-viewer {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.story-viewer.show {
    opacity: 1;
    visibility: visible;
}

/* Fix for Desktop: Constrain the story viewer to a mobile-like frame */
@media (min-width: 1024px) {
    .story-viewer {
        background: rgba(0, 0, 0, 0.9);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .story-viewer-progress,
    .story-viewer-header,
    .story-viewer-content {
        width: 420px !important; /* Mimic mobile viewport on desktop */
        margin-left: auto;
        margin-right: auto;
    }
    .story-viewer-content {
        height: calc(100vh - 92px);
        max-height: 760px;
    }
}

/* Progress bars at top */
.story-viewer-progress {
    display: flex;
    gap: 3px;
    padding: 8px 12px 4px;
    z-index: 10;
}
.story-progress-bar {
    flex: 1;
    height: 3px;
    background: rgba(255,255,255,0.25);
    border-radius: var(--radius-full);
    overflow: hidden;
}
.story-progress-fill {
    height: 100%;
    width: 0;
    background: white;
    border-radius: var(--radius-full);
    transition: width 5s linear;
}
.story-progress-fill.complete {
    width: 100% !important;
    transition: none;
}
.story-progress-fill.active {
    width: 0;
}

/* Header */
.story-viewer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    z-index: 10;
}
.story-viewer-user {
    display: flex;
    align-items: center;
    gap: 10px;
}
.story-viewer-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
    overflow: hidden;
}
.story-viewer-user-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.story-viewer-name {
    color: white;
    font-weight: 600;
    font-size: 14px;
}
.story-viewer-time {
    color: rgba(255,255,255,0.6);
    font-size: 12px;
}
.story-viewer-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 30;
}
.story-sound-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(0,0,0,0.36);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    opacity: 0.9;
    transition: opacity var(--duration-fast), background var(--duration-fast), transform var(--duration-fast);
}
.story-sound-toggle:hover {
    opacity: 1;
    background: rgba(255,255,255,0.16);
    transform: translateY(-1px);
}
.story-sound-toggle.hidden {
    display: none;
}
.story-viewer-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    opacity: 0.8;
    transition: opacity var(--duration-fast);
    position: relative;
    z-index: 30;
}
.story-viewer-close:hover { opacity: 1; }

/* Content area */
.story-viewer-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 24px 28px;
    cursor: pointer;
    position: relative;
    background-color: #000;
    overflow: hidden;
}
.story-media-frame {
    width: min(100%, 520px);
    max-width: calc(100vw - 40px);
    aspect-ratio: 9 / 16;
    max-height: min(70vh, 720px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    margin: 0 auto;
    background: #000;
    overflow: hidden;
}
.story-viewer-content img,
.story-viewer-content video {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    border-radius: 12px;
    background: #000;
}
.story-media {
    display: block;
    pointer-events: none;
}
.story-nav-zone {
    position: absolute;
    top: 72px;
    bottom: 0;
    width: 50%;
    border: 0;
    background: transparent;
    cursor: pointer;
    z-index: 4;
}
.story-nav-prev {
    left: 0;
}
.story-nav-next {
    right: 0;
}
.story-caption-overlay {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 28px;
    margin: 0;
    padding: 12px 14px;
    color: white;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0,0,0,0.75);
    background: rgba(0,0,0,0.38);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
    z-index: 5;
}
.story-text-status {
    color: white;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
    max-width: 90%;
    padding: 26px 24px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(0,229,163,0.24), rgba(0,180,216,0.2));
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.story-viewer-text {
    color: white;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    max-width: 80%;
    line-height: 1.4;
    z-index: 2;
}
.story-viewer-bet-slip {
    z-index: 2;
    margin-top: 16px;
}
.story-bet-slip {
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 12px;
    max-width: 100%;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
    z-index: 5;
    pointer-events: none;
}
.story-bet-slip-card {
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    text-align: center;
    min-width: 200px;
}
.story-bet-slip-odds {
    font-size: 32px;
    font-weight: 900;
    color: var(--neon-green);
    text-shadow: 0 0 20px rgba(0,229,163,0.4);
}
.story-bet-slip-bookmaker {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    font-weight: 600;
    margin-top: 4px;
}
.story-bet-slip-code {
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    font-family: var(--font-mono);
    margin-top: 2px;
}
.story-bet-slip-link {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 20px;
    background: var(--neon-green);
    color: var(--bg-primary);
    font-weight: 700;
    font-size: 13px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: opacity var(--duration-fast);
}
.story-bet-slip-link:hover { opacity: 0.85; }


/* ═══════════════════════════════════════════════════════════════════════════════
   LIGHT MODE TEXT WEIGHT IMPROVEMENTS
   (Dark theme untouched — only light mode changes below)
   ═══════════════════════════════════════════════════════════════════════════════ */
[data-theme="light"] .post-username { font-weight: 700; }
[data-theme="light"] .comment-nick { font-weight: 700; }
[data-theme="light"] .leg-selection { font-weight: 700; }
[data-theme="light"] .odds-value { font-weight: 900; }
[data-theme="light"] .post-caption { font-weight: 500; }
[data-theme="light"] .trending-tipster-name { font-weight: 800; }
[data-theme="light"] .trending-stat-value { font-weight: 900; }
[data-theme="light"] .trending-stat-label { font-weight: 700; }
[data-theme="light"] .explore-title { font-weight: 800; }

[data-theme="light"] .profile-info h1 { font-weight: 800; }
[data-theme="light"] .stories-bar { font-weight: 500; }
[data-theme="light"] .story-name { font-weight: 600; }


/* ═══════════════════════════════════════════════════════════════════════════════
   LIGHT MODE — PasuaX logo adjustments
   ═══════════════════════════════════════════════════════════════════════════════ */
[data-theme="light"] .pasuax-logo {
    color: #1a1a2e;
}
[data-theme="light"] .pasuax-logo .pasuax-x {
    background: linear-gradient(135deg, #00B4D8, #00E5A3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}





/* ═══════════════════════════════════════════════════════════════════════════════
   LIGHT MODE — Trending tipsters panel
   ═══════════════════════════════════════════════════════════════════════════════ */
[data-theme="light"] .trending-tipster-banner-overlay {
    background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 40%, rgba(0,0,0,0.1) 75%, rgba(0,0,0,0.01) 100%);
}
[data-theme="light"] .reel-banner-overlay {
    background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 40%, rgba(0,0,0,0.1) 75%, rgba(0,0,0,0.01) 100%);
}


/* ═══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE — Trending tipsters & banner mobile adjustments
   ═══════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .trending-tipsters-viewport { padding: 0 12px; }
    .trending-tipsters-track { gap: 12px; }
    .trending-tipster-card { width: calc((100% - 12px) / 2); min-width: 0; border-radius: var(--radius-lg); }
    .trending-tipster-banner { height: 160px; }
    .trending-tipster-card-content { padding: 12px 14px; }
    .trending-tipster-top-row { gap: 5px; align-items: center; }
    .trending-tipster-name {
        font-size: 14px;
        line-height: 1.15;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .trending-tipster-verified { font-size: 12px; }
    .trending-tipster-stats-row { gap: 4px; }
    .trending-stat { display: none; }
    .trending-stat:nth-child(1),
    .trending-stat:nth-child(3) { display: flex; }
    .trending-stat-divider { display: none; }
    .trending-stat-divider:nth-child(2) { display: block; }
    .trending-stat-value { font-size: 16px; }
    .trending-stat-label { font-size: 8px; letter-spacing: 0.4px; }
    .trending-stat-divider { height: 26px; }
    .trending-tipster-bottom-row { align-items: flex-end; gap: 3px; }
    .trending-tipster-handle {
        font-size: 11px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .trending-tipster-cta { font-size: 10px; padding: 3px 8px; }
    .trending-tipster-pro { font-size: 9px; padding: 2px 6px; }
    .reel-banner-bg { height: 140px; }
    .reel-banner-odds { font-size: 26px; }
    .tipstars-trending-banner { max-width:100%; margin-left:0; margin-right:0; border-radius:0; }

}
@media (max-width: 480px) {
    .trending-tipsters-viewport { padding: 0 10px; }
    .trending-tipster-card { width: calc((100% - 12px) / 2); min-width: 0; }
    .trending-tipster-banner { height: 150px; }
    .trending-tipster-card-content { padding: 10px 12px; }
    .trending-tipster-name { font-size: 13px; }
    .trending-stat-value { font-size: 14px; }
    .trending-stat-label { font-size: 7px; }
    .trending-tipster-pro { font-size: 8px; padding: 2px 5px; }
    .reel-banner-bg { height: 130px; }
    .reel-banner-odds { font-size: 22px; }
    .reel-banner-name { font-size: 12px; }

}


/* ═══════════════════════════════════════════════════════════════════════════════
   DESKTOP DASHBOARD LAYOUT — Sidebar + Header + Main Content
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ── Sidebar ── */
.dash-sidebar {
    display: none;
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: 200px;
    background: rgba(10, 10, 18, 0.97);
    border-right: 1px solid rgba(255,255,255,0.06);
    z-index: 1000;
    flex-direction: column;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.dash-sidebar-logo {
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dash-sidebar-nav {
    flex: 1;
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.dash-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    cursor: pointer;
    background: none;
    border-top: none; border-right: none; border-bottom: none;
    width: 100%;
    text-align: left;
}
.dash-nav-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}
.dash-nav-item:hover {
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.04);
}
.dash-nav-item.active {
    color: #ff3333;
    border-left-color: #ff3333;
    background: rgba(255,51,51,0.06);
}
.dash-sidebar-footer {
    padding: 12px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* ── Header ── */
.dash-header {
    display: none;
    position: fixed;
    top: 0;
    left: 200px;
    right: 0;
    height: 60px;
    background: rgba(10, 10, 18, 0.95);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    z-index: 999;
    align-items: center;
    padding: 0 24px;
    gap: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.dash-header-left {
    flex-shrink: 0;
}
.dash-header-title {
    font-size: 18px;
    font-weight: 800;
    color: white;
    margin: 0;
    letter-spacing: -0.3px;
}
.dash-header-sub {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255,255,255,0.4);
    margin-left: 6px;
}
.dash-header-center {
    flex: 1;
    max-width: 400px;
}
.dash-search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 8px 14px;
    transition: border-color 0.2s;
}
.dash-search-bar:focus-within {
    border-color: rgba(255,255,255,0.2);
}
.dash-search-bar i {
    color: rgba(255,255,255,0.35);
    font-size: 14px;
}
.dash-search-bar input {
    background: none;
    border: none;
    outline: none;
    color: white;
    font-size: 13px;
    width: 100%;
    font-family: inherit;
}
.dash-search-bar input::placeholder {
    color: rgba(255,255,255,0.3);
}
.dash-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.dash-header-icon {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}
.dash-header-icon:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}
.dash-header-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff3333, #ff6644);
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: 14px;
    cursor: pointer;
}

/* ── Main Content Area ── */
.dash-main {
    position: relative;
}

/* ── World Map Background ── */
.world-map-bg {
    display: none;
    position: fixed;
    top: 60px;
    left: 200px;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.15;
}
.world-map-svg {
    width: 100%;
    height: 100%;
}
.wm-continent {
    fill: rgba(255,255,255,0.12);
    stroke: none;
}
.wm-node {
    fill: #00ff88;
    filter: drop-shadow(0 0 4px #00ff88);
    animation: wmPulse 3s ease-in-out infinite;
}
.wm-line {
    stroke: rgba(0,255,136,0.25);
    stroke-width: 0.8;
}
@keyframes wmPulse {
    0%, 100% { opacity: 0.4; r: 3px; }
    50% { opacity: 1; r: 5px; }
}


/* ═══════════════════════════════════════════════════════════════════════════════
   DESKTOP PREMIUM TRENDING TIPTERS STAT CARDS
   ═══════════════════════════════════════════════════════════════════════════════ */
.dash-premium-tipsters {
    display: none;
    padding: 0 16px;
    margin-bottom: 4px;
    max-width: 935px;
    margin-left: auto;
    margin-right: auto;
}
.dash-section-header {
    margin-bottom: 6px;
}
.dash-section-header h2 {
    font-size: 20px;
    font-weight: 800;
    color: white;
    margin: 0 0 4px;
}
.dash-section-header span {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}
.dash-premium-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.dash-premium-card {
    background: rgba(20, 20, 35, 0.9);
    border-radius: 14px;
    padding: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.06);
    position: relative;
    overflow: hidden;
}
.dash-premium-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 14px 14px 0 0;
}
.dash-premium-teal::before { background: linear-gradient(90deg, #00BFA5, #00E5A3); }
.dash-premium-gold::before { background: linear-gradient(90deg, #FFD700, #FFA500); }
.dash-premium-crimson::before { background: linear-gradient(90deg, #FF3333, #DC143C); }

.dash-premium-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255,255,255,0.12);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.dpc-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.dpc-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 800;
}
.dash-premium-teal .dpc-avatar { background: linear-gradient(135deg, #00BFA5, #004D40); color: #00E5A3; }
.dash-premium-gold .dpc-avatar { background: linear-gradient(135deg, #FFD700, #8B6914); color: #fff; }
.dash-premium-crimson .dpc-avatar { background: linear-gradient(135deg, #FF3333, #8B0000); color: #fff; }

.dpc-avatar img {
    width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}
.dpc-avatar-letter { font-size: 18px; font-weight: 800; }
.dpc-identity {
    flex: 1;
    min-width: 0;
}
.dpc-name {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dpc-handle {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}
.dpc-badge-pro {
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255,215,0,0.15);
    color: #FFD700;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    border: 1px solid rgba(255,215,0,0.3);
    flex-shrink: 0;
}
.dpc-badge-verified {
    color: #00B4D8;
    font-size: 16px;
    flex-shrink: 0;
}

.dpc-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    margin-bottom: 12px;
}
.dpc-stat {
    text-align: center;
    padding: 8px 4px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
}
.dpc-stat-value {
    display: block;
    font-size: 18px;
    font-weight: 900;
    color: white;
}
.dash-premium-teal .dpc-stat-value { color: #00E5A3; }
.dash-premium-gold .dpc-stat-value { color: #FFD700; }
.dash-premium-crimson .dpc-stat-value { color: #FF4444; }

.dpc-stat-label {
    display: block;
    font-size: 9px;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Sparkline */
.dpc-sparkline {
    margin-bottom: 12px;
    height: 30px;
    overflow: hidden;
}
.dpc-sparkline svg {
    width: 100%;
    height: 100%;
}
.spark-line-teal {
    fill: none;
    stroke: #00E5A3;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 3px rgba(0,229,163,0.5));
}
.spark-line-gold {
    fill: none;
    stroke: #FFD700;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 3px rgba(255,215,0,0.5));
}
.spark-line-crimson {
    fill: none;
    stroke: #FF4444;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 3px rgba(255,68,68,0.5));
}

.dpc-cta {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}
.dash-premium-card:hover .dpc-cta {
    color: white;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   DESKTOP POST CARD — Clean minimal bet slip with thin red border
   ═══════════════════════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════════════════════════
   DESKTOP DASHBOARD ACTIVATION — Show sidebar/header at >768px
   ═══════════════════════════════════════════════════════════════════════════════ */
@media (min-width: 769px) {
    /* Show sidebar */
    .dash-sidebar {
        display: flex;
    }
    /* Show header */
    .dash-header {
        display: flex;
    }
    /* Show world map */
    .world-map-bg {
        display: block;
    }
    /* Show premium tipster cards */
    .dash-premium-tipsters {
        display: block;
        padding: 0 16px;
        margin-bottom: 4px;
    }
    /* Fix Search Modal positioning to not cover the search bar */
    #searchModal.modal-overlay {
        top: 60px;
        left: 200px;
        align-items: flex-start;
        z-index: 1100; /* Must be higher than dash-sidebar (1000) */
        background: rgba(0, 0, 0, 0.15); /* Subtler overlay for search mode */
    }
    #searchModal .search-modal {
        transform: translateY(0);
        border-top: 1px solid var(--border-color);
        max-width: 400px;
        margin-left: 24px;
    }
    /* Hide mobile navbar */
    .navbar {
        display: none;
    }
    /* Hide mobile billboard carousel on desktop (premium cards replace it) */
    .trending-tipsters-panel {
        display: none;
    }
    /* Adjust main content */
    .dash-main {
        margin-left: 200px;
        margin-top: 60px;
        position: relative;
        z-index: 1;
    }
    /* Feed container adjustments */
    .feed-container {
        max-width: 680px;
        margin: 0 auto;
        padding: 0 24px 80px;
    }
    /* Post card: clean minimal look with thin red border */
    .post-card {
        background: rgba(15, 15, 25, 0.95) !important;
        border: 1px solid rgba(255, 51, 51, 0.2) !important;
        border-radius: 14px !important;
        box-shadow: 0 4px 24px rgba(0,0,0,0.3) !important;
    }
    .post-card:hover {
        border-color: rgba(255, 51, 51, 0.4) !important;
    }
    .post-card .slip-odds {
        color: #FF3333 !important;
    }
    .post-card .slip-leg-odds {
        color: #00E5A3 !important;
    }
    /* Stories bar on desktop */
    .stories-bar {
        max-width: 935px;
        margin: 0 auto;
    }
    /* Hero carousel on desktop */
    .hero-carousel {
        max-width: 935px;
        margin: 0 auto;
    }
    /* Compact trending banner on desktop */
    .tipstars-trending-banner {
        max-width: 935px;
        margin-left: auto;
        margin-right: auto;
    }
    /* Hide bottom nav on desktop */
    .bottom-nav {
        display: none;
    }
    /* Adjust comments drawer for sidebar offset */
    .desktop-comments-drawer.show {
        right: 24px;
    }
}

@media (min-width: 769px) {
    .dash-premium-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    .feed-container {
        max-width: 720px;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════════
   LIGHT MODE — Desktop Dashboard Overrides
   ═══════════════════════════════════════════════════════════════════════════════ */
[data-theme="light"] .dash-sidebar {
    background: rgba(255, 255, 255, 0.97);
    border-right-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .dash-nav-item {
    color: rgba(0,0,0,0.5);
}
[data-theme="light"] .dash-nav-item:hover {
    color: rgba(0,0,0,0.8);
    background: rgba(0,0,0,0.04);
}
[data-theme="light"] .dash-nav-item.active {
    color: #ff3333;
    background: rgba(255,51,51,0.06);
}
[data-theme="light"] .dash-header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .dash-header-title { color: #111; }
[data-theme="light"] .dash-header-sub { color: rgba(0,0,0,0.4); }
[data-theme="light"] .dash-search-bar {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .dash-search-bar i { color: rgba(0,0,0,0.35); }
[data-theme="light"] .dash-search-bar input { color: #111; }
[data-theme="light"] .dash-search-bar input::placeholder { color: rgba(0,0,0,0.3); }
[data-theme="light"] .dash-header-icon {
    background: rgba(0,0,0,0.04);
    color: rgba(0,0,0,0.5);
}
[data-theme="light"] .dash-header-icon:hover { background: rgba(0,0,0,0.08); color: #111; }
[data-theme="light"] .dash-premium-card {
    background: rgba(255,255,255,0.95);
    border-color: rgba(0,0,0,0.06);
}
[data-theme="light"] .dpc-name { color: #111; }
[data-theme="light"] .dpc-handle { color: rgba(0,0,0,0.4); }
[data-theme="light"] .dpc-stat { background: rgba(0,0,0,0.03); }
[data-line="light"] .dpc-stat-value { color: #111 !important; }
[data-theme="light"] .dpc-stat-label { color: rgba(0,0,0,0.4); }
[data-theme="light"] .dpc-cta { color: rgba(0,0,0,0.4); }
[data-theme="light"] .dash-premium-card:hover .dpc-cta { color: #111; }
[data-theme="light"] .wm-continent { fill: rgba(0,0,0,0.06); }
[data-theme="light"] .world-map-bg { opacity: 0.08; }
[data-theme="light"] .post-card {
    background: rgba(255,255,255,0.98) !important;
    border-color: rgba(255, 51, 51, 0.15) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   38. TIPSTARS PODIUM (Top 3 Diamond / Ruby / Tanzanite)
   ═══════════════════════════════════════════════════════════════════════════════ */
.tipstars-podium {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: 16px;
    padding: 0 8px;
}
.tipstar-podium-card {
    flex-shrink: 0;
    width: 130px;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    transition: all var(--duration-normal);
    border: 1px solid var(--border-light);
    text-align: center;
    position: relative;
}
.tipstar-podium-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.tipstar-podium-card.podium-diamond {
    border-color: rgba(100, 200, 255, 0.35);
    box-shadow: 0 0 20px rgba(100, 200, 255, 0.15);
    width: 145px;
}
.tipstar-podium-card.podium-ruby {
    border-color: rgba(255, 100, 150, 0.35);
    box-shadow: 0 0 20px rgba(255, 100, 150, 0.15);
}
.tipstar-podium-card.podium-tanzanite {
    border-color: rgba(100, 255, 200, 0.35);
    box-shadow: 0 0 20px rgba(100, 255, 200, 0.15);
}
.podium-badge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 3px 6px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: center;
    z-index: 2;
}
.podium-diamond .podium-badge {
    background: linear-gradient(90deg, #64C8FF, #00B4D8);
    color: #fff;
}
.podium-ruby .podium-badge {
    background: linear-gradient(90deg, #FF6496, #DC143C);
    color: #fff;
}
.podium-tanzanite .podium-badge {
    background: linear-gradient(90deg, #64FFC8, #00E5A3);
    color: #0A0E17;
}
.tipstar-podium-card .tipstar-mini-cover {
    height: 55px;
    position: relative;
}
.tipstar-podium-card .tipstar-mini-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    margin: -18px auto 6px;
    background: rgba(var(--accent-rgb, 0, 180, 216), 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 17px;
    border: 2px solid;
    overflow: hidden;
}
.tipstar-podium-card .tipstar-mini-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-full);
}
.tipstar-podium-card h4 {
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 2px;
    padding: 0 6px;
}
.tipstar-podium-card .tipstar-mini-accuracy {
    color: var(--text-dim);
    font-size: 10px;
    display: block;
    margin-bottom: 4px;
}
.tipstar-podium-card .tipstar-mini-stats {
    display: flex;
    justify-content: center;
    gap: 6px;
    font-size: 9px;
    color: var(--text-dim);
    margin-bottom: 6px;
    padding: 0 4px;
}
.tipstar-podium-card .tipstar-mini-stats strong {
    color: var(--text-muted);
}
.tipstar-podium-card .mini-follow-btn {
    display: inline-block;
    padding: 4px 16px;
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--duration-fast);
    border: none;
    margin-bottom: 10px;
}

.tipstars-top-rest {
    margin-top: 12px;
}
.tipstars-section-desc {
    color: var(--text-dim);
    font-size: 12px;
    margin-bottom: 12px;
    margin-top: -8px;
}

.rank-badge.rank-4, .rank-badge.rank-5, .rank-badge.rank-6,
.rank-badge.rank-7, .rank-badge.rank-8, .rank-badge.rank-9, .rank-badge.rank-10 {
    background: rgba(100, 200, 255, 0.12);
    color: var(--neon-blue);
    border: 1px solid rgba(100, 200, 255, 0.25);
}

@media (max-width: 768px) {
    .tipstars-podium {
        gap: 8px;
        padding: 0;
    }
    .tipstar-podium-card {
        width: 110px;
    }
    .tipstar-podium-card.podium-diamond {
        width: 120px;
    }
    .tipstar-podium-card .tipstar-mini-avatar {
        width: 40px;
        height: 40px;
        margin: -14px auto 4px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   39. MARKET INTELLIGENCE / LIVE NEWS PANEL (Desktop Right Side)
   ═══════════════════════════════════════════════════════════════════════════════ */
.dash-news-panel {
    display: none;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin: 0 auto 16px;
    max-width: 380px;
}
.dash-news-stick {
    display: none;
}
.dash-news-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(180deg, rgba(0, 180, 216, 0.06), transparent);
}
.dash-news-header h3 {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.dash-news-header h3 i {
    color: var(--neon-blue);
    font-size: 14px;
}
.dash-news-live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    color: var(--neon-green);
    letter-spacing: 0.5px;
}
.dash-news-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.dash-news-close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    background: rgba(255,255,255,0.05);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.dash-news-close:hover {
    color: var(--text-primary);
    border-color: rgba(255, 59, 59, 0.42);
    background: rgba(255, 59, 59, 0.12);
    transform: rotate(90deg);
}
.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--neon-green);
    animation: livePulse 1.5s ease infinite;
}
@keyframes livePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 229, 163, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(0, 229, 163, 0); }
}

.dash-news-feed {
    padding: 8px 0;
}
.dash-news-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    transition: background var(--duration-fast);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.dash-news-item:last-child {
    border-bottom: none;
}
.dash-news-item:hover {
    background: rgba(255, 255, 255, 0.02);
}
.dash-news-thumb {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-elevated);
}
.dash-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dash-news-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.dash-news-headline {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dash-news-snippet {
    color: var(--text-dim);
    font-size: 11px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dash-news-time {
    color: var(--text-faint);
    font-size: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}
.dash-news-time i {
    font-size: 9px;
}

/* Desktop layout: 3-column with news panel on right */
@media (min-width: 1200px) {
    .dash-news-panel {
        display: flex;
        flex-direction: column;
        position: fixed;
        right: 16px;
        top: 80px;
        width: 340px;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        margin: 0;
        z-index: 1;
        transform: translateX(0);
        opacity: 1;
        transition: transform 0.28s ease, opacity 0.22s ease;
    }
    .dash-news-panel.collapsed {
        transform: translateX(calc(100% + 28px));
        opacity: 0;
        pointer-events: none;
    }
    .dash-news-stick {
        display: flex;
        position: fixed;
        right: 14px;
        top: 220px;
        width: 46px;
        height: 204px;
        align-items: center;
        justify-content: center;
        gap: 10px;
        flex-direction: column;
        writing-mode: vertical-rl;
        text-orientation: mixed;
        border: 1px solid rgba(0,229,163,0.24);
        border-radius: 16px;
        background:
            linear-gradient(180deg, rgba(0,180,216,0.28), rgba(0,229,163,0.14)),
            rgba(8, 18, 30, 0.92);
        color: var(--text-primary);
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.5px;
        z-index: 20;
        cursor: pointer;
        box-shadow: 0 18px 42px rgba(0,0,0,0.36), 0 0 28px rgba(0,180,216,0.16);
        transform: translateX(0);
        transition: transform 0.22s ease, opacity 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    }
    .dash-news-stick i {
        color: var(--neon-green);
        font-size: 15px;
        text-shadow: 0 0 12px rgba(0,229,163,0.45);
    }
    .dash-news-stick:hover {
        border-color: rgba(0,229,163,0.46);
        box-shadow: 0 20px 50px rgba(0,0,0,0.42), 0 0 34px rgba(0,229,163,0.22);
        transform: translateX(-3px);
    }
    .dash-news-stick:not(.show) {
        opacity: 0;
        pointer-events: none;
        transform: translateX(calc(100% + 22px));
    }
    .dash-news-panel::-webkit-scrollbar { width: 4px; }
    .dash-news-panel::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: var(--radius-full); }
    
}


/* ── Desktop UI Rescue for Ayabu Bot ────────────────── */
/* ═══════════════════════════════════════════════════════════════════════════════
   40. TRENDING TIPSTERS BANNER - Dark blue / adaptive color
   ═══════════════════════════════════════════════════════════════════════════════ */
.tipstars-trending-banner {
    background: linear-gradient(135deg, #0D1B2A, #1B2838) !important;
    border: 1px solid rgba(0, 180, 216, 0.25) !important;
    box-shadow: 0 0 20px rgba(0, 180, 216, 0.1), 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

/* Desktop: narrower premium tipsters section */
@media (min-width: 769px) {
    .dash-premium-tipsters {
        max-width: 680px !important;
    }
}

/* Light theme adjustments for news panel */
[data-theme="light"] .dash-news-panel {
    background: #fff;
    border-color: #e0e0e0;
}
[data-theme="light"] .dash-news-header {
    background: linear-gradient(180deg, rgba(0, 180, 216, 0.04), transparent);
    border-bottom-color: #e0e0e0;
}
[data-theme="light"] .dash-news-headline {
    color: #111;
}
[data-theme="light"] .dash-news-snippet {
    color: #666;
}
[data-theme="light"] .dash-news-time {
    color: #999;
}
[data-theme="light"] .tipstars-trending-banner {
    background: linear-gradient(135deg, #E3F2FD, #BBDEFB) !important;
    border-color: rgba(0, 180, 216, 0.3) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   41. HOPE AI — Sports Analysis Assistant
   ═══════════════════════════════════════════════════════════════════════════════ */
.hope-ai-section {
    display: none;
    border-top: 1px solid var(--border-color);
    margin-top: 0;
}
.hope-ai-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(180deg, rgba(0, 229, 163, 0.06), transparent);
}
.hope-ai-identity {
    display: flex;
    align-items: center;
    gap: 10px;
}
.hope-ai-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00E5A3, #00B4D8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0A0E17;
    font-size: 16px;
    flex-shrink: 0;
}
.hope-ai-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.hope-ai-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}
.hope-ai-tagline {
    font-size: 11px;
    color: var(--text-dim);
}
.hope-ai-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    color: var(--neon-green);
    letter-spacing: 0.5px;
}
.hope-ai-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}
.hope-ai-toggle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    background: rgba(255,255,255,0.04);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.hope-ai-toggle:hover {
    color: var(--neon-green);
    border-color: rgba(0,229,163,0.35);
}
.hope-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--neon-green);
    animation: livePulse 1.5s ease infinite;
}
.hope-ai-chat {
    display: none;
}
.hope-chat-messages {
    padding: 12px 16px;
    max-height: 280px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-light) transparent;
}
.hope-chat-messages::-webkit-scrollbar { width: 4px; }
.hope-chat-messages::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: var(--radius-full); }

.hope-msg {
    display: flex;
    max-width: 90%;
}
.hope-msg-ai {
    align-self: flex-start;
}
.hope-msg-user {
    align-self: flex-end;
}
.hope-msg-bubble {
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.5;
    word-break: break-word;
}
.hope-msg-ai .hope-msg-bubble {
    background: rgba(0, 229, 163, 0.08);
    border: 1px solid rgba(0, 229, 163, 0.15);
    color: var(--text-secondary);
    border-bottom-left-radius: 4px;
}
.hope-msg-user .hope-msg-bubble {
    background: rgba(0, 180, 216, 0.12);
    border: 1px solid rgba(0, 180, 216, 0.2);
    color: var(--text-primary);
    border-bottom-right-radius: 4px;
}

/* Hope Typing Indicator */
.hope-typing-indicator .hope-msg-bubble {
    display: flex;
    gap: 4px;
    padding: 10px 16px;
}
.hope-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--neon-green);
    animation: hopeDotPulse 1.4s ease-in-out infinite;
}
.hope-dot:nth-child(2) { animation-delay: 0.2s; }
.hope-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes hopeDotPulse {
    0%, 60%, 100% { opacity: 0.3; transform: scale(0.8); }
    30% { opacity: 1; transform: scale(1.2); }
}

.hope-ai-input {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.15);
}
.hope-ai-input input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 12px;
    padding: 6px 0;
    outline: none;
}
.hope-ai-input input::placeholder {
    color: var(--text-dim);
}
.hope-ai-input button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00E5A3, #00B4D8);
    color: #0A0E17;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}
.hope-ai-input button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(0, 229, 163, 0.4);
}

/* ── Mobile Hope Bubble ── */
.hope-mobile-bubble {
    display: none;
    position: fixed;
    bottom: 70px;
    right: 16px;
    width: 64px;
    height: 54px;
    border-radius: 18px;
    border: 1px solid rgba(0,229,163,0.36);
    background:
        radial-gradient(circle at 24% 20%, rgba(255,255,255,0.58), transparent 20%),
        linear-gradient(135deg, #00E5A3, #00B4D8);
    color: #0A0E17;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    z-index: 500;
    box-shadow: 0 12px 32px rgba(0, 229, 163, 0.34), 0 3px 12px rgba(0,0,0,0.28);
    transition: transform 0.2s, box-shadow 0.2s;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}
.hope-desktop-bubble {
    display: none;
    position: fixed;
    right: 28px;
    bottom: 24px;
    width: 74px;
    height: 58px;
    border-radius: 18px;
    border: 1px solid rgba(0,229,163,0.36);
    background:
        radial-gradient(circle at 26% 18%, rgba(255,255,255,0.62), transparent 20%),
        linear-gradient(135deg, #00E5A3 0%, #00B4D8 62%, #7C3AED 100%);
    color: #0A0E17;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 18px 42px rgba(0, 229, 163, 0.34), 0 4px 14px rgba(0,0,0,0.32);
    cursor: pointer;
    z-index: 1200;
    transition: transform 0.2s, box-shadow 0.2s;
}
.hope-bubble-core {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 900;
    letter-spacing: 0;
}
.hope-bubble-core span {
    font-size: 12px;
    line-height: 1;
}
.hope-desktop-bubble:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 22px 52px rgba(0, 229, 163, 0.44), 0 6px 16px rgba(0,0,0,0.34);
}
.hope-mobile-bubble:hover {
    transform: translateY(-2px) scale(1.04);
}
.hope-bubble-pulse {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--neon-green);
    animation: livePulse 1.5s ease infinite;
    border: 2px solid var(--bg-primary);
}

/* ── Mobile Hope Overlay ── */
.hope-mobile-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 1000;
    display: none;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.hope-mobile-overlay.show {
    transform: translateY(0);
}
.hope-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(180deg, rgba(0, 229, 163, 0.06), transparent);
}
.hope-mobile-identity {
    display: flex;
    align-items: center;
    gap: 10px;
}
.hope-mobile-avatar {
    width: 40px;
    height: 40px;
}
.hope-mobile-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}
.hope-mobile-close:hover {
    background: rgba(255, 71, 87, 0.15);
    color: var(--red);
}
.hope-mobile-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.hope-mobile-input {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}
.hope-mobile-input input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 14px;
    padding: 10px 16px;
    outline: none;
    transition: border-color 0.2s;
}
.hope-mobile-input input:focus {
    border-color: rgba(0, 229, 163, 0.4);
}
.hope-mobile-input input::placeholder {
    color: var(--text-dim);
}
.hope-mobile-input button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00E5A3, #00B4D8);
    color: #0A0E17;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}
.hope-mobile-input button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 16px rgba(0, 229, 163, 0.4);
}

/* ── Desktop: Show Hope AI in right panel ── */
@media (min-width: 769px) {
    .hope-ai-section {
        display: flex;
        flex-direction: column;
        border-top: 2px solid var(--border-color);
        position: fixed;
        right: 24px;
        bottom: 24px;
        width: 360px;
        max-height: min(640px, calc(100vh - 110px));
        margin-top: 0;
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
        overflow: hidden;
        z-index: 1201;
    }
    .hope-ai-chat {
        display: block;
    }
    .hope-ai-section.minimized {
        display: none !important;
    }
    .hope-desktop-bubble {
        display: flex;
    }
}

/* ── Mobile: Show Hope bubble ── */
@media (max-width: 768px) {
    .hope-mobile-bubble {
        display: flex;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   42. DESKTOP WON BETS / REELS SECTION
   ═══════════════════════════════════════════════════════════════════════════════ */
.dash-reels-section {
    display: block;
    padding: 0 16px;
    margin-bottom: 4px;
    max-width: 935px;
    margin-left: auto;
    margin-right: auto;
}
.dash-reels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.dash-reel-card {
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
}
.dash-reel-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.dash-reel-card-bg {
    height: 140px;
    position: relative;
    display: flex;
    align-items: stretch;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.dash-reel-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}
.dash-reel-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px 14px;
    width: 100%;
}
.dash-reel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.dash-reel-odds {
    font-size: 22px;
    font-weight: 900;
    color: var(--neon-green);
    text-shadow: 0 0 16px rgba(0, 229, 163, 0.4);
}
.dash-reel-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.dash-reel-tipster {
    display: flex;
    align-items: center;
    gap: 6px;
}
.dash-reel-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.2);
}
.dash-reel-avatar-letter {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(var(--accent-rgb), 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-hex);
}
.dash-reel-name {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
}
.dash-reel-legs {
    font-size: 10px;
    color: rgba(255,255,255,0.4);
    font-weight: 600;
}

/* Show reels section on desktop/tablet, keep mobile feed focused. */
@media (min-width: 769px) {
    .dash-reels-section {
        display: block;
    }
}
@media (max-width: 768px) {
    .dash-reels-section {
        display: none;
    }
}
@media (min-width: 769px) and (max-width: 1199px) {
    .dash-reels-section {
        max-width: 680px !important;
    }
}

/* Light theme for reels */
[data-theme="light"] .dash-reel-card {
    border-color: #e0e0e0;
    background: #fff;
}
[data-theme="light"] .dash-reel-card-bg {
    background-color: #E3F2FD;
}
[data-theme="light"] .dash-reel-name {
    color: #333;
}

/* ── Desktop: Expand news panel width to align with blue line ── */
@media (min-width: 1200px) {
    .dash-news-panel {
        width: 380px !important;
        right: 12px !important;
    }
    .dash-main {
        margin-right: 410px !important;
    }
    .dash-premium-tipsters {
        max-width: 100% !important;
    }
    /* Won Bets / Reels section same width as premium tipsters */
    .dash-reels-section {
        max-width: 100% !important;
    }
}

/* ── Light theme for Ayabu AI ── */
[data-theme="light"] .hope-msg-ai .hope-msg-bubble {
    background: rgba(0, 229, 163, 0.06);
    border-color: rgba(0, 229, 163, 0.15);
    color: #333;
}
[data-theme="light"] .hope-msg-user .hope-msg-bubble {
    background: rgba(0, 180, 216, 0.08);
    border-color: rgba(0, 180, 216, 0.15);
    color: #111;
}
[data-theme="light"] .hope-ai-header {
    background: linear-gradient(180deg, rgba(0, 229, 163, 0.03), transparent);
    border-bottom-color: #e0e0e0;
}
[data-theme="light"] .hope-ai-input {
    background: rgba(0, 0, 0, 0.02);
}
[data-theme="light"] .hope-mobile-overlay {
    background: #fff;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   LOGIN / LOGOUT BUTTONS
   ═══════════════════════════════════════════════════════════════════════════════ */
.dash-header-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all var(--duration-fast);
    text-decoration: none;
    white-space: nowrap;
}
.dash-header-login-btn:not(.dash-header-logout-btn) {
    background: var(--neon-green);
    color: var(--bg-primary);
    border: 1px solid var(--neon-green);
}
.dash-header-login-btn:not(.dash-header-logout-btn):hover {
    background: #00cc91;
    box-shadow: var(--shadow-neon-green);
}
.dash-header-logout-btn {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-light);
}
.dash-header-logout-btn:hover {
    border-color: var(--red);
    color: var(--red);
    background: rgba(255,71,87,0.08);
}

/* Mobile Won Bets Section Fix */
@media (max-width: 1024px) {
    .dash-reels-section {
        display: block !important;
        padding: 4px 12px !important;
        margin: 0 !important;
    }
    .dash-reels-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
}
@media (max-width: 480px) {
    .dash-reels-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Final light-theme corrections. These sit at the end so they beat older desktop overrides. */
[data-theme="light"] body {
    background: var(--bg-primary) !important;
    color: var(--text-secondary) !important;
}
[data-theme="light"] .post-card,
[data-theme="light"] .detail-post {
    background: var(--bg-surface) !important;
    color: var(--text-secondary) !important;
    border-color: rgba(0,0,0,0.08) !important;
    border-left-color: var(--accent-hex) !important;
    box-shadow: 0 2px 14px rgba(0,0,0,0.07) !important;
}
[data-theme="light"] .post-card:hover {
    background: #fff !important;
}
[data-theme="light"] .post-header,
[data-theme="light"] .post-actions,
[data-theme="light"] .post-rating,
[data-theme="light"] .comment-input,
[data-theme="light"] .comments-preview {
    border-color: rgba(0,0,0,0.08) !important;
}
[data-theme="light"] .post-caption,
[data-theme="light"] .post-stat,
[data-theme="light"] .post-handle,
[data-theme="light"] .rating-text,
[data-theme="light"] .view-all-comments {
    color: var(--text-secondary) !important;
}
[data-theme="light"] .action-btn,
[data-theme="light"] .star-btn {
    color: var(--text-muted);
}
[data-theme="light"] .action-heart.active,
[data-theme="light"] .action-btn.active {
    color: var(--red) !important;
}
[data-theme="light"] .star-btn.active,
[data-theme="light"] .star-btn.rated {
    color: var(--gold) !important;
}
[data-theme="light"] .comment-input-field,
[data-theme="light"] input,
[data-theme="light"] textarea,
[data-theme="light"] select {
    color: var(--text-primary) !important;
}
[data-theme="light"] .dash-main,
[data-theme="light"] .feed-container {
    background: transparent !important;
}

/* Broad light-mode rescue for the dashboard/feed pages. */
[data-theme="light"] .dash-layout,
[data-theme="light"] .dash-content,
[data-theme="light"] .main-content,
[data-theme="light"] .page-container,
[data-theme="light"] .detail-container {
    background: var(--bg-primary) !important;
    color: var(--text-secondary) !important;
}
[data-theme="light"] .navbar,
[data-theme="light"] .bottom-nav,
[data-theme="light"] .dash-header,
[data-theme="light"] .dash-sidebar,
[data-theme="light"] .stories-bar,
[data-theme="light"] .hero-carousel,
[data-theme="light"] .reels-panel,
[data-theme="light"] .dash-reels-section,
[data-theme="light"] .dash-news-panel,
[data-theme="light"] .trending-tipsters-panel,
[data-theme="light"] .tipstars-trending-banner,
[data-theme="light"] .dash-premium-card,
[data-theme="light"] .explore-card,
[data-theme="light"] .profile-header,
[data-theme="light"] .comments-section,
[data-theme="light"] .desktop-comments-drawer,
[data-theme="light"] .share-sheet,
[data-theme="light"] .search-modal,
[data-theme="light"] .hope-mobile-overlay,
[data-theme="light"] .hope-ai-widget {
    background: var(--bg-surface) !important;
    color: var(--text-secondary) !important;
    border-color: rgba(0,0,0,0.08) !important;
    box-shadow: 0 2px 14px rgba(0,0,0,0.06) !important;
}
[data-theme="light"] .post-odds-section,
[data-theme="light"] .hero-card,
[data-theme="light"] .dash-reel-card,
[data-theme="light"] .tipstar-podium-card,
[data-theme="light"] .comment-item,
[data-theme="light"] .leg-row,
[data-theme="light"] .comment-input,
[data-theme="light"] .dash-search-bar,
[data-theme="light"] .nav-icon-btn,
[data-theme="light"] .dash-header-icon,
[data-theme="light"] .dash-nav-item,
[data-theme="light"] .bottom-nav-item {
    background-color: var(--bg-elevated) !important;
    color: var(--text-secondary) !important;
    border-color: rgba(0,0,0,0.08) !important;
}
[data-theme="light"] .post-username,
[data-theme="light"] .leg-selection,
[data-theme="light"] .comment-nick,
[data-theme="light"] .dash-header-title,
[data-theme="light"] .dash-news-headline,
[data-theme="light"] .dpc-name,
[data-theme="light"] .explore-title,
[data-theme="light"] .profile-info h1,
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] strong {
    color: var(--text-primary) !important;
}
[data-theme="light"] .post-handle,
[data-theme="light"] .post-caption,
[data-theme="light"] .comment-text,
[data-theme="light"] .dash-header-sub,
[data-theme="light"] .dash-news-snippet,
[data-theme="light"] .dpc-handle,
[data-theme="light"] .story-name,
[data-theme="light"] .nav-link,
[data-theme="light"] .bottom-nav-item span,
[data-theme="light"] p,
[data-theme="light"] span {
    color: inherit;
}
[data-theme="light"] .odds-value,
[data-theme="light"] .slip-odds {
    color: var(--accent-hex) !important;
    text-shadow: none !important;
}
[data-theme="light"] .slip-leg-odds,
[data-theme="light"] .leg-odds {
    color: var(--neon-green) !important;
}
[data-theme="light"] .follow-btn,
[data-theme="light"] .bookmaker-tag,
[data-theme="light"] .bet-code {
    color: var(--bg-primary) !important;
}

[data-theme="light"] .bookmaker-tag {
    color:#031827 !important;
    background:linear-gradient(135deg, #38BDF8, #22C55E) !important;
    border-color:rgba(3,24,39,0.14) !important;
    box-shadow:0 8px 18px rgba(14,165,233,0.20), inset 0 1px 0 rgba(255,255,255,0.65) !important;
}
[data-theme="light"] .bet-code {
    color:#0F172A !important;
    background:#FFFFFF !important;
    border:1px dashed rgba(15,23,42,0.32) !important;
    box-shadow:0 5px 14px rgba(15,23,42,0.08), inset 0 1px 0 rgba(255,255,255,0.8) !important;
}
[data-theme="dark"] .bookmaker-tag,
html:not([data-theme="light"]) .bookmaker-tag {
    color:#06111f !important;
}
[data-theme="dark"] .bet-code,
html:not([data-theme="light"]) .bet-code {
    color:#F8FAFC !important;
}

/* Light mode banner/card readability. */
[data-theme="light"] .hero-card,
[data-theme="light"] .trending-tipster-card,
[data-theme="light"] .reel-banner-card,
[data-theme="light"] .dash-reel-card,
[data-theme="light"] .tipstars-trending-banner {
    border-color: rgba(0,0,0,0.14) !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16) !important;
}
[data-theme="light"] .hero-card-bg {
    opacity: 1 !important;
    filter: saturate(1.16) contrast(1.08) brightness(0.92);
}
[data-theme="light"] .trending-tipster-banner,
[data-theme="light"] .reel-banner-bg,
[data-theme="light"] .dash-reel-card-bg {
    filter: saturate(1.12) contrast(1.06);
}
[data-theme="light"] .hero-card-overlay {
    background: transparent !important;
}
[data-theme="light"] .trending-tipster-banner-overlay,
[data-theme="light"] .reel-banner-overlay,
[data-theme="light"] .dash-reel-card-overlay {
    background:
        linear-gradient(0deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.56) 42%, rgba(0,0,0,0.18) 72%, rgba(0,0,0,0.04) 100%) !important;
}
[data-theme="light"] .hero-card-content,
[data-theme="light"] .trending-tipster-card-content,
[data-theme="light"] .reel-banner-content,
[data-theme="light"] .dash-reel-card-content {
    color: #fff !important;
}
[data-theme="light"] .hero-card-name,
[data-theme="light"] .hero-card-legs,
[data-theme="light"] .trending-tipster-name,
[data-theme="light"] .trending-stat-value,
[data-theme="light"] .trending-stat-label,
[data-theme="light"] .trending-tipster-handle,
[data-theme="light"] .trending-tipster-cta,
[data-theme="light"] .reel-banner-name,
[data-theme="light"] .reel-banner-odds,
[data-theme="light"] .reel-banner-meta,
[data-theme="light"] .reel-banner-cta,
[data-theme="light"] .dash-reel-name,
[data-theme="light"] .dash-reel-legs {
    color: #fff !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.78), 0 0 1px rgba(0,0,0,0.9) !important;
}
[data-theme="light"] .hero-card-odds,
[data-theme="light"] .dash-reel-odds {
    color: #26ffd0 !important;
    text-shadow: 0 2px 12px rgba(0,0,0,0.85), 0 0 18px rgba(0,229,163,0.7) !important;
}
[data-theme="light"] .trending-tipster-cta,
[data-theme="light"] .reel-banner-cta {
    background: rgba(0,0,0,0.38) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
}
[data-theme="light"] .hero-card-bookmaker,
[data-theme="light"] .trending-tipster-pro,
[data-theme="light"] .reel-banner-status,
[data-theme="light"] .dash-reel-card .status-badge {
    color: #fff !important;
    background: rgba(0,0,0,0.46) !important;
    border-color: rgba(255,255,255,0.26) !important;
    text-shadow: 0 1px 6px rgba(0,0,0,0.7) !important;
}
[data-theme="light"] .tipstars-trending-banner {
    background:
        linear-gradient(135deg, rgba(5, 20, 34, 0.9), rgba(0, 180, 216, 0.78)),
        var(--banner-accent) !important;
}
[data-theme="light"] .tipstars-trending-banner .trending-info strong,
[data-theme="light"] .tipstars-trending-banner .trending-info span,
[data-theme="light"] .tipstars-trending-banner .trending-arrow {
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.65) !important;
}
[data-theme="light"] .dash-premium-card {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(241,245,249,0.96)) !important;
    border-color: rgba(15,23,42,0.12) !important;
    box-shadow: 0 8px 24px rgba(15,23,42,0.10) !important;
}
[data-theme="light"] .dpc-name,
[data-theme="light"] .dpc-stat-value {
    color: #0f172a !important;
}
[data-theme="light"] .dpc-handle,
[data-theme="light"] .dpc-stat-label,
[data-theme="light"] .dpc-cta {
    color: #475569 !important;
}
[data-theme="light"] .dpc-stat {
    background: rgba(15,23,42,0.055) !important;
    border: 1px solid rgba(15,23,42,0.06) !important;
}

/* Keep text white on image-backed cards in light mode for contrast. */
[data-theme="light"] .tipstar-mini-card {
    color: #fff !important;
}
[data-theme="light"] .tipstar-mini-card h4,
[data-theme="light"] .tipstar-mini-card .tipstar-mini-accuracy,
[data-theme="light"] .tipstar-mini-card .tipstar-mini-stats,
[data-theme="light"] .tipstar-mini-card .tipstar-mini-stats strong {
    color: #fff !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.78), 0 0 1px rgba(0,0,0,0.9) !important;
}
[data-theme="light"] .profile-header .profile-info h1,
[data-theme="light"] .profile-header .profile-handle,
[data-theme="light"] .profile-header .profile-bio,
[data-theme="light"] .profile-header .profile-stat-item strong,
[data-theme="light"] .profile-header .profile-stat-item span {
    color: #fff !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.78), 0 0 1px rgba(0,0,0,0.9) !important;
}

/* Light theme status badges must keep their semantic colors visible. */
[data-theme="light"] .status-badge,
[data-theme="light"] .related-status,
[data-theme="light"] .hot-badge,
[data-theme="light"] .won-badge {
    text-shadow: none !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.78), 0 4px 10px rgba(15,23,42,0.08) !important;
}
[data-theme="light"] .status-active,
[data-theme="light"] .related-status.status-active,
[data-theme="light"] .dash-reel-card .status-active {
    color: #047857 !important;
    background: #D1FAE5 !important;
    border: 1px solid #34D399 !important;
}
[data-theme="light"] .status-pending,
[data-theme="light"] .related-status.status-pending,
[data-theme="light"] .dash-reel-card .status-pending {
    color: #92400E !important;
    background: #FEF3C7 !important;
    border: 1px solid #F59E0B !important;
}
[data-theme="light"] .status-won,
[data-theme="light"] .related-status.status-won,
[data-theme="light"] .dash-reel-card .status-won,
[data-theme="light"] .won-badge {
    color: #065F46 !important;
    background: #A7F3D0 !important;
    border: 1px solid #10B981 !important;
}
[data-theme="light"] .status-lost,
[data-theme="light"] .related-status.status-lost,
[data-theme="light"] .dash-reel-card .status-lost {
    color: #991B1B !important;
    background: #FEE2E2 !important;
    border: 1px solid #F87171 !important;
}
[data-theme="light"] .status-partial,
[data-theme="light"] .related-status.status-partial,
[data-theme="light"] .dash-reel-card .status-partial {
    color: #075985 !important;
    background: #DBEAFE !important;
    border: 1px solid #38BDF8 !important;
}
[data-theme="light"] .hot-badge {
    color: #9A3412 !important;
    background: #FFEDD5 !important;
    border: 1px solid #FB923C !important;
}
[data-theme="light"] .dash-reel-card .status-badge {
    text-shadow: none !important;
}

/* Mobile navigation: icon-only, no heavy bar treatment. */
@media (max-width: 768px) {
    .navbar {
        box-shadow: none !important;
    }
    .nav-icon-btn {
        background: transparent !important;
        border-color: transparent !important;
        box-shadow: none !important;
    }
    .bottom-nav {
        height: 54px;
        background: transparent !important;
        border-top: 0 !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        pointer-events: none;
    }
    .bottom-nav-item {
        pointer-events: auto;
        width: 44px;
        height: 44px;
        padding: 0;
        margin-bottom: max(6px, env(safe-area-inset-bottom, 0px));
        border-radius: var(--radius-full);
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        color: var(--text-muted);
    }
    .bottom-nav-item span {
        display: none !important;
    }
    .bottom-nav-item i {
        font-size: 22px;
    }
    .bottom-nav-item.active {
        color: var(--neon-green);
    }
    [data-theme="dark"] .bottom-nav-item,
    html:not([data-theme="light"]) .bottom-nav-item {
        background: rgba(10, 14, 23, 0.72) !important;
        border: 1px solid rgba(255,255,255,0.08) !important;
        box-shadow: 0 8px 22px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,255,255,0.04) !important;
        backdrop-filter: blur(14px) saturate(150%) !important;
        -webkit-backdrop-filter: blur(14px) saturate(150%) !important;
        color: rgba(255,255,255,0.78);
    }
    [data-theme="dark"] .bottom-nav-item.active,
    html:not([data-theme="light"]) .bottom-nav-item.active {
        color: var(--neon-green);
        border-color: rgba(0,229,163,0.24) !important;
        box-shadow: 0 8px 22px rgba(0,0,0,0.42), 0 0 14px rgba(0,229,163,0.16) !important;
    }
    [data-theme="light"] .bottom-nav-item {
        color: #334155;
        text-shadow: 0 1px 0 rgba(255,255,255,0.8);
    }
    [data-theme="light"] .bottom-nav-item.active {
        color: #008f6f;
    }
}

/* Mobile uses the dedicated News page instead of the home side panel. */
@media (max-width: 768px) {
    .dash-news-panel {
        display: none !important;
    }
}

/* ── Dedicated News Page ───────────────────────────────── */
.news-page {
    min-height: 100vh;
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 18px 16px 92px;
}
.news-page-header {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 880px;
    margin: 0 auto 18px;
}
.news-back-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    text-decoration: none;
}
.news-page-kicker {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--neon-green);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
}
.news-page-header h1 {
    margin: 2px 0 0;
    font-size: 24px;
    line-height: 1.15;
}
.news-page-list {
    max-width: 880px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
}
.news-page-card {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    text-decoration: none;
    color: inherit;
}
.news-page-thumb {
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-secondary);
}
.news-page-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.news-page-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.news-page-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
}
.news-page-content h2 {
    margin: 8px 0 6px;
    font-size: 15px;
    line-height: 1.25;
}
.news-page-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.35;
}

@media (min-width: 769px) {
    .news-page {
        padding: 30px 24px;
    }
    .news-page-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .news-page-card {
        grid-template-columns: 150px minmax(0, 1fr);
    }
}

@media (max-width: 420px) {
    .news-page-card {
        grid-template-columns: 96px minmax(0, 1fr);
    }
    .news-page-content h2 {
        font-size: 14px;
    }
    .news-page-content p {
        font-size: 12px;
    }
}

/* Final public home refinements */
.dash-reels-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 768px) {
    .dash-reels-section {
        display: block !important;
        padding: 4px 12px 8px !important;
        margin: 0 auto 2px !important;
    }
    .dash-reels-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
    .dash-reels-grid .dash-reel-card:nth-child(n+5) {
        display: none;
    }
}

@media (max-width: 480px) {
    .dash-reels-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   PREMIUM PASUAX FOOTER — Institutional Grade Dark Theme
   ═══════════════════════════════════════════════════════════════════════════════ */
:root {
    --footer-bg: #0B0F19;
    --footer-border: rgba(255, 255, 255, 0.08);
    --footer-text-muted: #9CA3AF;
    --footer-text-dim: #6B7280;
}

.px-footer {
    background-color: var(--footer-bg);
    color: var(--text-primary);
    padding: 64px 0 32px;
    border-top: 1px solid var(--footer-border);
    font-family: 'Inter', var(--font-main);
}

.px-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Upper Section */
.px-footer-upper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding-bottom: 48px;
}

.px-footer-brand-col {
    flex: 1 1 300px;
}

.px-footer-brand-col .pasuax-logo {
    font-size: 28px;
    margin-bottom: 24px;
}

.px-footer-app-badges {
    display: flex;
    gap: 12px;
}

.px-app-btn {
    height: 40px;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.px-app-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.px-footer-nav-col {
    flex: 1 1 auto;
}

.px-footer-nav-list {
    display: flex;
    gap: 32px;
    list-style: none;
    justify-content: center;
}

.px-footer-nav-link {
    color: var(--footer-text-muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.px-footer-nav-link:hover {
    color: var(--text-primary);
    opacity: 1;
}

.px-footer-social-col {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    flex: 1 1 200px;
}

.px-social-link {
    color: var(--footer-text-muted);
    font-size: 20px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.px-social-link:hover {
    color: var(--text-primary);
    transform: scale(1.15);
}

/* Divider */
.px-footer-divider {
    height: 1px;
    background-color: var(--footer-border);
    margin: 0;
}

/* Lower Section */
.px-footer-lower {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding-top: 32px;
}

.px-footer-compliance {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--footer-text-dim);
    font-size: 13px;
}

.px-18-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    font-weight: 800;
    font-size: 11px;
    flex-shrink: 0;
}

.px-footer-copyright {
    display: block;
    margin-top: 8px;
    color: var(--footer-text-dim);
    font-size: 12px;
}

.px-footer-policy-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
}

.px-footer-policy-link {
    color: var(--footer-text-dim);
    font-size: 12px;
    transition: color 0.2s ease;
}

.px-footer-policy-link:hover {
    color: var(--footer-text-muted);
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
    .px-footer {
        padding: 24px 0 100px; /* Further reduced top padding, ensuring bottom nav clearance */
    }
    
    .px-footer-upper {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px; /* Reduced gap between sections */
        padding-bottom: 24px; /* Reduced padding below upper section */
    }

    .px-footer-brand-col .pasuax-logo {
        margin-bottom: 12px; /* Reduced margin below logo */
    }

    .px-footer-nav-list {
        flex-direction: column;
        gap: 8px; /* Reduced gap between nav links */
        margin-top: 12px; /* Added a small top margin for separation */
    }

    .px-footer-social-col {
        justify-content: center;
    }

    .px-footer-lower {
        flex-direction: column;
        text-align: center;
        padding-top: 16px; /* Reduced padding above lower section */
    }

    .px-footer-compliance {
        flex-direction: column;
        gap: 6px; /* Reduced gap within compliance text */
        margin-bottom: 8px; /* Added a small bottom margin for separation */
    }

    .px-footer-policy-list {
        justify-content: center;
        gap: 8px 16px; /* Reduced gap between policy links */
    }
}
.footer-contact-btn,
.contact-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
}
.footer-contact-btn:hover,
.contact-submit-btn:hover {
    border-color: var(--neon-green);
    color: var(--neon-green);
}
.contact-modal {
    width: min(460px, calc(100vw - 28px));
    margin: auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 18px;
    transform: translateY(10px);
    transition: transform 180ms ease-out;
}
.modal-overlay.show .contact-modal {
    transform: translateY(0);
}
.contact-modal-header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}
.contact-modal-header h3 {
    margin: 0 0 4px;
    color: var(--text-primary);
}
.contact-modal-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
}
.contact-modal-header button {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}
.contact-form {
    display: grid;
    gap: 12px;
}
.contact-form label {
    display: grid;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 800;
}
.contact-form label span {
    color: var(--text-muted);
    font-weight: 500;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    color: var(--text-primary);
    padding: 10px 12px;
    font: inherit;
    outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--neon-green);
}
.contact-consent {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    font-weight: 500 !important;
    line-height: 1.35;
}
.contact-consent input {
    width: auto;
    margin-top: 2px;
}
.contact-form-status {
    min-height: 18px;
    margin: 0;
    color: var(--text-muted);
    font-size: 12px;
}
.contact-page {
    min-height: 100vh;
    padding: 24px 16px 92px;
    background: var(--bg-primary);
    color: var(--text-primary);
}
.contact-page-shell {
    max-width: 680px;
    margin: 0 auto;
}
.contact-page-header {
    margin: 24px 0 20px;
}
.contact-page-header h1 {
    margin: 6px 0 8px;
    font-size: 30px;
    line-height: 1.1;
}
.contact-page-header p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.5;
}
.contact-page-alerts {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}
.contact-page-form {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
}
.contact-page-form label {
    display: grid;
    gap: 7px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 800;
}
.contact-page-form label span {
    color: var(--text-muted);
    font-weight: 500;
}
.contact-page-form input,
.contact-page-form textarea {
    width: 100%;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    color: var(--text-primary);
    padding: 11px 12px;
    font: inherit;
    outline: none;
}
.contact-page-form input:focus,
.contact-page-form textarea:focus {
    border-color: var(--neon-green);
}
.contact-page-form .contact-submit-btn {
    justify-self: start;
    min-width: 132px;
}

@media (max-width: 768px) {
    .public-footer {
        margin-bottom: 88px;
    }
    .public-footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Active bets heading and floating mobile nav final polish */
[data-theme="light"] .active-bets-view {
    color: #008f72;
}
[data-theme="light"] .hero-card-rank {
    background: rgba(255,255,255,0.84);
    color: #101820;
    border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .bottom-nav {
    background: rgba(255,255,255,0.84);
    border-color: rgba(0, 180, 216, 0.22);
    box-shadow: 0 18px 42px rgba(15,23,42,0.18), inset 0 1px 0 rgba(255,255,255,0.8);
}
[data-theme="light"] .bottom-nav-item {
    color: #64748b;
}
[data-theme="light"] .bottom-nav-item:hover {
    color: #111827;
}
[data-theme="light"] .bottom-nav-item.active {
    color: #00a884;
}

@media (max-width: 520px) {
    .active-bets-strip {
        margin-top: 12px;
        padding: 0 12px;
    }
    .active-bets-title {
        gap: 7px;
    }
    .active-bets-title h2 {
        font-size: 18px;
    }
    .active-bets-title span {
        font-size: 12px;
    }
    .active-bets-view {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 28px;
        padding: 0 10px;
        border-radius: 999px;
        background: rgba(0,229,163,0.08);
        border: 1px solid rgba(0,229,163,0.18);
        font-size: 11px;
    }
    .active-bets-view i {
        font-size: 10px;
    }
    .hero-card-rank {
        left: 5px;
        min-width: 27px;
        height: 27px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .bottom-nav {
        left: 50% !important;
        right: auto !important;
        bottom: max(10px, env(safe-area-inset-bottom, 0px)) !important;
        transform: translateX(-50%) !important;
        width: min(92vw, 380px) !important;
        height: auto !important;
        min-height: 62px !important;
        padding: 8px !important;
        display: flex !important;
        gap: 4px !important;
        background: rgba(5, 17, 24, 0.82) !important;
        border: 0 !important;
        border-radius: 24px !important;
        box-shadow: 0 18px 42px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.08) !important;
        backdrop-filter: blur(22px) saturate(170%) !important;
        -webkit-backdrop-filter: blur(22px) saturate(170%) !important;
        pointer-events: auto !important;
    }
    .bottom-nav-item {
        flex: 1 1 0 !important;
        width: auto !important;
        height: 46px !important;
        margin-bottom: 0 !important;
        border-radius: 16px !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        color: var(--text-muted) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        transform: none !important;
    }
    .bottom-nav-item span {
        display: block !important;
    }
    .bottom-nav-item.active {
        color: var(--neon-green) !important;
        background: transparent !important;
        box-shadow: none !important;
        transform: translateY(-2px) scale(1.12) !important;
        text-shadow: 0 0 16px rgba(0,229,163,0.42) !important;
    }
    .bottom-nav-item.active i {
        font-size: 23px !important;
    }
    [data-theme="light"] .bottom-nav {
        background: rgba(255,255,255,0.84) !important;
        border: 0 !important;
        box-shadow: 0 18px 42px rgba(15,23,42,0.18), inset 0 1px 0 rgba(255,255,255,0.8) !important;
    }
    [data-theme="light"] .bottom-nav-item {
        color: #64748b !important;
        text-shadow: none !important;
    }
    [data-theme="light"] .bottom-nav-item.active {
        color: #00a884 !important;
        text-shadow: 0 0 14px rgba(0,168,132,0.24) !important;
    }
}
