﻿/* baby badge stilleri index.ejs içine taşındı */
/* CSS Variables */
:root {
    /* NyRobot Brand Colors */
    --primary-color: #af98d9;
    --primary-dark: #8b5dba;
    --primary-light: #c8b5e8;
    --secondary-color: #9c88c4;
    --accent-color: #7c6ba3;
    --success-color: #57F287;
    --danger-color: #ED4245;
    --warning-color: #FEE75C;
    
    /* Dark Theme - Default */
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --bg-card: #1c2128;
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    
    /* RGB values for transparency */
    --bg-primary-rgb: 13, 17, 23;
    
    /* NyRobot Gradients */
    --gradient-primary: linear-gradient(135deg, #af98d9 0%, #9c88c4 50%, #8b5dba 100%);
    --gradient-secondary: linear-gradient(135deg, #c8b5e8 0%, #af98d9 100%);
    --gradient-success: linear-gradient(135deg, #57F287 0%, #3ba55c 100%);
    --gradient-danger: linear-gradient(135deg, #ED4245 0%, #a61e1e 100%);
    
    /* Shadows - Purple Glow */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(175, 152, 217, 0.4);
    --shadow-glow-intense: 0 0 60px rgba(175, 152, 217, 0.6);
    
    /* Borders */
    --border-color: rgba(175, 152, 217, 0.2);
    --border-color-hover: rgba(175, 152, 217, 0.4);
    --border-radius: 12px;
    /* Navbar background derived from theme */
    --navbar-bg: rgba(var(--bg-primary-rgb, 13, 17, 23), 0.95);
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    /* RGB values for light theme */
    --bg-primary-rgb: 255, 255, 255;
    
    /* Light theme shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 30px rgba(175, 152, 217, 0.3);
    --shadow-glow-intense: 0 0 50px rgba(175, 152, 217, 0.4);
    
    /* Light borders */
    --border-color: rgba(175, 152, 217, 0.15);
    --border-color-hover: rgba(175, 152, 217, 0.3);
}

/* System preference detection */
@media (prefers-color-scheme: light) {
    :root:not([data-theme]) {
        --bg-primary: #ffffff;
        --bg-secondary: #f8fafc;
        --bg-tertiary: #f1f5f9;
        --bg-card: #ffffff;
        --text-primary: #1e293b;
        --text-secondary: #64748b;
        --text-muted: #94a3b8;
        
        /* RGB values for light theme */
        --bg-primary-rgb: 255, 255, 255;
        
        --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
        --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
        --shadow-glow: 0 0 30px rgba(175, 152, 217, 0.3);
        --shadow-glow-intense: 0 0 50px rgba(175, 152, 217, 0.4);
        
        --border-color: rgba(175, 152, 217, 0.15);
        --border-color-hover: rgba(175, 152, 217, 0.3);
    }
}

/* Additional Variables */
:root {
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 120px;
}

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

html {
    scroll-behavior: smooth;
}

/* Section transitions */
section {
    transition: opacity 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.floating-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Floating Shapes - Smooth animations enabled */
.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12; /* Slightly increased for visibility */
    animation: float 20s ease-in-out infinite; /* Re-enabled animation */
    filter: blur(1px); /* Subtle blur for smooth effect */
    will-change: transform; /* Optimize for animations */
    transform: translateZ(0); /* Hardware acceleration */
    transition: opacity 0.5s ease, transform 0.3s ease; /* Smooth hover transitions */
    cursor: pointer;
}

/* Interactive hover effects */
.shape:hover {
    opacity: 0.25;
    transform: translateZ(0) scale(1.1);
    filter: blur(0.5px);
}

/* Pause animation on hover for better interaction */
.animated-bg:hover .shape {
    animation-play-state: paused;
}

.shape-1 { 
    width: 300px; 
    height: 300px; 
    top: 10%; 
    left: 10%; 
    animation: float 25s ease-in-out infinite;
    animation-delay: 0s;
    background: radial-gradient(circle, rgba(175, 152, 217, 0.4) 0%, rgba(156, 136, 196, 0.15) 100%);
}
.shape-2 { 
    width: 200px; 
    height: 200px; 
    top: 60%; 
    right: 20%; 
    animation: floatReverse 30s ease-in-out infinite;
    animation-delay: 4s;
    background: radial-gradient(circle, rgba(200, 181, 232, 0.35) 0%, rgba(175, 152, 217, 0.12) 100%);
}
.shape-3 { 
    width: 150px; 
    height: 150px; 
    bottom: 20%; 
    left: 30%; 
    animation: floatSlow 35s ease-in-out infinite;
    animation-delay: 8s;
    background: radial-gradient(circle, rgba(139, 93, 186, 0.4) 0%, rgba(124, 107, 163, 0.15) 100%);
}
.shape-4 { 
    width: 250px; 
    height: 250px; 
    top: 30%; 
    right: 10%; 
    animation: floatFast 20s ease-in-out infinite;
    animation-delay: 12s;
    background: radial-gradient(circle, rgba(175, 152, 217, 0.3) 0%, rgba(156, 136, 196, 0.1) 100%);
}
.shape-5 { 
    width: 180px; 
    height: 180px; 
    bottom: 40%; 
    right: 40%; 
    animation: floatGentle 28s ease-in-out infinite;
    animation-delay: 16s;
    background: radial-gradient(circle, rgba(200, 181, 232, 0.4) 0%, rgba(139, 93, 186, 0.15) 100%);
}

.shape-6 { 
    width: 120px; 
    height: 120px; 
    top: 75%; 
    left: 5%; 
    animation: floatSlow 32s ease-in-out infinite;
    animation-delay: 20s;
    background: radial-gradient(circle, rgba(175, 152, 217, 0.35) 0%, rgba(124, 107, 163, 0.12) 100%);
}

.shape-7 { 
    width: 90px; 
    height: 90px; 
    top: 15%; 
    right: 50%; 
    animation: floatFast 18s ease-in-out infinite;
    animation-delay: 24s;
    background: radial-gradient(circle, rgba(156, 136, 196, 0.4) 0%, rgba(175, 152, 217, 0.18) 100%);
}

.shape-8 { 
    width: 220px; 
    height: 220px; 
    bottom: 10%; 
    right: 5%; 
    animation: floatReverse 26s ease-in-out infinite;
    animation-delay: 28s;
    background: radial-gradient(circle, rgba(139, 93, 186, 0.35) 0%, rgba(200, 181, 232, 0.14) 100%);
}

.shape-9 { 
    width: 110px; 
    height: 110px; 
    top: 50%; 
    left: 70%; 
    animation: floatGentle 22s ease-in-out infinite;
    animation-delay: 32s;
    background: radial-gradient(circle, rgba(200, 181, 232, 0.38) 0%, rgba(156, 136, 196, 0.16) 100%);
}

.shape-10 { 
    width: 160px; 
    height: 160px; 
    bottom: 65%; 
    left: 50%; 
    animation: float 24s ease-in-out infinite;
    animation-delay: 36s;
    background: radial-gradient(circle, rgba(175, 152, 217, 0.32) 0%, rgba(139, 93, 186, 0.13) 100%);
}

/* Light theme shapes */
[data-theme="light"] .shape {
    opacity: 0.36; /* Light temada görünürlüğü artır */
    box-shadow: 0 0 30px rgba(175, 152, 217, 0.12);
}

[data-theme="light"] .shape-1 {
    background: radial-gradient(circle, rgba(175, 152, 217, 0.3) 0%, rgba(156, 136, 196, 0.08) 100%);
}
[data-theme="light"] .shape-2 {
    background: radial-gradient(circle, rgba(200, 181, 232, 0.25) 0%, rgba(175, 152, 217, 0.06) 100%);
}
[data-theme="light"] .shape-3 {
    background: radial-gradient(circle, rgba(139, 93, 186, 0.3) 0%, rgba(124, 107, 163, 0.08) 100%);
}
[data-theme="light"] .shape-4 {
    background: radial-gradient(circle, rgba(175, 152, 217, 0.25) 0%, rgba(156, 136, 196, 0.06) 100%);
}
[data-theme="light"] .shape-5 {
    background: radial-gradient(circle, rgba(200, 181, 232, 0.3) 0%, rgba(139, 93, 186, 0.08) 100%);
}

[data-theme="light"] .shape-6 {
    background: radial-gradient(circle, rgba(175, 152, 217, 0.28) 0%, rgba(124, 107, 163, 0.07) 100%);
}

[data-theme="light"] .shape-7 {
    background: radial-gradient(circle, rgba(156, 136, 196, 0.32) 0%, rgba(175, 152, 217, 0.09) 100%);
}

[data-theme="light"] .shape-8 {
    background: radial-gradient(circle, rgba(139, 93, 186, 0.28) 0%, rgba(200, 181, 232, 0.08) 100%);
}

[data-theme="light"] .shape-9 {
    background: radial-gradient(circle, rgba(200, 181, 232, 0.30) 0%, rgba(156, 136, 196, 0.09) 100%);
}

[data-theme="light"] .shape-10 {
    background: radial-gradient(circle, rgba(175, 152, 217, 0.26) 0%, rgba(139, 93, 186, 0.07) 100%);
}

/* System preference light theme shapes */
@media (prefers-color-scheme: light) {
    :root:not([data-theme]) .shape {
        opacity: 0.36;
        box-shadow: 0 0 30px rgba(175, 152, 217, 0.12);
    }
    
    :root:not([data-theme]) .shape-1 {
        background: radial-gradient(circle, rgba(175, 152, 217, 0.3) 0%, rgba(156, 136, 196, 0.08) 100%);
    }
    :root:not([data-theme]) .shape-2 {
        background: radial-gradient(circle, rgba(200, 181, 232, 0.25) 0%, rgba(175, 152, 217, 0.06) 100%);
    }
    :root:not([data-theme]) .shape-3 {
        background: radial-gradient(circle, rgba(139, 93, 186, 0.3) 0%, rgba(124, 107, 163, 0.08) 100%);
    }
    :root:not([data-theme]) .shape-4 {
        background: radial-gradient(circle, rgba(175, 152, 217, 0.25) 0%, rgba(156, 136, 196, 0.06) 100%);
    }
    :root:not([data-theme]) .shape-5 {
        background: radial-gradient(circle, rgba(200, 181, 232, 0.3) 0%, rgba(139, 93, 186, 0.08) 100%);
    }
    :root:not([data-theme]) .shape-6 {
        background: radial-gradient(circle, rgba(175, 152, 217, 0.28) 0%, rgba(124, 107, 163, 0.07) 100%);
    }
    :root:not([data-theme]) .shape-7 {
        background: radial-gradient(circle, rgba(156, 136, 196, 0.32) 0%, rgba(175, 152, 217, 0.09) 100%);
    }
    :root:not([data-theme]) .shape-8 {
        background: radial-gradient(circle, rgba(139, 93, 186, 0.28) 0%, rgba(200, 181, 232, 0.08) 100%);
    }
    :root:not([data-theme]) .shape-9 {
        background: radial-gradient(circle, rgba(200, 181, 232, 0.30) 0%, rgba(156, 136, 196, 0.09) 100%);
    }
    :root:not([data-theme]) .shape-10 {
        background: radial-gradient(circle, rgba(175, 152, 217, 0.26) 0%, rgba(139, 93, 186, 0.07) 100%);
    }
}

/* Enhanced floating animations */
@keyframes float {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-15px) translateX(10px) rotate(90deg) scale(1.02);
    }
    50% { 
        transform: translateY(-30px) translateX(-5px) rotate(180deg) scale(0.98);
    }
    75% {
        transform: translateY(-10px) translateX(-15px) rotate(270deg) scale(1.01);
    }
}

@keyframes floatReverse {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(20px) translateX(-12px) rotate(-90deg) scale(0.98);
    }
    50% { 
        transform: translateY(35px) translateX(8px) rotate(-180deg) scale(1.03);
    }
    75% {
        transform: translateY(15px) translateX(18px) rotate(-270deg) scale(0.99);
    }
}

@keyframes floatSlow {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
    }
    33% {
        transform: translateY(-25px) translateX(20px) rotate(120deg) scale(1.04);
    }
    66% { 
        transform: translateY(-10px) translateX(-25px) rotate(240deg) scale(0.96);
    }
}

