:root {
    /* Light Theme (Default) - Refined for better contrast */
    --bg-color: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.9);
    --text-main: #0b0c1a;
    --text-dim: #444b59;
    /* Darker for light theme */
    --primary-accent: #0097a1;
    /* Darker teal for readability */
    --primary-neon: #0097a1;
    --secondary-neon: #5c00d1;
    --border-color: rgba(0, 0, 0, 0.12);
    --glass-blur: blur(25px);
    --input-bg: #f3f5f9;
    --btn-primary-hover: #1e2030;
    --primary-neon-gradient: linear-gradient(135deg, #0097a1 0%, #5c00d1 100%);
    --primary-readable: #007c85;

    /* Semantic Status Colors */
    --status-success: #00a878;
    --status-danger: #e63946;
    --status-warning: #f59e0b;
    --status-info: #3b82f6;

    /* Spacing Scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 2rem;
    --space-2xl: 1rem;

    /* Container Widths */
    --container-max-width: 1280px;
    --container-padding: 2rem;

    /* Extra semantic colors for light theme */
    --status-success-dark: #0d9488;
    --status-danger-dark: #c92a2a;
}

[data-theme="dark"] {
    /* Dark Theme */
    --bg-color: #0b0c1a;
    --card-bg: rgba(11, 12, 26, 0.85);
    --text-main: #ffffff;
    --text-dim: #94a3b8;
    --primary-accent: #00f2ff;
    --primary-neon: #00f2ff;
    --secondary-neon: #7000ff;
    --border-color: rgba(255, 255, 255, 0.1);
    --input-bg: rgba(255, 255, 255, 0.05);
    --btn-primary-hover: #e2e8f0;
    --primary-neon-gradient: linear-gradient(135deg, #00f2ff 0%, #7000ff 100%);
    --primary-readable: #00f2ff;

    /* Semantic Status Colors */
    --status-success: #00f2ff;
    --status-danger: #ff3e3e;
    --status-warning: #fbbf24;
    --status-info: #60a5fa;

    color-scheme: dark;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: default;
    transition: background 0.4s ease, color 0.4s ease;
    -webkit-font-smoothing: antialiased;
}

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

/* Glass Panel Utility */
.glass-panel {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}



/* Auth Container */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg-color);
}

.auth-container {
    width: 100%;
    max-width: 600px;
    padding: 2rem;
}

.theme-toggle-btn {
    background: none !important;
    border: none !important;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    color: var(--text-dim);
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.theme-toggle-btn:hover {
    color: var(--primary-readable);
    transform: none !important;
    box-shadow: none !important;
}

.theme-toggle-btn span {
    transition: filter 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.auth-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .auth-grid-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}


/* Journal Layout */
.journal-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    height: calc(100vh - 220px);
    min-height: 600px;
}

/* Form Styles */
.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    background: var(--input-bg);
    border: none;
    border-radius: 10px;
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.form-group input:focus {
    outline: none;
    background: var(--bg-color);
    box-shadow: 0 0 0 4px rgba(0, 242, 255, 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--text-main);
    color: var(--bg-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-neon {
    background: var(--primary-neon-gradient);
    color: #000;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px rgba(0, 242, 255, 0.3);
}

.btn-neon:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 8px 25px rgba(0, 242, 255, 0.4);
}

[data-theme="light"] .btn-neon {
    color: #fff;
}

.glass-select {
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    background: var(--input-bg);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 3rem;
    transition: all 0.3s ease;
}

.glass-select:focus {
    border-color: var(--primary-neon);
    box-shadow: 0 0 0 4px rgba(0, 242, 255, 0.1);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--text-main) 0%, var(--primary-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-btn {
    padding: 0.5rem 1.2rem !important;
    font-size: 0.9rem !important;
    border-radius: 50px !important;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 120px !important;
}

.cta-wrapper {
    margin-top: 1rem;
}

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

.auth-logo {
    font-size: 2rem !important;
    font-weight: 800;
    text-decoration: none;
    display: block;
    margin-bottom: 1rem;
}

.auth-subtitle {
    font-size: 1.5rem !important;
    font-weight: 600;
    color: var(--text-dim);
}

.auth-submit {
    width: 100%;
    margin-bottom: 1.5rem;
}

/* Index Page Specifics */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] nav {
    background: #0b0b1a;

}

nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] nav.scrolled {
    background: #0b0c1a;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
    text-decoration: none;
    z-index: 2001;
    /* High enough to stay above mobile nav */
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--text-main);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 101;
    color: var(--text-main);
}

@media (max-width: 900px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        /* Start below header to avoid clashing with logo */
        right: -100%;
        width: 100%;
        /* Full width for cleaner panel look */
        height: calc(100vh - 80px);
        background: var(--bg-color);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 4rem;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: none;
        z-index: 1000;
        display: none;
        border-top: 1px solid var(--border-color);
    }

    .nav-links.active {
        display: flex;
        right: 0;
    }
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 160px !important;
    text-align: center;
    /* Forced center on all screens */
}

.stat-mini {
    padding: 1.5rem;
    text-align: center;
    background: var(--card-bg);
    border: 1px solid var(--border-color) !important;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

[data-theme="light"] .stat-mini {
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.stat-mini:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    animation: slideUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-dim);
    margin-bottom: 3rem;
    font-weight: 400;
    animation: slideUp 1s ease-out 0.2s both;
}

/* CTA Button - Updated Style */
.cta-button,
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    /* Light theme defaults */
    background: #fff;
    color: #000;
    border: 2px solid #000;
}

.cta-button:hover,
.btn-primary:hover {
    background: #0b0d1a;
    color: #fff;
    border-color: #0b0d1a;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(11, 13, 26, 0.3);
}

[data-theme="dark"] .cta-button,
[data-theme="dark"] .btn-primary {
    background: var(--bg-color);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .cta-button:hover,
[data-theme="dark"] .btn-primary:hover {
    background: #00f2ff;
    color: #000;
    border-color: #00f2ff;
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.5);
}

/* Specific restoration of neon for light theme index page */
[data-theme="light"] .hero-section .cta-button,
[data-theme="light"] #pricing .pricing-button {
    background: #00f2ff !important;
    color: #000 !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 242, 255, 0.4);
}

[data-theme="light"] .hero-section .cta-button:hover,
[data-theme="light"] #pricing .pricing-button:hover {
    filter: brightness(0.95);
    box-shadow: 0 6px 20px rgba(0, 242, 255, 0.5);
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: transparent;
    color: var(--text-main);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-main);
    color: var(--text-main);
    transform: translateY(-1px);
}

[data-theme="dark"] .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}


/* Description Section */
.description-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.section-title-alt {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

.description-text {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: var(--space-lg);
}

.highlight-text {
    color: var(--text-main);
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

.stat-item {
    padding: var(--space-md);
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    color: var(--primary-readable);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: 0.02em;
}

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

.neural-container {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Neural Core with Shield Animation */
.neural-core {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.neural-core i {
    animation: shieldPulse 3s ease-in-out infinite;
}

@keyframes shieldPulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px var(--primary-neon));
    }

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 40px var(--primary-neon));
    }
}

.core-glow {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--primary-neon);
    border-radius: 50%;
    box-shadow: 0 0 50px var(--primary-neon), 0 0 100px var(--primary-neon);
    animation: pulseGlow 3s infinite ease-in-out;
    z-index: 1;
}

.core-rings {
    position: absolute;
    width: 100%;
    height: 100%;
}

.ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    animation: rotateRing var(--speed) linear infinite;
}

.ring:nth-child(1) {
    width: 100px;
    height: 100px;
    --speed: 10s;
    border-top-color: var(--primary-readable);
}

.ring:nth-child(2) {
    width: 140px;
    height: 140px;
    --speed: 15s;
    border-right-color: var(--secondary-neon);
}

.ring:nth-child(3) {
    width: 180px;
    height: 180px;
    --speed: 20s;
    border-bottom-color: var(--primary-readable);
}

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

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

@keyframes pulseGlow {

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

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

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.feature-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: #0b0c1a;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #fff;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.feature-icon:hover {
    transform: scale(1.15);
}

.feature-card:hover .feature-icon {
    background: #fff;
    color: #0b0c1a;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

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

[data-theme="dark"] .feature-icon:hover {
    transform: scale(1.15);
}

[data-theme="dark"] .feature-card:hover .feature-icon {
    background: #00f2ff;
    color: #0b0c1a;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.5);
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-color);
    border: 2px solid rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    padding: 3.5rem 2.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pricing-card.featured {
    border-color: var(--primary-accent);
    transform: scale(1.05);
}

@media (max-width: 900px) {
    .pricing-card.featured {
        transform: scale(1) !important;
        border-color: var(--primary-accent) !important;
    }
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pricing-header {
    margin-bottom: 2rem;
}

.pricing-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.pricing-period {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 3rem;
    flex-grow: 1;
}

.pricing-features li {
    padding: 0.6rem 0;
    color: var(--text-dim);
    font-size: 0.95rem;
}

.pricing-button {
    display: inline-block;
    background: #0b0c1a;
    color: #fff;
    padding: 1.1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
    width: 100%;
    border: 1px solid #0b0c1a;
}

.pricing-button:hover {
    background: #fff;
    color: #0b0c1a;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: #0b0c1a;
}

[data-theme="dark"] .pricing-button {
    background: #0b0c1a;
    border-color: #00f2ff;
    color: #fff;
}

[data-theme="dark"] .pricing-button:hover {
    background: #00f2ff;
    color: #0b0c1a;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.1;
    }

    50% {
        opacity: 0.3;
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

@media (max-width: 900px) {
    .animate-on-scroll {
        transform: translateY(15px);
        /* Less aggressive for mobile to prevent "crooked" look */
        transition: all 0.6s ease-out;
    }
}



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

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.4);
}

/* Geometric Shapes */
.geometric-shape {
    position: absolute;
    border: 1px solid var(--border-color);
    animation: rotate 20s infinite linear;
}

.shape-1 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    top: 10%;
    right: 10%;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    left: 5%;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    right: 20%;
    border-radius: 20px;
    transform: rotate(45deg);
}

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

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

/* Helper Class for specific styles override */
.form-input {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-button {
    background: #0b0c1a;
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #0b0c1a;
}

.form-button:hover {
    background: #fff;
    color: #0b0c1a;
    transform: translateY(-2px);
    border-color: #0b0c1a;
}

[data-theme="dark"] .form-button {
    background: #0b0c1a;
    border-color: #00f2ff;
    color: #fff;
}

/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    padding: 1.5rem 2rem;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    z-index: 9999;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.5s ease;
}

.cookie-text {
    font-size: 0.9rem;
    color: var(--text-main);
}

.cookie-close {
    background: var(--text-main);
    color: var(--bg-color);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: var(--transition);
}

.cookie-close:hover {
    opacity: 0.8;
}

/* Charts */
.chart-container {
    width: 100%;
    height: 100%;
    min-height: 300px;
    position: relative;
}

/* Sidebar Fixes */
.sidebar-links {
    margin-top: 10rem;
    background: transparent !important;
}

/* Contact Form Refinement */
.contact-container {
    max-width: 1000px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.contact-text {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: var(--space-lg);
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.contact-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--primary-readable);
}

.contact-form-wrapper {
    padding: var(--space-lg);
}

.form-status {
    margin-top: var(--space-sm);
    display: none;
    padding: var(--space-sm);
    border-radius: 12px;
}

@media (max-width: 900px) {

    .description-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .neural-container {
        height: 300px;
    }

    .section-title-alt {
        font-size: 2rem;
    }
}

/* Global Section Spacing */
section {
    padding: var(--space-2xl) var(--container-padding);
}

@media (max-width: 1024px) {
    :root {
        --space-xl: 2rem;
        --space-2xl: 4.5rem;
        --container-padding: 1.5rem;
    }
}

/* Dashboard Layout */
:root {
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 80px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-layout {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    min-height: 100vh;
    transition: var(--transition);
}

.dashboard-layout.sidebar-collapsed {
    grid-template-columns: var(--sidebar-collapsed-width) 1fr;
}

.sidebar {
    background: rgba(11, 13, 26, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-right: 1px solid var(--border-color);
    padding: var(--space-lg) var(--space-md);
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: var(--transition);
    overflow-x: hidden;
}

.sidebar-collapsed .sidebar {
    padding: var(--space-lg) var(--space-xs);
    align-items: center;
}

.sidebar-header {
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
    width: 100%;
}

.sidebar-collapsed .sidebar-header {
    justify-content: center;
}

.sidebar-collapsed .logo-text,
.sidebar-collapsed .link-text {
    display: none;
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    width: 100%;
    background: transparent !important;
}

.sidebar-link {
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    color: var(--text-dim);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    white-space: nowrap;
}

.sidebar-collapsed .sidebar-link {
    justify-content: center;
    padding: 0.8rem;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(0, 242, 255, 0.1);
    color: var(--primary-readable);
}

[data-theme="light"] .sidebar-link.active {
    background: rgba(0, 151, 161, 0.08);
    /* More subtle for light theme */
    color: var(--primary-accent);
}

[data-theme="light"] .sidebar-link:hover {
    background: rgba(0, 151, 161, 0.05);
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.sidebar-toggle:hover {
    background: var(--border-color);
}

.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: transparent !important;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    padding: 0 var(--container-padding);
    align-items: center;
    justify-content: space-between;
    z-index: 1100;
}

.main-content {
    padding: var(--space-lg) var(--container-padding);
    width: 100%;
}

.hamburger {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent !important;
    backdrop-filter: blur(4px);
    z-index: 999;
}

.sidebar-overlay.active {
    display: block;
}

@media (max-width: 1024px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        left: -100%;
        width: 280px;
        background: transparent !important;
        backdrop-filter: blur(15px);
        box-shadow: 20px 0 50px rgba(0, 0, 0, 0.1);
    }

    .sidebar.active {
        left: 0;
    }

    .mobile-header {
        display: flex;
    }

    .main-content {
        padding: 90px var(--container-padding) var(--space-lg) !important;
    }
}

/* Profile Page Styles */
.profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 70vh;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-neon), var(--secondary-neon));
    border: 4px solid var(--border-color);
}

.profile-title {
    font-size: 2.5rem;
    margin-bottom: var(--space-xs);
}

.profile-access {
    color: var(--text-dim);
    font-size: 1.1rem;
}

.messages-container {
    margin-bottom: var(--space-lg);
    width: 100%;
    max-width: 800px;
}

.message-alert {
    padding: var(--space-sm);
    border-radius: 12px;
    background: rgba(0, 242, 255, 0.1);
    color: var(--primary-readable);
    margin-bottom: var(--space-xs);
    border: 1px solid rgba(0, 242, 255, 0.2);
    text-align: center;
}

