/* ===== CSS VARIABLES ===== */
:root {
    /* Colors */
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --primary-light: #7c8fef;
    --secondary: #f093fb;
    --accent: #4fd1c7;
    --accent-dark: #38b2ac;
    
    --success: #48bb78;
    --warning: #f6ad55;
    --danger: #fc8181;
    --info: #63b3ed;
    
    /* Dark Theme */
    --bg-primary: #0a0a1a;
    --bg-secondary: #0d0d23;
    --bg-tertiary: #12122b;
    --bg-card: rgba(20, 20, 50, 0.6);
    --bg-glass: rgba(255, 255, 255, 0.03);
    
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --text-muted: #718096;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(102, 126, 234, 0.5);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4fd1c7 0%, #38b2ac 100%);
    --gradient-gold: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    --gradient-dark: linear-gradient(180deg, rgba(10, 10, 26, 0) 0%, #0a0a1a 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 25px 80px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 60px rgba(102, 126, 234, 0.3);
    --shadow-glow-secondary: 0 0 60px rgba(240, 147, 251, 0.3);
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Font */
    --font-primary: 'Poppins', sans-serif;
    --font-display: 'Orbitron', sans-serif;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

input {
    outline: none;
    border: none;
    font-family: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== ANIMATED BACKGROUND ===== */
.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-primary);
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--gradient-primary);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--gradient-secondary);
    bottom: -150px;
    left: -150px;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: var(--gradient-accent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
    opacity: 0.3;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, -50px) scale(1.1);
    }
    50% {
        transform: translate(-30px, 30px) scale(0.9);
    }
    75% {
        transform: translate(-50px, -30px) scale(1.05);
    }
}

/* Particles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

/* Grid Lines */
.grid-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* ===== UTILITY CLASSES ===== */
.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    color: var(--secondary);
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--spacing-md) 0;
    background: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.navbar.scrolled {
    padding: var(--spacing-sm) 0;
    background: rgba(10, 10, 26, 0.95);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(102, 126, 234, 0.5); }
    50% { box-shadow: 0 0 40px rgba(102, 126, 234, 0.8); }
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: var(--spacing-xl);
}

.nav-links a {
    position: relative;
    font-weight: 500;
    color: var(--text-secondary);
    padding: var(--spacing-sm) 0;
    transition: var(--transition-normal);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.btn-sound,
.btn-theme {
    width: 40px;
    height: 40px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.btn-sound:hover,
.btn-theme:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-nav-cta {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    transition: var(--transition-normal);
}

.btn-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-normal);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    padding: 120px 0 80px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    animation: slideInLeft 0.6s ease;
}

.hero-badge i {
    color: var(--primary);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
    animation: slideInLeft 0.6s ease 0.1s both;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2xl);
    max-width: 500px;
    animation: slideInLeft 0.6s ease 0.2s both;
}

.hero-stats {
    display: flex;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
    animation: slideInLeft 0.6s ease 0.3s both;
}

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

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.hero-buttons {
    display: flex;
    gap: var(--spacing-lg);
    animation: slideInLeft 0.6s ease 0.4s both;
}

.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-2xl);
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    overflow: hidden;
    transition: var(--transition-normal);
}

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

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-2xl);
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition-normal);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(102, 126, 234, 0.1);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 0.6s ease 0.2s both;
}

.hero-game-preview {
    position: relative;
    width: 350px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-number {
    width: 180px;
    height: 180px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 700;
    color: white;
    z-index: 2;
    box-shadow: var(--shadow-glow);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.preview-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    animation: rotate 10s linear infinite;
}

.preview-ring::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--primary);
}

.preview-ring.ring-2 {
    width: 120%;
    height: 120%;
    border-color: rgba(240, 147, 251, 0.2);
    animation-direction: reverse;
    animation-duration: 15s;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Floating Cards */
.floating-card {
    position: absolute;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.9rem;
    animation: float-card 4s ease-in-out infinite;
}

.floating-card i {
    font-size: 1.2rem;
}

.floating-card strong {
    color: var(--primary);
}

.card-1 {
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.card-1 i { color: var(--warning); }

.card-2 {
    top: 60%;
    right: -5%;
    animation-delay: -1.5s;
}

.card-2 i { color: var(--danger); }

.card-3 {
    bottom: 5%;
    left: 5%;
    animation-delay: -3s;
}

.card-3 i { color: var(--accent); }

@keyframes float-card {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    animation: bounce 2s ease-in-out infinite;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scroll 1.5s ease-in-out infinite;
}

@keyframes scroll {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(10px); }
}

.scroll-indicator span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== SECTION STYLES ===== */
section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.section-badge i {
    color: var(--primary);
}

.section-badge.premium {
    background: linear-gradient(135deg, rgba(246, 211, 101, 0.1), rgba(253, 160, 133, 0.1));
    border-color: rgba(246, 211, 101, 0.3);
}

.section-badge.premium i {
    color: #f6d365;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== GAME MODES ===== */
.modes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.mode-card {
    position: relative;
    padding: var(--spacing-2xl);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: var(--transition-normal);
    overflow: hidden;
}

.mode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-normal);
}

.mode-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.mode-card:hover::before {
    opacity: 1;
}

.mode-card.featured {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(102, 126, 234, 0.1) 0%, var(--bg-card) 100%);
}

.mode-card.featured::before {
    opacity: 1;
}

.featured-badge {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--gradient-gold);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1a1a2e;
}

.mode-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition-normal);
    pointer-events: none;
}

.mode-card:hover .mode-glow {
    opacity: 1;
}

.mode-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-lg);
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: var(--shadow-glow);
}

.mode-badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-md);
}

.mode-badge.easy {
    background: rgba(72, 187, 120, 0.2);
    color: var(--success);
}

.mode-badge.medium {
    background: rgba(246, 173, 85, 0.2);
    color: var(--warning);
}

.mode-badge.hard {
    background: rgba(252, 129, 129, 0.2);
    color: var(--danger);
}

.mode-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.mode-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-lg);
}

.mode-features {
    text-align: left;
    margin-bottom: var(--spacing-lg);
}

.mode-features li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.mode-features li i {
    color: var(--success);
    font-size: 0.8rem;
}

.mode-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-2xl);
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: var(--spacing-lg);
}

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

.mode-stat .stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.mode-stat .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.btn-play-mode {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition-normal);
}

.btn-play-mode:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-glow);
}

/* ===== GAME PANEL ===== */
.game-panel {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.game-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: var(--spacing-2xl);
}

.game-controls {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-2xl);
}

.game-mode-display {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.1rem;
    font-weight: 600;
}

.game-mode-display i {
    color: var(--primary);
}

.game-difficulty span {
    padding: var(--spacing-xs) var(--spacing-md);
    background: rgba(72, 187, 120, 0.2);
    color: var(--success);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Number Display */
.number-display {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.number-circle {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto var(--spacing-lg);
}

.number-ring {
    position: absolute;
    width: 100%;
    height: 100%;
}

.number-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 8;
}

.ring-progress {
    fill: none;
    stroke: url(#gradient);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 565;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.5s ease;
}

.number-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
}

.secret-number {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    color: white;
}

.number-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    background: var(--primary);
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.4;
    z-index: -1;
}

.range-display {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.range-display span {
    color: var(--primary);
    font-weight: 600;
}

/* Input Section */
.input-section {
    margin-bottom: var(--spacing-xl);
}

.input-group {
    display: flex;
    gap: var(--spacing-md);
}

.guess-input {
    flex: 1;
    padding: var(--spacing-lg) var(--spacing-xl);
    background: var(--bg-glass);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    transition: var(--transition-normal);
}

.guess-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.3);
}

.guess-input::placeholder {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Remove number input arrows */
.guess-input::-webkit-outer-spin-button,
.guess-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn-check {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg) var(--spacing-2xl);
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition-normal);
}

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

