/* Smooth Theme Transitions - Only apply to specific properties */
:root {
    --theme-transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;

    /* Tilt Effect Variables (for mobile device orientation) */
    --tilt-x: 0;
    --tilt-y: 0;
}

/* Disable ALL transitions during theme change to prevent flash */
/* BUT exclude the theme toggle button so it animates smoothly */
body.theme-transitioning,
body.theme-transitioning *:not(.theme-toggle):not(.theme-toggle *):not(.toggle-button):not(.crater):not(.star),
body.theme-transitioning *:not(.theme-toggle):not(.theme-toggle *):not(.toggle-button):not(.crater):not(.star)::before,
body.theme-transitioning *:not(.theme-toggle):not(.theme-toggle *):not(.toggle-button):not(.crater):not(.star)::after {
    transition: none !important;
    animation: none !important;
}

/* CSS Variables - Default Dark Theme */
:root,
html[data-theme="dark"],
body[data-theme="dark"] {
    /* Base Colors */
    --bg-color: #000011;
    --primary-color: #0ea5e9;
    --secondary-color: #3b82f6;
    --text-color: #fff;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --accent-color: #0ea5e9;

    /* Panel & Background Variables */
    --panel-bg: rgba(14, 165, 233, 0.1);
    --panel-border: rgba(14, 165, 233, 0.5);
    --accent-bg: rgba(14, 165, 233, 0.05);
    --accent-border: rgba(14, 165, 233, 0.2);
    --accent-bg-hover: rgba(14, 165, 233, 0.2);
    --panel-bg-active: rgba(14, 165, 233, 0.3);

    /* Frequently Used White/Transparent Colors */
    --white-010: rgba(255, 255, 255, 0.1);
    --white-015: rgba(255, 255, 255, 0.15);
    --white-020: rgba(255, 255, 255, 0.2);
    --white-025: rgba(255, 255, 255, 0.25);
    --white-030: rgba(255, 255, 255, 0.3);
    --white-040: rgba(255, 255, 255, 0.4);
    --white-050: rgba(255, 255, 255, 0.5);

    /* Primary Color Variations */
    --primary-005: rgba(14, 165, 233, 0.05);
    --primary-010: rgba(14, 165, 233, 0.1);
    --primary-015: rgba(14, 165, 233, 0.15);
    --primary-020: rgba(14, 165, 233, 0.2);
    --primary-030: rgba(14, 165, 233, 0.3);
    --primary-040: rgba(14, 165, 233, 0.4);
    --primary-050: rgba(14, 165, 233, 0.5);

    /* Blur Values */
    --blur-sm: blur(8px);
    --blur-md: var(--backdrop-blur-sm);
    --blur-lg: blur(15px);
    --blur-xl: blur(20px);
    --blur-2xl: blur(25px);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 50%;

    /* Glassmorphism Patterns */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: var(--white-015);
    --glass-backdrop: var(--backdrop-blur-lg);
    --glass-shadow: 0 1px 4px 0 rgb(14 165 233 / 6%), 0 1px 10px 0 rgba(0, 0, 0, 0.1), inset 0 1px 0 var(--white-015);

    /* Common Backdrop Filter Patterns */
    --backdrop-blur-sm: blur(10px);
    --backdrop-blur-md: blur(15px) saturate(180%);
    --backdrop-blur-lg: blur(20px) saturate(180%);
    --backdrop-blur-xl: blur(20px) saturate(200%);
    --backdrop-blur-2xl: blur(25px) saturate(180%);

    /* Animation Durations */
    --duration-fast: 0.2s;
    --duration-normal: 0.3s;
    --duration-slow: 0.5s;

    /* Z-index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1040;
    --z-tooltip: 1050;

    /* 3D Settings */
    --fog-color: 0x001122;
    --ambient-intensity: 2;
    --star-opacity: 0.8;
}

/* Loading Screen Styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000011 0%, #001122 50%, #000033 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 11000;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.loading-content {
    text-align: center;
    z-index: 11001;
    position: relative;
}

.loading-solar-system {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
}

.loading-sun {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, #ffeb3b 0%, #ff9800 50%, #ff5722 100%);
    box-shadow: 0 0 30px #ff9800, 0 0 60px #ff5722;
    animation: sunPulse 3s ease-in-out infinite;
}

.sun-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #ffeb3b;
    animation: sunCore 2s linear infinite;
}

.sun-corona {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, transparent 40%, rgba(255, 152, 0, 0.3) 60%, transparent 80%);
    animation: sunCorona 4s linear infinite;
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid var(--white-030);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.orbit-1 {
    width: 80px;
    height: 80px;
}

.orbit-2 {
    width: 120px;
    height: 120px;
}

.orbit-3 {
    width: 160px;
    height: 160px;
}

.orbit-4 {
    width: 200px;
    height: 200px;
}

.planet {
    position: absolute;
    border-radius: 50%;
    top: -3px;
    left: calc(50% - 3px);
}

.planet-1 {
    width: 6px;
    height: 6px;
    background: #8bc34a;
    animation: orbit1 3s linear infinite;
    transform-origin: 3px 43px;
}

.planet-2 {
    width: 8px;
    height: 8px;
    background: #03a9f4;
    animation: orbit2 5s linear infinite;
    transform-origin: 4px 64px;
}

.planet-3 {
    width: 10px;
    height: 10px;
    background: #ff5722;
    animation: orbit3 7s linear infinite;
    transform-origin: 5px 85px;
}

.planet-4 {
    width: 12px;
    height: 12px;
    background: #9c27b0;
    animation: orbit4 9s linear infinite;
    transform-origin: 6px 106px;
}

.asteroid-belt {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 180px;
    height: 180px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.asteroid {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #666;
    border-radius: 50%;
    opacity: 0.6;
}

.asteroid:nth-child(1) {
    top: 10px;
    left: 50%;
    animation: asteroidOrbit 8s linear infinite;
    transform-origin: 0 80px;
}

.asteroid:nth-child(2) {
    top: 50%;
    right: 10px;
    animation: asteroidOrbit 8s linear infinite 2s;
    transform-origin: -80px 0;
}

.asteroid:nth-child(3) {
    bottom: 10px;
    left: 50%;
    animation: asteroidOrbit 8s linear infinite 4s;
    transform-origin: 0 -80px;
}

.asteroid:nth-child(4) {
    top: 50%;
    left: 10px;
    animation: asteroidOrbit 8s linear infinite 6s;
    transform-origin: 80px 0;
}

.asteroid:nth-child(5) {
    top: 25%;
    right: 25%;
    animation: asteroidOrbit 8s linear infinite 1s;
    transform-origin: -60px 60px;
}

.loading-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #0ea5e9, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.title-word {
    display: inline-block;
    animation: titleGlow 2s ease-in-out infinite;
}

.title-word:nth-child(1) {
    animation-delay: 0s;
}

.title-word:nth-child(2) {
    animation-delay: 0.5s;
}

.title-word:nth-child(3) {
    animation-delay: 1s;
}

.loading-bar-container {
    width: 300px;
    margin: 0 auto 20px;
    position: relative;
}

.loading-bar {
    width: 100%;
    height: 4px;
    background: var(--white-010);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #0ea5e9, #3b82f6, #8b5cf6);
    border-radius: 2px;
    width: 0%;
    transition: none;
    /* Remove CSS transition to let JS handle it */
    position: relative;
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
    will-change: width;
    /* Optimize for width changes */
}

.progress-glow {
    position: absolute;
    top: -2px;
    right: -10px;
    width: 20px;
    height: 8px;
    background: radial-gradient(ellipse, rgba(14, 165, 233, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    animation: progressGlow 1.5s ease-in-out infinite;
}

.loading-percentage {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    margin-top: 10px;
}

.loading-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    animation: textPulse 2s ease-in-out infinite;
}

.skip-loading-btn {
    background: var(--accent-bg-hover);
    border: 1px solid rgba(14, 165, 233, 0.5);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    -webkit-backdrop-filter: var(--backdrop-blur-sm);
    backdrop-filter: var(--backdrop-blur-sm);
}

.skip-loading-btn:hover {
    background: var(--panel-bg-active);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.loading-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 3s ease-in-out infinite;
    box-shadow: 0 0 4px #0ea5e9;
    will-change: transform, opacity;
    /* Optimize for animations */
}

/* Better distributed particles across the screen including top area */
.particle:nth-child(1) {
    left: 10%;
    top: 5%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    left: 90%;
    top: 3%;
    animation-delay: 1s;
}

.particle:nth-child(3) {
    left: 30%;
    top: 8%;
    animation-delay: 2s;
}

.particle:nth-child(4) {
    left: 70%;
    top: 2%;
    animation-delay: 3s;
}

.particle:nth-child(5) {
    left: 50%;
    top: 6%;
    animation-delay: 0.5s;
}

.particle:nth-child(6) {
    left: 20%;
    top: 4%;
    animation-delay: 1.5s;
}

.particle:nth-child(7) {
    left: 80%;
    top: 7%;
    animation-delay: 2.5s;
}

.particle:nth-child(8) {
    left: 60%;
    top: 3%;
    animation-delay: 3.5s;
}

.particle:nth-child(9) {
    left: 15%;
    top: 1%;
    animation-delay: 0.8s;
}

.particle:nth-child(10) {
    left: 85%;
    top: 5%;
    animation-delay: 1.8s;
}

.particle:nth-child(11) {
    left: 40%;
    top: 2%;
    animation-delay: 2.8s;
}

.particle:nth-child(12) {
    left: 75%;
    top: 4%;
    animation-delay: 0.3s;
}

/* Loading Animations */
@keyframes sunPulse {

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

    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes sunCore {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes sunCorona {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
        opacity: 0.3;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
        opacity: 0.3;
    }
}

@keyframes orbit1 {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes orbit2 {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes orbit3 {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes orbit4 {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes asteroidOrbit {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes titleGlow {

    0%,
    100% {
        opacity: 0.9;
    }

    50% {
        opacity: 1;
    }
}

@keyframes progressGlow {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes textPulse {

    0%,
    100% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(100px) scale(0);
        filter: brightness(0.5);
    }

    10% {
        opacity: 0.6;
        transform: translateY(90px) scale(0.8);
        filter: brightness(0.8);
    }

    25% {
        opacity: 1;
        transform: translateY(70px) scale(1.2);
        filter: brightness(1.2);
    }

    50% {
        opacity: 1;
        transform: translateY(0px) scale(1);
        filter: brightness(1);
    }

    75% {
        opacity: 1;
        transform: translateY(-70px) scale(1.2);
        filter: brightness(1.2);
    }

    90% {
        opacity: 0.6;
        transform: translateY(-90px) scale(0.8);
        filter: brightness(0.8);
    }

    100% {
        opacity: 0;
        transform: translateY(-100px) scale(0);
        filter: brightness(0.5);
    }
}

/* Rocket Float Animation */
@keyframes rocketFloat {
    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateY(-8px) rotate(2deg);
    }

    50% {
        transform: translateY(-4px) rotate(0deg);
    }

    75% {
        transform: translateY(-8px) rotate(-2deg);
    }
}

/* Light Theme Variables */
html[data-theme=light],
body[data-theme=light],
[data-theme=light] {
    /* Base Colors */
    --bg-color: rgba(255, 255, 255, .25);
    --primary-color: #475569;
    --secondary-color: #64748b;
    --text-color: #0f172a;
    --text-primary: #1f2937;
    --text-secondary: var(--slate-080);
    --accent-color: #475569;

    /* Panel & Background Variables */
    --panel-bg: var(--white-025);
    --panel-border: rgba(255, 255, 255, 0.18);
    --accent-bg: var(--white-025);
    --accent-border: rgba(255, 255, 255, 0.18);
    --accent-bg-hover: var(--white-040);
    --panel-bg-active: var(--white-050);

    /* Light Theme Specific Variables */
    --slate-010: rgba(71, 85, 105, 0.1);
    --slate-015: rgba(71, 85, 105, 0.15);
    --slate-020: rgba(71, 85, 105, 0.2);
    --slate-025: rgba(71, 85, 105, 0.25);
    --slate-030: rgba(71, 85, 105, 0.3);
    --slate-040: rgba(71, 85, 105, 0.4);
    --slate-050: rgba(71, 85, 105, 0.5);
    --slate-060: rgba(71, 85, 105, 0.6);
    --slate-080: rgba(71, 85, 105, 0.8);
    --slate-095: rgba(71, 85, 105, 0.95);
    --slate-100: rgba(71, 85, 105, 1);

    /* Glassmorphism for Light Theme */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(71, 85, 105, 0.2);
    --glass-backdrop: var(--backdrop-blur-lg);
    --glass-shadow: 0 25px 80px 0 rgba(71, 85, 105, 0.15), 0 8px 32px 0 rgba(0, 0, 0, 0.08), inset 0 1px 0 var(--white-030);

    /* 3D Settings */
    --fog-color: 0xffffff;
    --ambient-intensity: 4;
    --star-opacity: 0.3;
}

/* Light Theme Loading Screen */
[data-theme=light] .loading-screen {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
}

[data-theme=light] .loading-sun {
    background: radial-gradient(circle, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.6), 0 0 60px rgba(217, 119, 6, 0.4);
}

[data-theme=light] .sun-core {
    background: #fbbf24;
}

[data-theme=light] .sun-corona {
    background: radial-gradient(circle, transparent 40%, rgba(251, 191, 36, 0.2) 60%, transparent 80%);
}

[data-theme=light] .planet-1 {
    background: #10b981;
}

[data-theme=light] .planet-2 {
    background: #6366f1;
}

[data-theme=light] .planet-3 {
    background: #ef4444;
}

[data-theme=light] .planet-4 {
    background: #8b5cf6;
}

[data-theme=light] .loading-text {
    color: #475569;
}

[data-theme=light] .skip-loading-btn {
    background: rgba(71, 85, 105, 0.1);
    border: 1px solid rgba(71, 85, 105, 0.3);
    color: #475569;
}

[data-theme=light] .skip-loading-btn:hover {
    background: rgba(71, 85, 105, 0.2);
    border-color: #475569;
    color: #1e293b;
}

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

html {
    overflow-x: hidden !important;
    overflow-y: scroll !important;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: var(--bg-color);
    cursor: grab;
    transition: all 0.5s ease;
    min-height: 100vh !important;
    overflow: visible !important;
    position: static !important;
    top: auto !important;
}

/* Apply flex layout and hide overflow only on homepage */
body.solar-system.homepage {
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
}

/* Heading fonts using Roboto */
/* ========================================
   CONSISTENT HEADING SYSTEM
   ======================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(45deg, #14b8a6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
    margin: 0;
}

/* H1 - Main Page Titles */
h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

/* H2 - Section Headers */
h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* H3 - Subsection Headers / Card Titles */
h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* H4 - Small Section Headers */
h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* H5 - Smaller Headers */
h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* H6 - Smallest Headers */
h6 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Responsive heading sizes for mobile */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    h4 {
        font-size: 1.1rem;
    }

    h5 {
        font-size: 1rem;
    }

    h6 {
        font-size: 0.95rem;
    }
}

/* Special heading modifier classes */
.heading-center {
    text-align: center;
}

/* Navigation and button text using Roboto for consistency */
.nav-link,
.control-btn,
.nav-btn,
.platform-button {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

[data-theme=light] body {
    background: linear-gradient(180deg,
        rgba(248, 250, 252, 1) 0%,
        rgba(255, 255, 255, 1) 10%,
        rgba(255, 255, 255, 1) 90%,
        rgba(248, 250, 252, 1) 100%
    );
    min-height: 100vh;
}

body:active {
    cursor: grabbing;
}

#container {
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
    pointer-events: auto;
}

/* Ensure container doesn't block navigation on mobile */
@media screen and (max-width: 768px) {
    #container {
        pointer-events: none;
    }

    #container canvas {
        pointer-events: auto;
    }
}

/* UI Overlay */
.ui-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

/* Title Styles */
.title {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    opacity: 0.9;
    pointer-events: auto;
    animation: titleGlow 3s ease-in-out infinite alternate;
}


/* Planet Info Panel */
.planet-info-panel {
    position: absolute;
    top: 50%;
    right: -400px;
    transform: translateY(-50%);
    width: 380px;
    background: var(--panel-bg);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    padding: 25px;
    color: var(--text-color);
    transition: right 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.1);
    z-index: 1100;
    /* Disable dragging/swiping on mobile */
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none; user-drag: none; /* WebKit only - no Firefox equivalent, handled via draggable="false" in HTML */
    -webkit-touch-callout: none;
}

.planet-info-panel.active {
    right: 30px;
    z-index: 9999;
}

/* Dark theme planet info panel (default) */
[data-theme=dark] .planet-info-panel {
    background: rgba(14, 165, 233, 0.1) !important;
    -webkit-backdrop-filter: var(--backdrop-blur-2xl);
    backdrop-filter: var(--backdrop-blur-2xl);
    border: 1px solid rgba(14, 165, 233, 0.5);
    box-shadow: 0 1px 4px 0 rgb(14 165 233 / 6%), 0 1px 10px 0 rgba(0, 0, 0, 0.1), inset 0 1px 0 var(--white-015);
    border-radius: 20px;
}

/* Ensure dark theme applies even without data-theme attribute initially */
body:not([data-theme="light"]) .planet-info-panel {
    background: rgba(14, 165, 233, 0.1) !important;
    -webkit-backdrop-filter: var(--backdrop-blur-2xl);
    backdrop-filter: var(--backdrop-blur-2xl);
    border: 1px solid rgba(14, 165, 233, 0.5);
}

/* Light mode planet info panel */
[data-theme=light] .planet-info-panel {
    background: var(--white-025);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    border-radius: 20px;
}

[data-theme=light] .planet-info-panel .planet-details h2 {
    color: #1e293b;
}

[data-theme=light] .planet-info-panel .planet-type {
    color: #475569;
}

[data-theme=light] .planet-info-panel .stat-value {
    color: #334155;
    font-weight: 600;
}

[data-theme=light] .planet-info-panel .stat-label {
    color: #475569;
}

[data-theme=light] .planet-info-panel .planet-description {
    color: #475569;
}

[data-theme=light] .planet-info-panel .feature-list li {
    color: #64748b;
}

[data-theme=light] .planet-info-panel .feature-list li:before {
    color: #334155;
}

[data-theme=light] .stat-item {
    background: var(--white-040);
    border: 1px solid var(--white-020);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

/* Control Panel Dark Mode (default) */
[data-theme=dark] .control-panel {
    background: var(--panel-bg);
    -webkit-backdrop-filter: var(--backdrop-blur-2xl);
    backdrop-filter: var(--backdrop-blur-2xl);
    border: 1px solid var(--panel-border);
    box-shadow: 0 1px 4px 0 rgb(14 165 233 / 6%), 0 1px 10px 0 rgba(0, 0, 0, 0.1), inset 0 1px 0 var(--white-015);
}

/* Control Panel Light Mode */
[data-theme=light] .control-panel {
    background: rgba(255, 255, 255, .25);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, .37), 0 0 0 1px rgba(255, 255, 255, .05) inset;
}

[data-theme=light] .control-btn {
    background: var(--white-030);
    border: 1px solid var(--white-020);
    color: #334155;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

[data-theme=light] .speed-control {
    color: #334155;
}

[data-theme=light] .mini-map {
    background: var(--white-025);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

[data-theme=light] .mini-map::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white-010);
    border-radius: 15px;
    pointer-events: none;
}

/* Planet Header */
.planet-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(14, 165, 233, 0.3);
}

.planet-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.planet-icon i {
    color: var(--text-color);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: color 0.3s ease;
}

[data-theme=light] .planet-icon {
    background: var(--white-040) !important;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid var(--white-030);
    box-shadow: 0 4px 12px 0 rgba(31, 38, 135, 0.15);
}

[data-theme=light] .planet-icon i {
    color: var(--primary-color);
    filter: drop-shadow(0 2px 4px rgba(71, 85, 105, 0.2));
}

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

    to {
        transform: rotate(360deg);
    }
}

/* Planet Details */
.planet-details h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.planet-type {
    color: #aaa;
    font-size: 0.9rem;
}

.planet-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}

.stat-item {
    background: var(--accent-bg);
    padding: 10px;
    border-radius: 10px;
    border: 1px solid var(--accent-border);
}

.stat-label {
    font-size: 0.8rem;
    color: #b3b3b3;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: bold;
}

.planet-description {
    line-height: 1.6;
    margin: 15px 0;
    padding-top: 8px;
    color: #e5e7eb;
    font-size: 0.9rem;
}

.feature-list {
    list-style: none !important;
    margin: 15px 0;
    padding-left: 0 !important;
}

.feature-list li {
    padding: 5px 0;
    color: #e5e7eb;
    position: relative;
    padding-left: 25px;
    line-height: 1.6;
    font-size: 0.9rem;
    list-style: none !important;
}

.feature-list li::marker {
    display: none !important;
    content: none !important;
}

.feature-list li::before {
    content: '✦' !important;
    color: var(--primary-color) !important;
    position: absolute !important;
    left: 0 !important;
    top: 9px !important;
    width: 16px;
    height: 16px;
    display: block !important;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
    text-align: center;
}

.close-panel {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    left: auto !important;
    /* Override any left positioning */
    background: var(--white-010);
    border: none;
    color: var(--text-color);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    font-size: 10px;
}

.close-panel:hover {
    background: rgba(255, 0, 0, 0.3);
    transform: scale(1.1);
}

/* Round button base styles - matching close button appearance */
.round-btn {
    background: var(--white-015);
    border: 1px solid var(--white-030);
    color: var(--text-color);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 10px;
    -webkit-backdrop-filter: var(--backdrop-blur-sm);
    backdrop-filter: var(--backdrop-blur-sm);
    position: relative;
    z-index: 10001;
    /* Improve tap area */
    min-width: 36px;
    min-height: 36px;
}

.round-btn:hover {
    background: rgba(14, 165, 233, 0.4);
    border-color: rgba(14, 165, 233, 0.6);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.round-btn:active {
    transform: scale(0.95);
    background: rgba(14, 165, 233, 0.5);
    border-color: rgba(14, 165, 233, 0.8);
}

/* Additional touch feedback for mobile */
@media (hover: none) and (pointer: coarse) {
    .round-btn:active {
        background: rgba(14, 165, 233, 0.6);
        transform: scale(0.9);
        transition: all 0.1s ease;
    }
}

/* Close button specific hover styles */
.close-panel.round-btn:hover {
    background: rgba(255, 0, 0, 0.3);
    border-color: rgba(255, 0, 0, 0.5);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

/* Round navigation buttons container */
.round-navigation-buttons {
    position: absolute !important;
    bottom: 20px !important;
    right: 50px !important;
    display: flex;
    gap: 10px;
    z-index: 10001;
    pointer-events: none;
    /* Allow container to pass through events */
}

/* Navigation round buttons */
.nav-round-btn {
    position: relative;
    pointer-events: auto;
    /* But enable events on the buttons themselves */
    touch-action: manipulation;
    /* Prevent text selection and double-tap zoom on mobile */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Mobile responsive adjustments */
@media screen and (max-width: 768px) {
    .round-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
        min-width: 40px;
        min-height: 40px;
        /* Better mobile tap target */
        -webkit-tap-highlight-color: rgba(14, 165, 233, 0.3);
        tap-highlight-color: rgba(14, 165, 233, 0.3);
    }

    .close-panel {
        width: 28px !important;
        height: 28px !important;
        font-size: 12px !important;
    }

    .round-navigation-buttons {
        bottom: 15px;
        right: 40px;
        gap: 8px;
    }

    /* Ensure buttons are above other elements */
    .nav-round-btn {
        z-index: 1001;
    }
}

/* Control Panel */
.control-panel {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: var(--panel-bg);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border: 1px solid var(--panel-border);
    border-radius: 25px;
    padding: 15px 25px;
    display: flex;
    gap: 20px;
    align-items: center;
    pointer-events: auto;
    flex-wrap: wrap;
    z-index: 1000;
}

.control-btn {
    background: var(--accent-bg);
    border: 1px solid var(--accent-border);
    color: var(--text-color);
    padding: 10px 15px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.control-btn:hover {
    background: var(--panel-bg);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.2);
}

.control-btn.active {
    background: linear-gradient(135deg, #0ea5e9 0%, #0064ff 100%);
    color: #000;
    font-weight: bold;
}

/* Mini Map */
.mini-map {
    position: absolute;
    top: 100px;
    left: 30px;
    width: 200px;
    height: 200px;
    background: var(--panel-bg);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--panel-border);
    border-radius: 15px;
    pointer-events: auto;
    overflow: hidden;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.mini-map canvas {
    width: 100%;
    height: 100%;
}

/* Top Right Controls */
.top-right-controls {
    position: absolute;
    top: 30px;
    right: 30px;
    pointer-events: auto;
    z-index: 1000;
}

.speed-btn {
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid var(--panel-border);
    color: var(--text-color);
    padding: 10px 15px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.speed-btn:hover {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.4) 0%, rgba(0, 100, 255, 0.4) 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.2);
}

/* Navigation Styles - Enhanced Glassmorphism */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    height: 70px;
    pointer-events: auto;
    opacity: 1;
}

/* Dark theme navbar (default) */
[data-theme=dark] .navbar {
    background: rgba(10, 20, 40, 0.75);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--panel-border);
    box-shadow: 0 8px 32px 0 rgba(14, 165, 233, 0.1),
                0 2px 8px 0 rgba(0, 0, 0, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.navbar.show {
    opacity: 1;
}

/* Light theme navbar - Enhanced Glassmorphism */
[data-theme=light] .navbar {
    background-color: rgba(248, 250, 252, 0.75) !important;
    backdrop-filter: blur(20px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(200%) !important;
    border-bottom: 1px solid rgba(209, 213, 219, 0.3) !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.12),
                0 2px 8px 0 rgba(0, 0, 0, 0.06) !important;
}

/* Navigation Placeholder - Reserve space to prevent layout shift */
#navigation-placeholder {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    z-index: 1000;
    background: rgba(10, 20, 40, 0.75);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--panel-border);
}

[data-theme=light] #navigation-placeholder {
    background: rgba(248, 250, 252, 0.75);
}

#navigation-placeholder:empty::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: inherit;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    pointer-events: auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    z-index: 1002;
}

.nav-logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.logo-link:hover .nav-logo-image {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Header Logo Specific Styles */
.nav-logo .orbital-logo {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    animation: none;
}

.nav-logo .logo-center {
    background: transparent;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    z-index: 2;
    overflow: visible;
}

.nav-logo .logo-center .nav-logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav-orbit {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(14, 165, 233, 0.3);
    border-radius: 50%;
    animation: navOrbitRotate 8s linear infinite;
}

.nav-planet {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.6);
}

