/* ============================================
   NexusZP - Zombie Plague 5.0 Website
   Dark Theme with Toxic Green Neon + Gold Accents
   ============================================ */

/* === CSS Variables === */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #0f1118;
    --bg-card: #141620;
    --bg-card-hover: #1a1d2e;
    --bg-elevated: #1e2235;
    
    --accent: #39ff14;
    --accent-dim: #2bcc10;
    --accent-glow: rgba(57, 255, 20, 0.3);
    --accent-subtle: rgba(57, 255, 20, 0.08);
    
    --gold: #ffd700;
    --gold-dim: #e6b800;
    --gold-glow: rgba(255, 215, 0, 0.3);
    --gold-subtle: rgba(255, 215, 0, 0.08);
    
    --danger: #ff3a3a;
    --warning: #ffaa00;
    --info: #00bbff;
    
    --nemesis-color: #ff3a3a;
    --survivor-color: #00bbff;
    --infection-color: #39ff14;
    --swarm-color: #ff6600;
    --plague-color: #9b59b6;
    --armageddon-color: #ff4500;
    --chicken-color: #ffd700;
    
    --text-primary: #e8eaf0;
    --text-secondary: #8b8fa3;
    --text-muted: #555770;
    
    --border: rgba(255, 255, 255, 0.06);
    --border-accent: rgba(57, 255, 20, 0.15);
    --border-gold: rgba(255, 215, 0, 0.2);
    
    --font-display: 'Orbitron', sans-serif;
    --font-heading: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px var(--accent-glow);
}

/* === Reset & Base === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--font-body); background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }

/* === Particles === */
#particles { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.particle { position: absolute; width: 2px; height: 2px; background: var(--accent); border-radius: 50%; opacity: 0; animation: particleFloat 8s infinite; }
@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    10% { opacity: 0.6; }
    90% { opacity: 0.1; }
    100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

/* === Container === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* === Navbar === */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 16px 0; transition: all 0.3s ease; background: transparent; }
.navbar.scrolled { background: rgba(10, 10, 15, 0.95); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); padding: 10px 0; }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; }
.logo-icon { font-size: 1.8rem; filter: drop-shadow(0 0 10px var(--accent-glow)); animation: logoPulse 3s ease-in-out infinite; }
@keyframes logoPulse { 0%, 100% { filter: drop-shadow(0 0 10px var(--accent-glow)); } 50% { filter: drop-shadow(0 0 25px var(--accent-glow)); } }
.logo-text { letter-spacing: 2px; }
.text-accent { color: var(--accent); text-shadow: 0 0 20px var(--accent-glow); }
.text-gold { color: var(--gold); text-shadow: 0 0 20px var(--gold-glow); }

.nav-links { display: flex; list-style: none; gap: 24px; flex: 1; justify-content: center; }
.nav-links a { font-family: var(--font-heading); font-size: 0.9rem; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: var(--text-secondary); transition: all 0.3s ease; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--accent); transition: width 0.3s ease; box-shadow: 0 0 10px var(--accent-glow); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 5px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text-primary); transition: all 0.3s ease; }

/* === Nav Auth Button (NEW) === */
.nav-auth { flex-shrink: 0; }
.btn-nav-login {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 20px; border-radius: 50px;
    font-family: var(--font-heading); font-size: 0.85rem; font-weight: 600;
    letter-spacing: 1px; text-transform: uppercase;
    background: transparent; color: var(--accent);
    border: 1px solid var(--border-accent);
    cursor: pointer; transition: all 0.3s;
}
.btn-nav-login:hover {
    background: var(--accent-subtle); border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* === Nav User (logged in) (NEW) === */
.nav-user { position: relative; flex-shrink: 0; }
.nav-user-info {
    display: flex; align-items: center; gap: 10px;
    cursor: pointer; padding: 4px 12px 4px 4px;
    border-radius: 50px; border: 1px solid var(--border);
    transition: all 0.3s;
}
.nav-user-info:hover { border-color: var(--accent); background: rgba(57,255,20,0.05); }
.nav-user-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--accent); color: #000;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 700; font-size: 0.8rem;
}
.nav-user-stats { display: flex; flex-direction: column; }
.nav-username { font-family: var(--font-heading); font-size: 0.85rem; font-weight: 600; line-height: 1.2; }
.nav-user-coins { font-size: 0.7rem; color: var(--gold); display: flex; align-items: center; gap: 4px; }
.coin-icon { font-size: 0.8rem; }

.nav-user-dropdown {
    position: absolute; top: calc(100% + 8px); right: 0;
    background: var(--bg-card); border: 1px solid var(--border-accent);
    border-radius: var(--radius-md); padding: 8px 0;
    min-width: 180px; box-shadow: var(--shadow-lg);
    z-index: 1001;
}
.nav-user-dropdown a {
    display: block; padding: 10px 20px;
    font-family: var(--font-heading); font-size: 0.9rem;
    color: var(--text-secondary); transition: all 0.2s;
}
.nav-user-dropdown a:hover { background: var(--accent-subtle); color: var(--accent); }
.nav-user-dropdown hr { border: none; border-top: 1px solid var(--border); margin: 4px 0; }
.nav-user-dropdown .logout-link:hover { color: var(--danger); background: rgba(255,58,58,0.08); }

/* === Hero Section === */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 50%, rgba(57, 255, 20, 0.08) 0%, transparent 50%), radial-gradient(ellipse at 80% 50%, rgba(255, 215, 0, 0.05) 0%, transparent 50%), radial-gradient(ellipse at 50% 0%, rgba(57, 255, 20, 0.06) 0%, transparent 40%); z-index: 1; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 10, 15, 0.3) 0%, rgba(10, 10, 15, 0.6) 60%, var(--bg-primary) 100%); z-index: 2; }
.hero-content { position: relative; z-index: 3; text-align: center; padding: 120px 24px 60px; }

.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--accent-subtle); border: 1px solid var(--border-accent); padding: 8px 20px; border-radius: 50px; font-family: var(--font-heading); font-size: 0.85rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 32px; animation: badgeGlow 2s ease-in-out infinite; }
@keyframes badgeGlow { 0%, 100% { box-shadow: 0 0 15px var(--accent-glow); } 50% { box-shadow: 0 0 30px var(--accent-glow); } }
.badge-pulse { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.5); } }