/* Message Display */
.message-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
    transition: var(--transition-normal);
}

.message-display.too-high {
    border-color: var(--danger);
    background: rgba(252, 129, 129, 0.1);
}

.message-display.too-low {
    border-color: var(--warning);
    background: rgba(246, 173, 85, 0.1);
}

.message-display.correct {
    border-color: var(--success);
    background: rgba(72, 187, 120, 0.1);
}

.message-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.message-display.too-high .message-icon {
    background: var(--danger);
}

.message-display.too-low .message-icon {
    background: var(--warning);
}

.message-display.correct .message-icon {
    background: var(--success);
}

.message-text {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Hint Display */
.hint-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.hint-arrow {
    width: 60px;
    height: 60px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: var(--transition-normal);
}

.hint-arrow.up {
    color: var(--danger);
    border-color: var(--danger);
    animation: bounceUp 0.5s ease infinite;
}

.hint-arrow.down {
    color: var(--success);
    border-color: var(--success);
    animation: bounceDown 0.5s ease infinite;
}

@keyframes bounceUp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

.hint-text {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Game Actions */
.game-actions {
    display: flex;
    gap: var(--spacing-md);
}

.btn-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition-normal);
}

.btn-action:hover {
    transform: translateY(-3px);
}

.btn-restart {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-restart:hover {
    background: var(--accent);
    color: var(--bg-primary);
}

.btn-hint {
    border-color: var(--warning);
    color: var(--warning);
}

.btn-hint:hover {
    background: var(--warning);
    color: var(--bg-primary);
}

.btn-quit {
    border-color: var(--danger);
    color: var(--danger);
}

.btn-quit:hover {
    background: var(--danger);
    color: white;
}

/* ===== GAME STATS PANEL ===== */
.game-stats-panel {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: var(--transition-normal);
}

.stat-card:hover {
    border-color: var(--primary);
}

.stat-card-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.stat-card-header i {
    color: var(--primary);
}

/* Timer Card */
.timer-display {
    display: flex;
    justify-content: center;
}

.timer-circle {
    position: relative;
    width: 100px;
    height: 100px;
}

.timer-circle svg {
    transform: rotate(-90deg);
}

.timer-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 6;
}

.timer-progress {
    fill: none;
    stroke: var(--primary);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
}

.timer-progress.warning {
    stroke: var(--warning);
}

.timer-progress.danger {
    stroke: var(--danger);
}

.timer-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

/* Score Card */
.score-display {
    text-align: center;
}

.score-value {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* Attempts Card */
.attempts-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
}

.attempts-current {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.attempts-separator {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.attempts-max {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.attempts-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.attempts-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* Streak Card */
.streak-display {
    text-align: center;
}

.streak-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--warning);
}

/* History Card */
.history-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    max-height: 120px;
    overflow-y: auto;
}

.history-empty {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.9rem;
}

.history-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    animation: slideIn 0.3s ease;
}

.history-item.high {
    border-color: var(--danger);
    color: var(--danger);
}

.history-item.low {
    border-color: var(--warning);
    color: var(--warning);
}

.history-item.correct {
    border-color: var(--success);
    color: var(--success);
    background: rgba(72, 187, 120, 0.1);
}

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

/* ===== DASHBOARD ===== */
.dashboard {
    background: var(--bg-secondary);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: var(--spacing-xl);
}

.dashboard-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    transition: var(--transition-normal);
}

.dashboard-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.card-header h3 {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.1rem;
    font-weight: 600;
}

.card-header h3 i {
    color: var(--primary);
}

.card-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.chart-filter {
    padding: var(--spacing-xs) var(--spacing-md);
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.8rem;
    transition: var(--transition-fast);
}

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

.view-all {
    color: var(--primary);
    font-size: 0.9rem;
}

/* Chart Card */
.chart-card {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.chart-container {
    height: 300px;
}

/* Accuracy Card */
.accuracy-card {
    grid-column: 2 / 3;
}

.accuracy-display {
    text-align: center;
}

.accuracy-circle {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto var(--spacing-lg);
}

.accuracy-circle svg {
    transform: rotate(-90deg);
}

.accuracy-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 12;
}

.accuracy-progress {
    fill: none;
    stroke: var(--accent);
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 502;
    stroke-dashoffset: 180;
    transition: stroke-dashoffset 1s ease;
}

.accuracy-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: baseline;
}

.accuracy-value span:first-child {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
}

.percent {
    font-size: 1rem;
    color: var(--accent);
}

.accuracy-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
}

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

.accuracy-stat .value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.accuracy-stat .label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Streak Counter Card */
.streak-counter-card {
    grid-column: 3 / 4;
}

.streak-counter {
    text-align: center;
}

.streak-flames {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.streak-flames i {
    font-size: 2rem;
    color: var(--warning);
    animation: flicker 0.5s ease-in-out infinite alternate;
}

.streak-flames i:nth-child(2) {
    font-size: 2.5rem;
    animation-delay: 0.1s;
}

@keyframes flicker {
    from { opacity: 0.8; transform: scale(1); }
    to { opacity: 1; transform: scale(1.1); }
}

.streak-number {
    display: block;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--warning);
    margin-bottom: var(--spacing-sm);
}

.streak-message {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.streak-best {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.streak-best strong {
    color: var(--warning);
}

/* Quick Stats Card */
.quick-stats-card {
    grid-column: 2 / 4;
}

.quick-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

.quick-stat {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-glass);
    border-radius: var(--radius-md);
}

.quick-stat-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.quick-stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
}

.quick-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Mini Leaderboard */
.mini-leaderboard-card {
    grid-column: 1 / 2;
}

.mini-leaderboard {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.mini-leader-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-glass);
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.mini-leader-item:hover {
    background: rgba(102, 126, 234, 0.1);
}

.mini-leader-item .rank {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-muted);
}

.mini-leader-item.rank-1 .rank {
    color: #ffd700;
}

.leader-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.leader-info {
    flex: 1;
}

.leader-name {
    display: block;
    font-weight: 600;
}

.leader-score {
    font-size: 0.85rem;
    color: var(--primary);
}

/* ===== LEADERBOARD SECTION ===== */
.leaderboard {
    background: var(--bg-primary);
}

/* Podium */
.podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-3xl);
    padding-top: var(--spacing-2xl);
}

.podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.podium-card {
    position: relative;
    padding: var(--spacing-2xl) var(--spacing-xl);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: var(--transition-normal);
}

.podium-item.first .podium-card {
    border-color: #ffd700;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.3);
}

.podium-item.second .podium-card {
    border-color: #c0c0c0;
}

.podium-item.third .podium-card {
    border-color: #cd7f32;
}

.crown-icon {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem;
    color: #ffd700;
    animation: bounce 2s ease infinite;
}

.rank-badge {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}

.podium-item.first .rank-badge {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
}

.podium-item.second .rank-badge {
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
}

.podium-item.third .rank-badge {
    background: linear-gradient(135deg, #cd7f32, #b8860b);
}

.podium-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: var(--spacing-md);
    border: 3px solid var(--border-color);
}

.podium-item.first .podium-avatar {
    width: 120px;
    height: 120px;
    border-color: #ffd700;
}