@keyframes navOrbitRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.logo-link {
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-link:hover .nav-logo {
    opacity: 0.8;
}

.logo-icon {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-rings {
    position: relative;
    width: 45px;
    height: 45px;
}

.ring {
    position: absolute;
    border: 2px solid;
    border-radius: 50%;
    opacity: 0.6;
    animation: orbitSpin 20s linear infinite;
}

.ring-1 {
    width: 100%;
    height: 100%;
    border-color: var(--primary-color);
    animation-duration: 15s;
}

.ring-2 {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-color: #3b82f6;
    animation-duration: 12s;
    animation-direction: reverse;
}

.ring-3 {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-color: #8b5cf6;
    animation-duration: 8s;
}

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

    to {
        transform: rotate(360deg);
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
    align-items: center;
    pointer-events: auto;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    opacity: 0.8;
    pointer-events: auto;
    cursor: pointer;
}

.nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
    opacity: 1;
}

.nav-link.active {
    color: var(--primary-color);
    opacity: 1;
}

[data-theme=light] .nav-link {
    color: #1f2937 !important;
    opacity: 0.9;
}

[data-theme=light] .nav-link:hover {
    color: var(--primary-color);
}

[data-theme=light] .nav-link.active {
    color: var(--primary-color);
}

/* Special AI Features Nav Link */
.nav-link-special {
    color: #3b82f6 !important;
    font-weight: 600 !important;
}

.nav-link-special:hover {
    color: #60a5fa !important;
    transform: translateY(-2px);
}

.nav-link-special.active {
    color: #60a5fa !important;
}

/* Light theme special nav link */
[data-theme=light] .nav-link-special {
    color: #0891b2 !important;
}

[data-theme=light] .nav-link-special:hover {
    color: #06b6d4 !important;
}

[data-theme=light] .nav-link-special.active {
    color: #06b6d4 !important;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Language Selector Styles */
.language-selector {
    position: relative;
    display: flex;
    align-items: center;
    width: 100% !important;
}

.language-toggle {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: auto;
    font-size: 14px;
}

.language-toggle:hover {
    background: var(--accent-bg-hover);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.language-toggle .current-lang {
    font-weight: 600;
    font-size: 12px;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    min-width: 180px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

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

.language-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
}

.language-option:hover {
    background: var(--accent-bg-hover);
    color: var(--primary-color);
}

.language-option.active {
    background: var(--accent-bg-hover);
    color: var(--primary-color);
    font-weight: 600;
}

.language-option .flag {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Light theme language selector */
[data-theme="light"] .language-toggle {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--slate-040);
    color: var(--slate-095);
}

[data-theme="light"] .language-toggle:hover {
    background: rgba(71, 85, 105, 0.1);
    border-color: var(--slate-060);
    color: var(--slate-095);
}

[data-theme="light"] .language-dropdown {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--slate-040);
    box-shadow: 0 8px 32px rgba(71, 85, 105, 0.2);
}

[data-theme="light"] .language-option {
    color: var(--slate-095);
}

[data-theme="light"] .language-option:hover {
    background: rgba(71, 85, 105, 0.1);
    color: var(--slate-095);
}

[data-theme="light"] .language-option.active {
    background: rgba(71, 85, 105, 0.15);
    color: var(--slate-095);
}

/* Google Translate Widget Styling */
#google_translate_element {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--panel-bg);
    padding: 10px;
    border-radius: var(--radius-md);
    border: 1px solid var(--panel-border);
    -webkit-backdrop-filter: var(--blur-lg);
    backdrop-filter: var(--blur-lg);
}

/* Hide Google Translate top banner */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

/* Style the dropdown */
.goog-te-combo {
    background: var(--panel-bg) !important;
    color: var(--text-color) !important;
    border: 1px solid var(--panel-border) !important;
    border-radius: var(--radius-sm) !important;
    padding: 5px !important;
    width: 100% !important;
    height: 100% !important;
}

/* Translation Loading Indicator */
#translation-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.translation-loading-content {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    color: var(--text-color);
    font-size: 16px;
    font-weight: 500;
}

.translation-loading-content i {
    color: var(--primary-color);
    font-size: 20px;
    animation: pulse 1.5s ease-in-out infinite;
}

[data-theme="light"] .translation-loading-content {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--slate-040);
    color: var(--slate-095);
}

/* Mobile responsive adjustments for language selector */
@media (max-width: 768px) {
    .language-dropdown {
        right: -10px;
        min-width: 160px;
    }

    .language-option {
        padding: 10px 14px;
        font-size: 13px;
    }

    .language-toggle {
        padding: 6px 10px;
        font-size: 13px;
    }

    .translation-loading-content {
        padding: 20px 24px;
        font-size: 14px;
    }
}

.theme-switcher {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.theme-switcher:hover {
    background: var(--accent-bg-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.theme-switcher:active {
    transform: translateY(0);
}

[data-theme=light] .theme-switcher {
    background: var(--white-030);
    border: 1px solid var(--white-020);
    color: var(--text-color);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(71, 85, 105, 0.15),
        inset 0 1px 0 var(--white-020);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    gap: 5px;
    pointer-events: auto;
    padding: 8px;
    min-width: 40px;
    min-height: 40px;
}

.nav-toggle span {
    width: 24px;
    height: 2.5px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5);
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

.scroll-to-top i {
    color: white;
    font-size: 18px;
}

/* Light theme adjustments */
[data-theme=light] .scroll-to-top {
    background: var(--primary-color);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

[data-theme=light] .scroll-to-top:hover {
    background: var(--secondary-color);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

/* Mobile responsive */
@media screen and (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .scroll-to-top i {
        font-size: 16px;
    }
}

/* Mobile Navigation */
@media screen and (max-width: 768px) {
    /* Feature list padding fix for mobile */
    .feature-list li {
        padding-left: 20px !important;
    }

    /* Force solid backgrounds on mobile nav-menu in all states */
    [data-theme=dark] .nav-menu,
    [data-theme=dark] .nav-menu.active,
    [data-theme=dark] .nav-menu.closing {
        background: #000000 !important;
    }

    [data-theme=light] .nav-menu,
    [data-theme=light] .nav-menu.active,
    [data-theme=light] .nav-menu.closing {
        background: rgb(255, 255, 255) !important;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 2rem 0;
        transform: translate3d(0, -100%, 0);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
            visibility 0s linear 0.3s;
        opacity: 1;
        visibility: hidden;
        z-index: 9999;
        will-change: transform;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-perspective: 1500px;
        perspective: 1500px;
        transform-style: preserve-3d;
        overflow: hidden;
    }

    /* Decorative curved background elements - 4 circles at corners */
    /* Enhanced twinkling stars animations */
    @keyframes twinkle {
        0% { opacity: 1; }
        20% { opacity: 0.8; }
        40% { opacity: 0.3; }
        60% { opacity: 0.5; }
        80% { opacity: 0.9; }
        100% { opacity: 1; }
    }

    @keyframes twinkle-alt {
        0% { opacity: 0.6; }
        15% { opacity: 1; }
        35% { opacity: 0.4; }
        55% { opacity: 0.8; }
        75% { opacity: 0.5; }
        90% { opacity: 1; }
        100% { opacity: 0.6; }
    }

    @keyframes twinkle-fast {
        0%, 100% { opacity: 1; }
        25% { opacity: 0.2; }
        50% { opacity: 0.7; }
        75% { opacity: 0.4; }
    }

    @keyframes twinkle-slow {
        0%, 100% { opacity: 0.7; }
        33% { opacity: 1; }
        66% { opacity: 0.3; }
    }

    /* TOP RIGHT - Circle 1 (Base gradient only) */
    .nav-menu::before {
        content: '';
        position: absolute;
        top: 0px;
        right: -165px;
        width: 350px;
        height: 350px;
        border-radius: 50%;
        background: radial-gradient(circle at center,
            rgba(14, 165, 233, 0.22) 0%,
            rgba(14, 165, 233, 0.14) 30%,
            rgba(14, 165, 233, 0.08) 50%,
            rgba(14, 165, 233, 0.03) 70%,
            transparent 85%);
        box-shadow: 0 0 100px rgba(14, 165, 233, 0.3),
                    0 0 50px rgba(14, 165, 233, 0.18),
                    inset 0 0 70px rgba(14, 165, 233, 0.15);
        pointer-events: none;
        z-index: 0;
        transform:
            translate3d(calc(var(--tilt-x, 0) * 25px), calc(var(--tilt-y, 0) * 25px), calc(var(--tilt-x, 0) * 30px))
            rotateY(calc(var(--tilt-x, 0) * 10deg))
            rotateX(calc(var(--tilt-y, 0) * -10deg))
            scale(calc(1 + var(--tilt-x, 0) * 0.05));
        transform-style: preserve-3d;
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        will-change: transform;
    }

    /* Stars overlay for Circle 1 - TOP RIGHT */
    .nav-menu .nav-item:nth-child(1)::before {
        content: '';
        position: absolute;
        top: -70px;
        right: -165px;
        width: 350px;
        height: 350px;
        border-radius: 50%;
        background:
            /* Stars - small glittering dots */
            radial-gradient(circle at 25% 30%, rgba(255, 255, 255, 0.9) 0%, transparent 1px),
            radial-gradient(circle at 65% 45%, rgba(255, 255, 255, 0.7) 0%, transparent 1px),
            radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.8) 0%, transparent 1px),
            radial-gradient(circle at 80% 25%, rgba(255, 255, 255, 0.6) 0%, transparent 1px),
            radial-gradient(circle at 55% 80%, rgba(255, 255, 255, 0.9) 0%, transparent 1px),
            radial-gradient(circle at 20% 70%, rgba(255, 255, 255, 0.5) 0%, transparent 1px),
            radial-gradient(circle at 75% 65%, rgba(255, 255, 255, 0.7) 0%, transparent 1px),
            radial-gradient(circle at 35% 20%, rgba(255, 255, 255, 0.6) 0%, transparent 1px),
            radial-gradient(circle at 90% 55%, rgba(255, 255, 255, 0.8) 0%, transparent 1px),
            radial-gradient(circle at 15% 85%, rgba(255, 255, 255, 0.5) 0%, transparent 1px);
        background-size: 350px 350px;
        pointer-events: none;
        z-index: 1;
        transform:
            translate3d(calc(var(--tilt-x, 0) * 25px), calc(var(--tilt-y, 0) * 25px), calc(var(--tilt-x, 0) * 30px))
            rotateY(calc(var(--tilt-x, 0) * 10deg))
            rotateX(calc(var(--tilt-y, 0) * -10deg))
            scale(calc(1 + var(--tilt-x, 0) * 0.05));
        transform-style: preserve-3d;
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        will-change: transform;
        animation: twinkle 3s ease-in-out infinite;
    }

    /* BOTTOM LEFT - Circle 2 (Base gradient only) */
    .nav-menu::after {
        content: '';
        position: absolute;
        top: 100px;
        bottom: -100px;
        left: -210px;
        width: 350px;
        height: 350px;
        border-radius: 50%;
        background: radial-gradient(circle at center,
            rgba(59, 130, 246, 0.22) 0%,
            rgba(59, 130, 246, 0.14) 30%,
            rgba(99, 102, 241, 0.08) 50%,
            rgba(99, 102, 241, 0.03) 70%,
            transparent 85%);
        box-shadow: 0 0 100px rgba(59, 130, 246, 0.28),
                    0 0 50px rgba(59, 130, 246, 0.16),
                    inset 0 0 70px rgba(59, 130, 246, 0.14);
        pointer-events: none;
        z-index: 0;
        transform:
            translate3d(calc(var(--tilt-x, 0) * -25px), calc(var(--tilt-y, 0) * -25px), calc(var(--tilt-x, 0) * -35px))
            rotateY(calc(var(--tilt-x, 0) * -12deg))
            rotateX(calc(var(--tilt-y, 0) * 12deg))
            scale(calc(1 - var(--tilt-x, 0) * 0.05));
        transform-style: preserve-3d;
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        will-change: transform;
    }

    /* Stars overlay for Circle 2 - BOTTOM LEFT */
    .nav-menu .nav-item:nth-child(1)::after {
        content: '';
        position: absolute;
        top: 30px;
        left: -210px;
        width: 350px;
        height: 350px;
        border-radius: 50%;
        background:
            /* Stars - small glittering dots (different pattern) */
            radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.8) 0%, transparent 1px),
            radial-gradient(circle at 70% 40%, rgba(255, 255, 255, 0.9) 0%, transparent 1px),
            radial-gradient(circle at 45% 55%, rgba(255, 255, 255, 0.6) 0%, transparent 1px),
            radial-gradient(circle at 85% 30%, rgba(255, 255, 255, 0.7) 0%, transparent 1px),
            radial-gradient(circle at 50% 75%, rgba(255, 255, 255, 0.8) 0%, transparent 1px),
            radial-gradient(circle at 25% 65%, rgba(255, 255, 255, 0.6) 0%, transparent 1px),
            radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.9) 0%, transparent 1px),
            radial-gradient(circle at 40% 15%, rgba(255, 255, 255, 0.5) 0%, transparent 1px),
            radial-gradient(circle at 15% 50%, rgba(255, 255, 255, 0.7) 0%, transparent 1px),
            radial-gradient(circle at 60% 85%, rgba(255, 255, 255, 0.6) 0%, transparent 1px);
        background-size: 350px 350px;
        pointer-events: none;
        z-index: 1;
        transform:
            translate3d(calc(var(--tilt-x, 0) * -25px), calc(var(--tilt-y, 0) * -25px), calc(var(--tilt-x, 0) * -35px))
            rotateY(calc(var(--tilt-x, 0) * -12deg))
            rotateX(calc(var(--tilt-y, 0) * 12deg))
            scale(calc(1 - var(--tilt-x, 0) * 0.05));
        transform-style: preserve-3d;
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        will-change: transform;
        animation: twinkle-fast 2s ease-in-out infinite;
        animation-delay: 0.5s;
    }

    /* Ensure nav items appear above decorative elements */
    .nav-menu .nav-item {
        position: relative;
        z-index: 1;
    }

    /* TOP LEFT - Circle 3 (Base gradient only) */
    .nav-menu .nav-item:nth-child(2)::before {
        content: '';
        position: absolute;
        top: -350px;
        left: -100px;
        width: 350px;
        height: 350px;
        border-radius: 50%;
        background: radial-gradient(circle at center,
            rgba(99, 102, 241, 0.22) 0%,
            rgba(99, 102, 241, 0.14) 30%,
            rgba(139, 92, 246, 0.08) 50%,
            rgba(139, 92, 246, 0.03) 70%,
            transparent 85%);
        box-shadow: 0 0 100px rgba(99, 102, 241, 0.28),
                    0 0 50px rgba(99, 102, 241, 0.16),
                    inset 0 0 70px rgba(99, 102, 241, 0.14);
        pointer-events: none;
        z-index: 0;
        transform:
            translate3d(calc(var(--tilt-x, 0) * -22px), calc(var(--tilt-y, 0) * 22px), calc(var(--tilt-y, 0) * 28px))
            rotateY(calc(var(--tilt-x, 0) * -8deg))
            rotateX(calc(var(--tilt-y, 0) * -8deg))
            scale(calc(1 - var(--tilt-y, 0) * 0.04));
        transform-style: preserve-3d;
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        will-change: transform;
    }

    /* Stars overlay for Circle 3 - TOP LEFT */
    .nav-menu .nav-item:nth-child(3)::before {
        content: '';
        position: absolute;
        top: -350px;
        left: -100px;
        width: 350px;
        height: 350px;
        border-radius: 50%;
        background:
            /* Stars - small glittering dots (different pattern) */
            radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.9) 0%, transparent 1px),
            radial-gradient(circle at 60% 50%, rgba(255, 255, 255, 0.7) 0%, transparent 1px),
            radial-gradient(circle at 50% 70%, rgba(255, 255, 255, 0.8) 0%, transparent 1px),
            radial-gradient(circle at 75% 35%, rgba(255, 255, 255, 0.6) 0%, transparent 1px),
            radial-gradient(circle at 65% 85%, rgba(255, 255, 255, 0.9) 0%, transparent 1px),
            radial-gradient(circle at 30% 60%, rgba(255, 255, 255, 0.5) 0%, transparent 1px),
            radial-gradient(circle at 85% 60%, rgba(255, 255, 255, 0.7) 0%, transparent 1px),
            radial-gradient(circle at 45% 25%, rgba(255, 255, 255, 0.6) 0%, transparent 1px),
            radial-gradient(circle at 20% 45%, rgba(255, 255, 255, 0.8) 0%, transparent 1px),
            radial-gradient(circle at 55% 15%, rgba(255, 255, 255, 0.5) 0%, transparent 1px);
        background-size: 350px 350px;
        pointer-events: none;
        z-index: 1;
        transform:
            translate3d(calc(var(--tilt-x, 0) * -22px), calc(var(--tilt-y, 0) * 22px), calc(var(--tilt-y, 0) * 28px))
            rotateY(calc(var(--tilt-x, 0) * -8deg))
            rotateX(calc(var(--tilt-y, 0) * -8deg))
            scale(calc(1 - var(--tilt-y, 0) * 0.04));
        transform-style: preserve-3d;
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        will-change: transform;
        animation: twinkle-slow 4s ease-in-out infinite;
        animation-delay: 1s;
    }

    /* BOTTOM RIGHT - Circle 4 (Base gradient only) */
    .nav-menu .nav-item:nth-child(4)::after {
        content: '';
        position: absolute;
        bottom: -350px;
        right: -100px;
        width: 350px;
        height: 350px;
        border-radius: 50%;
        background: radial-gradient(circle at center,
            rgba(14, 165, 233, 0.22) 0%,
            rgba(14, 165, 233, 0.14) 30%,
            rgba(6, 182, 212, 0.08) 50%,
            rgba(6, 182, 212, 0.03) 70%,
            transparent 85%);
        box-shadow: 0 0 100px rgba(14, 165, 233, 0.28),
                    0 0 50px rgba(6, 182, 212, 0.16),
                    inset 0 0 70px rgba(6, 182, 212, 0.14);
        pointer-events: none;
        z-index: 0;
        transform:
            translate3d(calc(var(--tilt-x, 0) * 22px), calc(var(--tilt-y, 0) * -22px), calc(var(--tilt-y, 0) * -32px))
            rotateY(calc(var(--tilt-x, 0) * 9deg))
            rotateX(calc(var(--tilt-y, 0) * 9deg))
            scale(calc(1 + var(--tilt-y, 0) * 0.04));
        transform-style: preserve-3d;
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        will-change: transform;
    }

    /* Stars overlay for Circle 4 - BOTTOM RIGHT */
    .nav-menu .nav-item:nth-child(3)::after {
        content: '';
        position: absolute;
        bottom: -350px;
        right: -100px;
        width: 350px;
        height: 350px;
        border-radius: 50%;
        background:
            /* Stars - small glittering dots (different pattern) */
            radial-gradient(circle at 28% 28%, rgba(255, 255, 255, 0.8) 0%, transparent 1px),
            radial-gradient(circle at 68% 42%, rgba(255, 255, 255, 0.9) 0%, transparent 1px),
            radial-gradient(circle at 42% 62%, rgba(255, 255, 255, 0.6) 0%, transparent 1px),
            radial-gradient(circle at 82% 28%, rgba(255, 255, 255, 0.7) 0%, transparent 1px),
            radial-gradient(circle at 58% 78%, rgba(255, 255, 255, 0.8) 0%, transparent 1px),
            radial-gradient(circle at 22% 68%, rgba(255, 255, 255, 0.6) 0%, transparent 1px),
            radial-gradient(circle at 78% 68%, rgba(255, 255, 255, 0.9) 0%, transparent 1px),
            radial-gradient(circle at 38% 18%, rgba(255, 255, 255, 0.5) 0%, transparent 1px),
            radial-gradient(circle at 88% 52%, rgba(255, 255, 255, 0.7) 0%, transparent 1px),
            radial-gradient(circle at 52% 88%, rgba(255, 255, 255, 0.6) 0%, transparent 1px);
        background-size: 350px 350px;
        pointer-events: none;
        z-index: 1;
        transform:
            translate3d(calc(var(--tilt-x, 0) * 22px), calc(var(--tilt-y, 0) * -22px), calc(var(--tilt-y, 0) * -32px))
            rotateY(calc(var(--tilt-x, 0) * 9deg))
            rotateX(calc(var(--tilt-y, 0) * 9deg))
            scale(calc(1 + var(--tilt-y, 0) * 0.04));
        transform-style: preserve-3d;
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        will-change: transform;
        animation: twinkle-alt 2.5s ease-in-out infinite;
        animation-delay: 1.5s;
    }

    /* Dark theme - enhanced visibility for base circles (no stars) */
    [data-theme=dark] .nav-menu::before {
        background: radial-gradient(circle at center,
            rgba(14, 165, 233, 0.25) 0%,
            rgba(14, 165, 233, 0.15) 30%,
            rgba(14, 165, 233, 0.08) 50%,
            rgba(14, 165, 233, 0.03) 65%,
            transparent 75%);
        box-shadow: 0 0 120px rgba(14, 165, 233, 0.4),
                    0 0 60px rgba(14, 165, 233, 0.24),
                    inset 0 0 80px rgba(14, 165, 233, 0.2);
    }

    [data-theme=dark] .nav-menu::after {
        background: radial-gradient(circle at center,
            rgba(59, 130, 246, 0.25) 0%,
            rgba(59, 130, 246, 0.16) 30%,
            rgba(99, 102, 241, 0.1) 50%,
            rgba(99, 102, 241, 0.04) 65%,
            transparent 75%);
        box-shadow: 0 0 120px rgba(59, 130, 246, 0.38),
                    0 0 60px rgba(59, 130, 246, 0.22),
                    inset 0 0 80px rgba(59, 130, 246, 0.18);
    }

    [data-theme=dark] .nav-menu .nav-item:nth-child(2)::before {
        background: radial-gradient(circle at center,
            rgba(99, 102, 241, 0.26) 0%,
            rgba(99, 102, 241, 0.17) 30%,
            rgba(139, 92, 246, 0.1) 50%,
            rgba(139, 92, 246, 0.04) 65%,
            transparent 75%);
        box-shadow: 0 0 115px rgba(99, 102, 241, 0.35),
                    0 0 58px rgba(99, 102, 241, 0.2),
                    inset 0 0 75px rgba(99, 102, 241, 0.17);
    }

    [data-theme=dark] .nav-menu .nav-item:nth-child(4)::after {
        background: radial-gradient(circle at center,
            rgba(14, 165, 233, 0.26) 0%,
            rgba(14, 165, 233, 0.17) 30%,
            rgba(6, 182, 212, 0.1) 50%,
            rgba(6, 182, 212, 0.04) 65%,
            transparent 75%);
        box-shadow: 0 0 115px rgba(14, 165, 233, 0.35),
                    0 0 58px rgba(6, 182, 212, 0.2),
                    inset 0 0 75px rgba(6, 182, 212, 0.17);
    }

    /* Dark theme - brighter stars overlays */
    [data-theme=dark] .nav-menu .nav-item:nth-child(1)::before {
        background:
            /* Stars - brighter in dark mode */
            radial-gradient(circle at 25% 30%, rgba(255, 255, 255, 1) 0%, transparent 1.2px),
            radial-gradient(circle at 65% 45%, rgba(255, 255, 255, 0.85) 0%, transparent 1.2px),
            radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.95) 0%, transparent 1.2px),
            radial-gradient(circle at 80% 25%, rgba(255, 255, 255, 0.75) 0%, transparent 1.2px),
            radial-gradient(circle at 55% 80%, rgba(255, 255, 255, 1) 0%, transparent 1.2px),
            radial-gradient(circle at 20% 70%, rgba(255, 255, 255, 0.7) 0%, transparent 1.2px),
            radial-gradient(circle at 75% 65%, rgba(255, 255, 255, 0.85) 0%, transparent 1.2px),
            radial-gradient(circle at 35% 20%, rgba(255, 255, 255, 0.75) 0%, transparent 1.2px),
            radial-gradient(circle at 90% 55%, rgba(255, 255, 255, 0.9) 0%, transparent 1.2px),
            radial-gradient(circle at 15% 85%, rgba(255, 255, 255, 0.7) 0%, transparent 1.2px);
        background-size: 350px 350px;
    }

    [data-theme=dark] .nav-menu .nav-item:nth-child(1)::after {
        background:
            /* Stars - brighter in dark mode */
            radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.95) 0%, transparent 1.2px),
            radial-gradient(circle at 70% 40%, rgba(255, 255, 255, 1) 0%, transparent 1.2px),
            radial-gradient(circle at 45% 55%, rgba(255, 255, 255, 0.75) 0%, transparent 1.2px),
            radial-gradient(circle at 85% 30%, rgba(255, 255, 255, 0.85) 0%, transparent 1.2px),
            radial-gradient(circle at 50% 75%, rgba(255, 255, 255, 0.95) 0%, transparent 1.2px),
            radial-gradient(circle at 25% 65%, rgba(255, 255, 255, 0.75) 0%, transparent 1.2px),
            radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 1) 0%, transparent 1.2px),
            radial-gradient(circle at 40% 15%, rgba(255, 255, 255, 0.7) 0%, transparent 1.2px),
            radial-gradient(circle at 15% 50%, rgba(255, 255, 255, 0.85) 0%, transparent 1.2px),
            radial-gradient(circle at 60% 85%, rgba(255, 255, 255, 0.75) 0%, transparent 1.2px);
        background-size: 350px 350px;
    }

    [data-theme=dark] .nav-menu .nav-item:nth-child(3)::before {
        background:
            /* Stars - brighter in dark mode */
            radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 1) 0%, transparent 1.2px),
            radial-gradient(circle at 60% 50%, rgba(255, 255, 255, 0.85) 0%, transparent 1.2px),
            radial-gradient(circle at 50% 70%, rgba(255, 255, 255, 0.95) 0%, transparent 1.2px),
            radial-gradient(circle at 75% 35%, rgba(255, 255, 255, 0.75) 0%, transparent 1.2px),
            radial-gradient(circle at 65% 85%, rgba(255, 255, 255, 1) 0%, transparent 1.2px),
            radial-gradient(circle at 30% 60%, rgba(255, 255, 255, 0.7) 0%, transparent 1.2px),
            radial-gradient(circle at 85% 60%, rgba(255, 255, 255, 0.85) 0%, transparent 1.2px),
            radial-gradient(circle at 45% 25%, rgba(255, 255, 255, 0.75) 0%, transparent 1.2px),
            radial-gradient(circle at 20% 45%, rgba(255, 255, 255, 0.9) 0%, transparent 1.2px),
            radial-gradient(circle at 55% 15%, rgba(255, 255, 255, 0.7) 0%, transparent 1.2px);
        background-size: 350px 350px;
    }

    [data-theme=dark] .nav-menu .nav-item:nth-child(3)::after {
        background:
            /* Stars - brighter in dark mode */
            radial-gradient(circle at 28% 28%, rgba(255, 255, 255, 0.95) 0%, transparent 1.2px),
            radial-gradient(circle at 68% 42%, rgba(255, 255, 255, 1) 0%, transparent 1.2px),
            radial-gradient(circle at 42% 62%, rgba(255, 255, 255, 0.75) 0%, transparent 1.2px),
            radial-gradient(circle at 82% 28%, rgba(255, 255, 255, 0.85) 0%, transparent 1.2px),
            radial-gradient(circle at 58% 78%, rgba(255, 255, 255, 0.95) 0%, transparent 1.2px),
            radial-gradient(circle at 22% 68%, rgba(255, 255, 255, 0.75) 0%, transparent 1.2px),
            radial-gradient(circle at 78% 68%, rgba(255, 255, 255, 1) 0%, transparent 1.2px),
            radial-gradient(circle at 38% 18%, rgba(255, 255, 255, 0.7) 0%, transparent 1.2px),
            radial-gradient(circle at 88% 52%, rgba(255, 255, 255, 0.85) 0%, transparent 1.2px),
            radial-gradient(circle at 52% 88%, rgba(255, 255, 255, 0.75) 0%, transparent 1.2px);
        background-size: 350px 350px;
    }

    .nav-menu.active {
        transform: translate3d(0, 0, 0);
        opacity: 1;
        visibility: visible;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Prevent body scroll when mobile menu is active */
    body:has(.nav-menu.active),
    body.nav-menu-active {
        overflow: hidden !important;
        height: 100vh !important;
        width: 100% !important;
        touch-action: none !important;
        -webkit-overflow-scrolling: auto !important;
    }

    /* Also prevent scrolling on html element */
    html:has(body.nav-menu-active),
    html:has(.nav-menu.active) {
        overflow: hidden !important;
        height: 100% !important;
    }

    /* Dark theme solid background for mobile menu when active */
    [data-theme=dark] .nav-menu.active {
        background: #000000;
        border-bottom: 1px solid rgba(14, 165, 233, 0.3);
        box-shadow: 0 8px 32px 0 rgba(14, 165, 233, 0.2),
            0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    }

    /* Light theme solid background for mobile menu when active */
    [data-theme=light] .nav-menu.active {
        background: rgb(255, 255, 255);
        border-bottom: 1px solid var(--white-030);
        box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.25),
            0 0 0 1px var(--white-010) inset;
    }


    /* Base styling for inactive nav-menu - solid backgrounds always */
    [data-theme=dark] .nav-menu {
        background: #000000;
        border-bottom: 1px solid rgba(14, 165, 233, 0.3);
    }

    [data-theme=light] .nav-menu {
        background: rgb(255, 255, 255);
        border-bottom: 1px solid var(--white-030);
    }

    /* Smooth closing animation for nav menu */
    .nav-menu.closing {
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
            visibility 0s linear 0.3s !important;
        opacity: 1 !important;
    }

    /* Keep solid backgrounds during closing transition - same as active state */
    [data-theme=dark] .nav-menu.closing {
        background: #000000 !important;
        border-bottom: 1px solid rgba(14, 165, 233, 0.3) !important;
        box-shadow: 0 8px 32px 0 rgba(14, 165, 233, 0.2),
            0 0 0 1px rgba(255, 255, 255, 0.05) inset !important;
        opacity: 1 !important;
    }

    [data-theme=light] .nav-menu.closing {
        background: rgb(255, 255, 255) !important;
        border-bottom: 1px solid var(--white-030) !important;
        box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.25),
            0 0 0 1px var(--white-010) inset !important;
        opacity: 1 !important;
    }

    /* Fallback for browsers that support :not() */
    .nav-menu:not(.active):not(.closing) {
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
            visibility 0s linear 0.3s;
    }

    /* Mobile nav-item centering */
    .nav-menu .nav-item {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Smooth individual nav link animations */
    .nav-menu .nav-link {
        transform: translate3d(0, 20px, 0);
        opacity: 0;
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        width: 90%;
        max-width: 300px;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
    }

    .nav-menu.active .nav-link {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }

    /* Staggered animation delays for nav links - opening animation */
    .nav-menu.active .nav-link:nth-child(1) {
        transition-delay: 0.05s;
    }

    .nav-menu.active .nav-link:nth-child(2) {
        transition-delay: 0.08s;
    }

    .nav-menu.active .nav-link:nth-child(3) {
        transition-delay: 0.11s;
    }

    .nav-menu.active .nav-link:nth-child(4) {
        transition-delay: 0.14s;
    }

    .nav-menu.active .nav-link:nth-child(5) {
        transition-delay: 0.17s;
    }

    /* Staggered animation delays for nav links - closing animation (no delay for faster close) */
    .nav-menu.closing .nav-link:nth-child(1),
    .nav-menu.closing .nav-link:nth-child(2),
    .nav-menu.closing .nav-link:nth-child(3),
    .nav-menu.closing .nav-link:nth-child(4),
    .nav-menu.closing .nav-link:nth-child(5) {
        transition-delay: 0s !important;
        opacity: 1 !important;
    }

    /* Mobile nav-link hover and active states */
    .nav-menu .nav-link:hover {
        color: var(--primary-color);
        transform: translate3d(0, 0, 0);
    }

    .nav-menu .nav-link.active {
        color: var(--primary-color);
    }

    /* Light theme mobile nav-link hover and active */
    [data-theme=light] .nav-menu .nav-link:hover {
        color: var(--primary-color);
    }

    [data-theme=light] .nav-menu .nav-link.active {
        color: var(--primary-color);
    }

    /* Fallback for :not() selector */
    .nav-menu:not(.active) .nav-link:nth-child(1),
    .nav-menu:not(.active) .nav-link:nth-child(2),
    .nav-menu:not(.active) .nav-link:nth-child(3),
    .nav-menu:not(.active) .nav-link:nth-child(4),
    .nav-menu:not(.active) .nav-link:nth-child(5) {
        transition-delay: 0s;
    }

    [data-theme=light] .nav-menu {
        background: rgb(255, 255, 255);
        border-bottom: 1px solid rgba(255, 255, 255, 0.18);
        box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    }

    .nav-toggle {
        display: flex;
        z-index: 10002 !important;
        position: relative;
        pointer-events: auto !important;
    }

    .navbar {
        z-index: 10001 !important;
        pointer-events: auto !important;
    }

    .nav-container {
        pointer-events: auto !important;
    }

    .nav-actions {
        pointer-events: auto !important;
        z-index: 10002;
    }

    .theme-switcher {
        margin-right: 10px;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Ensure mobile menu appears above all controls when active */
    .nav-menu.active {
        z-index: 10000 !important;
        pointer-events: auto !important;
    }

    /* Hide planet panel when navigation menu is active */
    .nav-toggle.active~.ui-overlay .planet-info-panel,
    body:has(.nav-toggle.active) .planet-info-panel {
        opacity: 0;
        pointer-events: none;
        transform: translateX(100%);
        transition: all 0.3s ease;
    }

    /* Alternative approach - hide when nav menu is active */
    .nav-menu.active~.planet-info-panel,
    body:has(.nav-menu.active) .planet-info-panel,
    body.nav-menu-active .planet-info-panel {
        opacity: 0;
        pointer-events: none;
        transform: translateX(100%);
        transition: all 0.3s ease;
    }

    /* Ensure hamburger toggle is always clickable */
    #navToggle {
        z-index: 10002 !important;
        pointer-events: auto !important;
        position: relative;
    }

    /* Lower z-index for controls during mobile menu */
    @media screen and (max-width: 768px) {
        .top-right-controls {
            z-index: 999 !important;
        }

        .control-panel {
            z-index: 999 !important;
        }
    }
}

