/* ==========================================
   CODM TRACKER - Style Gaming Esport
   Theme: Call of Duty Mobile Inspired
   Colors: Black, Dark Grey, Red, Orange/Yellow
   ========================================== */

/* Import Google Fonts - Gaming Style */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Rajdhani:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
    /* Primary Colors */
    --primary-black: #0a0a0a;
    --secondary-black: #121212;
    --dark-grey: #1a1a1a;
    --medium-grey: #2a2a2a;
    --light-grey: #3a3a3a;
    
    /* Accent Colors */
    --primary-red: #ff1a1a;
    --dark-red: #cc0000;
    --primary-orange: #ff6600;
    --primary-yellow: #ffcc00;
    --gold: #ffd700;
    
    /* Text Colors */
    --text-white: #ffffff;
    --text-grey: #b0b0b0;
    --text-dark: #808080;
    
    /* Gradients */
    --gradient-red: linear-gradient(135deg, #ff1a1a 0%, #cc0000 100%);
    --gradient-orange: linear-gradient(135deg, #ff6600 0%, #ff9900 100%);
    --gradient-gold: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    --gradient-dark: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
    --gradient-card: linear-gradient(145deg, #1e1e1e 0%, #141414 100%);
    
    /* Effects */
    --glow-red: 0 0 20px rgba(255, 26, 26, 0.5);
    --glow-orange: 0 0 20px rgba(255, 102, 0, 0.5);
    --glow-gold: 0 0 20px rgba(255, 215, 0, 0.5);
    
    /* Fonts */
    --font-display: 'Orbitron', sans-serif;
    --font-heading: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --container-width: 1400px;
    --section-padding: 100px;
    --card-radius: 12px;
    --border-radius: 8px;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-black);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-grey);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-red);
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

.display-title {
    font-family: var(--font-display);
    font-weight: 900;
}

/* Links */
a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::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:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-red);
    color: var(--text-white);
    box-shadow: var(--glow-red);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 26, 26, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--primary-red);
}

.btn-secondary:hover {
    background: var(--primary-red);
    box-shadow: var(--glow-red);
}

.btn-orange {
    background: var(--gradient-orange);
    color: var(--text-white);
    box-shadow: var(--glow-orange);
}

.btn-orange:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 102, 0, 0.4);
}

.btn-gold {
    background: var(--gradient-gold);
    color: var(--primary-black);
    font-weight: 700;
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-gold);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.125rem;
}

/* ==========================================
   HEADER / NAVIGATION
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--medium-grey);
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.98);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-red);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.5rem;
    color: white;
    box-shadow: var(--glow-red);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-white);
}

.logo-text span {
    color: var(--primary-red);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-link {
    display: block;
    padding: 10px 18px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-grey);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-white);
    background: var(--medium-grey);
}

.nav-link.active {
    color: var(--primary-red);
    font-weight: 700;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 3px;
    background: var(--gradient-red);
    border-radius: 3px 3px 0 0;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--text-white);
    border-radius: 3px;
    transition: all 0.3s ease;
}

body.menu-open {
    overflow: hidden;
}

.mobile-nav-buttons {
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid var(--medium-grey);
}

@media (max-width: 992px) {
    .nav-menu.active + .mobile-nav-buttons,
    .mobile-nav-buttons.show {
        display: flex;
    }
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--gradient-dark);
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(255, 26, 26, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(255, 102, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 26, 26, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 26, 26, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 26, 26, 0.1);
    border: 1px solid rgba(255, 26, 26, 0.3);
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-red);
    margin-bottom: 30px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.hero-title .highlight {
    background: var(--gradient-red);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--text-grey);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 80px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-red);
    display: block;
}

.hero-stat-label {
    font-size: 0.875rem;
    color: var(--text-grey);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ==========================================
   SECTIONS
   ========================================== */
section {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 102, 0, 0.1);
    border: 1px solid rgba(255, 102, 0, 0.3);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-orange);
    margin-bottom: 16px;
}

.section-title {
    margin-bottom: 20px;
}

.section-title .highlight {
    color: var(--primary-red);
}

.section-desc {
    color: var(--text-grey);
    font-size: 1.125rem;
}

/* ==========================================
   FEATURES SECTION
   ========================================== */
.features {
    background: var(--secondary-black);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--gradient-card);
    border: 1px solid var(--medium-grey);
    border-radius: var(--card-radius);
    padding: 40px 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-red);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 26, 26, 0.1);
    border: 1px solid rgba(255, 26, 26, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 24px;
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-white);
}