@keyframes floatFast {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
    }
    20% {
        transform: translateY(-40px) translateX(15px) rotate(72deg) scale(1.05);
    }
    40% {
        transform: translateY(-20px) translateX(-20px) rotate(144deg) scale(0.95);
    }
    60% {
        transform: translateY(-35px) translateX(25px) rotate(216deg) scale(1.02);
    }
    80% {
        transform: translateY(-5px) translateX(-10px) rotate(288deg) scale(0.98);
    }
}

@keyframes floatGentle {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-18px) translateX(8px) rotate(60deg) scale(1.01);
    }
    50% { 
        transform: translateY(-12px) translateX(-12px) rotate(120deg) scale(0.99);
    }
    75% {
        transform: translateY(-25px) translateX(5px) rotate(180deg) scale(1.02);
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100% - 24px);
    background: rgba(7, 9, 18, 0.78);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    z-index: 1000;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-lg);
    animation: navbarFloat 7s ease-in-out infinite alternate;
    overflow: visible;
}

.navbar::before {
    content: '';
    position: absolute;
    inset: -70% -34%;
    z-index: -1;
    background:
        radial-gradient(circle at 16% 30%, rgba(114, 168, 255, 0.2), transparent 46%),
        radial-gradient(circle at 84% 30%, rgba(147, 112, 255, 0.18), transparent 50%),
        radial-gradient(circle at 50% 82%, rgba(90, 230, 255, 0.12), transparent 56%);
    filter: blur(18px) saturate(108%);
    animation: navbarBgShift 11s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes navbarFloat {
    0% { transform: translateX(-50%) translateY(0); }
    100% { transform: translateX(-50%) translateY(2px); }
}

@keyframes navbarBgShift {
    0% { transform: translate3d(-3%, -1%, 0) scale(1); }
    100% { transform: translate3d(3%, 2%, 0) scale(1.08); }
}

/* Light theme navbar fix */
[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: var(--shadow-md);
}
[data-theme="light"] .navbar::before {
    opacity: 0.35;
    filter: blur(20px) saturate(102%);
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme]) .navbar {
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid rgba(15, 23, 42, 0.12);
        box-shadow: var(--shadow-md);
    }
    :root:not([data-theme]) .navbar::before {
        opacity: 0.35;
        filter: blur(20px) saturate(102%);
    }
}

