/* ========================================
   ComboBattle — Complete Design System
   Mobile-first PWA — Yappi Brand Theme
   ======================================== */

:root {
    --bg-primary: #0A0E17;
    --bg-secondary: #111827;
    --bg-card: rgba(26, 32, 53, 0.20);
    --bg-card-hover: rgba(34, 43, 69, 0.30);
    --bg-elevated: rgba(37, 48, 80, 0.65);
    --glass-blur: blur(16px);
    --glass-border: 1px solid rgba(255, 255, 255, 0.04);
    --neon-green: 0 0 12px rgba(34, 214, 90, 0.5), 0 0 40px rgba(34, 214, 90, 0.15);
    --neon-fire: 0 0 12px rgba(255, 109, 58, 0.5), 0 0 40px rgba(255, 109, 58, 0.15);
    --neon-gold: 0 0 12px rgba(255, 179, 0, 0.5), 0 0 40px rgba(255, 179, 0, 0.15);
    --accent-primary: #22D65A;
    --accent-primary-light: #5BF592;
    --accent-primary-dark: #17A845;
    --accent-secondary: #00CEC9;
    --accent-danger: #FF5252;
    --accent-warning: #FFB300;
    --accent-success: #22D65A;
    --accent-fire: #FF6D3A;
    --accent-purple: #7C5CFC;
    --gradient-primary: linear-gradient(135deg, rgba(34,214,90,0.7), rgba(23,168,69,0.7));
    --gradient-primary-soft: linear-gradient(135deg, rgba(34,214,90,0.15), rgba(23,168,69,0.08));
    --gradient-gold: linear-gradient(135deg, rgba(255,179,0,0.7), rgba(255,143,0,0.7));
    --gradient-fire: linear-gradient(135deg, rgba(255,109,58,0.7), rgba(255,61,61,0.7));
    --gradient-hero: linear-gradient(135deg, rgba(34,214,90,0.7) 0%, rgba(0,206,201,0.7) 50%, rgba(255,179,0,0.7) 100%);
    --text-primary: #ECF0F4;
    --text-secondary: #8B97B0;
    --text-muted: #556078;
    --text-inverse: #0A0E17;
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);
    --border-brand: rgba(34, 214, 90, 0.25);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    --shadow-elevated: 0 12px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    --shadow-glow-primary: 0 0 24px rgba(34, 214, 90, 0.3);
    --shadow-glow-fire: 0 0 20px rgba(255, 109, 58, 0.3);
    --shadow-glow-gold: 0 0 20px rgba(255, 179, 0, 0.3);
    --space-xs: 4px; --space-sm: 8px; --space-md: 12px;
    --space-lg: 16px; --space-xl: 24px; --space-2xl: 32px; --space-3xl: 48px;
    --radius-sm: 10px; --radius-md: 14px; --radius-lg: 20px;
    --radius-xl: 28px; --radius-full: 50%;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --nav-height: 72px; --max-width: 430px;
    /* Aliases for inline-style compatibility */
    --bg-body: var(--bg-primary);
    --card-bg: var(--bg-card);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: var(--font-family); background: var(--bg-primary); color: var(--text-primary); line-height: 1.5; overflow: hidden; -webkit-font-smoothing: antialiased; height: 100dvh; width: 100vw; }
#app { max-width: var(--max-width); margin: 0 auto; position: relative; height: 100dvh; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }

/* ===== SCREEN BACKGROUNDS ===== */
#app-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    transition: opacity 0.5s ease, background-image 0.5s ease;
    opacity: 0;
}
#app-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(10,14,26,0.15) 0%,
        rgba(10,14,26,0.0) 40%,
        rgba(10,14,26,0.35) 80%,
        rgba(10,14,26,0.65) 100%
    );
}
#app-bg.visible { opacity: 1; }
#app-bg[data-screen="dashboard"]  { background-image: url('assets/bg_dashboard.png'); }
#app-bg[data-screen="quests"]     { background-image: url('assets/bg_challenges.png'); }
#app-bg[data-screen="leaderboard"]{ background-image: url('assets/bg_rating.png'); }
#app-bg[data-screen="profile"]    { background-image: url('assets/bg_profile.png'); }

/* ===== AUTH SCREEN ANIMATED BACKGROUND ===== */
#screen-auth {
    position: relative;
    overflow: hidden;
}
#auth-bg-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: url('assets/bg_auth.png') center center / cover no-repeat;
    animation: authBgPulse 8s ease-in-out infinite alternate;
    will-change: transform, filter;
}
/* Fire glow overlay — left side orange/red */
#auth-bg-layer::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 15% 60%, rgba(255,80,0,0.35) 0%, transparent 70%),
        radial-gradient(ellipse 40% 50% at 5% 80%,  rgba(255,160,0,0.25) 0%, transparent 60%);
    animation: fireFlicker 3s ease-in-out infinite alternate;
}
/* Lightning overlay — right side blue/purple */
#auth-bg-layer::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 70% at 85% 30%, rgba(0,160,255,0.3) 0%, transparent 70%),
        radial-gradient(ellipse 30% 40% at 95% 10%, rgba(140,0,255,0.2) 0%, transparent 60%);
    animation: lightningFlash 2.5s ease-in-out infinite alternate-reverse;
}
/* Dark vignette so form stays readable */
.auth-bg-vignette {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to bottom,
        rgba(5,5,15,0.45) 0%,
        rgba(5,5,15,0.15) 35%,
        rgba(5,5,15,0.6)  70%,
        rgba(5,5,15,0.92) 100%
    );
    pointer-events: none;
}
/* Scanning energy line */
.auth-scan-line {
    position: fixed;
    left: 0; right: 0;
    height: 2px;
    z-index: 2;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(46,177,75,0.6) 20%,
        rgba(255,255,255,0.9) 50%,
        rgba(231,30,36,0.6) 80%,
        transparent 100%
    );
    box-shadow: 0 0 20px 4px rgba(46,177,75,0.4), 0 0 40px 8px rgba(231,30,36,0.2);
    animation: scanLine 6s linear infinite;
    pointer-events: none;
}
#screen-auth .auth-container { position: relative; z-index: 3; }

/* Keyframes */
@keyframes authBgPulse {
    0%   { transform: scale(1.0); opacity: 0.8; }
    50%  { transform: scale(1.04); opacity: 1; }
    100% { transform: scale(1.02); opacity: 0.9; }
}
@keyframes fireFlicker {
    0%   { opacity: 0.6; transform: scaleY(1.0) scaleX(1.0); }
    30%  { opacity: 1.0; transform: scaleY(1.05) scaleX(0.98); }
    60%  { opacity: 0.7; transform: scaleY(0.97) scaleX(1.02); }
    100% { opacity: 0.9; transform: scaleY(1.03) scaleX(1.0); }
}
@keyframes lightningFlash {
    0%   { opacity: 0.5; }
    20%  { opacity: 1.0; }
    21%  { opacity: 0.3; }
    40%  { opacity: 0.9; }
    41%  { opacity: 0.4; }
    100% { opacity: 0.7; }
}
@keyframes scanLine {
    0%   { top: -2px; opacity: 0; }
    5%   { opacity: 1; }
    95%  { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* ===== ADMIN SCREEN — TECH COMMAND CENTER ===== */
#screen-admin { position: relative; overflow: hidden; }

#admin-bg-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        /* Base: deep navy-charcoal gradient */
        linear-gradient(175deg, #0a0e1a 0%, #0d1520 30%, #091218 60%, #060b12 100%);
    animation: adminBgBreath 12s ease-in-out infinite alternate;
    will-change: opacity;
}
/* Hex grid overlay + scan line */
#admin-bg-layer::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        /* Subtle hex/dot grid */
        radial-gradient(circle 1px at 20px 20px, rgba(0,210,200,0.08) 1px, transparent 1px),
        radial-gradient(circle 1px at 60px 50px, rgba(0,210,200,0.06) 1px, transparent 1px),
        /* Horizontal scan lines */
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 3px,
            rgba(0,200,180,0.02) 3px,
            rgba(0,200,180,0.02) 4px
        );
    background-size: 80px 60px, 80px 60px, 100% 4px;
    animation: adminGridPulse 8s ease-in-out infinite alternate;
}
/* Cyan + emerald ambient glow accents */
#admin-bg-layer::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        /* Top-center cyan glow (like a monitor) */
        radial-gradient(ellipse 50% 25% at 50% 0%, rgba(0,180,220,0.12) 0%, transparent 70%),
        /* Bottom emerald glow */
        radial-gradient(ellipse 60% 30% at 50% 100%, rgba(34,214,90,0.08) 0%, transparent 60%),
        /* Side accent lights */
        radial-gradient(ellipse 15% 40% at 5% 50%, rgba(0,160,200,0.06) 0%, transparent 70%),
        radial-gradient(ellipse 15% 40% at 95% 50%, rgba(34,214,90,0.05) 0%, transparent 70%);
    animation: adminAccentGlow 6s ease-in-out infinite alternate-reverse;
}
.admin-bg-vignette {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to bottom,
        rgba(5,10,20,0.2)  0%,
        rgba(5,10,20,0.05) 30%,
        rgba(5,10,20,0.4)  70%,
        rgba(5,10,20,0.92) 100%
    );
    pointer-events: none;
}
#screen-admin > *:not(#admin-bg-layer):not(.admin-bg-vignette) {
    position: relative;
    z-index: 2;
}

@keyframes adminBgBreath {
    0%   { opacity: 0.85; }
    50%  { opacity: 1; }
    100% { opacity: 0.9; }
}
@keyframes adminGridPulse {
    0%   { opacity: 0.6; }
    50%  { opacity: 1.0; }
    100% { opacity: 0.7; }
}
@keyframes adminAccentGlow {
    0%   { opacity: 0.5; }
    50%  { opacity: 1.0; }
    100% { opacity: 0.7; }
}

/* Particle Background */
#screen-dashboard::before, #screen-auth::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image:
        radial-gradient(1px 1px at 20% 30%, rgba(34,214,90,0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 60% 20%, rgba(0,206,201,0.25) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 80% 60%, rgba(255,179,0,0.2) 0%, transparent 100%),
        radial-gradient(1px 1px at 40% 80%, rgba(124,92,252,0.2) 0%, transparent 100%),
        radial-gradient(1px 1px at 10% 70%, rgba(34,214,90,0.15) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 90% 40%, rgba(255,109,58,0.2) 0%, transparent 100%);
    background-size: 200% 200%;
    animation: none;
}
@keyframes particleDrift {
    0% { background-position: 0% 0%; }
    25% { background-position: 50% 25%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 75%; }
    100% { background-position: 0% 100%; }
}
#screen-dashboard > *, #screen-auth > *:not(#auth-bg-layer):not(.auth-bg-vignette):not(.auth-scan-line) { position: relative; z-index: 1; }

/* Season Progress Strip */
.season-progress-strip {
    position: sticky; top: 0; left: 0; right: 0; z-index: 11;
    height: 3px; width: 100%;
    background: rgba(255,255,255,0.05);
    overflow: hidden;
}
.season-progress-strip-fill {
    height: 100%; border-radius: 0 2px 2px 0;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-warning));
    background-size: 200% 100%;
    animation: seasonStripShine 3s linear infinite;
    transition: width 1s ease;
}
@keyframes seasonStripShine {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 4px; }

/* Screens */
.screen { display: none; padding-bottom: calc(var(--nav-height) + 16px); animation: fadeInUp 0.3s ease; }
.screen.active { display: block; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ============ AUTH ============ */
#screen-auth { padding-bottom: 0; }
.auth-container { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: var(--space-2xl); }
.auth-logo { text-align: center; margin-bottom: var(--space-3xl); }
.auth-logo-icon { font-size: 4rem; margin-bottom: var(--space-md); filter: drop-shadow(0 0 30px rgba(34, 214, 90, 0.3)); }
.auth-brand { font-size: 2.4rem; font-weight: 900; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; letter-spacing: -1px; }
.auth-tagline { font-size: 0.9rem; color: var(--text-secondary); margin-top: 8px; letter-spacing: 0.5px; }
.auth-form { width: 100%; max-width: 360px; background: rgba(26, 32, 53, 0.4); border-radius: var(--radius-xl); padding: var(--space-2xl); border: 1px solid rgba(255,255,255,0.04); box-shadow: 0 8px 40px rgba(0,0,0,0.3); }
.auth-form-title { font-size: 1.5rem; font-weight: 900; text-align: center; margin-bottom: var(--space-2xl); letter-spacing: -0.5px; }
.auth-switch { text-align: center; font-size: 0.82rem; color: var(--text-muted); margin-top: var(--space-xl); }
.auth-switch a { color: var(--accent-primary); text-decoration: none; font-weight: 700; }

/* ============ INPUTS ============ */
.input-group { margin-bottom: var(--space-xl); text-align: left; width: 100%; }
.input-label { display: block; font-size: 0.75rem; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; letter-spacing: 0.5px; text-transform: uppercase; }
.input-field { display: block; width: 100%; margin: 0; padding: 0 18px; height: 56px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius-md); color: var(--text-primary); font-family: var(--font-family); font-size: 1rem; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: none; box-sizing: border-box; -webkit-appearance: none; appearance: none; }
input[type="month"].input-field, input[type="date"].input-field { display: flex; align-items: center; padding-top: 0; padding-bottom: 0; }
.input-field:hover { border-color: rgba(255,255,255,0.12); background: rgba(255,255,255,0.06); }
.input-field:focus { outline: none; border-color: var(--accent-primary); background: rgba(34,214,90,0.04); box-shadow: 0 0 0 3px rgba(34,214,90,0.1); }
.input-field::placeholder { color: var(--text-muted); font-weight: 400; }
.input-field--pin { font-size: 1.5rem; font-weight: 700; text-align: center; letter-spacing: 12px; }
.input-field--search { padding: 12px 16px; font-size: 0.85rem; border-radius: var(--radius-md); background: rgba(255,255,255,0.04); }
.select-field { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238B97B0' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.select-field option { background: var(--bg-secondary); color: var(--text-primary); }
.input-hint { display: block; font-size: 0.72rem; color: var(--text-muted); margin-top: 8px; }

/* ============ BUTTONS ============ */
.btn { 
    display: inline-flex; align-items: center; justify-content: center; 
    padding: 14px 24px; border-radius: 16px; 
    font-family: var(--font-family); font-size: 0.95rem; font-weight: 700; 
    border: none; cursor: pointer; 
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); 
    gap: 10px; letter-spacing: -0.2px; text-transform: none; 
    position: relative; overflow: hidden; 
    
}
.btn::after { 
    content: ''; position: absolute; inset: 0; 
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 100%); 
    opacity: 0.8; transition: opacity 0.3s; pointer-events: none; 
}
.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(0.96) translateY(1px); }

.btn--primary { 
    background: var(--gradient-primary); color: white; 
    box-shadow: 0 4px 12px rgba(34, 214, 90, 0.2), inset 0 1px 0 rgba(255,255,255,0.3); 
    border: 1px solid rgba(0,0,0,0.1); 
}
.btn--primary:hover { 
    box-shadow: 0 6px 16px rgba(34, 214, 90, 0.3), inset 0 1px 0 rgba(255,255,255,0.4); 
    transform: translateY(-2px); 
}

.btn--secondary { 
    background: rgba(255,255,255,0.05); color: var(--text-primary); 
    border: 1px solid rgba(255,255,255,0.08); 
    box-shadow: 0 4px 12px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.05);
}
.btn--secondary:hover { 
    background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.12); 
    transform: translateY(-2px); 
}

.btn--danger { 
    background: var(--gradient-fire); color: white; 
    box-shadow: 0 4px 12px rgba(255, 109, 58, 0.2), inset 0 1px 0 rgba(255,255,255,0.3); 
    border: 1px solid rgba(0,0,0,0.1); 
}
.btn--danger:hover { 
    box-shadow: 0 6px 16px rgba(255, 109, 58, 0.3), inset 0 1px 0 rgba(255,255,255,0.4); 
    transform: translateY(-2px); 
}

.btn--ghost { 
    background: transparent; color: var(--text-secondary); 
    border: 1px solid transparent; box-shadow: none; font-weight: 600; 
}
.btn--ghost:hover { 
    background: rgba(255,255,255,0.05); color: var(--text-primary); 
}
.btn--ghost::after { display: none; }