.feature-desc {
    color: var(--text-grey);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ==========================================
   CARDS
   ========================================== */
.card {
    background: var(--gradient-card);
    border: 1px solid var(--medium-grey);
    border-radius: var(--card-radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--light-grey);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-body {
    padding: 30px;
}

.card-header {
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--medium-grey);
}

/* Stats Cards */
.stat-card {
    background: var(--gradient-card);
    border: 1px solid var(--medium-grey);
    border-radius: var(--card-radius);
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-red);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 26, 26, 0.2);
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-red);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-grey);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================
   PROFILE PAGE
   ========================================== */
.profile-header {
    background: var(--gradient-card);
    border: 1px solid var(--medium-grey);
    border-radius: var(--card-radius);
    padding: 40px;
    margin-bottom: 40px;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    min-width: 120px;
    min-height: 120px;
    border-radius: 50%;
    border: 4px solid var(--primary-red);
    box-shadow: var(--glow-red);
    overflow: hidden;
    background: var(--medium-grey);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    flex-shrink: 0;
    position: relative;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.profile-avatar i {
    color: var(--text-grey);
    font-size: 3rem;
}

.profile-details {
    flex: 1;
}

.profile-name {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.profile-uid {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 102, 0, 0.1);
    border: 1px solid rgba(255, 102, 0, 0.2);
    border-radius: 50px;
    font-family: var(--font-display);
    font-size: 0.875rem;
    color: var(--primary-orange);
    margin-bottom: 16px;
}

.profile-meta {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.profile-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-grey);
}

.profile-meta-item span {
    color: var(--text-white);
    font-weight: 600;
}

.profile-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--medium-grey);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-legendary {
    background: linear-gradient(135deg, #ff1a1a, #ff6600);
    color: white;
}

.badge-master {
    background: linear-gradient(135deg, #9333ea, #7c3aed);
    color: white;
}

.badge-gold {
    background: var(--gradient-gold);
    color: var(--primary-black);
}

/* ==========================================
   STATS PAGE
   ========================================== */
.stats-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.stats-tab {
    padding: 12px 30px;
    background: var(--dark-grey);
    border: 1px solid var(--medium-grey);
    border-radius: var(--border-radius);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-grey);
    cursor: pointer;
    transition: all 0.3s ease;
}

.stats-tab:hover,
.stats-tab.active {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* ==========================================
   LOADOUTS PAGE
   ========================================== */
.loadout-card {
    background: var(--gradient-card);
    border: 1px solid var(--medium-grey);
    border-radius: var(--card-radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.loadout-card:hover {
    border-color: var(--primary-red);
    box-shadow: 0 10px 30px rgba(255, 26, 26, 0.2);
}

.loadout-header {
    background: rgba(255, 26, 26, 0.1);
    padding: 20px;
    border-bottom: 1px solid var(--medium-grey);
}

.loadout-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
}

.loadout-body {
    padding: 20px;
}

.loadout-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--medium-grey);
}

.loadout-item:last-child {
    border-bottom: none;
}

.loadout-label {
    color: var(--text-grey);
    font-size: 0.9rem;
}

.loadout-value {
    font-weight: 600;
    color: var(--primary-orange);
}

.sensitivity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* ==========================================
   LEADERBOARD PAGE
   ========================================== */
.leaderboard-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    background: var(--dark-grey);
    border: 1px solid var(--medium-grey);
    border-radius: var(--border-radius);
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-grey);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
}

.leaderboard-table {
    width: 100%;
    background: var(--gradient-card);
    border: 1px solid var(--medium-grey);
    border-radius: var(--card-radius);
    overflow: hidden;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 18px 20px;
    text-align: left;
}

.leaderboard-table thead {
    background: rgba(255, 26, 26, 0.1);
    border-bottom: 1px solid var(--medium-grey);
}

.leaderboard-table th {
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-grey);
    font-size: 0.85rem;
}

.leaderboard-table tbody tr {
    border-bottom: 1px solid var(--medium-grey);
    transition: all 0.3s ease;
}

.leaderboard-table tbody tr:last-child {
    border-bottom: none;
}

.leaderboard-table tbody tr:hover {
    background: rgba(255, 26, 26, 0.05);
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
}

.rank-1 {
    background: var(--gradient-gold);
    color: var(--primary-black);
}

.rank-2 {
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
    color: var(--primary-black);
}

.rank-3 {
    background: linear-gradient(135deg, #cd7f32, #a0522d);
    color: white;
}

.player-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.player-avatar-sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--medium-grey);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================
   TOURNAMENTS PAGE
   ========================================== */
