/**
 * TallyCounter Laravel Application CSS
 * =====================================
 * Organized CSS extracted from the original index.html
 * Uses CSS variables for consistent theming
 */

/* ==========================================================================
   1. CSS VARIABLES - Extended Theme Variables
   ========================================================================== */

:root,
[data-theme="light"] {
    /* Primary Colors */
    --primary-color: #2ba8ff;
    --primary-color-rgb: 43, 168, 255;
    --primary-hover: #1a97f0;
    --secondary-color: #6c757d;
    
    /* Status Colors */
    --success-color: #28a745;
    --success-dark: #218838;
    --warning-color: #ffc107;
    --error-color: #dc3545;
    --info-color: #17a2b8;
    --accent-color: #e83e8c;
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --bg-hover: #f5f5f5;
    
    /* Text Colors */
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-tertiary: #adb5bd;
    
    /* Border & Shadow */
    --border-color: #dee2e6;
    --shadow-small: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 8px 16px rgba(0, 0, 0, 0.1);
    
    /* Spacing & Sizing */
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-sm: 4px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    
    /* Form Inputs */
    --input-bg: #ffffff;
    --input-border: #ced4da;
    --input-focus: #80bdff;
    --input-focus-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    
    /* Alpha Colors */
    --primary-color-alpha: rgba(43, 168, 255, 0.1);
    --success-color-alpha: rgba(40, 167, 69, 0.1);
    --warning-color-alpha: rgba(255, 193, 7, 0.1);
    --error-color-alpha: rgba(220, 53, 69, 0.1);
    --accent-color-alpha: rgba(232, 62, 140, 0.1);
}

/* Dark Theme */
[data-theme="dark"] {
    --primary-hover: #4db8ff;
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --bg-tertiary: #2d2d2d;
    --bg-hover: #3a3a3a;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-tertiary: #808080;
    --border-color: #404040;
    --input-bg: #2d2d2d;
    --input-border: #404040;
}

/* ==========================================================================
   2. BASE STYLES - Reset & Foundations
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    -webkit-tap-highlight-color: transparent;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    min-height: 100vh;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Main content area - allow full-bleed sections */
main {
    display: block;
    width: 100%;
    overflow-x: hidden;
    padding-top: 64px; /* Account for fixed header height */
}

@media (max-width: 768px) {
    main {
        padding-top: 56px; /* Smaller header on mobile */
    }
}

/* Allow text selection for inputs */
input, textarea, [contenteditable] {
    -webkit-user-select: text;
    user-select: text;
}

/* ==========================================================================
   3. HEADER STYLES
   ========================================================================== */

#templateHeader {
    background: var(--bg-primary);
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-small);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.template-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 60px;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}

.header-title {
    flex: 0 0 auto;
}

.header-title h1 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.header-title a {
    text-decoration: none;
    color: inherit;
}

.header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.nav-item {
    margin: 0;
}

.nav-button {
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 14px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
}