.nav-container {
    display: grid;
    grid-template-columns: auto auto auto;
    align-items: center;
    padding: 14px 22px;
    max-width: var(--container-max-width);
    margin: 0 auto;
    gap: 16px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    color: var(--text-primary);
}

.logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-self: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid transparent;
    line-height: 1;
}

.nav-link:hover {
    color: var(--text-primary);
    border-color: var(--border-color);
    background: rgba(255, 255, 255, 0.05);
}

/* Premium Dashboard & Login Links */
.premium-dashboard-link,
.premium-login-link {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 12px;
    background: rgba(175, 152, 217, 0.1);
    border: 1px solid rgba(175, 152, 217, 0.3);
    transition: all 0.3s ease;
}

.premium-dashboard-link:hover,
.premium-login-link:hover {
    background: rgba(175, 152, 217, 0.2);
    border-color: rgba(175, 152, 217, 0.5);
    transform: translateY(-2px);
}

.premium-dashboard-link::after,
.premium-login-link::after {
    display: none;
}

.premium-dashboard-link i,
.premium-login-link i {
    font-size: 14px;
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    margin-left: 0;
    vertical-align: middle;
}

.nav-user-menu {
    position: relative;
    z-index: 35;
}

.nav-user-menu::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 14px;
}

.nav-user {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
    border: none;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
}