.profile-form-container {
    max-width: 1000px;
    width: 100%;
    padding: var(--space-lg);
}

.profile-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.profile-submit-wrapper {
    display: flex;
    justify-content: center;
}

.profile-submit-btn {
    width: 100%;
    max-width: 300px;
}

@media (max-width: 600px) {
    .profile-header {
        flex-direction: column;
        gap: var(--space-md);
    }

    .profile-title {
        font-size: 1.8rem;
    }

    .profile-form-container {
        padding: var(--space-md);
    }

    .profile-submit-btn {
        max-width: 100%;
    }
}

/* Project List & Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-md);
}

.project-card {
    transition: var(--transition);
    position: relative;
    padding: var(--space-md);
}

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

.branch-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
}

.badge-active {
    background: rgba(0, 242, 255, 0.1) !important;
    color: var(--primary-readable) !important;
}

.badge-success {
    /* color: #44ff44 !important; REMOVED GLOBAL OVERRIDE */
    background: rgba(68, 255, 68, 0.1) !important;
    border: 1px solid rgba(68, 255, 68, 0.2) !important;
}

.delete-btn {
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    border: 1px solid rgba(255, 68, 68, 0.2);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.75rem;
    transition: var(--transition);
    cursor: pointer;
    display: block;
}

.delete-btn:hover {
    background: #ff4444;
    color: #fff;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    max-width: 400px;
    width: 90%;
    text-align: center;
    padding: var(--space-lg);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    :root {
        --space-xl: 2.5rem;
        --space-2xl: 3.5rem;
        --container-padding: 1rem;
    }
}

/* Dashboard Extra Utilities */
.header-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.project-info-group {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.project-meta {
    margin-bottom: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

/* Meta Data Alignment Fix */
.meta-item {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}

.meta-label {
    color: var(--text-dim);
    min-width: 80px;
}

.meta-value {
    font-weight: 600;
    color: var(--text-main);
}

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

@media (max-width: 600px) {
    .header-actions {
        width: 100%;
    }

    .header-actions .btn {
        width: 100%;
        text-align: center;
    }

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

/* Sidebar Footer & Header Utils */
.header-right-group {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.sidebar-footer {
    margin-top: auto;
    width: 100%;
}

.sidebar-footer-content {
    padding: var(--space-md) 0;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.logout-link {
    color: #ff4d4d !important;
}

.logout-link:hover {
    background: rgba(255, 77, 77, 0.1) !important;
    color: #ff4d4d !important;
}

/* LK Standardized Header */
.lk-header {
    margin-bottom: 3.5rem;
}

.lk-header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 0.8rem;
    color: var(--text-main);
}

.lk-header p {
    color: var(--text-dim);
    font-size: 1.1rem;
}

/* Standardized Form Controls */
.form-input,
.contact-form-wrapper input,
.contact-form-wrapper textarea,
.form-group input,
.form-group textarea,
.glass-input {
    background: var(--input-bg) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-main) !important;
    transition: var(--transition);
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
    width: 100%;
    font-family: inherit;
    font-size: 1rem;
}

.glass-input:focus,
.form-input:focus,
.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus {
    border-color: var(--primary-readable) !important;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.1) !important;
    background: var(--bg-color) !important;
    outline: none !important;
}

textarea.glass-input {
    resize: vertical;
    min-height: 100px;
}

.form-input:focus,
.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus {
    border-color: var(--primary-readable) !important;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.1) !important;
}

/* Dashboard Card UI Fixes */
.project-card {
    padding: 2.5rem !important;
    display: flex;
    flex-direction: column;
}

.project-meta {
    margin-bottom: 2rem !important;
}

/* Sidebar Responsive Logo */
.sidebar-collapsed .sidebar-header .logo {
    display: none;
}

.sidebar-collapsed .sidebar-header {
    justify-content: center;
}

/* Premium Toggle Switch */
.switch-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    cursor: pointer;
    user-select: none;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: .4s;
    border-radius: 34px;
}

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

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

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

.slider-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
}

/* Standardized Phase 4 Spacing & Contrast Fixes */
.lk-header p {
    color: var(--text-dim);
    font-weight: 500;
}

[data-theme="light"] .branch-badge {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-main);
}

[data-theme="dark"] .branch-badge {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-readable);
}

.glass-panel h3,
.glass-panel h4 {
    color: var(--text-main);
}

.meta-label {
    color: var(--text-dim) !important;
}

.meta-value {
    color: var(--text-main) !important;
}

/* Global Deletion & Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    max-width: 420px;
    width: 90%;
    text-align: center;
    padding: 2.5rem;
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-top: 2rem;
}

.delete-btn-unified {
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    border: 1px solid rgba(255, 68, 68, 0.2);
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.delete-btn-unified:hover {
    background: #ff4444 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.4);
}

.delete-btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

/* Shared Settings & Configuration UI Components */
.summary-item-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.summary-item-hover:hover {
    transform: translateX(10px);
    border-color: var(--primary-readable) !important;
    background: var(--card-bg) !important;
}

.salon-item-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.salon-item-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-readable) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .salon-item-card:hover {
    box-shadow: 0 10px 40px rgba(0, 242, 255, 0.15);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.status-dot.active {
    background: #00ff88;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
}

.status-dot.inactive {
    background: #ff4444;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.4);
}

.neon-icon-box {
    width: 45px;
    height: 45px;
    background: rgba(0, 242, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-readable);
    font-size: 1.1rem;
}

[data-theme="light"] .neon-icon-box {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-main);
}

/* ============================================
   Multi-Platform Card & Animations
   ============================================ */

/* Platform showcase card */
.platform-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    overflow: hidden;
}

.platform-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