.nav-button:hover {
    background: var(--bg-hover);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.nav-button.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.nav-text {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.header-controls {
    flex: 0 0 auto;
    display: flex;
    gap: 8px;
}

.control-button {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

.control-button:hover {
    background: var(--bg-hover);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.control-button .menu-icon {
    line-height: 1;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   4. MOBILE MENU STYLES
   ========================================================================== */

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
    backdrop-filter: blur(5px);
    pointer-events: none;
}

.mobile-menu-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 90vw;
    height: 100vh;
    background: var(--bg-secondary);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2rem 1.5rem;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
    z-index: 100000;
}

.mobile-menu-overlay.show .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-header h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.mobile-menu-close:hover {
    background: var(--bg-hover);
}

.mobile-menu-nav {
    margin-top: 0;
}

.mobile-menu-nav button,
.mobile-menu-nav .mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: none;
    border: none;
    text-align: left;
    color: var(--text-primary);
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-weight: 500;
}

.mobile-menu-nav button:hover,
.mobile-menu-nav button.active,
.mobile-menu-nav .mobile-nav-link:hover,
.mobile-menu-nav .mobile-nav-link.active {
    background: var(--bg-hover);
    transform: translateX(4px);
}

.mobile-menu-nav .mobile-nav-link i {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
}

/* ==========================================================================
   5. DEMO CONTAINER & SECTION STYLES
   ========================================================================== */

.demo-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
}

.demo-section {
    display: block;
    min-height: auto;
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.demo-header {
    text-align: center;
    margin-bottom: 3rem;
}

.demo-header h1 {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.demo-header p {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   6. ULTRA MODERN HERO SECTION - Full Screen Full Width
   ========================================================================== */

.hero {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem 3rem;
    overflow: hidden;
    /* Full bleed - break out of any container */
    margin-left: 50%;
    transform: translateX(-50%);
    /* Account for fixed header */
    padding-top: calc(64px + 3rem);
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .hero {
        padding-top: calc(56px + 2rem);
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Hero Background Layers */
.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(43, 168, 255, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(139, 92, 246, 0.1), transparent),
        radial-gradient(ellipse 50% 30% at 20% 80%, rgba(16, 185, 129, 0.08), transparent);
}

[data-theme="dark"] .hero-gradient {
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(43, 168, 255, 0.25), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(139, 92, 246, 0.15), transparent),
        radial-gradient(ellipse 50% 30% at 20% 80%, rgba(16, 185, 129, 0.1), transparent);
}

.hero-grid {
    position: absolute;
    inset: 0;
    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);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent);
}

[data-theme="dark"] .hero-grid {
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

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

.hero-glow-1 {
    width: 600px;
    height: 600px;
    background: rgba(43, 168, 255, 0.3);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.hero-glow-2 {
    width: 400px;
    height: 400px;
    background: rgba(139, 92, 246, 0.25);
    bottom: -100px;
    left: -100px;
    animation-delay: -4s;
}

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

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out;
}

[data-theme="dark"] .hero-badge {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Hero Title */
.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.title-line {
    display: block;
    animation: fadeInUp 0.6s ease-out backwards;
}

.title-line:nth-child(1) { animation-delay: 0.1s; }
.title-line:nth-child(2) { animation-delay: 0.2s; }
.title-line:nth-child(3) { animation-delay: 0.3s; }

.title-gradient {
    background: linear-gradient(135deg, #2ba8ff 0%, #8b5cf6 50%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Hero Subtitle */
.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    animation: fadeInUp 0.6s ease-out 0.4s backwards;
}

/* Hero Actions */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease-out 0.5s backwards;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

.hero-btn-primary {
    color: white;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0066cc 100%);
    box-shadow: 
        0 4px 15px rgba(43, 168, 255, 0.4),
        0 1px 3px rgba(0, 0, 0, 0.1);
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(43, 168, 255, 0.5),
        0 2px 6px rgba(0, 0, 0, 0.15);
}

.hero-btn-primary:active {
    transform: translateY(0);
}

.hero-btn-secondary {
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .hero-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.hero-btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Hero Features */
.hero-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    animation: fadeInUp 0.6s ease-out 0.6s backwards;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

[data-theme="dark"] .hero-feature {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.hero-feature:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(43, 168, 255, 0.15);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, rgba(43, 168, 255, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 8px;
    color: var(--primary-color);
    font-size: 0.75rem;
}

/* Scroll Indicator */
.hero-scroll {
    position: relative;
    margin-top: auto;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-tertiary);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: fadeInUp 0.6s ease-out 0.8s backwards;
    z-index: 5;
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

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

@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0.3; }
}

/* Hero Mobile Responsive */
@media (max-width: 768px) {
    .hero {
        padding: calc(56px + 2rem) 1rem 2rem;
        min-height: 100vh;
        min-height: 100dvh;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.875rem;
    }
    
    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 0 auto 2rem;
    }
    
    .hero-btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }
    
    .hero-features {
        gap: 0.75rem;
    }
    
    .hero-feature {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
    
    .feature-icon {
        width: 24px;
        height: 24px;
        font-size: 0.625rem;
    }
    
    .hero-scroll {
        display: none;
    }
    
    .hero-glow-1 {
        width: 300px;
        height: 300px;
        top: -100px;
        right: -50px;
    }
    
    .hero-glow-2 {
        width: 200px;
        height: 200px;
        bottom: -50px;
        left: -50px;
    }
}

/* ==========================================================================
   7. SECTION HEADER STYLES
   ========================================================================== */

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.section-header h2 {
    font-size: var(--font-size-3xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-header h2 i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.section-header p {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   8. COUNTER INFO & EXPLANATION STYLES
   ========================================================================== */

.counter-info-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.counter-explanation h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin: 2rem 0 1rem 0;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.counter-explanation p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.counter-explanation ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.counter-explanation li {
    margin: 0.75rem 0;
    padding: 0.5rem 0;
    border-left: 3px solid var(--accent-color);
    padding-left: 1rem;
}

.counter-explanation li strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* ==========================================================================
   9. FAQ STYLES
   ========================================================================== */

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: none;
    text-align: left;
    font-size: var(--font-size-lg);
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background var(--transition-fast);
}

.faq-question:hover {
    background: var(--bg-hover);
}

.faq-question i {
    transition: transform var(--transition-fast);
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal), padding var(--transition-normal);
    background: var(--bg-primary);
}

.faq-answer.show {
    padding: 1.5rem;
    max-height: 500px;
}

.faq-answer p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-answer ul {
    margin: 0;
    padding-left: 1.5rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.faq-answer strong {
    color: var(--text-primary);
}

/* ==========================================================================
   10. STREAK WIDGET STYLES
   ========================================================================== */

.streak-widget {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.streak-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.streak-header h3 {
    margin: 0;
    font-size: var(--font-size-lg);
    color: var(--text-primary);
}

.streak-calendar {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.streak-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    border-radius: 6px;
    transition: var(--transition-fast);
    cursor: default;
    min-width: 50px;
}

.streak-day.active {
    background: var(--primary-color-alpha);
    border: 1px solid var(--primary-color);
}

.streak-day.inactive {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
}

.day-name {
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.day-indicator {
    font-size: 1.2rem;
    line-height: 1;
}

.streak-day.active .day-name {
    color: var(--primary-color);
}

/* ==========================================================================
   11. BUTTON STYLES
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: var(--font-size-base);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    touch-action: manipulation;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: var(--success-dark);
}

/* ==========================================================================
   12. PLACEHOLDER CONTENT STYLES
   ========================================================================== */

.placeholder-content {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

.placeholder-content h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.placeholder-content p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Stats Preview Cards */
.stats-preview {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.stat-card {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-small);
    min-width: 120px;
}

.stat-card h4 {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.stat-number {
    color: var(--primary-color);
    font-size: var(--font-size-2xl);
    font-weight: 700;
}

/* Feature Cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition-fast);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: var(--font-size-xl);
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   13. FOOTER STYLES
   ========================================================================== */

.demo-footer {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.demo-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

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

/* ==========================================================================
   14. RESPONSIVE STYLES - Mobile (max-width: 768px)
   ========================================================================== */

@media (max-width: 768px) {
    /* Header Mobile */
    .template-header-container {
        padding: 0 15px;
        height: 50px;
    }

    .header-title h1 {
        font-size: 16px;
    }

    .header-nav {
        display: none !important;
    }

    .header-controls {
        gap: 4px;
    }

    .mobile-menu-toggle {
        display: flex !important;
        padding: 6px;
    }

    /* Demo Container */
    .demo-container {
        padding: 1rem;
    }

    .demo-header h1 {
        font-size: var(--font-size-3xl);
    }

    /* Section Headers */
    .section-header h2 {
        font-size: var(--font-size-2xl);
    }

    /* Feature Grid */
    .feature-grid {
        grid-template-columns: 1fr;
    }

    /* Stats Preview */
    .stats-preview {
        gap: 1rem;
    }

    .stat-card {
        min-width: 100px;
        padding: 1rem;
    }

    /* FAQ */
    .faq-question {
        padding: 1rem;
        font-size: var(--font-size-base);
    }

    .faq-answer.show {
        padding: 1rem;
    }

    /* Streak Calendar */
    .streak-calendar {
        gap: 4px;
        padding: 0.75rem;
    }

    .streak-day {
        padding: 6px;
        min-width: 40px;
    }

    /* Mobile Title Switching */
    .mobile-title {
        display: inline;
    }

    .desktop-title {
        display: none;
    }
}

/* Desktop Title Display */
@media (min-width: 769px) {
    .mobile-title {
        display: none;
    }

    .desktop-title {
        display: inline;
    }

    .mobile-menu-toggle {
        display: flex;
    }
}

/* ==========================================================================
   15. DARK THEME OVERRIDES
   ========================================================================== */

[data-theme="dark"] #templateHeader {
    background: #1e1e1e;
    border-bottom-color: #404040;
}

[data-theme="dark"] .nav-button {
    color: white;
    background: #2d2d2d;
    border-color: #404040;
}

[data-theme="dark"] .nav-button:hover {
    background: #3a3a3a;
    color: var(--primary-color);
}

[data-theme="dark"] .control-button {
    color: white;
    background: #2d2d2d;
    border-color: #404040;
}

[data-theme="dark"] .control-button:hover {
    background: #3a3a3a;
    color: var(--primary-color);
}

[data-theme="dark"] .mobile-menu-content {
    background: #1e1e1e;
}

[data-theme="dark"] .mobile-menu-header {
    border-bottom-color: #404040;
}

/* ==========================================================================
   16. UTILITY CLASSES
   ========================================================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

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

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

/* ==========================================================================
   17. ULTRA MODERN HEADER - Glassmorphism Design
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .site-header {
    background: rgba(18, 18, 18, 0.9);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.site-header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 64px;
    gap: 1rem;
}

/* Logo Styles */
.header-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color), #0066cc);
    border-radius: 10px;
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(43, 168, 255, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-logo:hover .logo-icon {
    transform: scale(1.05) rotate(-3deg);
    box-shadow: 0 6px 16px rgba(43, 168, 255, 0.4);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.logo-accent {
    color: var(--primary-color);
}

/* Desktop Navigation */
.header-nav-desktop {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .header-nav-desktop {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.nav-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.nav-pill i {
    font-size: 0.875rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.nav-pill:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.nav-pill:hover i {
    opacity: 1;
}

.nav-pill.active {
    color: white;
    background: var(--primary-color);
    box-shadow: 0 2px 8px rgba(43, 168, 255, 0.3);
}

.nav-pill.active i {
    opacity: 1;
}

/* ==========================================================================
   MEGA MENU - Desktop Dropdown Navigation
   ========================================================================== */

.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    background: none;
    border: none;
    cursor: pointer;
}

.nav-dropdown-arrow {
    font-size: 0.625rem;
    margin-left: 0.25rem;
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-arrow,
.nav-dropdown.open .nav-dropdown-arrow {
    transform: rotate(180deg);
}

.nav-mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 320px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
}

[data-theme="dark"] .nav-mega-menu {
    background: var(--bg-secondary);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.nav-dropdown:hover .nav-mega-menu,
.nav-dropdown.open .nav-mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-inner {
    padding: 0.75rem;
}

.mega-menu-section {
    margin-bottom: 0.5rem;
}

.mega-menu-section:last-child {
    margin-bottom: 0;
}

.mega-menu-title {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    padding: 0.5rem 0.75rem;
    margin: 0;
}

.mega-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.15s ease;
}

a.mega-menu-item:hover {
    background: var(--bg-hover);
}

.mega-item-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.mega-item-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--sport-color, var(--primary-color)) 15%, transparent);
    border-radius: 8px;
    flex-shrink: 0;
}

.mega-item-icon i {
    font-size: 1rem;
    color: var(--sport-color, var(--primary-color));
}

.mega-item-content {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.mega-item-name {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
}

.mega-item-desc {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.mega-badge {
    display: inline-block;
    padding: 0.125rem 0.375rem;
    background: var(--bg-tertiary);
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-left: 0.375rem;
}

.mega-menu-cta {
    border-top: 1px solid var(--border-color);
    padding-top: 0.5rem;
    margin-top: 0.25rem;
}

.mega-menu-all {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

.mega-menu-all:hover {
    background: var(--primary-color);
    color: white;
}

.mega-menu-all i:first-child {
    font-size: 1rem;
    opacity: 0.7;
}

.mega-menu-all i:last-child {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.action-btn-ghost {
    color: var(--text-secondary);
    background: transparent;
}

.action-btn-ghost:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.action-btn-primary {
    color: white;
    background: linear-gradient(135deg, var(--primary-color), #0077dd);
    box-shadow: 0 2px 8px rgba(43, 168, 255, 0.3);
}

.action-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(43, 168, 255, 0.4);
}

.action-btn-text {
    color: var(--text-primary);
    background: transparent;
}

.action-btn-text:hover {
    color: var(--primary-color);
}

.action-btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

[data-theme="dark"] .action-btn-icon {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.action-btn-icon:hover {
    color: var(--primary-color);
    background: var(--bg-hover);
    border-color: var(--primary-color);
}

/* Theme Toggle */
.theme-toggle .theme-icon-light {
    display: none;
}

[data-theme="dark"] .theme-toggle .theme-icon-dark {
    display: none;
}

[data-theme="dark"] .theme-toggle .theme-icon-light {
    display: inline;
}

/* Hamburger Menu Button */
.mobile-menu-btn {
    display: none;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 20px;
    height: 20px;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   18. MOBILE NAVIGATION - Slide-out Panel
   ========================================================================== */

.mobile-nav-wrapper {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001; /* Higher than .site-header's z-index: 1000 */
}

.mobile-nav-wrapper.open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    background: var(--bg-primary);
    border-left: 1px solid var(--border-color);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

[data-theme="dark"] .mobile-nav-content {
    background: var(--bg-secondary);
    border-left-color: rgba(255, 255, 255, 0.1);
}

.mobile-nav-wrapper.open .mobile-nav-content {
    transform: translateX(0);
}

.mobile-nav-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
}

.mobile-nav-links {
    padding: 0.75rem 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.5rem;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
    background: var(--bg-hover);
    color: var(--primary-color);
}

.mobile-nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    color: var(--primary-color);
    opacity: 0.8;
}

.mobile-nav-link:hover i {
    opacity: 1;
}

.mobile-nav-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 1.5rem;
}

.mobile-nav-auth {
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.mobile-auth-login {
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.mobile-auth-login:hover {
    background: var(--bg-hover);
}

.mobile-auth-signup {
    color: white;
    background: linear-gradient(135deg, var(--primary-color), #0077dd);
    box-shadow: 0 4px 12px rgba(43, 168, 255, 0.3);
}

.mobile-auth-signup:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(43, 168, 255, 0.4);
}

/* Mobile Navigation Accordion */
.mobile-nav-accordion {
    border-bottom: 1px solid var(--border-color);
}

.mobile-accordion-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
    background: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.mobile-accordion-trigger:hover {
    background: var(--bg-hover);
}

.mobile-accordion-trigger i:first-child {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    color: var(--primary-color);
    opacity: 0.8;
    margin-right: 0.75rem;
}

.mobile-accordion-trigger span {
    flex: 1;
    text-align: left;
}

.mobile-accordion-arrow {
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.mobile-nav-accordion.active .mobile-accordion-arrow {
    transform: rotate(180deg);
}

.mobile-accordion-content {
    max-height: 0;
    overflow: hidden;
    background: var(--bg-secondary);
    transition: max-height 0.3s ease;
}

.mobile-nav-accordion.active .mobile-accordion-content {
    max-height: 500px;
}

.mobile-sub-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem 0.875rem 3rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.mobile-sub-link:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-left-color: var(--primary-color);
}

.mobile-sub-link i {
    width: 18px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

.mobile-sub-link .mega-badge {
    font-size: 0.625rem;
    padding: 0.125rem 0.375rem;
}

/* Mobile sub-header for categorization */
.mobile-sub-header {
    display: block;
    padding: 0.5rem 1.5rem 0.25rem 3rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.mobile-sub-header:first-child {
    margin-top: 0;
}

/* Disabled mobile sub-link */
.mobile-sub-link.mobile-sub-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Mobile badge for "soon" labels */
.mobile-badge {
    display: inline-block;
    padding: 0.125rem 0.375rem;
    font-size: 0.5625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: linear-gradient(135deg, var(--primary-color), #0077dd);
    color: white;
    border-radius: 4px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.mobile-sub-all {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem 0.875rem 3rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    border-top: 1px solid var(--border-color);
    margin-top: 0.5rem;
    transition: all 0.2s ease;
}

.mobile-sub-all:hover {
    background: var(--bg-hover);
}

.mobile-sub-all i {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.mobile-sub-all:hover i {
    transform: translateX(3px);
}

/* ==========================================================================
   19. RESPONSIVE HEADER STYLES
   ========================================================================== */

/* Hide auth buttons on smaller screens, show in mobile nav */
@media (max-width: 1024px) {
    .header-nav-desktop .nav-pill span {
        display: none;
    }
    
    .header-nav-desktop .nav-pill {
        padding: 0.5rem 0.625rem;
    }
    
    .header-nav-desktop .nav-pill i {
        font-size: 1rem;
    }
    
    .action-btn-ghost,
    .action-btn-primary {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 0 1rem;
        height: 56px;
    }
    
    .header-nav-desktop {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .logo-text {
        font-size: 1.125rem;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .mobile-nav-wrapper {
        top: 56px;
    }
}

@media (max-width: 480px) {
    .header-inner {
        padding: 0 0.75rem;
    }
    
    .action-btn-icon {
        width: 36px;
        height: 36px;
    }
    
    .logo-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
        border-radius: 8px;
    }
}

/* ==========================================================================
   20. BODY & MAIN LAYOUT FOR FIXED HEADER
   ========================================================================== */

/* No body padding - hero handles its own offset, other content uses demo-container padding */

/* demo-container adds top padding when it's the first child after hero or directly under main */
.demo-container {
    padding-top: calc(64px + 2rem);
}

/* When hero precedes demo-container, it doesn't need extra top padding */
.hero + .demo-container {
    padding-top: 2rem;
}

@media (max-width: 768px) {
    .demo-container {
        padding-top: calc(56px + 1rem);
    }
    
    .hero + .demo-container {
        padding-top: 1rem;
    }
}

/* ==========================================================================
   21. STANDALONE PAGE LAYOUTS (Achievements, Statistics, Reports)
   ========================================================================== */

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: calc(64px + 2rem) 1.5rem 3rem;
}

@media (max-width: 768px) {
    .page-container {
        padding: calc(56px + 1rem) 1rem 2rem;
    }
}

/* Breadcrumb Navigation */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.breadcrumb i {
    font-size: 0.625rem;
    color: var(--text-tertiary);
}

/* Page Header */
.page-header {
    margin-bottom: 3rem;
}

.page-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.page-title i {
    color: var(--primary-color);
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 1.75rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
}

/* Stats Overview Cards */
.achievements-overview,
.stats-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (max-width: 992px) {
    .achievements-overview,
    .stats-overview {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .achievements-overview,
    .stats-overview {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.stat-card-lg {
    padding: 2rem;
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(43, 168, 255, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 12px;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

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

/* Progress Section */
.achievement-progress-section,
.streak-section,
.charts-section,
.breakdown-section,
.insights-section {
    margin-bottom: 3rem;
}

.achievement-progress-section h2,
.achievement-categories h2,
.streak-section h2,
.charts-section h2,
.breakdown-section h2,
.insights-section h2,
.recent-achievements-section h2,
.export-section h2,
.templates-section h2,
.data-management-section h2,
.history-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.progress-bar-container {
    height: 12px;
    background: var(--bg-secondary);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #8b5cf6);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Category Tabs */
.category-tabs,
.chart-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.category-tab,
.chart-tab {
    padding: 0.625rem 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-tab:hover,
.chart-tab:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--primary-color);
}

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

/* Badge Gallery */
.badge-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.badge-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.badge-placeholder i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

/* Streak Widget */
.streak-widget {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border-radius: 20px;
    padding: 2rem;
    color: white;
    text-align: center;
}

.streak-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.streak-emoji {
    font-size: 2.5rem;
}

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

.streak-label {
    font-size: 1.25rem;
    opacity: 0.9;
}

.streak-longest {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.streak-calendar {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

/* Chart Container */
.chart-container {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    min-height: 300px;
}

/* Breakdown Grid */
.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.breakdown-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

/* Insights Grid */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .insights-grid {
        grid-template-columns: 1fr;
    }
}

.insight-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
}

.insight-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.insight-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

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

/* Export Cards */
.export-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (max-width: 992px) {
    .export-cards {
        grid-template-columns: 1fr;
    }
}

.export-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.export-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.export-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(43, 168, 255, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 16px;
    font-size: 1.75rem;
    color: var(--primary-color);
}

.export-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.export-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Template Cards */
.template-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .template-cards {
        grid-template-columns: 1fr;
    }
}

.template-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.template-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(43, 168, 255, 0.1);
}

.template-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(43, 168, 255, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 12px;
    font-size: 1.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.template-info {
    flex: 1;
}

.template-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.template-info p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

/* Data Management */
.data-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (max-width: 992px) {
    .data-actions {
        grid-template-columns: 1fr;
    }
}

.data-action-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
}

.data-action-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.data-action-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.data-action-card p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.data-action-danger {
    border-color: rgba(220, 53, 69, 0.3);
}

.data-action-danger i {
    color: var(--error-color);
}

/* Button Styles for Pages */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

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

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

.btn-danger:hover {
    background: #c82333;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}

/* Export History */
.export-history {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 2rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    padding: 2rem;
}

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

/* ==========================================================================
   22. ULTRA MODERN ABOUT SECTION (Bento Grid Design)
   ========================================================================== */

.about-section {
    padding: 5rem 0;
}

.about-header {
    text-align: center;
    margin-bottom: 4rem;
}

.about-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(43, 168, 255, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(43, 168, 255, 0.2);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-badge i {
    font-size: 0.75rem;
}

.about-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.about-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Bento Grid Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.bento-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

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

.bento-card-lg {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(43, 168, 255, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 14px;
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.bento-icon-lg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    border-radius: 18px;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    color: white;
    box-shadow: 0 8px 24px rgba(43, 168, 255, 0.3);
}

.bento-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.bento-card-lg h3 {
    font-size: 1.5rem;
}

.bento-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Visual Counter Demo */
.bento-visual {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.visual-counter {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 1.5rem 2.5rem;
    text-align: center;
}

.counter-display {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    margin-bottom: 1rem;
}

.counter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.counter-buttons span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-minus {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-plus {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(43, 168, 255, 0.3);
}

.btn-minus:hover {
    background: var(--error-color);
    color: white;
    border-color: var(--error-color);
}

.btn-plus:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bento-card-lg {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 576px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .bento-card-lg {
        grid-column: span 1;
    }
}

/* Use Cases Grid */
.use-cases-section {
    margin-bottom: 4rem;
}

.use-cases-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 2rem;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 1rem;
}

@media (max-width: 1200px) {
    .use-cases-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 576px) {
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.use-case-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.use-case-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(43, 168, 255, 0.12);
}

.use-case-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0 auto 0.75rem;
    background: linear-gradient(135deg, rgba(43, 168, 255, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 12px;
    font-size: 1.125rem;
    color: var(--primary-color);
}

.use-case-card span {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.use-case-card p {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin: 0;
}

/* Stats Bar */
.stats-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
    border: 1px solid var(--border-color);
    border-radius: 24px;
}

@media (max-width: 768px) {
    .stats-bar {
        flex-wrap: wrap;
        gap: 2rem;
        padding: 2rem;
    }
}

.stats-bar-item {
    text-align: center;
}

.stats-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stats-bar .stats-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.stats-bar-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

@media (max-width: 768px) {
    .stats-bar-divider {
        display: none;
    }
    
    .stats-bar-item {
        flex: 1 1 40%;
    }
}

/* ==========================================================================
   23. ULTRA MODERN FAQ SECTION (Accordion Design)
   ========================================================================== */

.faq-section {
    padding: 5rem 0;
}

.faq-header {
    text-align: center;
    margin-bottom: 4rem;
}

.faq-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(43, 168, 255, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(43, 168, 255, 0.2);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.faq-badge i {
    font-size: 0.75rem;
}

.faq-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.faq-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* FAQ Accordion */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto 4rem;
}

.faq-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(43, 168, 255, 0.3);
}

.faq-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(43, 168, 255, 0.1);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.faq-question:hover {
    background: var(--bg-secondary);
}

.faq-question-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(43, 168, 255, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 10px;
    font-size: 1rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.faq-question span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.faq-chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--bg-secondary);
    border-radius: 8px;
    color: var(--text-tertiary);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-chevron {
    background: var(--primary-color);
    color: white;
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    padding-left: calc(1.5rem + 40px + 1rem);
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.faq-answer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* FAQ CTA */
.faq-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(43, 168, 255, 0.05), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(43, 168, 255, 0.2);
    border-radius: 20px;
}

@media (max-width: 576px) {
    .faq-cta {
        flex-direction: column;
        text-align: center;
    }
}

.faq-cta-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

@media (max-width: 576px) {
    .faq-cta-content {
        flex-direction: column;
    }
}

.faq-cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    border-radius: 16px;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.faq-cta-text h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.faq-cta-text p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.faq-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--primary-color);
    color: white;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.faq-cta-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(43, 168, 255, 0.3);
}

.faq-cta-btn i {
    font-size: 0.875rem;
    transition: transform 0.2s ease;
}

.faq-cta-btn:hover i {
    transform: translateX(4px);
}

/* ==========================================================================
   24. MODERN SECTION TEMPLATE - Colorful Full-Width Sections
   ========================================================================== */

/* Section Base - Full Width & Min Height */
.section-modern {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 0;
    overflow: hidden;
    /* Full bleed - break out of any container */
    margin-left: 50%;
    transform: translateX(-50%);
}

.section-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Section Gradients - Colorful backgrounds */
.section-gradient-primary {
    background: linear-gradient(180deg, 
        rgba(43, 168, 255, 0.05) 0%, 
        rgba(139, 92, 246, 0.08) 50%,
        rgba(43, 168, 255, 0.05) 100%
    );
}

.section-gradient-secondary {
    background: linear-gradient(180deg, 
        rgba(139, 92, 246, 0.05) 0%, 
        rgba(236, 72, 153, 0.08) 50%,
        rgba(139, 92, 246, 0.05) 100%
    );
}

/* Responsive height adjustment */
@media (max-width: 992px) {
    .section-modern {
        min-height: auto;
        padding: 3rem 0;
    }
}

/* Section Header */
.section-header-modern {
    text-align: center;
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #2ba8ff, #8b5cf6);
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(43, 168, 255, 0.3);
}

.section-badge-purple {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.section-badge i {
    font-size: 0.75rem;
}

.section-title-modern {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.text-gradient {
    background: linear-gradient(135deg, #2ba8ff, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-purple {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle-modern {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================================================
   25. COLORFUL ABOUT SECTION
   ========================================================================== */

/* Content Grid */
.about-content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .about-content-grid {
        grid-template-columns: 1fr;
    }
}

/* Content Cards with Color Accents */
.content-card {
    position: relative;
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.content-card-featured {
    border: 1px solid rgba(43, 168, 255, 0.15);
}

.card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2ba8ff, #00d4aa);
}

.card-accent-purple {
    background: linear-gradient(90deg, #8b5cf6, #ec4899);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.card-icon-primary {
    background: linear-gradient(135deg, #2ba8ff, #00d4aa);
    color: white;
    box-shadow: 0 4px 12px rgba(43, 168, 255, 0.3);
}

.card-icon-purple {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.content-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.content-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* Use Cases Modern - Colorful List */
.use-cases-modern {
    margin-bottom: 3rem;
}

.use-cases-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.use-cases-heading i {
    color: var(--primary-color);
}

.use-cases-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 992px) {
    .use-cases-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .use-cases-list {
        grid-template-columns: 1fr;
    }
}

.use-case-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-primary);
    border-radius: 14px;
    border-left: 4px solid;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.use-case-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Color Variants */
.use-case-blue { border-color: #2ba8ff; }
.use-case-green { border-color: #00d4aa; }
.use-case-orange { border-color: #ff9f43; }
.use-case-purple { border-color: #8b5cf6; }
.use-case-pink { border-color: #ec4899; }
.use-case-teal { border-color: #14b8a6; }
.use-case-red { border-color: #ef4444; }
.use-case-indigo { border-color: #6366f1; }
.use-case-cyan { border-color: #06b6d4; }

.use-case-blue .use-case-icon-modern { background: linear-gradient(135deg, #2ba8ff, #0ea5e9); }
.use-case-green .use-case-icon-modern { background: linear-gradient(135deg, #00d4aa, #10b981); }
.use-case-orange .use-case-icon-modern { background: linear-gradient(135deg, #ff9f43, #f97316); }
.use-case-purple .use-case-icon-modern { background: linear-gradient(135deg, #8b5cf6, #a855f7); }
.use-case-pink .use-case-icon-modern { background: linear-gradient(135deg, #ec4899, #f472b6); }
.use-case-teal .use-case-icon-modern { background: linear-gradient(135deg, #14b8a6, #2dd4bf); }
.use-case-red .use-case-icon-modern { background: linear-gradient(135deg, #ef4444, #f87171); }
.use-case-indigo .use-case-icon-modern { background: linear-gradient(135deg, #6366f1, #818cf8); }
.use-case-cyan .use-case-icon-modern { background: linear-gradient(135deg, #06b6d4, #22d3ee); }

.use-case-icon-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.use-case-content {
    flex: 1;
    min-width: 0;
}

.use-case-content strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.125rem;
}

.use-case-content span {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Feature Highlights - Colorful Pills */
.feature-highlights {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.feature-highlight {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    transition: all 0.2s ease;
}

.feature-highlight:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(43, 168, 255, 0.15);
}

.feature-highlight-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #2ba8ff, #8b5cf6);
    border-radius: 8px;
    font-size: 0.75rem;
    color: white;
}

.feature-highlight span {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* ==========================================================================
   26. COLORFUL FAQ SECTION
   ========================================================================== */

.faq-modern-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .faq-modern-grid {
        grid-template-columns: 1fr;
    }
}

/* FAQ Cards with Color */
.faq-card {
    background: var(--bg-primary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.faq-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.faq-card.active {
    box-shadow: 0 8px 30px rgba(43, 168, 255, 0.15);
}

/* FAQ Color Variants */
.faq-card-blue .faq-card-icon { background: linear-gradient(135deg, #2ba8ff, #0ea5e9); }
.faq-card-purple .faq-card-icon { background: linear-gradient(135deg, #8b5cf6, #a855f7); }
.faq-card-green .faq-card-icon { background: linear-gradient(135deg, #00d4aa, #10b981); }
.faq-card-orange .faq-card-icon { background: linear-gradient(135deg, #ff9f43, #f97316); }
.faq-card-pink .faq-card-icon { background: linear-gradient(135deg, #ec4899, #f472b6); }
.faq-card-teal .faq-card-icon { background: linear-gradient(135deg, #14b8a6, #2dd4bf); }
.faq-card-indigo .faq-card-icon { background: linear-gradient(135deg, #6366f1, #818cf8); }
.faq-card-cyan .faq-card-icon { background: linear-gradient(135deg, #06b6d4, #22d3ee); }
.faq-card-red .faq-card-icon { background: linear-gradient(135deg, #ef4444, #f87171); }
.faq-card-amber .faq-card-icon { background: linear-gradient(135deg, #f59e0b, #fbbf24); }

.faq-card-blue.active { border-color: #2ba8ff; }
.faq-card-purple.active { border-color: #8b5cf6; }
.faq-card-green.active { border-color: #00d4aa; }
.faq-card-orange.active { border-color: #ff9f43; }
.faq-card-pink.active { border-color: #ec4899; }
.faq-card-teal.active { border-color: #14b8a6; }
.faq-card-indigo.active { border-color: #6366f1; }
.faq-card-cyan.active { border-color: #06b6d4; }
.faq-card-red.active { border-color: #ef4444; }
.faq-card-amber.active { border-color: #f59e0b; }

.faq-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1.25rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
}

.faq-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.faq-card-header span {
    flex: 1;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
}

.faq-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--bg-secondary);
    border-radius: 8px;
    color: var(--text-tertiary);
    font-size: 0.75rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.faq-card.active .faq-toggle-icon {
    background: var(--primary-color);
    color: white;
    transform: rotate(45deg);
}

.faq-card-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-card.active .faq-card-body {
    max-height: 300px;
}

.faq-card-body p {
    padding: 0 1.25rem 1.25rem;
    padding-left: calc(1.25rem + 40px + 1rem);
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.faq-card-body a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.faq-card-body a:hover {
    text-decoration: underline;
}

/* FAQ Contact CTA - Colorful */
.faq-contact-cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, #2ba8ff, #8b5cf6);
    border-radius: 20px;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(60px);
    top: -50px;
    right: -50px;
}

.cta-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 700px;
}

@media (max-width: 576px) {
    .cta-content {
        flex-direction: column;
        text-align: center;
    }
}

.cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.cta-text {
    flex: 1;
}

.cta-text h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
}

.cta-text p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: white;
    color: #2ba8ff;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.cta-button i {
    font-size: 0.875rem;
    transition: transform 0.2s ease;
}

.cta-button:hover i {
    transform: translateX(4px);
}

/* ==========================================================================
   27. ABOUT SECTION - Two Column Cards
   ========================================================================== */

.about-two-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .about-two-col {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.about-card {
    position: relative;
    background: var(--bg-primary);
    border-radius: 24px;
    padding: 2.5rem;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-card-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    top: -50px;
    right: -50px;
    pointer-events: none;
}

.about-card-blue .about-card-glow {
    background: linear-gradient(135deg, #2ba8ff, #00d4aa);
}

.about-card-purple .about-card-glow {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.about-card-blue {
    border-top: 4px solid #2ba8ff;
}

.about-card-purple {
    border-top: 4px solid #8b5cf6;
}

.about-card-content {
    position: relative;
    z-index: 1;
}

.about-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
}

.about-card-blue .about-card-icon {
    background: linear-gradient(135deg, #2ba8ff, #00d4aa);
    box-shadow: 0 8px 24px rgba(43, 168, 255, 0.35);
}

.about-card-purple .about-card-icon {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
}

.about-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.about-card > .about-card-content > p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.about-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: var(--text-primary);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.about-features li:last-child {
    border-bottom: none;
}

.about-card-blue .about-features i {
    color: #2ba8ff;
}

.about-card-purple .about-features i {
    color: #8b5cf6;
}

/* About Pills */
.about-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.about-pill {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    transition: all 0.3s ease;
}

.about-pill:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(43, 168, 255, 0.15);
}

.about-pill i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #2ba8ff, #8b5cf6);
    border-radius: 10px;
    font-size: 0.875rem;
    color: white;
}

.about-pill span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* ==========================================================================
   28. USE CASES SECTION - Showcase Grid
   ========================================================================== */

.use-cases-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 3rem;
}

@media (max-width: 992px) {
    .use-cases-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .use-cases-showcase {
        grid-template-columns: 1fr;
    }
}

.use-case-showcase-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: 20px;
    border-left: 4px solid;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.use-case-showcase-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

/* Color variants */
.use-case-showcase-item.use-case-blue { border-color: #2ba8ff; }
.use-case-showcase-item.use-case-green { border-color: #00d4aa; }
.use-case-showcase-item.use-case-orange { border-color: #ff9f43; }
.use-case-showcase-item.use-case-purple { border-color: #8b5cf6; }
.use-case-showcase-item.use-case-pink { border-color: #ec4899; }
.use-case-showcase-item.use-case-teal { border-color: #14b8a6; }
.use-case-showcase-item.use-case-red { border-color: #ef4444; }
.use-case-showcase-item.use-case-indigo { border-color: #6366f1; }
.use-case-showcase-item.use-case-cyan { border-color: #06b6d4; }

.use-case-showcase-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
}

.use-case-showcase-item.use-case-blue .use-case-showcase-icon { background: linear-gradient(135deg, #2ba8ff, #0ea5e9); }
.use-case-showcase-item.use-case-green .use-case-showcase-icon { background: linear-gradient(135deg, #00d4aa, #10b981); }
.use-case-showcase-item.use-case-orange .use-case-showcase-icon { background: linear-gradient(135deg, #ff9f43, #f97316); }
.use-case-showcase-item.use-case-purple .use-case-showcase-icon { background: linear-gradient(135deg, #8b5cf6, #a855f7); }
.use-case-showcase-item.use-case-pink .use-case-showcase-icon { background: linear-gradient(135deg, #ec4899, #f472b6); }
.use-case-showcase-item.use-case-teal .use-case-showcase-icon { background: linear-gradient(135deg, #14b8a6, #2dd4bf); }
.use-case-showcase-item.use-case-red .use-case-showcase-icon { background: linear-gradient(135deg, #ef4444, #f87171); }
.use-case-showcase-item.use-case-indigo .use-case-showcase-icon { background: linear-gradient(135deg, #6366f1, #818cf8); }
.use-case-showcase-item.use-case-cyan .use-case-showcase-icon { background: linear-gradient(135deg, #06b6d4, #22d3ee); }

.use-case-showcase-content h4 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
}

.use-case-showcase-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Use Cases CTA */
.use-cases-cta {
    text-align: center;
}

.use-cases-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
}

.use-cases-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.45);
}

.use-cases-cta-btn i {
    font-size: 1.125rem;
}
/**
 * Subscription & Pricing Styles
 * Styles for pricing pages, checkout, and subscription management
 */

/* ===== PRICING PAGE ===== */
.pricing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Billing Toggle */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.billing-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.billing-label.active {
    color: var(--text-primary);
    font-weight: 600;
}

.save-badge {
    display: inline-block;
    background: var(--accent-gradient, linear-gradient(135deg, #22c55e, #16a34a));
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
    margin-left: 0.5rem;
    font-weight: 600;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-tertiary);
    border-radius: 26px;
    transition: 0.3s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--accent-gradient, linear-gradient(135deg, #3b82f6, #2563eb));
}

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

/* Plans Grid */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.monthly-plans,
.yearly-plans {
    display: contents;
}

/* Plan Card */
.plan-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.plan-card.popular {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gradient, linear-gradient(135deg, #3b82f6, #2563eb));
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    white-space: nowrap;
}

.plan-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.plan-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

.price-monthly-equiv {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.plan-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Plan Features */
.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.plan-features li i {
    color: #22c55e;
    width: 16px;
}

.plan-features li.feature-disabled {
    color: var(--text-secondary);
    opacity: 0.6;
}

.plan-features li.feature-disabled i {
    color: var(--text-secondary);
}

/* Plan Actions */
.plan-action {
    text-align: center;
}

.plan-btn {
    display: inline-block;
    width: 100%;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.plan-btn:hover {
    background: var(--bg-hover);
    transform: translateY(-1px);
}

.plan-btn.primary {
    background: var(--accent-gradient, linear-gradient(135deg, #3b82f6, #2563eb));
    color: white;
    border: none;
}

.plan-btn.primary:hover {
    opacity: 0.9;
}

.plan-btn.current {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    cursor: default;
}

.plan-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Pricing FAQ */
.pricing-faq {
    max-width: 800px;
    margin: 0 auto;
}

.pricing-faq h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.faq-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.faq-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.faq-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== CHECKOUT PAGE ===== */
.checkout-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
}

/* Checkout Summary */
.checkout-summary h3,
.checkout-payment h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.summary-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.summary-plan h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.plan-interval {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.summary-features {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.summary-features h5 {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.summary-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.summary-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    padding: 0.25rem 0;
}

.summary-features li i {
    color: #22c55e;
}

.summary-price .price-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.summary-price .price-row.total {
    border-top: 1px solid var(--border-color);
    margin-top: 0.5rem;
    padding-top: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.checkout-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

.checkout-note i {
    color: #22c55e;
}

/* Checkout Payment */
.checkout-errors {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.checkout-errors p {
    color: #ef4444;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stripe-card-element {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1rem;
}

.card-errors {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    min-height: 1.25rem;
}

.checkout-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--accent-gradient, linear-gradient(135deg, #3b82f6, #2563eb));
    color: white;
    margin-top: 1.5rem;
}

.checkout-btn:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-1px);
}

.checkout-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.checkout-btn.secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.checkout-alternatives {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.checkout-alternatives p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.checkout-terms {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 1rem;
}

.checkout-terms a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ===== SUCCESS/CANCEL PAGES ===== */
.success-container,
.cancel-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.success-card,
.cancel-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
}

.success-icon i {
    font-size: 4rem;
    color: #22c55e;
    margin-bottom: 1rem;
}

.cancel-icon i {
    font-size: 4rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.success-card h1,
.cancel-card h1 {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.success-message,
.cancel-message {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.success-actions,
.cancel-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.success-btn,
.cancel-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.success-btn.primary,
.cancel-btn.primary {
    background: var(--accent-gradient, linear-gradient(135deg, #3b82f6, #2563eb));
    color: white;
}

.success-btn.secondary,
.cancel-btn.secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.success-tips {
    text-align: left;
    background: var(--bg-primary);
    border-radius: 0.5rem;
    padding: 1.25rem;
}

.success-tips h3 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.success-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.success-tips li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.success-tips li i {
    color: var(--primary-color);
    width: 16px;
}

.cancel-help {
    text-align: left;
    background: var(--bg-primary);
    border-radius: 0.5rem;
    padding: 1.25rem;
}

.cancel-help h3 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.cancel-help p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.cancel-help a {
    color: var(--primary-color);
}

/* ===== SUBSCRIPTION MANAGEMENT PAGE ===== */
.subscription-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Alerts */
.alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Subscription Grid */
.subscription-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.subscription-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.subscription-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.subscription-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.25rem 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Plan Badge */
.plan-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.plan-badge.tier-free,
.plan-badge.tier-0 {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.plan-badge.tier-1,
.plan-badge.tier-pro {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.plan-badge.tier-2,
.plan-badge.tier-premium {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.plan-badge.tier-3,
.plan-badge.tier-enterprise {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.plan-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.plan-info .plan-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Subscription Status */
.subscription-status {
    margin-bottom: 1rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-badge.active {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.status-badge.cancelled {
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
}

.status-badge.past-due {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.next-billing {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Plan Features in Subscription */
.plan-features h4 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.plan-features li i {
    color: #22c55e;
}

/* Plan Actions */
.plan-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.inline-form {
    display: inline;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.action-btn:hover {
    background: var(--bg-hover);
}

.action-btn.primary {
    background: var(--accent-gradient, linear-gradient(135deg, #3b82f6, #2563eb));
    color: white;
    border: none;
}

.action-btn.resume {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.3);
}

.action-btn.cancel {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.upgrade-prompt {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Plan Options */
.plan-options {
    margin-bottom: 1.5rem;
}

.plan-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.plan-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--bg-primary);
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.plan-option-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.plan-option-name {
    font-weight: 600;
    color: var(--text-primary);
}

.plan-option-price {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.plan-option-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.85rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.plan-option-btn.upgrade {
    background: #22c55e;
    color: white;
}

.plan-option-btn.downgrade {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

/* Billing Cycle */
.billing-cycle {
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.current-cycle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.save-note {
    font-size: 0.8rem;
    color: #22c55e;
}

/* Payment History */
.payment-history {
    grid-column: 1 / -1;
}

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

.card-header h3 {
    margin-bottom: 0;
}

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

.view-all:hover {
    text-decoration: underline;
}

.transactions-table,
.invoices-table {
    width: 100%;
    border-collapse: collapse;
}

.transactions-table th,
.transactions-table td,
.invoices-table th,
.invoices-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.transactions-table th,
.invoices-table th {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.transactions-table td,
.invoices-table td {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.status-pill {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-pill.succeeded,
.status-pill.paid {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.status-pill.failed {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.status-pill.pending,
.status-pill.open {
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
}

.no-transactions,
.no-invoices,
.no-events {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem;
}

/* Subscription History */
.subscription-history {
    grid-column: 1 / -1;
}

.events-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.event-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.event-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.event-icon.subscription_created,
.event-icon.subscription_resumed {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.event-icon.subscription_cancelled,
.event-icon.subscription_ended {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.event-icon.plan_upgraded {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.event-icon.plan_downgraded,
.event-icon.billing_cycle_changed {
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
}

.event-icon.payment_failed {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.event-details {
    flex: 1;
}

.event-description {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.event-date {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* ===== INVOICES PAGE ===== */
.invoices-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.invoices-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.invoices-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.download-btn:hover {
    text-decoration: underline;
}

.type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
}

.type-badge.charge {
    color: var(--text-primary);
}

.type-badge.refund {
    color: #22c55e;
}

.type-badge.credit {
    color: #3b82f6;
}

.text-green {
    color: #22c55e;
}

.pagination-wrapper {
    margin-top: 1.5rem;
}

.back-link {
    margin-top: 1rem;
}

.back-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link a:hover {
    color: var(--text-primary);
}

/* ===== REGISTER PAGE ADDITIONS ===== */
.plan-selection-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.plan-selection-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.plan-selection-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.plan-selection-name {
    font-weight: 600;
    color: var(--primary-color);
}

.plan-selection-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.35rem;
}

.features-preview {
    background: var(--bg-tertiary);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.features-preview-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.features-preview-title i {
    color: #22c55e;
}

.features-preview-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.features-preview-list li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding-left: 1rem;
    position: relative;
}

.features-preview-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* ===== PLAN SELECTOR ON REGISTRATION ===== */
.plan-selector-section {
    margin-bottom: 1.5rem;
}

.plan-selector-section .form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

/* Plan Selector Trigger Button */
.plan-selector-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--bg-secondary, #f9fafb);
    border: 2px solid var(--border-color, #e5e7eb);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.plan-selector-trigger:hover {
    border-color: var(--primary-color, #3b82f6);
    background: var(--bg-tertiary, #f3f4f6);
}

.plan-selector-trigger-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.plan-selector-trigger-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.plan-selector-trigger-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.plan-selector-trigger-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

.plan-selector-trigger-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.plan-selector-trigger-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color, #3b82f6);
    font-size: 0.9rem;
    font-weight: 500;
}

.plan-selector-trigger-action i {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.plan-selector-trigger:hover .plan-selector-trigger-action i {
    transform: translateX(3px);
}

/* Plan Modal */
.plan-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.plan-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.plan-modal {
    background: var(--bg-primary, white);
    border-radius: 1rem;
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s ease;
}

.plan-modal-overlay.active .plan-modal {
    transform: scale(1) translateY(0);
}

.plan-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.plan-modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.plan-modal-close {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    border: none;
    background: var(--bg-tertiary, #f3f4f6);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.plan-modal-close:hover {
    background: var(--bg-secondary, #e5e7eb);
    color: var(--text-primary);
}

.plan-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.plan-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color, #e5e7eb);
    text-align: center;
}

.plan-modal-footer p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.plan-modal-footer i {
    color: #22c55e;
}

/* Plan Cards */
.plan-card {
    position: relative;
    background: var(--bg-secondary, #f9fafb);
    border: 2px solid var(--border-color, #e5e7eb);
    border-radius: 1rem;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.plan-card:hover {
    border-color: var(--primary-color, #3b82f6);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -8px rgba(59, 130, 246, 0.2);
}

.plan-card.selected {
    border-color: var(--primary-color, #3b82f6);
    background: rgba(59, 130, 246, 0.05);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.plan-card.recommended {
    border-color: #22c55e;
}

.plan-card.recommended.selected {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.05);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.plan-card-badge {
    position: absolute;
    top: -0.6rem;
    right: 1rem;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
}

.plan-card-icon.free {
    background: linear-gradient(135deg, #6b7280, #4b5563);
}

.plan-card-icon.ad_free {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.plan-card-icon.pro {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.plan-card-icon.ultimate {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.plan-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.plan-card-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.plan-card-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.plan-card-interval {
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--bg-tertiary, #e5e7eb);
    color: var(--text-secondary);
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    text-transform: uppercase;
}

.plan-card-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
}

.plan-card-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.plan-card-period {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.plan-card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

.plan-card-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.plan-card-features li {
    font-size: 0.8rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.plan-card-features li i {
    font-size: 0.7rem;
    color: #22c55e;
    width: 1rem;
    text-align: center;
}

.plan-card-features li.muted {
    color: var(--text-secondary);
}

.plan-card-features li.muted i {
    color: var(--text-secondary);
}

.plan-card-features li.highlight {
    color: #22c55e;
    font-weight: 600;
}

.plan-card-features li.highlight i {
    color: #22c55e;
}

.plan-card-footer {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
}

.plan-card-select-btn {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    background: var(--primary-color, #3b82f6);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.plan-card-select-btn:hover {
    background: var(--primary-hover, #2563eb);
    transform: translateY(-1px);
}

.plan-card.selected .plan-card-select-btn {
    background: #22c55e;
}

.plan-card.recommended .plan-card-select-btn {
    background: #22c55e;
}

.plan-card.recommended .plan-card-select-btn:hover {
    background: #16a34a;
}

.plan-card-info-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.plan-card-info-link:hover {
    color: var(--primary-color, #3b82f6);
}

.plan-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.plan-note i {
    color: #22c55e;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .plan-selector-trigger {
        background: var(--bg-secondary, #1f2937);
        border-color: var(--border-color, #374151);
    }
    
    .plan-modal {
        background: var(--bg-primary, #111827);
    }
    
    .plan-card {
        background: var(--bg-secondary, #1f2937);
        border-color: var(--border-color, #374151);
    }
}

/* Mobile responsiveness */
@media (max-width: 640px) {
    .plan-modal-body {
        grid-template-columns: 1fr;
    }
    
    .plan-modal {
        max-height: 95vh;
        margin: 0.5rem;
    }
}
/* ===== PAYMENT SECTION ON REGISTRATION ===== */
.payment-section {
    background: var(--bg-secondary, #f9fafb);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.payment-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.payment-section-header > i {
    color: var(--primary-color, #3b82f6);
    font-size: 1.1rem;
}

.payment-section-header > span {
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.payment-secure-badge {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    padding: 0.25rem 0.6rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.payment-secure-badge i {
    font-size: 0.65rem;
}

.stripe-card-element {
    background: white;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 0.5rem;
    padding: 0.875rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.stripe-card-element:focus-within {
    border-color: var(--primary-color, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.stripe-card-errors {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
}

/* ===== ORDER SUMMARY ===== */
.order-summary {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.order-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-primary);
}

.order-summary-row span:last-child {
    color: var(--primary-color, #3b82f6);
    font-size: 1.1rem;
}

.order-summary-note {
    margin: 0.75rem 0 0 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-summary-note i {
    font-size: 0.7rem;
}

/* Dark mode for payment section */
@media (prefers-color-scheme: dark) {
    .payment-section {
        background: var(--bg-secondary, #1f2937);
        border-color: var(--border-color, #374151);
    }
    
    .stripe-card-element {
        background: var(--bg-tertiary, #111827);
        border-color: var(--border-color, #374151);
    }
}
/* ===== PAYMENT SECTION ON REGISTRATION ===== */
.payment-section {
    background: var(--bg-secondary, #f9fafb);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.payment-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.payment-section-header > i {
    color: var(--primary-color, #3b82f6);
    font-size: 1.1rem;
}

.payment-section-header > span {
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.payment-secure-badge {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    padding: 0.25rem 0.6rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.payment-secure-badge i {
    font-size: 0.65rem;
}

.stripe-card-element {
    background: white;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 0.5rem;
    padding: 0.875rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.stripe-card-element:focus-within {
    border-color: var(--primary-color, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.stripe-card-errors {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
}

/* ===== ORDER SUMMARY ===== */
.order-summary {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.order-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-primary);
}

.order-summary-row span:last-child {
    color: var(--primary-color, #3b82f6);
    font-size: 1.1rem;
}

.order-summary-note {
    margin: 0.75rem 0 0 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-summary-note i {
    font-size: 0.7rem;
}

/* Dark mode for payment section */
@media (prefers-color-scheme: dark) {
    .payment-section {
        background: var(--bg-secondary, #1f2937);
        border-color: var(--border-color, #374151);
    }
    
    .stripe-card-element {
        background: var(--bg-tertiary, #111827);
        border-color: var(--border-color, #374151);
    }
}
/* ===== REGISTRATION FORM STYLING FIXES ===== */

/* Form sections for visual grouping */
.form-section {
    margin-bottom: 1.5rem;
}

/* Light input fields - white background with dark text */
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form .form-input-light {
    background: #ffffff !important;
    color: #1f2937 !important;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-form input[type="text"]::placeholder,
.auth-form input[type="email"]::placeholder,
.auth-form input[type="password"]::placeholder,
.auth-form .form-input-light::placeholder {
    color: #9ca3af !important;
}

.auth-form input[type="text"]:focus,
.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus,
.auth-form .form-input-light:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Form labels */
.auth-form label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.auth-form label i {
    color: #3b82f6;
}

/* Secure badge in label */
.secure-badge {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    padding: 0.2rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.7rem;
    font-weight: 600;
}

.secure-badge i {
    font-size: 0.6rem;
    color: #22c55e;
}

/* Plan selector trigger - match input styling */
.plan-selector-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    background: #ffffff !important;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.plan-selector-trigger:hover {
    border-color: #3b82f6;
}

.plan-selector-trigger-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.plan-selector-trigger-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.plan-selector-trigger-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.plan-selector-trigger-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1f2937 !important;
}

.plan-selector-trigger-desc {
    font-size: 0.8rem;
    color: #6b7280 !important;
}

.plan-selector-trigger-action {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #3b82f6;
    font-size: 0.85rem;
    font-weight: 500;
}

.plan-selector-trigger-action i {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.plan-selector-trigger:hover .plan-selector-trigger-action i {
    transform: translateX(3px);
}

/* Stripe card element - already white, just ensure consistency */
.stripe-card-element {
    background: #ffffff !important;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.875rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.stripe-card-element:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.stripe-card-errors {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
}

/* Order summary - light background with readable text */
.order-summary {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.order-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.order-summary-row span:first-child {
    color: #1f2937;
}

.order-summary-row span:last-child {
    color: #3b82f6;
    font-size: 1.1rem;
}

.order-summary-note {
    margin: 0.75rem 0 0 0;
    font-size: 0.8rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-summary-note i {
    font-size: 0.7rem;
    color: #9ca3af;
}

/* Form hint text */
.form-hint {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.35rem;
}

/* Submit button */
.auth-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.auth-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
}

.auth-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Plan note */
.plan-note {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.plan-note i {
    color: #22c55e;
}

/* Auth links */
.auth-links {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-links a {
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.9rem;
}

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

/* Auth error messages */
.auth-error {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.35rem;
}

/* Subtitle */
.subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}
/* ==========================================================================
   COMPACT REGISTRATION FORM STYLES
   ========================================================================== */

/* Compact form container */
.compact-form .auth-form {
    background: #fafbfc;
}

/* Two-column form rows */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 540px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Section headers with icons */
.form-section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-section-header:first-child {
    margin-top: 0;
}

.form-section-header i {
    color: #3b82f6;
    font-size: 0.85rem;
}

/* Form inputs - ensure white background */
.compact-form .form-input,
.compact-form input[type="text"],
.compact-form input[type="email"],
.compact-form input[type="password"] {
    background: #ffffff !important;
    border: 1px solid #d1d5db !important;
    color: #1f2937 !important;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.compact-form .form-input:focus,
.compact-form input:focus {
    outline: none;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.compact-form .form-input::placeholder,
.compact-form input::placeholder {
    color: #9ca3af;
}

/* Labels */
.compact-form .form-label {
    color: #374151;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
    display: block;
}

/* Button with price */
.compact-form .auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.btn-price {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Form footer */
.compact-form .form-footer {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.compact-form .form-footer span {
    color: #6b7280;
    font-size: 0.9rem;
}

.compact-form .form-footer a {
    color: #3b82f6;
    font-weight: 500;
    text-decoration: none;
}

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

/* Plan selector trigger - compact */
.compact-form .plan-selector-trigger {
    padding: 0.875rem 1rem;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.compact-form .plan-selector-trigger:hover {
    border-color: #3b82f6;
}

.compact-form .plan-trigger-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.compact-form .plan-trigger-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
}

.compact-form .plan-trigger-text {
    flex: 1;
}

.compact-form .plan-trigger-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.95rem;
}

.compact-form .plan-trigger-desc {
    color: #6b7280;
    font-size: 0.8rem;
    margin-top: 0.1rem;
}

.compact-form .plan-trigger-arrow {
    color: #9ca3af;
    font-size: 0.85rem;
}

/* Card element container */
.compact-form #card-element {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.875rem 1rem;
    min-height: 44px;
}

.compact-form #card-errors {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 0.35rem;
}

/* Secure badge */
.compact-form .secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 0.5rem;
    color: #6b7280;
    font-size: 0.75rem;
}

.compact-form .secure-badge i {
    color: #10b981;
}

/* Auth container - narrower for compact form */
.compact-form.auth-container {
    max-width: 480px;
}

/* ==========================================================================
   USER DROPDOWN MENU STYLES
   ========================================================================== */

/* User dropdown trigger */
.user-dropdown .action-btn-text {
    gap: 0.5rem;
}

.user-dropdown .nav-dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.user-dropdown:hover .nav-dropdown-arrow,
.user-dropdown.open .nav-dropdown-arrow {
    transform: rotate(180deg);
}

/* User menu positioning */
.user-menu {
    right: 0;
    left: auto;
    transform: translateY(8px);
    min-width: 280px;
}

.user-dropdown:hover .user-menu,
.user-dropdown.open .user-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Logout button styled as link */
.mega-menu-logout {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #fee2e2;
    color: #dc2626;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.mega-menu-logout:hover {
    background: #fecaca;
}

[data-theme="dark"] .mega-menu-logout {
    background: rgba(220, 38, 38, 0.15);
    color: #f87171;
}

[data-theme="dark"] .mega-menu-logout:hover {
    background: rgba(220, 38, 38, 0.25);
}

/* Mobile nav user header */
.mobile-nav-user-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.mobile-nav-user-header i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

/* Mobile logout button */
.mobile-auth-logout {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: #fee2e2;
    color: #dc2626;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.mobile-auth-logout:hover {
    background: #fecaca;
}

[data-theme="dark"] .mobile-auth-logout {
    background: rgba(220, 38, 38, 0.15);
    color: #f87171;
}

[data-theme="dark"] .mobile-auth-logout:hover {
    background: rgba(220, 38, 38, 0.25);
}