.nav-user img,
.nav-user-fallback {
    width: 40px;
    height: 40px;
    border-radius: 999px;
}

.nav-user-fallback {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(110,167,255,.28), rgba(167,139,250,.25));
    font-size: .78rem;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(0,0,0,.16);
}

.nav-user-dd {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    min-width: 220px;
    background: rgba(12, 16, 28, 0.98);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .22s ease, transform .22s ease;
}

.nav-user-menu.open .nav-user-dd {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
@media (hover: hover) and (pointer: fine) {
    .nav-user-menu:hover .nav-user-dd,
    .nav-user-menu:focus-within .nav-user-dd {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
}

.nav-user-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    transition: .15s;
}

.nav-user-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.nav-user-item.danger:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #fecaca;
}

.theme-toggle:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.theme-icon-light,
.theme-icon-dark {
    position: absolute;
    color: var(--text-secondary);
    font-size: 16px;
    transition: var(--transition-fast);
}

/* Default: Dark theme active, show moon icon */
.theme-icon-light {
    opacity: 0;
    transform: rotate(180deg);
}

.theme-icon-dark {
    opacity: 1;
    transform: rotate(0deg);
}

/* Light theme active, show sun icon */
[data-theme="light"] .theme-icon-light {
    opacity: 1;
    transform: rotate(0deg);
}

[data-theme="light"] .theme-icon-dark {
    opacity: 0;
    transform: rotate(180deg);
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme]) .theme-icon-light {
        opacity: 1;
        transform: rotate(0deg);
    }
    
    :root:not([data-theme]) .theme-icon-dark {
        opacity: 0;
        transform: rotate(180deg);
    }
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition-fast);
    justify-self: end;
    margin-left: auto;
}

.mobile-menu-btn:hover {
    background: rgba(175, 152, 217, 0.1);
    color: var(--primary-color);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 104px;
    left: 0;
    right: 0;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 20px;
    z-index: 999;
}

.mobile-menu.active {
    display: block;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.mobile-nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 8px;
    transition: var(--transition-fast);
    text-align: center;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--primary-color);
    background: rgba(175, 152, 217, 0.1);
}
.mobile-user-trigger {
    width: 100%;
    border: 1px solid var(--border-color);
    background: rgba(175, 152, 217, 0.08);
    color: var(--text-primary);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}
.mobile-user-head { display:flex; align-items:center; gap:10px; min-width:0; }
.mobile-user-head img,
.mobile-user-fallback { width:34px; height:34px; border-radius:999px; object-fit:cover; flex-shrink:0; }
.mobile-user-fallback {
    display:grid;
    place-items:center;
    font-size:.7rem;
    font-weight:800;
    background:linear-gradient(135deg, rgba(110,167,255,.28), rgba(167,139,250,.25));
}
.mobile-user-name { font-size:.92rem; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mobile-user-dd {
    max-height:0;
    opacity:0;
    pointer-events:none;
    overflow:hidden;
    transition:max-height .22s ease, opacity .2s ease;
    display:flex;
    flex-direction:column;
    gap:8px;
}
.mobile-user-dd.open {
    margin-top:8px;
    max-height:220px;
    opacity:1;
    pointer-events:auto;
}
.mobile-user-dd .mobile-nav-link { text-align:left; }

@media (max-width: 768px) {
    .navbar {
        top: 8px;
        width: calc(100% - 16px);
        border-radius: 14px;
        animation: none;
    }

    .nav-links {
        display: none;
    }
    
    .theme-toggle {
        margin-left: 8px;
        margin-right: 8px;
    }
    
    .mobile-menu-btn {
        display: block;
        margin-left: auto;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 24px;
    margin-top: 80px;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.3);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-md);
}

/* Light theme hero badge */
[data-theme="light"] .hero-badge {
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.4);
    color: #7c3aed;
    font-weight: 700;
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme]) .hero-badge {
        background: rgba(124, 58, 237, 0.15);
        border: 1px solid rgba(124, 58, 237, 0.4);
        color: #7c3aed;
        font-weight: 700;
    }
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

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