[data-theme="dark"] .platform-card::before {
    background: linear-gradient(90deg, transparent, rgba(0, 242, 255, 0.1), transparent);
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.platform-icons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.platform-icon {
    font-size: 3rem;
    animation: iconPulse 2s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.platform-icon:hover {
    transform: scale(1.2);
    animation: none;
}

.platform-icon:nth-child(1) {
    animation-delay: 0s;
}

.platform-icon:nth-child(2) {
    animation-delay: 0.2s;
}

.platform-icon:nth-child(3) {
    animation-delay: 0.4s;
}

.platform-icon:nth-child(4) {
    animation-delay: 0.6s;
}

@keyframes iconPulse {

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

    50% {
        transform: scale(1.05);
        opacity: 0.85;
    }
}

/* Simplified scroll-based animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive Design Enhancements
   ============================================ */

/* Mobile First - Base styles above already handle mobile */

/* Tablet (768px and up) */
@media (max-width: 1024px) {
    .hero-title {
        font-size: clamp(2.5rem, 6vw, 4rem);
    }

    .hero-content {
        max-width: 700px;
    }

    .description-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .platform-icons {
        gap: 1rem;
    }

    .platform-icon {
        font-size: 2.5rem;
    }
}

/* Mobile (768px and down) */
@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .cta-button,
    .btn-primary {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
        max-width: 350px;
    }

    .platform-card {
        padding: 2rem 1.5rem;
    }

    .platform-icon {
        font-size: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr !important;
    }

    .pricing-grid {
        grid-template-columns: 1fr !important;
    }

    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Theme-specific responsive adjustments */
@media (max-width: 768px) {
    [data-theme="dark"] .btn-primary {
        background: var(--bg-color);
        border-width: 1px;
    }
}

:root {
    /* Light Theme (Default) */
    --bg-color: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.8);
    --text-main: #0b0c1a;
    --text-dim: #555;
    --primary-accent: #00f2ff;
    --primary-neon: #00f2ff;
    --secondary-neon: #7000ff;
    --border-color: rgba(0, 0, 0, 0.1);
    --glass-blur: blur(20px);
    --input-bg: #f8f9fa;
    --btn-primary-hover: #333;

    /* Spacing Scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 1rem;

    /* Container Widths */
    --container-max-width: 1400px;
    --container-padding: 2rem;
}

[data-theme="dark"] {
    /* Dark Theme */
    --bg-color: #0b0c1a;
    --card-bg: rgba(11, 12, 26, 0.8);
    --text-main: #ffffff;
    --text-dim: #b0b0b0;
    --primary-accent: #00f2ff;
    --primary-neon: #00f2ff;
    --secondary-neon: #7000ff;
    --border-color: rgba(255, 255, 255, 0.1);
    --input-bg: rgba(255, 255, 255, 0.05);
    --btn-primary-hover: #ccc;
    color-scheme: dark;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: default;
    transition: background 0.4s ease, color 0.4s ease;
    -webkit-font-smoothing: antialiased;
}

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

/* Glass Panel Utility */
.glass-panel {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .glass-panel {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* Auth Container */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg-color);
}

.auth-container {
    width: 100%;
    max-width: 600px;
    padding: 2rem;
}

.theme-toggle-btn {
    background: none !important;
    border: none !important;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    color: var(--text-dim);
    transition: var(--transition);
    font-size: 1.1rem;
}

.theme-toggle-btn:hover {
    color: var(--primary-readable);
    transform: none !important;
    box-shadow: none !important;
}

.theme-toggle-btn span {
    transition: filter 0.3s ease;
}


/* Form Styles */
.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    background: var(--input-bg);
    border: none;
    border-radius: 10px;
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.form-group input:focus {
    outline: none;
    background: var(--bg-color);
    box-shadow: 0 0 0 4px rgba(0, 242, 255, 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--text-main);
    color: var(--bg-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--text-main) 0%, var(--primary-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-btn {
    padding: 0.5rem 1.2rem !important;
    font-size: 0.9rem !important;
    border-radius: 50px !important;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
}

.cta-wrapper {
    margin-top: 1rem;
}

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

.auth-logo {
    font-size: 2rem !important;
    font-weight: 800;
    text-decoration: none;
    display: block;
    margin-bottom: 1rem;
}

.auth-subtitle {
    font-size: 1.5rem !important;
    font-weight: 600;
    color: var(--text-dim);
}

.auth-submit {
    width: 100%;
    margin-bottom: 1.5rem;
}

/* Index Page Specifics */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] nav {
    background: #0b0b1a;

}

nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] nav.scrolled {
    background: #0b0c1a;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
    text-decoration: none;
    z-index: 1001;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--text-main);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 101;
    color: var(--text-main);
}

@media (max-width: 900px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed !important;
        top: 80px !important;
        right: -100% !important;
        width: 100% !important;
        height: calc(100vh - 80px) !important;
        background: var(--bg-color) !important;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 4rem;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: none !important;
        z-index: 1000 !important;
        display: none;
        border-top: 1px solid var(--border-color);
    }

    .nav-links.active {
        display: flex !important;
        right: 0 !important;
    }
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
}

.hero-content {
    text-align: center;
    max-width: 950px;
    z-index: 2;
    padding: 0 var(--container-padding);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    animation: slideUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-dim);
    margin-bottom: 3rem;
    font-weight: 400;
    animation: slideUp 1s ease-out 0.2s both;
}

/* CTA Button - Updated Style */
.cta-button,
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    /* Light theme defaults */
    background: #fff;
    color: #000;
    border: 2px solid #000;
}

.cta-button:hover,
.btn-primary:hover {
    background: #0b0d1a;
    color: #fff;
    border-color: #0b0d1a;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(11, 13, 26, 0.3);
}

[data-theme="dark"] .cta-button,
[data-theme="dark"] .btn-primary {
    background: var(--bg-color);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .cta-button:hover,
[data-theme="dark"] .btn-primary:hover {
    background: #00f2ff;
    color: #000;
    border-color: #00f2ff;
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.5);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: transparent;
    color: var(--text-main);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-main);
    color: var(--text-main);
    transform: translateY(-1px);
}

[data-theme="dark"] .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}


/* Description Section */
.description-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.section-title-alt {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

.description-text {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: var(--space-lg);
}

.highlight-text {
    color: var(--text-main);
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

.stat-item {
    padding: var(--space-md);
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    color: var(--primary-readable);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: 0.02em;
}

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

.neural-container {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Neural Core with Shield Animation */
.neural-core {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.neural-core i {
    animation: shieldPulse 3s ease-in-out infinite;
}

@keyframes shieldPulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px var(--primary-neon));
    }

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 40px var(--primary-neon));
    }
}

.core-glow {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--primary-neon);
    border-radius: 50%;
    box-shadow: 0 0 50px var(--primary-neon), 0 0 100px var(--primary-neon);
    animation: pulseGlow 3s infinite ease-in-out;
    z-index: 1;
}

.core-rings {
    position: absolute;
    width: 100%;
    height: 100%;
}

.ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    animation: rotateRing var(--speed) linear infinite;
}

.ring:nth-child(1) {
    width: 100px;
    height: 100px;
    --speed: 10s;
    border-top-color: var(--primary-readable);
}

.ring:nth-child(2) {
    width: 140px;
    height: 140px;
    --speed: 15s;
    border-right-color: var(--secondary-neon);
}

.ring:nth-child(3) {
    width: 180px;
    height: 180px;
    --speed: 20s;
    border-bottom-color: var(--primary-readable);
}

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

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

@keyframes pulseGlow {

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

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

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.feature-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: #0b0c1a;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #fff;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.feature-icon:hover {
    transform: scale(1.15);
}

.feature-card:hover .feature-icon {
    background: #fff;
    color: #0b0c1a;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

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

[data-theme="dark"] .feature-icon:hover {
    transform: scale(1.15);
}

[data-theme="dark"] .feature-card:hover .feature-icon {
    background: #00f2ff;
    color: #0b0c1a;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.5);
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-color);
    border: 2px solid rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    padding: 3.5rem 2.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pricing-card.featured {
    border-color: var(--primary-accent);
    transform: scale(1.05);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pricing-header {
    margin-bottom: 2rem;
}

.pricing-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.pricing-period {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 3rem;
    flex-grow: 1;
}

.pricing-features li {
    padding: 0.6rem 0;
    color: var(--text-dim);
    font-size: 0.95rem;
}

.pricing-button {
    display: inline-block;
    background: #0b0c1a;
    color: #fff;
    padding: 1.1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
    width: 100%;
    border: 1px solid #0b0c1a;
}

.pricing-button:hover {
    background: #fff;
    color: #0b0c1a;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: #0b0c1a;
}

[data-theme="dark"] .pricing-button {
    background: #0b0c1a;
    border-color: #00f2ff;
    color: #fff;
}

[data-theme="dark"] .pricing-button:hover {
    background: #00f2ff;
    color: #0b0c1a;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.1;
    }

    50% {
        opacity: 0.3;
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

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



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

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.4);
}

/* Geometric Shapes */
.geometric-shape {
    position: absolute;
    border: 1px solid var(--border-color);
    animation: rotate 20s infinite linear;
}

.shape-1 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    top: 10%;
    right: 10%;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    left: 5%;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    right: 20%;
    border-radius: 20px;
    transform: rotate(45deg);
}

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

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