.btn--accept { width: 100%; background: var(--gradient-primary); color: white; box-shadow: 0 4px 15px rgba(34,214,90,0.3); }
.btn--full { display: flex; width: 100%; margin: 0; box-sizing: border-box; }
.btn--sm { padding: 10px 16px; font-size: 0.85rem; border-radius: 10px; }
.btn--danger-text { color: var(--accent-danger); border-color: rgba(255,82,82,0.3); background: rgba(255,82,82,0.05); }
.btn--danger-text:hover { background: rgba(255,82,82,0.1); color: #FF7B7B; }

.btn--glow { box-shadow: 0 0 20px rgba(34,214,90,0.4); }
/* Infinite glow removed — static subtle glow instead */
.btn-back { background: none; border: none; color: var(--text-primary); font-size: 1.4rem; cursor: pointer; padding: 6px 12px; transition: transform 0.2s; }
.btn-back:hover { transform: translateX(-2px); }

/* ============ AVATARS ============ */
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--gradient-primary); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; color: white; flex-shrink: 0; overflow: hidden; background-size: cover; background-position: center; }
.avatar--small { width: 32px; height: 32px; font-size: 0.8rem; }
.avatar--large { width: 72px; height: 72px; font-size: 1.8rem; }
.avatar--leader { background: var(--gradient-gold); }
/* avatar-ring: must be a square with equal width/height to prevent oval */
.avatar-ring { padding: 2px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.avatar-ring--grey { border: 2px solid var(--text-muted); }
.avatar-ring--bronze { border: 2px solid #CD7F32; }
.avatar-ring--silver { border: 2px solid #C0C0C0; }
.avatar-ring--gold { border: 2px solid #FFD700; box-shadow: 0 0 12px rgba(255,215,0,0.3); }
.avatar-ring--small { padding: 1.5px; }
.avatar-ring--large { padding: 3px; }

/* ============ CARDS ============ */
.card { background: var(--bg-card); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border-radius: var(--radius-lg); padding: var(--space-xl); margin: 0 var(--space-lg) var(--space-lg); border: var(--glass-border); box-shadow: var(--shadow-card); transition: transform 0.2s, box-shadow 0.3s; }
.card:active { transform: scale(0.98); }
.card--gradient { background: var(--gradient-primary-soft); border-color: var(--border-brand); }

/* ============ DASHBOARD ============ */
.dashboard-header { display: flex; justify-content: space-between; align-items: center; padding: var(--space-xl) var(--space-lg) var(--space-lg); position: sticky; top: 0; z-index: 10; background: linear-gradient(180deg, var(--bg-primary) 70%, transparent); backdrop-filter: blur(16px); }
.header-left { display: flex; align-items: center; gap: var(--space-md); }
.header-info { display: flex; flex-direction: column; gap: 2px; }
.greeting { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px; line-height: 1.2; }
.streak-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 0.75rem; color: var(--accent-fire); font-weight: 600; }
.streak-fire { font-size: 0.85rem; animation: none; }
@keyframes fireGlow { from { filter: brightness(1); } to { filter: brightness(1.4); } }
@keyframes pulse-border {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,82,82,0); }
    50% { box-shadow: 0 0 0 4px rgba(255,82,82,0.25); }
}

/* Medals - Ukrainian Ribbon (Profile only) */
.medal-wrapper { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; }
.medal-ribbon { position: relative; width: 16px; height: 22px; background: linear-gradient(90deg, #0057B7 50%, #FFD700 50%); border-radius: 1px; box-shadow: 0 2px 4px rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; }
.medal-ribbon::after { content: ''; position: absolute; bottom: -6px; left: 0; width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 6px solid #FFD700; }
.medal-stars { position: absolute; width: 100%; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; justify-content: center; pointer-events: none; z-index: 2; }
.medal-stars--2 { gap: 1px; }
.medal-stars--3 { display: grid; grid-template-columns: auto auto; gap: 0px 1px; justify-content: center; }
.medal-stars--3 .medal-star-icon:nth-child(3) { grid-column: 1 / 3; justify-self: center; transform: translateY(-3px); }
.medal-star-icon { font-size: 9px; color: #FFF; filter: drop-shadow(0 0 2px rgba(0,0,0,0.8)); line-height: 1; }
.medal-stars--0 { display: none; }
.medal-label { font-size: 0.7rem; font-weight: 900; color: var(--text-primary); text-transform: uppercase; letter-spacing: 0.5px; }

/* Header rank inline (no oval, plain text) */
.header-meta { display: flex; align-items: center; gap: 8px; }
.rank-inline { font-size: 0.7rem; font-weight: 800; color: var(--accent-primary); text-transform: uppercase; letter-spacing: 0.5px; background: rgba(34,214,90,0.1); padding: 2px 8px; border-radius: 4px; }

/* Notification bell */
.header-right { position: relative; }
.notification-bell { background: transparent; border: none; width: 40px; height: 40px; padding: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; position: relative; transition: all 0.2s; overflow: visible !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; box-shadow: none !important; }
.notification-bell:active { transform: scale(0.9); }
.notification-bell::after { display: none !important; }
.btn--icon { background: transparent; border: none; width: 36px; height: 36px; padding: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; position: relative; overflow: visible !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; box-shadow: none !important; }
.btn--icon::after { display: none !important; }
.bell-icon { font-size: 1.2rem; }
.bell-badge { position: absolute; top: -4px; right: -4px; background: var(--accent-fire); color: white; font-size: 0.6rem; font-weight: 800; padding: 2px 5px; border-radius: 50%; border: 2px solid var(--bg-primary); min-width: 18px; text-align: center; }

/* Notifications Dropdown */
.notifications-dropdown { position: relative; margin: 0 var(--space-lg); background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-lg); box-shadow: var(--shadow-elevated); z-index: 50; animation: fadeInUp 0.2s ease; overflow: hidden; margin-bottom: var(--space-md); }
.notif-header { display: flex; justify-content: space-between; align-items: center; padding: var(--space-md) var(--space-lg); border-bottom: 1px solid var(--border-subtle); }
.notif-header h3 { font-size: 0.9rem; font-weight: 700; }
.notif-list { display: flex; flex-direction: column; padding: var(--space-md) 0; max-height: 350px; overflow-y: auto; background: var(--bg-primary); }
.notif-item { display: flex; flex-direction: column; cursor: pointer; transition: transform 0.1s; }
.notif-item:active { transform: scale(0.98); }
.bubble-item { background: var(--bg-card); padding: var(--space-md); border-radius: 16px; border-bottom-right-radius: 4px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); margin-bottom: 10px; border: 1px solid var(--border-subtle); margin-left: var(--space-md); margin-right: var(--space-md); position: relative; }
.bubble-item::after { content: ''; position: absolute; bottom: 0; right: -6px; width: 12px; height: 12px; background: inherit; border-bottom-left-radius: 10px; z-index: -1; transform: skewX(-20deg); border-right: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.notif-item--unread { border-left: 3px solid var(--accent-primary); }
.notif-text { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.4; margin: 4px 0; }
.notif-text strong { color: var(--text-primary); }
.notif-time { font-size: 0.68rem; color: var(--text-muted); align-self: flex-end; }
.notif-empty { text-align: center; padding: 30px; color: var(--text-muted); font-size: 0.85rem; }

/* Motivation Banner */
.motivation-banner { position: relative; overflow: hidden; min-height: 160px; display: flex; flex-direction: column; justify-content: center; padding: var(--space-2xl) !important; }
.motivation-banner::before { content: ''; position: absolute; top: -50%; right: -20%; width: 250px; height: 250px; background: radial-gradient(circle, rgba(34,214,90,0.1) 0%, transparent 70%); border-radius: var(--radius-full); }
.banner-rank { font-size: 2.8rem; margin-bottom: var(--space-md); }
.banner-title { font-size: 1.4rem; font-weight: 900; margin-bottom: 6px; letter-spacing: -0.3px; line-height: 1.2; }
.banner-subtitle { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: var(--space-lg); }
.banner-subtitle strong { color: var(--accent-primary-light); }

/* Progress Bars */
.progress-bar { width: 100%; height: 8px; background: rgba(255,255,255,0.08); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 4px; background: var(--gradient-primary); transition: width 1s cubic-bezier(0.4,0,0.2,1); position: relative; }
.progress-fill::after { content: ''; position: absolute; right: 0; top: 0; width: 20px; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3)); animation: shimmer 2s infinite; }
@keyframes shimmer { 0% { opacity: 0; } 50% { opacity: 1; } 100% { opacity: 0; } }
.progress-fill--quest { background: linear-gradient(135deg, #00B894, #55EFC4); }
.progress-fill--xp { background: var(--gradient-gold); }
.progress-labels { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--text-muted); margin-top: 4px; }

/* Clan Widget */
.clan-header { display: flex; align-items: center; gap: var(--space-md); margin-bottom: 6px; }
.clan-emoji { font-size: 1.4rem; }
.clan-name { font-weight: 800; font-size: 1rem; flex: 1; }
.clan-rank-pill { font-size: 0.65rem; font-weight: 700; padding: 4px 8px; background: rgba(255,255,255,0.06); color: var(--text-secondary); border-radius: var(--radius-md); text-transform: uppercase; letter-spacing: 0.5px; }
.clan-captain { font-size: 0.75rem; color: var(--text-muted); margin-bottom: var(--space-lg); }
.clan-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); text-align: center; }
.clan-stat { display: flex; flex-direction: column; gap: 3px; }
.stat-value { font-size: 1.2rem; font-weight: 900; letter-spacing: -0.5px; }
.stat-label { font-size: 0.6rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* Empty Clan State */
.clan-widget--empty { display: flex; justify-content: center; align-items: center; text-align: center; min-height: 120px; border: 1px dashed var(--border-light); background: transparent; }
.clan-empty-content { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.clan-empty-icon { font-size: 1.8rem; filter: grayscale(1); opacity: 0.8; margin-bottom: 4px; }
.clan-empty-title { font-weight: 700; font-size: 0.95rem; }
.clan-empty-desc { font-size: 0.75rem; color: var(--text-secondary); margin-bottom: var(--space-sm); }

/* Quest Tracker */
.quest-tracker-header { display: flex; align-items: center; gap: var(--space-md); margin-bottom: var(--space-md); }
.quest-emoji { font-size: 1.5rem; }
.quest-info { flex: 1; }
.quest-name { font-weight: 700; font-size: 0.9rem; display: block; }
.quest-desc { font-size: 0.75rem; color: var(--text-secondary); }
.quest-reward { font-size: 0.8rem; font-weight: 700; color: var(--accent-primary); background: rgba(34,214,90,0.1); padding: 4px 8px; border-radius: var(--radius-sm); }
.quest-time { color: var(--accent-warning); }

/* XP Card */
.xp-card { background: linear-gradient(135deg, rgba(255,179,0,0.08) 0%, rgba(255,143,0,0.05) 100%); border-color: rgba(255,179,0,0.15); }
.xp-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-sm); font-size: 0.8rem; }
.xp-numbers { font-weight: 700; color: var(--accent-warning); }

/* Feed */
.mini-feed { padding: var(--space-lg) var(--space-lg) 0; }
.section-title { font-size: 0.7rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; margin-bottom: var(--space-lg); margin-top: var(--space-xl); }
.feed-item { display: flex; align-items: flex-start; gap: var(--space-md); padding: var(--space-md) 0; border-bottom: 1px solid var(--border-subtle); }
.feed-item:last-child { border-bottom: none; }
.feed-emoji { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.feed-text { flex: 1; font-size: 0.85rem; color: var(--text-secondary); line-height: 1.4; }
.feed-text strong { color: var(--text-primary); }
.feed-xp { color: var(--accent-primary); font-weight: 700; }
.feed-time { font-size: 0.7rem; color: var(--text-muted); flex-shrink: 0; }
.badge-inline { background: rgba(34,214,90,0.15); padding: 2px 6px; border-radius: 4px; font-size: 0.8rem; }

/* ============ QUESTS ============ */
.screen-header { display: flex; justify-content: space-between; align-items: center; padding: var(--space-lg); position: sticky; top: 0; z-index: 10; background: var(--bg-primary); }
.screen-title { font-size: 1.6rem; font-weight: 900; letter-spacing: -0.5px; }
.quest-slots { display: flex; align-items: center; gap: 4px; }
.slot { width: 10px; height: 10px; border-radius: var(--radius-full); border: 2px solid var(--text-muted); }
.slot.filled { background: var(--accent-primary); border-color: var(--accent-primary); }
.slots-label { font-size: 0.7rem; color: var(--text-muted); margin-left: 4px; }
.tabs { display: flex; gap: 6px; padding: 0 var(--space-lg); margin-bottom: var(--space-xl); }
.tab { flex: 1; padding: 12px 0; background: transparent; backdrop-filter: none; border: none; border-radius: var(--radius-md); color: var(--text-muted); font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: all 0.25s ease; font-family: var(--font-family); text-align: center; overflow: visible !important; }
.tab.active { background: rgba(255,255,255,0.08); color: var(--text-primary); font-weight: 700; }
.tab:not(.active):active { background: rgba(255,255,255,0.03); }

/* Quick Actions */
.admin-quick-actions { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px 20px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.admin-quick-actions::-webkit-scrollbar { display: none; }
.admin-action { flex: 0 0 75px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.04); border-radius: 16px; padding: 14px 4px; scroll-snap-align: start; cursor: pointer; transition: all 0.2s; position: relative; }
.admin-action.active { background: rgba(34, 214, 90, 0.08); border-color: rgba(34, 214, 90, 0.2); }
.admin-action-icon { font-size: 1.6rem; margin-bottom: 6px; display: inline-block; transition: transform 0.2s; }
.admin-action.active .admin-action-icon { transform: scale(1.1); filter: drop-shadow(0 0 4px rgba(34, 214, 90, 0.5)); }
.admin-action-title { font-size: 0.65rem; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; transition: color 0.2s; }
.admin-action.active .admin-action-title { color: var(--accent-primary); }
.admin-action-badge { position: absolute; top: -4px; right: -4px; background: var(--accent-danger); color: white; font-size: 0.65rem; font-weight: 800; padding: 2px 6px; border-radius: 12px; box-shadow: 0 2px 8px rgba(255,82,82,0.5); z-index: 2; pointer-events: none; }
.quests-list { padding: 0 var(--space-lg); }
.quest-card { background: var(--bg-card); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: var(--glass-border); border-radius: var(--radius-lg); padding: var(--space-xl); margin-bottom: var(--space-lg); transition: all 0.2s; }
.quest-card:active { transform: scale(0.98); }
.quest-card-header { display: flex; align-items: flex-start; gap: var(--space-md); margin-bottom: var(--space-md); }
.quest-card-emoji { font-size: 1.6rem; flex-shrink: 0; }
.quest-card-info { flex: 1; }
.quest-card-name { font-weight: 700; font-size: 0.95rem; display: block; margin-bottom: 2px; }
.quest-card-condition { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.4; }
.quest-card-reward { font-size: 0.85rem; font-weight: 800; color: var(--accent-primary); white-space: nowrap; }
.quest-card-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-md); }
.quest-type-pill { font-size: 0.65rem; font-weight: 700; padding: 4px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.quest-type--daily { background: rgba(34,214,90,0.15); color: var(--accent-primary); }
.quest-type--weekly { background: rgba(0,206,201,0.15); color: var(--accent-secondary); }
.quest-type--event { background: rgba(255,109,58,0.15); color: var(--accent-fire); }
.quest-time-left { font-size: 0.75rem; color: var(--accent-warning); }

/* ============ LEADERBOARD ============ */
.podium { display: flex; justify-content: center; align-items: flex-end; gap: var(--space-md); padding: var(--space-xl) var(--space-lg) var(--space-lg); }
.podium-item { display: flex; flex-direction: column; align-items: center; gap: var(--space-xs); }
.podium-crown { font-size: 1.5rem; margin-bottom: -4px; }
/* Crown bounce removed for cleaner feel */
.podium-name { font-size: 0.8rem; font-weight: 700; margin-top: 4px; }
.podium-xp { font-size: 0.7rem; color: var(--text-secondary); }
.podium-bar { width: 72px; border-radius: var(--radius-md) var(--radius-md) 0 0; display: flex; align-items: flex-end; justify-content: center; padding-bottom: var(--space-sm); font-weight: 800; font-size: 1.2rem; color: rgba(255,255,255,0.6); }
.bar-1 { height: 100px; background: var(--gradient-gold); }
.bar-2 { height: 75px; background: linear-gradient(180deg, #C0C0C0, #8A8A8A); }
.bar-3 { height: 55px; background: linear-gradient(180deg, #CD7F32, #8B5A2B); }
.rankings-list { padding: 0 var(--space-lg); }
.ranking-item { display: flex; align-items: center; gap: var(--space-lg); padding: var(--space-lg); background: var(--bg-card); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border-radius: var(--radius-lg); margin-bottom: var(--space-sm); border: var(--glass-border); transition: all 0.2s; cursor: pointer; }
.ranking-item:active { background: var(--bg-card-hover); }
.ranking-item--me { border-color: rgba(34,214,90,0.15); background: rgba(34,214,90,0.03); }
.rank-number { width: 28px; font-weight: 800; font-size: 1.1rem; color: var(--text-muted); text-align: center; flex-shrink: 0; }
.rank-info { flex: 1; display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.rank-name { font-weight: 700; font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-level { font-size: 0.7rem; color: var(--text-muted); }
.rank-xp { font-weight: 800; font-size: 0.9rem; color: var(--text-primary); white-space: nowrap; }
.btn-duel { background: rgba(255,109,58,0.1); border: 1px solid rgba(255,109,58,0.3); border-radius: var(--radius-sm); padding: 6px 10px; font-size: 1rem; cursor: pointer; transition: all 0.2s; flex-shrink: 0; }
.btn-duel:active { background: rgba(255,109,58,0.3); transform: scale(0.95); }

/* ============ LEADERBOARD extra ============ */
#leaderboard-players { display: block; }
#leaderboard-clans { display: none; }
#leaderboard-duels { display: none; }
#leaderboard-players.active { display: block; }
#leaderboard-clans.active { display: block; }
#leaderboard-duels.active { display: block; }
#leaderboard-clans.hidden, #leaderboard-duels.hidden { display: none !important; }
#clans-rankings-list { padding: 0 var(--space-lg); }

/* ============ PROFILE ============ */
.profile-hero { position: relative; padding: var(--space-xl) var(--space-lg) var(--space-lg); overflow: hidden; }
.profile-hero-bg { position: absolute; top: 0; left: 0; right: 0; height: 160px; background: linear-gradient(135deg, rgba(34,214,90,0.12) 0%, rgba(0,206,201,0.06) 50%, rgba(255,179,0,0.04) 100%); z-index: 0; }

/* Profile Photo */
.profile-photo-section { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: var(--space-md); margin-bottom: var(--space-2xl); }
.profile-photo-wrapper { position: relative; width: 96px; height: 96px; }
.profile-photo { width: 96px; height: 96px; border-radius: var(--radius-full); background: var(--gradient-primary); display: flex; align-items: center; justify-content: center; font-size: 2.4rem; font-weight: 800; color: white; border: 3px solid rgba(255,255,255,0.1); box-shadow: 0 8px 32px rgba(0,0,0,0.3); background-size: cover; background-position: center; overflow: hidden; }
.profile-photo-edit { position: absolute; bottom: -2px; right: -2px; width: 32px; height: 32px; background: var(--bg-secondary); border: 2px solid rgba(255,255,255,0.1); border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; cursor: pointer; transition: all 0.2s; z-index: 2; }
.profile-photo-edit:active { transform: scale(0.9); }
.profile-name { font-size: 1.6rem; font-weight: 900; text-align: center; letter-spacing: -0.5px; }
.profile-store { font-size: 0.8rem; color: var(--text-secondary); text-align: center; }

/* Rank Card */
.rank-card { position: relative; z-index: 1; background: var(--bg-card); border-radius: var(--radius-lg); padding: var(--space-lg); border: 1px solid var(--border-brand); margin-bottom: var(--space-lg); box-shadow: var(--shadow-card); }
.rank-current { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-md); }
.rank-icon { font-size: 1.3rem; }
.rank-label { font-weight: 800; font-size: 1rem; color: var(--accent-primary-light); }
.rank-progress-track { display: flex; align-items: center; justify-content: space-between; }
.rank-step { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.rank-step-label { font-size: 0.6rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.rank-dot { width: 14px; height: 14px; border-radius: var(--radius-full); border: 2px solid var(--text-muted); transition: all 0.3s; }
.rank-dot--done { background: var(--accent-primary); border-color: var(--accent-primary); box-shadow: 0 0 8px rgba(34,214,90,0.3); }
.rank-dot--active { background: var(--accent-warning); border-color: var(--accent-warning); box-shadow: 0 0 12px rgba(255,179,0,0.4); animation: none; }
@keyframes rankPulse { 0%, 100% { box-shadow: 0 0 8px rgba(255,179,0,0.3); } 50% { box-shadow: 0 0 20px rgba(255,179,0,0.6); } }
.rank-dot--locked { background: transparent; border-color: var(--text-muted); }
.rank-line { flex: 1; height: 3px; margin: 0 2px; border-radius: 2px; margin-bottom: 20px; }
.rank-line--done { background: var(--accent-primary); }
.rank-line--pending { background: var(--text-muted); opacity: 0.3; }

/* Profile Stats */
.profile-stats-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
.profile-stat { background: rgba(255,255,255,0.03); border-radius: var(--radius-lg); padding: var(--space-lg) var(--space-sm); text-align: center; border: none; }
.profile-stat-value { font-size: 1.3rem; font-weight: 900; display: block; letter-spacing: -0.5px; }
.profile-stat-label { font-size: 0.58rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; }
.profile-content { padding: var(--space-xl); }

/* Profile Sections */
.profile-section { margin-bottom: var(--space-xl); }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-md); }
.btn-edit-profile { background: transparent; border: none; color: var(--accent-primary); padding: 0; font-size: 0.85rem; font-weight: 700; cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; gap: 4px; }
.btn-edit-profile:hover { text-decoration: underline; }
.btn-edit-profile:active { transform: scale(0.95); }

/* Info Grid */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.info-card { background: rgba(255,255,255,0.03); border-radius: var(--radius-lg); padding: var(--space-lg); display: flex; align-items: center; gap: var(--space-md); border: none; }
.info-icon { font-size: 1.4rem; flex-shrink: 0; }
.info-data { display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.info-label { font-size: 0.6rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.info-value { font-size: 0.85rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Career Timeline */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--accent-primary) 0%, var(--accent-primary) 80%, var(--text-muted) 100%); border-radius: 1px; }
.timeline-item { position: relative; padding-bottom: var(--space-lg); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; left: -24px; top: 4px; width: 10px; height: 10px; border-radius: var(--radius-full); }
.timeline-item--achieved .timeline-dot { background: var(--accent-primary); box-shadow: 0 0 8px rgba(34,214,90,0.3); }
.timeline-item--locked .timeline-dot { background: var(--text-muted); border: 2px solid var(--bg-primary); }
.timeline-content { display: flex; flex-direction: column; gap: 2px; }
.timeline-date { font-size: 0.65rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.timeline-title { font-size: 0.88rem; font-weight: 700; }
.timeline-desc { font-size: 0.75rem; color: var(--text-secondary); }
.timeline-item--locked .timeline-title { color: var(--text-muted); }
.timeline-item--locked .timeline-desc { color: var(--text-muted); opacity: 0.6; }

/* Badge Count */
.badge-count { font-size: 0.75rem; color: var(--accent-primary); font-weight: 800; }

/* Badges */
.badges-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-sm); margin-bottom: var(--space-xl); }
.badge-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: var(--space-md) var(--space-xs); border-radius: var(--radius-md); text-align: center; position: relative; transition: all 0.2s; }
.badge--earned { background: var(--bg-card); border: 1px solid var(--border-brand); }
.badge--earned:active { transform: scale(0.95); box-shadow: var(--shadow-glow-primary); }
.badge--locked { background: var(--bg-secondary); border: 1px solid var(--border-subtle); opacity: 0.75; }
.badge--locked .badge-name { color: rgba(255,255,255,0.65); }
.badge--locked .badge-desc { color: rgba(255,255,255,0.5); }
.badge-emoji { font-size: 1.5rem; }
.badge-name { font-size: 0.7rem; font-weight: 700; color: var(--text-secondary); line-height: 1.2; }
.badge-lock { position: absolute; top: 4px; right: 4px; font-size: 0.6rem; }

/* Transactions */
.transaction-list { display: flex; flex-direction: column; gap: var(--space-sm); }
.transaction-item { display: flex; align-items: center; gap: var(--space-md); padding: var(--space-md); background: var(--bg-card); border-radius: var(--radius-md); border: 1px solid var(--border-subtle); }
.txn-icon { width: 36px; height: 36px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.txn-icon--combo { background: rgba(34,214,90,0.15); }
.txn-icon--quest { background: rgba(0,206,201,0.15); }
.txn-icon--duel { background: rgba(255,109,58,0.15); }
.txn-info { flex: 1; display: flex; flex-direction: column; }
.txn-title { font-size: 0.82rem; font-weight: 600; }
.txn-time { font-size: 0.7rem; color: var(--text-muted); }
.txn-xp { font-weight: 700; font-size: 0.85rem; color: var(--accent-primary); }
.txn-multiplier { font-weight: 800; font-size: 0.75rem; color: var(--accent-primary-light); background: rgba(34,214,90,0.15); padding: 2px 6px; border-radius: 4px; }

/* ============ SALE INPUT (PHOTO) ============ */
.sale-step { padding: var(--space-lg); }
.sale-step.hidden { display: none; }

.photo-upload-container { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 55vh; }
.photo-upload-area {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 100%; padding: var(--space-3xl) var(--space-xl);
    background: rgba(255,255,255,0.02); border: 2px dashed rgba(255,255,255,0.1);
    border-radius: var(--radius-xl); cursor: pointer; transition: all 0.3s; text-align: center;
}
.photo-upload-area:active { transform: scale(0.97); background: rgba(34,214,90,0.1); }
.photo-upload-icon { font-size: 4rem; margin-bottom: var(--space-lg); filter: none; opacity: 0.8; }
.photo-upload-title { font-size: 1.3rem; font-weight: 800; color: var(--text-primary); margin-bottom: var(--space-xs); letter-spacing: -0.3px; }
.photo-upload-desc { font-size: 0.85rem; color: var(--text-muted); max-width: 250px; line-height: 1.5; }

.photo-preview-container { position: relative; width: 100%; aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: var(--space-xl); background: var(--bg-secondary); border: 1px solid var(--border-subtle); }
.photo-preview-image { width: 100%; height: 100%; background-size: cover; background-position: center; }
.btn-retake-photo { position: absolute; bottom: var(--space-md); right: var(--space-md); background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); color: white; padding: 8px 16px; border-radius: var(--radius-md); font-size: 0.8rem; font-weight: 700; cursor: pointer; border: 1px solid rgba(255,255,255,0.2); }

.combo-selection { margin-bottom: var(--space-xl); }
.category-tags { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-bottom: var(--space-lg); }
.category-tag {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
    color: var(--text-secondary); padding: 12px 18px; border-radius: var(--radius-md);
    font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.2s;
    font-family: var(--font-family); user-select: none;
}
.category-tag:active { transform: scale(0.95); }
.category-tag.selected { background: rgba(34,214,90,0.1); border-color: rgba(34,214,90,0.3); color: var(--accent-primary); }
.category-tag--service.selected { background: rgba(0,206,201,0.1); border-color: rgba(0,206,201,0.3); color: var(--accent-secondary); }

.expected-xp-container { background: var(--bg-card); padding: var(--space-md); border-radius: var(--radius-md); text-align: center; border: 1px solid var(--border-subtle); }
.expected-xp { font-size: 0.95rem; font-weight: 800; }

/* Hero / Success Screen */
.hero-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 70vh; text-align: center; position: relative; overflow: hidden; }
.hero-coin { font-size: 5rem; margin-bottom: var(--space-lg); z-index: 1; }
.hero-coin.pending-anim { animation: spinSlow 3s linear infinite; filter: drop-shadow(0 0 20px rgba(255,179,0,0.4)); }
@keyframes spinSlow { 0% { transform: rotateY(0); } 100% { transform: rotateY(360deg); } }
.hero-message { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: var(--space-sm); z-index: 1; }
.hero-buttons { display: flex; flex-direction: column; gap: var(--space-sm); width: 100%; z-index: 1; margin-top: var(--space-xl); }

/* ============ DUEL ============ */
.duel-content { padding: var(--space-lg); }
.duel-versus { display: flex; align-items: center; justify-content: center; gap: var(--space-xl); margin-bottom: var(--space-2xl); padding: var(--space-xl) 0; }
.duel-player { display: flex; flex-direction: column; align-items: center; gap: var(--space-xs); }
.duel-player-name { font-weight: 700; font-size: 0.9rem; }
.duel-player-xp { font-size: 0.75rem; color: var(--text-muted); }
.duel-vs { font-size: 1.8rem; font-weight: 900; background: var(--gradient-fire); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: vsPulse 1.5s ease-in-out infinite alternate; }
@keyframes vsPulse { from { transform: scale(1); } to { transform: scale(1.15); } }
.duel-section-title { font-size: 0.8rem; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: var(--space-md); }
.duel-conditions { margin-bottom: var(--space-xl); }
.condition-option { display: flex; align-items: center; gap: var(--space-md); padding: var(--space-md); background: var(--bg-card); border: 2px solid var(--border-subtle); border-radius: var(--radius-md); margin-bottom: var(--space-sm); cursor: pointer; transition: all 0.2s; }
.condition-option.selected { border-color: var(--accent-fire); background: rgba(255,109,58,0.06); }
.condition-option:active { transform: scale(0.98); }
.condition-emoji { font-size: 1.3rem; }
.condition-text { font-size: 0.85rem; font-weight: 600; }
.duel-stake { margin-bottom: var(--space-xl); }
.stake-slider-container { display: flex; flex-direction: column; align-items: center; gap: var(--space-md); }
.stake-slider { width: 100%; height: 8px; -webkit-appearance: none; appearance: none; border-radius: 4px; background: var(--bg-card); outline: none; }
.stake-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: var(--radius-full); background: var(--gradient-fire); cursor: pointer; box-shadow: 0 0 12px rgba(255,109,58,0.4); }
.stake-value { font-size: 2rem; font-weight: 900; color: var(--accent-fire); }
.stake-hint { display: block; text-align: center; font-size: 0.7rem; color: var(--text-muted); margin-top: var(--space-sm); }

/* ============ PREMIUM ADMIN PANEL ============ */
#screen-admin { padding-bottom: 80px; background: var(--bg-primary); }

/* --- Hero Header --- */
.adm-hero { position: relative; overflow: hidden; }
.adm-hero__bg {
    position: absolute; inset: 0;
    background: 
        radial-gradient(ellipse 120% 80% at 20% 0%, rgba(34,214,90,0.15) 0%, transparent 60%),
        radial-gradient(ellipse 100% 100% at 80% 20%, rgba(124,92,252,0.12) 0%, transparent 50%),
        radial-gradient(ellipse 80% 60% at 50% 100%, rgba(0,206,201,0.08) 0%, transparent 50%);
    animation: admHeroDrift 12s ease-in-out infinite alternate;
}
@keyframes admHeroDrift {
    0% { opacity: 0.7; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.05); }
}
.adm-hero__content { position: relative; z-index: 1; padding: 20px 16px 0; }
.adm-hero__top { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.adm-back {
    width: 40px; height: 40px; border-radius: 12px;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-primary); display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s; flex-shrink: 0;
}
.adm-back:active { transform: scale(0.92); background: rgba(255,255,255,0.1); }
.adm-hero__title-group { flex: 1; }
.adm-hero__title {
    font-size: 1.5rem; font-weight: 900; letter-spacing: -0.5px; line-height: 1.1;
    background: linear-gradient(135deg, #ECF0F4 0%, #8B97B0 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.adm-hero__subtitle {
    font-size: 0.7rem; font-weight: 600; color: var(--accent-primary);
    text-transform: uppercase; letter-spacing: 1.5px; display: block; margin-top: 2px;
}
.adm-report-btn {
    padding: 0 14px; height: 40px; border-radius: 12px;
    background: linear-gradient(135deg, rgba(34,214,90,0.1), rgba(34,214,90,0.05)); border: 1px solid rgba(34,214,90,0.3);
    color: var(--accent-primary); display: flex; align-items: center; justify-content: center; gap: 8px;
    cursor: pointer; transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); flex-shrink: 0; text-decoration: none;
    font-weight: 800; font-size: 0.85rem; font-family: var(--font-family); box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 4px 10px rgba(34,214,90,0.15);
}
.adm-report-btn:active { transform: scale(0.92) translateY(2px); background: rgba(34,214,90,0.15); box-shadow: none; }

/* --- Stats Strip --- */
.adm-stats-strip {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
    padding: 16px 0 20px;
}
.adm-stat-chip {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05);
    border-radius: 14px; padding: 10px 4px;
    transition: all 0.3s;
}
.adm-stat-chip:active { transform: scale(0.95); }
.adm-stat-chip--accent {
    background: rgba(34,214,90,0.06); border-color: rgba(34,214,90,0.15);
}
.adm-stat-chip__icon { font-size: 1.1rem; line-height: 1; }
.adm-stat-chip__value { font-size: 1.15rem; font-weight: 900; letter-spacing: -0.5px; color: var(--text-primary); }
.adm-stat-chip--accent .adm-stat-chip__value { color: var(--accent-primary); }
.adm-stat-chip__label { font-size: 0.58rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* --- Floating Tab Navigation --- */
.adm-tabs-wrapper {
    position: sticky; top: 0; z-index: 20;
    padding: 0 12px 12px;
    background: linear-gradient(180deg, var(--bg-primary) 60%, transparent 100%);
}
.adm-tabs {
    display: flex; gap: 4px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px; padding: 4px;
    overflow-x: auto; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.adm-tabs::-webkit-scrollbar { display: none; }
.adm-tab {
    flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 10px 6px 8px; border-radius: 12px;
    background: transparent; border: 1px solid transparent;
    color: var(--text-muted); cursor: pointer;
    font-family: var(--font-family); font-size: 0.62rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.3px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.adm-tab:active { transform: scale(0.95); }
.adm-tab.active {
    background: rgba(34,214,90,0.08); border-color: rgba(34,214,90,0.2);
    color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(34,214,90,0.08);
}
.adm-tab__icon { font-size: 1.2rem; transition: all 0.25s; line-height: 1; }
.adm-tab.active .adm-tab__icon { transform: scale(1.1); filter: drop-shadow(0 0 6px rgba(34,214,90,0.4)); }
.adm-tab__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.adm-tab__badge {
    position: absolute; top: -2px; right: 2px;
    background: var(--accent-danger); color: white;
    font-size: 0.6rem; font-weight: 800;
    padding: 1px 5px; border-radius: 10px;
    min-width: 16px; text-align: center;
    box-shadow: 0 2px 8px rgba(255,82,82,0.5);
    pointer-events: none; line-height: 1.4;
}

/* --- Section Bar (search / create) --- */
.adm-section-bar { padding: 0 16px 12px; }

/* --- Premium Search --- */
.adm-search {
    position: relative; display: flex; align-items: center;
}
.adm-search__icon {
    position: absolute; left: 14px; color: var(--text-muted);
    pointer-events: none; z-index: 1;
}
.adm-search__input {
    width: 100%; padding: 12px 14px 12px 40px;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px; color: var(--text-primary);
    font-family: var(--font-family); font-size: 0.88rem; font-weight: 500;
    transition: all 0.3s;
}
.adm-search__input:focus {
    outline: none; border-color: rgba(34,214,90,0.3);
    background: rgba(34,214,90,0.03); box-shadow: 0 0 0 3px rgba(34,214,90,0.08);
}
.adm-search__input::placeholder { color: var(--text-muted); font-weight: 400; }

/* --- Create Button --- */
.adm-create-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 20px; border-radius: 14px;
    background: linear-gradient(135deg, rgba(34,214,90,0.1), rgba(34,214,90,0.05));
    border: 1px solid rgba(34,214,90,0.2);
    color: var(--accent-primary); font-family: var(--font-family);
    font-size: 0.88rem; font-weight: 700; cursor: pointer;
    transition: all 0.25s; width: 100%;
    justify-content: center;
}
.adm-create-btn:hover { background: linear-gradient(135deg, rgba(34,214,90,0.15), rgba(34,214,90,0.08)); border-color: rgba(34,214,90,0.3); }
.adm-create-btn:active { transform: scale(0.97); }
.adm-create-btn--sm { padding: 8px 14px; font-size: 0.8rem; width: auto; border-radius: 10px; }

/* --- Admin List --- */
.adm-list { padding: 0 16px; }

/* --- Admin User Cards (enhanced) --- */
.admin-user-card {
    display: flex; align-items: center; gap: 12px;
    padding: 14px; background: rgba(0,0,0,0.45); 
    border-radius: 16px; margin-bottom: 8px;
    border: 1px solid rgba(255,255,255,0.03);
    transition: all 0.2s;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.admin-user-card:active { transform: scale(0.98); background: rgba(0,0,0,0.6); }
.admin-user-card--banned { opacity: 0.5; border-color: rgba(255,82,82,0.15); background: rgba(255,82,82,0.03); }
.admin-user-card--muted { border-color: rgba(255,179,0,0.15); background: rgba(255,179,0,0.03); }
.admin-user-info { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.admin-user-name { font-weight: 700; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-user-name--banned { text-decoration: line-through; color: var(--accent-danger) !important; }
.admin-user-name--muted { color: var(--accent-warning) !important; }
.admin-user-meta { font-size: 0.7rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --- Admin Queue Cards (enhanced) --- */
.admin-queue-card {
    display: flex; align-items: center; gap: 12px;
    padding: 14px; background: rgba(0,0,0,0.45); 
    border-radius: 16px; margin-bottom: 8px;
    border: 1px solid rgba(255,255,255,0.03);
    transition: all 0.2s;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.admin-queue-card:active { transform: scale(0.98); }
.admin-queue-photo-thumb {
    width: 56px; height: 72px; border-radius: 12px;
    flex-shrink: 0; cursor: pointer; border: none;
    background-color: rgba(255,255,255,0.04);
    object-fit: cover; transition: all 0.2s;
}
.admin-queue-photo-thumb:active { transform: scale(0.95); }
.admin-queue-info { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.admin-queue-user { font-weight: 700; font-size: 0.9rem; }
.admin-queue-receipt { font-size: 0.82rem; color: var(--accent-primary); font-weight: 700; }
.admin-queue-cats { font-size: 0.7rem; color: var(--text-muted); }
.admin-queue-actions { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }

/* --- Admin Clan Cards (enhanced) --- */
.admin-clan-card {
    padding: 16px; background: rgba(0,0,0,0.45); 
    border-radius: 16px; margin-bottom: 8px;
    border: 1px solid rgba(255,255,255,0.03);
    transition: all 0.2s;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.admin-clan-card:active { transform: scale(0.98); }
.admin-clan-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.admin-clan-name { font-weight: 800; font-size: 0.95rem; }
.admin-clan-score { color: var(--accent-warning); font-weight: 800; font-size: 0.88rem; }
.admin-clan-caption, .admin-clan-members { font-size: 0.75rem; color: var(--text-secondary); margin-top: 3px; }

/* --- Action Buttons (enhanced) --- */
.btn-admin-action {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px; padding: 8px 12px; font-size: 0.88rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.btn-admin-action:active { transform: scale(0.9); }
.btn-admin-action.active { background: var(--accent-primary); color: white; border-color: var(--accent-primary); }
.admin-user-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* --- Queue Group --- */
.adm-queue-group { margin-bottom: 20px; }
.adm-queue-header {
    display: flex; align-items: center; gap: 10px;
    padding: 0 16px 10px; margin-top: 4px;
}
.adm-queue-header__icon { font-size: 1.1rem; }
.adm-queue-header__title {
    font-size: 0.75rem; font-weight: 700; color: var(--text-secondary);
    text-transform: uppercase; letter-spacing: 1px;
}

/* --- Season Card --- */
.adm-season-card {
    margin: 0 16px;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px; padding: 20px;
    position: relative; overflow: hidden;
}
.adm-season-card::before {
    content: ''; position: absolute; top: -30%; right: -15%;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(255,179,0,0.08) 0%, transparent 70%);
    border-radius: 50%; pointer-events: none;
}
.adm-season-card__header {
    display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
    position: relative; z-index: 1;
}
.adm-season-card__icon { font-size: 1.5rem; }
.adm-season-card__title { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.3px; }
.adm-season-card__body { position: relative; z-index: 1; }
.adm-season-card__actions { position: relative; z-index: 1; margin-top: 16px; }

/* --- Content Group --- */
.adm-content-group { margin-bottom: 24px; }
.adm-content-group__header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 16px 12px;
}
.adm-content-group__title { font-size: 0.95rem; font-weight: 800; letter-spacing: -0.2px; }

/* --- Premium Bottom Bar --- */
.adm-bottom-bar {
    position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: var(--max-width);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0));
    background: linear-gradient(180deg, transparent 0%, rgba(10,14,23,0.95) 30%, var(--bg-primary) 100%);
    
    z-index: 20;
}
.adm-home-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 14px;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px; color: var(--text-secondary);
    font-family: var(--font-family); font-size: 0.9rem; font-weight: 600;
    cursor: pointer; transition: all 0.25s;
}
.adm-home-btn:hover { background: rgba(255,255,255,0.06); color: var(--text-primary); }
.adm-home-btn:active { transform: scale(0.97); }


/* Checkboxes */
.clan-member-checkboxes { display: flex; flex-direction: column; gap: var(--space-sm); }
.checkbox-item { display: flex; align-items: center; gap: var(--space-sm); font-size: 0.88rem; color: var(--text-primary); cursor: pointer; padding: var(--space-sm); border-radius: var(--radius-sm); transition: background 0.2s; }
.checkbox-item:hover { background: var(--bg-card-hover); }
.checkbox-item input[type="checkbox"] { accent-color: var(--accent-primary); width: 18px; height: 18px; }

/* ============ BOTTOM NAV ============ */
.bottom-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--max-width); height: var(--nav-height); background: rgba(10, 14, 23, 0.92); backdrop-filter: blur(30px) saturate(1.8); -webkit-backdrop-filter: blur(30px) saturate(1.8); display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(255, 255, 255, 0.04); z-index: 100; padding-bottom: env(safe-area-inset-bottom, 0); }
.nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; background: none; border: none; cursor: pointer; padding: var(--space-sm) 0; transition: all 0.2s; font-family: var(--font-family); -webkit-tap-highlight-color: transparent; position: relative; }
.nav-icon { font-size: 1.25rem; transition: transform 0.2s, filter 0.3s; opacity: 0.5; }
.nav-label { font-size: 0.6rem; font-weight: 500; color: var(--text-muted); transition: color 0.2s; opacity: 0.5; }
.nav-item.active .nav-label { color: var(--text-primary); opacity: 1; }
.nav-item.active .nav-icon { transform: scale(1.1); filter: none; opacity: 1; }

.nav-item--fab { position: relative; margin-top: -24px; }
.nav-fab-icon { width: 56px; height: 56px; background: var(--gradient-primary); border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; font-weight: 300; color: white; box-shadow: 0 4px 20px rgba(34,214,90,0.4); transition: all 0.2s; }
/* FAB pulse removed for cleaner feel */
.nav-item--fab:active .nav-fab-icon { transform: scale(0.92); }

/* ============ TOAST ============ */
.toast { position: fixed; bottom: calc(var(--nav-height) + 16px); left: 50%; transform: translateX(-50%) translateY(100px); background: rgba(37, 48, 80, 0.92);  color: var(--text-primary); padding: var(--space-md) var(--space-xl); padding-bottom: calc(var(--space-md) + 3px); border-radius: var(--radius-md); font-size: 0.85rem; font-weight: 600; box-shadow: var(--shadow-elevated), 0 0 20px rgba(34,214,90,0.1); z-index: 200; transition: transform 0.3s cubic-bezier(0.4,0,0.2,1); border: 1px solid rgba(34,214,90,0.15); white-space: nowrap; max-width: 90%; text-align: center; overflow: hidden; }
.toast::after { content: ''; position: absolute; bottom: 0; left: 0; height: 3px; background: var(--gradient-primary); animation: toastProgress 3s linear forwards; border-radius: 0 0 var(--radius-md) var(--radius-md); }
@keyframes toastProgress { from { width: 100%; } to { width: 0%; } }
.toast.visible { transform: translateX(-50%) translateY(0); }
.toast.hidden { transform: translateX(-50%) translateY(100px); }

/* ============ MODALS ============ */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7);  display: flex; align-items: center; justify-content: center; z-index: 300; padding: var(--space-lg); animation: fadeIn 0.3s ease; }
.modal-overlay.hidden { display: none !important; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal { background: rgba(20, 26, 44, 0.92); backdrop-filter: blur(30px) saturate(1.5); -webkit-backdrop-filter: blur(30px) saturate(1.5); border-radius: 24px; padding: 32px 28px; max-width: 380px; width: 100%; text-align: center; border: 1px solid rgba(255, 255, 255, 0.04); box-shadow: 0 24px 80px rgba(0,0,0,0.6); animation: modalSlideUp 0.4s cubic-bezier(0.2,0.8,0.2,1); max-height: 90vh; overflow-y: auto; position: relative; display: flex; flex-direction: column; gap: 8px; }
@keyframes modalSlideUp { from { transform: translateY(40px) scale(0.95); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
.modal--photo { max-width: 95%; padding: 0px; background: transparent; border: none; box-shadow: none; overflow: visible; display: block; }
.photo-modal-content { display: flex; align-items: center; justify-content: center; }
.photo-modal-content img { max-width: 100%; max-height: 85vh; border-radius: var(--radius-lg); object-fit: contain; box-shadow: 0 0 30px rgba(0,0,0,0.5); border: 2px solid var(--border-light); }
.btn-close-modal { position: absolute; top: -40px; right: 0; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; padding: 10px; z-index: 301; }
.modal-emoji { font-size: 3.5rem; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3)); margin-bottom: 8px; }
.modal-title { font-size: 1.5rem; font-weight: 900; margin-bottom: 4px; letter-spacing: -0.5px; }
.modal-desc { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 12px; line-height: 1.5; padding: 0 10px; }
.modal-stake { font-size: 1.1rem; font-weight: 700; color: var(--accent-warning); margin-bottom: 8px; }
.modal-timer { font-size: 0.8rem; font-weight: 600; color: var(--accent-warning); margin-bottom: 16px; }
.modal-buttons { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }

/* User Profile / Chat modals (non-overlay pattern used in HTML) */
.modal.hidden { display: none !important; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: var(--space-lg); border-bottom: 1px solid var(--border-subtle); }
.modal-body { padding: var(--space-lg); }
.modal-content--bottom { background: var(--bg-card); border-radius: var(--radius-xl) var(--radius-xl) 0 0; width: 100%; max-width: var(--max-width); position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 310; border: 1px solid var(--border-light); border-bottom: none; }
.modal-content--full { background: var(--bg-card); border-radius: var(--radius-xl) var(--radius-xl) 0 0; width: 100%; max-width: var(--max-width); position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 310; height: 70vh; border: 1px solid var(--border-light); border-bottom: none; }


/* ============ PHONE INPUT GROUP ============ */
.phone-input-group { display: flex; align-items: center; gap: 0; }
.phone-prefix { background: var(--bg-elevated); color: var(--accent-primary); font-weight: 800; font-size: 1rem; padding: 14px 12px; border: 2px solid var(--border-light); border-right: none; border-radius: var(--radius-md) 0 0 var(--radius-md); white-space: nowrap; }
.input-field--phone { border-radius: 0 var(--radius-md) var(--radius-md) 0 !important; }

/* ============ CLAN MEMBER ROW ============ */
.clan-member-row { display: flex; justify-content: space-between; align-items: center; padding: 10px; background: var(--bg-card); border-radius: 8px; border: 1px solid var(--border-subtle); }

/* ============ CHAT MESSAGES ============ */
.chat-message { max-width: 82%; padding: 12px 18px; border-radius: 20px; font-size: 0.95rem; line-height: 1.45; animation: fadeInUp 0.3s cubic-bezier(0.25, 1, 0.5, 1); box-shadow: 0 4px 20px rgba(0,0,0,0.15); position: relative; margin-bottom: 2px; }
.chat-message--mine { background: linear-gradient(135deg, rgba(34,214,90,0.85), rgba(34,214,90,0.6));  color: white; align-self: flex-end; border-bottom-right-radius: 4px; box-shadow: 0 8px 25px rgba(34, 214, 90, 0.25); border: 1px solid rgba(255,255,255,0.2); }
.chat-message--other { background: rgba(255,255,255,0.06);  border: 1px solid rgba(255,255,255,0.1); align-self: flex-start; border-bottom-left-radius: 4px; color: var(--text-primary); box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.chat-message-header { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.chat-sender { font-weight: 800; font-size: 0.75rem; color: var(--accent-primary-light); text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.9; }
.chat-time { font-size: 0.65rem; color: var(--text-muted); font-weight: 600; opacity: 0.8; }
.chat-message--mine .chat-time { color: rgba(255,255,255,0.85); }
.chat-message-text { word-wrap: break-word; font-family: var(--font-family); letter-spacing: -0.1px; }

/* ============ SUBCATEGORY TAGS ============ */
.subcategory-tags { margin-top: 10px; padding: 10px; background: rgba(34,214,90,0.05); border-radius: var(--radius-md); border: 1px solid var(--border-brand); animation: fadeInUp 0.2s ease; }
.subcategory-tag.selected { background: rgba(34,214,90,0.2) !important; border-color: var(--accent-primary) !important; color: var(--accent-primary) !important; }

/* ============ TOOLTIP ============ */
.tooltip-icon { cursor: pointer; font-size: 0.8rem; vertical-align: middle; opacity: 0.6; transition: opacity 0.2s; }
.tooltip-icon:hover { opacity: 1; }
.tooltip-popup { position: fixed; z-index: 500; background: var(--bg-elevated); color: var(--text-primary); padding: 12px 16px; border-radius: var(--radius-md); font-size: 0.82rem; line-height: 1.5; max-width: 280px; box-shadow: var(--shadow-elevated); border: 1px solid var(--border-light); animation: fadeInUp 0.2s ease; }

/* ============ BOOST BANNER ============ */
.boost-banner { background: linear-gradient(135deg, rgba(255,179,0,0.12) 0%, rgba(255,109,58,0.08) 100%); border-color: rgba(255,179,0,0.25); animation: boostPulse 2s ease-in-out infinite alternate; }
@keyframes boostPulse { from { border-color: rgba(255,179,0,0.15); } to { border-color: rgba(255,179,0,0.5); } }

/* ============ QUEST SWIPE ============ */
.quest-swipe-container { padding: 0 var(--space-lg) var(--space-md); margin: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.quest-swipe-container::-webkit-scrollbar { display: none; }
.quest-swipe-track { display: flex; gap: var(--space-md); scroll-snap-type: x mandatory; padding-right: var(--space-lg); }
.quest-swipe-card { min-width: calc(100vw - 48px); max-width: 382px; scroll-snap-align: start; flex-shrink: 0; margin: 0; }
.quest-swipe-dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }

/* ============ LEADERBOARD SECTIONS ============ */
.leaderboard-section { display: none; }
.leaderboard-section.active { display: block; }
.leaderboard-section.hidden { display: none !important; }

/* ============ BADGE HINT ============ */
.badge-hint { font-size: 0.5rem; color: var(--text-muted); line-height: 1.2; display: block; margin-top: 2px; }
.badge--visible { background: var(--bg-secondary); border: 1px solid var(--border-subtle); opacity: 0.5; }
.badge--visible.badge--earned { opacity: 1; background: var(--bg-card); border-color: var(--border-brand); }

/* ============ ADMIN EXTRA ============ */
.receipt-comment-input { background: var(--bg-secondary) !important; border: 1px solid var(--border-light) !important; }

/* ============ UTILITIES ============ */
.hidden { display: none !important; }
.rotated { transform: rotate(180deg) !important; }
.admin-section.hidden { display: none; }
@media (min-width: 430px) { #app { border-left: 1px solid var(--border-subtle); border-right: 1px solid var(--border-subtle); } }

/* Tab Badges */
.tab-badge { position: absolute; top: -6px; right: -6px; background: var(--accent-fire); color: white; font-size: 0.65rem; font-weight: 800; padding: 2px 5px; border-radius: 50%; border: 2px solid var(--bg-card); min-width: 18px; text-align: center; pointer-events: none; }

/* ============ BOOST MARQUEE ============ */
@keyframes scrollMarquee {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}
.boost-marquee-bar {
    overflow: hidden;
    background: linear-gradient(90deg, #FFB300, #FF6D3A, #FF3D3D, #FF6D3A, #FFB300);
    background-size: 200% 100%;
    animation: marqueeGradient 4s linear infinite;
    border-radius: var(--radius-md);
    padding: 8px 0;
    margin: 0 var(--space-lg) var(--space-md);
    position: relative;
    box-shadow: 0 2px 12px rgba(255,179,0,0.25);
}
@keyframes marqueeGradient {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}
.boost-marquee-bar .marquee-track {
    display: inline-block;
    white-space: nowrap;
    animation: scrollMarquee 14s linear infinite;
    font-size: 0.85rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
    padding: 0 40px;
}

/* Old admin-bottom-bar removed — replaced by .adm-bottom-bar in PREMIUM ADMIN PANEL section */

/* ============ WOW ANIMATIONS ============ */

/* XP Gain Pulse */
@keyframes xpPulse {
    0% { transform: scale(1); }
    30% { transform: scale(1.25); text-shadow: 0 0 20px var(--accent-primary), 0 0 40px rgba(34,214,90,0.4); }
    60% { transform: scale(0.95); }
    100% { transform: scale(1); }
}
.xp-pulse {
    animation: xpPulse 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Level Up Glow */
@keyframes levelUpGlow {
    0% { box-shadow: 0 0 0 0 rgba(34,214,90,0.7); }
    50% { box-shadow: 0 0 30px 10px rgba(34,214,90,0.3); }
    100% { box-shadow: 0 0 0 0 rgba(34,214,90,0); }
}
.level-up-glow {
    animation: levelUpGlow 1.5s ease-out;
}

/* Toast Enhanced */
@keyframes toastSlideIn {
    0% { transform: translateX(-50%) translateY(30px) scale(0.8); opacity: 0; }
    60% { transform: translateX(-50%) translateY(-5px) scale(1.02); opacity: 1; }
    100% { transform: translateX(-50%) translateY(0) scale(1); opacity: 1; }
}
@keyframes toastSlideOut {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(30px) scale(0.8); opacity: 0; }
}
.toast.visible {
    animation: toastSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
}
.toast.toast--hiding {
    animation: toastSlideOut 0.3s ease-in forwards !important;
}

/* Badge Shimmer */
@keyframes badgeShimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}
.badge--earned {
    position: relative;
    overflow: hidden;
}
.badge--earned::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.08) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: badgeShimmer 3s ease-in-out infinite;
    pointer-events: none;
    border-radius: inherit;
}

/* Progress Bar Animated Fill */
.progress-fill {
    transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    position: relative;
    overflow: hidden;
}
.progress-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    animation: none;
}
@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Quest Complete Celebration */
@keyframes questComplete {
    0% { transform: scale(1); background: var(--bg-card); }
    30% { transform: scale(1.03); background: rgba(34,214,90,0.12); border-color: var(--accent-primary); }
    60% { transform: scale(0.98); }
    100% { transform: scale(1); background: rgba(34,214,90,0.06); }
}
.quest-card[data-status="completed"] {
    animation: questComplete 0.8s ease-out;
    border: 1px solid rgba(34,214,90,0.3) !important;
    background: rgba(34,214,90,0.06) !important;
}

/* Button Press Effect */
.btn {
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease !important;
}
.btn:active {
    transform: scale(0.95) !important;
}
.btn--primary:active {
    box-shadow: 0 0 20px rgba(34,214,90,0.4) !important;
}

/* Notification Badge Bounce */
@keyframes notifBounce {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(0.9); }
    75% { transform: scale(1.15); }
}
.bell-badge:not(.hidden) {
    animation: notifBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Modal Entrance */
@keyframes modalSlideUp {
    0% { transform: translateY(40px) scale(0.95); opacity: 0; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes modalOverlayFade {
    0% { background-color: transparent; }
    100% { background-color: rgba(0, 0, 0, 0.6); }
}
.modal-overlay:not(.hidden) {
    animation: modalOverlayFade 0.25s ease forwards;
}
.modal-overlay:not(.hidden) .modal {
    animation: modalSlideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Ranking Item Stagger */
@keyframes rankSlideIn {
    0% { transform: translateX(-20px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}
.ranking-item {
    animation: rankSlideIn 0.3s ease-out backwards;
}
.ranking-item:nth-child(1) { animation-delay: 0.02s; }
.ranking-item:nth-child(2) { animation-delay: 0.04s; }
.ranking-item:nth-child(3) { animation-delay: 0.06s; }
.ranking-item:nth-child(4) { animation-delay: 0.08s; }
.ranking-item:nth-child(5) { animation-delay: 0.10s; }
.ranking-item:nth-child(6) { animation-delay: 0.12s; }
.ranking-item:nth-child(7) { animation-delay: 0.14s; }
.ranking-item:nth-child(8) { animation-delay: 0.16s; }

/* Feed Item Entrance */
@keyframes feedFadeIn {
    0% { transform: translateY(10px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}
.feed-item {
    animation: feedFadeIn 0.3s ease-out backwards;
}
.feed-item:nth-child(2) { animation-delay: 0.05s; }
.feed-item:nth-child(3) { animation-delay: 0.1s; }
.feed-item:nth-child(4) { animation-delay: 0.15s; }
.feed-item:nth-child(5) { animation-delay: 0.2s; }

/* Podium Entrance */
@keyframes podiumPop {
    0% { transform: translateY(30px) scale(0.7); opacity: 0; }
    60% { transform: translateY(-5px) scale(1.05); }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}
.podium-item {
    animation: podiumPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}
.podium-item:nth-child(1) { animation-delay: 0.15s; }
.podium-item:nth-child(2) { animation-delay: 0.05s; }
.podium-item:nth-child(3) { animation-delay: 0.25s; }

/* Card Hover Lift */
.card, .quest-card, .info-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover, .quest-card:hover, .info-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-elevated);
}

/* Streak Fire Glow */
@keyframes fireGlow {
    0%, 100% { text-shadow: 0 0 8px rgba(255,109,58,0.3); }
    50% { text-shadow: 0 0 16px rgba(255,109,58,0.6), 0 0 30px rgba(255,109,58,0.2); }
}
.streak-fire {
    animation: fireGlow 2s ease-in-out infinite;
}

/* Avatar Ring Spin on Hover */
.avatar-ring--gold:hover {
    box-shadow: 0 0 20px rgba(255,215,0,0.4);
    transition: box-shadow 0.3s ease;
}
.avatar-ring--silver:hover {
    box-shadow: 0 0 20px rgba(192,192,192,0.4);
    transition: box-shadow 0.3s ease;
}
.avatar-ring--bronze:hover {
    box-shadow: 0 0 20px rgba(205,127,50,0.4);
    transition: box-shadow 0.3s ease;
}

/* Loading Skeleton */
@keyframes skeletonLoading {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-elevated) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s infinite;
    border-radius: var(--radius-sm);
}

/* Success Checkmark */
@keyframes checkPop {
    0% { transform: scale(0) rotate(-45deg); opacity: 0; }
    50% { transform: scale(1.2) rotate(0deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
.check-pop {
    animation: checkPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* XP Counter Animation helper */
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.count-animate {
    animation: countUp 0.4s ease-out;
}

/* ============ FLOATING XP NUMBERS ============ */
@keyframes floatXpUp {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    60% { opacity: 0.9; transform: translateY(-40px) scale(1.1); }
    100% { opacity: 0; transform: translateY(-70px) scale(0.8); }
}
.floating-xp {
    position: fixed;
    z-index: 500;
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--accent-primary);
    text-shadow: 0 0 12px rgba(34,214,90,0.6), 0 2px 4px rgba(0,0,0,0.5);
    pointer-events: none;
    animation: floatXpUp 1.5s ease-out forwards;
}
.floating-xp--negative {
    color: var(--accent-danger);
    text-shadow: 0 0 12px rgba(255,82,82,0.6), 0 2px 4px rgba(0,0,0,0.5);
}

/* ============ NEON GLOW ENHANCEMENTS ============ */
.btn--primary { box-shadow: 0 4px 15px rgba(34,214,90,0.3), 0 0 20px rgba(34,214,90,0.1); }
.btn--primary:hover { box-shadow: var(--neon-green); transform: translateY(-1px); }
.btn--danger { box-shadow: 0 4px 15px rgba(255,109,58,0.3), 0 0 20px rgba(255,109,58,0.1); }
.btn--danger:hover { box-shadow: var(--neon-fire); transform: translateY(-1px); }

.ranking-item--me { border-color: rgba(34,214,90,0.3); box-shadow: 0 0 15px rgba(34,214,90,0.08); }

.auth-form {  background: rgba(10, 14, 26, 0.25); border: var(--glass-border); }

.notification-bell:hover .bell-icon { filter: drop-shadow(0 0 6px rgba(255,179,0,0.5)); }

/* ============ FLOATING CHAT FAB ============ */
.chat-fab-hide-zone { position: fixed; bottom: -150px; left: 50%; transform: translateX(-50%); background: rgba(220, 53, 69, 0.9);  color: white; padding: 12px 24px; border-radius: 30px; font-size: 0.9rem; font-weight: 700; display: flex; align-items: center; justify-content: center; z-index: 85; transition: bottom 0.3s cubic-bezier(0.25, 1, 0.5, 1), transform 0.2s, opacity 0.3s; border: 1px solid rgba(255,255,255,0.2); box-shadow: 0 10px 30px rgba(220,53,69,0.4); pointer-events: none; opacity: 0; }
.chat-fab-hide-zone.active { bottom: calc(var(--nav-height) + 20px + env(safe-area-inset-bottom, 0px)); opacity: 1; }
.chat-fab-hide-zone.hover { transform: translateX(-50%) scale(1.05); background: var(--accent-danger); box-shadow: 0 10px 40px rgba(220,53,69,0.6); opacity: 1; }

.chat-fab {
    position: fixed;
    bottom: calc(var(--nav-height) + 16px + env(safe-area-inset-bottom, 0px));
    right: max(16px, calc((100vw - var(--max-width)) / 2 + 16px));
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(34,214,90,0.9), rgba(124,92,252,0.9));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white;
    border: 1px solid rgba(255,255,255,0.25);
    font-size: 1.8rem;
    cursor: grab;
    box-shadow: 0 8px 32px rgba(34,214,90,0.4), inset 0 2px 4px rgba(255,255,255,0.4);
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    animation: none;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}
.chat-fab::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-purple));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}
.chat-fab:active {
    transform: scale(0.85);
    cursor: grabbing;
}
@keyframes chatFabPulse {
    0%, 100% { box-shadow: 0 8px 32px rgba(34,214,90,0.4), 0 0 0 0 rgba(34,214,90,0.2); }
    50% { box-shadow: 0 8px 32px rgba(124,92,252,0.5), 0 0 0 15px rgba(124,92,252,0); }
}
.chat-fab-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: linear-gradient(135deg, var(--accent-fire), #FF3D3D);
    color: white;
    font-size: 0.75rem;
    font-weight: 900;
    padding: 4px 8px;
    border-radius: 20px;
    border: 2px solid var(--bg-primary);
    min-width: 24px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(255,82,82,0.5);
    animation: notifBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============ CHAT HUB MODAL ============ */
#chat-hub-modal .modal, #chat-modal .modal {
    background: rgba(15, 20, 35, 0.85);
    backdrop-filter: blur(40px) saturate(2);
    -webkit-backdrop-filter: blur(40px) saturate(2);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 -20px 80px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.1);
}
.chat-hub-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 0;
    background: rgba(0,0,0,0.2);
}
.chat-hub-tab {
    flex: 1;
    padding: 16px 0;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-family);
    position: relative;
    letter-spacing: 0.5px;
}
.chat-hub-tab.active {
    color: white;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}
.chat-hub-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15%;
    width: 70%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-primary));
    border-radius: 4px 4px 0 0;
    box-shadow: 0 -2px 10px rgba(34,214,90,0.5);
}
.chat-hub-tab:active {
    background: rgba(255,255,255,0.05);
}
.chat-hub-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 16px;
    background: rgba(255,255,255,0.02);
    border-radius: 24px;
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.chat-hub-item:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.chat-hub-item:active {
    transform: scale(0.97);
    background: rgba(255,255,255,0.08);
}
.chat-hub-item-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(34,214,90,0.2), rgba(34,214,90,0.05));
    border: 1px solid rgba(34,214,90,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--accent-primary-light);
    flex-shrink: 0;
    box-shadow: inset 0 0 10px rgba(34,214,90,0.2);
}
.chat-hub-item-avatar--clan {
    background: linear-gradient(135deg, rgba(124,92,252,0.2), rgba(124,92,252,0.05));
    border-color: rgba(124,92,252,0.3);
    color: #B8A9FF;
    box-shadow: inset 0 0 10px rgba(124,92,252,0.2);
}
.chat-hub-item-info {
    flex: 1;
    min-width: 0;
}
.chat-hub-item-name {
    font-weight: 800;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.2px;
}
.chat-hub-item-preview {
    font-size: 0.82rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 4px;
    font-weight: 500;
}
.chat-hub-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
}
.chat-hub-empty-icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 16px;
    opacity: 0.4;
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.1));
}