.hero-description {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Light theme description - better contrast */
[data-theme="light"] .hero-description {
    color: var(--text-primary);
    opacity: 0.8;
    font-weight: 500;
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme]) .hero-description {
        color: var(--text-primary);
        opacity: 0.8;
        font-weight: 500;
    }
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-bottom: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Hero CTA Button */
.hero-cta {
    margin-top: 20px;
}

.packages-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-glow);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

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

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

.packages-btn i:last-child {
    transition: transform var(--transition-normal);
}

.packages-btn:hover i:last-child {
    transform: translateY(2px);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.premium-card-preview {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: var(--border-radius-xl);
    padding: 32px;
    width: 400px;
    box-shadow: var(--shadow-glow);
}

.card-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-xl);
    z-index: -1;
    opacity: 0.3;
    filter: blur(8px);
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.premium-icon {
    color: var(--secondary-color);
    font-size: 24px;
}

.feature-list .feature-item {
    margin-bottom: 16px;
}

.feature-list .feature-item:last-child {
    margin-bottom: 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: var(--text-secondary);
}

.feature-item.active {
    color: var(--text-primary);
}

.feature-item i {
    color: var(--success-color);
    font-size: 16px;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

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

/* Features Section */
.features {
    padding: var(--section-padding) 0;
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
    border-color: var(--border-color-hover);
}

.feature-card.featured {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(175, 152, 217, 0.08) 100%);
    box-shadow: var(--shadow-glow);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient-primary);
    color: white;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-icon i {
    font-size: 24px;
    color: white;
}

.feature-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Light theme feature descriptions - better readability */
[data-theme="light"] .feature-description {
    color: var(--text-primary);
    opacity: 0.75;
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme]) .feature-description {
        color: var(--text-primary);
        opacity: 0.75;
    }
}

.feature-benefits {
    list-style: none;
}

.feature-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    color: var(--text-secondary);
}

.feature-benefits i {
    color: var(--success-color);
    font-size: 14px;
}

/* Pricing Section */
.pricing {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 64px;
}

.toggle-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.save-badge {
    background: var(--success-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 8px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.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(--gray-600);
    transition: var(--transition-fast);
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: var(--transition-fast);
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--primary-color);
}

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

.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 64px;
    flex-wrap: wrap;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 32px 28px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    max-width: 420px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    transform-origin: center;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
    border-color: var(--border-color-hover);
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.02);
    box-shadow: var(--shadow-glow-intense);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(175, 152, 217, 0.05) 100%);
}

.popular-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
}

.plan-header {
    margin-bottom: 28px;
}