/* Helper Class for specific styles override */
.form-input {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-button {
    background: #0b0c1a;
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #0b0c1a;
}

.form-button:hover {
    background: #fff;
    color: #0b0c1a;
    transform: translateY(-2px);
    border-color: #0b0c1a;
}

[data-theme="dark"] .form-button {
    background: #0b0c1a;
    border-color: #00f2ff;
    color: #fff;
}

/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    padding: 1.5rem 2rem;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    z-index: 9999;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.5s ease;
}

.cookie-text {
    font-size: 0.9rem;
    color: var(--text-main);
}

.cookie-close {
    background: var(--text-main);
    color: var(--bg-color);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: var(--transition);
}

.cookie-close:hover {
    opacity: 0.8;
}

/* Charts */
.chart-container {
    width: 100%;
    height: 100%;
    min-height: 300px;
    position: relative;
}

/* Sidebar Fixes */
.sidebar-links {
    margin-top: 10rem;
    background: transparent !important;
}

/* Contact Form Refinement */
.contact-container {
    max-width: 1000px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.contact-text {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: var(--space-lg);
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.contact-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--primary-readable);
}

.contact-form-wrapper {
    padding: var(--space-lg);
}

.form-status {
    margin-top: var(--space-sm);
    display: none;
    padding: var(--space-sm);
    border-radius: 12px;
}

@media (max-width: 900px) {

    .description-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .neural-container {
        height: 300px;
    }

    .section-title-alt {
        font-size: 2rem;
    }
}

/* Global Section Spacing */
section {
    padding: var(--space-2xl) var(--container-padding);
}

@media (max-width: 1024px) {
    :root {
        --space-xl: 3rem;
        --space-2xl: 4.5rem;
        --container-padding: 1.5rem;
    }
}

/* Dashboard Layout */
:root {
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 80px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-layout {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    min-height: 100vh;
    transition: var(--transition);
}

.dashboard-layout.sidebar-collapsed {
    grid-template-columns: var(--sidebar-collapsed-width) 1fr;
}

.sidebar {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    border-right: 1px solid var(--border-color);
    padding: var(--space-lg) var(--space-md);
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: var(--transition);
    overflow-x: hidden;
}

.sidebar-collapsed .sidebar {
    padding: var(--space-lg) var(--space-xs);
    align-items: center;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
    width: 100%;
}

.sidebar-collapsed .sidebar-header {
    justify-content: center;
}

.sidebar-collapsed .logo-text,
.sidebar-collapsed .link-text {
    display: none;
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    width: 100%;
    background: transparent !important;
}

.sidebar-link {
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    color: var(--text-dim);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    white-space: nowrap;
}

.sidebar-collapsed .sidebar-link {
    justify-content: center;
    padding: 0.8rem;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(0, 242, 255, 0.1);
    color: var(--primary-readable);
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.sidebar-toggle:hover {
    background: var(--border-color);
}

.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    padding: 0 var(--container-padding);
    align-items: center;
    justify-content: space-between;
    z-index: 1100;
}

.main-content {
    padding: var(--space-lg) var(--container-padding);
    width: 100%;
}

.hamburger {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
}

.sidebar-overlay.active {
    display: block;
}

@media (max-width: 1024px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        left: -100%;
        width: 280px;
        background: var(--bg-color);
        box-shadow: 20px 0 50px rgba(0, 0, 0, 0.1);
    }

    .sidebar.active {
        left: 0;
    }

    .mobile-header {
        display: flex;
    }

    .main-content {
        padding: 90px var(--container-padding) var(--space-lg) !important;
    }
}

/* Profile Page Styles */
.profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 70vh;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-neon), var(--secondary-neon));
    border: 4px solid var(--border-color);
}

.profile-title {
    font-size: 2.5rem;
    margin-bottom: var(--space-xs);
}

.profile-access {
    color: var(--text-dim);
    font-size: 1.1rem;
}

.messages-container {
    margin-bottom: var(--space-lg);
    width: 100%;
    max-width: 800px;
}

.message-alert {
    padding: var(--space-sm);
    border-radius: 12px;
    background: rgba(0, 242, 255, 0.1);
    color: var(--primary-readable);
    margin-bottom: var(--space-xs);
    border: 1px solid rgba(0, 242, 255, 0.2);
    text-align: center;
}

.profile-form-container {
    max-width: 1000px;
    width: 100%;
    padding: var(--space-lg);
}

.profile-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.profile-submit-wrapper {
    display: flex;
    justify-content: center;
}

.profile-submit-btn {
    width: 100%;
    max-width: 300px;
}

@media (max-width: 600px) {
    .profile-header {
        flex-direction: column;
        gap: var(--space-md);
    }

    .profile-title {
        font-size: 1.8rem;
    }

    .profile-form-container {
        padding: var(--space-md);
    }

    .profile-submit-btn {
        max-width: 100%;
    }
}

/* Project List & Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-md);
}

.project-card {
    transition: var(--transition);
    position: relative;
    padding: var(--space-md);
}

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

.branch-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
}

.badge-active {
    background: rgba(0, 242, 255, 0.1) !important;
    color: var(--primary-readable) !important;
}

.badge-success {
    /* color: #44ff44 !important; REMOVED GLOBAL OVERRIDE */
    background: rgba(68, 255, 68, 0.1) !important;
    border: 1px solid rgba(68, 255, 68, 0.2) !important;
}

.delete-btn {
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    border: 1px solid rgba(255, 68, 68, 0.2);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.75rem;
    transition: var(--transition);
    cursor: pointer;
    display: block;
}

.delete-btn:hover {
    background: #ff4444;
    color: #fff;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    max-width: 400px;
    width: 90%;
    text-align: center;
    padding: var(--space-lg);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    :root {
        --space-xl: 2.5rem;
        --space-2xl: 3.5rem;
        --container-padding: 1rem;
    }
}

/* Dashboard Extra Utilities */
.header-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.project-info-group {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.project-meta {
    margin-bottom: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

/* Meta Data Alignment Fix */
.meta-item {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}

.meta-label {
    color: var(--text-dim);
    min-width: 80px;
}

.meta-value {
    font-weight: 600;
    color: var(--text-main);
}

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

@media (max-width: 600px) {
    .header-actions {
        width: 100%;
    }

    .header-actions .btn {
        width: 100%;
        text-align: center;
    }

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

/* Sidebar Footer & Header Utils */
.header-right-group {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.sidebar-footer {
    margin-top: auto;
    width: 100%;
}

.sidebar-footer-content {
    padding: var(--space-md) 0;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.logout-link {
    color: #ff4d4d !important;
}

.logout-link:hover {
    background: rgba(255, 77, 77, 0.1) !important;
    color: #ff4d4d !important;
}

/* LK Standardized Header */
.lk-header {
    margin-bottom: 3.5rem;
}

.lk-header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 0.8rem;
    color: var(--text-main);
}

.lk-header p {
    color: var(--text-dim);
    font-size: 1.1rem;
}

/* Standardized Form Controls */
.form-input,
.contact-form-wrapper input,
.contact-form-wrapper textarea,
.form-group input,
.form-group textarea,
.glass-input {
    background: var(--input-bg) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-main) !important;
    transition: var(--transition);
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
    width: 100%;
    font-family: inherit;
    font-size: 1rem;
}

.glass-input:focus,
.form-input:focus,
.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus {
    border-color: var(--primary-readable) !important;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.1) !important;
    background: var(--bg-color) !important;
    outline: none !important;
}

textarea.glass-input {
    resize: vertical;
    min-height: 100px;
}

.form-input:focus,
.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus {
    border-color: var(--primary-readable) !important;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.1) !important;
}

/* Dashboard Card UI Fixes */
.project-card {
    padding: 2.5rem !important;
    display: flex;
    flex-direction: column;
}

.project-meta {
    margin-bottom: 2rem !important;
}

/* Sidebar Responsive Logo */
.sidebar-collapsed .sidebar-header .logo {
    display: none;
}

.sidebar-collapsed .sidebar-header {
    justify-content: center;
}

/* Premium Toggle Switch */
.switch-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    cursor: pointer;
    user-select: none;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: .4s;
    border-radius: 34px;
}

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

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

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