.podium-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.podium-score {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.podium-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.podium-stats {
    display: flex;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

.podium-stat {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.podium-stat i {
    color: var(--primary);
}

.podium-stand {
    width: 150px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    margin-top: var(--spacing-md);
}

.podium-item.first .podium-stand {
    height: 100px;
    width: 180px;
}

.podium-item.second .podium-stand {
    height: 70px;
    background: linear-gradient(135deg, #c0c0c0, #808080);
}

.podium-item.third .podium-stand {
    height: 50px;
    background: linear-gradient(135deg, #cd7f32, #8b4513);
}

/* Leaderboard Table */
.leaderboard-table-wrapper {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: var(--spacing-lg);
    text-align: left;
}

.leaderboard-table th {
    background: var(--bg-glass);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.leaderboard-table tr {
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.leaderboard-table tr:hover {
    background: rgba(102, 126, 234, 0.05);
}

.leaderboard-table tr.current-user {
    background: rgba(102, 126, 234, 0.1);
    border-left: 3px solid var(--primary);
}

.rank-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: var(--bg-glass);
    border-radius: 50%;
    font-weight: 600;
}

.rank-num.you {
    background: var(--gradient-primary);
    color: white;
}

.player-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.player-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.player-info i {
    color: var(--primary);
    font-size: 0.8rem;
}

.win-rate {
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.win-rate.high {
    background: rgba(72, 187, 120, 0.2);
    color: var(--success);
}

.win-rate.medium {
    background: rgba(246, 173, 85, 0.2);
    color: var(--warning);
}

.streak-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-xs) var(--spacing-md);
    background: rgba(246, 173, 85, 0.2);
    border-radius: 50px;
    color: var(--warning);
    font-weight: 600;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
    background: var(--bg-secondary);
}

.steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
}

.step-card {
    position: relative;
    padding: var(--spacing-2xl);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    text-align: center;
    flex: 1;
    max-width: 300px;
    transition: var(--transition-normal);
}

.step-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.3;
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-lg);
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.step-card h3 {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.step-connector {
    font-size: 2rem;
    color: var(--primary);
    animation: arrowMove 1s ease infinite;
}

@keyframes arrowMove {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

/* ===== PREMIUM FEATURES ===== */
.premium-features {
    background: var(--bg-primary);
    position: relative;
}

.premium-features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(246, 211, 101, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-3xl);
}

.feature-card {
    padding: var(--spacing-2xl);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(246, 211, 101, 0.5);
    box-shadow: 0 0 40px rgba(246, 211, 101, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-gold);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--bg-primary);
    margin-bottom: var(--spacing-lg);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    font-size: 0.95rem;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.feature-list li i {
    color: #f6d365;
    font-size: 0.8rem;
}

.premium-cta {
    text-align: center;
}

.btn-premium {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg) var(--spacing-3xl);
    background: var(--gradient-gold);
    border-radius: var(--radius-lg);
    color: var(--bg-primary);
    font-size: 1.2rem;
    font-weight: 700;
    overflow: hidden;
    transition: var(--transition-normal);
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 60px rgba(246, 211, 101, 0.4);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shine 2s infinite;
}

.premium-cta p {
    margin-top: var(--spacing-md);
    color: var(--text-muted);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-tertiary);
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
    border-top: 1px solid var(--border-color);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-3xl);
    margin-bottom: var(--spacing-3xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.footer-logo i {
    font-size: 2rem;
    color: var(--primary);
}

.footer-logo span span {
    color: var(--secondary);
}

.footer-brand p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: var(--transition-normal);
}

.social-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-links-group h4 {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.footer-links-group ul {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-links-group a {
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.footer-links-group a:hover {
    color: var(--primary);
    padding-left: var(--spacing-sm);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-bottom strong {
    color: var(--primary);
}

.footer-bottom i {
    color: var(--danger);
    animation: heartbeat 1s ease infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ===== MODALS ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    background: var(--bg-tertiary);
    padding: var(--spacing-3xl);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    text-align: center;
    max-width: 500px;
    width: 90%;
    animation: modalIn 0.3s ease;
    z-index: 1;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-content.win {
    border-color: var(--success);
}

.modal-content.lose {
    border-color: var(--danger);
}

.modal-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--spacing-lg);
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    animation: bounce 1s ease infinite;
}

.modal-content.win .modal-icon {
    background: var(--gradient-gold);
    color: var(--bg-primary);
}

.modal-content.lose .modal-icon {
    background: var(--gradient-secondary);
}

.modal-content h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.modal-subtitle {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2xl);
}

.modal-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-2xl);
}

.modal-stat {
    padding: var(--spacing-md);
    background: var(--bg-glass);
    border-radius: var(--radius-md);
}

.modal-stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.modal-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.reveal-number {
    margin-bottom: var(--spacing-2xl);
}

.reveal-number p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.reveal-number span {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    color: var(--danger);
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
}

.btn-modal-primary {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-2xl);
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    transition: var(--transition-normal);
}

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

.btn-modal-secondary {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-2xl);
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 600;
    transition: var(--transition-normal);
}

.btn-modal-secondary:hover {
    border-color: var(--primary);
    background: rgba(102, 126, 234, 0.1);
}

/* Confetti */
.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    opacity: 0;
    animation: confetti-fall 3s ease-in-out forwards;
}