/* Responsive Design */
@media screen and (min-width: 1440px) {
    .planet-info-panel {
        width: 420px;
        padding: 30px;
    }

    .control-panel {
        bottom: 40px;
        left: 40px;
    }

    .mini-map {
        width: 240px;
        height: 240px;
        top: 40px;
        left: 40px;
    }
}

@media screen and (max-width: 1439px) {
    .planet-info-panel {
        width: 360px;
        padding: 20px;
    }
}

@media screen and (max-width: 1023px) {
    .planet-info-panel {
        width: 320px;
        right: -320px;
        padding: 20px;
        font-size: 1.1rem;
    }

    .planet-info-panel p {
        font-size: 1rem;
    }

    .planet-info-panel .stat-label {
        font-size: 0.9rem;
    }

    .planet-info-panel .stat-value {
        font-size: 1.1rem;
    }

    .planet-info-panel.active {
        right: 20px;
    }

    .control-panel {
        bottom: 20px;
        left: 15px;
        right: 15px;
        width: calc(100% - 30px);
        padding: 12px;
        justify-content: space-evenly;
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .control-btn,
    .speed-btn {
        padding: 10px 12px;
        font-size: 0.85rem;
        min-width: 52px;
        width: 52px;
        height: 42px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        white-space: nowrap;
    }

    .mini-map {
        width: 180px;
        height: 180px;
        top: 20px;
        left: 20px;
    }
}

@media screen and (max-width: 767px) {

    /* Disable vertical scrolling on mobile for better 3D interaction - only on solar system homepage */
    body.solar-system.homepage[data-theme] {
        overflow-y: hidden;
        height: 100vh;
    }

    /* Re-enable scrolling for inner pages */
    body.inner-page {
        overflow-y: auto !important;
        height: auto !important;
    }

    /* Hide fullscreen button on mobile screens */
    #fullscreenBtn {
        display: none !important;
    }

    .planet-info-panel {
        width: 280px;
        right: -280px;
        padding: 15px;
        font-size: 1.1rem;
        border-radius: 15px;
    }

    .planet-info-panel p {
        font-size: 1rem;
    }

    .planet-info-panel .stat-label {
        font-size: 0.9rem;
    }

    .planet-info-panel .stat-value {
        font-size: 1.1rem;
    }

    .planet-info-panel.active {
        right: 10px;
    }

    .planet-header {
        margin-bottom: 15px;
    }

    .planet-icon {
        width: 50px;
        height: 50px;
        margin-right: 12px;
        font-size: 1.2rem;
    }

    .planet-details h2 {
        font-size: 1.4rem;
    }

    .planet-type {
        font-size: 0.8rem;
    }

    /* Force 2x2 grid for stats */
    .planet-stats {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: 1fr 1fr !important;
        gap: 10px !important;
        margin: 12px 0 !important;
    }

    .stat-item {
        padding: 10px !important;
        border-radius: 8px !important;
        text-align: center !important;
    }

    .stat-label {
        font-size: 0.7rem !important;
        margin-bottom: 4px !important;
    }

    .stat-value {
        font-size: 1rem !important;
        font-weight: 700 !important;
    }

    /* Fix bullet points */
    .feature-list {
        list-style: none !important;
        padding-left: 0 !important;
    }

    .feature-list li {
        list-style: none !important;
        padding-left: 22px !important;
        position: relative !important;
        display: block !important;
    }

    .feature-list li::marker {
        display: none !important;
        content: none !important;
    }

    .feature-list li::before {
        content: '✦' !important;
        position: absolute !important;
        left: 0 !important;
        top: 5px !important;
        font-size: 14px !important;
        color: var(--primary-color) !important;
        font-weight: bold !important;
        display: block !important;
        width: 14px;
        height: 14px;
        text-align: center;
    }

    .control-panel {
        bottom: 15px;
        left: 10px;
        right: 10px;
        width: calc(100% - 20px);
        padding: 10px;
        border-radius: 12px;
        justify-content: space-evenly;
        display: flex;
        align-items: center;
        gap: 6px;
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .control-btn,
    .speed-btn {
        padding: 10px 8px;
        font-size: 0.8rem;
        min-width: 48px;
        width: 48px;
        height: 40px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        white-space: nowrap;
    }

    .mini-map {
        width: 150px;
        height: 150px;
        top: 15px;
        left: 15px;
    }

    /* Hide controls when side panel is active on mobile */
    body.panel-active .top-right-controls,
    body.panel-active .control-panel {
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    body.panel-active .planet-info-panel {
        z-index: 9999;
    }
}

@media screen and (max-width: 599px) {
    .planet-info-panel {
        width: calc(100vw - 20px);
        left: 50%;
        bottom: -400px;
        transform: translateX(-50%);
        padding: 12px;
        font-size: 0.8rem;
        height: auto;
        max-height: calc(100vh - 140px);
        overflow-y: auto;
        transition: bottom 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        top: auto;
        right: auto;
    }

    .planet-info-panel.active {
        bottom: 80px;
    }

    /* Ensure panel disappears completely when not active */
    .planet-info-panel:not(.active) {
        bottom: -500px;
        opacity: 0;
        pointer-events: none;
        transition: bottom 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.3s ease;
    }

    /* Make side panel content smaller for mobile */
    .planet-header {
        margin-bottom: 12px;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--accent-border);
    }

    .planet-icon {
        width: 45px;
        height: 45px;
        margin-right: 0;
        font-size: 1.5rem;
    }

    .planet-details h2 {
        font-size: 1.2rem;
        margin-bottom: 3px;
    }

    .planet-type {
        font-size: 0.7rem;
    }

    .planet-stats {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: 1fr 1fr !important;
        margin: 8px 0;
        gap: 8px;
    }

    .stat-item {
        padding: 8px 10px;
        border-radius: 8px;
        text-align: center;
    }

    .stat-label {
        font-size: 0.65rem;
        margin-bottom: 3px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .stat-value {
        font-size: 1rem;
        font-weight: 700;
    }

    .planet-description {
        margin: 8px 0;
        padding-top: 6px;
        line-height: 1.3;
        font-size: 0.8rem;
    }

    .feature-list {
        margin: 8px 0;
        padding-left: 0 !important;
        list-style: none !important;
    }

    .feature-list li {
        margin: 3px 0;
        line-height: 1.3;
        font-size: 0.8rem;
        padding: 3px 0;
        padding-left: 20px !important;
        list-style: none !important;
        position: relative !important;
        display: block !important;
    }

    .feature-list li::marker {
        display: none !important;
        content: none !important;
    }

    .feature-list li::before {
        content: '✦' !important;
        position: absolute !important;
        left: 0 !important;
        top: 5px !important;
        font-size: 14px !important;
        font-weight: bold !important;
        width: 14px;
        height: 14px;
        line-height: 1;
        color: var(--primary-color) !important;
        display: block !important;
        text-align: center;
    }

    .planet-navigation {
        margin-top: 8px;
        padding-top: 8px;
    }

    .nav-btn {
        padding: 4px 8px;
        font-size: 0.65rem;
        gap: 4px;
    }

    /* Hide controls when side panel is active on mobile */
    body.panel-active .top-right-controls,
    body.panel-active .control-panel {
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    body.panel-active .planet-info-panel {
        z-index: 9999;
    }
}

/* iPhone 5 specific styles (320px width) */
@media screen and (max-width: 320px) {

    /* Make control panel fit in single row */
    .control-panel {
        padding: 8px;
        gap: 4px;
        bottom: 10px;
        left: 10px;
        right: 10px;
        width: calc(100% - 20px);
        flex-wrap: nowrap;
        overflow-x: auto;
        display: flex;
        align-items: center;
        justify-content: space-evenly;
    }

    .control-btn,
    .speed-btn {
        padding: 8px;
        font-size: 0.75rem;
        min-width: 42px;
        width: 42px;
        height: 36px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        white-space: nowrap;
    }

    .control-btn i {
        font-size: 0.9rem;
    }

    /* Adjust side panel for iPhone 5 */
    .planet-info-panel {
        width: calc(100vw - 10px);
        left: 50%;
        bottom: -400px;
        transform: translateX(-50%);
        padding: 10px;
        font-size: 0.75rem;
        max-height: calc(100vh - 120px);
    }

    .planet-info-panel.active {
        bottom: 80px;
    }

    /* Ensure panel disappears completely when not active */
    .planet-info-panel:not(.active) {
        bottom: -500px;
        opacity: 0;
        pointer-events: none;
        transition: bottom 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.3s ease;
    }

    /* Mini map adjustments */
    .mini-map {
        width: 120px;
        height: 120px;
        top: 10px;
        left: 10px;
    }

    /* Even smaller side panel content for iPhone 5 */
    .planet-header {
        margin-bottom: 6px;
        padding-bottom: 6px;
    }

    .planet-icon {
        width: 35px;
        height: 35px;
        margin-right: 8px;
        font-size: 0.9rem;
    }

    .planet-details h2 {
        font-size: 1rem;
        margin-bottom: 2px;
    }

    .planet-type {
        font-size: 0.65rem;
    }

    .planet-stats {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: 1fr 1fr !important;
        margin: 6px 0;
        gap: 6px;
    }

    .stat-item {
        padding: 6px 8px;
        border-radius: 6px;
        text-align: center;
    }

    .stat-label {
        font-size: 0.6rem;
        margin-bottom: 2px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

    .stat-value {
        font-size: 0.85rem;
        font-weight: 700;
    }

    .planet-description {
        margin: 6px 0;
        padding-top: 4px;
        line-height: 1.2;
        font-size: 0.75rem;
    }

    .feature-list {
        margin: 6px 0;
        padding-left: 0 !important;
        list-style: none !important;
    }

    .feature-list li {
        margin: 2px 0;
        line-height: 1.2;
        font-size: 0.75rem;
        padding: 2px 0;
        padding-left: 18px !important;
        list-style: none !important;
        position: relative !important;
        display: block !important;
    }

    .feature-list li::marker {
        display: none !important;
        content: none !important;
    }

    .feature-list li::before {
        content: '✦' !important;
        position: absolute !important;
        left: 0 !important;
        top: 4px !important;
        font-size: 12px !important;
        font-weight: bold !important;
        width: 12px;
        height: 12px;
        line-height: 1;
        color: var(--primary-color) !important;
        display: block !important;
        text-align: center;
    }

    .planet-navigation {
        margin-top: 6px;
        padding-top: 6px;
    }

    .nav-btn {
        padding: 3px 6px;
        font-size: 0.6rem;
        gap: 3px;
    }

    /* Panel and control interaction management */
    .planet-info-panel.active {
        z-index: 1500;
    }

    /* Hide controls when side panel is active on mobile */
    .planet-info-panel.active~* .top-right-controls {
        display: none;
    }

    /* Alternative approach - use body class for state management */
    body.panel-active .top-right-controls,
    body.panel-active .control-panel {
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    body.panel-active .planet-info-panel {
        z-index: 9999;
    }
}

/* Mobile Control Override - Hide all desktop controls on mobile */
@media screen and (max-width: 768px) {

    .top-right-controls,
    .control-panel {
        display: none !important;
    }
}

/* Mobile Touch Instructions */
.mobile-touch-hints {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    background: rgba(0, 0, 17, 0.9);
    -webkit-backdrop-filter: var(--backdrop-blur-sm);
    backdrop-filter: var(--backdrop-blur-sm);
    border: 1px solid var(--panel-border);
    border-radius: 15px;
    padding: 16px 20px;
    color: var(--text-color);
    font-size: 0.85rem;
    z-index: 999;
    pointer-events: none;
    width: 280px;
    max-width: 280px;
}

/* Light mode mobile touch hints */
[data-theme=light] .mobile-touch-hints {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1f2937;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

[data-theme=light] .touch-icon {
    color: var(--primary-color);
}

.mobile-touch-hints.show {
    display: flex;
}

.touch-hint {
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.9;
    width: 100%;
}

.touch-icon {
    width: 16px;
    height: 16px;
    color: var(--primary-color);
}

/* Mobile floating buttons removed */

@media screen and (max-width: 768px) {
    .mobile-touch-hints.show {
        display: flex;
    }

    /* Enhanced planet info panel for mobile */
    .planet-info-panel {
        border-top: 3px solid var(--primary-color);
    }

    .planet-info-panel::before {
        content: '';
        position: absolute;
        top: 5px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: rgba(14, 165, 233, 0.5);
        border-radius: 2px;
    }

    /* Make navigation buttons more touch-friendly */
    .planet-navigation .nav-btn {
        padding: 12px 20px;
        font-size: 1rem;
        min-height: 48px;
    }

    /* Add swipe indicator to planet panel */
    .planet-swipe-hint {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin: 15px 0;
        padding: 10px;
        background: var(--panel-bg);
        border-radius: 8px;
        color: var(--primary-color);
        font-size: 0.85rem;
        opacity: 0.8;
    }

    .planet-swipe-hint i {
        font-size: 1rem;
    }

    /* Hide navigation buttons on mobile since we have swipe functionality */
    .planet-navigation {
        display: none !important;
    }
}



/* Simple transitions for panel */
.planet-info-panel {
    transition: transform 0.3s ease,
        opacity 0.3s ease;
}

/* Gesture feedback removed */

/* Old Planet Navigation Buttons - Hidden in favor of round buttons */
.planet-navigation {
    display: none;
}

.nav-btn {
    flex: 1;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
    border: 1px solid rgba(14, 165, 233, 0.4);
    color: var(--text-color);
    padding: 12px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.nav-btn:hover {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.4) 0%, rgba(59, 130, 246, 0.4) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.3);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.nav-btn:disabled:hover {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
    transform: none;
    box-shadow: none;
}

[data-theme=light] .nav-btn {
    background: var(--white-030);
    -webkit-backdrop-filter: var(--backdrop-blur-sm) saturate(150%);
    backdrop-filter: var(--backdrop-blur-sm) saturate(150%);
    border: 1px solid var(--white-020);
    color: #334155;
    box-shadow: 0 4px 16px 0 rgba(31, 38, 135, 0.2);
}

[data-theme=light] .nav-btn:hover {
    background: var(--white-050);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(31, 38, 135, 0.3);
    color: #1e293b;
}

[data-theme=light] .planet-navigation {
    border-top: 1px solid var(--white-030);
}

/* Platforms Page Styling */
.page-container {
    min-height: 100vh;
    padding-top: 100px;
    background: var(--bg-color);
    color: var(--text-color);
    position: relative;
    overflow: hidden;
}

/* Disabled CSS Stars - Using JavaScript instead */
.page-container::before,
.page-container::after {
    display: none;
}


/* Ensure content is above stars */
.page-container>* {
    position: relative;
    z-index: 1;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.cosmic-header {
    text-align: center;
    margin-bottom: 50px;
}

.cosmic-title {
    /* Inherits from h1/h2 base styles - no additional styling needed */
}

.title-prefix {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #14b8a6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.title-icon {
    font-size: 1.2em;
    margin-right: 15px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.cosmic-subtitle {
    display: block;
    font-size: 1.2rem;
    background: linear-gradient(45deg, #14b8a6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 300;
    opacity: 0.9;
    margin-top: 10px;
}

/* Platforms Grid */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 40px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1200px) {
    .platforms-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .platforms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.platform-card,
.feature-card,
.value-card,
.contact-card,
.team-member {
    position: relative;
    overflow: hidden;
}

.platform-card::before,
.feature-card::before,
.value-card::before,
.contact-card::before,
.team-member::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(14, 165, 233, 0.1), transparent);
    border: 1px solid var(--accent-border);
    z-index: -1;
}

[data-theme=light] .platform-card::before,
[data-theme=light] .feature-card::before,
[data-theme=light] .value-card::before,
[data-theme=light] .contact-card::before,
[data-theme=light] .team-member::before {
    background: conic-gradient(transparent, rgba(14, 165, 233, 0.1), transparent);
    border: 1px solid var(--accent-border);
}

/* Removed cardRotate keyframes animation */

.platform-card:hover,
.feature-card:hover,
.value-card:hover,
.contact-card:hover,
.team-member:hover {
    transform: translateY(-10px);
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.2);
}

.social-logo {
    width: 80px;
    height: 80px;
    margin: 30px auto 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.social-logo:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Platform Orbital Rings */
/* Unified Card System - All cards use the same background */
.platform-card,
.feature-card,
.value-card,
.contact-card,
.team-member {
    background: rgba(255, 255, 255, 0.03);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 4px 0 rgb(14 165 233 / 6%), 0 1px 10px 0 rgba(0, 0, 0, 0.1), inset 0 1px 0 var(--white-015);
}

[data-theme=light] .platform-card,
[data-theme=light] .feature-card,
[data-theme=light] .value-card,
[data-theme=light] .contact-card,
[data-theme=light] .team-member {
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 1px 4px 0 rgb(14 165 233 / 6%), 0 1px 10px 0 rgba(0, 0, 0, 0.1), inset 0 1px 0 var(--white-015);
}

.platform-rings {
    position: absolute;
    width: 120px;
    height: 120px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
}

.platform-ring {
    position: absolute;
    border: 2px solid;
    border-radius: 50%;
    opacity: 0.4;
    animation: orbitSpin 25s linear infinite;
}

.platform-ring-1 {
    width: 100%;
    height: 100%;
    border-color: rgba(14, 165, 233, 0.6);
    animation-duration: 18s;
}

.platform-planet {
    position: absolute;
    width: 8px;
    height: 8px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    top: -4px;
    left: calc(50% - 4px);
    transform-origin: 4px 64px;
    animation: orbitSpin 15s linear infinite;
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.8);
}

/* Social Media Brand Colors */
.facebook-logo {
    background: var(--white-010);
    border: 2px solid var(--white-020);
    color: var(--primary-color);
}

.instagram-logo {
    background: var(--white-010);
    border: 2px solid var(--white-020);
    color: var(--primary-color);
}

.twitter-logo {
    background: var(--white-010);
    border: 2px solid var(--white-020);
    color: var(--primary-color);
}

.linkedin-logo {
    background: var(--white-010);
    border: 2px solid var(--white-020);
    color: var(--primary-color);
}

.youtube-logo {
    background: var(--white-010);
    border: 2px solid var(--white-020);
    color: var(--primary-color);
}

.tiktok-logo {
    background: var(--white-010);
    border: 2px solid var(--white-020);
    color: var(--primary-color);
}

.google-logo {
    background: var(--white-010);
    border: 2px solid var(--white-020);
    color: var(--primary-color);
}

.line-logo {
    background: var(--white-010);
    border: 2px solid var(--white-020);
    color: var(--primary-color);
}

.yelp-logo {
    background: var(--white-010);
    border: 2px solid var(--white-020);
    color: var(--primary-color);
}

.line-icon {
    font-size: 1rem;
    font-weight: bold;
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.platform-card h3,
.feature-card h3,
.value-card h3,
.contact-card h3,
.team-member h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.platform-card p,
.feature-card p,
.value-card p,
.contact-card p,
.team-member p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.platform-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: nowrap;
}

.platform-stats span {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(59, 130, 246, 0.15));
    -webkit-backdrop-filter: var(--backdrop-blur-sm);
    backdrop-filter: var(--backdrop-blur-sm);
    padding: 10px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--panel-border);
    color: var(--text-color);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.1);
    transition: all 0.3s ease;
    flex: 1 1 0;
    white-space: nowrap;
    text-wrap: auto;
    text-align: center;
    min-width: 0;
}

.platform-stats span:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.2);
}

.platform-features {
    text-align: left;
    margin-top: 20px;
}

.platform-features h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

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

.platform-features li {
    padding: 5px 0;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    padding-left: 24px;
    line-height: 1.6;
}

.platform-features li::before {
    content: '✦';
    color: var(--primary-color);
    /* position: absolute; */
    left: 4px;
    top: 5px;
    margin-right: 8px;
}

/* Light Theme Adaptations for Platforms */
[data-theme=light] .page-container {
    background: transparent;
    color: var(--text-color);
}

/* Dark theme heading styles */
[data-theme=dark] h1,
[data-theme=dark] h2,
[data-theme=dark] h3,
[data-theme=dark] h4,
[data-theme=dark] h5,
[data-theme=dark] h6 {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    color: var(--primary-color);
}

[data-theme=dark] .cosmic-subtitle {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    color: var(--primary-color);
    font-weight: 300;
    opacity: 0.9;
}

[data-theme=dark] .title-prefix {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    color: var(--primary-color);
}

/* Light theme heading styles */
[data-theme=light] h1,
[data-theme=light] h2,
[data-theme=light] h3,
[data-theme=light] h4,
[data-theme=light] h5,
[data-theme=light] h6 {
    background: linear-gradient(45deg, #14b8a6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme=light] .cosmic-title {
    /* Already has gradient from h1/h2 light mode style */
}

[data-theme=light] .cosmic-subtitle {
    background: linear-gradient(45deg, #14b8a6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 300;
    opacity: 0.9;
}

[data-theme=light] .title-prefix {
    background: linear-gradient(45deg, #14b8a6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme=light] .platform-card {
    background: var(--white-025);
    -webkit-backdrop-filter: var(--backdrop-blur-lg);
    backdrop-filter: var(--backdrop-blur-lg);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgb(60 71 218 / 0%), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme=light] .platform-card p,
[data-theme=light] .feature-card p,
[data-theme=light] .value-card p,
[data-theme=light] .contact-card p,
[data-theme=light] .team-member p {
    color: var(--slate-080);
}

[data-theme=light] .platform-stats span {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(248, 250, 252, 0.9));
    -webkit-backdrop-filter: var(--backdrop-blur-sm);
    backdrop-filter: var(--backdrop-blur-sm);
    border: 1px solid rgba(71, 85, 105, 0.2);
    color: var(--text-color);
    box-shadow: 0 4px 15px rgba(71, 85, 105, 0.1);
}

[data-theme=light] .platform-stats span:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(71, 85, 105, 0.15);
}

[data-theme=light] .platform-features li {
    color: var(--slate-080);
}

[data-theme=light] .platform-features h4 {
    color: var(--primary-color);
}

[data-theme=light] .platform-ring-1 {
    border-color: var(--slate-040);
}

[data-theme=light] .platform-planet {
    background: linear-gradient(45deg, #475569, #64748b);
    box-shadow: 0 0 8px var(--slate-060);
}

/* Call to Action Section - Horizontal Layout */
.cta-section {
    margin: 60px 0 40px;
    display: flex;
    justify-content: center;
}

.cta-card-horizontal {
    background: rgba(255, 255, 255, 0.03);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: calc(100% - 2rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    text-align: left;
    box-shadow: 0 1px 4px 0 rgb(14 165 233 / 6%), 0 1px 10px 0 rgba(0, 0, 0, 0.1), inset 0 1px 0 var(--white-015);
}

.cta-card-horizontal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(14, 165, 233, 0.05) 0%,
            rgba(59, 130, 246, 0.03) 50%,
            rgba(139, 92, 246, 0.05) 100%);
    z-index: 0;
}

/* Removed Stardust Wave Animation */
.cta-card-horizontal::after {
    display: none;
}

.cta-card-horizontal:hover {
    /* transform: translateY(-12px) scale(1.01); */
    border-color: rgba(14, 165, 233, 0.6);
}

/* Horizontal CTA Components */
.cta-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    z-index: 1;
    position: relative;
}

.cta-logo-static {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0ea5e95e;
    -webkit-backdrop-filter: var(--backdrop-blur-sm);
    backdrop-filter: var(--backdrop-blur-sm);
    border: 2px solid rgba(14, 165, 233, 0.3);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    /* animation: rocketFloat 3s ease-in-out infinite; */
}

/* Light Mode: Teal-cyan gradient for CTA icon */
body[data-theme="light"] .cta-logo-static {
    background: linear-gradient(45deg, #14b8a6, #06b6d4);
    border-color: rgba(20, 184, 166, 0.3);
}

.cta-logo-static::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 0;
}

.cta-logo-static .cosmic-icon {
    font-size: 2.2rem;
    filter: drop-shadow(0 0 12px rgba(14, 165, 233, 0.8));
    position: relative;
    z-index: 1;
    /* animation: pulse 2s ease-in-out infinite alternate; */
}

/* Light Mode: White icon color for CTA */
body[data-theme="light"] .cta-logo-static .cosmic-icon {
    color: white;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.5));
}