.slider-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
}

/* Standardized Phase 4 Spacing & Contrast Fixes */
.lk-header p {
    color: var(--text-dim);
    font-weight: 500;
}

[data-theme="light"] .branch-badge {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-main);
}

[data-theme="dark"] .branch-badge {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-readable);
}

.glass-panel h3,
.glass-panel h4 {
    color: var(--text-main);
}

.meta-label {
    color: var(--text-dim) !important;
}

.meta-value {
    color: var(--text-main) !important;
}

/* Global Deletion & Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    max-width: 420px;
    width: 90%;
    text-align: center;
    padding: 2.5rem;
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-top: 2rem;
}

.delete-btn-unified {
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    border: 1px solid rgba(255, 68, 68, 0.2);
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.delete-btn-unified:hover {
    background: #ff4444 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.4);
}

.delete-btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

/* Shared Settings & Configuration UI Components */
.summary-item-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.summary-item-hover:hover {
    transform: translateX(10px);
    border-color: var(--primary-readable) !important;
    background: var(--card-bg) !important;
}

.salon-item-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.salon-item-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-readable) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .salon-item-card:hover {
    box-shadow: 0 10px 40px rgba(0, 242, 255, 0.15);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.status-dot.active {
    background: #00ff88;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
}

.status-dot.inactive {
    background: #ff4444;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.4);
}

.neon-icon-box {
    width: 45px;
    height: 45px;
    background: rgba(0, 242, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-readable);
    font-size: 1.1rem;
}

[data-theme="light"] .neon-icon-box {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-main);
}

/* ============================================
   Multi-Platform Card & Animations
   ============================================ */

/* Platform showcase card */
.platform-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    overflow: hidden;
}

.platform-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

[data-theme="dark"] .platform-card::before {
    background: linear-gradient(90deg, transparent, rgba(0, 242, 255, 0.1), transparent);
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.platform-icons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.platform-icon {
    font-size: 3rem;
    animation: iconPulse 2s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.platform-icon:hover {
    transform: scale(1.2);
    animation: none;
}

.platform-icon:nth-child(1) {
    animation-delay: 0s;
}

.platform-icon:nth-child(2) {
    animation-delay: 0.2s;
}

.platform-icon:nth-child(3) {
    animation-delay: 0.4s;
}

.platform-icon:nth-child(4) {
    animation-delay: 0.6s;
}

@keyframes iconPulse {

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

    50% {
        transform: scale(1.05);
        opacity: 0.85;
    }
}

/* Simplified scroll-based animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive Design Enhancements
   ============================================ */

/* Mobile First - Base styles above already handle mobile */

/* Tablet (768px and up) */
@media (max-width: 1024px) {
    .hero-title {
        font-size: clamp(2.5rem, 6vw, 4rem);
    }

    .hero-content {
        max-width: 700px;
    }

    .description-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .platform-icons {
        gap: 1rem;
    }

    .platform-icon {
        font-size: 2.5rem;
    }
}

/* Mobile (768px and down) */
@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .cta-button,
    .btn-primary {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
        max-width: 350px;
    }

    .platform-card {
        padding: 2rem 1.5rem;
    }

    .platform-icon {
        font-size: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr !important;
    }

    .pricing-grid {
        grid-template-columns: 1fr !important;
    }

    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Theme-specific responsive adjustments */
@media (max-width: 768px) {
    [data-theme="dark"] .btn-primary {
        background: var(--bg-color);
        border-width: 1px;
    }

    [data-theme="light"] .btn-primary {
        background: #fff;
        border-width: 2px;
    }
}

/* ============================================
   Light Theme 2040 Enhancement
   ============================================ */

/* Enhanced glass panels for light theme */
[data-theme="light"] .glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04),
        0 2px 8px rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .glass-panel:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.06),
        0 4px 12px rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.12);
}

/* Platform card enhancement for light theme */
[data-theme="light"] .platform-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 250, 255, 0.95) 100%);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05),
        0 2px 10px rgba(0, 0, 0, 0.02);
}

/* Pricing cards in light theme */
[data-theme="light"] .pricing-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(245, 250, 255, 0.9) 100%);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .pricing-card.featured {
    border: 2px solid #0b0d1a;
    box-shadow: 0 15px 50px rgba(11, 13, 26, 0.12);
}