.hero-title { display: flex; flex-direction: column; gap: 4px; margin-bottom: 24px; }
.title-sub { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 400; letter-spacing: 6px; text-transform: uppercase; color: var(--text-secondary); }
.title-main { font-family: var(--font-display); font-size: clamp(3rem, 8vw, 6rem); font-weight: 900; letter-spacing: 8px; line-height: 1.1; background: linear-gradient(135deg, #fff 0%, var(--accent) 50%, #fff 100%); background-size: 200% 200%; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: titleShimmer 4s ease-in-out infinite; filter: drop-shadow(0 0 30px rgba(57, 255, 20, 0.2)); }
@keyframes titleShimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.title-desc { font-family: var(--font-display); font-size: clamp(0.9rem, 2vw, 1.3rem); font-weight: 600; letter-spacing: 10px; color: var(--accent); text-shadow: 0 0 20px var(--accent-glow); }
.hero-tagline { font-family: var(--font-heading); font-size: 1rem; color: var(--text-secondary); letter-spacing: 3px; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }

/* === Buttons === */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 32px; border-radius: var(--radius-md); font-family: var(--font-heading); font-size: 1rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; transition: all 0.3s ease; border: none; position: relative; overflow: hidden; }
.btn-primary { background: var(--accent); color: #000; box-shadow: 0 0 20px var(--accent-glow); }
.btn-primary:hover { background: #4dff2a; transform: translateY(-2px); box-shadow: 0 0 40px var(--accent-glow), 0 8px 32px rgba(57, 255, 20, 0.3); }
.btn-primary::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); transition: left 0.5s ease; }
.btn-primary:hover::before { left: 100%; }
.btn-gold { background: linear-gradient(135deg, var(--gold), #ffaa00); color: #000; box-shadow: 0 0 20px var(--gold-glow); font-weight: 700; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 0 40px var(--gold-glow), 0 8px 32px rgba(255, 215, 0, 0.3); }
.btn-outline { background: transparent; color: var(--text-primary); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-lg { padding: 18px 40px; font-size: 1.1rem; }
.btn-sm { padding: 8px 20px; font-size: 0.85rem; }

/* === Stats === */
.hero-stats { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-value { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--accent); text-shadow: 0 0 20px var(--accent-glow); }
.stat-label { font-family: var(--font-heading); font-size: 0.8rem; color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; }
.stat-divider { width: 1px; background: var(--border); align-self: stretch; }

.hero-scroll { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text-muted); font-family: var(--font-heading); font-size: 0.7rem; letter-spacing: 3px; text-transform: uppercase; }
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--accent), transparent); animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0%, 100% { opacity: 0.3; height: 40px; } 50% { opacity: 1; height: 60px; } }

/* === Sections === */
.section { position: relative; z-index: 1; padding: 100px 0; }
.section-dark { background: var(--bg-secondary); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag { display: inline-block; font-family: var(--font-heading); font-size: 0.85rem; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section-tag-gold { color: var(--gold); }
.section-title { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: 2px; margin-bottom: 12px; }
.section-desc { font-size: 1.05rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

/* === Status Section === */
.status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.status-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; transition: all 0.3s ease; }
.status-card:hover { border-color: var(--border-accent); box-shadow: 0 0 30px rgba(57, 255, 20, 0.05); }
.status-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.status-indicator { display: flex; align-items: center; gap: 10px; }
.indicator-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--text-muted); transition: all 0.3s; }
.indicator-dot.online { background: var(--accent); box-shadow: 0 0 12px var(--accent-glow); animation: pulse 2s infinite; }
.indicator-dot.offline { background: var(--danger); box-shadow: 0 0 12px rgba(255, 58, 58, 0.3); }
.indicator-text { font-family: var(--font-heading); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; font-size: 0.9rem; }
.status-refresh { cursor: pointer; font-size: 1.4rem; color: var(--text-muted); transition: all 0.3s; }
.status-refresh:hover { color: var(--accent); }

.server-name { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.server-icon { font-size: 1.5rem; }
.server-name h3 { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600; }
.server-name p { font-size: 0.85rem; color: var(--text-muted); font-family: monospace; }

.status-details { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.detail-item { display: flex; align-items: center; gap: 10px; padding: 10px; background: var(--bg-secondary); border-radius: var(--radius-sm); }
.detail-icon { font-size: 1.2rem; }
.detail-label { display: block; font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.detail-value { font-family: var(--font-heading); font-weight: 600; font-size: 1rem; }

.player-bar { position: relative; height: 32px; background: var(--bg-secondary); border-radius: 16px; overflow: hidden; margin-top: 20px; }
.player-bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent-dim), var(--accent)); border-radius: 16px; transition: width 1s ease; }
.player-bar-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-size: 0.85rem; font-weight: 600; letter-spacing: 1px; }

.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.card-header h3 { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; }
.player-badge { background: var(--accent); color: #000; padding: 2px 12px; border-radius: 50px; font-family: var(--font-heading); font-weight: 700; font-size: 0.85rem; }

.player-list { max-height: 360px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.player-list::-webkit-scrollbar { width: 4px; }
.player-list::-webkit-scrollbar-thumb { background: var(--accent-dim); border-radius: 4px; }
.player-item { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: var(--bg-secondary); border-radius: var(--radius-sm); transition: all 0.2s; }
.player-item:hover { background: var(--bg-elevated); }
.player-info { display: flex; align-items: center; gap: 10px; }
.player-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--bg-elevated); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 600; color: var(--accent); border: 1px solid var(--border-accent); }
.player-name { font-size: 0.9rem; font-weight: 500; }
.player-score { font-family: var(--font-heading); font-size: 0.8rem; color: var(--text-muted); }
.player-empty { text-align: center; padding: 40px; color: var(--text-muted); font-size: 0.9rem; }