/* Chat Hub Unread Badge */
.chat-hub-unread-badge {
    background: linear-gradient(135deg, var(--accent-fire), #FF3D3D);
    color: white;
    font-size: 0.7rem;
    font-weight: 900;
    padding: 4px 8px;
    border-radius: 12px;
    min-width: 22px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(255,82,82,0.4);
    border: 1px solid rgba(255,255,255,0.2);
}

/* ============ SWIPE-TO-DELETE NOTIFICATIONS ============ */
.notif-swipe-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    margin-bottom: 4px;
    margin-left: 8px;
    margin-right: 8px;
    flex-shrink: 0;
}
.notif-delete-layer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 120px;
    background: linear-gradient(90deg, transparent, var(--accent-danger));
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 16px;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 16px;
    pointer-events: none;
}
.notif-swipe-wrapper .notif-item.bubble-item {
    margin: 0;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, opacity 0.3s ease;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ============ SWIPE-TO-DELETE CHATS ============ */
.chat-swipe-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    margin-bottom: 8px;
}
.chat-delete-layer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 120px;
    background: linear-gradient(90deg, transparent, var(--accent-danger));
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 16px;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    pointer-events: none;
}
.chat-swipe-wrapper .chat-hub-item {
    margin: 0;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* =====================================================
   PREMIUM PROFILE REDESIGN — 2026 Dark Luxury UI
   ===================================================== */

/* ─── HERO ─── */
.pro-hero { position: relative; padding: 40px 20px 28px; overflow: hidden; text-align: center; }
.pro-hero__bg { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(124,92,252,0.15) 0%, rgba(34,214,90,0.08) 40%, transparent 100%); z-index: 0; }
.pro-hero__particles { position: absolute; inset: 0; z-index: 0; background-image: radial-gradient(1px 1px at 15% 25%, rgba(124,92,252,0.4) 0%, transparent 100%), radial-gradient(1px 1px at 75% 15%, rgba(34,214,90,0.35) 0%, transparent 100%), radial-gradient(1.5px 1.5px at 50% 70%, rgba(255,179,0,0.25) 0%, transparent 100%); background-size: 200% 200%; animation: particleDrift 20s ease-in-out infinite alternate; }
.pro-hero__content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; }