@keyframes confetti-fall {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0);
    }
    100% {
        opacity: 0;
        transform: translateY(400px) rotate(720deg);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .chart-card {
        grid-column: 1 / -1;
        grid-row: auto;
    }
    
    .quick-stats-card {
        grid-column: 1 / -1;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-description {
        max-width: 100%;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .floating-card {
        display: none;
    }
    
    .modes-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .game-wrapper {
        grid-template-columns: 1fr;
    }
    
    .game-stats-panel {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .history-card {
        grid-column: 1 / -1;
    }
    
    .podium {
        flex-direction: column;
        align-items: center;
    }
    
    .podium-item {
        order: 2;
    }
    
    .podium-item.first {
        order: 1;
    }
    
    .podium-stand {
        display: none;
    }
    
    .steps-grid {
        flex-direction: column;
    }
    
    .step-connector {
        transform: rotate(90deg);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: var(--spacing-lg);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .game-stats-panel {
        grid-template-columns: 1fr;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .game-actions {
        flex-direction: column;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .modal-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .leaderboard-table {
        font-size: 0.85rem;
    }
    
    .leaderboard-table th,
    .leaderboard-table td {
        padding: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .container,
    .section-container,
    .nav-container,
    .footer-container {
        padding: 0 var(--spacing-md);
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .preview-number {
        width: 140px;
        height: 140px;
        font-size: 4rem;
    }
    
    .hero-game-preview {
        width: 280px;
        height: 280px;
    }
    
    .number-circle {
        width: 180px;
        height: 180px;
    }
    
    .number-inner {
        width: 130px;
        height: 130px;
    }
    
    .secret-number {
        font-size: 3rem;
    }
    
    .podium-avatar {
        width: 80px;
        height: 80px;
    }
    
    .podium-item.first .podium-avatar {
        width: 100px;
        height: 100px;
    }
}

/* ===== ANIMATIONS ===== */
.shake {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
/* ===== DIFFICULTY BADGE COLORS ===== */
.game-difficulty span.easy {
    background: rgba(72, 187, 120, 0.2);
    color: #48bb78;
}

.game-difficulty span.medium {
    background: rgba(246, 173, 85, 0.2);
    color: #f6ad55;
}

.game-difficulty span.hard {
    background: rgba(252, 129, 129, 0.2);
    color: #fc8181;
}

/* ===== NUMBER CIRCLE STATES ===== */
.number-circle.win .number-inner {
    background: linear-gradient(135deg, #48bb78, #38a169);
    animation: winPulse 0.5s ease;
}

.number-circle.lose .number-inner {
    background: linear-gradient(135deg, #fc8181, #f56565);
}

@keyframes winPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

/* ===== TIMER COLORS ===== */
.timer-progress.warning {
    stroke: #f6ad55 !important;
}

.timer-progress.danger {
    stroke: #fc8181 !important;
    animation: timerPulse 0.5s ease infinite;
}

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

/* ===== BUTTON DISABLED STATE ===== */
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== CONFETTI ANIMATION ===== */
.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    animation: confetti-fall 3s ease-out forwards;
}

@keyframes confetti-fall {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(400px) rotate(720deg);
    }
}
/* ===== LOADING SCREEN ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    position: relative;
    width: 150px;
    height: 150px;
}

.loader-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-circle:nth-child(2) {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-top-color: var(--secondary);
    animation-duration: 0.8s;
    animation-direction: reverse;
}

.loader-circle:nth-child(3) {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-top-color: var(--accent);
    animation-duration: 0.6s;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: 1.2rem;
    display: flex;
}

.loader-text span {
    animation: bounce 1s ease infinite;
}

.loader-text span:nth-child(1) { animation-delay: 0s; }
.loader-text span:nth-child(2) { animation-delay: 0.1s; }
.loader-text span:nth-child(3) { animation-delay: 0.2s; }
.loader-text span:nth-child(4) { animation-delay: 0.3s; }
.loader-text span:nth-child(5) { animation-delay: 0.4s; }
.loader-text span:nth-child(6) { animation-delay: 0.5s; color: var(--secondary); }
.loader-text span:nth-child(7) { animation-delay: 0.6s; color: var(--secondary); }
.loader-text span:nth-child(8) { animation-delay: 0.7s; color: var(--secondary); }

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    min-width: 280px;
}

.toast.show {
    transform: translateX(0);
}

.toast i {
    font-size: 1.3rem;
}

.toast-success i { color: var(--success); }
.toast-error i { color: var(--danger); }
.toast-warning i { color: var(--warning); }
.toast-info i { color: var(--info); }
.toast-achievement i { color: #ffd700; }

.toast-close {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
}

/* ===== KEYBOARD SHORTCUTS TOOLTIP ===== */
.shortcuts-tooltip {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.shortcuts-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.shortcuts-tooltip h4 {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.shortcuts-tooltip ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shortcuts-tooltip li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.shortcuts-tooltip kbd {
    padding: 4px 8px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85rem;
}

/* ===== PROFILE DROPDOWN ===== */
.btn-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-profile img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.btn-profile:hover {
    border-color: var(--primary);
}

.profile-dropdown {
    position: absolute;
    top: 80px;
    right: 20px;
    width: 280px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.profile-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
}

.dropdown-header img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.dropdown-header h4 {
    font-size: 1rem;
}

.dropdown-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.dropdown-menu a:hover {
    background: var(--bg-glass);
    color: var(--primary);
}

.dropdown-menu a.logout {
    color: var(--danger);
    border-top: 1px solid var(--border-color);
    margin-top: 10px;
    padding-top: 15px;
}

/* ===== POWER-UPS ===== */
.hero-powerups {
    margin-top: 30px;
    padding: 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.hero-powerups p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.powerup-items {
    display: flex;
    gap: 15px;
}

.powerup-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.powerup-item i {
    color: var(--primary);
}

.powerups-bar {
    margin: 20px 0;
    padding: 15px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.powerups-bar h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.powerup-buttons {
    display: flex;
    gap: 10px;
}

.powerup-btn {
    position: relative;
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-normal);
}

.powerup-btn:hover {
    border-color: var(--primary);
    background: rgba(102, 126, 234, 0.1);
}

.powerup-count {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== DAILY CHALLENGE ===== */
.daily-challenge {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.daily-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

.daily-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(246, 211, 101, 0.2), rgba(253, 160, 133, 0.2));
    border: 1px solid rgba(246, 211, 101, 0.3);
    border-radius: 50px;
    font-size: 0.9rem;
    color: #f6d365;
    margin-bottom: 15px;
}

.daily-stats {
    display: flex;
    gap: 30px;
    margin: 30px 0;
}

.daily-stat {
    display: flex;
    align-items: center;
    gap: 15px;
}

.daily-stat i {
    font-size: 2rem;
    color: var(--primary);
}

.daily-stat span {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
}

.daily-stat p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.daily-rewards h4 {
    margin-bottom: 15px;
    color: var(--text-muted);
}

.reward-items {
    display: flex;
    gap: 15px;
}

.reward-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
}

.reward-item i {
    color: #ffd700;
}

.btn-daily {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: var(--gradient-gold);
    border: none;
    border-radius: var(--radius-lg);
    color: var(--bg-primary);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: var(--transition-normal);
}

.btn-daily:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(246, 211, 101, 0.3);
}

.daily-calendar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 25px;
}

.daily-calendar h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.calendar-day {
    text-align: center;
    padding: 15px 10px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.calendar-day.completed {
    border-color: var(--success);
    background: rgba(72, 187, 120, 0.1);
}

.calendar-day.completed .day-status i {
    color: var(--success);
}

.calendar-day.today {
    border-color: var(--primary);
    background: rgba(102, 126, 234, 0.1);
}

.day-name {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.day-status i {
    font-size: 0.6rem;
    color: var(--text-muted);
}

/* ===== ACHIEVEMENTS ===== */
.achievements-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.stat-circle {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
}

.achievement-progress {
    flex: 1;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.achievement-progress .progress-bar {
    flex: 1;
    height: 10px;
    background: var(--bg-glass);
    border-radius: 10px;
    overflow: hidden;
}

.achievement-progress .progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: width 0.5s ease;
}

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

.achievement-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
}

.achievement-card.locked {
    opacity: 0.5;
}

.achievement-card.unlocked {
    border-color: var(--success);
    background: rgba(72, 187, 120, 0.05);
}

.achievement-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
}

.achievement-card.unlocked .achievement-icon {
    background: var(--gradient-gold);
    color: var(--bg-primary);
}

.achievement-info h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.achievement-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.achievement-check {
    margin-left: auto;
    width: 30px;
    height: 30px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* ===== CUSTOM MODE ===== */
.custom-mode .mode-description {
    margin-bottom: 15px;
}

.custom-settings {
    margin-bottom: 20px;
}

.setting-group {
    margin-bottom: 15px;
}

.setting-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.setting-group input[type="range"] {
    width: 100%;
    height: 6px;
    background: var(--bg-glass);
    border-radius: 5px;
    appearance: none;
    cursor: pointer;
}

.setting-group input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
}

.setting-group.checkbox label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.setting-group.checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

/* ===== LIGHT THEME ===== */
[data-theme="light"] {
    --bg-primary: #f5f7fa;
    --bg-secondary: #edf2f7;
    --bg-tertiary: #e2e8f0;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-glass: rgba(0, 0, 0, 0.02);
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .gradient-orb {
    opacity: 0.3;
}

[data-theme="light"] .grid-lines {
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}
/* ===== TUTORIAL MODAL - LANDSCAPE DESIGN ===== */
.tutorial-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.tutorial-modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.tutorial-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
}

.tutorial-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 90vh;
    max-height: 700px;
    background: linear-gradient(135deg, #0d0d23 0%, #1a1a3e 50%, #0d0d23 100%);
    border-radius: 30px;
    border: 1px solid rgba(102, 126, 234, 0.3);
    box-shadow: 
        0 50px 100px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(102, 126, 234, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.5s ease;
}

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

/* ===== Close Button ===== */
.tutorial-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #a0aec0;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tutorial-close:hover {
    background: rgba(252, 129, 129, 0.2);
    border-color: #fc8181;
    color: #fc8181;
    transform: rotate(90deg);
}

/* ===== Progress Bar ===== */
.tutorial-progress {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10;
}

.progress-track {
    width: 200px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #f093fb);
    border-radius: 10px;
    width: 16.66%;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 0.85rem;
    color: #a0aec0;
    font-weight: 500;
}

/* ===== Slides Wrapper ===== */
.tutorial-slides-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    padding-top: 60px;
}

.tutorial-slides {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== Individual Slide ===== */
.tutorial-slide {
    min-width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.tutorial-slide.active {
    opacity: 1;
    transform: scale(1);
}

/* ===== Slide Visual (Left Side) ===== */
.slide-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(240, 147, 251, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.slide-visual::before {
    content: '';
    position: absolute;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 50%);
    animation: pulse-bg 8s ease-in-out infinite;
}

@keyframes pulse-bg {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}

.visual-animation {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Slide Content (Right Side) ===== */
.slide-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px 60px;
    position: relative;
}

.slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    color: #667eea;
    margin-bottom: 20px;
    width: fit-content;
    animation: fadeInDown 0.5s ease 0.2s both;
}

.slide-badge.final {
    background: linear-gradient(135deg, rgba(246, 211, 101, 0.2), rgba(253, 160, 133, 0.2));
    border-color: rgba(246, 211, 101, 0.4);
    color: #f6d365;
}

.slide-content h2 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    animation: fadeInDown 0.5s ease 0.3s both;
}

.slide-content > p {
    font-size: 1.15rem;
    color: #a0aec0;
    line-height: 1.7;
    margin-bottom: 30px;
    animation: fadeInDown 0.5s ease 0.4s both;
}

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

/* ===== Welcome Animation ===== */
.welcome-animation {
    position: relative;
}

.welcome-circle {
    position: relative;
    width: 250px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    animation: spin 10s linear infinite;
}

.welcome-ring::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    width: 16px;
    height: 16px;
    background: #667eea;
    border-radius: 50%;
    box-shadow: 0 0 20px #667eea;
}

.welcome-ring.ring-2 {
    width: 80%;
    height: 80%;
    border-color: rgba(240, 147, 251, 0.3);
    animation-direction: reverse;
    animation-duration: 8s;
}

.welcome-ring.ring-2::before {
    background: #f093fb;
    box-shadow: 0 0 20px #f093fb;
}

.welcome-ring.ring-3 {
    width: 60%;
    height: 60%;
    border-color: rgba(79, 209, 199, 0.3);
    animation-duration: 6s;
}

.welcome-ring.ring-3::before {
    background: #4fd1c7;
    box-shadow: 0 0 20px #4fd1c7;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.welcome-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.5);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.float-num {
    position: absolute;
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.1);
    animation: floatNum 4s ease-in-out infinite;
}

.float-num:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.float-num:nth-child(2) { top: 20%; right: 15%; animation-delay: 0.5s; }
.float-num:nth-child(3) { bottom: 30%; left: 5%; animation-delay: 1s; color: rgba(102, 126, 234, 0.3); font-size: 3rem; }
.float-num:nth-child(4) { bottom: 15%; right: 10%; animation-delay: 1.5s; }
.float-num:nth-child(5) { top: 50%; left: 20%; animation-delay: 2s; }

@keyframes floatNum {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
    50% { transform: translateY(-20px) rotate(10deg); opacity: 0.6; }
}

/* ===== Slide Features ===== */
.slide-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: fadeInDown 0.5s ease 0.5s both;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateX(10px);
}

.feature-item i {
    color: #48bb78;
    font-size: 1.1rem;
}

.feature-item span {
    font-size: 1rem;
    color: #e2e8f0;
}

/* ===== Modes Animation ===== */
.modes-animation {
    position: relative;
}

.mode-cards-demo {
    display: flex;
    gap: 20px;
    perspective: 1000px;
}

.demo-card {
    width: 120px;
    height: 160px;
    background: rgba(20, 20, 50, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    transition: all 0.5s ease;
    transform: rotateY(-5deg);
}

.demo-card i {
    font-size: 2.5rem;
    color: #667eea;
}

.demo-card span {
    font-weight: 600;
    font-size: 0.9rem;
}

.demo-card.active {
    transform: rotateY(0deg) scale(1.1);
    border-color: #667eea;
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.4);
}

.demo-card.active .card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(102, 126, 234, 0.3) 0%, transparent 70%);
    border-radius: 20px;
    animation: glow-pulse 2s ease-in-out infinite;
}

.card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
}

.card-badge.easy {
    background: rgba(72, 187, 120, 0.2);
    color: #48bb78;
}

.card-badge.medium {
    background: rgba(246, 173, 85, 0.2);
    color: #f6ad55;
}

.card-badge.hard {
    background: rgba(252, 129, 129, 0.2);
    color: #fc8181;
}

.cursor-pointer {
    position: absolute;
    bottom: 20%;
    right: 30%;
    font-size: 1.5rem;
    color: white;
    animation: click-animation 2s ease infinite;
}

@keyframes click-animation {
    0%, 100% { transform: translate(0, 0) scale(1); }
    30% { transform: translate(-30px, -20px) scale(1); }
    50% { transform: translate(-30px, -20px) scale(0.8); }
    70% { transform: translate(-30px, -20px) scale(1); }
}

/* Mode Info Grid */
.mode-info-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: fadeInDown 0.5s ease 0.5s both;
}

.mode-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.mode-info:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.mode-info .mode-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.mode-icon.classic {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.2), rgba(72, 187, 120, 0.1));
    color: #48bb78;
}