/* === Chicken Rush === */
.section-chicken { background: linear-gradient(180deg, var(--bg-primary) 0%, #1a1200 50%, var(--bg-primary) 100%); position: relative; overflow: hidden; }
.section-chicken::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 30%, rgba(255, 215, 0, 0.06) 0%, transparent 60%); pointer-events: none; }
.chicken-showcase { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; align-items: start; }
.chicken-hero-card { position: relative; background: linear-gradient(145deg, rgba(255, 215, 0, 0.08), rgba(20, 22, 32, 0.9)); border: 1px solid var(--border-gold); border-radius: var(--radius-lg); padding: 40px; overflow: hidden; }
.chicken-glow { position: absolute; top: -50%; right: -30%; width: 300px; height: 300px; background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%); pointer-events: none; }
.chicken-icon-big { font-size: 4rem; margin-bottom: 16px; animation: chickenBounce 2s ease-in-out infinite; }
@keyframes chickenBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.chicken-hero-card h3 { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold); margin-bottom: 24px; letter-spacing: 2px; }
.chicken-rules { display: flex; flex-direction: column; gap: 20px; }
.chicken-rule { display: flex; gap: 16px; align-items: flex-start; }
.rule-number { min-width: 36px; height: 36px; background: linear-gradient(135deg, var(--gold), #ffaa00); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; color: #000; }
.chicken-rule h4 { font-family: var(--font-heading); font-size: 1.05rem; color: var(--gold); margin-bottom: 4px; }
.chicken-rule p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.5; }
.chicken-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.chicken-stat { background: var(--bg-card); border: 1px solid var(--border-gold); border-radius: var(--radius-md); padding: 24px; text-align: center; transition: all 0.3s; }
.chicken-stat:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(255, 215, 0, 0.1); border-color: var(--gold); }
.chicken-stat-icon { font-size: 2rem; margin-bottom: 8px; }
.chicken-stat-value { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--gold); text-shadow: 0 0 20px var(--gold-glow); }
.chicken-stat-label { font-family: var(--font-heading); font-size: 0.8rem; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; margin-top: 4px; }

/* === Game Modes === */
.modes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.mode-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 24px; text-align: center; transition: all 0.4s ease; position: relative; overflow: hidden; }
.mode-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.mode-infection::before { background: var(--infection-color); }
.mode-nemesis::before { background: var(--nemesis-color); }
.mode-survivor::before { background: var(--survivor-color); }
.mode-swarm::before { background: var(--swarm-color); }
.mode-plague::before { background: var(--plague-color); }
.mode-armageddon::before { background: var(--armageddon-color); }
.mode-chicken::before { background: var(--chicken-color); }
.mode-card:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, 0.1); box-shadow: var(--shadow-md); }
.mode-infection:hover { box-shadow: 0 8px 40px rgba(57, 255, 20, 0.1); }
.mode-nemesis:hover { box-shadow: 0 8px 40px rgba(255, 58, 58, 0.1); }
.mode-survivor:hover { box-shadow: 0 8px 40px rgba(0, 187, 255, 0.1); }
.mode-swarm:hover { box-shadow: 0 8px 40px rgba(255, 102, 0, 0.1); }
.mode-plague:hover { box-shadow: 0 8px 40px rgba(155, 89, 182, 0.1); }
.mode-armageddon:hover { box-shadow: 0 8px 40px rgba(255, 69, 0, 0.1); }
.mode-chicken:hover { box-shadow: 0 8px 40px rgba(255, 215, 0, 0.15); }
.mode-icon { font-size: 2.5rem; margin-bottom: 16px; }
.mode-card h3 { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 10px; }
.mode-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 16px; }
.mode-badge { display: inline-block; padding: 4px 14px; border-radius: 50px; font-family: var(--font-heading); font-size: 0.75rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; background: var(--accent-subtle); color: var(--accent); border: 1px solid var(--border-accent); }
.mode-badge-gold { background: var(--gold-subtle); color: var(--gold); border-color: var(--border-gold); }