/* ─── AVATAR RING ─── */
.pro-avatar-wrapper { position: relative; width: 110px; height: 110px; margin-bottom: 4px; }
.pro-avatar-ring { position: absolute; inset: 0; width: 110px; height: 110px; transform: rotate(-90deg); }
.pro-avatar-ring__track { fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 5; }
.pro-avatar-ring__fill { fill: none; stroke: url(#xpGradient); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 339.292; stroke-dashoffset: 305; transition: stroke-dashoffset 1.5s cubic-bezier(0.4,0,0.2,1); filter: drop-shadow(0 0 6px rgba(34,214,90,0.5)); stroke: var(--accent-primary); }
.pro-avatar { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 88px; height: 88px; border-radius: 50%; background: var(--gradient-primary); display: flex; align-items: center; justify-content: center; font-size: 2.2rem; font-weight: 800; color: white; overflow: hidden; background-size: cover; background-position: center; box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 0 0 3px rgba(255,255,255,0.1); }
.pro-avatar-edit { position: absolute; bottom: 2px; right: 2px; width: 30px; height: 30px; background: var(--bg-secondary); border: 2px solid rgba(255,255,255,0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; cursor: pointer; z-index: 3; transition: transform 0.2s; }
.pro-avatar-edit:active { transform: scale(0.9); }
.pro-level-badge { position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%); background: var(--gradient-primary); color: white; font-size: 0.6rem; font-weight: 900; padding: 3px 10px; border-radius: 10px; letter-spacing: 1px; box-shadow: 0 2px 12px rgba(34,214,90,0.4); border: 2px solid var(--bg-primary); z-index: 3; }

/* ─── NAME / STORE ─── */
.pro-hero__name { font-size: 1.7rem; font-weight: 900; letter-spacing: -0.5px; line-height: 1.1; }
.pro-hero__store { font-size: 0.82rem; color: var(--text-secondary); }

/* ─── RANK PILL ─── */
.pro-rank-pill { display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(135deg, rgba(124,92,252,0.2), rgba(124,92,252,0.08)); border: 1px solid rgba(124,92,252,0.3); padding: 6px 16px; border-radius: 20px; margin-top: 2px; }
.pro-rank-pill__icon { font-size: 0.85rem; }
.pro-rank-pill__label { font-size: 0.78rem; font-weight: 800; color: #B8A9FF; text-transform: uppercase; letter-spacing: 1px; }

/* ─── XP BAR ─── */
.pro-xp-bar { width: 100%; max-width: 280px; margin-top: 6px; }
.pro-xp-bar__track { width: 100%; height: 8px; background: rgba(255,255,255,0.08); border-radius: 4px; overflow: hidden; }
.pro-xp-bar__fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary)); transition: width 1.2s cubic-bezier(0.4,0,0.2,1); position: relative; }
.pro-xp-bar__fill::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent); animation: none; }
.pro-xp-bar__labels { display: flex; justify-content: space-between; margin-top: 4px; font-size: 0.68rem; color: var(--text-muted); font-weight: 600; }