.mode-icon.timed {
    background: linear-gradient(135deg, rgba(246, 173, 85, 0.2), rgba(246, 173, 85, 0.1));
    color: #f6ad55;
}

.mode-icon.extreme {
    background: linear-gradient(135deg, rgba(252, 129, 129, 0.2), rgba(252, 129, 129, 0.1));
    color: #fc8181;
}

.mode-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.mode-info p {
    font-size: 0.85rem;
    color: #718096;
}

/* ===== Guess Animation ===== */
.guess-demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.demo-number-circle {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.5);
    animation: pulse-circle 2s ease-in-out infinite;
}

@keyframes pulse-circle {
    0%, 100% { transform: scale(1); box-shadow: 0 20px 60px rgba(102, 126, 234, 0.5); }
    50% { transform: scale(1.05); box-shadow: 0 25px 70px rgba(102, 126, 234, 0.7); }
}

.demo-range {
    font-size: 1rem;
    color: #a0aec0;
}

.demo-input-group {
    display: flex;
    gap: 10px;
}

.demo-input {
    width: 180px;
    height: 55px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: white;
}

.typing-text {
    animation: typing 2s steps(2) infinite;
}

@keyframes typing {
    0%, 40% { content: ''; }
    50%, 90% { content: '42'; }
}

.cursor-blink {
    animation: blink 0.8s step-end infinite;
    color: #667eea;
}

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

.demo-button {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    animation: button-pulse 2s ease infinite 1s;
}

@keyframes button-pulse {
    0%, 70%, 100% { transform: scale(1); }
    80% { transform: scale(0.95); }
    90% { transform: scale(1.05); }
}

.keyboard-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    color: #718096;
    font-size: 0.9rem;
}

.keyboard-hint kbd {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-family: monospace;
}

/* Tips Box */
.tips-box {
    background: linear-gradient(135deg, rgba(246, 211, 101, 0.1), rgba(253, 160, 133, 0.05));
    border: 1px solid rgba(246, 211, 101, 0.2);
    border-radius: 15px;
    padding: 20px;
    animation: fadeInDown 0.5s ease 0.5s both;
}

.tips-box h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: #f6d365;
    margin-bottom: 15px;
}

.tips-box ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tips-box li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #e2e8f0;
}

.tips-box li::before {
    content: '💡';
    font-size: 0.85rem;
}

/* ===== Feedback Animation ===== */
.feedback-demo {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feedback-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    background: rgba(20, 20, 50, 0.8);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 280px;
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInFeedback 0.5s ease forwards;
}

.feedback-card:nth-child(1) { animation-delay: 0.2s; }
.feedback-card:nth-child(2) { animation-delay: 0.4s; }
.feedback-card:nth-child(3) { animation-delay: 0.6s; }