.plan-name {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.plan-price {
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

/* Smooth price transitions */
.monthly-price, 
.annual-price,
.monthly-period,
.annual-period {
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.monthly-price.hidden,
.annual-price.hidden,
.monthly-period.hidden,
.annual-period.hidden {
    opacity: 0;
    pointer-events: none;
}

.currency {
    font-size: 24px;
    color: var(--text-secondary);
    transition: inherit;
}

.amount {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-primary);
}

.period {
    font-size: 18px;
    color: var(--text-secondary);
}

.plan-description {
    color: var(--text-secondary);
    line-height: 1.5;
}

.plan-features {
    list-style: none;
    text-align: left;
    margin-bottom: 28px;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.plan-features i {
    color: var(--success-color);
    font-size: 16px;
}

.plan-button {
    width: 100%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-md);
    margin-top: auto;
}

.plan-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
    background: linear-gradient(135deg, #c8b5e8 0%, #af98d9 50%, #9c88c4 100%);
}

.pricing-footer {
    text-align: center;
}

.pricing-note {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pricing-note i {
    color: var(--success-color);
}

/* Testimonials */
.testimonials {
    padding: var(--section-padding) 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.testimonial-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    transition: var(--transition-normal);
}

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

.testimonial-content {
    margin-bottom: 24px;
}

.testimonial-content p {
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.6;
    font-size: 16px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.author-title {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.author-stats {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 500;
}

/* FAQ Section */
.faq {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

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

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 24px;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    cursor: pointer;
    transition: var(--transition-fast);
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.faq-question i {
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: var(--transition-normal);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 24px;
}

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

/* CTA Section */
.cta {
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, #af98d9 0%, #8b5dba 50%, #7c6ba3 100%);
    position: relative;
    overflow: hidden;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .cta::before {
        animation: none !important;
    }
    
    .cta::after {
        animation: none !important;
    }
    
    .shape {
        animation: none !important;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        #af98d9 0%, 
        #9c88c4 25%, 
        #8b5dba 50%, 
        #7c6ba3 75%, 
        #af98d9 100%
    );
    opacity: 0.9;
    z-index: 1;
    animation: none !important; /* EMERGENCY: Disabled animation */
}

.cta::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 30%);
    animation: none !important; /* EMERGENCY: Disabled animation */
    z-index: 2;
    opacity: 0.3; /* Reduced opacity */
}

@keyframes floatCTA {
    0% { 
        transform: rotate(0deg) scale(1);
        opacity: 0.6;
    }
    16.66% { 
        transform: rotate(15deg) scale(1.01);
        opacity: 0.65;
    }
    33.33% { 
        transform: rotate(30deg) scale(1.02);
        opacity: 0.7;
    }
    50% { 
        transform: rotate(45deg) scale(1.025);
        opacity: 0.75;
    }
    66.66% { 
        transform: rotate(30deg) scale(1.02);
        opacity: 0.7;
    }
    83.33% { 
        transform: rotate(15deg) scale(1.01);
        opacity: 0.65;
    }
    100% { 
        transform: rotate(0deg) scale(1);
        opacity: 0.6;
    }
}

@keyframes gradientShiftOptimized {
    0% { 
        background: linear-gradient(45deg, 
            #af98d9 0%, 
            #9c88c4 25%, 
            #8b5dba 50%, 
            #7c6ba3 75%, 
            #af98d9 100%
        );
    }
    25% { 
        background: linear-gradient(45deg, 
            #c8b5e8 0%, 
            #af98d9 25%, 
            #9c88c4 50%, 
            #8b5dba 75%, 
            #c8b5e8 100%
        );
    }
    50% { 
        background: linear-gradient(45deg, 
            #8b5dba 0%, 
            #c8b5e8 25%, 
            #af98d9 50%, 
            #9c88c4 75%, 
            #8b5dba 100%
        );
    }
    75% { 
        background: linear-gradient(45deg, 
            #7c6ba3 0%, 
            #8b5dba 25%, 
            #c8b5e8 50%, 
            #af98d9 75%, 
            #7c6ba3 100%
        );
    }
    100% { 
        background: linear-gradient(45deg, 
            #af98d9 0%, 
            #9c88c4 25%, 
            #8b5dba 50%, 
            #7c6ba3 75%, 
            #af98d9 100%
        );
    }
}

.cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 64px;
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 60px 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.cta-title {
    font-size: 40px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.cta-actions {
    display: flex;
    gap: 16px;
}

.cta-button {
    padding: 16px 32px;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    border: none;
    position: relative;
    overflow: hidden;
}

.cta-button.primary {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #ffffff 100%);
    color: var(--primary-color);
    box-shadow: 
        0 8px 25px rgba(255, 255, 255, 0.4),
        0 4px 15px rgba(175, 152, 217, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button.secondary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    font-weight: 600;
}

.cta-button.primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 15px 35px rgba(255, 255, 255, 0.5),
        0 8px 25px rgba(175, 152, 217, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 50%, #ffffff 100%);
}

.cta-button.secondary:hover {
    transform: translateY(-5px) scale(1.05);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

/* Light theme CTA adjustments */
[data-theme="light"] .cta::before {
    background: linear-gradient(135deg, rgba(175, 152, 217, 0.95) 0%, rgba(156, 136, 196, 0.9) 25%, rgba(139, 93, 186, 0.95) 75%, rgba(124, 107, 163, 0.9) 100%);
}

[data-theme="light"] .cta-button.primary {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .cta-button.primary:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Footer */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 64px 0 32px;
}

/* Light theme footer adjustments */
[data-theme="light"] .footer {
    border-top: 1px solid rgba(175, 152, 217, 0.15);
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme]) .footer {
        border-top: 1px solid rgba(175, 152, 217, 0.15);
    }
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

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

.footer-logo {
    width: 32px;
    height: 32px;
}

.footer-brand h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
}

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

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

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

/* Scroll Links */
.scroll-link {
    position: relative;
}

.scroll-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.scroll-link:hover::after,
.scroll-link.active::after {
    width: 100%;
}

.scroll-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

/* Theme Toggle Button in footer */
.footer-bottom .theme-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-bottom .theme-toggle-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 8px 16px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.footer-bottom .theme-toggle-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.footer-bottom .theme-toggle-btn i {
    font-size: 16px;
}

.theme-toggle-btn .theme-text {
    min-width: 30px;
    text-align: left;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
}

/* Payment Modal */
.payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.payment-modal.hidden {
    display: none;
}

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

.modal-content {
    background: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 1;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition-fast);
}

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

.modal-body {
    padding: 24px;
}

.selected-plan {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 24px;
    text-align: center;
}

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

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

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 12px;
    color: var(--text-primary);
    font-size: 16px;
    transition: var(--transition-fast);
}

.form-group select {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 12px;
    color: var(--text-primary);
    font-size: 16px;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-group small {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 4px;
    display: block;
}

/* Custom Select Dropdown (Discord-like) */
.csel {
    position: relative;
    width: 100%;
}
.csel-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px;
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-fast);
}
.csel.active .csel-display,
.csel-display:hover {
    border-color: var(--primary-color);
}
.csel-display-inner {
    display: flex;
    align-items: center;
    gap: 8px;
}
.csel-display img, .csel-item-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}
.csel-dd {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
    display: none;
    box-shadow: var(--shadow-lg);
}
.csel.active .csel-dd {
    display: block;
}
.csel-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.15s;
    color: var(--text-primary);
}
.csel-item:hover {
    background: var(--bg-secondary);
}
.csel-item.disabled {
    color: var(--text-muted);
    cursor: not-allowed;
    background: transparent !important;
}
.csel-item-content {
    display: flex;
    flex-direction: column;
}
.csel-item-name {
    font-weight: 500;
    font-size: 14px;
}
.csel-item-desc {
    font-size: 12px;
    color: var(--text-muted);
}
/* Focus state for csel */
.csel.active .csel-display {
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.payment-methods {
    margin: 24px 0;
}

.payment-methods h4 {
    color: var(--text-primary);
    margin-bottom: 16px;
}

.payment-options {
    display: flex;
    gap: 12px;
}

.payment-option {
    flex: 1;
    cursor: pointer;
}

.payment-option input {
    display: none;
}

.option-content {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
}

.payment-option input:checked + .option-content {
    border-color: var(--primary-color);
    background: rgba(124, 58, 237, 0.1);
}

.payment-submit {
    width: 100%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 14px 20px;
    margin-top: 24px;
    margin-bottom: 8px;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
}

.payment-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.plan-button[disabled],
.payment-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* EMERGENCY MODE - Ultra performance optimization */
.emergency-mode * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    will-change: auto !important;
}