.tournaments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.tournament-card {
    background: var(--gradient-card);
    border: 1px solid var(--medium-grey);
    border-radius: var(--card-radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.tournament-card:hover {
    border-color: var(--primary-orange);
    box-shadow: 0 15px 40px rgba(255, 102, 0, 0.2);
    transform: translateY(-5px);
}

.tournament-banner {
    height: 150px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-orange) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.tournament-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.tournament-badge-live {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 14px;
    background: var(--primary-red);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    animation: pulse 1.5s infinite;
}

.tournament-icon {
    font-size: 4rem;
    z-index: 1;
}

.tournament-body {
    padding: 25px;
}

.tournament-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.tournament-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.tournament-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-grey);
    font-size: 0.9rem;
}

.tournament-meta-item span {
    color: var(--text-white);
}

.tournament-rewards {
    padding: 15px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.reward-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold);
    margin-bottom: 8px;
}

.reward-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.reward-item {
    padding: 4px 12px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--gold);
}

/* ==========================================
   BLOG PAGE
   ========================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--gradient-card);
    border: 1px solid var(--medium-grey);
    border-radius: var(--card-radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-card:hover {
    border-color: var(--primary-red);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.blog-image {
    height: 200px;
    background: linear-gradient(135deg, var(--dark-grey) 0%, var(--medium-grey) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--text-dark);
}

.blog-body {
    padding: 25px;
}

.blog-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 26, 26, 0.1);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-red);
    margin-bottom: 12px;
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-excerpt {
    color: var(--text-grey);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--medium-grey);
    font-size: 0.85rem;
    color: var(--text-dark);
}

/* ==========================================
   ADMIN PAGE
   ========================================== */
.admin-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    min-height: calc(100vh - 80px);
}

.admin-sidebar {
    background: var(--gradient-card);
    border: 1px solid var(--medium-grey);
    border-radius: var(--card-radius);
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.admin-nav {
    list-style: none;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--border-radius);
    color: var(--text-grey);
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.admin-nav-link:hover,
.admin-nav-link.active {
    background: rgba(255, 26, 26, 0.1);
    color: var(--primary-red);
}

.admin-content {
    padding: 20px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.admin-stat-card {
    background: var(--gradient-card);
    border: 1px solid var(--medium-grey);
    border-radius: var(--card-radius);
    padding: 25px;
}

.admin-stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 26, 26, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.admin-stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.admin-stat-label {
    color: var(--text-grey);
    font-size: 0.9rem;
}

.admin-table {
    width: 100%;
    background: var(--gradient-card);
    border: 1px solid var(--medium-grey);
    border-radius: var(--card-radius);
    overflow: hidden;
}

.admin-table th,
.admin-table td {
    padding: 16px 20px;
    text-align: left;
}

.admin-table thead {
    background: rgba(255, 26, 26, 0.05);
    border-bottom: 1px solid var(--medium-grey);
}

.admin-table th {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-grey);
}

.admin-table tbody tr {
    border-bottom: 1px solid var(--medium-grey);
}

.admin-table tbody tr:last-child {
    border-bottom: none;
}

/* ==========================================
   FORMS
   ========================================== */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    color: var(--text-grey);
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--dark-grey);
    border: 1px solid var(--medium-grey);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-white);
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(255, 26, 26, 0.1);
}

.form-input::placeholder {
    color: var(--text-dark);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-red);
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    background: var(--gradient-dark);
    position: relative;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 30% 30%, rgba(255, 26, 26, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 70%, rgba(255, 102, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    background: var(--gradient-card);
    border: 1px solid var(--medium-grey);
    border-radius: var(--card-radius);
    padding: 50px 40px;
    position: relative;
    z-index: 1;
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.auth-title {
    font-size: 1.75rem;
    margin-bottom: 10px;
}

.auth-subtitle {
    color: var(--text-grey);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
    color: var(--text-dark);
    font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--medium-grey);
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px;
    background: var(--dark-grey);
    border: 1px solid var(--medium-grey);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-social:hover {
    background: var(--medium-grey);
    border-color: var(--light-grey);
}

.btn-google {
    color: #fff;
}

.btn-discord {
    background: #5865F2;
    border-color: #5865F2;
}

.btn-discord:hover {
    background: #4752c4;
    border-color: #4752c4;
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    color: var(--text-grey);
}

.auth-footer a {
    color: var(--primary-red);
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--secondary-black);
    border-top: 1px solid var(--medium-grey);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-desc {
    color: var(--text-grey);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

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

.social-link {
    width: 44px;
    height: 44px;
    background: var(--dark-grey);
    border: 1px solid var(--medium-grey);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    transform: translateY(-3px);
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    color: var(--text-white);
}

.footer-links {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-grey);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-red);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--medium-grey);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    color: var(--text-dark);
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: 30px;
}