@keyframes slideInFeedback {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.feedback-card.high {
    border-color: rgba(252, 129, 129, 0.3);
}

.feedback-card.low {
    border-color: rgba(246, 173, 85, 0.3);
}

.feedback-card.correct {
    border-color: rgba(72, 187, 120, 0.3);
    background: rgba(72, 187, 120, 0.1);
}

.feedback-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.feedback-card.high .feedback-icon {
    background: rgba(252, 129, 129, 0.2);
    color: #fc8181;
}

.feedback-card.low .feedback-icon {
    background: rgba(246, 173, 85, 0.2);
    color: #f6ad55;
}

.feedback-card.correct .feedback-icon {
    background: rgba(72, 187, 120, 0.2);
    color: #48bb78;
}

.feedback-text h4 {
    font-size: 1.1rem;
    font-weight: 600;
}

.feedback-text p {
    font-size: 0.85rem;
    color: #a0aec0;
}

.feedback-arrow {
    margin-left: auto;
    animation: bounce-arrow 1s ease infinite;
}

.feedback-arrow.down {
    color: #fc8181;
}

.feedback-arrow.up {
    color: #48bb78;
}

@keyframes bounce-arrow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.feedback-arrow.down {
    animation-name: bounce-arrow-down;
}

@keyframes bounce-arrow-down {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

.feedback-confetti {
    margin-left: auto;
    display: flex;
    gap: 5px;
}

.feedback-confetti i {
    color: #ffd700;
    font-size: 0.9rem;
    animation: star-pop 0.5s ease infinite;
}

.feedback-confetti i:nth-child(2) { animation-delay: 0.1s; }
.feedback-confetti i:nth-child(3) { animation-delay: 0.2s; }

@keyframes star-pop {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.3) rotate(180deg); }
}

/* Feedback Info Grid */
.feedback-info-grid {
    display: flex;
    gap: 15px;
    animation: fadeInDown 0.5s ease 0.5s both;
}

.feedback-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    flex: 1;
}

.feedback-info .info-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon.high {
    background: rgba(252, 129, 129, 0.2);
    color: #fc8181;
}

.info-icon.low {
    background: rgba(246, 173, 85, 0.2);
    color: #f6ad55;
}

.info-icon.correct {
    background: rgba(72, 187, 120, 0.2);
    color: #48bb78;
}

.feedback-info span {
    font-size: 0.9rem;
    color: #e2e8f0;
}

/* ===== Power-ups Animation ===== */
.powerups-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.powerup-demo {
    width: 140px;
    height: 140px;
    background: rgba(20, 20, 50, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
    animation: popIn 0.5s ease forwards;
}

.powerup-demo:nth-child(1) { animation-delay: 0.1s; }
.powerup-demo:nth-child(2) { animation-delay: 0.2s; }
.powerup-demo:nth-child(3) { animation-delay: 0.3s; }
.powerup-demo:nth-child(4) { animation-delay: 0.4s; }

@keyframes popIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.powerup-demo:hover {
    transform: scale(1.05);
    border-color: #667eea;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
}

.powerup-demo .powerup-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
}

.powerup-effect {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #a0aec0;
}

.range-after, .time-add, .revealed {
    color: #48bb78;
    font-weight: 600;
}

.powerup-name {
    font-size: 0.8rem;
    color: #718096;
    font-weight: 500;
}

/* Power-up Info Grid */
.powerup-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    animation: fadeInDown 0.5s ease 0.5s both;
}

.powerup-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
}

.powerup-info i {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(102, 126, 234, 0.1));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
}

.powerup-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
}

.powerup-info p {
    font-size: 0.8rem;
    color: #718096;
}

/* ===== Achievements Animation ===== */
.achievements-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.achievement-demo {
    width: 130px;
    height: 130px;
    background: rgba(20, 20, 50, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    opacity: 0.5;
    filter: grayscale(1);
    transition: all 0.3s ease;
}

.achievement-demo.unlocked {
    opacity: 1;
    filter: grayscale(0);
    border-color: rgba(246, 211, 101, 0.5);
    animation: achievement-glow 2s ease-in-out infinite;
}

@keyframes achievement-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(246, 211, 101, 0.3); }
    50% { box-shadow: 0 0 40px rgba(246, 211, 101, 0.5); }
}

.achievement-demo .achievement-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f6d365, #fda085);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #1a1a2e;
}

.achievement-demo span {
    font-size: 0.85rem;
    color: #a0aec0;
}

.achievement-demo.unlocked span {
    color: #f6d365;
    font-weight: 600;
}

.ready-text {
    display: flex;
    gap: 15px;
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
}

.ready-text .gradient-text {
    animation: text-glow 2s ease-in-out infinite;
}

@keyframes text-glow {
    0%, 100% { text-shadow: 0 0 20px rgba(102, 126, 234, 0.5); }
    50% { text-shadow: 0 0 40px rgba(102, 126, 234, 0.8); }
}

/* Ready Actions */
.ready-actions {
    display: flex;
    flex-direction: column;
    gap: 25px;
    animation: fadeInDown 0.5s ease 0.5s both;
}

.btn-start-playing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 15px;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.btn-start-playing:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(102, 126, 234, 0.5);
}

.btn-start-playing::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: btn-shine 2s infinite;
}

@keyframes btn-shine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.keyboard-shortcuts h4 {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 12px;
}

.shortcuts-grid {
    display: flex;
    gap: 15px;
}

.shortcut {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.shortcut kbd {
    padding: 5px 10px;
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.85rem;
    color: #667eea;
}

.shortcut span {
    font-size: 0.85rem;
    color: #a0aec0;
}

/* ===== Navigation ===== */
.tutorial-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #e2e8f0;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover:not(:disabled) {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateX(-5px);
}

.nav-btn.next:hover:not(:disabled) {
    transform: translateX(5px);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.nav-btn.next {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
}

.nav-btn.next:hover:not(:disabled) {
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* Tutorial Dots */
.tutorial-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.dot::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid transparent;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.4);
}

.dot.active {
    background: #667eea;
    transform: scale(1.2);
}

.dot.active::before {
    border-color: rgba(102, 126, 234, 0.5);
}

.dot.completed {
    background: #48bb78;
}

/* Skip Button */
.tutorial-skip {
    position: absolute;
    bottom: 25px;
    left: 40px;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #718096;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tutorial-skip:hover {
    border-color: #667eea;
    color: #667eea;
}

/* ===== RESPONSIVE - MOBILE PORTRAIT ===== */
@media (max-width: 900px), (max-height: 600px) {
    .tutorial-container {
        max-height: 95vh;
        border-radius: 20px;
    }
    
    .tutorial-slide {
        grid-template-columns: 1fr;
        grid-template-rows: 40% 60%;
    }
    
    .slide-visual {
        padding: 20px;
    }
    
    .slide-content {
        padding: 25px 30px;
        overflow-y: auto;
    }
    
    .slide-content h2 {
        font-size: 1.8rem;
    }
    
    .slide-content > p {
        font-size: 1rem;
    }
    
    .welcome-circle {
        width: 150px;
        height: 150px;
    }
    
    .welcome-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    .demo-number-circle {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
    
    .mode-cards-demo {
        transform: scale(0.7);
    }
    
    .feedback-demo {
        transform: scale(0.8);
    }
    
    .powerups-showcase {
        gap: 10px;
    }
    
    .powerup-demo {
        width: 100px;
        height: 100px;
    }
    
    .achievements-showcase {
        gap: 10px;
    }
    
    .achievement-demo {
        width: 90px;
        height: 90px;
    }
    
    .tutorial-navigation {
        padding: 15px 20px;
    }
    
    .nav-btn span {
        display: none;
    }
    
    .tutorial-skip {
        left: 20px;
        bottom: 15px;
    }
    
    .progress-track {
        width: 120px;
    }
    
    .mode-info-grid,
    .feedback-info-grid,
    .powerup-info-grid {
        gap: 8px;
    }
    
    .shortcuts-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* ===== LANDSCAPE PHONE ===== */
@media (max-width: 900px) and (orientation: landscape) {
    .tutorial-container {
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .tutorial-slide {
        grid-template-columns: 40% 60%;
        grid-template-rows: 1fr;
    }
    
    .slide-visual {
        padding: 15px;
    }
    
    .slide-content {
        padding: 15px 25px;
    }
    
    .slide-content h2 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .slide-content > p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .tutorial-navigation {
        padding: 10px 20px;
    }
}

/* ===== TABLET ===== */
@media (min-width: 901px) and (max-width: 1200px) {
    .tutorial-container {
        max-width: 95%;
    }
    
    .slide-content {
        padding: 40px;
    }
    
    .slide-content h2 {
        font-size: 2.2rem;
    }
}
/* ===== AUTH MODAL ===== */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.auth-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
}

.auth-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 90vh;
    max-height: 650px;
    background: var(--bg-tertiary);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    animation: slideUp 0.5s ease;
}

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

.auth-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #a0aec0;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-close:hover {
    background: rgba(252, 129, 129, 0.2);
    border-color: #fc8181;
    color: #fc8181;
    transform: rotate(90deg);
}