/* ─── META (Streak + Status) ─── */
.pro-hero__meta { display: flex; gap: 10px; margin-top: 4px; }
.pro-streak-badge { display: inline-flex; align-items: center; gap: 5px; background: rgba(255,109,58,0.12); border: 1px solid rgba(255,109,58,0.25); padding: 5px 12px; border-radius: 16px; font-size: 0.75rem; font-weight: 700; color: var(--accent-fire); }
.pro-streak-fire { font-size: 0.85rem; animation: fireGlow 1.5s ease-in-out infinite alternate; }
.pro-status-pill { display: inline-flex; align-items: center; gap: 4px; background: rgba(34,214,90,0.1); border: 1px solid rgba(34,214,90,0.2); padding: 5px 12px; border-radius: 16px; font-size: 0.72rem; font-weight: 600; color: var(--accent-primary); }

/* ─── CONTENT ─── */
.pro-content { padding: 0 16px 24px; }

/* ─── SECTIONS ─── */
.pro-section { margin-bottom: 36px; padding: 0 4px; }
.pro-section__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.pro-section__title { font-size: 0.95rem; font-weight: 800; letter-spacing: -0.3px; }
.pro-section__badge { font-size: 0.7rem; font-weight: 800; color: var(--accent-primary); background: rgba(34,214,90,0.12); padding: 4px 10px; border-radius: 8px; }
.pro-section__counter { font-size: 0.75rem; font-weight: 800; color: var(--accent-primary); }

