/* Base Styles - Beginner-Friendly Design */
:root {
    /* Friendly, welcoming color palette */
    --primary-color: #6C63FF;
    --primary-dark: #5A52D5;
    --primary-light: #8B85FF;
    --secondary-color: #00C9A7;
    --secondary-dark: #00A78D;
    --secondary-light: #4DE8CE;
    --accent-color: #FF6B6B;
    --accent-light: #FF8E8E;
    --warning-color: #FFB84D;
    --danger-color: #FF5252;
    --success-color: #00C853;

    /* Soft, friendly backgrounds */
    --dark-color: #2D3748;
    --light-color: #F7FAFC;
    --bg-gradient-start: #667eea;
    --bg-gradient-end: #764ba2;

    /* Readable, friendly text */
    --text-color: #2D3748;
    --text-muted: #718096;
    --text-light: #A0AEC0;
    --border-color: #E2E8F0;

    /* Soft shadows and rounded corners for friendly feel */
    --shadow: 0 4px 20px rgba(108, 99, 255, 0.15);
    --shadow-hover: 0 8px 30px rgba(108, 99, 255, 0.25);
    --shadow-glow: 0 0 40px rgba(108, 99, 255, 0.3);
    --radius: 16px;
    --radius-small: 8px;
    --radius-large: 24px;

    /* Animations */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-blur: blur(20px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 16px;
}

/* Import Google Fonts for friendly typography */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

/* Header & Navigation */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--bg-gradient-end) 100%);
    color: white;
    padding: 0 20px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-brand a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-brand a::before {
    content: "🐍";
    font-size: 1.6rem;
}

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

.nav-links a {
    color: rgba(255,255,255,0.95);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: var(--radius);
    transition: all var(--transition-normal);
    font-weight: 600;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.2);
    color: white;
    transform: translateY(-2px);
}

.btn-register {
    background: var(--secondary-color) !important;
    color: white !important;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 201, 167, 0.3);
}

.btn-register:hover {
    background: var(--secondary-dark) !important;
    transform: translateY(-2px);
}

.btn-logout {
    background: rgba(255, 107, 107, 0.9) !important;
    font-weight: 600;
}

/* Main Content */
.main-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    width: 100%;
}

/* Messages/Alerts */
.messages {
    margin-bottom: 20px;
}

.alert {
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error, .alert-danger { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-warning { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.alert-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

.alert-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.5;
}

.alert-close:hover { opacity: 1; }

/* Buttons - Friendly and Inviting */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all var(--transition-normal);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::after {
    width: 200px;
    height: 200px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.4);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.btn-success {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 201, 167, 0.3);
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 201, 167, 0.4);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.15rem;
    border-radius: var(--radius-large);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Hero Section - Welcoming and Encouraging */
.hero {
    text-align: center;
    padding: 70px 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--bg-gradient-end) 50%, var(--accent-color) 100%);
    color: white;
    border-radius: var(--radius-large);
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 40%;
    height: 150%;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    pointer-events: none;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 35px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 35px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 25px 35px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all var(--transition-normal);
}

.stat-card:hover {
    transform: scale(1.05);
    background: rgba(255,255,255,0.2);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: 500;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.feature {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: var(--radius);
    max-width: 280px;
    border: 1px solid rgba(255,255,255,0.15);
    transition: all var(--transition-normal);
}

.feature:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.18);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: white;
    color: var(--primary-color);
    border-radius: 50%;
    font-weight: 800;
    margin-bottom: 18px;
    font-size: 1.4rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.feature h3 {
    margin-bottom: 12px;
    font-weight: 700;
}

.feature p {
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

/* Info Section - Friendly Steps */
.info-section {
    background: white;
    padding: 50px 40px;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow);
}

.info-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark-color);
    font-size: 2rem;
    font-weight: 800;
}

.steps {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.step {
    text-align: center;
    max-width: 280px;
    padding: 25px;
    border-radius: var(--radius);
    transition: all var(--transition-normal);
}

.step:hover {
    background: var(--light-color);
    transform: translateY(-5px);
}

.step-number {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--bg-gradient-end) 100%);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 20px;
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.3);
}

.step h3 {
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.step p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Page Header - Welcoming Titles */
.page-header {
    margin-bottom: 40px;
    text-align: center;
}

.page-header h1 {
    color: var(--dark-color);
    margin-bottom: 12px;
    font-size: 2.4rem;
    font-weight: 800;
}

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

.back-link {
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    font-weight: 600;
    transition: all var(--transition-normal);
}

.back-link:hover {
    color: var(--primary-dark);
    transform: translateX(-5px);
}

.back-link::before {
    content: "←";
}

/* Auth Pages */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.auth-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 400px;
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--dark-color);
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.auth-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-help {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
}

.auth-link a {
    color: var(--primary-color);
}

/* Levels Grid - Fun and Engaging */
.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.level-card {
    background: white;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow);
    padding: 30px;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.level-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.level-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

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

.level-card.locked {
    opacity: 0.7;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.level-card.locked:hover {
    transform: none;
    box-shadow: var(--shadow);
    border-color: transparent;
}

.level-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.level-number {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--bg-gradient-end) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.3rem;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
    flex-shrink: 0;
}

.level-header h3 {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--dark-color);
}

.level-description {
    color: var(--text-muted);
    margin-bottom: 22px;
    line-height: 1.6;
}

.level-progress {
    margin-bottom: 18px;
}

.progress-bar {
    height: 10px;
    background: linear-gradient(90deg, #e2e8f0, #edf2f7);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar.large {
    height: 14px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--secondary-light));
    border-radius: 10px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-fill::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 600;
}

.level-locked {
    text-align: center;
    padding: 25px;
    color: var(--text-muted);
    background: rgba(0,0,0,0.02);
    border-radius: var(--radius);
    margin-top: 10px;
}

.lock-icon {
    font-size: 1.4rem;
    display: block;
    margin-bottom: 12px;
}