/* Stats improvements for light theme */
[data-theme="light"] .stat-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 245, 255, 0.95) 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .stat-value {
    background: linear-gradient(135deg, #0b0d1a 0%, #1a1b2e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Contact form in light theme */
[data-theme="light"] .contact-grid .glass-panel {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

/* Neural core light theme enhancement */
[data-theme="light"] .neural-core {
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.08));
}

[data-theme="light"] .core-glow {
    box-shadow: 0 0 30px rgba(11, 13, 26, 0.2),
        0 0 60px rgba(11, 13, 26, 0.1);
}

/* ============================================
   Enhanced Shield Animation
   ============================================ */

/* Shield container */
.neural-core {
    position: relative;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Shield icon with subtle pulse */
.neural-core i {
    font-size: 10rem;
    color: var(--primary-readable);
    position: relative;
    z-index: 2;
    animation: shieldPulse 3s ease-in-out infinite;
    filter: drop-shadow(0 0 15px var(--primary-neon));
}

/* Light theme: black shield */
[data-theme="light"] .neural-core i {
    color: #0b0c1a;
    filter: drop-shadow(0 0 8px rgba(11, 13, 26, 0.3));
}

/* Realistic shield pulse animation */
@keyframes shieldPulse {

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

    50% {
        transform: scale(1.02);
        opacity: 0.95;
    }
}

/* Shield wave effect */
.shield-wave {
    position: absolute;
    inset: 0;
    background: var(--primary-neon);
    opacity: 0.12;
    clip-path: polygon(50% 0%,
            85% 15%,
            85% 55%,
            50% 100%,
            15% 55%,
            15% 15%);
    animation: shieldWave 3s ease-out infinite;
    filter: blur(8px);
}

/* Light theme shield wave */
[data-theme="light"] .shield-wave {
    background: #0b0c1a;
    opacity: 0.06;
    filter: blur(6px);
}

/* Shield wave animation */
@keyframes shieldWave {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    50% {
        opacity: 0.12;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Light theme wave animation */
[data-theme="light"] .shield-wave {
    animation: shieldWaveLight 3s ease-out infinite;
}

@keyframes shieldWaveLight {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    50% {
        opacity: 0.06;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* ============================================
   Security Section Grid
   ============================================ */
.security-grid {
    display: flex !important;
    flex-direction: column;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .security-grid {
        flex-direction: row;
        align-items: center;
        gap: 6rem;
    }

    .security-text-content,
    .desktop-only {
        flex: 1;
    }
}

/* ============================================
   Trust Core Orbital Animation
   ============================================ */

.trust-core-wrap {
    width: 300px;
    height: 300px;
    position: relative;
}

/* Central core with breathing animation */
.core-center {
    position: absolute;
    inset: 35%;
    background: var(--primary-neon);
    border-radius: 50%;
    filter: blur(1px);
    animation: coreBreath 5s ease-in-out infinite;
    z-index: 3;
}

/* Glow effect around core */
.core-center::after {
    content: '';
    position: absolute;
    inset: -40%;
    background: var(--primary-neon);
    filter: blur(35px);
    opacity: 0.35;
}

/* Light theme: black core */
[data-theme="light"] .core-center {
    background: #00ebff;
}

[data-theme="light"] .core-center::after {
    background: #f19191;
    opacity: 0.2;
    filter: blur(25px);
}

/* Orbital rings */
.orbit {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(0, 242, 255, 0.15);
    animation: rotate 20s linear infinite;
}

[data-theme="light"] .orbit {
    border-color: rgba(11, 13, 26, 0.12);
}

.orbit:nth-child(2) {
    inset: 12%;
    animation-duration: 30s;
    animation-direction: reverse;
}

.orbit:nth-child(3) {
    inset: 24%;
    animation-duration: 40s;
}

/* Node on orbit */
.node {
    position: absolute;
    top: -6px;
    left: 50%;
    width: 10px;
    height: 10px;
    background: var(--primary-neon);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 12px var(--primary-neon);
}

[data-theme="light"] .node {
    background: #aab0ff;
    box-shadow: 0 0 8px rgba(11, 13, 26, 0.4);
}

/* Core breathing animation */
@keyframes coreBreath {
    0% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
    }

    50% {
        transform: scale(1.08);
        box-shadow: 0 0 45px rgba(0, 242, 255, 0.8);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
    }
}

/* Orbit rotation */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

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

[data-theme="light"] .btn-primary {
    background: #fff;
    border-width: 2px;
}

/* 6. Fix Orbit Overflow */
.trust-core-wrap {
    overflow: hidden !important;
    width: 100% !important;
    max-width: 300px !important;
    margin: 0 auto;
}

@keyframes coreBreathLight {
    0% {
        box-shadow: 0 0 15px rgba(11, 13, 26, 0.2);
    }

    50% {
        box-shadow: 0 0 30px rgba(11, 13, 26, 0.5);
    }

    100% {
        box-shadow: 0 0 15px rgba(11, 13, 26, 0.2);
    }
}

/* ============================================
   Light Theme 2040 Enhancement
   ============================================ */

/* Enhanced glass panels for light theme */
[data-theme="light"] .glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04),
        0 2px 8px rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .glass-panel:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.06),
        0 4px 12px rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.12);
}

/* Platform card enhancement for light theme */
[data-theme="light"] .platform-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 250, 255, 0.95) 100%);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05),
        0 2px 10px rgba(0, 0, 0, 0.02);
}

/* Pricing cards in light theme */
[data-theme="light"] .pricing-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(245, 250, 255, 0.9) 100%);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .pricing-card.featured {
    border: 2px solid #0b0d1a;
    box-shadow: 0 15px 50px rgba(11, 13, 26, 0.12);
}