@keyframes pulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 12px rgba(14, 165, 233, 0.8));
    }

    100% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 16px rgba(14, 165, 233, 1));
    }
}

.cta-text h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.cta-text p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.cta-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1;
    position: relative;
}

.cta-stats span {
    background: var(--white-010);
    -webkit-backdrop-filter: var(--backdrop-blur-lg);
    backdrop-filter: var(--backdrop-blur-lg);
    border: 1px solid var(--white-020);
    color: rgba(255, 255, 255, 0.95);
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 400;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 4px 0 rgb(14 165 233 / 6%), 0 1px 10px 0 rgba(0, 0, 0, 0.1), inset 0 1px 0 var(--white-015);
}

.cta-stats span::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--white-020), transparent);
    transition: left 0.6s ease;
}

.cta-stats span:hover::before {
    left: 100%;
}

.cta-stats span:hover {
    background: var(--white-015);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    backdrop-filter: blur(25px) saturate(200%);
    border-color: var(--white-030);
    /* transform: translateY(-3px) scale(1.02); */
    text-shadow: 0 0 8px var(--white-050);
    box-shadow: 0 12px 40px 0 rgba(14, 165, 233, 0.25),
        inset 0 1px 0 var(--white-020);
}

/* CTA Actions Styling */
.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 1;
    position: relative;
    min-width: 200px;
}

.platform-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    min-width: 160px;
    text-align: center;
}

.platform-button.primary {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.95), rgba(59, 130, 246, 0.9));
    -webkit-backdrop-filter: var(--backdrop-blur-lg);
    backdrop-filter: var(--backdrop-blur-lg);
    color: white;
    border-color: rgba(14, 165, 233, 0.6);
    position: relative;
    overflow: hidden;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4), inset 0 1px 0 var(--white-020);
}

.platform-button.primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--white-030), transparent);
    transition: left 0.6s ease;
}

.platform-button.primary:hover::before {
    left: 100%;
}

.platform-button.primary:hover {
    background: linear-gradient(135deg, rgba(14, 165, 233, 1), rgba(59, 130, 246, 0.95));
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    backdrop-filter: blur(25px) saturate(200%);
    border-color: rgba(14, 165, 233, 0.8);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.5), inset 0 1px 0 var(--white-020);
}

.platform-button.secondary {
    background: linear-gradient(135deg, var(--white-015), var(--white-010));
    -webkit-backdrop-filter: var(--backdrop-blur-lg);
    backdrop-filter: var(--backdrop-blur-lg);
    color: rgba(255, 255, 255, 0.95);
    border-color: rgba(14, 165, 233, 0.4);
    position: relative;
    overflow: hidden;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.25), inset 0 1px 0 var(--white-015);
}

.platform-button.secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.2), transparent);
    transition: left 0.6s ease;
}

.platform-button.secondary:hover::before {
    left: 100%;
}

.platform-button.secondary:hover {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.25), rgba(59, 130, 246, 0.2));
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    backdrop-filter: blur(25px) saturate(200%);
    border-color: rgba(14, 165, 233, 0.7);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.35), inset 0 1px 0 var(--white-040);
}