/* Level icon colors based on order */
.level-card:nth-child(1) .level-number { background: linear-gradient(135deg, #667eea, #764ba2); }
.level-card:nth-child(2) .level-number { background: linear-gradient(135deg, #f093fb, #f5576c); }
.level-card:nth-child(3) .level-number { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.level-card:nth-child(4) .level-number { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.level-card:nth-child(5) .level-number { background: linear-gradient(135deg, #fa709a, #fee140); }
.level-card:nth-child(6) .level-number { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }
.level-card:nth-child(7) .level-number { background: linear-gradient(135deg, #ff9a9e, #fecfef); }
.level-card:nth-child(8) .level-number { background: linear-gradient(135deg, #6a11cb, #2575fc); }

/* Tasks */
.theory-section {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.theory-content {
    line-height: 1.8;
}

.tasks-section {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.task-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--light-color);
    border-radius: var(--radius);
    transition: all 0.3s;
}

.task-card:hover {
    background: #e8e8e8;
}

.task-card.completed {
    border-left: 4px solid var(--secondary-color);
}

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

.task-number {
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.task-details h3 {
    margin-bottom: 5px;
}

.task-details p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.task-meta {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.difficulty {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.difficulty-easy { background: #d4edda; color: #155724; }
.difficulty-medium { background: #fff3cd; color: #856404; }
.difficulty-hard { background: #f8d7da; color: #721c24; }

.points {
    color: var(--warning-color);
    font-weight: 500;
}

.attempts {
    color: var(--text-muted);
}

/* Task Page */
.task-page {
    max-width: 900px;
    margin: 0 auto;
}

.task-description {
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.task-hints {
    background: #fff9e6;
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.task-hints summary {
    cursor: pointer;
    font-weight: 500;
}

.hints-list {
    margin-top: 15px;
    padding-left: 20px;
}

.hints-list li {
    margin-bottom: 8px;
}

.code-editor-section {
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

/* CodeMirror Editor Wrapper */
.code-editor-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.code-editor-wrapper .CodeMirror {
    font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    line-height: 1.6;
    border-radius: var(--radius);
    height: auto;
    min-height: 300px;
}

.code-editor-wrapper .CodeMirror-gutters {
    background: #21222c;
    border-right: 1px solid #44475a;
}

.code-editor-wrapper .CodeMirror-linenumber {
    color: #6272a4;
}

/* Legacy textarea fallback */
.code-editor textarea {
    width: 100%;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: #1e1e1e;
    color: #d4d4d4;
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

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

.result-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.result-card.success {
    border: 2px solid var(--secondary-color);
}

.result-card.error {
    border: 2px solid var(--danger-color);
}

.result-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    font-weight: bold;
}

.result-header.success {
    background: #d4edda;
    color: #155724;
}

.result-header.error {
    background: #f8d7da;
    color: #721c24;
}

.result-icon {
    font-size: 1.5rem;
}

.result-output, .result-error {
    padding: 15px 20px;
}

.result-output pre, .result-error pre {
    background: #f5f5f5;
    padding: 15px;
    border-radius: var(--radius);
    overflow-x: auto;
    font-family: monospace;
}

.run-output {
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.run-output pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 15px;
    border-radius: var(--radius);
    overflow-x: auto;
}

.error-text {
    color: #ff6b6b;
}

.task-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

/* Next Level Section */
.next-level-section {
    margin-top: 30px;
}

.next-level-card {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    color: white;
    padding: 30px;
    border-radius: var(--radius-large);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    box-shadow: 0 6px 25px rgba(0, 201, 167, 0.35);
    flex-wrap: wrap;
}

.next-level-info {
    display: flex;
    align-items: center;
    gap: 18px;
}

.next-level-info .success-icon {
    font-size: 2.5rem;
    background: rgba(255, 255, 255, 0.2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.next-level-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.next-level-info p {
    opacity: 0.9;
    font-size: 1rem;
}

.next-level-card .btn-success {
    background: white;
    color: var(--secondary-dark);
    font-weight: 700;
    padding: 14px 28px;
    font-size: 1.05rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.next-level-card .btn-success:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .next-level-card {
        flex-direction: column;
        text-align: center;
    }

    .next-level-info {
        flex-direction: column;
    }

    .next-level-card .btn-success {
        width: 100%;
    }
}

/* Profile Page */
.profile-page {
    max-width: 800px;
    margin: 0 auto;
}

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

.profile-stats .stat-card {
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.profile-stats .stat-number {
    color: var(--primary-color);
}

.profile-section {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.profile-section h2 {
    margin-bottom: 20px;
}

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

.achievement-card {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.achievement-card.locked {
    opacity: 0.5;
    filter: grayscale(1);
}

.achievement-icon {
    width: 50px;
    height: 50px;
    background: var(--warning-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.achievement-info h3, .achievement-info h4 {
    margin-bottom: 5px;
}

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

.earned-badge {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-top: 8px;
}

.locked-badge {
    display: inline-block;
    background: var(--text-muted);
    color: white;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-top: 8px;
}

/* Empty State - Encouraging */
.empty-state {
    text-align: center;
    padding: 60px 40px;
    color: var(--text-muted);
    background: white;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow);
}

.empty-state::before {
    content: "🎯";
    display: block;
    font-size: 4rem;
    margin-bottom: 20px;
}

.empty-state p {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Footer - Friendly */
.footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, #1a202c 100%);
    color: rgba(255,255,255,0.8);
    text-align: center;
    padding: 25px 20px;
    margin-top: auto;
    font-weight: 500;
}

.footer::before {
    content: "🐍 ";
}

/* Form Controls */
.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Language Switcher */
.language-switcher {
    margin-left: 10px;
}

.language-select {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 6px 10px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.9rem;
}

.language-select:hover {
    background: rgba(255,255,255,0.2);
}

.language-select option {
    background: var(--dark-color);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 15px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }

    .hero-features {
        flex-direction: column;
        align-items: center;
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }

    .task-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .task-actions {
        width: 100%;
    }

    .task-actions .btn {
        width: 100%;
    }
}

/* ===== PREMIUM VIP STYLES ===== */

/* VIP Color Palettes */
:root {
    /* Gold VIP */
    --vip-gold-primary: #FFD700;
    --vip-gold-secondary: #FFA500;
    --vip-gold-dark: #B8860B;
    --vip-gold-light: #FFEC8B;
    --vip-gold-gradient: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
    --vip-gold-shine: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.4), transparent);

    /* Platinum VIP */
    --vip-platinum-primary: #E5E4E2;
    --vip-platinum-secondary: #C0C0C0;
    --vip-platinum-dark: #8E8E8E;
    --vip-platinum-light: #F8F8FF;
    --vip-platinum-gradient: linear-gradient(135deg, #E5E4E2 0%, #C0C0C0 30%, #F8F8FF 50%, #C0C0C0 70%, #E5E4E2 100%);
    --vip-platinum-shine: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);

    /* Diamond VIP */
    --vip-diamond-primary: #B9F2FF;
    --vip-diamond-secondary: #7DF9FF;
    --vip-diamond-dark: #4169E1;
    --vip-diamond-light: #E0FFFF;
    --vip-diamond-gradient: linear-gradient(135deg, #B9F2FF 0%, #7DF9FF 25%, #FFFFFF 50%, #7DF9FF 75%, #B9F2FF 100%);
    --vip-diamond-shine: linear-gradient(90deg, transparent, rgba(185, 242, 255, 0.8), transparent);
}

/* VIP Keyframe Animations */
@keyframes vip-glow-gold {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.4), 0 0 40px rgba(255, 165, 0, 0.2); }
    50% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.6), 0 0 60px rgba(255, 165, 0, 0.4); }
}

@keyframes vip-glow-platinum {
    0%, 100% { box-shadow: 0 0 20px rgba(192, 192, 192, 0.5), 0 0 40px rgba(229, 228, 226, 0.3); }
    50% { box-shadow: 0 0 35px rgba(192, 192, 192, 0.7), 0 0 70px rgba(229, 228, 226, 0.5); }
}

@keyframes vip-glow-diamond {
    0%, 100% { box-shadow: 0 0 25px rgba(185, 242, 255, 0.5), 0 0 50px rgba(125, 249, 255, 0.3), 0 0 75px rgba(65, 105, 225, 0.2); }
    50% { box-shadow: 0 0 40px rgba(185, 242, 255, 0.8), 0 0 80px rgba(125, 249, 255, 0.5), 0 0 100px rgba(65, 105, 225, 0.3); }
}

@keyframes vip-shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(200%) rotate(45deg); }
}

@keyframes vip-sparkle {
    0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
    50% { opacity: 1; transform: scale(1) rotate(180deg); }
}

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

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

@keyframes vip-border-rotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes vip-crown-bounce {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    25% { transform: translateY(-3px) rotate(0deg); }
    50% { transform: translateY(0) rotate(5deg); }
    75% { transform: translateY(-3px) rotate(0deg); }
}

@keyframes diamond-sparkle {
    0% { filter: brightness(1) saturate(1); }
    25% { filter: brightness(1.3) saturate(1.2); }
    50% { filter: brightness(1.5) saturate(1.3); }
    75% { filter: brightness(1.3) saturate(1.2); }
    100% { filter: brightness(1) saturate(1); }
}

/* VIP Profile Page Container */
.profile-page.vip-profile {
    position: relative;
}

.profile-page.vip-profile::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

/* VIP Page Header */
.vip-page-header {
    position: relative;
    text-align: center;
    padding: 50px 30px;
    margin-bottom: 40px;
    border-radius: var(--radius-large);
    overflow: hidden;
}

.vip-page-header.gold {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
    border: 3px solid transparent;
    background-clip: padding-box;
}

.vip-page-header.gold::before {
    content: "";
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #FFD700, #FFA500, #FFD700, #B8860B, #FFD700);
    background-size: 300% 300%;
    border-radius: var(--radius-large);
    z-index: -1;
    animation: vip-border-rotate 4s ease infinite;
}

.vip-page-header.platinum {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f23 50%, #1a1a2e 100%);
    border: 3px solid transparent;
}

.vip-page-header.platinum::before {
    content: "";
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #E5E4E2, #C0C0C0, #F8F8FF, #C0C0C0, #E5E4E2);
    background-size: 300% 300%;
    border-radius: var(--radius-large);
    z-index: -1;
    animation: vip-border-rotate 3s ease infinite;
}

.vip-page-header.diamond {
    background: linear-gradient(135deg, #0a0a1a 0%, #0d1b2a 50%, #0a0a1a 100%);
    border: 3px solid transparent;
}

.vip-page-header.diamond::before {
    content: "";
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #B9F2FF, #7DF9FF, #FFFFFF, #4169E1, #7DF9FF, #B9F2FF);
    background-size: 400% 400%;
    border-radius: var(--radius-large);
    z-index: -1;
    animation: vip-border-rotate 2.5s ease infinite;
}

/* Shine Effect Overlay */
.vip-page-header::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: skewX(-25deg);
    animation: vip-shine 4s ease-in-out infinite;
}

/* VIP Crown Icon */
.vip-crown {
    font-size: 3rem;
    margin-bottom: 15px;
    display: inline-block;
    animation: vip-crown-bounce 2s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.vip-crown.gold { filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6)); }
.vip-crown.platinum { filter: drop-shadow(0 0 20px rgba(192, 192, 192, 0.8)); }
.vip-crown.diamond {
    filter: drop-shadow(0 0 25px rgba(185, 242, 255, 0.8));
    animation: vip-crown-bounce 2s ease-in-out infinite, diamond-sparkle 3s ease-in-out infinite;
}

/* VIP Username Styling */
.vip-username {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.vip-username.gold {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFEC8B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.4));
}

.vip-username.platinum {
    background: linear-gradient(135deg, #F8F8FF 0%, #C0C0C0 50%, #E5E4E2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(192, 192, 192, 0.5));
}

.vip-username.diamond {
    background: linear-gradient(135deg, #E0FFFF 0%, #7DF9FF 30%, #FFFFFF 50%, #7DF9FF 70%, #B9F2FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 6px rgba(125, 249, 255, 0.6));
}

/* VIP Badge */
.vip-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    margin-top: 15px;
}

.vip-badge.gold {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1a1a2e;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
    animation: vip-glow-gold 2s ease-in-out infinite;
}

.vip-badge.platinum {
    background: linear-gradient(135deg, #E5E4E2 0%, #C0C0C0 50%, #F8F8FF 100%);
    color: #1a1a2e;
    box-shadow: 0 4px 25px rgba(192, 192, 192, 0.5);
    animation: vip-glow-platinum 2s ease-in-out infinite;
}

.vip-badge.diamond {
    background: linear-gradient(135deg, #B9F2FF 0%, #7DF9FF 50%, #FFFFFF 100%);
    color: #0d1b2a;
    box-shadow: 0 4px 30px rgba(125, 249, 255, 0.5);
    animation: vip-glow-diamond 2s ease-in-out infinite;
}

.vip-badge::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: vip-shine 2s ease-in-out infinite;
}

.vip-badge-icon {
    font-size: 1.2rem;
}

/* VIP Stats Cards */
.vip-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.vip-stat-card {
    position: relative;
    padding: 30px 25px;
    border-radius: var(--radius-large);
    text-align: center;
    overflow: hidden;
    transition: all 0.4s ease;
}

.vip-stat-card.gold {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.vip-stat-card.gold:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.25);
}

.vip-stat-card.platinum {
    background: linear-gradient(145deg, #0f0f23 0%, #1a1a2e 100%);
    border: 2px solid rgba(192, 192, 192, 0.3);
}

.vip-stat-card.platinum:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(192, 192, 192, 0.6);
    box-shadow: 0 15px 45px rgba(192, 192, 192, 0.3);
}

.vip-stat-card.diamond {
    background: linear-gradient(145deg, #0a0a1a 0%, #0d1b2a 100%);
    border: 2px solid rgba(125, 249, 255, 0.3);
}

.vip-stat-card.diamond:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(125, 249, 255, 0.6);
    box-shadow: 0 15px 50px rgba(125, 249, 255, 0.3);
}

.vip-stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: skewX(-25deg);
    transition: left 0.8s ease;
}

.vip-stat-card:hover::before {
    left: 150%;
}

.vip-stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1;
}

.vip-stat-number.gold {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vip-stat-number.platinum {
    background: linear-gradient(135deg, #F8F8FF, #C0C0C0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vip-stat-number.diamond {
    background: linear-gradient(135deg, #E0FFFF, #7DF9FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vip-stat-label {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.vip-stat-card.gold .vip-stat-label { color: #FFD700; }
.vip-stat-card.platinum .vip-stat-label { color: #C0C0C0; }
.vip-stat-card.diamond .vip-stat-label { color: #7DF9FF; }

/* VIP Stat Icon */
.vip-stat-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
}

/* VIP Progress Section */
.vip-progress-section {
    position: relative;
    padding: 35px;
    border-radius: var(--radius-large);
    margin-bottom: 35px;
    overflow: hidden;
}

.vip-progress-section.gold {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid rgba(255, 215, 0, 0.25);
}

.vip-progress-section.platinum {
    background: linear-gradient(145deg, #0f0f23 0%, #1a1a2e 100%);
    border: 2px solid rgba(192, 192, 192, 0.25);
}

.vip-progress-section.diamond {
    background: linear-gradient(145deg, #0a0a1a 0%, #0d1b2a 100%);
    border: 2px solid rgba(125, 249, 255, 0.25);
}

.vip-progress-section h2 {
    margin-bottom: 25px;
    font-size: 1.5rem;
    font-weight: 700;
}

.vip-progress-section.gold h2 { color: #FFD700; }
.vip-progress-section.platinum h2 { color: #E5E4E2; }
.vip-progress-section.diamond h2 { color: #7DF9FF; }

/* VIP Progress Bar */
.vip-progress-bar {
    height: 18px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
}

.vip-progress-bar.gold {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.vip-progress-bar.platinum {
    background: rgba(192, 192, 192, 0.1);
    border: 1px solid rgba(192, 192, 192, 0.2);
}

.vip-progress-bar.diamond {
    background: rgba(125, 249, 255, 0.1);
    border: 1px solid rgba(125, 249, 255, 0.2);
}

.vip-progress-fill {
    height: 100%;
    border-radius: 20px;
    position: relative;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.vip-progress-fill.gold {
    background: linear-gradient(90deg, #B8860B, #FFD700, #FFA500, #FFD700);
    background-size: 200% 100%;
    animation: vip-border-rotate 3s linear infinite;
}

.vip-progress-fill.platinum {
    background: linear-gradient(90deg, #8E8E8E, #C0C0C0, #F8F8FF, #C0C0C0);
    background-size: 200% 100%;
    animation: vip-border-rotate 2.5s linear infinite;
}

.vip-progress-fill.diamond {
    background: linear-gradient(90deg, #4169E1, #7DF9FF, #FFFFFF, #7DF9FF);
    background-size: 200% 100%;
    animation: vip-border-rotate 2s linear infinite;
}

.vip-progress-fill::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 1.5s infinite;
}

.vip-progress-text {
    font-size: 1rem;
    font-weight: 600;
}

.vip-progress-section.gold .vip-progress-text { color: rgba(255, 215, 0, 0.9); }
.vip-progress-section.platinum .vip-progress-text { color: rgba(229, 228, 226, 0.9); }
.vip-progress-section.diamond .vip-progress-text { color: rgba(125, 249, 255, 0.9); }

/* VIP Achievements Section */
.vip-achievements-section {
    position: relative;
    padding: 35px;
    border-radius: var(--radius-large);
    margin-bottom: 35px;
    overflow: hidden;
}

.vip-achievements-section.gold {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid rgba(255, 215, 0, 0.25);
}

.vip-achievements-section.platinum {
    background: linear-gradient(145deg, #0f0f23 0%, #1a1a2e 100%);
    border: 2px solid rgba(192, 192, 192, 0.25);
}

.vip-achievements-section.diamond {
    background: linear-gradient(145deg, #0a0a1a 0%, #0d1b2a 100%);
    border: 2px solid rgba(125, 249, 255, 0.25);
}

.vip-achievements-section h2 {
    margin-bottom: 25px;
    font-size: 1.5rem;
    font-weight: 700;
}

.vip-achievements-section.gold h2 { color: #FFD700; }
.vip-achievements-section.platinum h2 { color: #E5E4E2; }
.vip-achievements-section.diamond h2 { color: #7DF9FF; }

/* VIP Achievement Card */
.vip-achievement-card {
    display: flex;
    gap: 18px;
    padding: 22px;
    border-radius: var(--radius);
    margin-bottom: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.vip-achievement-card.gold {
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.vip-achievement-card.gold:hover {
    background: rgba(255, 215, 0, 0.15);
    transform: translateX(8px);
    box-shadow: -4px 0 20px rgba(255, 215, 0, 0.3);
}

.vip-achievement-card.platinum {
    background: rgba(192, 192, 192, 0.08);
    border: 1px solid rgba(192, 192, 192, 0.2);
}

.vip-achievement-card.platinum:hover {
    background: rgba(192, 192, 192, 0.15);
    transform: translateX(8px);
    box-shadow: -4px 0 20px rgba(192, 192, 192, 0.3);
}

.vip-achievement-card.diamond {
    background: rgba(125, 249, 255, 0.08);
    border: 1px solid rgba(125, 249, 255, 0.2);
}

.vip-achievement-card.diamond:hover {
    background: rgba(125, 249, 255, 0.15);
    transform: translateX(8px);
    box-shadow: -4px 0 20px rgba(125, 249, 255, 0.3);
}

.vip-achievement-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
    position: relative;
}

.vip-achievement-icon.gold {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.vip-achievement-icon.platinum {
    background: linear-gradient(135deg, #E5E4E2, #C0C0C0);
    box-shadow: 0 4px 15px rgba(192, 192, 192, 0.4);
}

.vip-achievement-icon.diamond {
    background: linear-gradient(135deg, #7DF9FF, #B9F2FF);
    box-shadow: 0 4px 15px rgba(125, 249, 255, 0.4);
    animation: diamond-sparkle 2s ease-in-out infinite;
}

.vip-achievement-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.vip-achievement-card.gold .vip-achievement-info h4 { color: #FFD700; }
.vip-achievement-card.platinum .vip-achievement-info h4 { color: #E5E4E2; }
.vip-achievement-card.diamond .vip-achievement-info h4 { color: #7DF9FF; }

.vip-achievement-info p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 8px;
}

.vip-achievement-card.gold .vip-achievement-info p { color: rgba(255, 215, 0, 0.7); }
.vip-achievement-card.platinum .vip-achievement-info p { color: rgba(229, 228, 226, 0.7); }
.vip-achievement-card.diamond .vip-achievement-info p { color: rgba(125, 249, 255, 0.7); }

.vip-achievement-date {
    font-size: 0.8rem;
    opacity: 0.6;
}

.vip-achievement-card.gold .vip-achievement-date { color: #B8860B; }
.vip-achievement-card.platinum .vip-achievement-date { color: #8E8E8E; }
.vip-achievement-card.diamond .vip-achievement-date { color: #4169E1; }

/* VIP Button Styles */
.vip-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.vip-btn.gold {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1a1a2e;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

.vip-btn.gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.5);
}

.vip-btn.platinum {
    background: linear-gradient(135deg, #E5E4E2 0%, #C0C0C0 100%);
    color: #1a1a2e;
    box-shadow: 0 4px 20px rgba(192, 192, 192, 0.3);
}

.vip-btn.platinum:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(192, 192, 192, 0.5);
}

.vip-btn.diamond {
    background: linear-gradient(135deg, #7DF9FF 0%, #B9F2FF 100%);
    color: #0a0a1a;
    box-shadow: 0 4px 20px rgba(125, 249, 255, 0.3);
}

.vip-btn.diamond:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(125, 249, 255, 0.5);
}

.vip-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.vip-btn:hover::before {
    left: 100%;
}

/* VIP Sparkle Decorations */
.vip-sparkles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.vip-sparkle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: vip-sparkle 2s ease-in-out infinite;
}

.vip-sparkle.gold { background: #FFD700; box-shadow: 0 0 10px #FFD700; }
.vip-sparkle.platinum { background: #E5E4E2; box-shadow: 0 0 10px #E5E4E2; }
.vip-sparkle.diamond { background: #7DF9FF; box-shadow: 0 0 10px #7DF9FF; }

.vip-sparkle:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.vip-sparkle:nth-child(2) { top: 20%; right: 15%; animation-delay: 0.3s; }
.vip-sparkle:nth-child(3) { bottom: 25%; left: 20%; animation-delay: 0.6s; }
.vip-sparkle:nth-child(4) { top: 40%; right: 10%; animation-delay: 0.9s; }
.vip-sparkle:nth-child(5) { bottom: 15%; right: 25%; animation-delay: 1.2s; }
.vip-sparkle:nth-child(6) { top: 15%; left: 40%; animation-delay: 1.5s; }

/* VIP Nav Badge (for header) */
.nav-vip-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 8px;
}

.nav-vip-badge.gold {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a2e;
}

.nav-vip-badge.platinum {
    background: linear-gradient(135deg, #E5E4E2, #C0C0C0);
    color: #1a1a2e;
}

.nav-vip-badge.diamond {
    background: linear-gradient(135deg, #7DF9FF, #B9F2FF);
    color: #0a0a1a;
    animation: diamond-sparkle 3s ease-in-out infinite;
}

/* VIP Level Card Enhancement */
.level-card.vip-enhanced {
    position: relative;
}

.level-card.vip-enhanced.gold {
    border: 2px solid rgba(255, 215, 0, 0.4);
    box-shadow: 0 4px 30px rgba(255, 215, 0, 0.15);
}

.level-card.vip-enhanced.platinum {
    border: 2px solid rgba(192, 192, 192, 0.4);
    box-shadow: 0 4px 30px rgba(192, 192, 192, 0.15);
}

.level-card.vip-enhanced.diamond {
    border: 2px solid rgba(125, 249, 255, 0.4);
    box-shadow: 0 4px 30px rgba(125, 249, 255, 0.15);
}

/* VIP Exclusive Badge */
.vip-exclusive-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
}

.vip-exclusive-badge.gold {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a2e;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.4);
}

.vip-exclusive-badge.platinum {
    background: linear-gradient(135deg, #E5E4E2, #C0C0C0);
    color: #1a1a2e;
    box-shadow: 0 2px 10px rgba(192, 192, 192, 0.4);
}

.vip-exclusive-badge.diamond {
    background: linear-gradient(135deg, #7DF9FF, #B9F2FF);
    color: #0a0a1a;
    box-shadow: 0 2px 10px rgba(125, 249, 255, 0.4);
}

/* VIP Perks Section */
.vip-perks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.vip-perk {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.vip-perk.gold {
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.vip-perk.platinum {
    background: rgba(192, 192, 192, 0.08);
    border: 1px solid rgba(192, 192, 192, 0.2);
}

.vip-perk.diamond {
    background: rgba(125, 249, 255, 0.08);
    border: 1px solid rgba(125, 249, 255, 0.2);
}

.vip-perk:hover {
    transform: scale(1.03);
}

.vip-perk-icon {
    font-size: 1.5rem;
}

.vip-perk-text {
    font-weight: 600;
    font-size: 0.95rem;
}

.vip-perk.gold .vip-perk-text { color: #FFD700; }
.vip-perk.platinum .vip-perk-text { color: #E5E4E2; }
.vip-perk.diamond .vip-perk-text { color: #7DF9FF; }

/* Responsive VIP Styles */
@media (max-width: 768px) {
    .vip-page-header {
        padding: 35px 20px;
    }

    .vip-crown {
        font-size: 2.5rem;
    }

    .vip-username {
        font-size: 1.8rem;
    }

    .vip-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .vip-stat-number {
        font-size: 2.2rem;
    }

    .vip-progress-section,
    .vip-achievements-section {
        padding: 25px;
    }

    .vip-achievement-card {
        flex-direction: column;
        text-align: center;
    }

    .vip-achievement-icon {
        margin: 0 auto;
    }

    .vip-perks {
        grid-template-columns: 1fr;
    }
}

/* ===== LEADERBOARD STYLES ===== */
.leaderboard-page {
    max-width: 900px;
    margin: 0 auto;
}

.leaderboard-page .page-header {
    text-align: center;
    margin-bottom: 30px;
}

.leaderboard-page .page-header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* User Rank Card */
.user-rank-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: var(--radius-large);
    padding: 25px 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    box-shadow: 0 6px 25px rgba(52, 152, 219, 0.3);
}

.user-rank-info {
    display: flex;
    flex-direction: column;
}

.rank-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.rank-number {
    font-size: 2.5rem;
    font-weight: 800;
}

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

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

.rank-stat .stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
}

.rank-stat .stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Leaderboard Table */
.leaderboard-table-wrapper {
    background: white;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow);
    overflow: hidden;
}

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

.leaderboard-table thead {
    background: linear-gradient(135deg, var(--dark-color) 0%, #1a202c 100%);
    color: white;
}

.leaderboard-table th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.leaderboard-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.leaderboard-table tbody tr {
    transition: all 0.2s ease;
}

.leaderboard-table tbody tr:hover {
    background: rgba(52, 152, 219, 0.05);
}

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

/* Current User Row */
.leaderboard-table tbody tr.current-user {
    background: rgba(52, 152, 219, 0.1);
}

.leaderboard-table tbody tr.current-user td {
    font-weight: 600;
}

/* Top Three Styling */
.leaderboard-table tbody tr.top-three {
    font-weight: 600;
}

.leaderboard-table tbody tr.rank-1 {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.15), transparent);
}

.leaderboard-table tbody tr.rank-2 {
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.15), transparent);
}

.leaderboard-table tbody tr.rank-3 {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.15), transparent);
}

/* Columns */
.rank-col {
    width: 80px;
    text-align: center !important;
}

.user-col {
    min-width: 180px;
}

.points-col, .tasks-col, .level-col {
    width: 100px;
    text-align: center !important;
}

/* Medal and Rank */
.medal {
    font-size: 1.5rem;
}

.rank-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* User Info */
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.username {
    font-weight: 600;
}

.vip-badge-small {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
}

.vip-badge-small.gold {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a2e;
}

.vip-badge-small.platinum {
    background: linear-gradient(135deg, #E5E4E2, #C0C0C0);
    color: #1a1a2e;
}

.vip-badge-small.diamond {
    background: linear-gradient(135deg, #7DF9FF, #B9F2FF);
    color: #0a0a1a;
}

/* Points Value */
.points-value {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Empty Message */
.empty-message {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 20px !important;
    font-size: 1.1rem;
}

/* CTA Section */
.cta-section {
    text-align: center;
    margin-top: 30px;
    padding: 30px;
    background: white;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow);
}

.cta-section p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-color);
}

/* Responsive Leaderboard */
@media (max-width: 768px) {
    .user-rank-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .user-rank-stats {
        width: 100%;
        justify-content: center;
    }

    .leaderboard-table th,
    .leaderboard-table td {
        padding: 12px 10px;
        font-size: 0.9rem;
    }

    .points-col, .level-col {
        display: none;
    }

    .rank-col {
        width: 50px;
    }

    .medal {
        font-size: 1.2rem;
    }

    .user-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* ==================== DARK MODE ==================== */
.dark-mode {
    --dark-color: #1a1a2e;
    --light-color: #16213e;
    --text-color: #e2e8f0;
    --text-muted: #a0aec0;
    --border-color: #2d3748;
    --glass-bg: rgba(30, 30, 60, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

.dark-mode body {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: var(--text-color);
}

.dark-mode .level-card,
.dark-mode .task-card,
.dark-mode .auth-card,
.dark-mode .profile-section,
.dark-mode .theory-section,
.dark-mode .tasks-section,
.dark-mode .code-editor-section,
.dark-mode .task-description,
.dark-mode .result-card,
.dark-mode .run-output,
.dark-mode .leaderboard-table-wrapper,
.dark-mode .cta-section,
.dark-mode .info-section,
.dark-mode .achievement-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
}

.dark-mode .level-card h3,
.dark-mode .task-details h3,
.dark-mode .page-header h1,
.dark-mode .info-section h2,
.dark-mode .profile-section h2,
.dark-mode .auth-card h2 {
    color: var(--text-color);
}

.dark-mode .task-card {
    background: rgba(255, 255, 255, 0.05);
}

.dark-mode .task-card:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dark-mode .progress-bar {
    background: rgba(255, 255, 255, 0.1);
}

.dark-mode .stat-card {
    background: rgba(255, 255, 255, 0.08);
}

.dark-mode .step:hover {
    background: rgba(255, 255, 255, 0.05);
}

.dark-mode .form-control,
.dark-mode .auth-form input {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-color);
    color: var(--text-color);
}

.dark-mode .task-hints {
    background: rgba(255, 184, 77, 0.1);
}

.dark-mode .result-header.success {
    background: rgba(0, 200, 83, 0.2);
    color: #4ade80;
}

.dark-mode .result-header.error {
    background: rgba(255, 82, 82, 0.2);
    color: #f87171;
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-mode-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.toggle-spin {
    animation: spin-toggle 0.5s ease;
}

@keyframes spin-toggle {
    from { transform: rotate(0deg) scale(1.1); }
    to { transform: rotate(360deg) scale(1); }
}

/* ==================== TOAST NOTIFICATIONS ==================== */
.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.dark-mode .toast {
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.toast-hide {
    transform: translateX(120%);
    opacity: 0;
}

.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.toast-success .toast-icon { color: var(--success-color); }
.toast-error .toast-icon { color: var(--danger-color); }
.toast-warning .toast-icon { color: var(--warning-color); }
.toast-info .toast-icon { color: var(--primary-color); }
.toast-achievement .toast-icon { color: #FFD700; }

.toast-achievement {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid rgba(255, 215, 0, 0.4);
    color: #FFD700;
}

.toast-message {
    font-weight: 500;
    color: var(--text-color);
}

.toast-achievement .toast-message {
    color: #FFD700;
}

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

.toast-close:hover {
    color: var(--text-color);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--primary-color);
    width: 100%;
    transform-origin: left;
}

.toast-success .toast-progress { background: var(--success-color); }
.toast-error .toast-progress { background: var(--danger-color); }
.toast-warning .toast-progress { background: var(--warning-color); }
.toast-achievement .toast-progress { background: #FFD700; }

@keyframes toast-progress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

/* ==================== XP BAR SYSTEM ==================== */
.xp-bar-container {
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--bg-gradient-end) 100%);
    border-radius: var(--radius-large);
    color: white;
}

.xp-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.xp-level {
    font-size: 1.3rem;
    font-weight: 800;
}

.xp-text {
    font-size: 0.95rem;
    opacity: 0.9;
}

.xp-bar {
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.xp-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    border-radius: 10px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.xp-fill::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

.xp-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
    animation: xp-glow-move 3s ease-in-out infinite;
}

@keyframes xp-glow-move {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.xp-gain {
    animation: xp-pulse 0.5s ease;
}

@keyframes xp-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); box-shadow: 0 0 30px rgba(255, 215, 0, 0.5); }
}

.xp-floater {
    position: absolute;
    top: -30px;
    right: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #FFD700;
    animation: float-up 1.5s ease-out forwards;
}

@keyframes float-up {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-30px); }
}

.level-up-flash {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3), transparent);
    z-index: 9999;
    animation: level-flash 1s ease-out forwards;
    pointer-events: none;
}

@keyframes level-flash {
    0% { opacity: 0; }
    20% { opacity: 1; }
    100% { opacity: 0; }
}

/* ==================== STREAK FLAMES ==================== */
.streak-display {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border-radius: var(--radius-large);
    margin-bottom: 25px;
    color: white;
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.3);
}

.streak-flames {
    font-size: 2rem;
}

@keyframes flame-dance {
    0% { transform: scale(1) rotate(-2deg); }
    100% { transform: scale(1.1) rotate(2deg); }
}

.streak-count {
    font-size: 1.2rem;
    font-weight: 700;
}

/* ==================== KEYBOARD SHORTCUTS MODAL ==================== */
.shortcuts-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.shortcuts-modal.show {
    opacity: 1;
    visibility: visible;
}

.shortcuts-content {
    background: white;
    padding: 35px;
    border-radius: var(--radius-large);
    max-width: 450px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.shortcuts-modal.show .shortcuts-content {
    transform: scale(1);
}

.dark-mode .shortcuts-content {
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.shortcuts-content h3 {
    margin-bottom: 25px;
    font-size: 1.5rem;
    text-align: center;
}

.shortcuts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.shortcut-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.shortcut-item kbd {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius-small);
    font-family: monospace;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ==================== MICRO-INTERACTIONS ==================== */
/* Button Ripple Effect */
.btn {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple-effect 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-effect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Card Hover Glow Effect */
.level-card::after,
.task-card::after,
.achievement-card::after {
    content: "";
    position: absolute;
    top: var(--mouse-y, 50%);
    left: var(--mouse-x, 50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.15), transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: inherit;
}

.level-card:hover::after,
.task-card:hover::after,
.achievement-card:hover::after {
    opacity: 1;
}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
.scroll-animate:nth-child(1) { transition-delay: 0.1s; }
.scroll-animate:nth-child(2) { transition-delay: 0.2s; }
.scroll-animate:nth-child(3) { transition-delay: 0.3s; }
.scroll-animate:nth-child(4) { transition-delay: 0.4s; }
.scroll-animate:nth-child(5) { transition-delay: 0.5s; }
.scroll-animate:nth-child(6) { transition-delay: 0.6s; }

/* Input Focus Effects */
.input-focused {
    position: relative;
}

.input-focused::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: translateX(-50%) scaleX(0);
    animation: input-focus-line 0.3s ease forwards;
}

@keyframes input-focus-line {
    to { transform: translateX(-50%) scaleX(1); }
}

/* ==================== PAGE TRANSITIONS ==================== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--bg-gradient-end));
    z-index: 10003;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    color: white;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 15px;
}

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

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

.page-ready {
    animation: fade-in 0.5s ease;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.page-leaving {
    animation: fade-out 0.3s ease forwards;
}

@keyframes fade-out {
    to { opacity: 0; transform: scale(0.98); }
}

/* ==================== SKELETON LOADING ==================== */
.skeleton-card {
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    margin-bottom: 15px;
}

.dark-mode .skeleton-card {
    background: rgba(255, 255, 255, 0.05);
}

.skeleton {
    background: linear-gradient(90deg, #e2e8f0 25%, #f7fafc 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-small);
}

.dark-mode .skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.1) 25%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.1) 75%);
    background-size: 200% 100%;
}

.skeleton-header {
    height: 24px;
    width: 60%;
    margin-bottom: 15px;
}

.skeleton-text {
    height: 16px;
    width: 100%;
    margin-bottom: 10px;
}

.skeleton-text.short {
    width: 40%;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==================== GLASSMORPHISM CARDS ==================== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-large);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
}

/* Enhanced Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg,
        var(--primary-color) 0%,
        var(--bg-gradient-end) 35%,
        #f093fb 65%,
        var(--accent-color) 100%);
    background-size: 300% 300%;
    animation: gradient-shift 15s ease infinite;
}

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

/* Hero floating elements */
.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
    animation: float-slow 8s ease-in-out infinite;
}

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

/* Enhanced stat cards */
.stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.stat-card:hover::before {
    animation: shine 0.6s ease;
    opacity: 1;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

/* Enhanced buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    position: relative;
    z-index: 1;
}

.btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    border-radius: inherit;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
    opacity: 1;
}

/* Floating animation for features */
.feature {
    animation: float-feature 4s ease-in-out infinite;
}

.feature:nth-child(1) { animation-delay: 0s; }
.feature:nth-child(2) { animation-delay: 0.5s; }
.feature:nth-child(3) { animation-delay: 1s; }

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

/* Enhanced level cards */
.level-card {
    position: relative;
    background: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.level-card:not(.locked):hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(108, 99, 255, 0.25);
}

.level-card:not(.locked):hover .level-number {
    transform: scale(1.1) rotate(5deg);
}

.level-number {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Progress bar glow effect */
.progress-fill {
    box-shadow: 0 0 10px rgba(0, 201, 167, 0.5);
}

/* Code editor enhancements */
.code-editor-wrapper {
    border: 2px solid transparent;
    background: linear-gradient(#282a36, #282a36) padding-box,
                linear-gradient(135deg, var(--primary-color), var(--secondary-color)) border-box;
    transition: all 0.3s ease;
}

.code-editor-wrapper:focus-within {
    box-shadow: 0 0 20px rgba(108, 99, 255, 0.3);
}

/* Result card animations */
.result-card.success {
    animation: success-pulse 0.5s ease;
}

@keyframes success-pulse {
    0% { transform: scale(0.95); opacity: 0; }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); opacity: 1; }
}

.result-card.error {
    animation: error-shake 0.5s ease;
}

@keyframes error-shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

/* Achievement unlock animation */
.achievement-card.new {
    animation: achievement-unlock 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes achievement-unlock {
    0% { transform: scale(0) rotate(-180deg); opacity: 0; }
    60% { transform: scale(1.2) rotate(10deg); }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}

/* Pulse animation for important elements */
.pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(108, 99, 255, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(108, 99, 255, 0); }
}

/* ==================== ENHANCED MOBILE EXPERIENCE ==================== */
@media (max-width: 768px) {
    .toast-container {
        left: 10px;
        right: 10px;
        max-width: none;
    }

    .toast {
        width: 100%;
    }

    .shortcuts-modal {
        padding: 15px;
    }

    .shortcuts-content {
        padding: 25px;
    }

    .dark-mode-toggle {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .xp-bar-container {
        padding: 15px;
    }

    .xp-level {
        font-size: 1.1rem;
    }

    .streak-display {
        padding: 15px 20px;
    }

    .streak-flames {
        font-size: 1.5rem;
    }
}

/* ==================== VIP PRICING PAGE (2026 redesign) ==================== */
.vip-pricing-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem;
}

.vip-hero {
    text-align: center;
    margin: 1.5rem 0 2rem;
}

.vip-hero h1 {
    font-size: 2.4rem;
    margin-bottom: 0.6rem;
    background: var(--vip-gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.vip-hero-sub {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 640px;
    margin: 0 auto;
}

.vip-current-banner {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius);
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    font-weight: 600;
}
.vip-current-banner.gold { border-color: var(--vip-gold-primary); }
.vip-current-banner.platinum { border-color: var(--vip-platinum-secondary); }
.vip-current-banner.diamond { border-color: var(--vip-diamond-secondary); }

/* Region switch */
.region-switch {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 0 auto 0.6rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 4px;
    width: fit-content;
    box-shadow: var(--shadow);
}

.region-tab {
    border: none;
    background: transparent;
    padding: 0.7rem 1.5rem;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.region-tab.active {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 2px 10px rgba(108, 99, 255, 0.4);
}

.region-tab .region-cur {
    opacity: 0.75;
    font-weight: 400;
    margin-left: 4px;
}

.region-hint {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.6rem;
}

/* Tier cards */
.vip-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.4rem;
    align-items: stretch;
}

.tier-card {
    position: relative;
    background: #fff;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-large);
    padding: 2rem 1.6rem 1.6rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.tier-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.tier-card.gold { border-color: var(--vip-gold-primary); }
.tier-card.platinum { border-color: var(--vip-platinum-secondary); }
.tier-card.diamond { border-color: var(--vip-diamond-secondary); }

.tier-card.popular {
    transform: scale(1.04);
    box-shadow: 0 10px 35px rgba(108, 99, 255, 0.18);
    z-index: 1;
}
.tier-card.popular:hover { transform: scale(1.04) translateY(-6px); }

.tier-card.owned { opacity: 0.75; }

.tier-ribbon {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-color), var(--bg-gradient-end));
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.35rem 1.1rem;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.4);
    white-space: nowrap;
}

.tier-icon { font-size: 2.4rem; margin-bottom: 0.4rem; }

.tier-name {
    font-size: 1.5rem;
    margin: 0 0 0.8rem;
    color: var(--dark-color);
}

.tier-price {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--dark-color);
    line-height: 1;
}

.tier-price-cur {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 600;
}

.tier-price-once {
    color: var(--text-light);
    font-size: 0.85rem;
    margin: 0.4rem 0 1.2rem;
}

.tier-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.4rem;
    text-align: left;
    flex-grow: 1;
}

.tier-features li {
    padding: 0.45rem 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: 0.95rem;
}
.tier-features li:last-child { border-bottom: none; }
.tier-features li.off { color: var(--text-light); }

.tier-buy-btn {
    width: 100%;
    padding: 0.9rem;
    font-size: 1.05rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    color: #fff;
    background: var(--primary-color);
    transition: all var(--transition-fast);
}
.tier-buy-btn:hover { background: var(--primary-dark); transform: translateY(-2px); }
.tier-buy-btn.gold { background: linear-gradient(135deg, #d4a017, #b8860b); }
.tier-buy-btn.platinum { background: linear-gradient(135deg, #6c7a89, #4a5562); }
.tier-buy-btn.diamond { background: linear-gradient(135deg, #2980b9, #4169e1); }
.tier-buy-btn.owned { background: var(--success-color); cursor: default; }
.tier-buy-btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

.vip-disabled-note {
    text-align: center;
    color: var(--text-muted);
    margin-top: 1.5rem;
}

/* FAQ */
.vip-faq { margin: 3rem 0 1rem; }
.vip-faq h3 { text-align: center; font-size: 1.4rem; margin-bottom: 1.2rem; }

.vip-faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.vip-faq-item {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.1rem 1.2rem;
}
.vip-faq-item h4 { margin: 0 0 0.4rem; font-size: 1rem; }
.vip-faq-item p { margin: 0; color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; }

/* Pending (manual link) payment */
.pending-payment-card {
    max-width: 560px;
    margin: 2rem auto;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow);
    padding: 2.4rem 2rem;
    text-align: center;
}
.pending-payment-icon { font-size: 3rem; margin-bottom: 0.5rem; }
.pending-payment-card h1 { font-size: 1.5rem; margin-bottom: 0.8rem; }
.pending-amount { font-size: 2.6rem; font-weight: 800; margin-bottom: 1.2rem; }
.pending-amount span { font-size: 1.2rem; color: var(--text-muted); }
.pending-steps {
    text-align: left;
    margin: 0 auto 1.5rem;
    max-width: 420px;
    line-height: 1.7;
    color: var(--text-color);
}
.pending-steps code {
    background: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1px 7px;
}
.pending-pay-btn { display: inline-block; }
.pending-note { margin-top: 1.4rem; color: var(--text-muted); font-size: 0.9rem; }

/* ==================== VIP LEVELS / LOCKS / UPSELL ==================== */
.level-card.vip-level {
    border: 2px solid var(--vip-gold-primary);
    background: linear-gradient(160deg, #fffdf4 0%, #fff 55%);
}

.vip-level-ribbon {
    position: absolute;
    top: 12px;
    right: -8px;
    background: var(--vip-gold-gradient);
    color: #5b4400;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.8rem;
    border-radius: 6px 0 0 6px;
    box-shadow: 0 3px 10px rgba(184, 134, 11, 0.35);
}

.level-card { position: relative; }

.level-locked.vip { text-align: center; }
.level-locked.vip .lock-icon { color: var(--vip-gold-dark); }

.vip-unlock-btn {
    background: var(--vip-gold-gradient);
    color: #5b4400 !important;
    font-weight: 700;
    border: none;
    border-radius: var(--radius);
    padding: 0.7rem 1.4rem;
    text-decoration: none;
    display: inline-block;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 14px rgba(255, 165, 0, 0.35);
}
.vip-unlock-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 165, 0, 0.5); }

.vip-upsell-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin: 2.2rem auto 0.6rem;
    max-width: 900px;
    background: linear-gradient(135deg, #fff8e1, #fff);
    border: 1px solid var(--vip-gold-light);
    border-radius: var(--radius-large);
    padding: 1.4rem 1.8rem;
    box-shadow: var(--shadow);
}
.vip-upsell-text h3 { margin: 0 0 0.3rem; }
.vip-upsell-text p { margin: 0; color: var(--text-muted); }

.nav-vip-link {
    background: var(--vip-gold-gradient);
    color: #5b4400 !important;
    border-radius: 999px;
    padding: 0.35rem 0.9rem !important;
    font-weight: 700;
}

.vip-upgrade-link {
    display: inline-block;
    margin-top: 1rem;
    color: inherit;
    opacity: 0.85;
    font-weight: 600;
    text-decoration: underline;
}

/* ==================== SOLUTION WALKTHROUGH (VIP) ==================== */
.solution-section { margin-top: 1.6rem; }

.solution-section details {
    background: linear-gradient(160deg, #fffdf4, #fff);
    border: 1.5px solid var(--vip-gold-primary);
    border-radius: var(--radius);
    overflow: hidden;
}

.solution-section summary {
    cursor: pointer;
    padding: 1rem 1.3rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--dark-color);
    list-style: none;
}
.solution-section summary::-webkit-details-marker { display: none; }
.solution-section summary::after {
    content: '▾';
    float: right;
    transition: transform var(--transition-fast);
}
.solution-section details[open] summary::after { transform: rotate(180deg); }

.solution-badge {
    background: var(--vip-gold-gradient);
    color: #5b4400;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 6px;
    padding: 0.15rem 0.6rem;
    margin-right: 0.6rem;
    vertical-align: middle;
}

.solution-body { padding: 0 1.3rem 1.3rem; }
.solution-body h4 { margin: 0.8rem 0 0.5rem; color: var(--text-muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; }

.solution-code {
    background: #282a36;
    color: #f8f8f2;
    border-radius: var(--radius-small);
    padding: 1rem 1.2rem;
    overflow-x: auto;
    font-size: 0.95rem;
    line-height: 1.55;
}

.solution-explanation { color: var(--text-color); line-height: 1.65; }
.solution-explanation p { margin: 0 0 0.7rem; }

.solution-teaser {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #fff8e1, #fff);
    border: 1px dashed var(--vip-gold-secondary);
    border-radius: var(--radius);
    padding: 1.2rem 1.4rem;
}
.solution-teaser-lock { font-size: 2rem; }
.solution-teaser-text { flex: 1; min-width: 220px; }
.solution-teaser-text h4 { margin: 0 0 0.25rem; }
.solution-teaser-text p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }

/* ==================== CERTIFICATE ==================== */
.certificate-page { max-width: 900px; margin: 0 auto; padding: 1rem; }

.certificate-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.certificate {
    background: #fffdf6;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
    padding: 14px;
}

.certificate-border {
    border: 3px double var(--vip-gold-dark);
    border-radius: 4px;
    padding: 3rem 2.5rem;
    text-align: center;
    background:
        radial-gradient(circle at 0 0, rgba(255, 215, 0, 0.08), transparent 38%),
        radial-gradient(circle at 100% 100%, rgba(255, 215, 0, 0.08), transparent 38%);
}

.certificate-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1.6rem;
}
.certificate-logo { font-size: 1.8rem; }
.certificate-brand {
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--vip-gold-dark);
    font-size: 0.95rem;
}

.certificate-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 0.7rem;
}

.certificate-subtitle { color: var(--text-muted); font-style: italic; }

.certificate-name {
    font-size: 2.6rem;
    font-weight: 700;
    margin: 1.1rem 0;
    color: var(--primary-dark);
    border-bottom: 2px solid var(--vip-gold-primary);
    display: inline-block;
    padding: 0 2.4rem 0.4rem;
}

.certificate-text {
    max-width: 560px;
    margin: 0 auto 1.8rem;
    color: var(--text-color);
    line-height: 1.65;
}

.certificate-stats {
    display: flex;
    justify-content: center;
    gap: 2.6rem;
    margin-bottom: 2.2rem;
}
.certificate-stat-value { font-size: 1.7rem; font-weight: 800; color: var(--dark-color); }
.certificate-stat-label { color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }

.certificate-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    max-width: 620px;
    margin: 0 auto;
}
.certificate-date, .certificate-id {
    font-weight: 600;
    color: var(--dark-color);
    border-top: 1.5px solid var(--border-color);
    padding-top: 0.5rem;
    min-width: 140px;
}
.certificate-date span, .certificate-id span {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.8rem;
}
.certificate-seal { font-size: 2.6rem; }

@media print {
    .header, .footer, .no-print, .messages, .dark-mode-toggle { display: none !important; }
    body, .main-content { background: #fff !important; padding: 0 !important; margin: 0 !important; }
    .certificate-page { max-width: none; padding: 0; }
    .certificate { box-shadow: none; padding: 0; }
    .certificate-border { padding: 2.2rem 2rem; }
}

/* Profile certificate CTA */
.certificate-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.6rem;
    background: linear-gradient(135deg, #eef7ff, #fff);
    border: 1px solid var(--vip-diamond-secondary);
    border-radius: var(--radius-large);
    padding: 1.2rem 1.6rem;
}
.certificate-cta-text h3 { margin: 0 0 0.25rem; }
.certificate-cta-text p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }

/* Mobile tweaks */
@media (max-width: 768px) {
    .vip-tiers { grid-template-columns: 1fr; }
    .tier-card.popular { transform: none; }
    .tier-card.popular:hover { transform: translateY(-6px); }
    .region-switch { width: 100%; justify-content: stretch; }
    .region-tab { flex: 1; padding: 0.7rem 0.4rem; font-size: 0.9rem; }
    .certificate-border { padding: 1.6rem 1rem; }
    .certificate-name { font-size: 1.7rem; padding: 0 1rem 0.3rem; }
    .certificate-stats { gap: 1.2rem; }
    .certificate-title { font-size: 1.5rem; }
}

/* Dark mode for the new VIP / certificate / solution components */
.dark-mode .tier-card,
.dark-mode .pending-payment-card,
.dark-mode .vip-faq-item,
.dark-mode .vip-upsell-banner,
.dark-mode .certificate-cta,
.dark-mode .solution-section details,
.dark-mode .solution-teaser {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-color: var(--glass-border);
}
.dark-mode .tier-card.gold { border-color: var(--vip-gold-dark); }
.dark-mode .tier-card.platinum { border-color: var(--vip-platinum-dark); }
.dark-mode .tier-card.diamond { border-color: var(--vip-diamond-dark); }
.dark-mode .tier-name,
.dark-mode .tier-price,
.dark-mode .pending-amount,
.dark-mode .solution-section summary { color: var(--text-color); }
.dark-mode .region-switch { background: var(--glass-bg); border-color: var(--glass-border); }
.dark-mode .region-tab { color: var(--text-muted); }
.dark-mode .region-tab.active { color: #fff; }
.dark-mode .level-card.vip-level { background: var(--glass-bg); }
.dark-mode .pending-steps code { background: rgba(255,255,255,0.08); border-color: var(--glass-border); }
.dark-mode .certificate { background: #fffdf6; } /* certificate stays paper-white for print fidelity */