/* Stats improvements for light theme */
[data-theme="light"] .stat-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 245, 255, 0.95) 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .stat-value {
    background: linear-gradient(135deg, #0b0d1a 0%, #1a1b2e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Contact form in light theme */
[data-theme="light"] .contact-grid .glass-panel {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

/* Neural core light theme enhancement */
[data-theme="light"] .neural-core {
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.08));
}

[data-theme="light"] .core-glow {
    box-shadow: 0 0 30px rgba(11, 13, 26, 0.2),
        0 0 60px rgba(11, 13, 26, 0.1);
}

/* ============================================
   Enhanced Shield Animation
   ============================================ */

/* Shield container */
.neural-core {
    position: relative;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Shield icon with subtle pulse */
.neural-core i {
    font-size: 10rem;
    color: var(--primary-readable);
    position: relative;
    z-index: 2;
    animation: shieldPulse 3s ease-in-out infinite;
    filter: drop-shadow(0 0 15px var(--primary-neon));
}

/* Light theme: black shield */
[data-theme="light"] .neural-core i {
    color: #0b0c1a;
    filter: drop-shadow(0 0 8px rgba(11, 13, 26, 0.3));
}

/* Realistic shield pulse animation */
@keyframes shieldPulse {

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

    50% {
        transform: scale(1.02);
        opacity: 0.95;
    }
}

/* Shield wave effect */
.shield-wave {
    position: absolute;
    inset: 0;
    background: var(--primary-neon);
    opacity: 0.12;
    clip-path: polygon(50% 0%,
            85% 15%,
            85% 55%,
            50% 100%,
            15% 55%,
            15% 15%);
    animation: shieldWave 3s ease-out infinite;
    filter: blur(8px);
}

/* Light theme shield wave */
[data-theme="light"] .shield-wave {
    background: #0b0c1a;
    opacity: 0.06;
    filter: blur(6px);
}

/* Shield wave animation */
@keyframes shieldWave {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    50% {
        opacity: 0.12;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Light theme wave animation */
[data-theme="light"] .shield-wave {
    animation: shieldWaveLight 3s ease-out infinite;
}

@keyframes shieldWaveLight {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    50% {
        opacity: 0.06;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* ============================================
   Trust Core Orbital Animation
   ============================================ */

.trust-core-wrap {
    width: 300px;
    height: 300px;
    position: relative;
}

/* Central core with breathing animation */
.core-center {
    position: absolute;
    inset: 35%;
    background: var(--primary-neon);
    border-radius: 50%;
    filter: blur(1px);
    animation: coreBreath 5s ease-in-out infinite;
    z-index: 3;
}

/* Glow effect around core */
.core-center::after {
    content: '';
    position: absolute;
    inset: -40%;
    background: var(--primary-neon);
    filter: blur(35px);
    opacity: 0.35;
}

/* Light theme: black core */
[data-theme="light"] .core-center {
    background: #00ebff;
}

[data-theme="light"] .core-center::after {
    background: #f19191;
    opacity: 0.2;
    filter: blur(25px);
}

/* Orbital rings */
.orbit {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(0, 242, 255, 0.15);
    animation: rotate 20s linear infinite;
}

[data-theme="light"] .orbit {
    border-color: rgba(11, 13, 26, 0.12);
}

.orbit:nth-child(2) {
    inset: 12%;
    animation-duration: 30s;
    animation-direction: reverse;
}

.orbit:nth-child(3) {
    inset: 24%;
    animation-duration: 40s;
}

/* Node on orbit */
.node {
    position: absolute;
    top: -6px;
    left: 50%;
    width: 10px;
    height: 10px;
    background: var(--primary-neon);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 12px var(--primary-neon);
}

[data-theme="light"] .node {
    background: #aab0ff;
    box-shadow: 0 0 8px rgba(11, 13, 26, 0.4);
}

/* Core breathing animation */
@keyframes coreBreath {
    0% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
    }

    50% {
        transform: scale(1.08);
        box-shadow: 0 0 45px rgba(0, 242, 255, 0.8);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
    }
}

[data-theme="light"] .core-center {
    animation-name: coreBreathLight;
}

@keyframes coreBreathLight {
    0% {
        box-shadow: 0 0 15px rgba(11, 13, 26, 0.2);
    }

    50% {
        box-shadow: 0 0 30px rgba(11, 13, 26, 0.5);
    }

    100% {
        box-shadow: 0 0 15px rgba(11, 13, 26, 0.2);
    }
}

/* Orbit rotation */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

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

/* ==========================================================================
   MASTER MOBILE & ACCESSIBILITY REFINEMENTS (iPhone/Android Optimized)
   ========================================================================== */

@media (max-width: 900px) {

    /* Global Mobile Reset */
    * {
        box-sizing: border-box !important;
    }

    /* 1. Sidebar & Layout Reset */
    .dashboard-layout,
    body,
    html {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
        position: relative;
    }

    .sidebar {
        position: fixed !important;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px !important;
        transform: translateX(-100%);
        transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 2000;
        background: transparent !important;
        backdrop-filter: none !important;
        /* Removed blur causing artifacts */
        box-shadow: 20px 0 50px rgba(0, 0, 0, 0.2);
        display: flex !important;
    }

    [data-theme="light"] .sidebar.active {
        background: transparent !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    /* Force link text to show on mobile */
    .sidebar .link-text {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        margin-left: 12px !important;
    }

    .sidebar .sidebar-link {
        justify-content: flex-start !important;
        padding: 0.8rem 1.2rem !important;
        /* Slightly smaller padding */
        width: 100% !important;
        border-radius: 8px !important;
    }

    [data-theme="light"] .sidebar.active {
        background: #ffffff !important;
        backdrop-filter: none !important;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.05) !important;
        border-right: 1px solid var(--border-color) !important;
    }

    .main-content {
        margin-left: 0 !important;
        padding: 100px 1rem 1rem !important;
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        display: block !important;
        position: relative !important;
        left: 0 !important;
        overflow-x: hidden !important;
    }

    .journal-container {
        display: block !important;
        grid-template-columns: 1fr !important;
        height: auto !important;
    }

    .chat-wrapper {
        min-height: 500px;
        margin-top: 1rem;
    }

    /* 2. Mobile Bottom Overlay */
    #overlay.active {
        display: block !important;
        position: fixed;
        inset: 0;
        background: transparent !important;
        backdrop-filter: none !important;
        z-index: 1500;
    }

    /* 3. Fix Narrow/Broken Typography & Containers */
    .hero-title {
        font-size: 2.8rem !important;
        width: 100% !important;
        max-width: 100% !important;
        line-height: 1.1 !important;
        display: block !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        hyphens: auto !important;
        text-align: center !important;
    }

    .section-title,
    .section-title-alt,
    h1,
    h2,
    .gradient-text {
        font-size: 1.8rem !important;
        width: 100% !important;
        max-width: 100% !important;
        line-height: 1.2 !important;
        display: block !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        hyphens: auto !important;
        text-align: center !important;
    }

    .desktop-only {
        display: none !important;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
        width: 100% !important;
        display: grid !important;
    }

    .features-grid,
    .pricing-grid,
    .financial-stats-grid,
    .topup-grid,
    .setup-steps,
    .dashboard-charts-row {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
        width: 100% !important;
        display: grid !important;
        overflow: hidden !important;
        /* Prevent child overflow */
    }

    /* Disable scale on mobile to prevent overflow */
    .pricing-card.featured {
        transform: none !important;
        margin-top: 0 !important;
        border-width: 2px !important;
    }

    [data-theme="light"] .pricing-card.featured {
        transform: none !important;
    }

    /* Remove glass effect on mobile panels where it looks "strange" */
    .mobile-no-glass-border {
        border: none !important;
        background: transparent !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
    }

    .glass-panel {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
        width: 100% !important;
        border-radius: 12px !important;
    }

    .pricing-card {
        padding: 1.5rem !important;
        margin-bottom: 1rem !important;
    }

    .pricing-price {
        font-size: 2.2rem !important;
    }

    .features-grid .mobile-no-glass-border {
        padding: 1.25rem !important;
        text-align: center !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .feature-icon {
        font-size: 1.8rem !important;
        margin-bottom: 0.5rem !important;

    }

    .features-grid h3 {
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem !important;
    }

    .features-grid p {
        font-size: 0.9rem !important;
    }

    /* 4. Table Accessibility - Stacked Mode */
    .table-stacked-mobile {
        border: 0 !important;
    }

    .table-stacked-mobile thead {
        display: none !important;
    }

    .table-stacked-mobile tr {
        display: block !important;
        margin-bottom: 1.5rem !important;
        padding-bottom: 1.5rem !important;
        border-bottom: 1px solid var(--border-color) !important;
    }

    .table-stacked-mobile td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        text-align: right !important;
        padding: 0.75rem 0 !important;
        border: 0 !important;
        font-size: 0.95rem !important;
    }

    .table-stacked-mobile td::before {
        content: attr(data-label);
        font-weight: 700;
        text-transform: uppercase;
        font-size: 0.75rem;
        color: var(--text-dim);
        text-align: left;
        margin-right: 1rem;
    }

    .table-stacked-mobile td:last-child {
        border-bottom: 0 !important;
    }

    .table-container {
        overflow-x: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }
}

/* 5. Enhanced Status Badge Readability (Higher Contrast) */
[data-theme="light"] .badge-success {
    color: #0d9488 !important;
    /* Professional high-contrast teal */
    background: rgba(13, 148, 136, 0.1) !important;
    border: 1px solid rgba(13, 148, 136, 0.2);
}

[data-theme="dark"] .badge-success {
    color: #2dd4bf !important;
    background: rgba(45, 212, 191, 0.1) !important;
}

.btn-neon {
    background: var(--primary-neon-gradient) !important;
    color: #000 !important;
    box-shadow: 0 4px 15px rgba(0, 242, 255, 0.3) !important;
    border: none !important;
    padding: 0.6rem 1.5rem !important;
    font-weight: 700 !important;
}

[data-theme="light"] .btn-neon {
    color: #fff !important;
    background: linear-gradient(135deg, #007c85 0%, #4c00ad 100%) !important;
}

.badge {
    padding: 0.4rem 0.8rem !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Small utility */
@media (max-width: 600px) {
    .btn-mobile-sm {
        padding: 0.5rem 1rem !important;
        font-size: 0.85rem !important;
        height: auto !important;
    }

    .btn-mobile-xs {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.8rem !important;
        border-radius: 50px !important;
    }
}

/* FIX: Кнопка регистрации - светлая тема */
[data-theme="light"] .auth-submit.btn-primary {
    background: #0b0d1a !important;
    color: #ffffff !important;
    border: 2px solid #0b0d1a !important;
}

[data-theme="light"] .auth-submit.btn-primary:hover {
    background: #ffffff !important;
    color: #0b0d1a !important;
}

/* Или если хотите универсальное решение для всех форм */
[data-theme="light"] .contact-form-wrapper .btn-primary,
[data-theme="light"] .auth-submit.btn-primary {
    background: #0b0d1a !important;
    color: #ffffff !important;
    border: 2px solid #0b0d1a !important;
}

[data-theme="light"] .contact-form-wrapper .btn-primary:hover,
[data-theme="light"] .auth-submit.btn-primary:hover {
    background: #ffffff !important;
    color: #0b0d1a !important;
}