/* ===== Auth Branding (Left Side) ===== */
.auth-branding {
    position: relative;
    padding: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.brand-content {
    position: relative;
    z-index: 2;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.brand-logo .logo-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
}

.brand-logo span {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
}

.brand-logo .highlight {
    color: #ffd700;
}

.auth-branding h2 {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    line-height: 1.3;
    margin-bottom: 15px;
}

.auth-branding > .brand-content > p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.brand-feature {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-feature .feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.feature-text h4 {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 3px;
}

.feature-text p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.brand-stats {
    display: flex;
    gap: 30px;
}

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

.stat-num {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Brand Background Elements */
.brand-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
    animation: float 10s ease-in-out infinite reverse;
}

.circle-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 20%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

.floating-nums {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-nums span {
    position: absolute;
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.1);
    animation: floatNum 5s ease-in-out infinite;
}

.floating-nums span:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.floating-nums span:nth-child(2) { top: 30%; right: 10%; animation-delay: 1s; }
.floating-nums span:nth-child(3) { bottom: 40%; left: 20%; animation-delay: 2s; font-size: 3rem; }
.floating-nums span:nth-child(4) { bottom: 20%; right: 20%; animation-delay: 3s; }
.floating-nums span:nth-child(5) { top: 60%; left: 5%; animation-delay: 4s; }

@keyframes floatNum {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.1; }
    50% { transform: translateY(-20px) scale(1.1); opacity: 0.2; }
}

/* ===== Auth Forms (Right Side) ===== */
.auth-forms {
    padding: 50px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 5px;
    margin-bottom: 30px;
}

.auth-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: #718096;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
}

.auth-tab.active {
    color: white;
}