/* === Classes === */
.class-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 40px; }
.class-tab { padding: 12px 32px; border-radius: 50px; font-family: var(--font-heading); font-size: 1rem; font-weight: 600; letter-spacing: 1px; cursor: pointer; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-secondary); transition: all 0.3s; }
.class-tab.active { background: var(--accent); color: #000; border-color: var(--accent); box-shadow: 0 0 20px var(--accent-glow); }
.class-tab:hover:not(.active) { border-color: var(--accent); color: var(--accent); }
.class-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.class-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; text-align: center; transition: all 0.3s; position: relative; overflow: hidden; }
.class-header-bar { position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.class-zombie .class-header-bar { background: linear-gradient(90deg, var(--accent), var(--accent-dim)); }
.class-human .class-header-bar { background: linear-gradient(90deg, var(--info), #0088cc); }
.class-card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.1); }
.class-zombie:hover { box-shadow: 0 8px 30px rgba(57, 255, 20, 0.08); }
.class-human:hover { box-shadow: 0 8px 30px rgba(0, 187, 255, 0.08); }
.class-icon { font-size: 2rem; margin-bottom: 8px; }
.class-card h4 { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; letter-spacing: 1px; margin-bottom: 16px; }
.class-stats { display: flex; flex-direction: column; gap: 8px; }
.class-stat { display: flex; align-items: center; gap: 8px; }
.class-stat span { font-family: var(--font-heading); font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; width: 50px; text-align: right; }
.stat-bar { flex: 1; height: 6px; background: var(--bg-secondary); border-radius: 3px; overflow: hidden; }
.stat-fill { height: 100%; background: linear-gradient(90deg, var(--accent-dim), var(--accent)); border-radius: 3px; transition: width 1s ease; }
.stat-fill-blue { background: linear-gradient(90deg, #0088cc, var(--info)); }
.stat-fill-gold { background: linear-gradient(90deg, #cc9900, var(--gold)); }
.stat-fill-mythic { background: linear-gradient(90deg, #9b59b6, #e74c3c); }

.class-info { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 12px; font-family: var(--font-heading); letter-spacing: 0.5px; }

/* === VIP Class Cards === */
.class-vip { border-color: var(--border-gold); }
.class-vip:hover { box-shadow: 0 8px 30px rgba(255, 215, 0, 0.1); border-color: var(--gold); }
.class-header-vip { background: linear-gradient(90deg, var(--gold), #ffaa00) !important; }
.class-vip-plus { border-color: rgba(155, 89, 182, 0.3); }
.class-vip-plus:hover { box-shadow: 0 8px 30px rgba(155, 89, 182, 0.12); border-color: rgba(155, 89, 182, 0.5); }
.class-header-vip-plus { background: linear-gradient(90deg, #9b59b6, #e74c3c) !important; }
.class-vip-tag {
    position: absolute; top: 10px; right: 10px;
    padding: 2px 10px; border-radius: 50px;
    font-family: var(--font-heading); font-size: 0.65rem; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase;
    background: var(--gold-subtle); color: var(--gold);
    border: 1px solid var(--border-gold);
}
.class-vip-plus-tag {
    background: rgba(155, 89, 182, 0.15); color: #c678dd;
    border-color: rgba(155, 89, 182, 0.3);
}

/* === Arsenal VIP Tags === */
.arsenal-vip-tag {
    position: absolute; top: 12px; right: 12px;
    padding: 3px 10px; border-radius: 50px;
    font-family: var(--font-heading); font-size: 0.65rem; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase;
    background: var(--accent-subtle); color: var(--accent);
    border: 1px solid var(--border-accent);
}
.arsenal-vip-plus {
    background: rgba(155, 89, 182, 0.12); color: #c678dd;
    border-color: rgba(155, 89, 182, 0.3);
}

/* === VIP Features Section === */
.section-vip { background: linear-gradient(180deg, var(--bg-secondary) 0%, #1a1500 50%, var(--bg-secondary) 100%); position: relative; overflow: hidden; }
.section-vip::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 30%, rgba(255, 215, 0, 0.05) 0%, transparent 60%); pointer-events: none; }
.vip-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-bottom: 40px; }
.vip-tier-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-xl); padding: 36px 28px;
    text-align: center; position: relative; overflow: hidden;
    transition: all 0.4s;
}
.vip-tier-card:hover { transform: translateY(-6px); }
.vip-tier-badge {
    position: absolute; top: 0; left: 0; right: 0; height: 4px;
}
.vip-tier-free .vip-tier-badge { background: linear-gradient(90deg, #27ae60, var(--accent)); }
.vip-tier-free { border-color: var(--border-accent); }
.vip-tier-free:hover { box-shadow: 0 8px 40px rgba(57, 255, 20, 0.1); }
.vip-tier-plus .vip-tier-badge { background: linear-gradient(90deg, var(--gold), #ffaa00); }
.vip-tier-plus { border-color: var(--border-gold); }
.vip-tier-plus:hover { box-shadow: 0 8px 40px rgba(255, 215, 0, 0.12); }
.vip-tier-icon { font-size: 3rem; margin-bottom: 12px; }
.vip-tier-card h3 {
    font-family: var(--font-display); font-size: 1.3rem;
    letter-spacing: 3px; margin-bottom: 4px;
}
.vip-tier-subtitle {
    font-family: var(--font-heading); font-size: 0.8rem;
    color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase;
    margin-bottom: 20px;
}
.vip-tier-free h3 { color: var(--accent); }
.vip-tier-plus h3 { color: var(--gold); }
.vip-features-list {
    text-align: left; display: flex; flex-direction: column; gap: 10px;
}
.vip-feature-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 12px; background: var(--bg-secondary);
    border-radius: var(--radius-sm); font-size: 0.85rem;
    color: var(--text-secondary); transition: background 0.2s;
}
.vip-feature-item:hover { background: var(--bg-elevated); }
.vip-feature-icon { font-size: 1rem; min-width: 20px; text-align: center; }
.vip-chat-tag {
    display: inline-block; padding: 2px 8px; border-radius: 4px;
    font-family: var(--font-heading); font-size: 0.75rem; font-weight: 700;
    letter-spacing: 1px;
}
.vip-chat-tag-green { background: var(--accent-subtle); color: var(--accent); border: 1px solid var(--border-accent); }
.vip-chat-tag-gold { background: var(--gold-subtle); color: var(--gold); border: 1px solid var(--border-gold); }

/* === Arsenal === */
.arsenal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.arsenal-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; text-align: center; transition: all 0.4s; position: relative; overflow: hidden; }
.arsenal-rarity { position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.rarity-legendary { background: linear-gradient(90deg, #ff8c00, #ffd700); }
.rarity-mythic { background: linear-gradient(90deg, #9b59b6, #e74c3c); }
.rarity-epic { background: linear-gradient(90deg, #8e44ad, #3498db); }
.rarity-rare { background: linear-gradient(90deg, #2980b9, #27ae60); }
.arsenal-card:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, 0.1); box-shadow: var(--shadow-md); }
.arsenal-icon { font-size: 2.5rem; margin-bottom: 12px; }
.arsenal-card h4 { font-family: var(--font-display); font-size: 1rem; letter-spacing: 2px; margin-bottom: 8px; }
.arsenal-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 16px; }
.arsenal-price { display: inline-block; padding: 6px 16px; border-radius: 50px; background: var(--gold-subtle); color: var(--gold); font-family: var(--font-heading); font-weight: 700; font-size: 0.85rem; border: 1px solid var(--border-gold); }

/* === Features === */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 24px; text-align: center; transition: all 0.3s ease; }
.feature-card:hover { transform: translateY(-6px); border-color: var(--border-accent); box-shadow: 0 8px 40px rgba(57, 255, 20, 0.05); }
.feature-card .feature-icon { font-size: 2.5rem; margin-bottom: 16px; }
.feature-card h3 { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600; letter-spacing: 1px; margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.5; }

/* === Maps === */
.maps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.map-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; text-align: center; transition: all 0.3s; position: relative; }
.map-card:hover { transform: translateY(-3px); border-color: var(--border-accent); box-shadow: 0 4px 20px rgba(57, 255, 20, 0.05); }
.map-name { font-family: var(--font-heading); font-size: 0.9rem; font-weight: 500; letter-spacing: 0.5px; }
.map-tag { font-size: 0.7rem; color: var(--gold); margin-top: 4px; font-weight: 600; }

/* === Connect === */
.section-connect { padding-bottom: 60px; }
.connect-card { position: relative; background: var(--bg-card); border: 1px solid var(--border-accent); border-radius: var(--radius-xl); padding: 60px 40px; text-align: center; overflow: hidden; }
.connect-glow { position: absolute; top: -100px; left: 50%; transform: translateX(-50%); width: 400px; height: 400px; background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%); pointer-events: none; opacity: 0.3; }
.connect-steps { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin: 40px 0; }
.step { display: flex; align-items: flex-start; gap: 16px; text-align: left; max-width: 280px; }
.step-number { min-width: 40px; height: 40px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; color: #000; font-size: 1rem; }
.step-content h4 { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.step-content p { font-size: 0.85rem; color: var(--text-secondary); }
.connect-ip { display: inline-flex; align-items: center; gap: 8px; background: var(--bg-primary); border: 1px solid var(--border-accent); padding: 10px 20px; border-radius: var(--radius-md); margin-top: 8px; }
.connect-ip code { font-size: 1rem; font-weight: 600; color: var(--accent); }
.copy-btn { background: none; border: none; cursor: pointer; font-size: 1.1rem; transition: transform 0.2s; }
.copy-btn:hover { transform: scale(1.2); }

/* === Footer === */
.footer { padding: 40px 0; border-top: 1px solid var(--border); }
.footer-content { text-align: center; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 12px; font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; }
.footer-text { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 4px; }
.footer-sub { font-size: 0.75rem; color: var(--text-muted); }

/* =============================================
   NEW SECTIONS: Auth, Shop, Ranking, Profile
   ============================================= */

/* === Auth Modal === */
.auth-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); z-index: 2000; }
.auth-modal {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    z-index: 2001; width: 90%; max-width: 420px;
    background: var(--bg-card); border: 1px solid var(--border-accent);
    border-radius: var(--radius-xl); padding: 40px;
    box-shadow: 0 0 60px rgba(57, 255, 20, 0.1), var(--shadow-lg);
}
.auth-close {
    position: absolute; top: 16px; right: 16px;
    background: none; border: none; color: var(--text-muted);
    font-size: 1.2rem; cursor: pointer; transition: color 0.3s;
}
.auth-close:hover { color: var(--accent); }
.auth-header { text-align: center; margin-bottom: 28px; }
.auth-logo { font-size: 2.5rem; display: block; margin-bottom: 8px; filter: drop-shadow(0 0 20px var(--accent-glow)); }
.auth-header h2 { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 2px; }
.auth-header p { color: var(--text-muted); font-size: 0.85rem; margin-top: 4px; }

.auth-tabs { display: flex; gap: 4px; margin-bottom: 24px; }
.auth-tab {
    flex: 1; padding: 10px; border: 1px solid var(--border);
    background: var(--bg-secondary); color: var(--text-secondary);
    font-family: var(--font-heading); font-size: 0.95rem; font-weight: 600;
    letter-spacing: 1px; cursor: pointer; transition: all 0.3s;
    border-radius: var(--radius-sm);
}
.auth-tab.active {
    background: var(--accent); color: #000;
    border-color: var(--accent); box-shadow: 0 0 15px var(--accent-glow);
}

.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-field label {
    display: block; font-family: var(--font-heading); font-size: 0.8rem;
    font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
    color: var(--text-secondary); margin-bottom: 6px;
}
.auth-field input {
    width: 100%; padding: 12px 16px;
    background: var(--bg-secondary); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text-primary);
    font-family: var(--font-body); font-size: 0.95rem;
    transition: border-color 0.3s;
}
.auth-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }
.auth-error { color: var(--danger); font-size: 0.85rem; text-align: center; padding: 8px; background: rgba(255,58,58,0.1); border-radius: var(--radius-sm); }
.auth-submit { width: 100%; justify-content: center; margin-top: 4px; }
.auth-bonus { text-align: center; color: var(--gold); font-size: 0.8rem; margin-top: 8px; }

/* === Shop Section (NEW) === */
.shop-balance { display: flex; gap: 16px; margin-bottom: 32px; justify-content: center; flex-wrap: wrap; }
.balance-card {
    display: flex; align-items: center; gap: 16px;
    background: var(--bg-card); border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg); padding: 20px 32px;
    min-width: 200px;
}
.balance-icon { font-size: 2rem; }
.balance-label { display: block; font-family: var(--font-heading); font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.balance-value { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--gold); text-shadow: 0 0 15px var(--gold-glow); }

.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.shop-item {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 32px 24px;
    text-align: center; transition: all 0.4s; position: relative; overflow: hidden;
}
.shop-item:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.1); box-shadow: var(--shadow-md); }
.shop-item-rarity { position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.shop-item-icon { font-size: 3rem; margin-bottom: 12px; }
.shop-item h4 { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 8px; }
.shop-item p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 16px; }
.shop-item-price { font-family: var(--font-heading); font-weight: 700; font-size: 1rem; color: var(--gold); margin-bottom: 12px; }
.shop-buy-btn { width: 100%; justify-content: center; }
.shop-item-status { font-family: var(--font-heading); font-weight: 600; letter-spacing: 1px; }
.shop-item-status.owned { color: var(--accent); }

/* === Shop Duration Selector === */
.shop-duration-selector {
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
    margin-bottom: 14px;
}
.duration-btn {
    padding: 8px 6px; border-radius: var(--radius-sm);
    font-family: var(--font-heading); font-size: 0.75rem; font-weight: 600;
    letter-spacing: 0.5px; cursor: pointer;
    border: 1px solid var(--border); background: var(--bg-secondary);
    color: var(--text-secondary); transition: all 0.3s;
}
.duration-btn:hover { border-color: var(--accent); color: var(--accent); }
.duration-btn.active {
    background: var(--accent-subtle); color: var(--accent);
    border-color: var(--accent); box-shadow: 0 0 10px var(--accent-glow);
}

.login-required-card {
    text-align: center; padding: 60px 40px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-xl);
}
.login-required-icon { font-size: 3rem; margin-bottom: 16px; }
.login-required-card h3 { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 2px; margin-bottom: 8px; }
.login-required-card p { color: var(--text-secondary); margin-bottom: 24px; }

/* === Ranking Section (NEW) === */
.ranking-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 32px; }
.ranking-tab {
    padding: 10px 28px; border-radius: 50px;
    font-family: var(--font-heading); font-size: 0.95rem; font-weight: 600;
    letter-spacing: 1px; cursor: pointer;
    border: 1px solid var(--border); background: var(--bg-card);
    color: var(--text-secondary); transition: all 0.3s;
}
.ranking-tab.active { background: var(--accent); color: #000; border-color: var(--accent); box-shadow: 0 0 20px var(--accent-glow); }
.ranking-tab:hover:not(.active) { border-color: var(--accent); color: var(--accent); }

.ranking-table-wrap { overflow-x: auto; transition: opacity 0.2s ease, transform 0.2s ease; max-width: 650px; margin: 0 auto; }
.ranking-table-wrap.ranking-fade-out { opacity: 0; transform: translateY(6px); }
.ranking-table-wrap.ranking-fade-in { animation: rankingFadeIn 0.3s ease forwards; }
@keyframes rankingFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.ranking-table {
    width: 100%; border-collapse: collapse;
    background: var(--bg-card); border-radius: var(--radius-lg);
    overflow: hidden;
}
.ranking-table th {
    padding: 10px 14px; text-align: left;
    font-family: var(--font-heading); font-size: 0.75rem; font-weight: 600;
    letter-spacing: 2px; text-transform: uppercase;
    color: var(--accent); background: var(--bg-elevated);
    border-bottom: 2px solid var(--border-accent);
}
.ranking-table th:first-child { text-align: center; width: 50px; }
.ranking-table td {
    padding: 8px 14px;
    font-family: var(--font-heading); font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
}
.ranking-table td:first-child { text-align: center; width: 50px; }
.ranking-table tbody tr { transition: background 0.2s; }
.ranking-table tbody tr:hover { background: var(--accent-subtle); }
.ranking-table .rank-1 td { color: var(--gold); font-weight: 700; }
.ranking-table .rank-2 td { color: #c0c0c0; }
.ranking-table .rank-3 td { color: #cd7f32; }
.ranking-empty { text-align: center; color: var(--text-muted); padding: 24px !important; }

/* === Profile Panel (NEW) === */
.profile-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); z-index: 2000; }
.profile-panel {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    z-index: 2001; width: 90%; max-width: 450px;
    background: var(--bg-card); border: 1px solid var(--border-accent);
    border-radius: var(--radius-xl); padding: 40px;
    box-shadow: 0 0 60px rgba(57, 255, 20, 0.1), var(--shadow-lg);
}
.profile-header { text-align: center; margin-bottom: 28px; }
.profile-avatar-big {
    width: 72px; height: 72px; border-radius: 50%;
    background: var(--accent); color: #000; margin: 0 auto 12px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 900; font-size: 1.5rem;
    border: 3px solid var(--accent); box-shadow: 0 0 20px var(--accent-glow);
}
.profile-header h2 { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 2px; }
.profile-vip {
    display: inline-block; padding: 4px 16px; border-radius: 50px;
    font-family: var(--font-heading); font-size: 0.8rem; font-weight: 600;
    letter-spacing: 1px; text-transform: uppercase;
    background: var(--accent-subtle); color: var(--accent);
    border: 1px solid var(--border-accent); margin-top: 8px;
}
.profile-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.profile-stat {
    text-align: center; padding: 16px;
    background: var(--bg-secondary); border-radius: var(--radius-md);
    border: 1px solid var(--border);
}
.profile-stat-icon { font-size: 1.5rem; display: block; margin-bottom: 4px; }
.profile-stat-value { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--accent); display: block; }
.profile-stat-label { font-family: var(--font-heading); font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

.profile-xp-bar {
    position: relative; height: 24px;
    background: var(--bg-secondary); border-radius: 12px;
    overflow: hidden; margin-bottom: 20px;
}
.profile-xp-fill { height: 100%; background: linear-gradient(90deg, var(--accent-dim), var(--accent)); border-radius: 12px; transition: width 0.8s ease; }
.profile-xp-text {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-heading); font-size: 0.75rem; font-weight: 600;
}
.profile-info { display: flex; flex-direction: column; gap: 8px; }
.profile-info-item {
    display: flex; justify-content: space-between;
    padding: 10px 16px; background: var(--bg-secondary);
    border-radius: var(--radius-sm); font-size: 0.85rem;
}
.profile-info-item span:first-child { color: var(--text-muted); }

/* === Auth Divider & Steam Button === */
.auth-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 16px 0; color: var(--text-muted); font-size: 0.8rem;
    font-family: var(--font-heading); letter-spacing: 1px; text-transform: uppercase;
}
.auth-divider::before, .auth-divider::after {
    content: ''; flex: 1; height: 1px;
    background: var(--border);
}
.btn-steam {
    display: flex; align-items: center; justify-content: center;
    width: 100%; padding: 12px 20px; border-radius: var(--radius-md);
    background: #171a21; color: #c7d5e0; border: 1px solid #2a475e;
    font-family: var(--font-heading); font-size: 0.95rem; font-weight: 600;
    letter-spacing: 0.5px; cursor: pointer; transition: all 0.3s;
}
.btn-steam:hover {
    background: #1b2838; border-color: #66c0f4; color: #66c0f4;
    box-shadow: 0 0 20px rgba(102, 192, 244, 0.15);
}
.btn-steam svg { fill: currentColor; }

/* === VIP Section === */
.text-gold { color: var(--gold); }
.section-tag-gold { background: var(--gold-subtle); color: var(--gold); border: 1px solid var(--border-gold); }
.section-vip { background: var(--bg-secondary); }

.vip-tiers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 900px; margin: 0 auto; }
.vip-tier-card {
    position: relative; padding: 32px; border-radius: var(--radius-lg);
    background: var(--bg-card); border: 1px solid var(--border);
    transition: all 0.3s; overflow: hidden;
}
.vip-tier-card:hover { transform: translateY(-4px); }

.vip-tier-badge { position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.vip-tier-free .vip-tier-badge { background: linear-gradient(90deg, var(--accent), var(--accent-dim)); }
.vip-tier-free { border-color: var(--border-accent); }
.vip-tier-free:hover { box-shadow: 0 8px 40px rgba(57, 255, 20, 0.08); }

.vip-tier-plus .vip-tier-badge { background: linear-gradient(90deg, var(--gold), #ffaa00); }
.vip-tier-plus { border-color: var(--border-gold); }
.vip-tier-plus:hover { box-shadow: 0 8px 40px rgba(255, 215, 0, 0.1); }

.vip-tier-icon { font-size: 2.5rem; text-align: center; margin-bottom: 12px; }
.vip-tier-card h3 { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 2px; text-align: center; margin-bottom: 4px; }
.vip-tier-free h3 { color: var(--accent); }
.vip-tier-plus h3 { color: var(--gold); }
.vip-tier-subtitle { font-family: var(--font-heading); font-size: 0.85rem; color: var(--text-muted); text-align: center; margin-bottom: 8px; letter-spacing: 0.5px; }

.vip-features-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.vip-feature-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: var(--radius-sm);
    background: var(--bg-secondary); font-size: 0.85rem;
    color: var(--text-secondary); font-family: var(--font-body);
    border: 1px solid var(--border); transition: all 0.2s;
}
.vip-feature-item:hover { border-color: rgba(255, 255, 255, 0.1); background: var(--bg-elevated); }
.vip-feature-icon { font-size: 1.1rem; flex-shrink: 0; }

.vip-chat-tag {
    display: inline-block; padding: 2px 8px; border-radius: 4px;
    font-family: var(--font-heading); font-size: 0.75rem; font-weight: 700;
    letter-spacing: 0.5px;
}
.vip-chat-tag-green { background: rgba(57, 255, 20, 0.15); color: var(--accent); border: 1px solid var(--border-accent); }
.vip-chat-tag-gold { background: rgba(255, 215, 0, 0.15); color: var(--gold); border: 1px solid var(--border-gold); }


/* === VIP Tier Master & Supremo Cards === */
.vip-tier-master .vip-tier-badge { background: linear-gradient(90deg, #ff6b35, #ff3860); }
.vip-tier-master { border-color: rgba(255, 107, 53, 0.3); }
.vip-tier-master:hover { box-shadow: 0 8px 40px rgba(255, 107, 53, 0.1); }
.vip-tier-master h3 { color: #ff6b35; }

.vip-tier-supremo .vip-tier-badge { background: linear-gradient(90deg, #a855f7, #ec4899); }
.vip-tier-supremo { border-color: rgba(168, 85, 247, 0.3); }
.vip-tier-supremo:hover { box-shadow: 0 8px 40px rgba(168, 85, 247, 0.1); }
.vip-tier-supremo h3 { color: #a855f7; }

.vip-popular-badge {
    position: absolute; top: 12px; right: 12px;
    background: linear-gradient(135deg, var(--gold), #ffaa00);
    color: #000; font-family: var(--font-heading);
    font-size: 0.7rem; font-weight: 700; letter-spacing: 1px;
    padding: 4px 12px; border-radius: 20px;
}

.vip-tier-price-tag {
    text-align: center; font-family: var(--font-heading);
    font-size: 0.85rem; color: var(--text-secondary);
    margin: 12px 0 16px; letter-spacing: 1px;
}
.vip-tier-price-tag strong {
    color: var(--accent); font-size: 1.1rem;
}
.vip-tier-master .vip-tier-price-tag strong { color: #ff6b35; }
.vip-tier-supremo .vip-tier-price-tag strong { color: #a855f7; }

.vip-boosts {
    display: flex; flex-direction: column; gap: 6px;
    margin: 12px 0; padding: 12px;
    background: var(--bg-secondary); border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.vip-boost-item {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.85rem; color: var(--text-secondary);
    font-family: var(--font-body);
}
.vip-boost-item strong { color: var(--accent); font-family: var(--font-heading); }
.vip-tier-master .vip-boost-item strong { color: #ff6b35; }
.vip-tier-supremo .vip-boost-item strong { color: #a855f7; }

.vip-boost-note {
    text-align: center; font-size: 0.8rem; color: var(--text-muted);
    font-family: var(--font-body); margin-top: 24px;
    padding: 12px; background: var(--bg-secondary);
    border-radius: var(--radius-sm); border: 1px solid var(--border);
}
.vip-boost-note strong { color: var(--accent); }

.vip-section-label {
    font-family: var(--font-heading); font-size: 0.75rem;
    color: var(--text-muted); letter-spacing: 2px;
    text-transform: uppercase; margin-bottom: 8px;
}

.vip-chat-tag-orange { background: rgba(255, 107, 53, 0.15); color: #ff6b35; border: 1px solid rgba(255, 107, 53, 0.3); }
.vip-chat-tag-purple { background: rgba(168, 85, 247, 0.15); color: #a855f7; border: 1px solid rgba(168, 85, 247, 0.3); }


/* === Boost Bars (VIP Tiers + Profile) === */
.boost-label {
    font-family: var(--font-heading); font-size: 0.8rem;
    color: var(--text-secondary); min-width: 65px;
    letter-spacing: 0.5px;
}
.boost-bar {
    flex: 1; height: 6px; background: var(--bg-secondary);
    border-radius: 3px; overflow: hidden; margin: 0 10px;
    border: 1px solid var(--border);
}
.boost-fill {
    height: 100%; border-radius: 3px;
    transition: width 0.6s ease;
}
.boost-fill-free { background: linear-gradient(90deg, var(--accent), var(--accent-dim)); box-shadow: 0 0 6px var(--accent-glow); }
.boost-fill-plus { background: linear-gradient(90deg, var(--gold), #ffaa00); box-shadow: 0 0 6px rgba(255, 215, 0, 0.3); }
.boost-fill-master { background: linear-gradient(90deg, #ff6b35, #ff3860); box-shadow: 0 0 6px rgba(255, 107, 53, 0.3); }
.boost-fill-supremo { background: linear-gradient(90deg, #a855f7, #ec4899); box-shadow: 0 0 6px rgba(168, 85, 247, 0.3); }
.boost-value {
    font-family: var(--font-heading); font-size: 0.85rem;
    font-weight: 700; min-width: 45px; text-align: right;
}
.vip-tier-free .boost-value { color: var(--accent); }
.vip-tier-plus .boost-value { color: var(--gold); }
.vip-tier-master .boost-value { color: #ff6b35; }
.vip-tier-supremo .boost-value { color: #a855f7; }

/* Profile boost rows with bars */
.profile-boosts {
    padding: 16px; background: var(--bg-secondary);
    border-radius: var(--radius-md); border: 1px solid var(--border);
    margin-bottom: 12px;
}
.profile-boost-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 12px; border-radius: var(--radius-sm);
    background: var(--bg-card); border: 1px solid var(--border);
    margin-bottom: 6px; font-size: 0.85rem;
    font-family: var(--font-body); color: var(--text-secondary);
    position: relative; overflow: hidden;
}
.profile-boost-row:last-child { margin-bottom: 0; }
.profile-boost-row .boost-val {
    font-family: var(--font-heading); font-weight: 700;
    color: var(--accent); font-size: 0.9rem;
}
.profile-boost-row .boost-bar-bg {
    position: absolute; left: 0; top: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(57, 255, 20, 0.08), transparent);
    transition: width 0.6s ease;
    pointer-events: none;
}

/* === Responsive === */
@media (max-width: 768px) {
    .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: rgba(10, 10, 15, 0.98); backdrop-filter: blur(20px); padding: 20px; gap: 16px; border-bottom: 1px solid var(--border); }
    .nav-links.open { display: flex; }
    .nav-toggle { display: flex; }
    .nav-auth, .nav-user { display: none; }
    .status-grid { grid-template-columns: 1fr; }
    .chicken-showcase { grid-template-columns: 1fr; }
    .chicken-stats-grid { grid-template-columns: 1fr 1fr; }
    .modes-grid { grid-template-columns: 1fr; }
    .class-grid { grid-template-columns: 1fr 1fr; }
    .arsenal-grid { grid-template-columns: 1fr; }
    .connect-steps { flex-direction: column; align-items: center; }
    .hero-stats { gap: 16px; }
    .stat-divider { display: none; }
    .hero-tagline { font-size: 0.8rem; letter-spacing: 1px; }
    .maps-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .shop-grid { grid-template-columns: 1fr; }
    .profile-stats-grid { grid-template-columns: repeat(3, 1fr); }
    .auth-modal, .profile-panel { width: 95%; padding: 24px; }
    .vip-tiers { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .class-grid { grid-template-columns: 1fr; }
    .chicken-stats-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; align-items: center; }
}

/* === Close Button (Profile/Auth) === */
.auth-close {
    position: absolute; top: 16px; right: 16px;
    width: 32px; height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}
.auth-close:hover {
    background: rgba(57, 255, 20, 0.1);
    border-color: var(--accent);
    color: var(--accent);
    transform: rotate(90deg);
    box-shadow: 0 0 15px var(--accent-glow);
}



/* === Avatar Edit Button === */
.profile-avatar-wrapper { position: relative; display: inline-block; margin: 0 auto 12px; }
.profile-avatar-edit {
    position: absolute; bottom: 2px; right: 2px;
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--bg-card); border: 2px solid var(--accent);
    color: var(--accent); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease;
    z-index: 5;
}
.profile-avatar-edit:hover {
    background: var(--accent); color: #000;
    transform: scale(1.15);
    box-shadow: 0 0 15px var(--accent-glow);
}


/* === Avatar Crop Modal === */
.avatar-crop-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(10px); z-index: 3000; }
.avatar-crop-modal {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    z-index: 3001; width: 90%; max-width: 380px;
    background: var(--bg-card); border: 1px solid var(--border-accent);
    border-radius: var(--radius-xl); padding: 28px;
    box-shadow: 0 0 60px rgba(57, 255, 20, 0.15), var(--shadow-lg);
}
.avatar-crop-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px;
}
.avatar-crop-header h3 {
    font-family: var(--font-display); font-size: 1.1rem;
    letter-spacing: 2px; margin: 0;
}
.avatar-crop-body { display: flex; flex-direction: column; gap: 16px; }
.avatar-crop-preview-area {
    display: flex; justify-content: center;
    padding: 12px; background: var(--bg-secondary);
    border-radius: var(--radius-md); border: 1px solid var(--border);
}
#avatarCropCanvas {
    border-radius: 50%; border: 3px solid var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
    cursor: grab;
}
.avatar-crop-controls { display: flex; flex-direction: column; gap: 10px; }
.avatar-slider-label {
    display: flex; align-items: center; gap: 12px;
    font-family: var(--font-heading); font-size: 0.8rem;
    color: var(--text-secondary); letter-spacing: 1px;
    text-transform: uppercase;
}
.avatar-slider-label span { min-width: 75px; }
.avatar-slider-label input[type="range"] {
    flex: 1; height: 4px; -webkit-appearance: none; appearance: none;
    background: var(--bg-secondary); border-radius: 2px; outline: none;
}
.avatar-slider-label input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; width: 16px; height: 16px;
    border-radius: 50%; background: var(--accent);
    cursor: pointer; box-shadow: 0 0 8px var(--accent-glow);
}
.avatar-crop-circle-preview {
    display: flex; align-items: center; gap: 12px;
    font-family: var(--font-heading); font-size: 0.8rem;
    color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px;
}
.avatar-mini-preview {
    width: 48px; height: 48px; border-radius: 50%;
    border: 2px solid var(--accent); overflow: hidden;
    background: var(--bg-secondary);
}
.avatar-mini-preview img { width: 100%; height: 100%; object-fit: cover; }
.avatar-crop-footer {
    display: flex; gap: 12px; margin-top: 20px;
    justify-content: flex-end;
}
.btn-secondary {
    padding: 10px 20px; border-radius: var(--radius-md);
    background: var(--bg-secondary); border: 1px solid var(--border);
    color: var(--text-secondary); font-family: var(--font-heading);
    font-size: 0.85rem; font-weight: 600; cursor: pointer;
    transition: all 0.3s;
}
.btn-secondary:hover { border-color: var(--text-muted); color: var(--text-primary); }