/* ─── STAT CARDS ─── */
.pro-stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.pro-stat-card { position: relative; background: rgba(255,255,255,0.04);  border-radius: 20px; padding: 22px 16px 18px; text-align: center; border: 1px solid rgba(255,255,255,0.08); box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 4px 16px rgba(0,0,0,0.1); overflow: hidden; transition: transform 0.2s, box-shadow 0.3s; }
.pro-stat-card:active { transform: scale(0.97); }
.pro-stat-card__value { display: block; font-size: 1.5rem; font-weight: 900; letter-spacing: -1px; line-height: 1; }
.pro-stat-card__label { display: block; font-size: 0.6rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 6px; font-weight: 600; }
.pro-stat-card__icon { position: absolute; top: 8px; right: 8px; font-size: 0.9rem; opacity: 0.4; }
.pro-stat-card--glow-green { border-color: rgba(34,214,90,0.15); }
.pro-stat-card--glow-green .pro-stat-card__value { color: var(--accent-primary-light); }
.pro-stat-card--glow-purple { border-color: rgba(124,92,252,0.15); }
.pro-stat-card--glow-purple .pro-stat-card__value { color: #B8A9FF; }
.pro-stat-card--glow-fire { border-color: rgba(255,109,58,0.15); }
.pro-stat-card--glow-fire .pro-stat-card__value { color: #FF9B73; }
.pro-stat-card--glow-gold { border-color: rgba(255,179,0,0.15); }
.pro-stat-card--glow-gold .pro-stat-card__value { color: #FFD166; }
.pro-stat-card--glow-teal { border-color: rgba(0,206,201,0.15); }
.pro-stat-card--glow-teal .pro-stat-card__value { color: #5DE8E4; }
.pro-stat-card--glow-blue { border-color: rgba(59,130,246,0.15); }
.pro-stat-card--glow-blue .pro-stat-card__value { color: #93B8FC; }

/* ─── CAREER PATH ─── */
.pro-career { background: rgba(255,255,255,0.03);  border-radius: 20px; padding: 24px 20px; border: 1px solid rgba(255,255,255,0.08); box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 4px 16px rgba(0,0,0,0.15); }
.pro-career__track { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.pro-career__step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; }
.pro-career__node { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; border: 2px solid transparent; transition: all 0.3s; }
.pro-career__node--done { background: rgba(34,214,90,0.15); border-color: var(--accent-primary); box-shadow: 0 0 12px rgba(34,214,90,0.25); }
.pro-career__node--active { background: rgba(255,179,0,0.15); border-color: var(--accent-warning); box-shadow: 0 0 16px rgba(255,179,0,0.3); animation: rankPulse 2s ease-in-out infinite; }
.pro-career__node--locked { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.1); opacity: 0.45; }
.pro-career__label { font-size: 0.58rem; font-weight: 700; color: var(--text-muted); white-space: nowrap; text-transform: uppercase; letter-spacing: 0.3px; }
.pro-career__line { flex: 1; height: 3px; margin: 0 4px; border-radius: 2px; margin-bottom: 22px; }
.pro-career__line--done { background: var(--accent-primary); }
.pro-career__line--pending { background: rgba(255,255,255,0.08); }
.pro-career__unlock { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 0.78rem; color: var(--text-secondary); background: rgba(255,255,255,0.04); padding: 8px 16px; border-radius: 10px; }
.pro-career__unlock-icon { font-size: 0.9rem; }
.pro-career__unlock strong { color: var(--accent-primary); }

/* ─── MISSIONS ─── */
.pro-missions { display: flex; flex-direction: column; gap: 12px; }
.pro-mission { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,0.03);  border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 16px 20px; transition: all 0.2s; box-shadow: inset 0 1px 0 rgba(255,255,255,0.05); }
.pro-mission:active { transform: scale(0.98); background: rgba(34,214,90,0.05); }
.pro-mission__check { font-size: 1.1rem; flex-shrink: 0; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: rgba(255,255,255,0.06); }
.pro-mission--done .pro-mission__check { background: rgba(34,214,90,0.2); }
.pro-mission__info { flex: 1; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pro-mission__name { font-size: 0.85rem; font-weight: 600; }
.pro-mission__reward { font-size: 0.72rem; font-weight: 800; color: var(--accent-primary); white-space: nowrap; }

/* ─── BADGE TABS ─── */
.pro-badge-tabs { display: flex; gap: 6px; margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pro-badge-tabs::-webkit-scrollbar { display: none; }
.pro-badge-tab { flex-shrink: 0; padding: 7px 14px; border-radius: 10px; font-size: 0.72rem; font-weight: 700; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.06); color: var(--text-muted); cursor: pointer; font-family: var(--font-family); transition: all 0.2s; text-transform: uppercase; letter-spacing: 0.5px; }
.pro-badge-tab:active { transform: scale(0.95); }
.pro-badge-tab.active { background: rgba(124,92,252,0.15); border-color: rgba(124,92,252,0.3); color: #B8A9FF; }
.pro-badge-tab[data-rarity="common"].active { background: rgba(34,214,90,0.12); border-color: rgba(34,214,90,0.25); color: var(--accent-primary); }
.pro-badge-tab[data-rarity="rare"].active { background: rgba(59,130,246,0.12); border-color: rgba(59,130,246,0.25); color: #93B8FC; }
.pro-badge-tab[data-rarity="epic"].active { background: rgba(124,92,252,0.15); border-color: rgba(124,92,252,0.3); color: #B8A9FF; }
.pro-badge-tab[data-rarity="legendary"].active { background: rgba(255,179,0,0.12); border-color: rgba(255,179,0,0.25); color: #FFD166; }

/* ─── BADGES GRID (premium) ─── */
.pro-badges-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; width: 100%; overflow: hidden; }
.pro-badges-grid .badge-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px 8px; border-radius: 12px; cursor: pointer; position: relative; transition: transform 0.15s; text-align: center; min-width: 0; overflow: hidden; }
.pro-badges-grid .badge--earned { background: rgba(255,255,255,0.12);  border: 1px solid rgba(255,255,255,0.15); box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 4px 12px rgba(0,0,0,0.3); }
.pro-badges-grid .badge--locked { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); opacity: 0.8;  }
.pro-badges-grid .badge--earned[data-rarity="rare"] { border-color: rgba(59,130,246,0.5); background: rgba(59,130,246,0.15); }
.pro-badges-grid .badge--earned[data-rarity="epic"] { border-color: rgba(124,92,252,0.5); background: rgba(124,92,252,0.15); }
.pro-badges-grid .badge--earned[data-rarity="legendary"] { border-color: rgba(255,179,0,0.5); background: rgba(255,179,0,0.2); box-shadow: 0 0 16px rgba(255,179,0,0.25); }
.pro-badges-grid .badge-rarity-dot { width: 6px; height: 6px; border-radius: 50%; position: absolute; top: 6px; right: 6px; }
.rarity-common { background: var(--accent-primary); }
.rarity-rare { background: #3B82F6; }
.rarity-epic { background: #7C5CFC; }
.rarity-legendary { background: #FFB300; box-shadow: 0 0 8px rgba(255,179,0,0.5); }

/* ─── SOCIAL ─── */
.pro-social { display: flex; flex-direction: column; gap: 14px; }
.pro-social__clan { background: rgba(255,255,255,0.03);  border: 1px solid rgba(255,255,255,0.08); border-radius: 20px; padding: 20px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 4px 16px rgba(0,0,0,0.1); }
.pro-social__clan-header { display: flex; align-items: center; gap: 14px; }
.pro-social__clan-emoji { font-size: 2rem; }
.pro-social__clan-info { display: flex; flex-direction: column; gap: 2px; }
.pro-social__clan-name { font-size: 1rem; font-weight: 800; }
.pro-social__clan-rank { font-size: 0.75rem; color: var(--text-muted); }
.pro-social__actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pro-social__btn { display: flex; flex-direction: column; align-items: center; gap: 6px; background: rgba(255,255,255,0.03);  border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 16px 8px; cursor: pointer; font-family: var(--font-family); font-size: 0.72rem; font-weight: 700; color: var(--text-secondary); transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); box-shadow: inset 0 1px 0 rgba(255,255,255,0.05); }
.pro-social__btn span:first-child { font-size: 1.4rem; margin-bottom: 2px; }
.pro-social__btn:active { transform: scale(0.96) translateY(1px); background: rgba(255,255,255,0.06); }

/* ─── FRIEND REQUEST NOTIFICATION DOT ─── */
#btn-my-friends {
    position: relative;
    overflow: visible;
}
.friend-req-dot {
    position: absolute;
    top: -7px;
    right: -7px;
    width: 14px;
    height: 14px;
    min-width: 14px;
    min-height: 14px;
    border-radius: 50%;
    background: #FF3B30;
    border: 2.5px solid #0a0e17;
    box-shadow: 0 0 0 1px rgba(255,59,48,0.4), 0 2px 8px rgba(255,59,48,0.7);
    z-index: 10;
    flex-shrink: 0;
    animation: none;
    pointer-events: none;
}
.friend-req-dot.hidden { display: none !important; }
@keyframes friendDotPulse {
    0%, 100% { box-shadow: 0 0 0 1px rgba(255,59,48,0.4), 0 2px 8px rgba(255,59,48,0.7); }
    50%       { box-shadow: 0 0 0 4px rgba(255,59,48,0.15), 0 2px 12px rgba(255,59,48,0.9); }
}



/* ─── CULTURE / ABOUT ─── */
.pro-edit-btn { background: none; border: none; cursor: pointer; font-size: 1.2rem; padding: 4px; transition: transform 0.2s; }
.pro-edit-btn:active { transform: scale(0.9); }
.pro-culture { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pro-culture__card { background: rgba(255,255,255,0.03);  border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 16px; display: flex; align-items: flex-start; gap: 12px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.05); }
.pro-culture__icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 1px; }
.pro-culture__data { display: flex; flex-direction: column; gap: 4px; overflow: hidden; flex: 1; }
.pro-culture__label { font-size: 0.6rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; }
.pro-culture__value { font-size: 0.85rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-primary); }
.pro-culture__progress { width: 100%; height: 6px; background: rgba(0,0,0,0.2); border-radius: 3px; overflow: hidden; margin-top: 4px; box-shadow: inset 0 1px 2px rgba(0,0,0,0.5); }
.pro-culture__progress-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--accent-purple), var(--accent-primary)); transition: width 1s cubic-bezier(0.25, 1, 0.5, 1); position: relative; }

/* ==================== PREMIUM RECEIPT UPLOAD ==================== */
.premium-upload-card { background: linear-gradient(145deg, rgba(30,41,59,0.7), rgba(15,23,42,0.8)); border: 1px solid rgba(255,255,255,0.08); border-radius: 24px; padding: 40px 24px; text-align: center; margin-top: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.5);  }
.upload-icon-wrapper { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg, rgba(34,214,90,0.2), rgba(34,214,90,0.05)); border: 1px solid rgba(34,214,90,0.3); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; box-shadow: 0 0 20px rgba(34,214,90,0.1); }
.upload-icon { font-size: 2.5rem; }
.upload-title { font-size: 1.5rem; font-weight: 800; color: #FFF; margin-bottom: 12px; }
.upload-desc { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 30px; }
.upload-guidelines { margin-top: 30px; padding: 0 16px; }
.guidelines-title { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; margin-bottom: 16px; }
.guidelines-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.guidelines-list li { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,0.03); padding: 12px 16px; border-radius: 12px; font-size: 0.9rem; color: var(--text-primary); }
.gl-icon { font-size: 1.2rem; }