.footer-legal a {
    color: var(--text-dark);
    font-size: 0.875rem;
}

.footer-legal a:hover {
    color: var(--text-grey);
}

/* Disclaimer */
.disclaimer {
    background: rgba(255, 102, 0, 0.1);
    border: 1px solid rgba(255, 102, 0, 0.2);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-top: 40px;
}

.disclaimer-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-orange);
    margin-bottom: 10px;
}

.disclaimer-text {
    color: var(--text-grey);
    font-size: 0.85rem;
    line-height: 1.7;
}

/* ==========================================
   PAGE HEADERS
   ========================================== */
.page-header {
    padding: 140px 0 60px;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 50% 0%, rgba(255, 26, 26, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    margin-bottom: 15px;
}

.page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-grey);
    font-size: 0.9rem;
}

.page-breadcrumb a {
    color: var(--text-grey);
}

.page-breadcrumb a:hover {
    color: var(--primary-red);
}

.page-breadcrumb span {
    color: var(--primary-red);
}

/* ==========================================
   UTILITIES
   ========================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-red { color: var(--primary-red); }
.text-orange { color: var(--primary-orange); }
.text-gold { color: var(--gold); }
.text-grey { color: var(--text-grey); }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 50px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }
.mb-5 { margin-bottom: 50px; }

.py-1 { padding-top: 10px; padding-bottom: 10px; }
.py-2 { padding-top: 20px; padding-bottom: 20px; }
.py-3 { padding-top: 30px; padding-bottom: 30px; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 10px; }
.gap-2 { gap: 20px; }
.gap-3 { gap: 30px; }

.hidden { display: none; }
.visible { display: block; }

/* ==========================================
   SUPPORT & LÉGAL - Meilleure lisibilité (texte clair sur fond sombre)
   ========================================== */
.support-legal-content p,
.support-legal-content li,
.support-legal-content .text-grey,
.support-legal-content .accordion-body,
.support-legal-content .section-desc {
    color: #d8d8d8;
}
.support-legal-content a.text-orange:hover,
.support-legal-content .footer-links a:hover {
    color: var(--primary-orange) !important;
}
.support-legal-content small.text-grey {
    color: #c0c0c0;
}

/* Formulaires support (Contact, Bug, Suggestions) */
.support-form .form-input {
    width: 100%;
}
.support-form textarea.form-input {
    min-height: 140px;
    resize: vertical;
}
@media (min-width: 768px) {
    .support-form .btn.w-md-auto { width: auto; }
}

/* ==========================================
   RESPONSIVE - FULL MOBILE OPTIMIZATION
   ========================================== */

/* Large Desktop */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .admin-layout {
        grid-template-columns: 1fr;
    }
    
    .admin-sidebar {
        position: static;
    }
    
    .leaderboard-top3 {
        grid-template-columns: 1fr !important;
    }
}