/* Responsive CTA Section */
@media screen and (max-width: 1024px) {
    .cta-card-horizontal {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 30px;
    }

    .cta-content {
        gap: 15px;
    }

    .cta-actions {
        flex-direction: row;
        justify-content: center;
        gap: 12px;
        min-width: auto;
    }

    .platform-button {
        min-width: 140px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 768px) {
    .cta-section {
        margin: 40px 0 30px;
        padding: 0;
    }

    .cta-card-horizontal {
        padding: 25px 20px;
        gap: 25px;
        max-width: 100%;
        border-radius: 0;
    }

    .cta-content {
        flex-direction: column;
        gap: 20px;
    }

    .cta-text h2 {
        font-size: 1.5rem;
    }

    .cta-text p {
        font-size: 0.9rem;
    }

    .cta-actions {
        flex-direction: column;
        gap: 12px;
    }

    .platform-button {
        min-width: 100%;
        padding: 14px 20px;
    }

    .cta-stats {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
    }

    .cta-stats span {
        font-size: 0.75rem;
        padding: 10px 16px;
    }
}

/* Additional mobile fixes for common phone sizes */
@media screen and (max-width: 480px) {
    /* Force 2x2 grid for planet stats on smaller phones */
    .planet-stats {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: 1fr 1fr !important;
        gap: 8px !important;
    }

    .stat-item {
        padding: 8px !important;
        text-align: center !important;
    }

    /* Ensure stars show instead of dots */
    .feature-list {
        list-style: none !important;
        padding-left: 0 !important;
    }

    .feature-list li {
        list-style: none !important;
        position: relative !important;
        padding-left: 20px !important;
        display: block !important;
    }

    .feature-list li::marker {
        display: none !important;
        content: none !important;
    }

    .feature-list li::before {
        content: '✦' !important;
        position: absolute !important;
        left: 0 !important;
        top: 5px !important;
        font-size: 13px !important;
        color: var(--primary-color) !important;
        font-weight: bold !important;
        display: block !important;
        width: 13px;
        height: 13px;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .cta-card-horizontal {
        padding: 20px 15px;
        gap: 20px;
    }

    .cta-logo-static {
        width: 60px;
        height: 60px;
    }

    .cta-logo-static .cosmic-icon {
        font-size: 1.8rem;
    }

    .cta-text h2 {
        font-size: 1.3rem;
    }

    .cta-stats {
        flex-direction: column;
        gap: 10px;
    }

    .cta-stats span {
        font-size: 0.7rem;
        padding: 8px 12px;
    }
}

/* Light Mode CTA Section Overrides */
[data-theme="light"] .cta-card-horizontal {
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: var(--backdrop-blur-lg);
    backdrop-filter: var(--backdrop-blur-lg);
    border: 1px solid rgba(71, 85, 105, 0.2);
    box-shadow: 0 8px 32px rgba(71, 85, 105, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .cta-card-horizontal::before {
    background: linear-gradient(135deg,
        rgba(71, 85, 105, 0.03) 0%,
        rgba(100, 116, 139, 0.05) 50%,
        rgba(148, 163, 184, 0.03) 100%);
}

[data-theme="light"] .cta-text h2 {
    color: #1e293b;
    text-shadow: none;
}

[data-theme="light"] .cta-text p {
    color: rgba(30, 41, 59, 0.8);
    text-shadow: none;
}

[data-theme="light"] .cta-stats span {
    background: rgba(71, 85, 105, 0.1);
    -webkit-backdrop-filter: var(--backdrop-blur-lg);
    backdrop-filter: var(--backdrop-blur-lg);
    border: 1px solid rgba(71, 85, 105, 0.2);
    color: rgba(30, 41, 59, 0.9);
    box-shadow: 0 2px 8px rgba(71, 85, 105, 0.15), inset 0 1px 0 var(--white-050);
}

[data-theme="light"] .cta-stats span:hover {
    background: rgba(71, 85, 105, 0.15);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    backdrop-filter: blur(25px) saturate(200%);
    border-color: var(--slate-030);
    color: rgba(30, 41, 59, 1);
    text-shadow: none;
    box-shadow: 0 4px 12px rgba(71, 85, 105, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

[data-theme="light"] .platform-button.primary {
    background: linear-gradient(135deg, var(--slate-095), rgba(100, 116, 139, 0.9));
    -webkit-backdrop-filter: var(--backdrop-blur-md);
    backdrop-filter: var(--backdrop-blur-md);
    color: white;
    border-color: var(--slate-060);
    box-shadow: 0 6px 20px var(--slate-040), inset 0 1px 0 var(--white-020);
}

[data-theme="light"] .platform-button.primary:hover {
    background: linear-gradient(135deg, var(--slate-100), rgba(100, 116, 139, 0.95));
    -webkit-backdrop-filter: var(--backdrop-blur-xl);
    backdrop-filter: var(--backdrop-blur-xl);
    border-color: var(--slate-080);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 30px var(--slate-050), inset 0 1px 0 var(--white-030);
}

[data-theme="light"] .platform-button.secondary {
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: var(--backdrop-blur-md);
    backdrop-filter: var(--backdrop-blur-md);
    color: var(--slate-095);
    border-color: var(--slate-040);
    box-shadow: 0 6px 20px rgba(71, 85, 105, 0.25), inset 0 1px 0 var(--white-030);
}

[data-theme="light"] .platform-button.secondary:hover {
    background: rgba(71, 85, 105, 0.2);
    -webkit-backdrop-filter: var(--backdrop-blur-xl);
    backdrop-filter: var(--backdrop-blur-xl);
    color: rgba(30, 41, 59, 1);
    border-color: var(--slate-060);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 30px rgba(71, 85, 105, 0.35), inset 0 1px 0 var(--white-040);
}

/* ===========================
   Internet Explorer Fallbacks & Additional CSS Compatibility
   =========================== */

/* CSS Custom Properties fallbacks for IE */
.ie-fallback {
    background-color: #000011 !important;
    color: #ffffff !important;
}

/* Flexbox fallbacks for IE9-10 */
@supports not (display: flex) {
    .cta-card-horizontal {
        display: table;
        width: 100%;
    }

    .cta-content,
    .cta-stats {
        display: table-cell;
        vertical-align: middle;
    }

    .control-panel {
        display: block;
    }

    .control-panel button {
        display: inline-block;
        vertical-align: top;
    }

    .nav-menu {
        display: block;
    }

    .nav-menu .nav-link {
        display: inline-block;
    }
}

/* Grid fallback for older browsers */
@supports not (display: grid) {
    .planet-stats {
        display: flex;
        flex-wrap: wrap;
    }

    .stat-item {
        width: calc(50% - 8px);
        display: inline-block;
        margin: 4px;
        vertical-align: top;
    }
}


/* Transform fallbacks */
@supports not (transform: translateZ(0)) {

    .cta-card-horizontal:hover {
        margin-top: -12px;
    }

    .cta-stats span:hover {
        margin-top: -3px;
    }
}

/* Backdrop-filter fallbacks for browsers without support */
-webkit-backdrop-filter: var(--backdrop-blur-sm)) {
    ;

    @supports not (backdrop-filter: var(--backdrop-blur-sm)) {
        .planet-info-panel {
            background: rgba(0, 0, 0, 0.9);
        }

        .cta-card-horizontal {
            background: rgba(0, 0, 17, 0.95);
        }

        .control-panel {
            background: rgba(0, 0, 0, 0.8);
        }

        [data-theme=dark] .navbar {
            background: rgba(10, 20, 40, 0.75);
            backdrop-filter: blur(20px) saturate(180%);
            -webkit-backdrop-filter: blur(20px) saturate(180%);
        }

        [data-theme=light] .navbar {
            background: rgba(248, 250, 252, 0.75) !important;
            backdrop-filter: blur(20px) saturate(200%) !important;
            -webkit-backdrop-filter: blur(20px) saturate(200%) !important;
        }

        .nav-menu {
            background: rgba(0, 0, 17, 0.95);
        }

        .loading-screen {
            background: #000011;
        }

        .cta-logo-static {
            background: var(--panel-bg-active);
        }

        .cta-stats span {
            background: var(--white-020);
        }

        .cta-stats span:hover {
            background: var(--white-025);
        }
    }

    /* CSS Variables fallbacks for IE */
    .no-css-vars .planet-info-panel {
        background: var(--panel-bg);
        border: 1px solid var(--panel-border);
        color: #ffffff;
    }

    .no-css-vars .control-btn {
        background: var(--accent-bg-hover);
        color: #ffffff;
    }

    .no-css-vars .navbar {
        background: var(--accent-bg);
        border-bottom: 1px solid rgba(14, 165, 233, 0.2);
    }

    /* Position sticky fallback */
    @supports not (position: sticky) {
        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
        }

        body {
            padding-top: 80px;
        }
    }

    /* CSS animations fallbacks for IE */
    @media screen and (-ms-high-contrast: active),
    (-ms-high-contrast: none) {

        .loading-particles .particle {
            animation: none;
        }

        .planet-icon {
            animation: none;
        }
    }

    /* Object-fit fallback for IE */
    @supports not (object-fit: cover) {
        .planet-icon img {
            width: 100%;
            height: 100%;
        }
    }

    /* CSS calc() fallbacks */
    @supports not (width: calc(100% - 2rem)) {
        .cta-card-horizontal {
            width: 96%;
            margin: 0 2%;
        }
    }

    /* Viewport units fallbacks for older browsers */
    @supports not (height: 100vh) {
        .loading-screen {
            height: 100%;
            min-height: 600px;
        }

        .css-solar-system {
            width: 300px;
            height: 300px;
        }
    }

    /* Filter effects fallbacks */
    @supports not (filter: var(--backdrop-blur-sm)) {

        .cta-logo-static .cosmic-icon {
            text-shadow: 0 0 12px rgba(14, 165, 233, 0.8);
        }
    }

    /* Webkit-specific fallbacks for older Safari */
    -webkit-backdrop-filter: var(--backdrop-blur-sm))) {
        ;

        @supports (-webkit-appearance: none) and (not (backdrop-filter: var(--backdrop-blur-sm))) {
            .planet-info-panel {
                -webkit-backdrop-filter: var(--backdrop-blur-sm);
                background: rgba(0, 0, 0, 0.7);
            }

            .cta-card-horizontal {
                -webkit-backdrop-filter: blur(12px);
                background: rgba(0, 0, 17, 0.85);
            }
        }

        /* Mozilla-specific fallbacks */

        /* Reduced motion support for accessibility and older browsers */
        @media (prefers-reduced-motion: reduce) {

            *,
            *::before,
            *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
                scroll-behavior: auto !important;
            }


            .loading-particles .particle {
                animation: none;
            }

            .cta-logo-static {
                animation: none;
            }

            .cta-logo-static .cosmic-icon {
                animation: none;
            }
        }

        /* High contrast mode support */
        @media (prefers-contrast: high) {
            .planet-info-panel {
                background: rgba(0, 0, 0, 0.95);
                border: 2px solid #ffffff;
            }

            .control-btn {
                background: #000000;
                border: 2px solid #ffffff;
                color: #ffffff;
            }

            .nav-link {
                border-bottom: 1px solid transparent;
            }

            .nav-link.active,
            .nav-link:hover {
                border-bottom-color: #ffffff;
            }
        }

        .cta-actions {
            display: flex;
            flex-direction: column;
            gap: 12px;
            z-index: 1;
            position: relative;
        }

        .cta-actions .platform-button {
            min-width: 140px;
            padding: 12px 24px;
            font-size: 0.95rem;
        }

        .cta-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg,
                    rgba(14, 165, 233, 0.05) 0%,
                    rgba(59, 130, 246, 0.05) 50%,
                    rgba(139, 92, 246, 0.05) 100%);
            z-index: 0;
        }

        .cta-card>* {
            position: relative;
            z-index: 1;
        }

        .cta-card h2 {
            font-size: 2.5rem;
            font-weight: 800;
            background: linear-gradient(135deg, #0ea5e9, #3b82f6, #8b5cf6);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 20px;
        }

        .cta-card p {
            font-size: 1.3rem;
            color: rgba(255, 255, 255, 0.8);
            margin-bottom: 40px;
            line-height: 1.6;
        }

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

        .cosmic-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 16px 32px;
            background: var(--accent-bg-hover);
            -webkit-backdrop-filter: var(--backdrop-blur-lg);
            backdrop-filter: var(--backdrop-blur-lg);
            color: white;
            text-decoration: none;
            border-radius: 12px;
            font-weight: 600;
            font-size: 1.1rem;
            transition: all 0.3s ease;
            box-shadow: 0 1px 4px 0 rgb(14 165 233 / 6%), 0 1px 10px 0 rgba(0, 0, 0, 0.1), inset 0 1px 0 var(--white-015);
            border: 1px solid var(--white-020);
        }

        .cosmic-button:hover {
            transform: translateY(-2px);
            background: var(--panel-bg-active);
            -webkit-backdrop-filter: blur(25px) saturate(200%);
            backdrop-filter: blur(25px) saturate(200%);
            box-shadow: 0 12px 40px 0 rgba(14, 165, 233, 0.25),
                inset 0 1px 0 var(--white-020);
            border-color: var(--white-030);
        }

        .cosmic-button.secondary {
            background: var(--white-010);
            -webkit-backdrop-filter: var(--backdrop-blur-lg);
            backdrop-filter: var(--backdrop-blur-lg);
            border: 2px solid var(--white-020);
            box-shadow: 0 1px 4px 0 rgb(14 165 233 / 6%), 0 1px 10px 0 rgba(0, 0, 0, 0.1), inset 0 1px 0 var(--white-015);
        }

        .cosmic-button.secondary:hover {
            background: var(--white-015);
            border-color: var(--white-030);
            box-shadow: 0 8px 25px var(--white-030);
        }

        /* Platform Buttons for CTA - Matching Platform Card Style */
        .platform-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 14px 28px;
            text-decoration: none;
            border-radius: 12px;
            font-weight: 600;
            font-size: 1rem;
            transition: all 0.3s ease;
            border: 2px solid transparent;
            position: relative;
            overflow: hidden;
        }

        .platform-button.primary {
            background: linear-gradient(135deg, rgba(14, 165, 233, 0.95), rgba(59, 130, 246, 0.9));
            -webkit-backdrop-filter: var(--backdrop-blur-lg);
            backdrop-filter: var(--backdrop-blur-lg);
            color: white;
            border-color: rgba(14, 165, 233, 0.6);
            position: relative;
            overflow: hidden;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .platform-button.primary::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, var(--white-030), transparent);
            transition: left 0.6s ease;
        }

        .platform-button.primary:hover::before {
            left: 100%;
        }

        .platform-button.primary:hover {
            background: linear-gradient(135deg, rgba(14, 165, 233, 1), rgba(59, 130, 246, 0.95));
            -webkit-backdrop-filter: blur(25px) saturate(200%);
            backdrop-filter: blur(25px) saturate(200%);
            border-color: rgba(14, 165, 233, 0.8);
            transform: translateY(-4px) scale(1.02);
            box-shadow: 0 10px 30px rgba(14, 165, 233, 0.5),
                inset 0 1px 0 var(--white-020);
        }

        .platform-button.secondary {
            background: linear-gradient(135deg, var(--white-015), var(--white-010));
            -webkit-backdrop-filter: var(--backdrop-blur-lg);
            backdrop-filter: var(--backdrop-blur-lg);
            color: rgba(255, 255, 255, 0.95);
            border-color: rgba(14, 165, 233, 0.4);
            position: relative;
            overflow: hidden;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .platform-button.secondary::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.2), transparent);
            transition: left 0.6s ease;
        }

        .platform-button.secondary:hover::before {
            left: 100%;
        }

        .platform-button.secondary:hover {
            background: linear-gradient(135deg, rgba(14, 165, 233, 0.25), rgba(59, 130, 246, 0.2));
            -webkit-backdrop-filter: blur(25px) saturate(200%);
            backdrop-filter: blur(25px) saturate(200%);
            border-color: rgba(14, 165, 233, 0.7);
            transform: translateY(-4px) scale(1.02);
            box-shadow: 0 10px 30px rgba(14, 165, 233, 0.35),
                inset 0 1px 0 var(--white-040);
        }


        /* Light Theme CTA Styles */
        [data-theme=light] .cta-card {
            background: var(--white-040);
            -webkit-backdrop-filter: var(--backdrop-blur-lg);
            backdrop-filter: var(--backdrop-blur-lg);
            border: 1px solid var(--white-030);
            box-shadow: 0 8px 32px 0 rgb(60 71 218 / 0%), inset 0 1px 0 var(--white-010);
        }

        [data-theme=light] .cta-card::before {
            background: linear-gradient(135deg,
                    rgba(71, 85, 105, 0.03) 0%,
                    rgba(100, 116, 139, 0.03) 50%,
                    rgba(148, 163, 184, 0.03) 100%);
        }

        [data-theme=light] .cta-card h2 {
            background: linear-gradient(135deg, #475569, #64748b, #94a3b8);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        [data-theme=light] .cta-card p {
            color: var(--slate-080);
        }

        [data-theme=light] .cosmic-button {
            background: rgba(71, 85, 105, 0.9);
            color: white;
            border: 2px solid var(--slate-050);
            box-shadow: 0 4px 15px var(--slate-030);
        }

        [data-theme=light] .cosmic-button:hover {
            background: var(--slate-100);
            border-color: var(--slate-080);
            box-shadow: 0 8px 25px var(--slate-040);
        }

        [data-theme=light] .cosmic-button.secondary {
            background: rgba(255, 255, 255, 0.6);
            -webkit-backdrop-filter: var(--backdrop-blur-sm);
            backdrop-filter: var(--backdrop-blur-sm);
            border: 2px solid var(--slate-030);
            color: var(--text-color);
            box-shadow: 0 4px 15px rgba(71, 85, 105, 0.2);
        }

        [data-theme=light] .cosmic-button.secondary:hover {
            background: rgba(71, 85, 105, 0.15);
            border-color: var(--slate-050);
            box-shadow: 0 8px 25px var(--slate-030);
        }

        /* Light Theme Platform Button Styles */
        [data-theme=light] .platform-button.primary {
            background: linear-gradient(135deg, var(--slate-095), rgba(100, 116, 139, 0.9));
            -webkit-backdrop-filter: var(--backdrop-blur-md);
            backdrop-filter: var(--backdrop-blur-md);
            color: white;
            border-color: var(--slate-060);
            box-shadow: 0 6px 20px var(--slate-040),
                inset 0 1px 0 var(--white-020);
        }

        [data-theme=light] .platform-button.primary:hover {
            background: linear-gradient(135deg, var(--slate-100), rgba(100, 116, 139, 0.95));
            -webkit-backdrop-filter: var(--backdrop-blur-xl);
            backdrop-filter: var(--backdrop-blur-xl);
            border-color: var(--slate-080);
            transform: translateY(-3px);
            box-shadow: 0 10px 30px var(--slate-050),
                inset 0 1px 0 var(--white-030);
        }

        [data-theme=light] .platform-button.secondary {
            background: rgba(255, 255, 255, 0.7);
            -webkit-backdrop-filter: var(--backdrop-blur-md);
            backdrop-filter: var(--backdrop-blur-md);
            color: var(--slate-095);
            border-color: var(--slate-040);
            box-shadow: 0 6px 20px rgba(71, 85, 105, 0.25),
                inset 0 1px 0 var(--white-030);
        }

        [data-theme=light] .platform-button.secondary:hover {
            background: rgba(71, 85, 105, 0.2);
            -webkit-backdrop-filter: var(--backdrop-blur-xl);
            backdrop-filter: var(--backdrop-blur-xl);
            border-color: var(--slate-060);
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(71, 85, 105, 0.35),
                inset 0 1px 0 var(--white-040);
        }


        /* Light Theme CTA Styles */
        [data-theme=light] .cta-card {
            background: var(--white-040);
            -webkit-backdrop-filter: var(--backdrop-blur-lg);
            backdrop-filter: var(--backdrop-blur-lg);
            border: 1px solid var(--white-030);
            box-shadow: 0 8px 32px 0 rgb(60 71 218 / 0%), inset 0 1px 0 var(--white-010);
        }

        [data-theme=light] .cta-card::before {
            background: linear-gradient(135deg,
                    rgba(71, 85, 105, 0.03) 0%,
                    rgba(100, 116, 139, 0.03) 50%,
                    rgba(148, 163, 184, 0.03) 100%);
        }

        [data-theme=light] .cta-card h2 {
            background: linear-gradient(135deg, #475569, #64748b, #94a3b8);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        [data-theme=light] .cta-card p {
            color: var(--slate-080);
        }

        [data-theme=light] .cosmic-button {
            background: rgba(71, 85, 105, 0.9);
            color: white;
            border: 2px solid var(--slate-050);
            box-shadow: 0 4px 15px var(--slate-030);
        }

        [data-theme=light] .cosmic-button:hover {
            background: var(--slate-100);
            border-color: var(--slate-080);
            box-shadow: 0 8px 25px var(--slate-040);
        }

        [data-theme=light] .cosmic-button.secondary {
            background: rgba(255, 255, 255, 0.6);
            -webkit-backdrop-filter: var(--backdrop-blur-sm);
            backdrop-filter: var(--backdrop-blur-sm);
            border: 2px solid var(--slate-030);
            color: var(--text-color);
            box-shadow: 0 4px 15px rgba(71, 85, 105, 0.2);
        }

        [data-theme=light] .cosmic-button.secondary:hover {
            background: rgba(71, 85, 105, 0.15);
            border-color: var(--slate-050);
            box-shadow: 0 8px 25px var(--slate-030);
        }

        /* Light Theme Platform Button Styles */
        [data-theme=light] .platform-button.primary {
            background: linear-gradient(135deg, var(--slate-095), rgba(100, 116, 139, 0.9));
            -webkit-backdrop-filter: var(--backdrop-blur-md);
            backdrop-filter: var(--backdrop-blur-md);
            color: white;
            border-color: var(--slate-060);
            box-shadow: 0 6px 20px var(--slate-040),
                inset 0 1px 0 var(--white-020);
        }

        [data-theme=light] .platform-button.primary:hover {
            background: linear-gradient(135deg, var(--slate-100), rgba(100, 116, 139, 0.95));
            -webkit-backdrop-filter: var(--backdrop-blur-xl);
            backdrop-filter: var(--backdrop-blur-xl);
            border-color: var(--slate-080);
            transform: translateY(-3px);
            box-shadow: 0 10px 30px var(--slate-050),
                inset 0 1px 0 var(--white-030);
        }

        [data-theme=light] .platform-button.secondary {
            background: rgba(255, 255, 255, 0.7);
            -webkit-backdrop-filter: var(--backdrop-blur-md);
            backdrop-filter: var(--backdrop-blur-md);
            color: var(--slate-095);
            border-color: var(--slate-040);
            box-shadow: 0 6px 20px rgba(71, 85, 105, 0.25),
                inset 0 1px 0 var(--white-030);
        }

        [data-theme=light] .platform-button.secondary:hover {
            background: rgba(71, 85, 105, 0.2);
            -webkit-backdrop-filter: var(--backdrop-blur-xl);
            backdrop-filter: var(--backdrop-blur-xl);
            border-color: var(--slate-060);
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(71, 85, 105, 0.35),
                inset 0 1px 0 var(--white-040);
        }


        /* Light Theme CTA Styles */
        [data-theme=light] .cta-card {
            background: var(--white-040);
            -webkit-backdrop-filter: var(--backdrop-blur-lg);
            backdrop-filter: var(--backdrop-blur-lg);
            border: 1px solid var(--white-030);
            box-shadow: 0 8px 32px 0 rgb(60 71 218 / 0%), inset 0 1px 0 var(--white-010);
        }

        [data-theme=light] .cta-card::before {
            background: linear-gradient(135deg,
                    rgba(71, 85, 105, 0.03) 0%,
                    rgba(100, 116, 139, 0.03) 50%,
                    rgba(148, 163, 184, 0.03) 100%);
        }

        [data-theme=light] .cta-card h2 {
            background: linear-gradient(135deg, #475569, #64748b, #94a3b8);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        [data-theme=light] .cta-card p {
            color: var(--slate-080);
        }

        [data-theme=light] .cosmic-button {
            background: rgba(71, 85, 105, 0.9);
            color: white;
            border: 2px solid var(--slate-050);
            box-shadow: 0 4px 15px var(--slate-030);
        }

        [data-theme=light] .cosmic-button:hover {
            background: var(--slate-100);
            border-color: var(--slate-080);
            box-shadow: 0 8px 25px var(--slate-040);
        }

        [data-theme=light] .cosmic-button.secondary {
            background: rgba(255, 255, 255, 0.6);
            -webkit-backdrop-filter: var(--backdrop-blur-sm);
            backdrop-filter: var(--backdrop-blur-sm);
            border: 2px solid var(--slate-030);
            color: var(--text-color);
            box-shadow: 0 4px 15px rgba(71, 85, 105, 0.2);
        }

        [data-theme=light] .cosmic-button.secondary:hover {
            background: rgba(71, 85, 105, 0.15);
            border-color: var(--slate-050);
            box-shadow: 0 8px 25px var(--slate-030);
        }

        /* Light Theme Platform Button Styles */
        [data-theme=light] .platform-button.primary {
            background: linear-gradient(135deg, var(--slate-095), rgba(100, 116, 139, 0.9));
            -webkit-backdrop-filter: var(--backdrop-blur-md);
            backdrop-filter: var(--backdrop-blur-md);
            color: white;
            border-color: var(--slate-060);
            box-shadow: 0 6px 20px var(--slate-040),
                inset 0 1px 0 var(--white-020);
        }

        [data-theme=light] .platform-button.primary:hover {
            background: linear-gradient(135deg, var(--slate-100), rgba(100, 116, 139, 0.95));
            -webkit-backdrop-filter: var(--backdrop-blur-xl);
            backdrop-filter: var(--backdrop-blur-xl);
            border-color: var(--slate-080);
            transform: translateY(-3px);
            box-shadow: 0 10px 30px var(--slate-050),
                inset 0 1px 0 var(--white-030);
        }

        [data-theme=light] .platform-button.secondary {
            background: rgba(255, 255, 255, 0.7);
            -webkit-backdrop-filter: var(--backdrop-blur-md);
            backdrop-filter: var(--backdrop-blur-md);
            color: var(--slate-095);
            border-color: var(--slate-040);
            box-shadow: 0 6px 20px rgba(71, 85, 105, 0.25),
                inset 0 1px 0 var(--white-030);
        }

        [data-theme=light] .platform-button.secondary:hover {
            background: rgba(71, 85, 105, 0.2);
            -webkit-backdrop-filter: var(--backdrop-blur-xl);
            backdrop-filter: var(--backdrop-blur-xl);
            border-color: var(--slate-060);
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(71, 85, 105, 0.35),
                inset 0 1px 0 var(--white-040);
        }


        /* Light Theme CTA Styles */
        [data-theme=light] .cta-card {
            background: var(--white-040);
            -webkit-backdrop-filter: var(--backdrop-blur-lg);
            backdrop-filter: var(--backdrop-blur-lg);
            border: 1px solid var(--white-030);
            box-shadow: 0 8px 32px 0 rgb(60 71 218 / 0%), inset 0 1px 0 var(--white-010);
        }

        [data-theme=light] .cta-card::before {
            background: linear-gradient(135deg,
                    rgba(71, 85, 105, 0.03) 0%,
                    rgba(100, 116, 139, 0.03) 50%,
                    rgba(148, 163, 184, 0.03) 100%);
        }

        [data-theme=light] .cta-card h2 {
            background: linear-gradient(135deg, #475569, #64748b, #94a3b8);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        [data-theme=light] .cta-card p {
            color: var(--slate-080);
        }

        [data-theme=light] .cosmic-button {
            background: rgba(71, 85, 105, 0.9);
            color: white;
            border: 2px solid var(--slate-050);
            box-shadow: 0 4px 15px var(--slate-030);
        }

        [data-theme=light] .cosmic-button:hover {
            background: var(--slate-100);
            border-color: var(--slate-080);
            box-shadow: 0 8px 25px var(--slate-040);
        }

        [data-theme=light] .cosmic-button.secondary {
            background: rgba(255, 255, 255, 0.6);
            -webkit-backdrop-filter: var(--backdrop-blur-sm);
            backdrop-filter: var(--backdrop-blur-sm);
            border: 2px solid var(--slate-030);
            color: var(--text-color);
            box-shadow: 0 4px 15px rgba(71, 85, 105, 0.2);
        }

        [data-theme=light] .cosmic-button.secondary:hover {
            background: rgba(71, 85, 105, 0.15);
            border-color: var(--slate-050);
            box-shadow: 0 8px 25px var(--slate-030);
        }

        /* Light Theme Platform Button Styles */
        [data-theme=light] .platform-button.primary {
            background: linear-gradient(135deg, var(--slate-095), rgba(100, 116, 139, 0.9));
            -webkit-backdrop-filter: var(--backdrop-blur-md);
            backdrop-filter: var(--backdrop-blur-md);
            color: white;
            border-color: var(--slate-060);
            box-shadow: 0 6px 20px var(--slate-040),
                inset 0 1px 0 var(--white-020);
        }

        [data-theme=light] .platform-button.primary:hover {
            background: linear-gradient(135deg, var(--slate-100), rgba(100, 116, 139, 0.95));
            -webkit-backdrop-filter: var(--backdrop-blur-xl);
            backdrop-filter: var(--backdrop-blur-xl);
            border-color: var(--slate-080);
            transform: translateY(-3px);
            box-shadow: 0 10px 30px var(--slate-050),
                inset 0 1px 0 var(--white-030);
        }

        [data-theme=light] .platform-button.secondary {
            background: rgba(255, 255, 255, 0.7);
            -webkit-backdrop-filter: var(--backdrop-blur-md);
            backdrop-filter: var(--backdrop-blur-md);
            color: var(--slate-095);
            border-color: var(--slate-040);
            box-shadow: 0 6px 20px rgba(71, 85, 105, 0.25),
                inset 0 1px 0 var(--white-030);
        }

        [data-theme=light] .platform-button.secondary:hover {
            background: rgba(71, 85, 105, 0.2);
            -webkit-backdrop-filter: var(--backdrop-blur-xl);
            backdrop-filter: var(--backdrop-blur-xl);
            border-color: var(--slate-060);
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(71, 85, 105, 0.35),
                inset 0 1px 0 var(--white-040);
        }


        /* Light Theme CTA Styles */
        [data-theme=light] .cta-card {
            background: var(--white-040);
            -webkit-backdrop-filter: var(--backdrop-blur-lg);
            backdrop-filter: var(--backdrop-blur-lg);
            border: 1px solid var(--white-030);
            box-shadow: 0 8px 32px 0 rgb(60 71 218 / 0%), inset 0 1px 0 var(--white-010);
        }

        [data-theme=light] .cta-card::before {
            background: linear-gradient(135deg,
                    rgba(71, 85, 105, 0.03) 0%,
                    rgba(100, 116, 139, 0.03) 50%,
                    rgba(148, 163, 184, 0.03) 100%);
        }

        [data-theme=light] .cta-card h2 {
            background: linear-gradient(135deg, #475569, #64748b, #94a3b8);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        [data-theme=light] .cta-card p {
            color: var(--slate-080);
        }

        [data-theme=light] .cosmic-button {
            background: rgba(71, 85, 105, 0.9);
            color: white;
            border: 2px solid var(--slate-050);
            box-shadow: 0 4px 15px var(--slate-030);
        }

        [data-theme=light] .cosmic-button:hover {
            background: var(--slate-100);
            border-color: var(--slate-080);
            box-shadow: 0 8px 25px var(--slate-040);
        }

        [data-theme=light] .cosmic-button.secondary {
            background: rgba(255, 255, 255, 0.6);
            -webkit-backdrop-filter: var(--backdrop-blur-sm);
            backdrop-filter: var(--backdrop-blur-sm);
            border: 2px solid var(--slate-030);
            color: var(--text-color);
            box-shadow: 0 4px 15px rgba(71, 85, 105, 0.2);
        }

        [data-theme=light] .cosmic-button.secondary:hover {
            background: rgba(71, 85, 105, 0.15);
            border-color: var(--slate-050);
            box-shadow: 0 8px 25px var(--slate-030);
        }

        /* Light Theme Platform Button Styles */
        [data-theme=light] .platform-button.primary {
            background: linear-gradient(135deg, var(--slate-095), rgba(100, 116, 139, 0.9));
            -webkit-backdrop-filter: var(--backdrop-blur-md);
            backdrop-filter: var(--backdrop-blur-md);
            color: white;
            border-color: var(--slate-060);
            box-shadow: 0 6px 20px var(--slate-040),
                inset 0 1px 0 var(--white-020);
        }

        [data-theme=light] .platform-button.primary:hover {
            background: linear-gradient(135deg, var(--slate-100), rgba(100, 116, 139, 0.95));
            -webkit-backdrop-filter: var(--backdrop-blur-xl);
            backdrop-filter: var(--backdrop-blur-xl);
            border-color: var(--slate-080);
            transform: translateY(-3px);
            box-shadow: 0 10px 30px var(--slate-050),
                inset 0 1px 0 var(--white-030);
        }

        [data-theme=light] .platform-button.secondary {
            background: rgba(255, 255, 255, 0.7);
            -webkit-backdrop-filter: var(--backdrop-blur-md);
            backdrop-filter: var(--backdrop-blur-md);
            color: var(--slate-095);
            border-color: var(--slate-040);
            box-shadow: 0 6px 20px rgba(71, 85, 105, 0.25),
                inset 0 1px 0 var(--white-030);
        }

        [data-theme=light] .platform-button.secondary:hover {
            background: rgba(71, 85, 105, 0.2);
            -webkit-backdrop-filter: var(--backdrop-blur-xl);
            backdrop-filter: var(--backdrop-blur-xl);
            border-color: var(--slate-060);
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(71, 85, 105, 0.35),
                inset 0 1px 0 var(--white-040);
        }


        /* Light Theme CTA Styles */
        [data-theme=light] .cta-card {
            background: var(--white-040);
            -webkit-backdrop-filter: var(--backdrop-blur-lg);
            backdrop-filter: var(--backdrop-blur-lg);
            border: 1px solid var(--white-030);
            box-shadow: 0 8px 32px 0 rgb(60 71 218 / 0%), inset 0 1px 0 var(--white-010);
        }

        [data-theme=light] .cta-card::before {
            background: linear-gradient(135deg,
                    rgba(71, 85, 105, 0.03) 0%,
                    rgba(100, 116, 139, 0.03) 50%,
                    rgba(148, 163, 184, 0.03) 100%);
        }

        [data-theme=light] .cta-card h2 {
            background: linear-gradient(135deg, #475569, #64748b, #94a3b8);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        [data-theme=light] .cta-card p {
            color: var(--slate-080);
        }

        [data-theme=light] .cosmic-button {
            background: rgba(71, 85, 105, 0.9);
            color: white;
            border: 2px solid var(--slate-050);
            box-shadow: 0 4px 15px var(--slate-030);
        }

        [data-theme=light] .cosmic-button:hover {
            background: var(--slate-100);
            border-color: var(--slate-080);
            box-shadow: 0 8px 25px var(--slate-040);
        }

        [data-theme=light] .cosmic-button.secondary {
            background: rgba(255, 255, 255, 0.6);
            -webkit-backdrop-filter: var(--backdrop-blur-sm);
            backdrop-filter: var(--backdrop-blur-sm);
            border: 2px solid var(--slate-030);
            color: var(--text-color);
            box-shadow: 0 4px 15px rgba(71, 85, 105, 0.2);
        }

        [data-theme=light] .cosmic-button.secondary:hover {
            background: rgba(71, 85, 105, 0.15);
            border-color: var(--slate-050);
            box-shadow: 0 8px 25px var(--slate-030);
        }

        /* Light Theme Platform Button Styles */
        [data-theme=light] .platform-button.primary {
            background: linear-gradient(135deg, var(--slate-095), rgba(100, 116, 139, 0.9));
            -webkit-backdrop-filter: var(--backdrop-blur-md);
            backdrop-filter: var(--backdrop-blur-md);
            color: white;
            border-color: var(--slate-060);
            box-shadow: 0 6px 20px var(--slate-040),
                inset 0 1px 0 var(--white-020);
        }

        [data-theme=light] .platform-button.primary:hover {
            background: linear-gradient(135deg, var(--slate-100), rgba(100, 116, 139, 0.95));
            -webkit-backdrop-filter: var(--backdrop-blur-xl);
            backdrop-filter: var(--backdrop-blur-xl);
            border-color: var(--slate-080);
            transform: translateY(-3px);
            box-shadow: 0 10px 30px var(--slate-050),
                inset 0 1px 0 var(--white-030);
        }

        [data-theme=light] .platform-button.secondary {
            background: rgba(255, 255, 255, 0.7);
            -webkit-backdrop-filter: var(--backdrop-blur-md);
            backdrop-filter: var(--backdrop-blur-md);
            color: var(--slate-095);
            border-color: var(--slate-040);
            box-shadow: 0 6px 20px rgba(71, 85, 105, 0.25),
                inset 0 1px 0 var(--white-030);
        }

        [data-theme=light] .platform-button.secondary:hover {
            background: rgba(71, 85, 105, 0.2);
            -webkit-backdrop-filter: var(--backdrop-blur-xl);
            backdrop-filter: var(--backdrop-blur-xl);
            border-color: var(--slate-060);
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(71, 85, 105, 0.35),
                inset 0 1px 0 var(--white-040);
        }


        /* Light Theme CTA Styles */
        [data-theme=light] .cta-card {
            background: var(--white-040);
            -webkit-backdrop-filter: var(--backdrop-blur-lg);
            backdrop-filter: var(--backdrop-blur-lg);
            border: 1px solid var(--white-030);
            box-shadow: 0 8px 32px 0 rgb(60 71 218 / 0%), inset 0 1px 0 var(--white-010);
        }

        [data-theme=light] .cta-card::before {
            background: linear-gradient(135deg,
                    rgba(71, 85, 105, 0.03) 0%,
                    rgba(100, 116, 139, 0.03) 50%,
                    rgba(148, 163, 184, 0.03) 100%);
        }

        [data-theme=light] .cta-card h2 {
            background: linear-gradient(135deg, #475569, #64748b, #94a3b8);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        [data-theme=light] .cta-card p {
            color: var(--slate-080);
        }

        [data-theme=light] .cosmic-button {
            background: rgba(71, 85, 105, 0.9);
            color: white;
            border: 2px solid var(--slate-050);
            box-shadow: 0 4px 15px var(--slate-030);
        }

        [data-theme=light] .cosmic-button:hover {
            background: var(--slate-100);
            border-color: var(--slate-080);
            box-shadow: 0 8px 25px var(--slate-040);
        }

        [data-theme=light] .cosmic-button.secondary {
            background: rgba(255, 255, 255, 0.6);
            -webkit-backdrop-filter: var(--backdrop-blur-sm);
            backdrop-filter: var(--backdrop-blur-sm);
            border: 2px solid var(--slate-030);
            color: var(--text-color);
            box-shadow: 0 4px 15px rgba(71, 85, 105, 0.2);
        }

        [data-theme=light] .cosmic-button.secondary:hover {
            background: rgba(71, 85, 105, 0.15);
            border-color: var(--slate-050);
            box-shadow: 0 8px 25px var(--slate-030);
        }

        /* Light Theme Platform Button Styles */
        [data-theme=light] .platform-button.primary {
            background: linear-gradient(135deg, var(--slate-095), rgba(100, 116, 139, 0.9));
            -webkit-backdrop-filter: var(--backdrop-blur-md);
            backdrop-filter: var(--backdrop-blur-md);
            color: white;
            border-color: var(--slate-060);
            box-shadow: 0 6px 20px var(--slate-040),
                inset 0 1px 0 var(--white-020);
        }

        [data-theme=light] .platform-button.primary:hover {
            background: linear-gradient(135deg, var(--slate-100), rgba(100, 116, 139, 0.95));
            -webkit-backdrop-filter: var(--backdrop-blur-xl);
            backdrop-filter: var(--backdrop-blur-xl);
            border-color: var(--slate-080);
            transform: translateY(-3px);
            box-shadow: 0 10px 30px var(--slate-050),
                inset 0 1px 0 var(--white-030);
        }

        [data-theme=light] .platform-button.secondary {
            background: rgba(255, 255, 255, 0.7);
            -webkit-backdrop-filter: var(--backdrop-blur-md);
            backdrop-filter: var(--backdrop-blur-md);
            color: var(--slate-095);
            border-color: var(--slate-040);
            box-shadow: 0 6px 20px rgba(71, 85, 105, 0.25),
                inset 0 1px 0 var(--white-030);
        }

        [data-theme=light] .platform-button.secondary:hover {
            background: rgba(71, 85, 105, 0.2);
            -webkit-backdrop-filter: var(--backdrop-blur-xl);
            backdrop-filter: var(--backdrop-blur-xl);
            border-color: var(--slate-060);
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(71, 85, 105, 0.35),
                inset 0 1px 0 var(--white-040);
        }


        /* Light Theme CTA Styles */
        [data-theme=light] .cta-card {
            background: var(--white-040);
            -webkit-backdrop-filter: var(--backdrop-blur-lg);
            backdrop-filter: var(--backdrop-blur-lg);
            border: 1px solid var(--white-030);
            box-shadow: 0 8px 32px 0 rgb(60 71 218 / 0%), inset 0 1px 0 var(--white-010);
        }

        [data-theme=light] .cta-card::before {
            background: linear-gradient(135deg,
                    rgba(71, 85, 105, 0.03) 0%,
                    rgba(100, 116, 139, 0.03) 50%,
                    rgba(148, 163, 184, 0.03) 100%);
        }

        [data-theme=light] .cta-card h2 {
            background: linear-gradient(135deg, #475569, #64748b, #94a3b8);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        [data-theme=light] .cta-card p {
            color: var(--slate-080);
        }

        [data-theme=light] .cosmic-button {
            background: rgba(71, 85, 105, 0.9);
            color: white;
            border: 2px solid var(--slate-050);
            box-shadow: 0 4px 15px var(--slate-030);
        }

        [data-theme=light] .cosmic-button:hover {
            background: var(--slate-100);
            border-color: var(--slate-080);
            box-shadow: 0 8px 25px var(--slate-040);
        }

        [data-theme=light] .cosmic-button.secondary {
            background: rgba(255, 255, 255, 0.6);
            -webkit-backdrop-filter: var(--backdrop-blur-sm);
            backdrop-filter: var(--backdrop-blur-sm);
            border: 2px solid var(--slate-030);
            color: var(--text-color);
            box-shadow: 0 4px 15px rgba(71, 85, 105, 0.2);
        }

        [data-theme=light] .cosmic-button.secondary:hover {
            background: rgba(71, 85, 105, 0.15);
            border-color: var(--slate-050);
            box-shadow: 0 8px 25px var(--slate-030);
        }

        /* Light Theme Platform Button Styles */
        [data-theme=light] .platform-button.primary {
            background: linear-gradient(135deg, var(--slate-095), rgba(100, 116, 139, 0.9));
            -webkit-backdrop-filter: var(--backdrop-blur-md);
            backdrop-filter: var(--backdrop-blur-md);
            color: white;
            border-color: var(--slate-060);
            box-shadow: 0 6px 20px var(--slate-040),
                inset 0 1px 0 var(--white-020);
        }

        [data-theme=light] .platform-button.primary:hover {
            background: linear-gradient(135deg, var(--slate-100), rgba(100, 116, 139, 0.95));
            -webkit-backdrop-filter: var(--backdrop-blur-xl);
            backdrop-filter: var(--backdrop-blur-xl);
            border-color: var(--slate-080);
            transform: translateY(-3px);
            box-shadow: 0 10px 30px var(--slate-050),
                inset 0 1px 0 var(--white-030);
        }

        [data-theme=light] .platform-button.secondary {
            background: rgba(255, 255, 255, 0.7);
            -webkit-backdrop-filter: var(--backdrop-blur-md);
            backdrop-filter: var(--backdrop-blur-md);
            color: var(--slate-095);
            border-color: var(--slate-040);
            box-shadow: 0 6px 20px rgba(71, 85, 105, 0.25),
                inset 0 1px 0 var(--white-030);
        }

        [data-theme=light] .platform-button.secondary:hover {
            background: rgba(71, 85, 105, 0.2);
            -webkit-backdrop-filter: var(--backdrop-blur-xl);
            backdrop-filter: var(--backdrop-blur-xl);
            border-color: var(--slate-060);
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(71, 85, 105, 0.35),
                inset 0 1px 0 var(--white-040);
        }


        /* Light Theme CTA Styles */
        [data-theme=light] .cta-card {
            background: var(--white-040);
            -webkit-backdrop-filter: var(--backdrop-blur-lg);
            backdrop-filter: var(--backdrop-blur-lg);
            border: 1px solid var(--white-030);
            box-shadow: 0 8px 32px 0 rgb(60 71 218 / 0%), inset 0 1px 0 var(--white-010);
        }

        [data-theme=light] .cta-card::before {
            background: linear-gradient(135deg,
                    rgba(71, 85, 105, 0.03) 0%,
                    rgba(100, 116, 139, 0.03) 50%,
                    rgba(148, 163, 184, 0.03) 100%);
        }

        [data-theme=light] .cta-card h2 {
            background: linear-gradient(135deg, #475569, #64748b, #94a3b8);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        [data-theme=light] .cta-card p {
            color: var(--slate-080);
        }

        [data-theme=light] .cosmic-button {
            background: rgba(71, 85, 105, 0.9);
            color: white;
            border: 2px solid var(--slate-050);
            box-shadow: 0 4px 15px var(--slate-030);
        }

        [data-theme=light] .cosmic-button:hover {
            background: var(--slate-100);
            border-color: var(--slate-080);
            box-shadow: 0 8px 25px var(--slate-040);
        }

        [data-theme=light] .cosmic-button.secondary {
            background: rgba(255, 255, 255, 0.6);
            -webkit-backdrop-filter: var(--backdrop-blur-sm);
            backdrop-filter: var(--backdrop-blur-sm);
            border: 2px solid var(--slate-030);
            color: var(--text-color);
            box-shadow: 0 4px 15px rgba(71, 85, 105, 0.2);
        }

        [data-theme=light] .cosmic-button.secondary:hover {
            background: rgba(71, 85, 105, 0.15);
            border-color: var(--slate-050);
            box-shadow: 0 8px 25px var(--slate-030);
        }

        /* Light Theme Platform Button Styles */
        [data-theme=light] .platform-button.primary {
            background: linear-gradient(135deg, var(--slate-095), rgba(100, 116, 139, 0.9));
            -webkit-backdrop-filter: var(--backdrop-blur-md);
            backdrop-filter: var(--backdrop-blur-md);
            color: white;
            border-color: var(--slate-060);
            box-shadow: 0 6px 20px var(--slate-040),
                inset 0 1px 0 var(--white-020);
        }

        [data-theme=light] .platform-button.primary:hover {
            background: linear-gradient(135deg, var(--slate-100), rgba(100, 116, 139, 0.95));
            -webkit-backdrop-filter: var(--backdrop-blur-xl);
            backdrop-filter: var(--backdrop-blur-xl);
            border-color: var(--slate-080);
            transform: translateY(-3px);
            box-shadow: 0 10px 30px var(--slate-050),
                inset 0 1px 0 var(--white-030);
        }

        [data-theme=light] .platform-button.secondary {
            background: rgba(255, 255, 255, 0.7);
            -webkit-backdrop-filter: var(--backdrop-blur-md);
            backdrop-filter: var(--backdrop-blur-md);
            color: var(--slate-095);
            border-color: var(--slate-040);
            box-shadow: 0 6px 20px rgba(71, 85, 105, 0.25),
                inset 0 1px 0 var(--white-030);
        }

        [data-theme=light] .platform-button.secondary:hover {
            background: rgba(71, 85, 105, 0.2);
            -webkit-backdrop-filter: var(--backdrop-blur-xl);
            backdrop-filter: var(--backdrop-blur-xl);
            border-color: var(--slate-060);
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(71, 85, 105, 0.35),
                inset 0 1px 0 var(--white-040);
        }


        /* Light Theme CTA Styles */
        [data-theme=light] .cta-card {
            background: var(--white-040);
            -webkit-backdrop-filter: var(--backdrop-blur-lg);
            backdrop-filter: var(--backdrop-blur-lg);
            border: 1px solid var(--white-030);
            box-shadow: 0 8px 32px 0 rgb(60 71 218 / 0%), inset 0 1px 0 var(--white-010);
        }

        [data-theme=light] .cta-card::before {
            background: linear-gradient(135deg,
                    rgba(71, 85, 105, 0.03) 0%,
                    rgba(100, 116, 139, 0.03) 50%,
                    rgba(148, 163, 184, 0.03) 100%);
        }

        [data-theme=light] .cta-card h2 {
            background: linear-gradient(135deg, #475569, #64748b, #94a3b8);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        [data-theme=light] .cta-card p {
            color: var(--slate-080);
        }

        [data-theme=light] .cosmic-button {
            background: rgba(71, 85, 105, 0.9);
            color: white;
            border: 2px solid var(--slate-050);
            box-shadow: 0 4px 15px var(--slate-030);
        }

        [data-theme=light] .cosmic-button:hover {
            background: var(--slate-100);
            border-color: var(--slate-080);
            box-shadow: 0 8px 25px var(--slate-040);
        }

        [data-theme=light] .cosmic-button.secondary {
            background: rgba(255, 255, 255, 0.6);
            -webkit-backdrop-filter: var(--backdrop-blur-sm);
            backdrop-filter: var(--backdrop-blur-sm);
            border: 2px solid var(--slate-030);
            color: var(--text-color);
            box-shadow: 0 4px 15px rgba(71, 85, 105, 0.2);
        }

        [data-theme=light] .cosmic-button.secondary:hover {
            background: rgba(71, 85, 105, 0.15);
            border-color: var(--slate-050);
            box-shadow: 0 8px 25px var(--slate-030);
        }

        /* Light Theme Platform Button Styles */
        [data-theme=light] .platform-button.primary {
            background: linear-gradient(135deg, var(--slate-095), rgba(100, 116, 139, 0.9));
            -webkit-backdrop-filter: var(--backdrop-blur-md);
            backdrop-filter: var(--backdrop-blur-md);
            color: white;
            border-color: var(--slate-060);
            box-shadow: 0 6px 20px var(--slate-040),
                inset 0 1px 0 var(--white-020);
        }

        [data-theme=light] .platform-button.primary:hover {
            background: linear-gradient(135deg, var(--slate-100), rgba(100, 116, 139, 0.95));
            -webkit-backdrop-filter: var(--backdrop-blur-xl);
            backdrop-filter: var(--backdrop-blur-xl);
            border-color: var(--slate-080);
            transform: translateY(-3px);
            box-shadow: 0 10px 30px var(--slate-050),
                inset 0 1px 0 var(--white-030);
        }

        [data-theme=light] .platform-button.secondary {
            background: rgba(255, 255, 255, 0.7);
            -webkit-backdrop-filter: var(--backdrop-blur-md);
            backdrop-filter: var(--backdrop-blur-md);
            color: var(--slate-095);
            border-color: var(--slate-040);
            box-shadow: 0 6px 20px rgba(71, 85, 105, 0.25),
                inset 0 1px 0 var(--white-030);
        }

        [data-theme=light] .platform-button.secondary:hover {
            background: rgba(71, 85, 105, 0.2);
            -webkit-backdrop-filter: var(--backdrop-blur-xl);
            backdrop-filter: var(--backdrop-blur-xl);
            border-color: var(--slate-060);
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(71, 85, 105, 0.35),
                inset 0 1px 0 var(--white-040);
        }


        /* Light Theme CTA Styles */
        [data-theme=light] .cta-card {
            background: var(--white-040);
            -webkit-backdrop-filter: var(--backdrop-blur-lg);
            backdrop-filter: var(--backdrop-blur-lg);
            border: 1px solid var(--white-030);
            box-shadow: 0 8px 32px 0 rgb(60 71 218 / 0%), inset 0 1px 0 var(--white-010);
        }

        [data-theme=light] .cta-card::before {
            background: linear-gradient(135deg,
                    rgba(71, 85, 105, 0.03) 0%,
                    rgba(100, 116, 139, 0.03) 50%,
                    rgba(148, 163, 184, 0.03) 100%);
        }

        [data-theme=light] .cta-card h2 {
            background: linear-gradient(135deg, #475569, #64748b, #94a3b8);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        [data-theme=light] .cta-card p {
            color: var(--slate-080);
        }

        [data-theme=light] .cosmic-button {
            background: rgba(71, 85, 105, 0.9);
            color: white;
            border: 2px solid var(--slate-050);
            box-shadow: 0 4px 15px var(--slate-030);
        }

        [data-theme=light] .cosmic-button:hover {
            background: var(--slate-100);
            border-color: var(--slate-080);
            box-shadow: 0 8px 25px var(--slate-040);
        }

        [data-theme=light] .cosmic-button.secondary {
            background: rgba(255, 255, 255, 0.6);
            -webkit-backdrop-filter: var(--backdrop-blur-sm);
            backdrop-filter: var(--backdrop-blur-sm);
            border: 2px solid var(--slate-030);
            color: var(--text-color);
            box-shadow: 0 4px 15px rgba(71, 85, 105, 0.2);
        }

        [data-theme=light] .cosmic-button.secondary:hover {
            background: rgba(71, 85, 105, 0.15);
            border-color: var(--slate-050);
            box-shadow: 0 8px 25px var(--slate-030);
        }

        /* Light Theme Platform Button Styles */
        [data-theme=light] .platform-button.primary {
            background: linear-gradient(135deg, var(--slate-095), rgba(100, 116, 139, 0.9));
            -webkit-backdrop-filter: var(--backdrop-blur-md);
            backdrop-filter: var(--backdrop-blur-md);
            color: white;
            border-color: var(--slate-060);
            box-shadow: 0 6px 20px var(--slate-040),
                inset 0 1px 0 var(--white-020);
        }

        [data-theme=light] .platform-button.primary:hover {
            background: linear-gradient(135deg, var(--slate-100), rgba(100, 116, 139, 0.95));
            -webkit-backdrop-filter: var(--backdrop-blur-xl);
            backdrop-filter: var(--backdrop-blur-xl);
            border-color: var(--slate-080);
            transform: translateY(-3px);
            box-shadow: 0 10px 30px var(--slate-050),
                inset 0 1px 0 var(--white-030);
        }

        [data-theme=light] .platform-button.secondary {
            background: rgba(255, 255, 255, 0.7);
            -webkit-backdrop-filter: var(--backdrop-blur-md);
            backdrop-filter: var(--backdrop-blur-md);
            color: var(--slate-095);
            border-color: var(--slate-040);
            box-shadow: 0 6px 20px rgba(71, 85, 105, 0.25),
                inset 0 1px 0 var(--white-030);
        }

        [data-theme=light] .platform-button.secondary:hover {
            background: rgba(71, 85, 105, 0.2);
            -webkit-backdrop-filter: var(--backdrop-blur-xl);
            backdrop-filter: var(--backdrop-blur-xl);
            border-color: var(--slate-060);
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(71, 85, 105, 0.35),
                inset 0 1px 0 var(--white-040);
        }


        /* Light Theme CTA Styles */
        [data-theme=light] .cta-card {
            background: var(--white-040);
            -webkit-backdrop-filter: var(--backdrop-blur-lg);
            backdrop-filter: var(--backdrop-blur-lg);
            border: 1px solid var(--white-030);
            box-shadow: 0 8px 32px 0 rgb(60 71 218 / 0%), inset 0 1px 0 var(--white-010);
        }

        [data-theme=light] .cta-card::before {
            background: linear-gradient(135deg,
                    rgba(71, 85, 105, 0.03) 0%,
                    rgba(100, 116, 139, 0.03) 50%,
                    rgba(148, 163, 184, 0.03) 100%);
        }

        [data-theme=light] .cta-card h2 {
            background: linear-gradient(135deg, #475569, #64748b, #94a3b8);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        [data-theme=light] .cta-card p {
            color: var(--slate-080);
        }

        [data-theme=light] .cosmic-button {
            background: rgba(71, 85, 105, 0.9);
            color: white;
            border: 2px solid var(--slate-050);
            box-shadow: 0 4px 15px var(--slate-030);
        }

        [data-theme=light] .cosmic-button:hover {
            background: var(--slate-100);
            border-color: var(--slate-080);
            box-shadow: 0 8px 25px var(--slate-040);
        }

        [data-theme=light] .cosmic-button.secondary {
            background: rgba(255, 255, 255, 0.6);
            -webkit-backdrop-filter: var(--backdrop-blur-sm);
            backdrop-filter: var(--backdrop-blur-sm);
            border: 2px solid var(--slate-030);
            color: var(--text-color);
            box-shadow: 0 4px 15px rgba(71, 85, 105, 0.2);
        }

        [data-theme=light] .cosmic-button.secondary:hover {
            background: rgba(71, 85, 105, 0.15);
            border-color: var(--slate-050);
            box-shadow: 0 8px 25px var(--slate-030);
        }

        /* Light Theme Platform Button Styles */
        [data-theme=light] .platform-button.primary {
            background: linear-gradient(135deg, var(--slate-095), rgba(100, 116, 139, 0.9));
            -webkit-backdrop-filter: var(--backdrop-blur-md);
            backdrop-filter: var(--backdrop-blur-md);
            color: white;
            border-color: var(--slate-060);
            box-shadow: 0 6px 20px var(--slate-040),
                inset 0 1px 0 var(--white-020);
        }

        [data-theme=light] .platform-button.primary:hover {
            background: linear-gradient(135deg, var(--slate-100), rgba(100, 116, 139, 0.95));
            -webkit-backdrop-filter: var(--backdrop-blur-xl);
            backdrop-filter: var(--backdrop-blur-xl);
            border-color: var(--slate-080);
            transform: translateY(-3px);
            box-shadow: 0 10px 30px var(--slate-050),
                inset 0 1px 0 var(--white-030);
        }

        [data-theme=light] .platform-button.secondary {
            background: rgba(255, 255, 255, 0.7);
            -webkit-backdrop-filter: var(--backdrop-blur-md);
            backdrop-filter: var(--backdrop-blur-md);
            color: var(--slate-095);
            border-color: var(--slate-040);
            box-shadow: 0 6px 20px rgba(71, 85, 105, 0.25),
                inset 0 1px 0 var(--white-030);
        }

        [data-theme=light] .platform-button.secondary:hover {
            background: rgba(71, 85, 105, 0.2);
            -webkit-backdrop-filter: var(--backdrop-blur-xl);
            backdrop-filter: var(--backdrop-blur-xl);
            border-color: var(--slate-060);
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(71, 85, 105, 0.35),
                inset 0 1px 0 var(--white-040);
        }


        /* Light Theme CTA Styles */
        [data-theme=light] .cta-card {
            background: var(--white-040);
            -webkit-backdrop-filter: var(--backdrop-blur-lg);
            backdrop-filter: var(--backdrop-blur-lg);
            border: 1px solid var(--white-030);
            box-shadow: 0 8px 32px 0 rgb(60 71 218 / 0%), inset 0 1px 0 var(--white-010);
        }

        [data-theme=light] .cta-card::before {
            background: linear-gradient(135deg,
                    rgba(71, 85, 105, 0.03) 0%,
                    rgba(100, 116, 139, 0.03) 50%,
                    rgba(148, 163, 184, 0.03) 100%);
        }

        [data-theme=light] .cta-card h2 {
            background: linear-gradient(135deg, #475569, #64748b, #94a3b8);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        [data-theme=light] .cta-card p {
            color: var(--slate-080);
        }

        [data-theme=light] .cosmic-button {
            background: rgba(71, 85, 105, 0.9);
            color: white;
            border: 2px solid var(--slate-050);
            box-shadow: 0 4px 15px var(--slate-030);
        }

        [data-theme=light] .cosmic-button:hover {
            background: var(--slate-100);
            border-color: var(--slate-080);
            box-shadow: 0 8px 25px var(--slate-040);
        }

        [data-theme=light] .cosmic-button.secondary {
            background: rgba(255, 255, 255, 0.6);
            -webkit-backdrop-filter: var(--backdrop-blur-sm);
            backdrop-filter: var(--backdrop-blur-sm);
            border: 2px solid var(--slate-030);
            color: var(--text-color);
            box-shadow: 0 4px 15px rgba(71, 85, 105, 0.2);
        }

        [data-theme=light] .cosmic-button.secondary:hover {
            background: rgba(71, 85, 105, 0.15);
            border-color: var(--slate-050);
            box-shadow: 0 8px 25px var(--slate-030);
        }

        /* Light Theme Platform Button Styles */
        [data-theme=light] .platform-button.primary {
            background: linear-gradient(135deg, var(--slate-095), rgba(100, 116, 139, 0.9));
            -webkit-backdrop-filter: var(--backdrop-blur-md);
            backdrop-filter: var(--backdrop-blur-md);
            color: white;
            border-color: var(--slate-060);
            box-shadow: 0 6px 20px var(--slate-040),
                inset 0 1px 0 var(--white-020);
        }

        [data-theme=light] .platform-button.primary:hover {
            background: linear-gradient(135deg, var(--slate-100), rgba(100, 116, 139, 0.95));
            -webkit-backdrop-filter: var(--backdrop-blur-xl);
            backdrop-filter: var(--backdrop-blur-xl);
            border-color: var(--slate-080);
            transform: translateY(-3px);
            box-shadow: 0 10px 30px var(--slate-050),
                inset 0 1px 0 var(--white-030);
        }

        [data-theme=light] .platform-button.secondary {
            background: rgba(255, 255, 255, 0.7);
            -webkit-backdrop-filter: var(--backdrop-blur-md);
            backdrop-filter: var(--backdrop-blur-md);
            color: var(--slate-095);
            border-color: var(--slate-040);
            box-shadow: 0 6px 20px rgba(71, 85, 105, 0.25),
                inset 0 1px 0 var(--white-030);
        }

        [data-theme=light] .platform-button.secondary:hover {
            background: rgba(71, 85, 105, 0.2);
            -webkit-backdrop-filter: var(--backdrop-blur-xl);
            backdrop-filter: var(--backdrop-blur-xl);
            border-color: var(--slate-060);
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(71, 85, 105, 0.35),
                inset 0 1px 0 var(--white-040);
        }


        /* Light Theme CTA Styles */
        [data-theme=light] .cta-card {
            background: var(--white-040);
            -webkit-backdrop-filter: var(--backdrop-blur-lg);
            backdrop-filter: var(--backdrop-blur-lg);
            border: 1px solid var(--white-030);
            box-shadow: 0 8px 32px 0 rgb(60 71 218 / 0%), inset 0 1px 0 var(--white-010);
        }

        [data-theme=light] .cta-card::before {
            background: linear-gradient(135deg,
                    rgba(71, 85, 105, 0.03) 0%,
                    rgba(100, 116, 139, 0.03) 50%,
                    rgba(148, 163, 184, 0.03) 100%);
        }

        [data-theme=light] .cta-card h2 {
            background: linear-gradient(135deg, #475569, #64748b, #94a3b8);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        [data-theme=light] .cta-card p {
            color: var(--slate-080);
        }

        [data-theme=light] .cosmic-button {
            background: rgba(71, 85, 105, 0.9);
            color: white;
            border: 2px solid var(--slate-050);
            box-shadow: 0 4px 15px var(--slate-030);
        }

        [data-theme=light] .cosmic-button:hover {
            background: var(--slate-100);
            border-color: var(--slate-080);
            box-shadow: 0 8px 25px var(--slate-040);
        }

        [data-theme=light] .cosmic-button.secondary {
            background: rgba(255, 255, 255, 0.6);
            -webkit-backdrop-filter: var(--backdrop-blur-sm);
            backdrop-filter: var(--backdrop-blur-sm);
            border: 2px solid var(--slate-030);
            color: var(--text-color);
            box-shadow: 0 4px 15px rgba(71, 85, 105, 0.2);
        }

        [data-theme=light] .cosmic-button.secondary:hover {
            background: rgba(71, 85, 105, 0.15);
            border-color: var(--slate-050);
            box-shadow: 0 8px 25px var(--slate-030);
        }

        /* Light Theme Platform Button Styles */
        [data-theme=light] .platform-button.primary {
            background: linear-gradient(135deg, var(--slate-095), rgba(100, 116, 139, 0.9));
            -webkit-backdrop-filter: var(--backdrop-blur-md);
            backdrop-filter: var(--backdrop-blur-md);
            color: white;
            border-color: var(--slate-060);
            box-shadow: 0 6px 20px var(--slate-040),
                inset 0 1px 0 var(--white-020);
        }

        [data-theme=light] .platform-button.primary:hover {
            background: linear-gradient(135deg, var(--slate-100), rgba(100, 116, 139, 0.95));
            -webkit-backdrop-filter: var(--backdrop-blur-xl);
            backdrop-filter: var(--backdrop-blur-xl);
            border-color: var(--slate-080);
            transform: translateY(-3px);
            box-shadow: 0 10px 30px var(--slate-050),
                inset 0 1px 0 var(--white-030);
        }

        [data-theme=light] .platform-button.secondary {
            background: rgba(255, 255, 255, 0.7);
            -webkit-backdrop-filter: var(--backdrop-blur-md);
            backdrop-filter: var(--backdrop-blur-md);
            color: var(--slate-095);
            border-color: var(--slate-040);
            box-shadow: 0 6px 20px rgba(71, 85, 105, 0.25),
                inset 0 1px 0 var(--white-030);
        }

        [data-theme=light] .platform-button.secondary:hover {
            background: rgba(71, 85, 105, 0.2);
            -webkit-backdrop-filter: var(--backdrop-blur-xl);
            backdrop-filter: var(--backdrop-blur-xl);
            border-color: var(--slate-060);
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(71, 85, 105, 0.35),
                inset 0 1px 0 var(--white-040);
        }


        /* Light Theme CTA Styles */
        [data-theme=light] .cta-card {
            background: var(--white-040);
            -webkit-backdrop-filter: var(--backdrop-blur-lg);
            backdrop-filter: var(--backdrop-blur-lg);
            border: 1px solid var(--white-030);
            box-shadow: 0 8px 32px 0 rgb(60 71 218 / 0%), inset 0 1px 0 var(--white-010);
        }

        [data-theme=light] .cta-card::before {
            background: linear-gradient(135deg,
                    rgba(71, 85, 105, 0.03) 0%,
                    rgba(100, 116, 139, 0.03) 50%,
                    rgba(148, 163, 184, 0.03) 100%);
        }

        [data-theme=light] .cta-card h2 {
            background: linear-gradient(135deg, #475569, #64748b, #94a3b8);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        [data-theme=light] .cta-card p {
            color: var(--slate-080);
        }

        [data-theme=light] .cosmic-button {
            background: rgba(71, 85, 105, 0.9);
            color: white;
            border: 2px solid var(--slate-050);
            box-shadow: 0 4px 15px var(--slate-030);
        }

        [data-theme=light] .cosmic-button:hover {
            background: var(--slate-100);
            border-color: var(--slate-080);
            box-shadow: 0 8px 25px var(--slate-040);
        }

        [data-theme=light] .cosmic-button.secondary {
            background: rgba(255, 255, 255, 0.6);
            -webkit-backdrop-filter: var(--backdrop-blur-sm);
            backdrop-filter: var(--backdrop-blur-sm);
            border: 2px solid var(--slate-030);
            color: var(--text-color);
            box-shadow: 0 4px 15px rgba(71, 85, 105, 0.2);
        }

        [data-theme=light] .cosmic-button.secondary:hover {
            background: rgba(71, 85, 105, 0.15);
            border-color: var(--slate-050);
            box-shadow: 0 8px 25px var(--slate-030);
        }

        /* Light Theme Platform Button Styles */
        [data-theme=light] .platform-button.primary {
            background: linear-gradient(135deg, var(--slate-095), rgba(100, 116, 139, 0.9));
            -webkit-backdrop-filter: var(--backdrop-blur-md);
            backdrop-filter: var(--backdrop-blur-md);
            color: white;
            border-color: var(--slate-060);
            box-shadow: 0 6px 20px var(--slate-040),
                inset 0 1px 0 var(--white-020);
        }

        [data-theme=light] .platform-button.primary:hover {
            background: linear-gradient(135deg, var(--slate-100), rgba(100, 116, 139, 0.95));
            -webkit-backdrop-filter: var(--backdrop-blur-xl);
            backdrop-filter: var(--backdrop-blur-xl);
            border-color: var(--slate-080);
            transform: translateY(-3px);
            box-shadow: 0 10px 30px var(--slate-050),
                inset 0 1px 0 var(--white-030);
        }

        [data-theme=light] .platform-button.secondary {
            background: rgba(255, 255, 255, 0.7);
            -webkit-backdrop-filter: var(--backdrop-blur-md);
            backdrop-filter: var(--backdrop-blur-md);
            color: var(--slate-095);
            border-color: var(--slate-040);
            box-shadow: 0 6px 20px rgba(71, 85, 105, 0.25),
                inset 0 1px 0 var(--white-030);
        }

        [data-theme=light] .platform-button.secondary:hover {
            background: rgba(71, 85, 105, 0.2);
            -webkit-backdrop-filter: var(--backdrop-blur-xl);
            backdrop-filter: var(--backdrop-blur-xl);
            border-color: var(--slate-060);
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(71, 85, 105, 0.35),
                inset 0 1px 0 var(--white-040);
        }


        /* Light Theme CTA Styles */
        [data-theme=light] .cta-card {
            background: var(--white-040);
            -webkit-backdrop-filter: var(--backdrop-blur-lg);
            backdrop-filter: var(--backdrop-blur-lg);
            border: 1px solid var(--white-030);
            box-shadow: 0 8px 32px 0 rgb(60 71 218 / 0%), inset 0 1px 0 var(--white-010);
        }

        [data-theme=light] .cta-card::before {
            background: linear-gradient(135deg,
                    rgba(71, 85, 105, 0.03) 0%,
                    rgba(100, 116, 139, 0.03) 50%,
                    rgba(148, 163, 184, 0.03) 100%);
        }

        [data-theme=light] .cta-card h2 {
            background: linear-gradient(135deg, #475569, #64748b, #94a3b8);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        [data-theme=light] .cta-card p {
            color: var(--slate-080);
        }

        [data-theme=light] .cosmic-button {
            background: rgba(71, 85, 105, 0.9);
            color: white;
            border: 2px solid var(--slate-050);
            box-shadow: 0 4px 15px var(--slate-030);
        }

        [data-theme=light] .cosmic-button:hover {
            background: var(--slate-100);
            border-color: var(--slate-080);
            box-shadow: 0 8px 25px var(--slate-040);
        }

        [data-theme=light] .cosmic-button.secondary {
            background: rgba(255, 255, 255, 0.6);
            -webkit-backdrop-filter: var(--backdrop-blur-sm);
            backdrop-filter: var(--backdrop-blur-sm);
            border: 2px solid var(--slate-030);
            color: var(--text-color);
            box-shadow: 0 4px 15px rgba(71, 85, 105, 0.2);
        }

        [data-theme=light] .cosmic-button.secondary:hover {
            background: rgba(71, 85, 105, 0.15);
            border-color: var(--slate-050);
            box-shadow: 0 8px 25px var(--slate-030);
        }

        /* Light Theme Platform Button Styles */
        [data-theme=light] .platform-button.primary {
            background: linear-gradient(135deg, var(--slate-095), rgba(100, 116, 139, 0.9));
            -webkit-backdrop-filter: var(--backdrop-blur-md);
            backdrop-filter: var(--backdrop-blur-md);
            color: white;
            border-color: var(--slate-060);
            box-shadow: 0 6px 20px var(--slate-040),
                inset 0 1px 0 var(--white-020);
        }

        [data-theme=light] .platform-button.primary:hover {
            background: linear-gradient(135deg, var(--slate-100), rgba(100, 116, 139, 0.95));
            -webkit-backdrop-filter: var(--backdrop-blur-xl);
            backdrop-filter: var(--backdrop-blur-xl);
            border-color: var(--slate-080);
            transform: translateY(-3px);
            box-shadow: 0 10px 30px var(--slate-050),
                inset 0 1px 0 var(--white-030);
        }

        [data-theme=light] .platform-button.secondary {
            background: rgba(255, 255, 255, 0.7);
            -webkit-backdrop-filter: var(--backdrop-blur-md);
            backdrop-filter: var(--backdrop-blur-md);
            color: var(--slate-095);
            border-color: var(--slate-040);
            box-shadow: 0 6px 20px rgba(71, 85, 105, 0.25),
                inset 0 1px 0 var(--white-030);
        }

        [data-theme=light] .platform-button.secondary:hover {
            background: rgba(71, 85, 105, 0.2);
            -webkit-backdrop-filter: var(--backdrop-blur-xl);
            backdrop-filter: var(--backdrop-blur-xl);
            border-color: var(--slate-060);
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(71, 85, 105, 0.35),
                inset 0 1px 0 var(--white-040);
        }


        /* Light Theme CTA Styles */
        [data-theme=light] .cta-card {
            background: var(--white-040);
            -webkit-backdrop-filter: var(--backdrop-blur-lg);
            backdrop-filter: var(--backdrop-blur-lg);
            border: 1px solid var(--white-030);
            box-shadow: 0 8px 32px 0 rgb(60 71 218 / 0%), inset 0 1px 0 var(--white-010);
        }

        [data-theme=light] .cta-card::before {
            background: linear-gradient(135deg,
                    rgba(71, 85, 105, 0.03) 0%,
                    rgba(100, 116, 139, 0.03) 50%,
                    rgba(148, 163, 184, 0.03) 100%);
        }

        [data-theme=light] .cta-card h2 {
            background: linear-gradient(135deg, #475569, #64748b, #94a3b8);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        [data-theme=light] .cta-card p {
            color: var(--slate-080);
        }

        [data-theme=light] .cosmic-button {
            background: rgba(71, 85, 105, 0.9);
            color: white;
            border: 2px solid var(--slate-050);
            box-shadow: 0 4px 15px var(--slate-030);
        }

        [data-theme=light] .cosmic-button:hover {
            background: var(--slate-100);
            border-color: var(--slate-080);
            box-shadow: 0 8px 25px var(--slate-040);
        }

        [data-theme=light] .cosmic-button.secondary {
            background: rgba(255, 255, 255, 0.6);
            -webkit-backdrop-filter: var(--backdrop-blur-sm);
            backdrop-filter: var(--backdrop-blur-sm);
            border: 2px solid var(--slate-030);
            color: var(--text-color);
            box-shadow: 0 4px 15px rgba(71, 85, 105, 0.2);
        }

        [data-theme=light] .cosmic-button.secondary:hover {
            background: rgba(71, 85, 105, 0.15);
            border-color: var(--slate-050);
            box-shadow: 0 8px 25px var(--slate-030);
        }

        /* Light Theme Platform Button Styles */
        [data-theme=light] .platform-button.primary {
            background: linear-gradient(135deg, var(--slate-095), rgba(100, 116, 139, 0.9));
            -webkit-backdrop-filter: var(--backdrop-blur-md);
            backdrop-filter: var(--backdrop-blur-md);
            color: white;
            border-color: var(--slate-060);
            box-shadow: 0 6px 20px var(--slate-040),
                inset 0 1px 0 var(--white-020);
        }

        [data-theme=light] .platform-button.primary:hover {
            background: linear-gradient(135deg, var(--slate-100), rgba(100, 116, 139, 0.95));
            -webkit-backdrop-filter: var(--backdrop-blur-xl);
            backdrop-filter: var(--backdrop-blur-xl);
            border-color: var(--slate-080);
            transform: translateY(-3px);
            box-shadow: 0 10px 30px var(--slate-050),
                inset 0 1px 0 var(--white-030);
        }

        [data-theme=light] .platform-button.secondary {
            background: rgba(255, 255, 255, 0.7);
            -webkit-backdrop-filter: var(--backdrop-blur-md);
            backdrop-filter: var(--backdrop-blur-md);
            color: var(--slate-095);
            border-color: var(--slate-040);
            box-shadow: 0 6px 20px rgba(71, 85, 105, 0.25),
                inset 0 1px 0 var(--white-030);
        }

        [data-theme=light] .platform-button.secondary:hover {
            background: rgba(71, 85, 105, 0.2);
            -webkit-backdrop-filter: var(--backdrop-blur-xl);
            backdrop-filter: var(--backdrop-blur-xl);
            border-color: var(--slate-060);
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(71, 85, 105, 0.35),
                inset 0 1px 0 var(--white-040);
        }


        /* Light Theme CTA Styles */
        [data-theme=light] .cta-card {
            background: var(--white-040);
            -webkit-backdrop-filter: var(--backdrop-blur-lg);
            backdrop-filter: var(--backdrop-blur-lg);
            border: 1px solid var(--white-030);
            box-shadow: 0 8px 32px 0 rgb(60 71 218 / 0%), inset 0 1px 0 var(--white-010);
        }

        [data-theme=light] .cta-card::before {
            background: linear-gradient(135deg,
                    rgba(71, 85, 105, 0.03) 0%,
                    rgba(100, 116, 139, 0.03) 50%,
                    rgba(148, 163, 184, 0.03) 100%);
        }

        [data-theme=light] .cta-card h2 {
            background: linear-gradient(135deg, #475569, #64748b, #94a3b8);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        [data-theme=light] .cta-card p {
            color: var(--slate-080);
        }

        [data-theme=light] .cosmic-button {
            background: rgba(71, 85, 105, 0.9);
            color: white;
            border: 2px solid var(--slate-050);
            box-shadow: 0 4px 15px var(--slate-030);
        }

        [data-theme=light] .cosmic-button:hover {
            background: var(--slate-100);
            border-color: var(--slate-080);
            box-shadow: 0 8px 25px var(--slate-040);
        }

        [data-theme=light] .cosmic-button.secondary {
            background: rgba(255, 255, 255, 0.6);
            -webkit-backdrop-filter: var(--backdrop-blur-sm);
            backdrop-filter: var(--backdrop-blur-sm);
            border: 2px solid var(--slate-030);
            color: var(--text-color);
            box-shadow: 0 4px 15px rgba(71, 85, 105, 0.2);
        }

        [data-theme=light] .cosmic-button.secondary:hover {
            background: rgba(71, 85, 105, 0.15);
            border-color: var(--slate-050);
            box-shadow: 0 8px 25px var(--slate-030);
        }

        /* Light Theme Platform Button Styles */
        [data-theme=light] .platform-button.primary {
            background: linear-gradient(135deg, var(--slate-095), rgba(100, 116, 139, 0.9));
            -webkit-backdrop-filter: var(--backdrop-blur-md);
            backdrop-filter: var(--backdrop-blur-md);
            color: white;
            border-color: var(--slate-060);
            box-shadow: 0 6px 20px var(--slate-040),
                inset 0 1px 0 var(--white-020);
        }

        [data-theme=light] .platform-button.primary:hover {
            background: linear-gradient(135deg, var(--slate-100), rgba(100, 116, 139, 0.95));
            -webkit-backdrop-filter: var(--backdrop-blur-xl);
            backdrop-filter: var(--backdrop-blur-xl);
            border-color: var(--slate-080);
            transform: translateY(-3px);
            box-shadow: 0 10px 30px var(--slate-050),
                inset 0 1px 0 var(--white-030);
        }

        [data-theme=light] .platform-button.secondary {
            background: rgba(255, 255, 255, 0.7);
            -webkit-backdrop-filter: var(--backdrop-blur-md);
            backdrop-filter: var(--backdrop-blur-md);
            color: var(--slate-095);
            border-color: var(--slate-040);
            box-shadow: 0 6px 20px rgba(71, 85, 105, 0.25),
                inset 0 1px 0 var(--white-030);
        }

        [data-theme=light] .platform-button.secondary:hover {
            background: rgba(71, 85, 105, 0.2);
            -webkit-backdrop-filter: var(--backdrop-blur-xl);
            backdrop-filter: var(--backdrop-blur-xl);
            border-color: var(--slate-060);
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(71, 85, 105, 0.35),
                inset 0 1px 0 var(--white-040);
        }


        /* Light Theme CTA Styles */
        [data-theme=light] .cta-card {
            background: var(--white-040);
            -webkit-backdrop-filter: var(--backdrop-blur-lg);
            backdrop-filter: var(--backdrop-blur-lg);
            border: 1px solid var(--white-030);
            box-shadow: 0 8px 32px 0 rgb(60 71 218 / 0%), inset 0 1px 0 var(--white-010);
        }

        [data-theme=light] .cta-card::before {
            background: linear-gradient(135deg,
                    rgba(71, 85, 105, 0.03) 0%,
                    rgba(100, 116, 139, 0.03) 50%,
                    rgba(148, 163, 184, 0.03) 100%);
        }

        [data-theme=light] .cta-card h2 {
            background: linear-gradient(135deg, #475569, #64748b, #94a3b8);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        [data-theme=light] .cta-card p {
            color: var(--slate-080);
        }

        [data-theme=light] .cosmic-button {
            background: rgba(71, 85, 105, 0.9);
            color: white;
            border: 2px solid var(--slate-050);
            box-shadow: 0 4px 20px var(--slate-030);
        }
    }
}

/* Footer Styles */
.page-footer {
    margin-top: auto;
    background: linear-gradient(135deg,
        rgba(14, 165, 233, 0.03) 0%,
        rgba(59, 130, 246, 0.05) 50%,
        rgba(14, 165, 233, 0.03) 100%);
    -webkit-backdrop-filter: var(--backdrop-blur-lg);
    backdrop-filter: var(--backdrop-blur-lg);
    border-top: 1px solid rgba(14, 165, 233, 0.2);
    padding: 30px 0 15px;
    margin-top: 30px;
    color: var(--text-color);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

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

.footer-logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* Footer Logo Specific Styles */
.footer-logo .orbital-logo {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(14, 165, 233, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0ea5e95e;
    position: relative;
    animation: orbitGlow 3s ease-in-out infinite;
}

/* Light Mode: Teal-cyan gradient for footer logo */
body[data-theme="light"] .footer-logo .orbital-logo {
    background: linear-gradient(45deg, #14b8a6, #06b6d4);
    border-color: rgba(20, 184, 166, 0.3);
}

.footer-logo .orbital-logo::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    top: -2px;
    left: 50%;
    margin-left: -2px;
    transform-origin: 2px 22px;
    animation: orbitFooter 8s linear infinite;
    box-shadow: 0 0 4px var(--primary-color);
}

/* Light Mode: Cyan rotating dot */
body[data-theme="light"] .footer-logo .orbital-logo::after {
    background: #06b6d4;
    box-shadow: 0 0 8px #06b6d4;
}

.footer-logo .logo-center {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 14px;
    background: none;
}

/* Light Mode: White text for footer logo */
body[data-theme="light"] .footer-logo .logo-center {
    color: white;
}

.footer-logo span {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    line-height: 1.5;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(14, 165, 233, 0.1);
}

.footer-copyright p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-size: 0.9rem;
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--panel-bg);
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--panel-border);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.4);
}

@keyframes orbitGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(14, 165, 233, 0.6);
    }
}

/* Light Theme Footer Styles */
[data-theme="light"] .page-footer {
    background: var(--white-040);
    -webkit-backdrop-filter: var(--backdrop-blur-lg);
    backdrop-filter: var(--backdrop-blur-lg);
    border-top: 1px solid rgba(71, 85, 105, 0.2);
    color: #1f2937;
}

[data-theme="light"] .footer-section h4 {
    color: #475569;
}

[data-theme="light"] .footer-section ul li a {
    color: var(--slate-080);
}

[data-theme="light"] .footer-section ul li a:hover {
    color: #475569;
}

[data-theme="light"] .footer-logo span {
    color: #1f2937;
}

[data-theme="light"] .nav-logo .logo-center {
    background: transparent;
    color: #fff;
}

[data-theme="light"] .footer-section p {
    color: rgba(71, 85, 105, 0.95);
}

[data-theme="light"] .footer-copyright p {
    color: var(--slate-060);
}

[data-theme="light"] .footer-bottom {
    border-top: 1px solid rgba(71, 85, 105, 0.1);
}

[data-theme="light"] .social-link {
    background: rgba(71, 85, 105, 0.1);
    color: #475569;
    border: 1px solid var(--slate-030);
}

[data-theme="light"] .social-link:hover {
    background: #475569;
    color: white;
    box-shadow: 0 5px 15px var(--slate-040);
}

/* Responsive Footer */
@media screen and (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .page-footer {
        padding: 25px 0 10px;
        margin-top: 25px;
    }

    .footer-container {
        padding: 0 15px;
    }

    .footer-content {
        gap: 25px;
    }

    .footer-logo {
        justify-content: center;
    }
}

/* ===================================
   POST CONTROLLER - UNIFIED PAGE STYLES
   =================================== */

/* ===================================
   1. COMMON/SHARED STYLES
   =================================== */

/* Page Foundation */
.page-container {
    min-height: 100vh;
    padding-top: 80px;
    background: var(--bg-color);
}

/* Cosmic Background (Shared across all pages) */
.cosmic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(14, 165, 233, 0.3), transparent),
        radial-gradient(2px 2px at 40% 70%, rgba(59, 130, 246, 0.2), transparent),
        radial-gradient(1px 1px at 60% 20%, rgba(139, 92, 246, 0.2), transparent),
        radial-gradient(1px 1px at 80% 80%, rgba(14, 165, 233, 0.1), transparent);
    background-size: 400px 400px, 600px 600px, 300px 300px, 500px 500px;
    animation: floatParticles 20s linear infinite;
}

/* Glassmorphism Hero Sections */
.hero-section {
    margin: 3rem 0;
    padding: 3rem 1rem;
    background: rgba(14, 165, 233, 0.08);
    -webkit-backdrop-filter: var(--backdrop-blur-2xl);
    backdrop-filter: var(--backdrop-blur-2xl);
    border: 1px solid var(--white-010);
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 1px 4px 0 rgb(14 165 233 / 6%), 0 1px 10px 0 rgba(0, 0, 0, 0.1), inset 0 1px 0 var(--white-015);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    /* Color inherited from theme-specific h2 styles */
}

.hero-section p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Glassmorphism Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: var(--backdrop-blur-lg);
    backdrop-filter: var(--backdrop-blur-lg);
    border: 1px solid var(--white-015);
    border-radius: 32px;
    padding: 2.5rem;
    box-shadow: 0 1px 4px 0 rgb(14 165 233 / 6%), 0 1px 10px 0 rgba(0, 0, 0, 0.1), inset 0 1px 0 var(--white-015);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.glass-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--white-025);
}

/* Content Grids */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    padding: 0 1rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.content-grid.large {
    max-width: 1400px;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
}

/* Orbital Icon System */
.orbital-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    background: var(--white-010);
    border: 2px solid var(--white-020);
    -webkit-backdrop-filter: var(--backdrop-blur-sm);
    backdrop-filter: var(--backdrop-blur-sm);
    flex-shrink: 0;
    position: relative;
}

.orbital-icon.large {
    width: 80px;
    height: 80px;
    font-size: 2rem;
}

.orbital-icon::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    top: -3px;
    left: 50%;
    margin-left: -3px;
    transform-origin: 3px 33px;
    animation: orbitParticle 4s linear infinite;
    box-shadow: 0 0 6px var(--primary-color);
}

.orbital-icon.large::before {
    width: 8px;
    height: 8px;
    top: -4px;
    margin-left: -4px;
    transform-origin: 4px 44px;
    animation: orbitParticle 6s linear infinite;
    box-shadow: 0 0 8px var(--primary-color);
}

@keyframes orbitParticle {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Page-Specific Icon Styles */
.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    border: 2px solid rgba(20, 184, 166, 0.3);
    color: white;
    background: linear-gradient(45deg, #14b8a6, #06b6d4);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

.feature-icon::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: linear-gradient(45deg, #14b8a6, #06b6d4);
    border-radius: 50%;
    top: -4px;
    left: 50%;
    margin-left: -4px;
    transform-origin: 4px 44px;
    animation: orbitIcon 10s linear infinite;
    box-shadow: 0 0 8px rgba(20, 184, 166, 0.6);
}

@keyframes orbitIcon {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.value-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    background: var(--white-010);
    border: 2px solid var(--white-020);
    -webkit-backdrop-filter: var(--backdrop-blur-sm);
    backdrop-filter: var(--backdrop-blur-sm);
    flex-shrink: 0;
    position: relative;
}

.value-icon::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    top: -3px;
    left: 50%;
    margin-left: -3px;
    transform-origin: 3px 33px;
    animation: orbitValue 10s linear infinite;
    box-shadow: 0 0 6px var(--primary-color);
}

@keyframes orbitValue {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Light theme value icon with visible border */
[data-theme=light] .value-icon {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(14, 165, 233, 0.3);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.15);
}

[data-theme=light] .value-icon::before {
    background: #06b6d4;
    box-shadow: 0 0 8px #06b6d4;
}

/* Light theme feature icon with visible border */
[data-theme=light] .feature-icon {
    background: linear-gradient(45deg, #14b8a6, #06b6d4);
    border: 2px solid rgba(20, 184, 166, 0.4);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
    color: white;
}

[data-theme=light] .feature-icon::before {
    background: linear-gradient(45deg, #14b8a6, #06b6d4);
    box-shadow: 0 0 10px rgba(20, 184, 166, 0.6);
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
    position: relative;
}

.contact-icon.email,
.contact-icon.phone,
.contact-icon.demo {
    background: var(--white-010);
    border: 2px solid var(--white-020);
    -webkit-backdrop-filter: var(--backdrop-blur-sm);
    backdrop-filter: var(--backdrop-blur-sm);
    position: relative;
}

.contact-icon.email::before,
.contact-icon.phone::before,
.contact-icon.demo::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    top: -3px;
    left: 50%;
    margin-left: -3px;
    transform-origin: 3px 33px;
    animation: orbitContact 8s linear infinite;
    box-shadow: 0 0 6px var(--primary-color);
}

@keyframes orbitContact {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Light theme contact icon with visible border */
[data-theme=light] .contact-icon.email,
[data-theme=light] .contact-icon.phone,
[data-theme=light] .contact-icon.demo {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(14, 165, 233, 0.3);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.15);
}

[data-theme=light] .contact-icon.email::before,
[data-theme=light] .contact-icon.phone::before,
[data-theme=light] .contact-icon.demo::before {
    background: #06b6d4;
    box-shadow: 0 0 8px #06b6d4;
}

@keyframes orbitFooter {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Card Headers */
.card-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-header.centered {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
    line-height: 1.3;
}

.card-title.large {
    font-size: 1.8rem;
}

.card-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 300;
    margin-top: 0.3rem;
    margin-bottom: 0;
}

.card-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-description.large {
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

/* Glassmorphism Buttons */
.glass-button {
    background: var(--white-010);
    -webkit-backdrop-filter: var(--backdrop-blur-sm);
    backdrop-filter: var(--backdrop-blur-sm);
    border: 2px solid var(--white-020);
    color: var(--primary-color);
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.glass-button:hover {
    background: var(--white-015);
    border-color: var(--white-030);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.2);
}

.glass-button.primary {
    background: var(--primary-color);
    color: white;
    border-radius: 16px;
    padding: 1rem 2rem;
    font-size: 1rem;
}

.glass-button.primary:hover {
    background: #0284c7;
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.3);
}

/* ===================================
   2. PAGE-SPECIFIC STYLES
   =================================== */

/* About Page Styles */
.story-section {
    margin: 3rem 0;
    padding: 3rem 1rem;
    background: rgba(14, 165, 233, 0.08);
    -webkit-backdrop-filter: var(--backdrop-blur-2xl);
    backdrop-filter: var(--backdrop-blur-2xl);
    border: 1px solid var(--white-010);
    border-radius: 24px;
    text-align: center;
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
}

.story-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    /* Color inherited from theme-specific h2 styles */
}

.expandable-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.expandable-content.expanded {
    max-height: 500px;
}

.story-section p,
.expandable-content p {
    line-height: 1.7;
    margin-bottom: 1.2rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.story-section p:last-child,
.expandable-content p:last-child {
    margin-bottom: 0;
}

.see-more-btn {
    background: var(--white-010);
    -webkit-backdrop-filter: var(--backdrop-blur-sm);
    backdrop-filter: var(--backdrop-blur-sm);
    border: 2px solid var(--white-020);
    color: var(--primary-color);
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.see-more-btn:hover {
    background: var(--white-015);
    border-color: var(--white-030);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.2);
}

.see-more-btn .icon {
    transition: transform 0.3s ease;
}

.see-more-btn.expanded .icon {
    transform: rotate(180deg);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    padding: 0 1rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.value-card {
    text-align: left;
    min-height: 280px;
}

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

.value-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
}

.value-header .value-subtitle {
    margin: 0.2rem 0 0 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

/* Contact Page Styles */
.contact-hero {
    margin: 3rem 0;
    padding: 3rem 1rem;
    background: rgba(14, 165, 233, 0.08);
    -webkit-backdrop-filter: var(--backdrop-blur-2xl);
    backdrop-filter: var(--backdrop-blur-2xl);
    border: 1px solid var(--white-010);
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 1px 4px 0 rgb(14 165 233 / 6%), 0 1px 10px 0 rgba(0, 0, 0, 0.1), inset 0 1px 0 var(--white-015);
}

.contact-hero .contact-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-hero h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    /* Color inherited from theme-specific h2 styles */
}

.contact-hero p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    padding: 0 1rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.contact-card {
    text-align: left;
    min-height: 280px;
}

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

.contact-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
}

.contact-header .contact-subtitle {
    margin: 0.2rem 0 0 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.contact-form-section {
    background: rgba(14, 165, 233, 0.08);
    -webkit-backdrop-filter: var(--backdrop-blur-2xl);
    backdrop-filter: var(--backdrop-blur-2xl);
    border: 1px solid var(--white-010);
    border-radius: 24px;
    padding: 3rem;
    margin: 3rem auto;
    max-width: 800px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* Base styling for all form inputs */
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--white-020);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: var(--backdrop-blur-sm);
    backdrop-filter: var(--backdrop-blur-sm);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* Select-specific styling with custom dropdown arrow */
.form-group select {
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 2.5rem;
}

/* Dark mode option styling */
[data-theme="dark"] .form-group select option {
    background: #1a1a2e;
    color: #ffffff;
    padding: 0.5rem;
}

/* Light mode styling for all form inputs */
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1a1a2e;
}

/* Light mode select styling */
[data-theme="light"] .form-group select {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1a1a2e;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231a1a2e' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
}

/* Light mode option styling */
[data-theme="light"] .form-group select option {
    background: #ffffff;
    color: #1a1a2e;
    padding: 0.5rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: var(--white-010);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

/* Separate focus state for select to preserve the arrow */
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

/* Dark mode select focus - preserve arrow background image */
[data-theme="dark"] .form-group select:focus {
    background: rgba(255, 255, 255, 0.05);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
}

/* Light mode select focus - preserve arrow background image */
[data-theme="light"] .form-group select:focus {
    background: rgba(255, 255, 255, 0.95);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231a1a2e' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.3);
    background: #0ea5e9;
}

[data-theme=light] .submit-btn {
    background: linear-gradient(45deg, #14b8a6, #06b6d4);
}

[data-theme=light] .submit-btn:hover {
    background: linear-gradient(45deg, #0d9488, #0891b2);
}

.contact-info {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--white-010);
    border-radius: 12px;
    padding: 1rem;
    margin-top: auto;
}

.contact-info strong {
    color: var(--text-primary);
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    background: var(--white-010);
    border: 2px solid var(--white-020);
    -webkit-backdrop-filter: var(--backdrop-blur-sm);
    backdrop-filter: var(--backdrop-blur-sm);
}

.quick-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.faq-section {
    margin: 4rem 0;
    padding: 3rem 1rem;
    background: rgba(14, 165, 233, 0.08);
    -webkit-backdrop-filter: var(--backdrop-blur-2xl);
    backdrop-filter: var(--backdrop-blur-2xl);
    border: 1px solid var(--white-010);
    border-radius: 24px;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    align-items: start;
}

.faq-column {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.faq-item {
    margin-bottom: 0;
    background: var(--white-025);
    backdrop-filter: var(--backdrop-blur-lg);
    -webkit-backdrop-filter: var(--backdrop-blur-lg);
    border: 1px solid var(--white-018);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 1px 4px 0 rgb(14 165 233 / 6%), 0 1px 10px 0 rgba(0, 0, 0, 0.1), inset 0 1px 0 var(--white-015);
}

.faq-question {
    padding: 0.875rem 1.25rem;
    background: transparent;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--text-primary);
    transition: background 0.3s ease;
}

.faq-question i {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--primary-color);
    flex-shrink: 0;
}

.faq-question:hover {
    background: rgba(14, 165, 233, 0.1);
}

.faq-answer {
    padding: 0 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: max-height, opacity;
}

.faq-item.active .faq-answer {
    max-height: 600px;
    padding: 0.875rem 1.25rem;
    opacity: 1;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-question {
    background: rgba(14, 165, 233, 0.15);
}

/* Light theme FAQ styles */
[data-theme=light] .faq-item {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(71, 85, 105, 0.15);
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.05), 0 1px 10px 0 rgba(0, 0, 0, 0.05);
}

[data-theme=light] .faq-question {
    background: transparent;
}

[data-theme=light] .faq-question:hover {
    background: rgba(14, 165, 233, 0.08);
}

[data-theme=light] .faq-item.active .faq-question {
    background: rgba(14, 165, 233, 0.12);
}

[data-theme=light] .faq-question i {
    color: var(--primary-color);
}

/* Features Page Styles */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    margin: 3rem 0;
    padding: 0 1rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.feature-card {
    text-align: left;
    min-height: 420px;
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin: 1.5rem 0 2rem 0;
}

.feature-highlight {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    min-height: 60px;
}

.feature-highlight:hover {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.feature-highlight-icon {
    display: none;
}

.feature-highlight-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.5;
}

/* Light mode adjustments - Match main card glass morphism style */
[data-theme="light"] .feature-highlight {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px) saturate(150%);
    -webkit-backdrop-filter: blur(8px) saturate(150%);
    border: 1px solid rgba(71, 85, 105, 0.15);
    box-shadow: 0 2px 8px rgba(71, 85, 105, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .feature-highlight:hover {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .feature-highlights {
        grid-template-columns: 1fr;
    }
}

.stats-section {
    margin: 4rem 0;
    padding: 3rem 1rem;
    background: rgba(14, 165, 233, 0.08);
    -webkit-backdrop-filter: var(--backdrop-blur-2xl);
    backdrop-filter: var(--backdrop-blur-2xl);
    border: 1px solid var(--white-010);
    border-radius: 24px;
    text-align: center;
}

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

.stat-item {
    padding: 1.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(45deg, #14b8a6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 600;
}

/* Features Page Star Field */
.page-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image:
        radial-gradient(2px 2px at 37px 89px, #ffffff, transparent),
        radial-gradient(1px 1px at 158px 24px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 203px 147px, #ffffff, transparent),
        radial-gradient(1px 1px at 67px 201px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 289px 73px, #ffffff, transparent),
        radial-gradient(2px 2px at 123px 156px, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 11px 43px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 234px 198px, #ffffff, transparent),
        radial-gradient(2px 2px at 178px 91px, var(--white-050), transparent);
    background-repeat: repeat;
    background-size: 300px 230px;
    animation: starsRandomMove1 30s ease-in-out infinite;
    display: block !important;
}

.page-container::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image:
        radial-gradient(1px 1px at 82px 134px, rgba(14, 165, 233, 0.8), transparent),
        radial-gradient(2px 2px at 247px 67px, rgba(59, 130, 246, 0.6), transparent),
        radial-gradient(1px 1px at 156px 203px, rgba(139, 92, 246, 0.7), transparent),
        radial-gradient(1px 1px at 23px 112px, var(--white-040), transparent),
        radial-gradient(2px 2px at 198px 31px, rgba(14, 165, 233, 0.5), transparent),
        radial-gradient(1px 1px at 134px 89px, rgba(59, 130, 246, 0.8), transparent),
        radial-gradient(1px 1px at 56px 178px, rgba(139, 92, 246, 0.6), transparent),
        radial-gradient(2px 2px at 267px 156px, var(--white-030), transparent);
    background-repeat: repeat;
    background-size: 280px 210px;
    animation: starsRandomMove2 25s ease-in-out infinite reverse;
    display: block !important;
}

@keyframes starsRandomMove1 {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-20px, -30px); }
    50% { transform: translate(40px, -20px); }
    75% { transform: translate(-30px, 20px); }
    100% { transform: translate(0, 0); }
}

@keyframes starsRandomMove2 {
    0% { transform: translate(0, 0); }
    33% { transform: translate(30px, -40px); }
    66% { transform: translate(-40px, 30px); }
    100% { transform: translate(0, 0); }
}

.random-stars-container {
    z-index: 1 !important;
}

/* Subscription Page Styles */
.pricing-hero {
    margin: 3rem 0;
    padding: 3rem 1rem;
    background: rgba(14, 165, 233, 0.08);
    -webkit-backdrop-filter: var(--backdrop-blur-2xl);
    backdrop-filter: var(--backdrop-blur-2xl);
    border: 1px solid var(--white-010);
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 1px 4px 0 rgb(14 165 233 / 6%), 0 1px 10px 0 rgba(0, 0, 0, 0.1), inset 0 1px 0 var(--white-015);
}

.pricing-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.pricing-hero h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    /* Color inherited from theme-specific h2 styles */
}

.pricing-hero p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.toggle-container {
    position: relative;
    background: var(--white-010);
    border-radius: 50px;
    padding: 4px;
    border: 2px solid var(--white-020);
    overflow: hidden;
    display: flex;
    width: 200px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-select: none;

    user-select: none;
}

.toggle-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: var(--primary-color);
    border-radius: 46px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
    z-index: 1;
}

.toggle-slider.yearly {
    left: calc(50% + 4px);
}

.toggle-option {
    padding: 8px 20px;
    border-radius: 46px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    position: relative;
    z-index: 2;
    width: 50%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.toggle-option.active {
    color: white;
    font-weight: 600;
}

.save-badge {
    background: linear-gradient(45deg, #10b981, #34d399);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 8px;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
    padding: 0 1rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.custom-plan-wrapper {
    width: 100%;
    margin: 4rem 0;
    padding: 0 1rem;
}

.custom-plan-card {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    background: rgba(14, 165, 233, 0.08);
    -webkit-backdrop-filter: var(--backdrop-blur-2xl);
    backdrop-filter: var(--backdrop-blur-2xl);
    border: 1px solid var(--white-010);
    padding: 2rem;
    min-height: 0;
}

.plan-card {
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: var(--backdrop-blur-2xl);
    backdrop-filter: var(--backdrop-blur-2xl);
    border: 1px solid var(--white-010);
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
    min-height: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 4px 0 rgb(14 165 233 / 6%), 0 1px 10px 0 rgba(0, 0, 0, 0.1), inset 0 1px 0 var(--white-015);
}

.plan-card.popular {
    border-color: var(--primary-color);
}

.popular-badge {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, var(--primary-color), #3b82f6);
    color: white;
    padding: 8px 24px;
    border-radius: 0 0 16px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.plan-header {
    margin-bottom: 2rem;
}

.plan-name {
    /* Inherits from h3 base styles */
    font-size: 1.8rem;
}

.plan-description {
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.plan-price {
    margin-bottom: 2rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(45deg, #14b8a6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.price-amount.updating {
    transform: scale(1.05);
    opacity: 0.7;
}

.price-currency {
    font-size: 1.2rem;
    font-weight: 600;
    vertical-align: top;
}

.price-period {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 300;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.price-period.updating {
    opacity: 0.7;
}

.plan-features {
    flex-grow: 1;
    margin-bottom: 2rem;
}

.features-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.features-list li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.features-list li i {
    color: var(--primary-color);
    margin-right: 0.75rem;
    width: 16px;
    flex-shrink: 0;
}

.feature-highlight {
    color: var(--text-primary);
    font-weight: 600;
}

.plan-button {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.plan-button:hover {
    background: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.3);
}

.plan-button.secondary {
    background: var(--white-010);
    color: var(--primary-color);
    border: 1px solid var(--white-020);
}

.plan-button.secondary:hover {
    background: var(--white-015);
    border-color: var(--white-030);
}

.features-comparison {
    margin: 4rem 0;
    padding: 3rem 0;
    background: rgba(14, 165, 233, 0.08);
    -webkit-backdrop-filter: var(--backdrop-blur-2xl);
    backdrop-filter: var(--backdrop-blur-2xl);
    border: 1px solid var(--white-010);
    border-radius: 24px;
    box-shadow: 0 1px 4px 0 rgb(14 165 233 / 6%), 0 1px 10px 0 rgba(0, 0, 0, 0.1), inset 0 1px 0 var(--white-015);
}

.features-comparison .section-header {
    padding: 0 1rem;
}

.features-comparison > div[style*="overflow"] {
    padding: 0;
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 2rem;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: background-color 0.3s ease;
}

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

.comparison-table tbody tr:hover td {
    background-color: rgba(255, 255, 255, 0.05);
}

.comparison-table tr td:first-child,
.comparison-table tr th:first-child {
    padding-left: 2rem;
}

.comparison-table tr td:last-child,
.comparison-table tr th:last-child {
    padding-right: 2rem;
}

[data-theme=light] .comparison-table tr {
    border-bottom: 1px solid rgba(71, 85, 105, 0.35);
}

[data-theme=light] .comparison-table tbody tr:hover {
    background-color: rgba(71, 85, 105, 0.1);
}

[data-theme=light] .comparison-table tbody tr:hover td {
    background-color: rgba(71, 85, 105, 0.1);
}

.comparison-table th {
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
    color: var(--text-primary);
}

.comparison-table td {
    color: var(--text-secondary);
}

.feature-name {
    text-align: left !important;
    font-weight: 500;
}

.check-icon {
    color: var(--primary-color);
}

.cross-icon {
    color: #ef4444;
}

/* AI Features Section - Unified Background Color */
.section-header-row {
    background: rgba(255, 255, 255, 0.03);
}

.section-header-row td {
    background: rgba(255, 255, 255, 0.03);
}

.ai-feature-row {
    background: rgba(255, 255, 255, 0.03);
}

.ai-feature-row td {
    background: rgba(255, 255, 255, 0.03);
}

/* AI Features Hover Effect */
.ai-feature-row:hover {
    background: rgba(255, 255, 255, 0.08);
}

.ai-feature-row:hover td {
    background: rgba(255, 255, 255, 0.08);
}

[data-theme=light] .section-header-row {
    background: rgba(71, 85, 105, 0.05);
}

[data-theme=light] .section-header-row td {
    background: rgba(71, 85, 105, 0.05);
}

[data-theme=light] .ai-feature-row {
    background: rgba(71, 85, 105, 0.05);
}

[data-theme=light] .ai-feature-row td {
    background: rgba(71, 85, 105, 0.05);
}

[data-theme=light] .ai-feature-row:hover {
    background: rgba(71, 85, 105, 0.15);
}

[data-theme=light] .ai-feature-row:hover td {
    background: rgba(71, 85, 105, 0.15);
}

.feature-item {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 400;
}

.custom-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--white-020), transparent);
    transition: left 0.5s;
}

.custom-button:hover::before {
    left: 100%;
}

.custom-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(14, 165, 233, 0.4);
    border-color: rgba(14, 165, 233, 0.5);
}

/* ===================================
   3. RESPONSIVE STYLES
   =================================== */

/* Tablet Responsive */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 1024px) {
    .plans-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem;
    }

    .custom-plan-wrapper {
        margin: 3rem 0;
        padding: 0 0.5rem;
    }

    .custom-plan-card .plan-features div {
        grid-template-columns: repeat(2, 1fr) !important;
        grid-template-rows: repeat(4, auto) !important;
        gap: 1rem !important;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-section h2 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1.1rem;
    }

    .glass-card {
        padding: 2rem;
        min-height: 0;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem;
    }

    .content-grid.large {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .card-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .card-title {
        font-size: 1.3rem;
    }

    .card-title.large {
        font-size: 1.5rem;
    }

    .glass-button {
        padding: 10px 20px;
        font-size: 0.9rem;
        border-radius: 20px;
    }

    /* About Page Mobile */
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem;
    }

    /* Contact Page Mobile */
    .contact-methods {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem;
    }

    .contact-form-section {
        padding: 2rem;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0 1rem;
    }

    .faq-column {
        gap: 0.75rem;
    }

    .faq-item {
        margin-bottom: 0;
    }

    /* Add spacing before the second column on mobile */
    .faq-column:nth-child(2) .faq-item:first-child {
        margin-top: 1.5rem;
    }

    .faq-question {
        padding: 0.625rem 1rem;
        font-size: 0.9rem;
        line-height: 1.3;
        gap: 0.75rem;
    }

    .faq-answer {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .faq-item.active .faq-answer {
        padding: 0.625rem 1rem;
    }

    /* Features Page Mobile */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 0.5rem;
    }

    .feature-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .feature-highlights {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

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

    .stat-number {
        font-size: 2rem;
    }

    /* Subscription Page Mobile */
    .plan-features div {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .custom-plan-card .plan-features div {
        grid-template-columns: repeat(2, 1fr) !important;
        grid-template-rows: repeat(4, auto) !important;
        gap: 0.75rem !important;
    }

    .price-amount {
        font-size: 2.5rem;
    }

    .comparison-table {
        font-size: 0.9rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 0.5rem;
    }

    .custom-plan-wrapper {
        margin: 2rem 0;
        padding: 0 0.5rem;
    }

    .custom-plan-card {
        text-align: center;
        padding: 2rem;
    }

    .custom-plan-card .plan-features {
        text-align: center;
    }
}

/* ===================================
   4. LIGHT THEME OVERRIDES
   =================================== */

[data-theme=light] .cosmic-bg {
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(71, 85, 105, 0.15), transparent),
        radial-gradient(2px 2px at 40% 70%, rgba(100, 116, 139, 0.1), transparent),
        radial-gradient(1px 1px at 60% 20%, rgba(148, 163, 184, 0.1), transparent),
        radial-gradient(1px 1px at 80% 80%, rgba(71, 85, 105, 0.08), transparent);
}

[data-theme=light] .hero-section {
    background: rgba(71, 85, 105, 0.05);
    border: 1px solid rgba(71, 85, 105, 0.1);
    box-shadow: 0 1px 4px 0 rgba(71, 85, 105, 0.06), 0 1px 10px 0 rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

[data-theme=light] .hero-section h2 {
    background: linear-gradient(45deg, #0ea5e9, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme=light] .glass-card {
    box-shadow: 0 25px 80px 0 rgba(71, 85, 105, 0.15),
                0 8px 32px 0 rgba(0, 0, 0, 0.08),
                inset 0 1px 0 var(--white-030);
}

[data-theme=light] .glass-card:hover {
    box-shadow: 0 25px 80px 0 rgba(71, 85, 105, 0.2),
                0 8px 32px 0 rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

[data-theme=light] .cta-stats span {
    color: rgba(71, 85, 105, 0.9) !important;
}

[data-theme=light] .toggle-container {
    background: linear-gradient(145deg, #f8fafc, #e2e8f0);
    border: 2px solid rgba(14, 165, 233, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme=light] .toggle-slider {
    background: linear-gradient(145deg, var(--primary-color), #0284c7);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3),
                inset 0 1px 0 var(--white-020);
}

[data-theme=light] .toggle-option {
    color: rgba(51, 65, 85, 0.9);
    font-weight: 600;
}

[data-theme=light] .toggle-option:hover:not(.active) {
    color: rgba(14, 165, 233, 0.9);
}

[data-theme=light] .toggle-option.active {
    color: white;
    font-weight: 700;
}

[data-theme=light] .plan-button {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-theme=light] .plan-button:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

[data-theme=light] .plan-button.secondary {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme=light] .plan-button.secondary:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.2);
}

/* Legal Pages Styling */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.legal-intro-card {
    background: var(--glass-bg);
    -webkit-backdrop-filter: var(--backdrop-blur-lg);
    backdrop-filter: var(--backdrop-blur-lg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 40px;
    box-shadow: var(--glass-shadow);
}

.legal-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.legal-meta span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.legal-intro-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin: 0;
}

.legal-block {
    background: var(--glass-bg);
    -webkit-backdrop-filter: var(--backdrop-blur-lg);
    backdrop-filter: var(--backdrop-blur-lg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    margin-bottom: 32px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(14, 165, 233, 0.08),
                0 4px 16px rgba(0, 0, 0, 0.05),
                inset 0 1px 0 var(--white-010);
    transition: all 0.3s ease;
    position: relative;
}

.legal-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(14, 165, 233, 0.2),
                0 6px 20px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 var(--white-020);
    border-color: rgba(14, 165, 233, 0.3);
}

.legal-block-header {
    background: linear-gradient(135deg,
        var(--primary-008) 0%,
        var(--primary-010) 50%,
        var(--primary-015) 100%);
    padding: 24px 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid var(--glass-border);
    position: relative;
}

.legal-block-number {
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.legal-block-number::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 58px;
    height: 58px;
    border: 2px solid rgba(14, 165, 233, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: legalOrbitRotate 8s linear infinite;
}

.legal-block-number::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(0deg) translateY(-29px);
    animation: legalDotOrbit 8s linear infinite;
    box-shadow: 0 0 8px rgba(14, 165, 233, 0.6);
}

@keyframes legalDotOrbit {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) translateY(-29px);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg) translateY(-29px);
    }
}

@keyframes legalOrbitRotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.legal-block-header h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.legal-block-content {
    padding: 36px 32px 32px 32px;
    line-height: 1.8;
    background: rgba(255, 255, 255, 0.01);
}

.legal-block-content > p {
    margin: 0 0 20px 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.legal-subsection {
    margin-bottom: 32px;
}

.legal-subsection:last-child {
    margin-bottom: 0;
}

.legal-subsection h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.legal-subsection p {
    margin: 0 0 16px 0;
    color: var(--text-primary);
    line-height: 1.7;
}

.legal-list {
    display: grid;
    gap: 12px;
    margin: 20px 0;
}

.legal-list-item {
    color: var(--text-primary);
    line-height: 1.7;
    position: relative;
}

.legal-list-item::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 12px;
}

.legal-highlight-list {
    display: grid;
    gap: 16px;
    margin: 20px 0;
}

.legal-highlight-item {
    background: var(--primary-005);
    border: 1px solid var(--primary-015);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    color: var(--text-primary);
    line-height: 1.7;
    transition: all 0.2s ease;
}

.legal-highlight-item:hover {
    background: var(--primary-010);
    border-color: var(--primary-030);
    transform: translateX(4px);
}

.legal-highlight-item strong {
    color: var(--primary-color);
    font-weight: 600;
}

.legal-contact-note {
    background: var(--primary-010);
    border: 1px solid var(--primary-020);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 24px;
    text-align: center;
    font-weight: 500;
}

.legal-contact-note a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.legal-contact-note a:hover {
    text-decoration: underline;
}

.legal-note {
    background: var(--white-010);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-top: 16px;
    color: var(--text-secondary);
    font-style: italic;
    border-left: 3px solid var(--primary-color);
}

.contact-block {
    background: var(--primary-005);
    border-color: var(--primary-020);
}

.contact-block .legal-block-header {
    background: var(--primary-020);
}

.contact-info-grid {
    display: grid;
    gap: 24px;
    margin-top: 24px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.contact-info-item {
    background: var(--white-010);
    border: 1px solid var(--white-015);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all 0.2s ease;
}

.contact-info-item:hover {
    background: var(--white-020);
    border-color: var(--primary-020);
    transform: translateY(-2px);
}

.contact-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.contact-value {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.6;
}

.contact-value a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-value a:hover {
    text-decoration: underline;
}

.contact-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Light Theme Overrides for Legal Pages */
[data-theme=light] .legal-intro-card,
[data-theme=light] .legal-block {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--slate-030);
    box-shadow: 0 8px 32px rgba(71, 85, 105, 0.08),
                0 4px 16px rgba(0, 0, 0, 0.03),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

[data-theme=light] .legal-block:hover {
    box-shadow: 0 12px 40px rgba(71, 85, 105, 0.15),
                0 6px 20px rgba(0, 0, 0, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-color: var(--slate-040);
}

[data-theme=light] .legal-block-header {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(248, 250, 252, 0.9) 50%,
        rgba(241, 245, 249, 0.9) 100%);
    border-bottom-color: var(--slate-025);
}

[data-theme=light] .legal-block-number {
    background: linear-gradient(135deg, #475569, #64748b);
    box-shadow: 0 4px 12px rgba(71, 85, 105, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

[data-theme=light] .legal-block-number::before {
    border-color: rgba(71, 85, 105, 0.2);
}

[data-theme=light] .legal-block-number::after {
    background: #475569;
    box-shadow: 0 0 8px rgba(71, 85, 105, 0.6);
}


[data-theme=light] .legal-highlight-item {
    background: var(--white-025);
    border-color: var(--slate-020);
}

[data-theme=light] .legal-highlight-item:hover {
    background: var(--white-040);
    border-color: var(--slate-040);
}

[data-theme=light] .legal-contact-note {
    background: var(--white-030);
    border-color: var(--slate-030);
}

[data-theme=light] .legal-note {
    background: var(--white-025);
}

[data-theme=light] .contact-info-item {
    background: var(--white-025);
    border-color: var(--slate-015);
}

[data-theme=light] .contact-info-item:hover {
    background: var(--white-040);
    border-color: var(--slate-030);
}

/* Mobile Responsive for Legal Pages */
@media screen and (max-width: 768px) {
    .legal-content {
        padding: 0 15px;
    }

    .legal-intro-card {
        padding: 24px 20px;
        margin-bottom: 30px;
    }

    .legal-meta {
        flex-direction: column;
        gap: 12px;
    }

    .legal-block-header {
        padding: 16px 20px;
        gap: 12px;
    }

    .legal-block-number {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .legal-block-header h2 {
        font-size: 1.2rem;
    }

    .legal-block-content {
        padding: 24px 20px;
    }

    .legal-list-item,
    .legal-highlight-item {
        padding: 14px 16px;
    }

    .contact-info-item {
        padding: 20px 16px;
    }

    .contact-value {
        font-size: 1rem;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}



/* Google Translate Styles */
.google-translate-toolbar {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 9999;
    background: var(--panel-bg);
    -webkit-backdrop-filter: var(--blur-lg);
    backdrop-filter: var(--blur-lg);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-md);
    padding: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Removed duplicate Google Translate styles - using simplified version above */

/* Style for when page is translated */
body.translated {
    position: relative !important;
    top: 0 !important;
}

/* Fix for translated links */
a font {
    color: inherit !important;
}

/* Google Translate Styles - Allow creation then hide */
#google_translate_element {
    position: fixed !important;
    top: -200px !important;
    left: -200px !important;
    width: 200px !important;
    height: 50px !important;
    z-index: -1000 !important;
    overflow: hidden !important;
}

/* Initially visible for creation, then hidden via JS */
#google_translate_element.gt-initializing {
    opacity: 1 !important;
    pointer-events: auto !important;
}

#google_translate_element.gt-hidden {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Allow Google Translate UI to be created */
.goog-te-gadget,
.goog-te-gadget-simple {
    position: relative !important;
    width: 200px !important;
    height: 50px !important;
}

/* Allow dropdown to be created and functional */
.goog-te-combo {
    position: relative !important;
    
}

/* Hide banners and frames */
.goog-te-banner-frame,
.goog-te-ftab {
    display: none !important;
    visibility: hidden !important;
}

/* Keep translated content styling */
body.translated {
    position: relative !important;
    top: 0 !important;
}

a font {
    color: inherit !important;
}


/* AI Banner - Matching Planet Panel Style */
@keyframes slideInBanner {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.ai-banner {
    position: absolute;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 500px;
    width: 90%;
    padding: 20px 30px;
    z-index: 100;
    border-radius: 20px;
    opacity: 0;
    animation: slideInBanner 0.6s ease-out 0.5s forwards;
}

/* Banner text styling */
.ai-banner-title {
    margin: 0 0 8px 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.ai-banner-description {
    margin: 0 0 6px 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.ai-banner-info {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Close button styling */
.ai-banner-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 11px;
    padding: 0;
    z-index: 2;
}

/* Dark theme banner (default) - matches planet panel */
[data-theme=dark] .ai-banner {
    background: rgba(14, 165, 233, 0.1) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(14, 165, 233, 0.5);
    box-shadow: 0 1px 4px 0 rgb(14 165 233 / 6%), 0 1px 10px 0 rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

[data-theme=dark] .ai-banner-title {
    color: #ffffff;
}

[data-theme=dark] .ai-banner-description {
    color: rgba(255, 255, 255, 0.85);
}

[data-theme=dark] .ai-banner-info {
    color: #0ea5e9;
}

[data-theme=dark] .ai-banner-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.3);
    color: rgba(255, 255, 255, 0.8);
}

[data-theme=dark] .ai-banner-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Default for dark mode without attribute */
body:not([data-theme="light"]) .ai-banner {
    background: rgba(14, 165, 233, 0.1) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(14, 165, 233, 0.5);
    box-shadow: 0 1px 4px 0 rgb(14 165 233 / 6%), 0 1px 10px 0 rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

body:not([data-theme="light"]) .ai-banner-title {
    color: #ffffff;
}

body:not([data-theme="light"]) .ai-banner-description {
    color: rgba(255, 255, 255, 0.85);
}

body:not([data-theme="light"]) .ai-banner-info {
    color: #0ea5e9;
}

body:not([data-theme="light"]) .ai-banner-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.3);
    color: rgba(255, 255, 255, 0.8);
}

body:not([data-theme="light"]) .ai-banner-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Light mode banner - matches planet panel */
[data-theme=light] .ai-banner {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

[data-theme=light] .ai-banner-title {
    color: #1e293b;
}

[data-theme=light] .ai-banner-description {
    color: #475569;
}

[data-theme=light] .ai-banner-info {
    color: #0ea5e9;
}

[data-theme=light] .ai-banner-close {
    background: rgba(30, 41, 59, 0.1);
    border: 1px solid rgba(30, 41, 59, 0.2);
    color: #1e293b;
}

[data-theme=light] .ai-banner-close:hover {
    background: rgba(30, 41, 59, 0.2);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .ai-banner {
        top: 70px !important;
        padding: 15px 20px !important;
        max-width: 95% !important;
    }

    .ai-banner-title {
        font-size: 1.1rem !important;
    }

    .ai-banner-description {
        font-size: 0.85rem !important;
    }

    .ai-banner-info {
        font-size: 0.8rem !important;
    }
}
/* ==========================================
   SUCCESS MODAL STYLES - CLEAN CARD
   ========================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease-out;
}

.modal-content {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.3s ease-out;
}

.modal-icon {
    margin-bottom: 24px;
}

.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.success-checkmark svg {
    width: 80px;
    height: 80px;
}

.modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
}

.modal-message {
    font-size: 16px;
    color: #5a6c7d;
    line-height: 1.6;
    margin-bottom: 28px;
}

.modal-button {
    background: #4BB543;
    color: white;
    border: none;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.modal-button:hover {
    background: #45a83e;
}

.modal-button:active {
    transform: translateY(1px);
}

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

/* Responsive */
@media (max-width: 768px) {
    .modal-content {
        padding: 32px 24px;
        width: 95%;
    }

    .modal-title {
        font-size: 20px;
    }

    .modal-message {
        font-size: 14px;
    }

    .success-checkmark,
    .success-checkmark svg {
        width: 60px;
        height: 60px;
    }
}

/* Font display optimization for FontAwesome */
@font-face {
    font-family: 'Font Awesome 6 Brands';
    font-display: swap;
}

@font-face {
    font-family: 'Font Awesome 6 Free';
    font-display: swap;
}