.tab-indicator {
    position: absolute;
    top: 5px;
    left: 5px;
    width: calc(50% - 5px);
    height: calc(100% - 10px);
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.auth-tab[data-tab="register"].active ~ .tab-indicator {
    left: calc(50%);
}

/* Form Header */
.form-header {
    margin-bottom: 25px;
    position: relative;
}

.form-header .back-btn {
    position: absolute;
    left: 0;
    top: 5px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #a0aec0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-header .back-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
}

.form-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-header p {
    color: #718096;
    font-size: 0.95rem;
}

/* Social Login */
.social-login {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #e2e8f0;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.social-btn.google:hover {
    border-color: #ea4335;
    color: #ea4335;
}

.social-btn.github:hover {
    border-color: #fff;
}

.social-btn i {
    font-size: 1.2rem;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.divider span {
    padding: 0 15px;
    color: #718096;
    font-size: 0.85rem;
}

/* Form Group */
.form-group {
    margin-bottom: 20px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 18px;
    color: #718096;
    font-size: 1rem;
    transition: color 0.3s ease;
    z-index: 1;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 16px 18px 16px 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #e2e8f0;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.auth-form input:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: #667eea;
    outline: none;
}

.auth-form input:focus + .input-focus-border {
    opacity: 1;
}

.auth-form input:focus ~ .input-icon,
.auth-form input:not(:placeholder-shown) ~ .input-icon {
    color: #667eea;
}

.input-focus-border {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #f093fb);
    border-radius: 0 0 12px 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.toggle-password {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #718096;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #667eea;
}

.input-status {
    position: absolute;
    right: 15px;
    font-size: 1rem;
}

.input-status.valid::after {
    content: '✓';
    color: #48bb78;
}

.input-status.invalid::after {
    content: '✗';
    color: #fc8181;
}

.error-message {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #fc8181;
}

/* Password Strength */
.password-strength {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 12px;
}

.strength-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.strength-fill.weak { width: 25%; background: #fc8181; }
.strength-fill.fair { width: 50%; background: #f6ad55; }
.strength-fill.good { width: 75%; background: #4fd1c7; }
.strength-fill.strong { width: 100%; background: #48bb78; }

.strength-text {
    font-size: 0.8rem;
    color: #718096;
    min-width: 100px;
}

.password-requirements {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #718096;
}

.requirement i {
    font-size: 0.5rem;
    transition: all 0.3s ease;
}

.requirement.met {
    color: #48bb78;
}

.requirement.met i {
    color: #48bb78;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #a0aec0;
}

.checkbox-wrapper input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.checkbox-wrapper input:checked + .checkmark {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: transparent;
}

.checkbox-wrapper input:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 0.75rem;
}

.forgot-link {
    color: #667eea;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #f093fb;
    text-decoration: underline;
}

/* Submit Button */
.btn-auth-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-auth-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.btn-auth-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: btn-shine 3s infinite;
}

.btn-auth-submit.loading .btn-loader {
    display: block;
}

.btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Guest Button */
.btn-guest {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 25px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #a0aec0;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.btn-guest:hover {
    border-color: #667eea;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

/* Form Terms */
.form-terms {
    margin-bottom: 25px;
}

.form-terms a {
    color: #667eea;
}

/* Hidden Form */
.auth-form.hidden {
    display: none;
}


/* ===== SETTINGS MODAL ===== */
.settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.settings-modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.settings-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
}

.settings-container {
    position: relative;
    width: 100%;
    max-width: 1100px;
    height: 90vh;
    max-height: 750px;
    background: var(--bg-secondary);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.5s ease;
}

/* Settings Header */
.settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.settings-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.settings-title i {
    font-size: 1.5rem;
    color: #667eea;
    animation: spin 10s linear infinite;
}

.settings-title h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.settings-close {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #a0aec0;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.settings-close:hover {
    background: rgba(252, 129, 129, 0.2);
    border-color: #fc8181;
    color: #fc8181;
}

/* Settings Body */
.settings-body {
    flex: 1;
    display: grid;
    grid-template-columns: 250px 1fr;
    overflow: hidden;
}

/* Settings Navigation */
.settings-nav {
    padding: 25px 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 5px;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: #a0aec0;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: #e2e8f0;
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(102, 126, 234, 0.1));
    color: #667eea;
}

.nav-item i {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

/* Settings Content */
.settings-content {
    padding: 30px;
    overflow-y: auto;
}

.settings-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.settings-section.active {
    display: block;
}

.section-header {
    margin-bottom: 30px;
}

.section-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.section-header p {
    color: #718096;
    font-size: 0.95rem;
}

/* Settings Card */
.settings-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.settings-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.settings-card.warning {
    border-color: rgba(252, 129, 129, 0.2);
    background: rgba(252, 129, 129, 0.05);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.card-title i {
    font-size: 1.2rem;
    color: #667eea;
}

.card-title h4 {
    font-size: 1.05rem;
    font-weight: 600;
}

.card-content {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Setting Row */
.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.setting-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.setting-info > i {
    font-size: 1.3rem;
    color: #667eea;
    width: 30px;
    text-align: center;
}

.setting-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 3px;
}

.setting-info p {
    font-size: 0.85rem;
    color: #718096;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 56px;
    height: 30px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    transition: all 0.3s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(26px);
}

/* Profile Section */
.profile-avatar-section {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
}

.avatar-preview {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.avatar-preview:hover .avatar-overlay {
    opacity: 1;
}

.avatar-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-avatar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 10px;
    color: #667eea;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-avatar:hover {
    background: #667eea;
    color: white;
}

.btn-avatar.secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.1);
    color: #a0aec0;
}

.btn-avatar.secondary:hover {
    background: rgba(252, 129, 129, 0.2);
    border-color: #fc8181;
    color: #fc8181;
}

/* Settings Form */
.settings-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.settings-form .form-group {
    margin-bottom: 0;
}

.settings-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #a0aec0;
}

.settings-form input,
.settings-form textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #e2e8f0;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.settings-form input:focus,
.settings-form textarea:focus {
    border-color: #667eea;
    outline: none;
}

.settings-form textarea {
    resize: vertical;
    font-family: inherit;
}

.input-prefix {
    position: absolute;
    left: 14px;
    color: #718096;
}

.settings-form .input-wrapper {
    position: relative;
}

.settings-form .input-wrapper .input-prefix + input {
    padding-left: 35px;
}

.input-badge {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.input-badge.verified {
    background: rgba(72, 187, 120, 0.2);
    color: #48bb78;
}

.char-counter {
    display: block;
    text-align: right;
    font-size: 0.8rem;
    color: #718096;
    margin-top: 8px;
}

/* Select Wrapper */
.select-wrapper {
    position: relative;
}

.select-wrapper select {
    width: 100%;
    padding: 14px 45px 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #e2e8f0;
    font-size: 1rem;
    cursor: pointer;
    appearance: none;
}

.select-wrapper select:focus {
    border-color: #667eea;
    outline: none;
}

.select-wrapper i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #718096;
    pointer-events: none;
}

/* Theme Options */
.theme-options {
    display: flex;
    gap: 15px;
}

.theme-option {
    cursor: pointer;
}

.theme-option input {
    display: none;
}

.theme-preview {
    width: 100px;
    height: 80px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.theme-option input:checked + .theme-preview {
    border-color: #667eea;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
}

.theme-preview.dark {
    background: #0d0d23;
}

.theme-preview.light {
    background: #f5f7fa;
}

.theme-preview.system {
    background: linear-gradient(135deg, #0d0d23 50%, #f5f7fa 50%);
}

.preview-header {
    height: 15px;
    background: rgba(102, 126, 234, 0.5);
}

.preview-body {
    padding: 10px;
    display: flex;
    justify-content: center;
}

.preview-circle {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
}

.theme-option span {
    display: block;
    text-align: center;
    font-size: 0.9rem;
    color: #a0aec0;
}

/* Color Options */
.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.color-option {
    cursor: pointer;
}

.color-option input {
    display: none;
}

.color-swatch {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-option input:checked + .color-swatch {
    border-color: white;
    transform: scale(1.1);
}

.color-option.custom .color-swatch {
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
}

.color-option.custom .color-swatch i {
    color: #718096;
}

.color-option input[type="color"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Slider Group */
.slider-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.slider-label {
    color: #718096;
    font-size: 0.9rem;
}

.slider-label.large {
    font-size: 1.3rem;
}

.range-slider {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    appearance: none;
    cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.5);
}

.slider-value {
    min-width: 50px;
    text-align: right;
    color: #667eea;
    font-weight: 600;
}

/* Volume Control */
.volume-control {
    display: flex;
    align-items: center;
    gap: 15px;
}

.volume-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 10px;
    color: #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
}

.volume-btn:hover {
    background: rgba(102, 126, 234, 0.2);
}

.volume-value {
    min-width: 45px;
    text-align: right;
    font-weight: 600;
    color: #a0aec0;
}

/* Storage Info */
.storage-info {
    margin-bottom: 20px;
}

.storage-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.storage-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #f093fb);
    border-radius: 10px;
}

.storage-details {
    display: flex;
    gap: 5px;
}

.storage-used {
    color: #667eea;
    font-weight: 600;
}

.storage-total {
    color: #718096;
}

.storage-breakdown {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.breakdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.breakdown-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.breakdown-size {
    margin-left: auto;
    color: #718096;
}

/* Button Groups */
.btn-group {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.btn-export,
.btn-clear {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #e2e8f0;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-export:hover,
.btn-clear:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.btn-clear.danger {
    border-color: rgba(252, 129, 129, 0.3);
    color: #fc8181;
}

.btn-clear.danger:hover {
    background: rgba(252, 129, 129, 0.2);
}

/* Import Area */
.import-area {
    padding: 40px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.import-area:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.import-area i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 15px;
}

.import-area span {
    display: block;
    color: #718096;
}

/* About Section */
.about-card {
    text-align: center;
    padding: 30px;
}

.about-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.about-logo .logo-icon.large {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.about-name h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
}

.version {
    color: #718096;
    font-size: 0.9rem;
}

.about-desc {
    color: #a0aec0;
    max-width: 500px;
    margin: 0 auto 20px;
}

.about-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-badge {
    padding: 6px 14px;
    background: rgba(102, 126, 234, 0.15);
    border-radius: 20px;
    font-size: 0.8rem;
    color: #667eea;
}

.developer-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.developer-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.developer-info h4 {
    font-size: 1.1rem;
}

.developer-info p {
    color: #718096;
    font-size: 0.9rem;
}

.developer-links {
    display: flex;
    gap: 15px;
}

.dev-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.dev-link:hover {
    background: #667eea;
    border-color: #667eea;
    color: white;
    transform: translateY(-3px);
}

.about-links {
    display: flex;
    flex-direction: column;
}

.about-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    transition: all 0.3s ease;
}

.about-link:last-child {
    border-bottom: none;
}

.about-link:hover {
    color: #667eea;
}

.about-link i:first-child {
    width: 24px;
    color: #667eea;
}

.about-link span {
    flex: 1;
}

.about-link i:last-child {
    color: #718096;
    font-size: 0.8rem;
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
    color: #718096;
}

.legal-links a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 0.9rem;
}

.legal-links a:hover {
    color: #667eea;
}

.copyright {
    text-align: center;
    color: #718096;
    font-size: 0.85rem;
}

/* Danger Button */
.btn-danger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 25px;
    background: rgba(252, 129, 129, 0.2);
    border: 1px solid rgba(252, 129, 129, 0.3);
    border-radius: 12px;
    color: #fc8181;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: #fc8181;
    color: white;
}

.warning-text {
    color: #fc8181;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* Settings Footer */
.settings-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-reset-settings {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #a0aec0;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reset-settings:hover {
    border-color: #f6ad55;
    color: #f6ad55;
}

.footer-actions {
    display: flex;
    gap: 15px;
}

.btn-cancel {
    padding: 12px 25px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #a0aec0;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    border-color: #e2e8f0;
    color: #e2e8f0;
}

.btn-save-settings {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-save-settings:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-save {
    padding: 12px 25px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-test-sound {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 25px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    color: #667eea;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-test-sound:hover {
    background: #667eea;
    color: white;
}

.btn-expand {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 8px;
    color: #718096;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-expand:hover {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
}

.btn-expand.expanded i {
    transform: rotate(180deg);
}

/* Clear Options */
.clear-options {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}


/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .auth-container {
        grid-template-columns: 1fr;
        max-height: 95vh;
    }
    
    .auth-branding {
        display: none;
    }
    
    .settings-body {
        grid-template-columns: 1fr;
    }
    
    .settings-nav {
        flex-direction: row;
        overflow-x: auto;
        padding: 15px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-item {
        flex-direction: column;
        padding: 10px 15px;
        min-width: fit-content;
        font-size: 0.8rem;
        gap: 5px;
    }
    
    .nav-item span {
        display: none;
    }
    
    .settings-content {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .profile-avatar-section {
        flex-direction: column;
        text-align: center;
    }
    
    .avatar-actions {
        flex-direction: row;
    }
    
    .settings-footer {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-actions {
        width: 100%;
    }
    
    .btn-cancel,
    .btn-save-settings {
        flex: 1;
    }
}