/* Tablet */
@media (max-width: 992px) {
    :root {
        --section-padding: 70px;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--secondary-black);
        border-top: 1px solid var(--medium-grey);
        border-bottom: 1px solid var(--medium-grey);
        flex-direction: column;
        padding: 20px;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 15px 20px;
        text-align: center;
        border-bottom: 1px solid var(--medium-grey);
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-buttons {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero-stats {
        gap: 40px;
    }
    
    .profile-info {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-meta {
        justify-content: center;
    }
    
    .profile-badges {
        justify-content: center;
    }
    
    .leaderboard-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .leaderboard-table th,
    .leaderboard-table td {
        white-space: nowrap;
        padding: 14px 12px;
    }
    
    .admin-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .blog-layout,
    [style*="grid-template-columns: 2fr 1fr"] {
        display: block !important;
    }
    
    .blog-sidebar {
        margin-top: 40px;
    }
    
    .sensitivity-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Landscape / Small Tablet */
@media (max-width: 768px) {
    :root {
        --section-padding: 50px;
    }
    
    .hero {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 60px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .hero-stat-value {
        font-size: 2rem;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 14px;
    }
    
    .features-grid,
    .tournaments-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-brand {
        max-width: 100%;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .auth-card {
        padding: 40px 25px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-tabs {
        flex-direction: column;
    }
    
    .stats-tab {
        width: 100%;
        text-align: center;
    }
    
    .leaderboard-filters {
        flex-direction: column;
    }
    
    .filter-btn {
        width: 100%;
        text-align: center;
    }
    
    .page-header {
        padding: 120px 0 40px;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    .profile-header {
        padding: 25px;
    }
    
    .profile-meta {
        flex-direction: column;
        gap: 12px;
    }
    
    .card-header,
    .card-body {
        padding: 20px;
    }
    
    .loadout-card {
        margin-bottom: 20px;
    }
    
    .tournament-card {
        margin-bottom: 20px;
    }
    
    .admin-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .admin-stat-card {
        padding: 20px;
    }
    
    .admin-stat-value {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .disclaimer {
        padding: 15px;
    }
    
    .disclaimer-text {
        font-size: 0.8rem;
    }
    
    [style*="display: grid"][style*="minmax(400px"] {
        display: block !important;
    }
    
    [style*="display: grid"][style*="minmax(300px"] {
        display: block !important;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 25px;
    }
    
    .hero-stat-value {
        font-size: 1.75rem;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .feature-card {
        padding: 25px 20px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-value {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.85rem;
        letter-spacing: 1px;
    }
    
    .btn-lg {
        padding: 14px 24px;
        font-size: 0.95rem;
    }
    
    .btn-sm {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .profile-avatar {
        width: 90px;
        height: 90px;
        font-size: 2.5rem;
    }
    
    .profile-name {
        font-size: 1.35rem;
    }
    
    .profile-uid {
        font-size: 0.75rem;
        padding: 5px 12px;
    }
    
    .profile-badges {
        gap: 8px;
    }
    
    .badge {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .loadout-header {
        padding: 15px;
    }
    
    .loadout-body {
        padding: 15px;
    }
    
    .loadout-title {
        font-size: 1.1rem;
    }
    
    .loadout-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        padding: 10px 0;
    }
    
    .tournament-banner {
        height: 120px;
    }
    
    .tournament-icon {
        font-size: 3rem;
    }
    
    .tournament-body {
        padding: 20px;
    }
    
    .tournament-title {
        font-size: 1.1rem;
    }
    
    .blog-image {
        height: 160px;
    }
    
    .blog-body {
        padding: 20px;
    }
    
    .blog-title {
        font-size: 1.1rem;
    }
    
    .blog-excerpt {
        font-size: 0.9rem;
    }
    
    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .admin-stats {
        grid-template-columns: 1fr;
    }
    
    .admin-nav-link {
        padding: 12px 14px;
        font-size: 0.9rem;
    }
    
    .auth-card {
        padding: 30px 20px;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
    
    .form-input {
        padding: 12px 14px;
        font-size: 0.95rem;
    }
    
    .form-label {
        font-size: 0.8rem;
    }
    
    .footer {
        padding: 60px 0 25px;
    }
    
    .footer-heading {
        margin-bottom: 16px;
    }
    
    .page-header {
        padding: 100px 0 30px;
    }
    
    .page-breadcrumb {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }
    
    .leaderboard-table th,
    .leaderboard-table td {
        padding: 12px 10px;
        font-size: 0.85rem;
    }
    
    .rank-badge {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .player-avatar-sm {
        width: 32px;
        height: 32px;
    }
    
    [style*="display: flex"][style*="gap: 30px"] {
        gap: 15px !important;
    }
    
    [style*="padding: 40px"] {
        padding: 20px !important;
    }
    
    [style*="margin-bottom: 40px"],
    [style*="margin-top: 40px"] {
        margin-bottom: 25px !important;
        margin-top: 25px !important;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-badge {
        font-size: 0.65rem;
        padding: 5px 10px;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.8rem;
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .profile-avatar {
        width: 80px;
        height: 80px;
    }
    
    .badge {
        padding: 5px 10px;
        font-size: 0.7rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn:hover::before {
        display: none;
    }
    
    .feature-card:hover,
    .card:hover,
    .tournament-card:hover,
    .blog-card:hover,
    .stat-card:hover,
    .loadout-card:hover {
        transform: none;
    }
    
    .btn-primary:hover,
    .btn-secondary:hover,
    .btn-orange:hover,
    .btn-gold:hover {
        transform: none;
    }
    
    .nav-link {
        padding: 15px 20px;
    }
    
    .filter-btn,
    .stats-tab {
        padding: 14px 24px;
    }
}

/* Safe Area for Notched Devices */
@supports (padding: max(0px)) {
    .nav {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
    
    .footer {
        padding-bottom: max(30px, env(safe-area-inset-bottom));
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .nav-buttons,
    .menu-toggle,
    .btn {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .card,
    .stat-card,
    .feature-card {
        border: 1px solid #ccc;
        box-shadow: none;
    }
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.slide-up {
    animation: slideUp 0.6s ease forwards;
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.hover-glow:hover {
    box-shadow: var(--glow-red);
}