.emergency-mode .shape {
    display: none !important;
}

.emergency-mode .cta::before,
.emergency-mode .cta::after {
    display: none !important;
}

/* Performance optimizations */
.reduce-animations .shape {
    animation: none !important;
}

.reduce-animations .cta::before,
.reduce-animations .cta::after {
    animation: none !important;
}

.reduce-animations * {
    transition-duration: 0.1s !important;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

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

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        padding-top: 30px;
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .pricing-grid {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    
    .pricing-card {
        width: 100%;
        max-width: 450px;
    }
    
    .cta-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 48px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .packages-btn {
        padding: 14px 24px;
        font-size: 15px;
        gap: 10px;
    }
    
    .pricing-grid {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }
    
    .pricing-card {
        width: 100%;
        max-width: 400px;
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .premium-card-preview {
        width: 100%;
    }
    
    .pricing-grid {
        flex-direction: column;
        align-items: center;
        gap: 28px;
        padding: 0 16px;
    }
    
    .pricing-card {
        width: 100%;
        max-width: 350px;
        margin: 0;
    }
    
    .plan-header {
        margin-bottom: 20px;
    }
    
    .plan-name {
        font-size: 20px;
    }
    
    .amount {
        font-size: 36px;
    }
    
    .plan-features {
        margin-bottom: 20px;
    }
    
    /* Payment Modal Mobile Optimizations */
    .payment-modal {
        padding: 12px;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .modal-content {
        margin: 0;
        max-width: 100%;
        max-height: calc(100vh - 40px);
        border-radius: 16px;
    }
    
    .modal-header {
        padding: 16px;
        position: sticky;
        top: 0;
        background: var(--bg-primary);
        z-index: 10;
        border-radius: 16px 16px 0 0;
    }
    
    .modal-title {
        font-size: 18px;
    }
    
    .modal-body {
        padding: 16px;
        padding-top: 0;
    }
    
    .selected-plan {
        padding: 16px;
        margin-bottom: 20px;
    }
    
    .plan-info h4 {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .plan-price {
        font-size: 20px;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
    
    .form-group label {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .form-group input {
        padding: 14px 12px;
        font-size: 16px;
        border-radius: 8px;
    }
    
    .form-group small {
        font-size: 12px;
        margin-top: 4px;
    }
    
    .payment-methods {
        margin: 20px 0;
    }
    
    .payment-methods h4 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .option-content {
        padding: 12px 10px;
        font-size: 14px;
    }
    
    .payment-submit {
        padding: 16px;
        font-size: 16px;
        border-radius: 8px;
        margin-top: 8px;
    }
}

/* Extra Small Devices - Portrait phones */
@media (max-width: 480px) {
    .payment-modal {
        padding: 8px;
        padding-top: 10px;
    }
    
    .modal-content {
        max-height: calc(100vh - 20px);
        border-radius: 12px;
    }
    
    .modal-header {
        padding: 12px;
        border-radius: 12px 12px 0 0;
    }
    
    .modal-title {
        font-size: 16px;
    }
    
    .modal-close {
        font-size: 20px;
    }
    
    .modal-body {
        padding: 12px;
    }
    
    .selected-plan {
        padding: 12px;
        margin-bottom: 16px;
    }
    
    .plan-info h4 {
        font-size: 16px;
    }
    
    .plan-price {
        font-size: 18px;
    }
    
    .form-group {
        margin-bottom: 14px;
    }
    
    .form-group input {
        padding: 12px 10px;
        font-size: 16px;
    }
    
    .payment-methods h4 {
        font-size: 15px;
    }
    
    .option-content {
        padding: 10px 8px;
        font-size: 13px;
    }
    
    .payment-submit {
        padding: 14px;
        font-size: 15px;
    }
}

/* ============================================
   HEARTBEAT ANIMATION - Premium Buttons
   ============================================ */

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.05);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(1);
    }
}

@keyframes heartbeat-glow {
    0% {
        box-shadow: 0 0 20px rgba(175, 152, 217, 0.4),
                    0 0 40px rgba(175, 152, 217, 0.2);
    }
    14% {
        box-shadow: 0 0 30px rgba(175, 152, 217, 0.6),
                    0 0 60px rgba(175, 152, 217, 0.3);
    }
    28% {
        box-shadow: 0 0 20px rgba(175, 152, 217, 0.4),
                    0 0 40px rgba(175, 152, 217, 0.2);
    }
    42% {
        box-shadow: 0 0 30px rgba(175, 152, 217, 0.6),
                    0 0 60px rgba(175, 152, 217, 0.3);
    }
    70% {
        box-shadow: 0 0 20px rgba(175, 152, 217, 0.4),
                    0 0 40px rgba(175, 152, 217, 0.2);
    }
}

/* Heartbeat Animation for Premium Buttons */
.heartbeat {
    animation: heartbeat 2s ease-in-out infinite,
               heartbeat-glow 2s ease-in-out infinite;
    position: relative;
    will-change: transform, box-shadow;
}

/* Hover duraklatma */
.heartbeat:hover {
    animation-play-state: paused;
    transform: scale(1.08) !important;
    box-shadow: 0 0 40px rgba(175, 152, 217, 0.7),
                0 0 80px rgba(175, 152, 217, 0.4) !important;
}

/* Hero CTA Container - Yan yana butonlar */
.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 32px;
}

/* Paketleri İncele Butonu - Özel Stiller */
.packages-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--gradient-primary);
    color: white;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(175, 152, 217, 0.3);
}