/* Scanning Flow */
.scanning-container { display: flex; flex-direction: column; gap: 20px; margin-top: 20px; }
.scanning-preview-wrapper { position: relative; width: 100%; height: 300px; border-radius: 20px; overflow: hidden; background: #000; border: 2px solid rgba(255,255,255,0.1); }
.scanning-preview-wrapper img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0.8) contrast(1.2); }
.scanning-scanner-line { position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--accent-primary); box-shadow: 0 0 20px 5px rgba(34,214,90,0.5); animation: scanLine 2s linear infinite; z-index: 10; }
@keyframes scanLine { 0% { top: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.scanning-crop-box { position: absolute; top: 10%; left: 10%; width: 80%; height: 80%; border: 2px dashed rgba(255,255,255,0.5); border-radius: 8px; transition: all 0.5s ease; z-index: 5; }
.scanning-status-box { text-align: center; padding: 24px; background: rgba(255,255,255,0.03); border-radius: 16px; }
.scanning-spinner { width: 40px; height: 40px; border: 4px solid rgba(34,214,90,0.2); border-top: 4px solid var(--accent-primary); border-radius: 50%; margin: 0 auto 16px; animation: spin 1s linear infinite; }
.scanning-title { font-size: 1.2rem; font-weight: 700; color: #FFF; margin-bottom: 8px; }
.scanning-desc { font-size: 0.85rem; color: var(--text-muted); }

/* Verification */
.verification-container { display: flex; flex-direction: column; gap: 16px; padding-bottom: 100px; }
.verification-thumbnail { position: relative; width: 100%; height: 150px; border-radius: 16px; overflow: hidden; background: #000; }
.verification-thumbnail img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }
.ocr-data-card { background: var(--bg-card); border-radius: 16px; padding: 20px; border: 1px solid var(--border-light); }
.ocr-header { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border-subtle); }
.ocr-title { font-size: 1.1rem; font-weight: 800; color: #FFF; }
.ocr-meta-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-bottom: 20px; width: 100%; box-sizing: border-box; }
.ocr-meta-item { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ocr-meta-label { font-size: 0.8rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.ocr-input { width: 100%; min-width: 0; background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 10px 12px; color: #FFF; font-size: 0.95rem; font-family: 'Inter', sans-serif; transition: all 0.2s; box-sizing: border-box; }
.ocr-input:focus { outline: none; border-color: var(--accent-primary); background: rgba(34,214,90,0.05); }
.ocr-products-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.ocr-products-list { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.ocr-product-item { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.ocr-product-row { display: flex; gap: 10px; align-items: center; }
.ocr-product-name { flex: 1; background: transparent; border: none; color: #FFF; font-size: 0.95rem; font-weight: 600; outline: none; border-bottom: 1px solid transparent; width: 100%; }
.ocr-product-name:focus { border-bottom: 1px solid var(--accent-primary); }
.ocr-product-price, .ocr-product-qty { background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; padding: 6px; color: #FFF; font-size: 0.9rem; text-align: center; }
.ocr-cat-select { width: 100%; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 10px; color: #FFF; font-size: 0.9rem; appearance: none; }
.btn-remove-product { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-danger); color: #FFF; border: none; font-size: 0.8rem; font-weight: 900; display: flex; align-items: center; justify-content: center; cursor: pointer; }

.rewards-preview-card { background: linear-gradient(135deg, rgba(160,49,141,0.1), rgba(0,174,239,0.1)); border: 1px solid rgba(160,49,141,0.3); border-radius: 16px; padding: 20px; }
.rewards-preview-title { font-size: 0.9rem; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; margin-bottom: 16px; }
.rewards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.reward-pill { display: flex; align-items: center; gap: 8px; background: rgba(0,0,0,0.3); padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); }
.reward-pill--xp { border-color: rgba(34,214,90,0.3); background: rgba(34,214,90,0.05); }
.reward-pill--combo { border-color: rgba(247,148,29,0.3); background: rgba(247,148,29,0.05); }
.reward-pill--quest { border-color: rgba(0,174,239,0.3); background: rgba(0,174,239,0.05); }
.reward-val { font-weight: 800; font-size: 1rem; color: #FFF; }
.reward-label { font-size: 0.75rem; color: var(--text-muted); }

.verification-actions { position: fixed; bottom: 0; left: 0; width: 100%; padding: 20px; background: linear-gradient(0deg, var(--bg-primary) 70%, transparent); z-index: 100; }

.validation-warnings { background: rgba(227,30,36,0.1); border: 1px solid var(--accent-danger); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.val-warning-item { display: flex; align-items: flex-start; gap: 8px; color: #ff8a8a; font-size: 0.85rem; margin-bottom: 8px; }
.val-warning-item:last-child { margin-bottom: 0; }

/* Success */
.success-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60vh; text-align: center; padding: 20px; }
.success-icon-wrapper { width: 100px; height: 100px; border-radius: 50%; background: var(--accent-primary); display: flex; align-items: center; justify-content: center; font-size: 3rem; margin-bottom: 24px; animation: successPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: 0 0 40px rgba(34,214,90,0.4); }
@keyframes successPop { 0% { transform: scale(0); } 100% { transform: scale(1); } }
.success-title { font-size: 2rem; font-weight: 900; color: #FFF; margin-bottom: 16px; letter-spacing: -0.5px; }
.success-desc { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 30px; max-width: 300px; }
.success-rewards { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 300px; margin-bottom: 40px; }
.success-actions { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 300px; }
/* ─── BOTTOM ACTIONS ─── */
.pro-bottom-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; padding-bottom: 8px; }

/* ─── FLOATING CTA ─── */
.pro-floating-cta { display: none; }
#screen-profile.active ~ .pro-floating-cta,
#screen-profile.active .pro-floating-cta { display: flex; gap: 8px; position: fixed; bottom: calc(var(--nav-height) + 12px); left: 50%; transform: translateX(-50%); z-index: 90; max-width: calc(var(--max-width) - 32px); width: calc(100% - 32px); }
.pro-floating-cta__btn { flex: 1; padding: 13px 16px; border-radius: 14px; font-family: var(--font-family); font-size: 0.82rem; font-weight: 700; cursor: pointer; border: 1px solid rgba(255,255,255,0.1); background: rgba(10,14,23,0.9);  color: var(--text-primary); transition: all 0.2s; text-align: center; box-shadow: 0 4px 20px rgba(0,0,0,0.4); }
.pro-floating-cta__btn:active { transform: scale(0.97); }
.pro-floating-cta__btn--primary { background: var(--gradient-primary); border-color: transparent; color: white; box-shadow: 0 4px 20px rgba(34,214,90,0.35); }

/* ─── NEON BADGE EFFECTS ─── */
.badge--earned { 
    position: relative; 
    overflow: hidden; 
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.badge--earned:hover { 
    transform: translateY(-4px) scale(1.05); 
    z-index: 2;
}
.badge--earned[data-rarity="common"]:hover { 
    box-shadow: 0 0 20px rgba(34,214,90,0.4); 
    border-color: var(--accent-primary);
}
.badge--earned[data-rarity="rare"]:hover { 
    box-shadow: 0 0 20px rgba(59,130,246,0.5); 
    border-color: #3B82F6;
}
.badge--earned[data-rarity="epic"]:hover { 
    box-shadow: 0 0 25px rgba(124,92,252,0.6); 
    border-color: #7C5CFC;
}
.badge--earned[data-rarity="legendary"]:hover { 
    box-shadow: 0 0 30px rgba(255,179,0,0.8); 
    border-color: #FFB300;
}

@keyframes badgeUnlockPulse {
    0% { transform: scale(0.8); opacity: 0; box-shadow: 0 0 0 0 rgba(255,255,255,0.7); }
    50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 30px 10px rgba(255,255,255,0.3); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

.badge-unlock-anim {
    animation: badgeUnlockPulse 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* =====================================================
   PREMIUM PLAYER PROFILE — Full-Screen Social Profile
   ===================================================== */
@keyframes ppSlideIn { 0% { transform: translateY(100%); } 100% { transform: translateY(0); } }
@keyframes ppSlideOut { 0% { transform: translateY(0); } 100% { transform: translateY(100%); } }
@keyframes ppParticleDrift { 0% { background-position: 0% 0%; } 100% { background-position: 100% 100%; } }
@keyframes ppRingDraw { 0% { stroke-dashoffset: 339.292; } }

.pp-overlay {
    position: fixed; inset: 0; z-index: 400;
    background: rgba(0,0,0,0.85);
    
}
.pp-overlay.hidden { display: none; }
.pp-container {
    position: absolute; inset: 0;
    background: var(--bg-primary);
    display: flex; flex-direction: column;
    animation: ppSlideIn 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    max-width: var(--max-width); margin: 0 auto;
}

/* Top Bar */
.pp-topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top, 0px));
    background: rgba(10,14,23,0.9); 
    border-bottom: 1px solid rgba(255,255,255,0.06);
    z-index: 5; flex-shrink: 0;
}
.pp-topbar__title { font-size: 0.9rem; font-weight: 800; letter-spacing: -0.3px; }
.pp-back {
    width: 36px; height: 36px; border-radius: 12px;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-primary); display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s; flex-shrink: 0;
}
.pp-back:active { transform: scale(0.9); background: rgba(255,255,255,0.12); }

/* Scroll */
.pp-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }

/* Hero */
.pp-hero { position: relative; padding: 36px 20px 24px; overflow: hidden; text-align: center; }
.pp-hero__bg {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(124,92,252,0.18) 0%, rgba(34,214,90,0.08) 50%, transparent 100%);
    z-index: 0;
}
.pp-hero__particles {
    position: absolute; inset: 0; z-index: 0;
    background-image:
        radial-gradient(1.5px 1.5px at 10% 20%, rgba(124,92,252,0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 80% 10%, rgba(34,214,90,0.4) 0%, transparent 100%),
        radial-gradient(2px 2px at 45% 75%, rgba(255,179,0,0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 60% 40%, rgba(59,130,246,0.35) 0%, transparent 100%);
    background-size: 200% 200%;
    animation: none;
}
.pp-hero__content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }

/* Avatar */
.pp-avatar-wrapper { position: relative; width: 120px; height: 120px; margin-bottom: 6px; }
.pp-avatar-ring {
    position: absolute; inset: 0; width: 120px; height: 120px; transform: rotate(-90deg);
}
.pp-avatar-ring__track { fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 4.5; }
.pp-avatar-ring__fill {
    fill: none; stroke: var(--accent-primary); stroke-width: 4.5;
    stroke-linecap: round; stroke-dasharray: 339.292; stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 1.8s cubic-bezier(0.4,0,0.2,1);
    filter: drop-shadow(0 0 8px rgba(34,214,90,0.5));
}
.pp-avatar {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 96px; height: 96px; border-radius: 50%;
    background: var(--gradient-primary); display: flex; align-items: center; justify-content: center;
    font-size: 2.4rem; font-weight: 800; color: white; overflow: hidden;
    background-size: cover; background-position: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), inset 0 0 0 3px rgba(255,255,255,0.1);
}
.pp-level-badge {
    position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%);
    background: var(--gradient-primary); color: white;
    font-size: 0.6rem; font-weight: 900; padding: 3px 12px; border-radius: 10px;
    letter-spacing: 1px; box-shadow: 0 2px 12px rgba(34,214,90,0.4);
    border: 2px solid var(--bg-primary); z-index: 3;
}
.pp-online-dot {
    position: absolute; top: 8px; right: 8px; width: 14px; height: 14px;
    border-radius: 50%; background: var(--accent-primary);
    border: 3px solid var(--bg-primary); z-index: 3;
    box-shadow: 0 0 8px rgba(34,214,90,0.6);
}

/* Name / Rank */
.pp-name { font-size: 1.8rem; font-weight: 900; letter-spacing: -0.5px; line-height: 1.1; margin: 0; }
.pp-rank-pill {
    display: inline-flex; align-items: center; gap: 6px;
    background: linear-gradient(135deg, rgba(124,92,252,0.2), rgba(124,92,252,0.08));
    border: 1px solid rgba(124,92,252,0.3); padding: 5px 16px; border-radius: 20px;
}
.pp-rank-pill__icon { font-size: 0.85rem; }
.pp-rank-pill__label { font-size: 0.75rem; font-weight: 800; color: #B8A9FF; text-transform: uppercase; letter-spacing: 1px; }

/* XP Bar */
.pp-xp-bar { width: 100%; max-width: 260px; }
.pp-xp-bar__track { width: 100%; height: 7px; background: rgba(255,255,255,0.08); border-radius: 4px; overflow: hidden; }
.pp-xp-bar__fill {
    height: 100%; border-radius: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transition: width 1.5s cubic-bezier(0.4,0,0.2,1); width: 0%;
    position: relative;
}
.pp-xp-bar__fill::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    animation: none;
}
.pp-xp-bar__labels { display: flex; justify-content: space-between; margin-top: 4px; font-size: 0.65rem; color: var(--text-muted); font-weight: 600; }

/* Meta Chips */
.pp-hero__meta { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pp-meta-chip {
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
    padding: 4px 12px; border-radius: 14px; font-size: 0.72rem; font-weight: 600; color: var(--text-secondary);
}
.pp-meta-chip--fire { background: rgba(255,109,58,0.1); border-color: rgba(255,109,58,0.2); color: var(--accent-fire); }
.pp-meta-chip--muted { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.05); color: var(--text-muted); }

/* Action Buttons */
.pp-actions { display: flex; gap: 8px; padding: 16px 16px 8px; }
.pp-action-btn {
    flex: 1; padding: 12px 8px; border-radius: 14px; border: none;
    font-family: var(--font-family); font-size: 0.82rem; font-weight: 700;
    cursor: pointer; transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex; align-items: center; justify-content: center; gap: 4px;
}
.pp-action-btn:active { transform: scale(0.95); }
.pp-action-btn--primary {
    background: var(--gradient-primary); color: white;
    box-shadow: 0 4px 16px rgba(34,214,90,0.35);
}
.pp-action-btn--secondary {
    background: rgba(124,92,252,0.15); border: 1px solid rgba(124,92,252,0.3);
    color: #B8A9FF;
}
.pp-action-btn--ghost {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-secondary);
}

/* Sections */
.pp-section { padding: 0 16px; margin-top: 24px; }
.pp-section__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.pp-section__title { font-size: 0.95rem; font-weight: 800; letter-spacing: -0.3px; margin: 0; }
.pp-section__counter { font-size: 0.75rem; font-weight: 800; color: var(--accent-primary); }

/* Stats Grid */
.pp-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pp-stat {
    background: rgba(255,255,255,0.03); 
    border: 1px solid rgba(255,255,255,0.06); border-radius: 16px;
    padding: 14px 10px; text-align: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    transition: transform 0.2s;
}
.pp-stat:active { transform: scale(0.96); }
.pp-stat__value { display: block; font-size: 1.3rem; font-weight: 900; letter-spacing: -0.5px; line-height: 1; }
.pp-stat__label { display: block; font-size: 0.58rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; margin-top: 5px; font-weight: 600; }
.pp-stat__icon { font-size: 0.85rem; display: block; margin-bottom: 4px; opacity: 0.6; }
.pp-stat--green .pp-stat__value { color: var(--accent-primary-light); }
.pp-stat--purple .pp-stat__value { color: #B8A9FF; }
.pp-stat--fire .pp-stat__value { color: #FF9B73; }
.pp-stat--gold .pp-stat__value { color: #FFD166; }
.pp-stat--teal .pp-stat__value { color: #5DE8E4; }
.pp-stat--blue .pp-stat__value { color: #93B8FC; }

/* Categories */
.pp-categories { display: flex; flex-direction: column; gap: 10px; }
.pp-cat-item {
    display: flex; align-items: center; gap: 12px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px; padding: 12px 14px;
}
.pp-cat-icon { font-size: 1.3rem; flex-shrink: 0; width: 32px; text-align: center; }
.pp-cat-info { flex: 1; min-width: 0; }
.pp-cat-name { font-size: 0.82rem; font-weight: 700; margin-bottom: 4px; }
.pp-cat-bar { height: 6px; background: rgba(255,255,255,0.08); border-radius: 3px; overflow: hidden; }
.pp-cat-bar__fill {
    height: 100%; border-radius: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}
.pp-cat-count { font-size: 0.8rem; font-weight: 800; color: var(--accent-primary); min-width: 40px; text-align: right; }
.pp-cat-percent { font-size: 0.65rem; color: var(--text-muted); text-align: right; min-width: 30px; }

/* Badges Showcase */
.pp-badges-showcase { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pp-badges-showcase::-webkit-scrollbar { display: none; }
.pp-badge-card {
    flex-shrink: 0; width: 80px; display: flex; flex-direction: column; align-items: center; gap: 4px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px; padding: 14px 8px; text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.pp-badge-card[data-rarity="rare"] { border-color: rgba(59,130,246,0.3); background: rgba(59,130,246,0.06); }
.pp-badge-card[data-rarity="epic"] { border-color: rgba(124,92,252,0.3); background: rgba(124,92,252,0.06); }
.pp-badge-card[data-rarity="legendary"] { border-color: rgba(255,179,0,0.35); background: rgba(255,179,0,0.08); box-shadow: 0 0 12px rgba(255,179,0,0.12); }
.pp-badge-card__icon { font-size: 1.8rem; }
.pp-badge-card__name { font-size: 0.6rem; font-weight: 700; color: var(--text-secondary); line-height: 1.2; }
.pp-badges-empty {
    text-align: center; padding: 20px; color: var(--text-muted); font-size: 0.85rem;
    background: rgba(255,255,255,0.02); border-radius: 14px; border: 1px dashed rgba(255,255,255,0.08);
}

/* Duels List */
.pp-duels-list { display: flex; flex-direction: column; gap: 8px; }
.pp-duel-item {
    display: flex; align-items: center; gap: 12px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px; padding: 12px 14px; transition: transform 0.2s;
}
.pp-duel-item:active { transform: scale(0.98); }
.pp-duel-result {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; font-weight: 900; flex-shrink: 0;
}
.pp-duel-result--win { background: rgba(34,214,90,0.15); color: var(--accent-primary); border: 1px solid rgba(34,214,90,0.25); }
.pp-duel-result--loss { background: rgba(255,82,82,0.12); color: var(--accent-danger); border: 1px solid rgba(255,82,82,0.2); }
.pp-duel-result--active { background: rgba(255,179,0,0.12); color: var(--accent-warning); border: 1px solid rgba(255,179,0,0.25); }
.pp-duel-info { flex: 1; min-width: 0; }
.pp-duel-opponent { font-size: 0.85rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-duel-name { font-size: 0.7rem; color: var(--text-muted); }
.pp-duel-score { font-size: 0.82rem; font-weight: 800; color: var(--text-secondary); min-width: 50px; text-align: right; }
.pp-duels-empty { text-align: center; padding: 16px; color: var(--text-muted); font-size: 0.85rem; }

/* Friends Row */
.pp-friends-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.pp-friends-row::-webkit-scrollbar { display: none; }
.pp-friend-chip {
    flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 60px;
}
.pp-friend-avatar {
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--gradient-primary); display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; font-weight: 800; color: white; overflow: hidden;
    background-size: cover; background-position: center;
    border: 2px solid rgba(255,255,255,0.1);
}
.pp-friend-name { font-size: 0.6rem; font-weight: 700; color: var(--text-secondary); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60px; }
.pp-friends-empty { text-align: center; padding: 16px; color: var(--text-muted); font-size: 0.85rem; }

/* Activity Feed */
.pp-feed { display: flex; flex-direction: column; gap: 6px; }
.pp-feed-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04); border-radius: 12px;
}
.pp-feed-icon { font-size: 1.1rem; flex-shrink: 0; }
.pp-feed-text { font-size: 0.8rem; color: var(--text-secondary); flex: 1; }
.pp-feed-time { font-size: 0.65rem; color: var(--text-muted); min-width: 30px; text-align: right; }
.pp-feed-empty { text-align: center; padding: 16px; color: var(--text-muted); font-size: 0.85rem; }

/* Seasons */
.pp-seasons { display: flex; flex-direction: column; gap: 8px; }
.pp-season-item {
    display: flex; align-items: center; gap: 12px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px; padding: 12px 14px;
}
.pp-season-medal { font-size: 1.3rem; flex-shrink: 0; }
.pp-season-info { flex: 1; }
.pp-season-name { font-size: 0.85rem; font-weight: 700; }
.pp-season-rank { font-size: 0.72rem; color: var(--text-muted); }
.pp-season-pos { font-size: 0.82rem; font-weight: 800; color: var(--accent-primary); }

/* Admin Section */
.pp-admin-section { border-top: 1px solid rgba(255,82,82,0.15); padding-top: 20px; margin-top: 30px; }
.pp-admin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pp-admin-card {
    background: rgba(255,82,82,0.04); border: 1px solid rgba(255,82,82,0.12);
    border-radius: 14px; padding: 12px; text-align: center;
}
.pp-admin-card__label { font-size: 0.6rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; margin-bottom: 4px; }
.pp-admin-card__value { font-size: 1rem; font-weight: 800; color: var(--text-primary); }

/* ==================== REPORT CENTER / CONTROL HUB ==================== */
.report-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 24px; }
.report-card { 
    background: linear-gradient(145deg, rgba(30,35,50,0.8), rgba(15,20,35,0.9));
    
    border: 1px solid rgba(255,255,255,0.08); 
    border-radius: 24px; padding: 20px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1); 
    display: flex; flex-direction: column; gap: 6px; 
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
    position: relative; overflow: hidden;
}
.report-card::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at top right, rgba(255,255,255,0.1), transparent 50%); pointer-events: none; }
.report-card:hover { transform: translateY(-4px); box-shadow: 0 15px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.15); }
.report-card--primary { border-color: rgba(34,214,90,0.4); background: linear-gradient(145deg, rgba(34,214,90,0.15), rgba(15,20,35,0.95)); }
.report-card__label { font-size: 0.75rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; z-index: 1; }
.report-card__value { font-size: 2rem; font-weight: 900; color: white; text-shadow: 0 4px 15px rgba(0,0,0,0.3); z-index: 1; }
.report-card__sub { font-size: 0.8rem; color: var(--accent-primary); font-weight: 700; margin-top: 4px; z-index: 1; }

.report-section-title { font-size: 1.2rem; font-weight: 900; color: #FFF; margin: 30px 0 16px; display: flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.report-section-title::before { content: ''; display: block; width: 6px; height: 20px; background: linear-gradient(180deg, var(--accent-primary), var(--accent-purple)); border-radius: 4px; box-shadow: 0 0 10px var(--accent-primary); }

.report-table-wrapper { background: rgba(15,20,35,0.6); backdrop-filter: blur(15px); border: 1px solid rgba(255,255,255,0.06); border-radius: 20px; overflow-x: auto; margin-bottom: 24px; box-shadow: 0 15px 35px rgba(0,0,0,0.3); }
.report-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 500px; }
.report-table th { background: rgba(0,0,0,0.4); padding: 16px 20px; text-align: left; font-size: 0.75rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.report-table td { padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 0.95rem; color: white; font-weight: 600; }
.report-table tr:last-child td { border-bottom: none; }
.report-table tr:hover td { background: rgba(255,255,255,0.03); }

.report-action-btn { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: white; padding: 8px 16px; border-radius: 12px; font-size: 0.85rem; font-weight: 800; cursor: pointer; transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.report-action-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0,0,0,0.3); }
.report-action-btn:active { transform: scale(0.95); }
.report-action-btn--approve { background: linear-gradient(135deg, rgba(34,214,90,0.2), rgba(34,214,90,0.05)); border-color: rgba(34,214,90,0.4); color: var(--accent-primary-light); }
.report-action-btn--approve:hover { background: linear-gradient(135deg, rgba(34,214,90,0.4), rgba(34,214,90,0.1)); }
.report-action-btn--reject { background: linear-gradient(135deg, rgba(220,53,69,0.2), rgba(220,53,69,0.05)); border-color: rgba(220,53,69,0.4); color: #FF6B6B; }
.report-action-btn--reject:hover { background: linear-gradient(135deg, rgba(220,53,69,0.4), rgba(220,53,69,0.1)); }

.report-filter-bar { display: flex; gap: 8px; margin-bottom: 16px; overflow-x: auto; padding-bottom: 4px; }

/* ============ CS:GO LOTTERY ROULETTE — PREMIUM ============ */
.lottery-section {
    margin-top: 24px;
    padding: 20px;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(20,15,40,0.9), rgba(10,8,25,0.95));
    border: 1px solid rgba(168,85,247,0.2);
    box-shadow: 0 0 40px rgba(168,85,247,0.08), inset 0 1px 0 rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}
.lottery-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top center, rgba(168,85,247,0.08) 0%, transparent 60%);
    pointer-events: none;
}
.lottery-title {
    font-size: 1.4rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #c084fc, #a855f7, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}
.lottery-roulette-container {
    position: relative;
    width: 100%;
    height: 140px;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(0,0,0,0.6), rgba(10,5,20,0.8));
    border: 1.5px solid rgba(168,85,247,0.25);
    box-shadow: inset 0 0 60px rgba(0,0,0,0.7), 0 0 30px rgba(168,85,247,0.1);
}
.lottery-marker {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #a855f7, rgba(168,85,247,0.3), #a855f7);
    z-index: 10;
    box-shadow: 0 0 16px rgba(168,85,247,0.8), 0 0 40px rgba(168,85,247,0.3);
}
.lottery-marker::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 16px solid #a855f7;
    filter: drop-shadow(0 2px 8px rgba(168,85,247,0.9));
}
.lottery-marker::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 16px solid #a855f7;
    filter: drop-shadow(0 -2px 8px rgba(168,85,247,0.9));
}
.lottery-strip {
    display: flex;
    gap: 8px;
    padding: 12px 8px;
    will-change: transform;
    height: 100%;
    align-items: center;
}
.lottery-card {
    flex-shrink: 0;
    width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 4px 6px;
    background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    backdrop-filter: blur(4px);
    transition: all 0.15s ease;
}
.lottery-card__avatar {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(124,92,252,0.3), rgba(168,85,247,0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.12);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.lottery-card__name {
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 84px;
    line-height: 1.2;
}
.lottery-card__store {
    font-size: 0.52rem;
    color: rgba(255,255,255,0.45);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 84px;
    line-height: 1.1;
}
.lottery-card--winner {
    border-color: #a855f7 !important;
    background: linear-gradient(145deg, rgba(168,85,247,0.25), rgba(124,58,237,0.15)) !important;
    box-shadow: 0 0 30px rgba(168,85,247,0.5), 0 0 60px rgba(168,85,247,0.2), inset 0 0 20px rgba(168,85,247,0.15) !important;
    animation: lotteryWinnerPulse 1.2s ease-in-out infinite;
    transform: scale(1.05);
}
.lottery-card--winner .lottery-card__avatar {
    border-color: #a855f7;
    box-shadow: 0 0 15px rgba(168,85,247,0.5);
}
@keyframes lotteryWinnerPulse {
    0%, 100% { box-shadow: 0 0 30px rgba(168,85,247,0.5), 0 0 60px rgba(168,85,247,0.2), inset 0 0 20px rgba(168,85,247,0.15); }
    50% { box-shadow: 0 0 45px rgba(168,85,247,0.7), 0 0 80px rgba(168,85,247,0.35), inset 0 0 25px rgba(168,85,247,0.25); }
}
.lottery-winner-reveal {
    animation: winnerReveal 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes winnerReveal {
    0% { opacity: 0; transform: scale(0.3) translateY(30px); }
    60% { opacity: 1; transform: scale(1.08) translateY(-5px); }
    100% { transform: scale(1) translateY(0); }
}
.lottery-screen-flash {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle, rgba(168,85,247,0.4), rgba(255,215,0,0.2), transparent 70%);
    z-index: 9999;
    pointer-events: none;
    animation: screenFlash 1s ease-out forwards;
}
@keyframes screenFlash {
    0% { opacity: 1; }
    100% { opacity: 0; }
}
.lottery-confetti-particle {
    position: fixed;
    width: 10px;
    height: 10px;
    z-index: 10000;
    pointer-events: none;
    animation: confettiFall linear forwards;
}
@keyframes confettiFall {
    0% { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); }
    80% { opacity: 1; }
    100% { opacity: 0; transform: translateY(100vh) rotate(720deg) scale(0.3); }
}

/* ============ CHAT INPUT & BACKGROUND ============ */
.chat-bg-pattern {
    background-color: #0b0f19;
    background-image: radial-gradient(rgba(34,214,90,0.1) 1px, transparent 1px), radial-gradient(rgba(124,92,252,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    position: relative;
}
.chat-bg-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(11,15,25,0.8) 100%);
    pointer-events: none;
    z-index: 0;
}
.chat-messages {
    position: relative;
    z-index: 1;
}
.chat-input-area {
    padding: 12px 16px;
    background: rgba(15, 20, 35, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}
.chat-input-pill {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 12px 18px;
    color: white;
    font-size: 0.95rem;
    font-family: var(--font-family);
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}
.chat-input-pill:focus {
    outline: none;
    background: rgba(255,255,255,0.08);
    border-color: rgba(34,214,90,0.4);
    box-shadow: 0 0 15px rgba(34,214,90,0.1), inset 0 2px 4px rgba(0,0,0,0.2);
}
.chat-send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), #119e44);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(34,214,90,0.4);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}
.chat-send-btn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 6px 20px rgba(34,214,90,0.6);
}
.chat-send-btn:active {
    transform: scale(0.9);
}
.chat-send-btn svg {
    margin-left: -2px; /* slight visual balance */
}

/* Telegram style animated emojis */
.chat-message--emoji-only {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 4rem !important;
    padding: 0 !important;
    animation: emojiPopTelegram 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transform-origin: bottom center;
    line-height: 1.1;
    text-align: center;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.4));
}
.chat-message--emoji-only .chat-message-header {
    display: none !important;
}
@keyframes emojiPopTelegram {
    0% { transform: scale(0.3) translateY(40px); opacity: 0; }
    40% { transform: scale(1.2) translateY(-10px); opacity: 1; filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5)); }
    70% { transform: scale(0.95) translateY(5px); }
    100% { transform: scale(1) translateY(0); opacity: 1; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.4)); }
}
.report-filter-btn { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: var(--text-secondary); padding: 8px 16px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; white-space: nowrap; cursor: pointer; transition: all 0.2s; }
.report-filter-btn.active { background: var(--accent-primary); border-color: var(--accent-primary); color: #000; font-weight: 800; }

.receipt-preview-card { background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; overflow: hidden; margin-bottom: 16px; display: flex; flex-direction: column; }
.receipt-preview-img { width: 100%; max-height: 300px; object-fit: cover; background: #000; border-bottom: 1px solid rgba(255,255,255,0.08); }
.receipt-preview-details { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.receipt-preview-header { display: flex; justify-content: space-between; align-items: flex-start; }
.receipt-preview-user { font-size: 1rem; font-weight: 800; color: #FFF; }
.receipt-preview-store { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }
.receipt-preview-time { font-size: 0.75rem; color: var(--text-muted); }
.receipt-preview-items { margin-top: 8px; padding: 12px; background: rgba(255,255,255,0.03); border-radius: 8px; border: 1px dashed rgba(255,255,255,0.1); }
.receipt-item-row { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 4px; }
.receipt-item-row:last-child { margin-bottom: 0; }
.receipt-item-name { color: var(--text-primary); }
.receipt-item-qty { color: var(--accent-primary); font-weight: 700; }
.receipt-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 16px 16px; }

.fraud-score-high { color: var(--accent-danger); font-weight: 800; display: flex; align-items: center; gap: 4px; }
.fraud-score-med { color: var(--accent-warning); font-weight: 800; display: flex; align-items: center; gap: 4px; }
.fraud-score-low { color: var(--accent-primary); font-weight: 800; display: flex; align-items: center; gap: 4px; }

/* Screen Background Images (Darkened) */
.screen::after {
    content: ''; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1; pointer-events: none;
}
#screen-dashboard::after, #screen-sale::after {
    background: linear-gradient(180deg, rgba(11,14,23,0.45) 0%, rgba(11,14,23,0.65) 100%), url('/assets/bg_dashboard.png') center/cover no-repeat;
}
#screen-leaderboard::after, #screen-duel::after {
    background: linear-gradient(180deg, rgba(11,14,23,0.45) 0%, rgba(11,14,23,0.65) 100%), url('/assets/bg_rating.png') center/cover no-repeat;
}
#screen-profile::after, #screen-auth::after, #screen-admin::after, #screen-quests::after {
    background: linear-gradient(180deg, rgba(11,14,23,0.45) 0%, rgba(11,14,23,0.65) 100%), url('/assets/bg_profile.png') center/cover no-repeat;
}
.screen > * { position: relative; z-index: 1; }