.packages-btn i:first-child {
    font-size: 20px;
}

.packages-btn i:last-child {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.packages-btn:hover i:last-child {
    transform: translateY(5px);
}

/* Premium Paneli Butonu - Özel Stiller */
.premium-panel-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #a78bfa 0%, #93c5fd 50%, #a78bfa 100%);
    color: #1d1b35;
    font-size: 18px;
    font-weight: 700;
    border: 2px solid rgba(167, 139, 250, 0.3);
    border-radius: var(--border-radius);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(129, 140, 248, 0.32);
    position: relative;
    overflow: hidden;
}

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

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

.premium-panel-btn i:first-child {
    font-size: 20px;
}

.premium-panel-btn i:last-child {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.premium-panel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(129, 140, 248, 0.46);
    border-color: rgba(167, 139, 250, 0.52);
}

.premium-panel-btn:hover i:last-child {
    transform: translateX(5px);
}

/* Plan Button Stilleri - Link olarak güncellendi */
.plan-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 24px;
    background: var(--gradient-primary);
    color: white;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(175, 152, 217, 0.3);
}

.plan-button:hover {
    background: var(--gradient-secondary);
    box-shadow: 0 6px 20px rgba(175, 152, 217, 0.5);
}

/* Mobilde animasyon performansı */
@media (max-width: 768px) {
    .heartbeat {
        animation: heartbeat 3s ease-in-out infinite;
    }
    
    .heartbeat:hover {
        transform: scale(1.05) !important;
    }
    
    /* Hero CTA mobil düzeni */
    .hero-cta {
        flex-direction: column;
        gap: 12px;
    }
    
    .packages-btn,
    .premium-panel-btn {
        width: 100%;
        justify-content: center;
        font-size: 16px;
        padding: 14px 24px;
    }
}

/* Reduce Motion için erişilebilirlik */
@media (prefers-reduced-motion: reduce) {
    .heartbeat {
        animation: none !important;
    }
    
    .heartbeat:hover {
        transform: scale(1.05);
    }
}

/* --- Scroll Reveal Animations (index.ejs style) --- */
.reveal-up {
    opacity: 0;
    transform: translateY(24px);
    transition: transform 0.7s cubic-bezier(0.2, 0.9, 0.2, 1), opacity 0.7s ease;
    transition-delay: var(--delay, 0ms);
    will-change: transform, opacity;
}

.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Reduce animations mode - instant reveal */
body.reduce-animations .reveal-up {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: none !important;
}

/* --- Android & Performance Optimizations --- */
body.reduce-animations .floating-shapes .shape:nth-child(even) {
    display: none !important; /* Hide half the shapes */
}

body.reduce-animations .floating-shapes .shape {
    /* Simplify animation: remove rotation/scaling */
    animation-name: floatSimple !important; 
    animation-duration: 20s !important;
    width: 150px !important; /* Cap size */
    height: 150px !important;
    backdrop-filter: none !important; /* Huge performance gain */
    box-shadow: none !important;
    filter: none !important;
}

body.reduce-animations * {
    backdrop-filter: none !important; /* globally disable backdrop-filter */
}

/* Provide fallbacks for elements that relied on backdrop-filter */
body.reduce-animations .glass-panel,
body.reduce-animations .navbar,
body.reduce-animations .feature-card,
body.reduce-animations .hero-badge {
    background-color: var(--bg-card, #1c2128); /* Fallback to solid color */
    opacity: 0.98;
}

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