/* --- STATION EXPANSION ADDITIONS --- */
:root {
    /* Industrial Lab Palette */
    --logo-cyan: #00F2FF;
    --heading-blue: #00D1DB;
    --body-blue: #A0B0B8;
    --accent-blue: #00F2FF;
    --bg-cyan-light: rgba(0, 242, 255, 0.08);
    --lab-bg: #0d0f11;
    --lab-panel: rgba(20, 25, 30, 0.8);
    --lab-border: rgba(0, 242, 255, 0.2);
    --lab-text: #E0E8EB;

    /* RED ALERT THEME OVERRIDE */
    --alert-red: #ff3e3e;
    --alert-dim: rgba(255, 62, 62, 0.1);

    /* Neutral & Depth */
    --white: #ffffff;
    --glass: rgba(15, 20, 25, 0.8);
    --glass-border: rgba(0, 242, 255, 0.15);
    --premium-shadow: 0 0 10px rgba(0, 242, 255, 0.06);
    --deep-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --site-max-width: 1280px;
    --site-reading-width: 760px;
    --site-gutter: clamp(1.1rem, 2vw + 0.6rem, 2.5rem);
    --section-space: clamp(4rem, 7vw, 6.5rem);
}

body.red-alert {
    --logo-cyan: var(--alert-red);
    --heading-blue: var(--alert-red);
    --lab-border: rgba(255, 62, 62, 0.3);
    --accent-blue: var(--alert-red);
    --premium-shadow: 0 0 20px rgba(255, 62, 62, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-radius: 0 !important;
    /* SHARP CORNERS MANDATE */
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    font-family: 'Outfit', sans-serif;
    /* Cleaner tech font */
    color: var(--lab-text);
    line-height: 1.6;
    background-color: var(--lab-bg);
    overflow-x: hidden;
    width: 100%;
}

/* Cosmic Grain Texture Overlay展 */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: overlay;
}

/* Custom Scrollbar展 */
::-webkit-scrollbar {
    width: 4px;
    /* Thinner for precision */
}

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

::-webkit-scrollbar-thumb {
    background: var(--logo-cyan);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--white);
}

h1,
h2,
h3 {
    font-family: 'Outfit', sans-serif;
    color: var(--heading-blue);
    font-weight: 800;
    letter-spacing: -0.04em;
    /* Elite tighter kerning */
    line-height: 1.1;
}

h2 {
    font-size: clamp(2rem, 8vw, 3.5rem);
    letter-spacing: -0.03em;
}

h3 {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
    letter-spacing: -0.02em;
}

/* --- NEW: SIREN OVERLAY --- */
.siren-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at center, transparent 30%, var(--alert-dim) 100%);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.red-alert .siren-overlay {
    opacity: 1;
    animation: sirenPulse 2s infinite ease-in-out;
}

@keyframes sirenPulse {
    0%, 100% { background-color: transparent; }
    50% { background-color: rgba(255, 62, 62, 0.05); }
}

/* --- NEW: HUD STYLES --- */
.l-hud {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--lab-border);
}

.hud-item {
    margin-bottom: 0.75rem;
}

.hud-label {
    font-size: 0.65rem;
    color: var(--logo-cyan);
    font-weight: 800;
    margin-bottom: 4px;
    display: block;
}

.hud-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    width: 100%;
}

.hud-bar-fill {
    height: 100%;
    background: var(--logo-cyan);
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--logo-cyan);
}

.pulse-red {
    animation: pulseAlpha 1.5s infinite;
}

/* Rendering Optimizations Removed for Reliability */

/* Navbar - Dark Glassmorphism Refresh */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(8, 18, 26, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--lab-border);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
    overflow: visible;
}

.nav-scanner {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    overflow: hidden;
    pointer-events: none;
}

.nav-scanner::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--logo-cyan), transparent);
    animation: navScan 4s infinite linear;
}

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

    100% {
        left: 100%;
    }
}

.nav-container {
    width: min(var(--site-max-width), calc(100% - (var(--site-gutter) * 2)));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--white);
    /* Brighter for dark background */
    letter-spacing: -0.01em;
    text-shadow: 0 0 6px rgba(0, 242, 255, 0.4);
}

.logo img {
    height: 42px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(0, 242, 255, 0.5));
}

.nav-links {
    display: flex;
    gap: clamp(0.9rem, 1.6vw, 2rem);
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    /* Lighter text for dark bg */
    font-weight: 600;
    font-size: clamp(0.78rem, 1vw, 0.95rem);
    transition: var(--transition);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-links a:hover {
    color: var(--logo-cyan);
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.8);
}

/* Navbar Dropdown Menus */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.dropdown-arrow {
    font-size: 0.65em;
    transition: transform 0.3s ease;
    display: inline-block;
}

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

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 200px;
    background: rgba(8, 18, 26, 0.97);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(0, 242, 255, 0.15);
    padding: 0.5rem 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 2000;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 242, 255, 0.08);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: rgba(8, 18, 26, 0.97);
    border-top: 1px solid rgba(0, 242, 255, 0.15);
    border-left: 1px solid rgba(0, 242, 255, 0.15);
}

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

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.75) !important;
    white-space: nowrap;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
}

.dropdown-menu a:hover {
    color: var(--logo-cyan) !important;
    background: rgba(0, 242, 255, 0.06);
    border-left-color: var(--logo-cyan);
    padding-left: 1.5rem;
}

.badges-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    position: relative;
    z-index: 3;
}

.badge-handmade {
    background: var(--heading-blue);
    color: var(--white);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0, 242, 255, 0.3);
    transform: rotate(-3deg);
    transition: var(--transition);
}

.badge-premium {
    background: var(--white);
    color: var(--heading-blue);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 2px solid var(--logo-cyan);
    box-shadow: var(--premium-shadow);
    transform: rotate(2deg);
    transition: var(--transition);
}

.badge-handmade:hover,
.badge-premium:hover {
    transform: rotate(0deg) scale(1.1);
}

.cta-btn {
    position: relative;
    color: var(--logo-cyan);
    font-weight: 700;
    transition: var(--transition);
    text-shadow: 0 0 8px rgba(0, 242, 255, 0.3);
    animation: ccCtaGlowPulse 2.4s ease-in-out infinite;
}

.cta-btn::before {
    display: none;
}

@keyframes ccCtaGlowPulse {
    0%, 100% {
        text-shadow: 0 0 8px rgba(0, 242, 255, 0.35);
    }
    50% {
        text-shadow:
            0 0 14px var(--logo-cyan),
            0 0 28px rgba(0, 242, 255, 0.55),
            0 0 42px rgba(0, 242, 255, 0.25);
    }
}

.cta-btn:hover {
    color: var(--white);
    text-shadow: 0 0 15px var(--logo-cyan), 0 0 25px rgba(0, 242, 255, 0.5);
    transform: translateY(-2px);
}

/* ===== STATION STATS SECTION ===== */
.station-stats-section {
    padding: var(--section-space) 0;
    background: radial-gradient(ellipse at top, rgba(0, 242, 255, 0.04) 0%, transparent 60%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
    margin-top: 2rem;
}

.stat-card {
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(0, 242, 255, 0.15);
}

.stat-icon-ring {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border: 2px solid rgba(0, 242, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.stat-icon-ring::before {
    content: '';
    position: absolute;
    inset: -4px;
    border: 1px solid rgba(0, 242, 255, 0.1);
}

.stat-icon {
    font-size: 1.8rem;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--logo-cyan);
    text-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
    margin-bottom: 0.25rem;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--body-blue);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 1rem;
}

.stat-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--logo-cyan), rgba(0, 242, 255, 0.3));
    transition: width 1.5s ease;
}

/* ===== FEATURED COLLECTIONS SECTION ===== */
.featured-collections-section {
    padding: var(--section-space) 0;
}

.collections-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
    margin-top: 2rem;
    align-items: stretch;
}

.collection-preview {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.collection-preview:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 242, 255, 0.15);
}

.collection-visual {
    position: relative;
    padding: 2.5rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.08) 0%, transparent 70%);
    overflow: hidden;
}

.collection-icon-lg {
    font-size: 4rem;
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
}

.collection-preview:hover .collection-icon-lg {
    transform: scale(1.15) rotate(-5deg);
}

.collection-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.2) 0%, transparent 70%);
    filter: blur(30px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.collection-preview:hover .collection-glow {
    opacity: 1;
}

.collection-details {
    padding: 1.5rem;
}

.collection-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 0.25rem 0.6rem;
    border: 1px solid rgba(0, 242, 255, 0.3);
    color: var(--logo-cyan);
    margin-bottom: 0.75rem;
}

.collection-details h3 {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.collection-details p {
    font-size: 0.85rem;
    color: var(--body-blue);
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* ===== HOW IT WORKS / MISSION PROTOCOL ===== */
.how-it-works-section {
    padding: var(--section-space) 0;
    background: radial-gradient(ellipse at bottom, rgba(0, 242, 255, 0.03) 0%, transparent 60%);
}

.steps-pipeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: clamp(1rem, 2.5vw, 2rem);
    margin-top: 2rem;
    position: relative;
}

.steps-pipeline::before {
    content: '';
    position: absolute;
    top: 85px;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 242, 255, 0.3), rgba(0, 242, 255, 0.3), transparent);
    z-index: 0;
}

.step-card {
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-6px);
}

.step-number {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--logo-cyan);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.step-icon-wrap {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    border: 2px solid rgba(0, 242, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: rgba(0, 242, 255, 0.04);
    position: relative;
}

.step-icon-wrap::after {
    content: '';
    position: absolute;
    inset: -6px;
    border: 1px solid rgba(0, 242, 255, 0.08);
}

.step-card h3 {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.step-card p {
    font-size: 0.85rem;
    color: var(--body-blue);
    line-height: 1.6;
}

/* ===== CREW TESTIMONIALS ===== */
.crew-testimonials-section {
    padding: var(--section-space) 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
    margin-top: 2rem;
}

.testimonial-card {
    padding: 2rem 1.5rem;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

.testimonial-stars {
    font-size: 1rem;
    margin-bottom: 1rem;
    letter-spacing: 0.15em;
}

.testimonial-text {
    font-size: 0.9rem;
    color: var(--body-blue);
    line-height: 1.7;
    font-style: italic;
    flex: 1;
    margin-bottom: 1.25rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 242, 255, 0.1);
}

.author-avatar {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 242, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--logo-cyan);
    font-size: 1rem;
    flex-shrink: 0;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-info strong {
    font-size: 0.85rem;
    color: var(--white);
}

.author-info span {
    font-size: 0.72rem;
    color: var(--body-blue);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.testimonials-cta {
    text-align: center;
    margin-top: 2.5rem;
}

/* ===== LATEST TRANSMISSIONS ===== */
.latest-transmissions-section {
    padding: var(--section-space) 0;
    background: radial-gradient(ellipse at center, rgba(0, 242, 255, 0.03) 0%, transparent 60%);
}

.transmissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
    margin-top: 2rem;
}

.transmission-card {
    padding: 2rem 1.5rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.transmission-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(0, 242, 255, 0.12);
}

.transmission-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 0.2rem 0.5rem;
    border: 1px solid rgba(0, 242, 255, 0.3);
    color: var(--logo-cyan);
    margin-bottom: 1rem;
    align-self: flex-start;
}

.transmission-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.transmission-card h3 {
    font-size: 1.05rem;
    color: var(--white);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.transmission-card p {
    font-size: 0.82rem;
    color: var(--body-blue);
    line-height: 1.6;
    flex: 1;
}

.transmission-date {
    font-size: 0.7rem;
    color: rgba(0, 242, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 1rem;
    font-weight: 600;
}

.mission-matcher-section {
    padding: var(--section-space) 0;
}

.matcher-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: stretch;
}

.matcher-console,
.matcher-result {
    padding: clamp(1.5rem, 3vw, 2.25rem);
}

.matcher-header p {
    color: var(--body-blue);
    line-height: 1.7;
}

.matcher-badge,
.matcher-result-label {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--logo-cyan);
    margin-bottom: 1rem;
}

.matcher-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1.25rem;
}

.matcher-option {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: var(--lab-text);
    padding: 1rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.matcher-option:hover,
.matcher-option.active {
    border-color: var(--logo-cyan);
    background: rgba(0, 242, 255, 0.08);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 242, 255, 0.12);
}

.matcher-result {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
}

.matcher-result h3 {
    color: var(--white);
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    margin-bottom: 0.8rem;
}

.matcher-result p {
    color: var(--body-blue);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.matcher-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.matcher-tags span {
    border: 1px solid rgba(0, 242, 255, 0.22);
    background: rgba(0, 242, 255, 0.06);
    color: var(--logo-cyan);
    padding: 0.45rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.botd-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.botd-action-btn {
    border: 1px solid rgba(0, 242, 255, 0.2);
    background: rgba(255, 255, 255, 0.03);
    color: var(--lab-text);
    padding: 0.75rem 1rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.botd-action-btn:hover,
.botd-action-btn.active {
    border-color: var(--logo-cyan);
    background: rgba(0, 242, 255, 0.08);
    color: var(--white);
}

.botd-action-btn.accent {
    background: rgba(0, 242, 255, 0.18);
    color: #030608;
}

.botd-status {
    margin-top: 0.9rem;
    color: rgba(255,255,255,0.55);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

.sector-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
}

.sector-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.sector-filter-btn {
    border: 1px solid rgba(0, 242, 255, 0.18);
    background: rgba(255, 255, 255, 0.03);
    color: var(--lab-text);
    padding: 0.7rem 0.95rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.sector-filter-btn:hover,
.sector-filter-btn.active {
    border-color: var(--logo-cyan);
    background: rgba(0, 242, 255, 0.08);
    color: var(--white);
}

.sector-filter-status {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sector-card.is-hidden {
    display: none;
}

/* Sector Navigator Grid */
.sector-navigator {
    padding: var(--section-space) 0;
    background: radial-gradient(circle at center, rgba(0, 242, 255, 0.05) 0%, transparent 70%);
}

.sector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.sector-card {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    text-decoration: none;
    border: 1px solid rgba(0, 242, 255, 0.08);
    background: rgba(0, 242, 255, 0.015);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sector-card:hover {
    background: rgba(0, 242, 255, 0.05);
    border-color: rgba(0, 242, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(0, 242, 255, 0.08);
}

.sector-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.sector-info h3 {
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
    transition: color 0.25s ease;
}

.sector-card:hover .sector-info h3 {
    color: var(--logo-cyan);
}

.sector-info p {
    color: var(--body-blue);
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.sector-btn {
    color: rgba(0, 242, 255, 0.5);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.03em;
    transition: color 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.7;
    transition: var(--transition);
}

.sector-card:hover .sector-btn {
    color: var(--logo-cyan);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--logo-cyan);
    /* Bright cyan for visibility */
    transition: var(--transition);
    box-shadow: 0 0 5px rgba(0, 242, 255, 0.5);
}

/* Hero Section - Elevated Layout */
.hero {
    min-height: calc(100vh - 4.5rem);
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    align-items: center;
    justify-content: space-between;
    width: min(var(--site-max-width), calc(100% - (var(--site-gutter) * 2)));
    padding: clamp(7rem, 10vw, 8.5rem) 0 clamp(4rem, 8vw, 6rem);
    margin: 0 auto;
    position: relative;
    gap: clamp(2rem, 5vw, 4.5rem);
}

.hero-content {
    max-width: 640px;
    padding-right: 0;
    z-index: 10;
}

.hero-badge {
    display: inline-block;
    background: rgba(0, 242, 255, 0.06);
    color: var(--logo-cyan);
    padding: 0.4rem 1rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 242, 255, 0.25);
    animation: fadeInDown 0.8s ease-out forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

.hero h1,
.animated-title {
    font-size: clamp(2.5rem, 10vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(120deg,
            var(--heading-blue) 0%,
            var(--logo-cyan) 25%,
            #ffffff 50%,
            var(--logo-cyan) 75%,
            var(--heading-blue) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    animation:
        titleReveal 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards,
        titleShimmer 4s linear infinite;
}

@keyframes titleReveal {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
        filter: blur(15px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes titleShimmer {
    0% {
        background-position: 100% center;
    }

    100% {
        background-position: -100% center;
    }
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 2.5rem;
    color: var(--body-blue);
    max-width: 58ch;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    flex-wrap: wrap;
}

.hero-reviews-link {
    text-decoration: none;
    color: var(--logo-cyan);
    font-weight: 600;
    font-size: 1rem;
    margin-left: 0.5rem;
    position: relative;
    transition: var(--transition);
}

.hero-reviews-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--logo-cyan);
    transition: var(--transition);
}

.hero-reviews-link:hover {
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

.hero-reviews-link:hover:after {
    width: 100%;
}

.btn {
    padding: 1rem 2.2rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
}

.btn.primary {
    background: var(--logo-cyan);
    color: #030608;
    border: 1px solid var(--logo-cyan);
    box-shadow: 0 2px 12px rgba(0, 242, 255, 0.2);
}

.btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 24px rgba(0, 242, 255, 0.4), 0 0 40px rgba(0, 242, 255, 0.15);
}

.btn.secondary {
    border: 1px solid rgba(0, 242, 255, 0.3);
    color: var(--logo-cyan);
    background: rgba(0, 242, 255, 0.04);
}

.btn.secondary:hover {
    background: rgba(0, 242, 255, 0.12);
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0, 242, 255, 0.15);
    color: var(--white);
}

/* Cool Scanner Effect for Cards */
.product-card,
.service-card,
.feature-item {
    transition: opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1), transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s ease;
    position: relative;
    overflow: hidden;
}

.product-card::before,
.service-card::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            transparent,
            rgba(0, 242, 255, 0.05) 40%,
            rgba(0, 242, 255, 0.2) 50%,
            rgba(0, 242, 255, 0.05) 60%,
            transparent);
    z-index: 2;
    pointer-events: none;
    animation: scannerBeam 6s linear infinite;
}

@keyframes scannerBeam {
    0% {
        top: -100%;
    }

    20% {
        top: 100%;
    }

    100% {
        top: 100%;
    }
}

.product-card:hover,
.service-card:hover {
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(0, 242, 255, 0.15),
        inset 0 0 15px rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(0, 242, 255, 0.4) !important;
}

.hero-graphic {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    animation: floatingHero 10s ease-in-out infinite;
    perspective: 600px;
}

@keyframes floatingHero {

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

    33% {
        transform: translateY(-12px) rotate(1deg);
    }

    66% {
        transform: translateY(-6px) rotate(-1deg);
    }
}

.hero-logo-container {
    width: 480px;
    height: 480px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
    transform-style: preserve-3d;
}

.floating-graphic {
    width: 85%;
    max-width: 420px;
    filter: drop-shadow(0 0 18px rgba(0, 242, 255, 0.4)) drop-shadow(0 0 35px rgba(0, 242, 255, 0.15));
    animation: float 12s ease-in-out infinite;
}

/* Sections General */
section {
    padding: 3.5rem 2.5rem;
    overflow: hidden;
    position: relative;
}

/* Tighten Competitors and Gallery sections */
#competitors {
    padding: 0 !important;
    margin: 0 !important;
    min-height: auto !important;
}

#competitors .container {
    padding: 1rem 2rem !important;
}

#competitors .section-title {
    margin-bottom: 1.5rem !important;
}

#competitors .stat-item {
    margin-top: 0 !important;
    padding: 2rem !important;
}

.features {
    padding: 1rem 2.5rem !important;
    margin: 0 !important;
    min-height: auto !important;
}

.features .section-title {
    margin-bottom: 2rem !important;
}

.gallery {
    padding-top: 1rem !important;
    margin-top: 0 !important;
    min-height: auto !important;
}

.gallery .section-title {
    margin-bottom: 3rem !important;
}

.container {
    width: min(var(--site-max-width), calc(100% - (var(--site-gutter) * 2)));
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 6vw, 3.2rem);
    margin-bottom: 1.25rem;
    color: var(--white);
    position: relative;
    text-shadow: 0 0 15px rgba(0, 242, 255, 0.25);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.section-title::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    color: var(--logo-cyan);
    opacity: 0.15;
    filter: blur(8px);
    z-index: -1;
    animation: neonPulse 4s ease-in-out infinite;
}

@keyframes neonPulse {

    0%,
    100% {
        filter: blur(8px);
        opacity: 0.15;
    }

    50% {
        filter: blur(12px);
        opacity: 0.25;
    }
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--logo-cyan), transparent);
    margin: 1.25rem auto 0;
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.3);
    animation: glowPulseSubtle 4s ease-in-out infinite;
}

.section-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: var(--body-blue);
    margin-bottom: 2.5rem;
    text-align: center;
    max-width: min(62ch, var(--site-reading-width));
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

@keyframes glowPulseSubtle {
    0%, 100% {
        opacity: 0.5;
        box-shadow: 0 0 8px rgba(0, 242, 255, 0.2);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 16px rgba(0, 242, 255, 0.4);
    }
}

/* WOW About Section - Split Layout & Stats */
.about {
    background: rgba(8, 18, 26, 0.4);
    /* Dark glass */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 40px;
    margin: 0 2rem 3rem;
    padding: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 242, 255, 0.1);
    position: relative;
    overflow: hidden;
    perspective: 1000px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    min-height: 600px;
    transform-style: preserve-3d;
}

.about-visual {
    background: rgba(0, 242, 255, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem;
    position: relative;
    border-right: 1px solid var(--blue-100);
    overflow: hidden;
}

.about-visual::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--logo-cyan) 0%, transparent 60%);
    opacity: 0.1;
    animation: rotateBg 20s linear infinite;
}

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

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

.profile-avatar {
    width: 240px;
    height: 240px;
    background: var(--white);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Ensure image follows morphing shape */
    box-shadow: var(--deep-shadow), 0 0 30px rgba(0, 242, 255, 0.2);
    border: 3px solid var(--logo-cyan);
    animation: morph 8s ease-in-out infinite alternate;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    transform-style: preserve-3d;
    transition: 0.5s;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.profile-avatar:hover img {
    transform: scale(1.1);
}


@keyframes morph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    50% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

.about-story {
    padding: 6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-story h2 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.about-story h3 {
    font-size: 1.25rem;
    color: var(--heading-blue);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.about-story p {
    font-size: 1.25rem;
    color: var(--body-blue);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-item {
    background: var(--bg-cyan-light);
    padding: 2rem 1.5rem;
    border-radius: 20px;
    border: 1px solid var(--blue-100);
    transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.stat-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 0.5rem;
    border: 2px solid var(--logo-cyan);
    box-shadow: 0 4px 10px rgba(0, 242, 255, 0.2);
    transition: var(--transition);
}

.stat-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.custom-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: var(--white);
    color: var(--heading-blue);
}

.stat-item:hover .stat-image {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--body-blue);
}

.stat-item:hover {
    background: var(--white);
    border-color: var(--logo-cyan);
    box-shadow: var(--premium-shadow);
}

.stat-item strong {
    display: block;
    color: var(--heading-blue);
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}

.stat-item span {
    color: var(--body-blue);
    font-size: 0.95rem;
    font-weight: 500;
}

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

    .about-visual {
        border-right: none;
        border-bottom: 1px solid var(--blue-100);
    }

    .about-story {
        padding: 4rem 2rem;
    }
}

/* Gallery - Modern Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1.5rem, 4vw, 3rem);
}

.product-card {
    background: rgba(8, 18, 26, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--premium-shadow);
    transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid rgba(0, 242, 255, 0.1);
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Holographic Shimmer Layer展 */
.product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.05) 45%,
            rgba(0, 242, 255, 0.2) 50%,
            rgba(255, 255, 255, 0.05) 55%,
            rgba(255, 255, 255, 0) 100%);
    background-size: 200% 200%;
    background-position: var(--shimmer-x, 100%) var(--shimmer-y, 100%);
    pointer-events: none;
    z-index: 5;
    mix-blend-mode: screen;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover::after {
    opacity: 1;
}

.card-image {
    height: 380px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.2);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .card-image img {
    transform: scale(1.1);
}

.card-info {
    padding: 2.5rem;
    text-align: center;
}

.card-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--logo-cyan);
}

.card-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.6;
}

/* Services & Features Refresh */
.services {
    background-color: transparent;
    padding: 5rem 2.5rem;
    /* Reduced gap */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
    padding: 4rem 2.5rem;
    border-radius: 32px;
    text-align: center;
    box-shadow: var(--premium-shadow);
    transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.3s ease;
    border: 1px solid rgba(0, 242, 255, 0.1);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.service-card:hover {
    border-color: var(--logo-cyan);
    transform: translateY(-10px);
    box-shadow: var(--deep-shadow);
}

/* Restoration Slider Section */
.restoration {
    padding: 5rem 2.5rem;
    background: transparent;
}

.section-subtitle {
    text-align: center;
    color: var(--body-blue);
    margin-bottom: 3rem;
    font-size: 1.1rem;
    opacity: 0.8;
}

.slider-wrapper {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid rgba(0, 242, 255, 0.2);
    box-shadow: var(--deep-shadow), 0 0 30px rgba(0, 242, 255, 0.1);
    background: rgba(8, 18, 26, 0.4);
    backdrop-filter: blur(10px);
    position: relative;
}

#creeper-slider {
    width: 100%;
    min-height: 400px;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.3);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--logo-cyan);
}

.label-before {
    text-align: left;
}

.label-after {
    text-align: right;
}

/* Existing Service Card Icon */
.service-card .icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    filter: drop-shadow(0 10px 10px rgba(0, 242, 255, 0.2));
}

/* Features Section - Clean & Modern */
.features {
    background-color: transparent;
}

.features-row {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    text-align: center;
}

.feature-item {
    flex: 1;
    min-width: 280px;
    max-width: 380px;
    padding: 4.5rem 2.5rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
    border-radius: 32px;
    box-shadow: var(--premium-shadow);
    transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.3s ease;
    border: 1px solid rgba(0, 242, 255, 0.05);
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.feature-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 32px;
    background: radial-gradient(circle at center, rgba(0, 242, 255, 0.1), transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.feature-item:hover::after {
    opacity: 1;
}

.feature-item:hover {
    box-shadow: var(--deep-shadow);
    border-color: var(--logo-cyan);
}

.feature-icon-circle {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

/* Contact Section - Bold & High End */
.contact {
    color: var(--white);
    text-align: center;
    width: min(var(--site-max-width), calc(100% - (var(--site-gutter) * 2)));
    margin: 0 auto 3rem;
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 242, 255, 0.12);
    background: rgba(0, 242, 255, 0.02);
}

.contact::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.06) 0%, transparent 60%);
    top: -25%;
    left: -25%;
    z-index: 0;
}

.contact-box {
    position: relative;
    z-index: 1;
}

.contact-box h2 {
    color: var(--white);
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 1rem;
    font-weight: 800;
}

.contact-box p {
    color: var(--body-blue);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.email-link {
    display: inline-block;
    font-size: 1.1rem;
    color: var(--logo-cyan);
    text-decoration: none;
    font-weight: 700;
    padding: 1rem 2.5rem;
    background: rgba(0, 242, 255, 0.06);
    border: 1px solid rgba(0, 242, 255, 0.25);
    transition: all 0.25s ease;
}

.email-link:hover {
    background: rgba(0, 242, 255, 0.12);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 242, 255, 0.15);
}

.school-info {
    margin-top: 2.5rem;
    font-size: 0.85rem;
    color: var(--body-blue);
    letter-spacing: 0.05em;
}

footer {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(0, 0, 0, 0.4);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    border-top: 1px solid rgba(0, 242, 255, 0.08);
}

/* Animations Enhanced */
@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(2deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(60px) scale(0.9);
    animation: fadeInUp 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.fade-in-delayed {
    opacity: 0;
    transform: translateY(60px) scale(0.9);
    animation: fadeInUp 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.3s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Specific Animations */
.slide-in-bottom {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-bottom.active {
    opacity: 1;
    transform: translateY(0);
}

.scale-up {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scale-up.active {
    opacity: 1;
    transform: scale(1);
}

.bounce-in {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    transition: opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bounce-in.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

/* Mobile drawer backdrop */
body.nav-drawer-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1990;
    pointer-events: auto;
    cursor: pointer;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 7rem;
        padding-bottom: 3rem;
        min-height: auto;
    }

    .hero-content {
        margin-top: 2rem;
        max-width: 100%;
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 2100;
        position: relative;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(88vw, 320px);
        max-width: 100%;
        height: 100vh;
        height: 100dvh;
        background: rgba(8, 18, 26, 0.97);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-left: 1px solid var(--lab-border);
        flex-direction: column;
        justify-content: flex-start;
        padding: 5.5rem 1.25rem 2rem;
        gap: 0.25rem;
        box-shadow: -12px 0 40px rgba(0, 0, 0, 0.5);
        z-index: 2000;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

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

    .nav-links li {
        width: 100%;
        text-align: left;
    }

    .nav-links a {
        font-size: 1.05rem;
        padding: 0.85rem 1rem;
        display: block;
        color: var(--lab-text);
        border: 1px solid transparent;
    }

    .nav-links a:hover,
    .nav-links a:focus {
        color: var(--logo-cyan);
        border-color: rgba(0, 242, 255, 0.25);
        background: rgba(0, 242, 255, 0.06);
    }

    .nav-links a.active {
        color: var(--logo-cyan);
    }

    /* Mobile Dropdown Styles */
    .nav-dropdown {
        width: 100%;
    }

    .dropdown-toggle {
        justify-content: space-between;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: rgba(0, 242, 255, 0.03);
        border: none;
        border-left: 1px solid rgba(0, 242, 255, 0.15);
        box-shadow: none;
        padding: 0;
        margin-left: 1rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    .dropdown-menu::before {
        display: none;
    }

    .nav-dropdown.open .dropdown-menu {
        max-height: 400px;
        transform: none;
    }

    .dropdown-menu a {
        font-size: 0.92rem !important;
        padding: 0.65rem 1rem;
    }

    /* Mobile responsive grids */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .collections-showcase,
    .steps-pipeline,
    .testimonials-grid,
    .transmissions-grid,
    .matcher-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .steps-pipeline::before {
        display: none;
    }

    .stat-number {
        font-size: 2rem;
    }

    .decorations-container {
        display: block;
        opacity: 0.5;
        /* Subtle on mobile */
    }

    .section-title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
        margin-bottom: 3rem;
    }

    .matcher-options {
        grid-template-columns: 1fr;
    }

    .botd-actions,
    .sector-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .botd-action-btn,
    .sector-filter-btn {
        width: 100%;
    }

    .sector-filter-status {
        text-align: left;
    }

    .hero-logo-container {
        width: 100%;
        max-width: 300px;
        height: 300px;
    }

    section {
        padding: 4rem 0;
    }

    .about {
        width: min(var(--site-max-width), calc(100% - 2rem));
        margin: 0 auto 3rem;
        border-radius: 20px;
    }

    .about-story {
        padding: 2.5rem 1.25rem;
    }

    .about-story h2 {
        font-size: 2.25rem;
    }

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

    .stat-item {
        padding: 1.25rem;
    }

    .contact {
        width: min(var(--site-max-width), calc(100% - 2rem));
        margin: 0 auto 3rem;
        padding: 4rem 1.25rem;
    }

    .contact-box h2 {
        font-size: 2.25rem;
    }

    .email-link {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        width: 100%;
    }

    .astronaut-container {
        display: block;
        transform: scale(0.6) translateX(-50px);
        /* Smaller on mobile */
        bottom: 10px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        width: calc(100% - 2rem);
    }

    .logo span {
        font-size: 1.1rem;
    }

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

    .product-card {
        border-radius: 24px;
    }

    .card-info {
        padding: 1.5rem;
    }

    .card-image {
        height: 280px;
    }

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

/* Background Blobs for Depth */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: blobFloat 20s infinite alternate;
}

.blob-1 {
    background: var(--logo-cyan);
    top: -100px;
    right: -100px;
}

.blob-2 {
    background: #7000FF;
    /* Adding Purple for depth */
    bottom: -200px;
    left: -100px;
    animation-delay: -5s;
    opacity: 0.15;
}

.blob-3 {
    background: #00D1DB;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
    opacity: 0.07;
}

/* Magnetic Button Utility展 */
.btn,
.cta-btn {
    position: relative;
    transition: transform 0.2s cubic-bezier(0.33, 1, 0.68, 1);
}

@keyframes blobFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

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

/* --- Space Animations --- */
.space-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    /* Behind everything including blobs */
    background: radial-gradient(ellipse at bottom, #08121a 0%, #030608 100%);
    overflow: hidden;
}

/* Stars using box-shadow for performance */
.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 2px;
    background: transparent;
    border-radius: 50%;
}

.stars-1 {
    width: 1px;
    height: 1px;
    box-shadow: 15vw 10vh #fff, 35vw 45vh #fff, 55vw 25vh #fff, 75vw 65vh #fff, 95vw 85vh #fff,
        10vw 80vh #fff, 30vw 20vh #fff, 50vw 90vh #fff, 70vw 30vh #fff, 90vw 10vh #fff,
        25vw 55vh #fff, 45vw 15vh #fff, 65vw 75vh #fff, 85vw 35vh #fff, 5vw 40vh #fff;
    animation: twinkle 4s ease-in-out infinite;
}

.stars-2 {
    width: 1.5px;
    height: 1.5px;
    box-shadow: 20vw 15vh #fff, 40vw 50vh #fff, 60vw 30vh #fff, 80vw 70vh #fff, 100vw 90vh #fff,
        15vw 85vh #fff, 35vw 25vh #fff, 55vw 95vh #fff, 75vw 35vh #fff, 95vw 15vh #fff,
        2vw 2vh #fff, 18vw 12vh #fff, 32vw 28vh #fff, 48vw 42vh #fff, 62vw 58vh #fff;
    animation: twinkle 6s ease-in-out infinite 1s;
}

.stars-3 {
    width: 2px;
    height: 2px;
    box-shadow: 5vw 5vh #fff, 25vw 35vh #fff, 45vw 15vh #fff, 65vw 55vh #fff, 85vw 75vh #fff,
        55vw 8vh #fff, 75vw 48vh #fff, 95vw 28vh #fff, 15vw 68vh #fff, 35vw 88vh #fff,
        12vw 92vh #fff, 28vw 72vh #fff, 42vw 52vh #fff, 58vw 32vh #fff, 72vw 12vh #fff;
    animation: twinkle 8s ease-in-out infinite 2s;
}

@keyframes twinkle {

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

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

/* Shooting Stars */
.shooting-stars {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1), 0 0 0 8px rgba(255, 255, 255, 0.1), 0 0 20px rgba(255, 255, 255, 1);
    animation: shootingStar 10s linear infinite;
}

.shooting-stars::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    height: 1px;
    background: linear-gradient(90deg, #fff, transparent);
}

@keyframes shootingStar {
    0% {
        transform: rotate(215deg) translateX(0);
        opacity: 1;
    }

    70% {
        opacity: 1;
    }

    100% {
        transform: rotate(215deg) translateX(-1500px);
        opacity: 0;
    }
}

/* Space Station - Removed Rectangular Borders */
.space-station {
    position: absolute;
    top: 15%;
    right: 8%;
    width: 120px;
    height: auto;
    opacity: 0.85;
    filter: brightness(1.2) contrast(1.3) drop-shadow(0 0 20px rgba(0, 242, 255, 0.4));
    animation: stationFloat 4s ease-in-out infinite;
    z-index: 1;
    mix-blend-mode: screen;
    clip-path: circle(48%);
    -webkit-clip-path: circle(48%);
}

@keyframes stationFloat {

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

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

/* Constellation Canvas */
.constellation-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Space Planets - Removed Rectangular Borders */
.space-planet {
    position: absolute;
    image-rendering: auto;
    mix-blend-mode: screen;
    filter: brightness(1.2) contrast(1.3) drop-shadow(0 0 20px rgba(0, 242, 255, 0.4));
    animation: planetOrbit 60s ease-in-out infinite;
    background: transparent !important;
    clip-path: circle(48%);
    /* Cut off edges */
    -webkit-clip-path: circle(48%);
}

.planet-mars {
    width: 80px;
    top: 25%;
    left: 10%;
    animation-duration: 50s;
}

.planet-saturn {
    width: 140px;
    /* Slightly larger */
    bottom: 10%;
    left: 10%;
    animation-duration: 80s;
    animation-delay: -20s;
}

@keyframes planetOrbit {

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

    25% {
        transform: translateY(-30px) rotate(5deg);
    }

    50% {
        transform: translateY(-15px) rotate(-3deg);
    }

    75% {
        transform: translateY(-40px) rotate(4deg);
    }
}

/* Space Asteroids */
.space-asteroid {
    position: absolute;
    width: 40px;
    image-rendering: auto;
    mix-blend-mode: screen;
    opacity: 0.8;
    animation: asteroidDrift 40s linear infinite;
    background: transparent !important;
    clip-path: circle(48%);
    -webkit-clip-path: circle(48%);
    filter: brightness(1.2) contrast(1.2) drop-shadow(0 0 10px rgba(0, 242, 255, 0.4));
}

.asteroid-1 {
    top: 40%;
    left: 5%;
    animation-duration: 35s;
}

.asteroid-2 {
    top: 70%;
    right: 20%;
    animation-duration: 45s;
    animation-delay: -15s;
}

@keyframes asteroidDrift {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

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

/* Animated Gradient Backgrounds for Sections */
.about,
.services,
.features {
    background: linear-gradient(135deg,
            rgba(8, 18, 26, 0.4) 0%,
            rgba(0, 242, 255, 0.05) 50%,
            rgba(8, 18, 26, 0.4) 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Pulsing Glow Effects - Restored */
.logo img,
.floating-graphic {
    animation: pulseGlow 6s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 8px rgba(0, 242, 255, 0.5));
    }

    50% {
        filter: drop-shadow(0 0 14px rgba(0, 242, 255, 0.7));
    }
}

/* Enhanced 3D Card Effects with Cursor Following */
.product-card,
.service-card,
.feature-item,
.stat-item,
.card-image,
.profile-avatar {
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out !important;
    will-change: transform;
}

.product-card:hover,
.service-card:hover,
.feature-item:hover {
    box-shadow: 0 20px 40px rgba(0, 242, 255, 0.3), 0 0 30px rgba(0, 242, 255, 0.2) !important;
}



/* Astronaut Animation handled in JS now */
.astronaut-container {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 60px;
    height: 100px;
    z-index: 20;
    pointer-events: none;
    /* Initial state */
    transform: translateX(-100px);
}

.astronaut-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(0, 242, 255, 0.5));
}


.decoration-ball {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1), transparent 70%);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.15);
    opacity: 0.8;
}

.ball-1 {
    width: 120px;
    height: 120px;
    top: 15%;
    left: -40px;
    background: radial-gradient(circle at 30% 30%, rgba(0, 242, 255, 0.2), transparent);
}

.ball-2 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    right: -20px;
    background: radial-gradient(circle at 30% 30%, rgba(112, 0, 255, 0.15), transparent);
    animation-delay: -2s;
}

.ball-3 {
    width: 150px;
    height: 150px;
    top: 60%;
    left: 10%;
    opacity: 0.4;
    background: radial-gradient(circle at 30% 30%, rgba(0, 242, 255, 0.1), transparent);
    animation-delay: -4s;
}

.ball-4 {
    width: 60px;
    height: 60px;
    top: 10%;
    right: 15%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), transparent);
    animation-delay: -6s;
}

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

    to {
        transform: translate(30px, 40px) rotate(10deg);
    }
}

/* Video Showcase Section - Premiere Aesthetic */
.video-showcase {
    padding: 4rem 2.5rem;
    position: relative;
    z-index: 10;
    background: radial-gradient(circle at center, rgba(0, 242, 255, 0.05) 0%, transparent 70%);
}

.showcase-header {
    margin-bottom: 4rem;
}

.section-subtitle {
    color: var(--body-blue);
    font-size: 1.25rem;
    margin-top: 1rem;
    opacity: 0.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.premium-video-container {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    padding: 2rem;
    background: rgba(8, 18, 26, 0.6);
    backdrop-filter: blur(30px);
    border-radius: 40px;
    border: 1px solid rgba(0, 242, 255, 0.25);
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.6),
        0 0 50px rgba(0, 242, 255, 0.1),
        inset 0 0 30px rgba(0, 242, 255, 0.05);
    transform: perspective(2000px) rotateX(1deg);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.premium-video-container:hover {
    transform: perspective(2000px) rotateX(0deg) translateY(-15px);
    border-color: rgba(0, 242, 255, 0.45);
    box-shadow:
        0 60px 120px rgba(0, 0, 0, 0.7),
        0 0 60px rgba(0, 242, 255, 0.2),
        inset 0 0 40px rgba(0, 242, 255, 0.1);
}

.video-frame {
    border-radius: 28px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-top-bar {
    background: #1a1e22;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.window-dots {
    display: flex;
    gap: 8px;
}

.window-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.window-dots span:nth-child(1) {
    background: #ff5f56;
}

.window-dots span:nth-child(2) {
    background: #ffbd2e;
}

.window-dots span:nth-child(3) {
    background: #27c93f;
}

.video-status {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--logo-cyan);
    letter-spacing: 0.1em;
    animation: pulseAlpha 2s infinite;
}

@keyframes pulseAlpha {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.video-content {
    position: relative;
    line-height: 0;
}

.video-content video {
    width: 100%;
    height: auto;
    display: block;
    outline: none;
}

.video-overlay-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.1) 0%, transparent 40%, rgba(0, 242, 255, 0.1) 100%);
    z-index: 2;
}

.video-stats-overlay {
    position: absolute;
    bottom: -20px;
    right: 40px;
    display: flex;
    gap: 1rem;
    z-index: 5;
}

.stat-pill {
    background: var(--heading-blue);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 20px rgba(0, 242, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: floatVertical 4s ease-in-out infinite;
}

.stat-pill:nth-child(2) {
    animation-delay: -2s;
    background: var(--white);
    color: var(--heading-blue);
    border: 1px solid var(--logo-cyan);
}

@keyframes floatVertical {

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

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

@media (max-width: 992px) {
    .premium-video-container {
        padding: 1.5rem;
        border-radius: 32px;
    }

    .video-stats-overlay {
        right: 20px;
        bottom: -15px;
    }

    .stat-pill {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .video-showcase {
        padding: 4rem 1.5rem;
    }

    .video-stats-overlay {
        position: static;
        margin-top: 2rem;
        justify-content: center;
    }
}

/* Coming Soon Locked State */
.coming-soon {
    position: relative;
    overflow: hidden;
}

.coming-soon::after {
    content: 'COMING SOON';
    position: absolute;
    inset: 0;
    background: rgba(8, 18, 26, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--logo-cyan);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    opacity: 0;
    transition: var(--transition);
    z-index: 10;
}

.coming-soon:hover::after {
    opacity: 1;
}

.coming-soon::before {
    content: '🔒';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    z-index: 11;
    opacity: 0.5;
    transition: var(--transition);
}

.coming-soon:hover::before {
    transform: scale(1.2) rotate(10deg);
    opacity: 1;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: var(--heading-blue);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 242, 255, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2000;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.back-to-top:hover {
    background: var(--logo-cyan);
    color: #030608;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 0 25px var(--logo-cyan), 0 0 50px rgba(0, 242, 255, 0.4);
}

.back-to-top svg {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
}

.back-to-top:hover svg {
    transform: translateY(-2px);
}

/* Personal Website Link Styles */
.about-actions {
    margin: 2rem 0;
}

.personal-btn {
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-width: 2px;
}

.btn-icon {
    font-size: 1.2rem;
}

footer {
    padding: 4rem 2rem;
    background: rgba(8, 18, 26, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 242, 255, 0.2);
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.footer-link {
    color: var(--logo-cyan);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(0, 242, 255, 0.3);
    border-radius: 50px;
    transition: var(--transition);
    background: rgba(0, 242, 255, 0.05);
}

.footer-link:hover {
    background: var(--logo-cyan);
    color: #030608;
    box-shadow: 0 0 20px var(--logo-cyan);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .about-actions {
        display: flex;
        justify-content: center;
    }
}

/* --- NEW SECTIONS STYLES --- */

/* Process Section */
.process {
    background: rgba(8, 18, 26, 0.3);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step-item {
    background: rgba(8, 18, 26, 0.6);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(0, 242, 255, 0.1);
    transition: var(--transition);
    text-align: center;
}

.step-item:hover {
    transform: translateY(-10px);
    border-color: var(--logo-cyan);
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.1);
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    animation: iconFloat 4s ease-in-out infinite;
}

@keyframes iconFloat {

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

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

.step-item:nth-child(2) .step-icon {
    animation-delay: 1s;
}

.step-item:nth-child(3) .step-icon {
    animation-delay: 2s;
}

.step-item:nth-child(4) .step-icon {
    animation-delay: 3s;
}

.step-content h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Stats Section */
.stats-counter {
    padding: 6rem 0;
    background: linear-gradient(180deg, transparent, rgba(0, 242, 255, 0.05), transparent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-box {
    padding: 2rem;
}

.stat-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--logo-cyan);
    font-family: 'Outfit', sans-serif;
    text-shadow: 0 0 20px rgba(0, 242, 255, 0.5);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--body-blue);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* FAQ Section */
.faq {
    background: rgba(8, 18, 26, 0.2);
}

.faq-accordion {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 242, 255, 0.1);
    background: rgba(8, 18, 26, 0.4);
    transition: var(--transition);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.faq-question span {
    font-size: 1.5rem;
    color: var(--logo-cyan);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question span {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 242, 255, 0.02);
}

.faq-answer p {
    padding: 0 2rem 2rem;
    color: rgba(0, 163, 171, 0.8);
}

.faq-item.active {
    border-color: var(--logo-cyan);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.15);
}

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

/* Newsletter Section */
.newsletter {
    padding: 8rem 2rem;
}

.newsletter-box {
    background: linear-gradient(135deg, rgba(8, 18, 26, 0.9), rgba(0, 242, 255, 0.05));
    padding: 4rem;
    border-radius: 40px;
    border: 1px solid rgba(0, 242, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    backdrop-filter: blur(20px);
}

.newsletter-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    flex: 1;
    max-width: 500px;
}

.newsletter-form input {
    flex: 1;
    padding: 1.2rem 1.5rem;
    border-radius: 14px;
    border: 1px solid rgba(0, 242, 255, 0.2);
    background: rgba(255, 255, 255, 0.03);
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.newsletter-form input:focus {
    border-color: var(--logo-cyan);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
}

@media (max-width: 992px) {
    .newsletter-box {
        flex-direction: column;
        text-align: center;
        padding: 3rem 2rem;
    }

    .newsletter-form {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .newsletter-form {
        flex-direction: column;
    }
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--logo-cyan), var(--heading-blue));
    z-index: 1001;
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 15px var(--logo-cyan);
}

/* Testimonials Section */
.testimonials {
    background: rgba(8, 18, 26, 0.4);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.testimonial-card {
    background: rgba(8, 18, 26, 0.6);
    padding: 3rem;
    border-radius: 32px;
    border: 1px solid rgba(0, 242, 255, 0.1);
    position: relative;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--logo-cyan);
    box-shadow: 0 15px 40px rgba(0, 242, 255, 0.1);
}

.quote-icon {
    font-size: 5rem;
    color: var(--logo-cyan);
    opacity: 0.2;
    position: absolute;
    top: 1rem;
    left: 2rem;
    font-family: serif;
}

.review-stars {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
    display: flex;
    gap: 2px;
}

.testimonial-card p {
    font-size: 1.15rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.tester-info {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.tester-avatar {
    width: 50px;
    height: 50px;
    background: rgba(0, 242, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 1px solid var(--logo-cyan);
    overflow: hidden;
    /* Ensure images stay in circle */
}

.stylized-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Masking pixelation with a subtle filter and glow */
    filter: contrast(1.1) brightness(1.1);
    border-radius: 50%;
}

.tester-details strong {
    display: block;
    color: var(--logo-cyan);
    font-size: 1.1rem;
}

.tester-details span {
    color: var(--body-blue);
}

.review-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: rgba(0, 242, 255, 0.03);
    border-radius: 24px;
    border: 1px dashed rgba(0, 242, 255, 0.2);
}

.review-cta p {
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* Mission Statement Section */
.mission-statement {
    padding: 8rem 2rem;
}

.mission-box {
    background: linear-gradient(135deg, rgba(8, 18, 26, 0.9), rgba(0, 242, 255, 0.05));
    padding: 5rem;
    border-radius: 40px;
    border: 1px solid rgba(0, 242, 255, 0.2);
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    align-items: center;
    gap: 4rem;
    backdrop-filter: blur(20px);
}

.mission-text p {
    font-size: 1.35rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
}

.mission-text .section-title {
    text-align: left;
}

.mission-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.m-badge {
    padding: 0.75rem 1.5rem;
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid var(--logo-cyan);
    border-radius: 50px;
    color: var(--logo-cyan);
    font-weight: 600;
    font-size: 0.9rem;
}

.mission-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mission-image img {
    width: 80%;
    filter: drop-shadow(0 0 30px rgba(0, 242, 255, 0.5));
    animation: pulseLogo 4s ease-in-out infinite;
}

@keyframes pulseLogo {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 30px rgba(0, 242, 255, 0.5));
    }

    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 50px rgba(0, 242, 255, 0.8));
    }
}

@media (max-width: 992px) {
    .mission-box {
        grid-template-columns: 1fr;
        padding: 4rem 2rem;
        text-align: center;
    }

    .mission-badges {
        justify-content: center;
    }

    .mission-text .section-title {
        text-align: center;
    }

    .mission-image {
        order: -1;
    }
}

/* PWA Install Banner */
.pwa-install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(8, 18, 26, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-top: 1px solid rgba(0, 242, 255, 0.3);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 -10px 40px rgba(0, 242, 255, 0.15);
}

.pwa-install-banner.show {
    transform: translateY(0);
}

.pwa-banner-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.pwa-banner-icon {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 0 12px rgba(0, 242, 255, 0.8));
}

.pwa-banner-text strong {
    display: block;
    color: var(--white);
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}

.pwa-banner-text span {
    color: var(--body-blue);
    font-size: 0.9rem;
}

.pwa-banner-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.pwa-install-btn {
    padding: 0.75rem 2rem;
    background: var(--logo-cyan);
    color: #030608;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.pwa-install-btn:hover {
    box-shadow: 0 0 25px var(--logo-cyan);
    transform: scale(1.05);
}

.pwa-dismiss-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--body-blue);
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.pwa-dismiss-btn:hover {
    border-color: var(--logo-cyan);
    color: var(--white);
}

@media (max-width: 600px) {
    .pwa-install-banner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.25rem;
    }

    .pwa-banner-content {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* Paper Story Section */
.paper-story {
    padding: 10rem 2rem;
    background: radial-gradient(circle at top right, rgba(0, 242, 255, 0.05), transparent);
}

.story-box {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    align-items: center;
    gap: 4rem;
    padding: 5rem;
    border-radius: 40px;
    border: 1px solid rgba(0, 242, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.story-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    font-size: 4rem;
    position: relative;
}

.floating-paper {
    animation: float 4s ease-in-out infinite;
}

.transform-arrow {
    font-size: 2.5rem;
    color: var(--logo-cyan);
    animation: pulse 2s ease-in-out infinite;
}

.glowing-bookmark {
    animation: float 4s ease-in-out infinite reverse;
    filter: drop-shadow(0 0 20px var(--logo-cyan));
}

.story-content h2 {
    margin-bottom: 2rem;
}

.story-content p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
}

@media (max-width: 992px) {
    .story-box {
        grid-template-columns: 1fr;
        padding: 3rem 2rem;
        text-align: center;
    }

    .story-content h2 {
        text-align: center;
    }

    .story-visual {
        margin-bottom: 2rem;
    }
}

/* Toolkit Section */
.toolkit {
    padding: 8rem 0;
    background: rgba(8, 18, 26, 0.3);
}

.toolkit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.toolkit-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 3rem 2rem;
    border-radius: 24px;
    border: 1px solid rgba(0, 242, 255, 0.1);
    text-align: center;
    transition: var(--transition);
}

.toolkit-item:hover {
    background: rgba(0, 242, 255, 0.05);
    transform: translateY(-10px);
    border-color: var(--logo-cyan);
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.1);
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.toolkit-item h3 {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.toolkit-item p {
    font-size: 1rem;
    color: var(--body-blue);
    line-height: 1.6;
}

/* Roadmap Section */
.roadmap {
    padding: 10rem 0;
}

.roadmap-timeline {
    max-width: 900px;
    margin: 5rem auto 0;
    position: relative;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(0, 242, 255, 0.1);
}

.roadmap-item {
    position: relative;
    padding-left: 70px;
    margin-bottom: 5rem;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.roadmap-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.roadmap-item::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #030608;
    border: 4px solid var(--logo-cyan);
    z-index: 2;
    box-shadow: 0 0 15px var(--logo-cyan);
}

.roadmap-item.upcoming::before {
    background: #030608;
    border-color: rgba(0, 242, 255, 0.3);
    box-shadow: none;
}

.roadmap-date {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--logo-cyan);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.roadmap-info {
    background: rgba(255, 255, 255, 0.04);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 242, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.roadmap-item:hover .roadmap-info {
    background: rgba(0, 242, 255, 0.08);
    transform: translateX(10px);
    border-color: var(--logo-cyan);
}

.roadmap-info h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.roadmap-info p {
    color: var(--body-blue);
    font-size: 1.1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .roadmap-timeline::before {
        left: 15px;
    }

    .roadmap-item {
        padding-left: 50px;
    }

    .roadmap-item::before {
        left: 7px;
    }
}

/* Philosophy Section */
.philosophy {
    padding: 10rem 0;
}

.philosophy-box {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    align-items: center;
    gap: 4rem;
    padding: 5rem;
    border-radius: 40px;
}

.philosophy-text p {
    font-size: 1.5rem;
    line-height: 1.8;
    color: var(--white);
    margin-bottom: 2rem;
}

.philosophy-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 6rem;
}

.canvas-heart {
    animation: heartPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(0, 242, 255, 0.4));
}

@keyframes heartPulse {

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

    50% {
        transform: scale(1.15);
        filter: drop-shadow(0 0 50px rgba(0, 242, 255, 0.6));
    }
}

/* Mood Matcher Section */
.mood-matcher {
    padding: 10rem 0;
    background: linear-gradient(180deg, transparent, rgba(0, 242, 255, 0.03), transparent);
}

.mood-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.mood-card {
    background: rgba(8, 18, 26, 0.6);
    padding: 3rem 2rem;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.mood-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--accent-color), transparent 70%);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.mood-card:hover::before {
    opacity: 0.15;
}

.mood-card:hover {
    transform: translateY(-15px) scale(1.03);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.mood-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
}

.mood-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.mood-card p {
    font-size: 1.15rem;
    color: var(--body-blue);
    line-height: 1.6;
}

/* Category Colors */
.mood-card.fantasy {
    --accent-color: #bc13fe;
}

.mood-card.scifi {
    --accent-color: #00f2ff;
}

.mood-card.mystery {
    --accent-color: #ff3e3e;
}

.mood-card.nature {
    --accent-color: #3eff5a;
}

/* Spreading Joy Section */
.impact-section {
    padding: 10rem 0;
}

.impact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 5rem;
}

.impact-content p {
    font-size: 1.6rem;
    line-height: 1.8;
    color: var(--white);
    margin-bottom: 2.5rem;
    transition: var(--transition);
}

.impact-content p:hover {
    transform: scale(1.02);
    color: var(--logo-cyan);
}

.impact-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 8rem;
}

.joy-pulse {
    animation: sunBeam 6s linear infinite;
    filter: drop-shadow(0 0 40px rgba(255, 215, 0, 0.5));
}

@keyframes sunBeam {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.1);
    }

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

/* Academy Tips Section */
.academy-tips {
    padding: 10rem 0;
    background: rgba(8, 18, 26, 0.4);
}

.tips-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.tip-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    padding: 4rem 3rem;
    border-radius: 40px;
    border: 1px solid rgba(0, 242, 255, 0.1);
    position: relative;
    transition: var(--transition);
}

.tip-card:hover {
    border-color: var(--logo-cyan);
    transform: perspective(1000px) rotateX(5deg);
}

.tip-number {
    position: absolute;
    top: 2rem;
    left: 2rem;
    font-size: 3rem;
    font-weight: 900;
    color: var(--logo-cyan);
    opacity: 0.15;
    font-family: 'Outfit', sans-serif;
}

.tip-card p {
    font-size: 1.3rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 992px) {

    .philosophy-box,
    .impact-grid {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 3rem 2rem;
    }

    .philosophy-visual,
    .impact-visual {
        order: -1;
        margin-bottom: 3rem;
    }
}

.mood-card.selected {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 30px var(--accent-color);
}

/* Enhanced Scroll Reveal for New Sections */
.philosophy,
.mood-matcher,
.impact-section,
.academy-tips {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.philosophy.active,
.mood-matcher.active,
.impact-section.active,
.academy-tips.active {
    opacity: 1;
    transform: translateY(0);
}

/* Spotlight Effect for Philosophy */
.philosophy.active .philosophy-box {
    animation: spotlightReveal 1.5s ease-out forwards;
}

@keyframes spotlightReveal {
    from {
        clip-path: circle(0% at 50% 50%);
    }

    to {
        clip-path: circle(150% at 50% 50%);
    }
}

/* Visitor Banner Notification */
.visitor-banner {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    padding: 1rem 2rem;
    background: rgba(8, 18, 26, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 242, 255, 0.3);
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 242, 255, 0.1);
    transform: translateY(150%);
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.5s ease;
    opacity: 0;
    pointer-events: none;
}

.visitor-banner.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.banner-icon {
    font-size: 1.4rem;
    animation: simpleFloat 3s ease-in-out infinite;
}

#visitor-text {
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

#visitor-text strong {
    color: var(--logo-cyan);
    font-weight: 800;
}

@keyframes simpleFloat {

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

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

@media (max-width: 768px) {
    .visitor-banner {
        left: 20px;
        right: 20px;
        bottom: 20px;
        transform: translateY(200%);
    }
}

/* Among Us Easter Egg */
.mini-among-us {
    position: fixed;
    bottom: 20%;
    right: 30px;
    width: 45px;
    height: auto;
    z-index: 20000;
    cursor: pointer;
    animation: floatingSus 8s ease-in-out infinite, rotationSus 20s linear infinite;
    filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.6));
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mini-among-us:hover {
    transform: scale(1.4);
    filter: drop-shadow(0 0 20px rgba(255, 0, 0, 1));
}

.mini-among-us img {
    width: 100%;
    height: auto;
}

.giant-among-us-container {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.98);
    z-index: 100000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(30px);
}

.giant-among-us-container.active {
    display: flex;
    animation: susAppear 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.giant-among-us {
    height: 70vh;
    width: auto;
    object-fit: contain;
    animation: susHeartbeat 1.5s ease-in-out infinite;
}

.sus-text {
    color: #ff0000;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 900;
    margin-top: 1rem;
    letter-spacing: 1rem;
    text-shadow: 0 0 30px rgba(255, 0, 0, 0.8);
    animation: textFlicker 0.2s infinite;
}

.sus-back-btn {
    margin-top: 3rem;
    padding: 1.2rem 3rem;
    background: #ff0000;
    color: white;
    border: 4px solid #800000;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
    z-index: 100001;
    /* Above the overlay content */
}

.sus-back-btn:hover {
    transform: scale(1.1) rotate(-1deg);
    background: #ff3333;
    box-shadow: 0 0 40px rgba(255, 0, 0, 0.8);
}

.sus-back-btn:active {
    transform: scale(0.95);
}

@keyframes floatingSus {

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

    33% {
        transform: translate(-30px, 20px);
    }

    66% {
        transform: translate(20px, -40px);
    }
}

@keyframes rotationSus {
    from {
        rotate: 0deg;
    }

    to {
        rotate: 360deg;
    }
}

@keyframes susAppear {
    from {
        transform: scale(0.1);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes susHeartbeat {

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

    50% {
        transform: scale(1.1);
    }
}

@keyframes textFlicker {
    0% {
        opacity: 1;
        filter: blur(0);
    }

    50% {
        opacity: 0.7;
        filter: blur(2px);
    }

    100% {
        opacity: 1;
        filter: blur(0);
    }
}

/* XP Jar Feature */
.xp-jar-container {
    position: fixed;
    top: 90px;
    left: 20px;
    z-index: 999;
    pointer-events: auto;
    cursor: pointer;
}

.xp-jar {
    width: 60px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border: 3px solid rgba(0, 242, 255, 0.3);
    border-radius: 10px 10px 20px 20px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.1);
}

.xp-jar::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 8px;
    background: rgba(0, 242, 255, 0.4);
    border-radius: 4px;
}

.xp-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to top, var(--logo-cyan), #fff);
    transition: height 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 20px var(--logo-cyan);
}

.xp-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 800;
    font-size: 0.8rem;
    color: var(--white);
    text-shadow: 0 0 5px #000;
    z-index: 2;
}

/* XP Jar States */
.xp-jar.full {
    animation: fullGlow 2s ease-in-out infinite, jarPulse 1.5s ease-in-out infinite;
    border-color: #fff;
    box-shadow: 0 0 25px var(--logo-cyan), 0 0 50px rgba(0, 242, 255, 0.4);
}

.xp-jar.shake {
    animation: jarShake 0.4s ease-in-out;
}

@keyframes fullGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 10px var(--logo-cyan));
    }

    50% {
        filter: drop-shadow(0 0 25px #fff);
    }
}

@keyframes jarPulse {

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

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

@keyframes jarShake {

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

    25% {
        transform: translateX(-5px) rotate(-5deg);
    }

    75% {
        transform: translateX(5px) rotate(5deg);
    }
}

/* Present Overlay */
.present-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 18, 26, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(15px);
}

.present-overlay.active {
    display: flex;
    animation: fadeIn 0.5s ease forwards;
}

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

.present-trigger {
    font-size: 15rem;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.3));
}

.present-trigger:hover {
    transform: scale(1.1) rotate(5deg);
}

.present-trigger.open {
    animation: explode 0.5s ease forwards;
}

.joke-reveal {
    display: none;
    max-width: 600px;
    padding: 2rem;
}

.joke-reveal.active {
    display: block;
    animation: slideUp 0.5s ease forwards;
}

#joke-text {
    font-size: 2.5rem;
    color: var(--white);
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.2;
}

@keyframes explode {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
        filter: blur(10px);
    }

    100% {
        transform: scale(3);
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .xp-jar-container {
        top: auto;
        bottom: 20px;
        left: 20px;
    }

    #joke-text {
        font-size: 1.5rem;
    }
}

/* Shooting Star */
.shooting-star {
    position: fixed;
    top: 0;
    left: 0;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #fff;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
}

.shooting-star.active {
    animation: shoot 1.5s linear forwards;
}

@keyframes shoot {
    0% {
        transform: translate(0, 0) rotate(45deg) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
        transform: translate(10vw, 10vh) rotate(45deg) scale(1);
    }

    100% {
        transform: translate(100vw, 100vh) rotate(45deg) scale(1);
        opacity: 0;
    }
}

/* Magnetic Button Utility */
.magnetic {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Other Projects Section */
.other-projects {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid var(--logo-cyan);
    border-radius: 0 15px 15px 0;
    backdrop-filter: blur(5px);
}

.other-projects h4 {
    margin-bottom: 1rem;
    color: var(--logo-cyan);
    font-size: 1.2rem;
    font-weight: 700;
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.project-tag {
    display: flex;
    align-items: center;
    padding: 0.6rem 1.2rem;
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 30px;
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.project-tag:hover {
    background: var(--logo-cyan);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 242, 255, 0.3);
}

/* --- NEW FEATURES STYLES --- */

/* Achievement Toast Display */
.achievement-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none;
}

.achievement-toast {
    background: rgba(8, 18, 26, 0.95);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid var(--logo-cyan);
    padding: 1.25rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-width: 320px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 242, 255, 0.25);
    transform: translateX(130%);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: auto;
}

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

.achievement-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 242, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    border: 1px solid rgba(0, 242, 255, 0.3);
}

.achievement-info h4 {
    color: var(--logo-cyan);
    margin: 0;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 2px;
}

.achievement-info p {
    color: var(--white);
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Doodle Section */
.doodle-section {
    background: radial-gradient(circle at center, rgba(0, 242, 255, 0.03) 0%, transparent 70%);
}

.doodle-container {
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    margin-top: 2rem;
}

.doodle-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem 3rem;
    border-radius: 24px;
    border: 1px solid rgba(0, 242, 255, 0.15);
    backdrop-filter: blur(10px);
}

.control-group {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.control-group label {
    color: var(--logo-cyan);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.8;
}

.doodle-tool-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 0.7rem 1.4rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.doodle-tool-btn.active {
    background: var(--logo-cyan);
    color: #030608;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
    border-color: var(--logo-cyan);
}

.color-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 400px;
    /* Keep colors contained */
}

.color-swatch {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.color-swatch.active {
    border-color: var(--white);
    transform: scale(1.2) translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.template-selector {
    display: flex;
    gap: 0.75rem;
}

.template-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.template-btn.active {
    background: rgba(0, 242, 255, 0.1);
    border-color: var(--logo-cyan);
    color: var(--logo-cyan);
}

.doodle-actions {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.bookmark-canvas-wrapper {
    position: relative;
    width: 300px;
    height: 640px;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 242, 255, 0.1),
        inset 0 0 20px rgba(0, 0, 0, 0.05);
    cursor: crosshair;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.bookmark-canvas-wrapper.shape-corner {
    width: 350px;
    height: 350px;
    border-radius: 16px 160px 16px 16px;
}

.bookmark-canvas-wrapper.shape-wide {
    width: 450px;
    height: 250px;
}

.bookmark-canvas-wrapper:hover {
    transform: scale(1.02) rotate(1deg);
}

#doodle-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.canvas-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 50px rgba(0, 242, 255, 0.05);
    pointer-events: none;
    z-index: 5;
}

.canvas-overlay-text {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    text-align: center;
    color: rgba(0, 0, 0, 0.05);
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    pointer-events: none;
    user-select: none;
    z-index: 1;
}

/* Custom Cosmic Cursor & Trails */
.custom-cursor {
    width: 12px;
    height: 12px;
    background: var(--logo-cyan);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10005;
    mix-blend-mode: screen;
    box-shadow: 0 0 15px var(--logo-cyan), 0 0 30px rgba(0, 242, 255, 0.5);
    transition: transform 0.1s ease-out, width 0.3s, height 0.3s;
    transform: translate(-50%, -50%);
}

.custom-cursor.hovering {
    width: 40px;
    height: 40px;
    background: rgba(0, 242, 255, 0.2);
    border: 2px solid var(--logo-cyan);
}

.cursor-trail {
    width: 4px;
    height: 4px;
    background: var(--logo-cyan);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10004;
    opacity: 0.8;
    box-shadow: 0 0 10px var(--logo-cyan);
    animation: cursorParticleFade 1s forwards ease-out;
}

@keyframes cursorParticleFade {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -100%) scale(0) rotate(90deg);
    }
}

/* Success State for Clear Button */
.btn.success {
    background: #00FF19 !important;
    color: #030608 !important;
    border-color: #00FF19 !important;
    box-shadow: 0 0 20px rgba(0, 255, 25, 0.4) !important;
}

@media (max-width: 768px) {
    .doodle-controls {
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .bookmark-canvas-wrapper {
        width: 240px;
        height: 500px;
    }

    .custom-cursor,
    .cursor-trail {
        display: none;
        /* Hide custom cursor on mobile */
    }
}

/* Footer & Cookie Consent Branding */
.footer-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.cookie-consent {
    position: fixed;
    bottom: 30px;
    left: 30px;
    right: 30px;
    background: rgba(8, 18, 26, 0.95);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(0, 242, 255, 0.3);
    border-radius: 24px;
    padding: 1.25rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    z-index: 10000;
    transform: translateY(200%);
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 242, 255, 0.1);
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-text {
    color: var(--white);
    font-size: 1rem;
    font-weight: 500;
}

.cookie-text a {
    color: var(--logo-cyan);
    text-decoration: underline;
    font-weight: 700;
}

@media (max-width: 768px) {
    .cookie-consent {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
        bottom: 20px;
        left: 20px;
        right: 20px;
        gap: 1.5rem;
        letter-spacing: 0.2em;
        font-size: 0.8rem;
        color: var(--body-blue);
    }

    .cookie-text {
        font-size: 0.9rem;
    }
}

/* Book Battle Styling */
.book-battle {
    background: radial-gradient(circle at center, rgba(112, 0, 255, 0.05) 0%, transparent 70%);
    padding: 8rem 0;
}

.battle-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.battle-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 242, 255, 0.1);
    border-radius: 40px;
    padding: 3rem;
    width: 350px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.battle-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--logo-cyan);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 242, 255, 0.2);
}

.battle-visual {
    width: 100%;
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 242, 255, 0.2);
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.battle-visual img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.8s ease;
}

.battle-card:hover .battle-visual img {
    transform: scale(1.1);
}

.battle-info h3 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.vote-counter {
    margin-bottom: 2rem;
}

.vote-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--logo-cyan);
    text-shadow: 0 0 20px rgba(0, 242, 255, 0.5);
    font-family: 'Outfit', sans-serif;
}

.vote-label {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    color: var(--body-blue);
}

.battle-vs {
    font-size: 4rem;
    font-weight: 900;
    color: var(--white);
    background: linear-gradient(135deg, #7000FF, #00F2FF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Outfit', sans-serif;
    text-shadow: 0 0 30px rgba(0, 242, 255, 0.3);
    animation: vsPulse 2s ease-in-out infinite;
}

@keyframes vsPulse {

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

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

.winner-timer {
    text-align: center;
    margin-top: 5rem;
    padding: 2rem;
    background: rgba(0, 242, 255, 0.05);
    border-radius: 20px;
    border: 1px dashed rgba(0, 242, 255, 0.3);
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    position: relative;
}

.winner-timer p {
    font-size: 1.25rem;
    color: var(--white);
    margin: 0;
}

.winner-timer strong {
    color: var(--logo-cyan);
    font-size: 1.5rem;
}

@media (max-width: 992px) {
    .battle-vs {
        order: -1;
        width: 100%;
        margin-bottom: 2rem;
    }
}

/* Preview Section Styles */
.gallery-preview,
.membership-preview,
.doodle-preview,
.battle-preview {
    background: rgba(8, 18, 26, 0.4);
    backdrop-filter: blur(15px);
    padding: 3rem;
    border-radius: 40px;
    border: 1px dashed rgba(0, 242, 255, 0.3);
    max-width: 800px;
    margin: 2rem auto;
    transition: var(--transition);
}

.gallery-preview:hover,
.membership-preview:hover,
.doodle-preview:hover,
.battle-preview:hover {
    background: rgba(8, 18, 26, 0.6);
    border-style: solid;
    border-color: var(--logo-cyan);
    transform: translateY(-5px);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}

.gallery-preview p,
.membership-preview p,
.doodle-preview p,
.battle-preview p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    color: var(--white);
    opacity: 0.9;
    line-height: 1.6;
}

/* --- GALAXY QUEST: READING TRACKER STYLES --- */
.mission-center {
    background: radial-gradient(circle at center, rgba(0, 242, 255, 0.05) 0%, transparent 70%);
}

.tracker-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

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

.tracker-form-card {
    padding: 3rem;
    border-radius: 30px;
}

.tracker-form-card h3 {
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

#reading-tracker-form .form-group {
    margin-bottom: 1.5rem;
}

#reading-tracker-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--logo-cyan);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

#reading-tracker-form input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 242, 255, 0.2);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

#reading-tracker-form input:focus {
    outline: none;
    border-color: var(--logo-cyan);
    background: rgba(0, 242, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
}

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

/* Active Missions */
.active-missions-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 1rem;
}

.active-missions-container::-webkit-scrollbar {
    width: 6px;
}

.mission-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 242, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    transition: var(--transition);
    animation: slideInRight 0.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

.mission-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(0, 242, 255, 0.3);
    transform: translateY(-5px);
}

.mission-info h4 {
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.mission-progress-container {
    margin-top: 1.5rem;
}

.mission-progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: var(--body-blue);
}

.mission-progress-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.mission-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--heading-blue), var(--logo-cyan));
    width: 0%;
    transition: width 1s ease-out;
    box-shadow: 0 0 10px var(--logo-cyan);
}

.mission-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-icon {
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid rgba(0, 242, 255, 0.2);
    color: var(--logo-cyan);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon:hover {
    background: var(--logo-cyan);
    color: #030608;
    transform: scale(1.1);
}

.btn-delete:hover {
    background: #ff4757;
    border-color: #ff4757;
    color: white;
}

.no-missions {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0.6;
}

.pulse-ring {
    width: 60px;
    height: 60px;
    border: 2px solid var(--logo-cyan);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    animation: ringPulse 2s infinite;
}

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

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

.tracker-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 3rem;
    border-radius: 30px;
    text-align: center;
}

.t-val {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--logo-cyan);
    font-family: 'Outfit', sans-serif;
    margin-bottom: 0.25rem;
}

.t-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--body-blue);
    font-weight: 700;
}

/* --- DAILY QUEST STYLES --- */
.daily-quest {
    padding: 5rem 2.5rem;
}

.quest-box {
    padding: 4rem;
    border-radius: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 900px) {
    .quest-box {
        grid-template-columns: 1fr;
        padding: 3rem 2rem;
    }
}

.quest-badge {
    display: inline-block;
    background: rgba(0, 242, 255, 0.1);
    color: var(--logo-cyan);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 242, 255, 0.3);
}

.quest-prompt-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(0, 242, 255, 0.3);
    border-radius: 30px;
    padding: 3rem;
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.quest-prompt-card:hover {
    border-style: solid;
    border-color: var(--logo-cyan);
    background: rgba(0, 242, 255, 0.08);
}

.quest-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: float 4s ease-in-out infinite;
}

.quest-prompt-card h3 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.4);
}

.quest-prompt-card p {
    font-size: 1rem;
    color: var(--body-blue);
    margin-bottom: 2rem;
}

.btn.small {
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
}

.full-width {
    width: 100%;
}

.command-center {
    background: var(--lab-bg);
    padding: var(--section-space) 0;
}

.terminal-window {
    background: #0a0b0d;
    border: 1px solid var(--lab-border);
    max-width: 1080px;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

.terminal-header {
    background: #14161a;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--lab-border);
}

.terminal-controls {
    display: flex;
    gap: 8px;
}

.t-dot {
    width: 6px;
    height: 6px;
    background: var(--lab-border);
}

.terminal-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--body-blue);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.terminal-status {
    font-size: 0.65rem;
    color: var(--logo-cyan);
    font-weight: 800;
    letter-spacing: 0.1em;
}

.terminal-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
}

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

.terminal-main {
    border-right: 1px solid var(--lab-border);
}

@media (max-width: 900px) {
    .terminal-main {
        border-right: none;
        border-bottom: 1px solid var(--lab-border);
    }
}

.terminal-sidebar {
    background: #0d0f11;
    padding: 2rem;
}

.sidebar-title {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--logo-cyan);
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.mission-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.m-item {
    font-size: 0.7rem;
    padding: 6px 0;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.05em;
    opacity: 0.6;
}

.m-item.done {
    text-decoration: line-through;
    color: var(--body-blue);
}

.m-item.active {
    opacity: 1;
    color: var(--logo-cyan);
    font-weight: 700;
}

.m-item.active::before {
    content: '>> ';
}

.lab-stats {
    border-top: 1px solid var(--lab-border);
    padding-top: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.l-label {
    font-size: 0.6rem;
    color: var(--body-blue);
    font-weight: 700;
    letter-spacing: 0.1em;
}

.l-val {
    font-size: 1rem;
    color: var(--white);
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
}

.terminal-body {
    padding: 2rem;
    height: 180px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--logo-cyan);
}

.terminal-line {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.t-prompt {
    font-weight: 800;
    margin-right: 10px;
}

.terminal-input-area {
    padding: 1.5rem 2rem;
    background: #050607;
    border-top: 1px solid var(--lab-border);
    display: flex;
    align-items: center;
    gap: 15px;
}

.t-prompt-arrow {
    color: var(--logo-cyan);
    font-weight: 900;
    font-size: 1.2rem;
}

#terminal-input {
    background: transparent;
    border: none;
    color: var(--white);
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    width: 100%;
    outline: none;
}

.terminal-cursor {
    width: 10px;
    height: 20px;
    background: var(--logo-cyan);
    animation: terminalBlink 1s infinite steps(1);
    display: inline-block;
}

@keyframes terminalBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.terminal-help {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--body-blue);
    letter-spacing: 0.1em;
}

.t-code {
    color: var(--logo-cyan);
    font-weight: 700;
    border: 1px solid var(--lab-border);
    padding: 2px 6px;
    margin: 0 4px;
}

/* --- REFINING GLOBAL COMPONENTS FOR LAB THEME --- */
.glassmorphism {
    background: rgba(12, 16, 20, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 242, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.glassmorphism:hover {
    border-color: rgba(0, 242, 255, 0.2);
}



.tip-card,
.mood-card,
.toolkit-item {
    border: 1px solid var(--lab-border);
    background: rgba(255, 255, 255, 0.02);
}

.quick-stats {
    gap: 0;
    /* Tight industrial grid */
}

.stat-item {
    border: 0.5px solid var(--lab-border);
    background: transparent;
}

/* --- PREMIUM INDUSTRIAL UPGRADES --- */

/* Technical Sections Base */
.hero,
.command-center,
.mission-center,
.daily-quest {
    position: relative;
}

/* Glassmorphism Refinement with Corner Accents */
.glassmorphism {
    position: relative;
    border: 1px solid var(--lab-border);
    background: var(--lab-panel);
    backdrop-filter: blur(14px);
}

.glassmorphism::before,
.glassmorphism::after {
    content: "";
    position: absolute;
    width: 25px;
    height: 25px;
    border: 2px solid var(--logo-cyan);
    pointer-events: none;
    z-index: 5;
}

.glassmorphism::before {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}

.glassmorphism::after {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
}

/* Section Module IDs */
.module-id {
    position: absolute;
    top: 20px;
    right: 30px;
    font-family: 'Courier New', monospace;
    font-size: 0.6rem;
    color: var(--logo-cyan);
    opacity: 0.15;
    letter-spacing: 0.2em;
    font-weight: 600;
    pointer-events: none;
}

/* XP Energy Core Styling */
.xp-jar {
    width: 50px;
    height: 100px;
    background: #080a0c;
    border: 1px solid var(--lab-border);
    display: flex;
    flex-direction: column-reverse;
    padding: 2px;
}

.xp-fill {
    background: var(--logo-cyan);
    box-shadow: 0 0 15px var(--logo-cyan);
    transition: height 0.8s ease-in-out;
}

.xp-label {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    font-weight: 900;
    color: var(--logo-cyan);
    background: #0d0f11;
    padding: 2px 6px;
    border: 1px solid var(--lab-border);
}

/* --- NEW LAB COMPONENTS --- */

/* Lab Archives */
.lab-archives {
    padding: var(--section-space) 0;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.archive-card {
    padding: 0;
    overflow: hidden;
}

.archive-img {
    height: 200px;
    background: #080a0c;
    overflow: hidden;
    border-bottom: 1px solid var(--lab-border);
}

.archive-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.5) contrast(1.2);
    transition: var(--transition);
}

.archive-card:hover .archive-img img {
    filter: grayscale(0) contrast(1);
    transform: scale(1.05);
}

.archive-details {
    padding: 1.5rem;
}

.spec-label {
    font-family: 'Courier New', monospace;
    font-size: 0.6rem;
    color: var(--logo-cyan);
    letter-spacing: 0.2em;
    font-weight: 800;
}

.archive-details h4 {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.spec-data {
    font-size: 0.7rem;
    color: var(--body-blue);
    opacity: 0.7;
    font-family: 'Courier New', monospace;
}


/* Lab Footer Revamp */
.lab-footer {
    background: rgba(5, 6, 7, 0.9);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(0, 242, 255, 0.08);
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

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

.footer-brand .logo {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-disclaimer {
    font-size: 0.85rem;
    color: var(--body-blue);
    max-width: 300px;
}

.footer-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.nav-group h5 {
    color: var(--logo-cyan);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.nav-group a {
    display: block;
    color: var(--body-blue);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.nav-group a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(0, 242, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    color: var(--body-blue);
}

/* --- E-LIBRARY DATABANK STYLES --- */
.library-page {
    background-color: var(--lab-bg);
}

.library-hero {
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
}

.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: clamp(1.25rem, 2.25vw, 2rem);
    padding: 0 0 8rem;
    max-width: var(--site-max-width);
    margin: 2rem auto 0;
}

.library-item {
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
    border: 1px solid var(--lab-border);
    border-radius: 12px;
    background: #08121a;
    max-width: 280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.library-item:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--logo-cyan);
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.2);
}

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

.item-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: rgba(21, 33, 43, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--lab-border);
}

.item-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    /* Standard for books to see the title */
    transition: var(--transition);
    display: block;
}

/* Spine Effect / Premium Overlay */
.item-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.4), transparent);
    z-index: 2;
    pointer-events: none;
}

.item-visual::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.3);
    z-index: 1;
    pointer-events: none;
}

/* Broken Image Indicator */
.item-visual img::after {
    content: "[ DATA CORRUPTED ]\A RE-SCAN REQUIRED";
    white-space: pre;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #08121a;
    color: #ff4d4d;
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    padding: 1rem;
    border: 1px solid rgba(255, 77, 77, 0.3);
}

.library-item:hover .item-visual img {
    transform: scale(1.1) translateY(-5px);
    filter: brightness(1.2);
}

/* Future/Placeholder Styling */
.placeholder-card {
    border: 1px dashed var(--lab-border) !important;
    background: rgba(0, 242, 255, 0.02) !important;
}

.placeholder-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem;
    text-align: center;
}

.pulse-ring {
    width: 50px;
    height: 50px;
    border: 2px solid var(--logo-cyan);
    border-radius: 50%;
    animation: ringPulse 2s infinite ease-out;
    opacity: 0.6;
}

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

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

.placeholder-content p {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--logo-cyan);
    font-weight: 800;
}

.item-visual .scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--logo-cyan);
    box-shadow: 0 0 15px var(--logo-cyan);
    animation: itemScan 5s infinite linear;
}

@keyframes itemScan {
    0% {
        top: 0;
    }

    100% {
        top: 100%;
    }
}

.library-grid .item-content,
.library-grid .module-id {
    display: none;
}

.item-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    margin-bottom: 2rem;
}

.meta-tag {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    color: var(--logo-cyan);
    border: 1px solid var(--lab-border);
    padding: 4px 10px;
    font-weight: 700;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating-stars {
    color: #FFD700;
    letter-spacing: 2px;
    font-size: 1.2rem;
}

.rating-text {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--body-blue);
    letter-spacing: 0.1em;
}

.item-section {
    margin-bottom: 2.5rem;
}

.tech-header {
    font-size: 0.8rem;
    color: var(--logo-cyan);
    letter-spacing: 0.2em;
    font-weight: 800;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--lab-border);
    padding-bottom: 5px;
    display: inline-block;
}

.item-summary {
    line-height: 1.8;
    color: var(--body-blue);
    font-size: 0.95rem;
}

.spoiler-container {
    background: rgba(0, 0, 0, 0.4);
    border: 1px dashed var(--lab-border);
    padding: 2rem;
    position: relative;
    transition: var(--transition);
}

.spoiler-content.hidden {
    display: none;
}

.spoiler-content p {
    font-size: 0.9rem;
    color: var(--heading-blue);
    font-family: 'Courier New', monospace;
    line-height: 1.6;
}

.placeholder-card {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(0, 242, 255, 0.1);
    background: transparent;
}

.placeholder-content {
    text-align: center;
    opacity: 0.3;
}

.placeholder-content p {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    margin-top: 1rem;
}

/* Technical Data Grid */
.technical-data {
    margin-top: 1.5rem;
    padding: 1.5rem !important;
    background: rgba(0, 0, 0, 0.2) !important;
}

.data-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 242, 255, 0.05);
}

.data-row:last-child {
    border-bottom: none;
}

.data-label {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    color: var(--logo-cyan);
    font-weight: 800;
}

.data-value {
    font-size: 0.85rem;
    color: var(--body-blue);
    font-weight: 600;
}

/* Lab Status Monitor */
.status-monitor {
    padding: 8rem 0;
    position: relative;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 242, 255, 0.02) 50%, transparent 100%);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.monitor-card {
    background: rgba(8, 18, 26, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 242, 255, 0.1);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.monitor-card:hover {
    border-color: var(--logo-cyan);
    background: rgba(0, 242, 255, 0.05);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.05);
}

.monitor-label {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: var(--logo-cyan);
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.monitor-value {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1;
    font-family: 'Outfit', sans-serif;
}

.monitor-unit {
    font-size: 1rem;
    color: var(--body-blue);
    margin-left: 0.5rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.progress-tube {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    margin-top: 1.5rem;
    overflow: hidden;
}

.tube-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--logo-cyan), #00d4ff);
    box-shadow: 0 0 10px var(--logo-cyan);
    width: 0%;
    transition: width 2.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.pulse-indicator {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--logo-cyan);
    border-radius: 50%;
    margin-right: 12px;
    box-shadow: 0 0 8px var(--logo-cyan);
    animation: metricPulse 2.5s infinite;
}

@keyframes metricPulse {
    0% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 5px var(--logo-cyan);
    }

    50% {
        transform: scale(1.6);
        opacity: 0.3;
        box-shadow: 0 0 15px var(--logo-cyan);
    }

    100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 5px var(--logo-cyan);
    }
}

.monitor-footer {
    margin-top: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.65rem;
    color: rgba(112, 128, 144, 0.6);
    text-transform: uppercase;
}

/* Kindle Dashboard Navigation */
.library-controls {
    margin: 2rem auto;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 2rem;
    background: rgba(8, 18, 26, 0.6);
    border: 1px solid var(--lab-border);
}

.search-bay {
    flex: 1;
    position: relative;
}

.search-bay input {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--lab-border);
    padding: 15px 25px;
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    letter-spacing: 1px;
    outline: none;
    transition: var(--transition);
}

.search-bay input:focus {
    border-color: var(--logo-cyan);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.1);
}

.filter-group {
    display: flex;
    gap: 1rem;
}

/* Reading Station Modal */
.reading-station {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 6, 8, 0.95);
    backdrop-filter: blur(20px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.station-content {
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    background: rgba(8, 18, 26, 0.8);
    border: 1px solid var(--logo-cyan);
    display: grid;
    grid-template-columns: 400px 1fr;
    overflow-y: auto;
    position: relative;
}

.close-station {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: 1px solid var(--logo-cyan);
    color: var(--logo-cyan);
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.5rem;
    transition: var(--transition);
    z-index: 100;
}

.close-station:hover {
    background: var(--logo-cyan);
    color: #000;
}

.station-visual {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    border-right: 1px solid var(--lab-border);
}

.station-visual img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 0 50px rgba(0, 242, 255, 0.2);
}

.station-details {
    padding: 4rem;
}

.station-details .item-content {
    display: block !important;
}

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

    .station-visual {
        height: 400px;
        border-right: none;
        border-bottom: 1px solid var(--lab-border);
    }

    .station-details {
        padding: 2rem;
    }
}

/* Achievement Specifics */
.achievement-toast {
    background: rgba(8, 18, 26, 0.9);
    border: 1px solid var(--logo-cyan);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.2);
    margin-bottom: 1rem;
    transform: translateX(120%);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

/* --- DAILY MISSION DASHBOARD STYLES --- */
.daily-mission-dashboard {
    margin-top: 3rem;
    padding: 2.5rem;
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 5;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
}

.dashboard-header h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-header p {
    color: var(--body-blue);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.mission-checklist {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.mission-task {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mission-task.complete {
    border-color: var(--logo-cyan);
    background: rgba(0, 242, 255, 0.05);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.1);
}

.task-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mission-task.complete .task-icon {
    background: rgba(0, 242, 255, 0.2);
    color: var(--logo-cyan);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.2);
}

.task-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex-grow: 1;
}

.mission-task input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--logo-cyan);
    margin-top: 4px;
}

.mission-task label {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.mission-task label strong {
    font-size: 1.1rem;
    color: #fff;
    transition: color 0.3s ease;
}

.mission-task.complete label strong {
    color: var(--logo-cyan);
    text-decoration: line-through opacity(0.5);
}

.mission-task label span {
    font-size: 0.85rem;
    color: var(--body-blue);
    opacity: 0.7;
}

.mission-footer {
    margin-top: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.mission-reward {
    font-weight: 700;
    color: var(--logo-cyan);
    font-size: 0.9rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mission-reward::before {
    content: '🎁';
    font-size: 1.2rem;
}

#mission-status-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.05em;
}

.pulse-indicator {
    width: 10px;
    height: 10px;
    background: var(--logo-cyan);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--logo-cyan);
    animation: heartBeat 2s infinite;
}

@keyframes heartBeat {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 768px) {
    .daily-mission-dashboard {
        padding: 1.5rem;
    }
    .mission-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* --- VAULT KEYPAD STYLES --- */
.vault-keypad {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    background: rgba(8, 18, 26, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 242, 255, 0.3);
    border-radius: 20px;
    padding: 2rem;
    z-index: 1000;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 242, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.keypad-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.6rem;
    color: var(--logo-cyan);
    letter-spacing: 1px;
    font-weight: 700;
    opacity: 0.7;
}

.keypad-close {
    background: none;
    border: none;
    color: var(--logo-cyan);
    font-size: 1.25rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 5px;
}

.keypad-close:hover {
    color: #ff3e3e;
}

.keypad-display {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 242, 255, 0.2);
    padding: 1rem;
    position: relative;
    overflow: hidden;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.keypad-display .scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 242, 255, 0.05) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 2;
}

.display-text {
    color: var(--logo-cyan);
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    letter-spacing: 12px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
    z-index: 1;
}

.keypad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.key-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 60px;
    height: 60px;
    font-size: 1.1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.key-btn:hover {
    background: rgba(0, 242, 255, 0.1);
    border-color: var(--logo-cyan);
    color: var(--logo-cyan);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.key-btn:active {
    transform: translateY(0) scale(0.95);
}

.key-btn.clear-v {
    color: #ff3e3e;
    background: rgba(255, 62, 62, 0.05);
}

.key-btn.enter-v {
    color: var(--logo-cyan);
    background: rgba(0, 242, 255, 0.1);
}

/* Secret Vault Success Class */
.vault-unlocked .vault-keypad {
    animation: fadeOutDown 0.5s forwards;
    pointer-events: none;
}

@keyframes fadeOutDown {
    to { opacity: 0; transform: translate(-50%, -40%); }
}

/* --- SECRET ARCHIVE MODAL STYLES --- */
.secret-archive {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 800px;
    height: 80vh;
    background: rgba(8, 18, 26, 0.98);
    backdrop-filter: blur(25px);
    border: 1px solid var(--logo-cyan);
    border-radius: 30px;
    z-index: 11000;
    padding: 3rem;
    display: none;
    flex-direction: column;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 100px rgba(0, 242, 255, 0.3);
}

.secret-archive.active {
    display: flex;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.archive-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 242, 255, 0.2);
}

.archive-header h2 {
    color: var(--logo-cyan);
    font-size: 1.5rem;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    overflow-y: auto;
    padding-right: 1rem;
}

.archive-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.archive-item:hover {
    transform: translateY(-5px);
    border-color: var(--logo-cyan);
    background: rgba(0, 242, 255, 0.05);
}

.archive-item img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.sketch-placeholder {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    margin-bottom: 1rem;
}

.archive-item p {
    font-size: 0.8rem;
    color: var(--body-blue);
    line-height: 1.5;
}

.archive-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: var(--logo-cyan);
    opacity: 0.6;
}

.close-btn {
    background: none;
    border: none;
    color: var(--logo-cyan);
    font-size: 2rem;
    cursor: pointer;
}

@media (max-width: 1200px) {
    .secret-archive {
        width: 95%;
        padding: 1.5rem;
    }
}

/* --- LAB JUKEBOX STYLES --- */
.lab-jukebox-container {
    margin: 4rem auto 2rem;
}

.lab-jukebox {
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 20px;
    max-width: 1080px;
    margin: 0 auto;
}

.jukebox-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.jukebox-header h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: #fff;
    white-space: nowrap;
}

.frequency-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 15px;
}

.frequency-bars span {
    width: 3px;
    background: var(--logo-cyan);
    animation: bounceBar 1s infinite ease-in-out;
}

.frequency-bars span:nth-child(1) { height: 100%; animation-delay: 0.1s; }
.frequency-bars span:nth-child(2) { height: 60%; animation-delay: 0.2s; }
.frequency-bars span:nth-child(3) { height: 80%; animation-delay: 0.3s; }
.frequency-bars span:nth-child(4) { height: 40%; animation-delay: 0.4s; }
.frequency-bars span:nth-child(5) { height: 70%; animation-delay: 0.05s; }
.frequency-bars span:nth-child(6) { height: 50%; animation-delay: 0.15s; }
.frequency-bars span:nth-child(7) { height: 90%; animation-delay: 0.25s; }
.frequency-bars span:nth-child(8) { height: 35%; animation-delay: 0.35s; }

/* Holographic pulse — active while jukebox is playing (or PULSE command) */
.lab-jukebox.jukebox-holo-pulse .frequency-bars span {
    background: linear-gradient(180deg, #fff 0%, var(--logo-cyan) 35%, #a855f7 70%, var(--logo-cyan) 100%);
    background-size: 100% 200%;
    box-shadow:
        0 0 8px rgba(0, 242, 255, 0.9),
        0 0 16px rgba(168, 85, 247, 0.5);
    animation: holoBarPulse 0.45s ease-in-out infinite alternate, holoBarShimmer 1.2s linear infinite;
    filter: saturate(1.35) brightness(1.15);
}

.lab-jukebox.jukebox-holo-pulse .frequency-bars span:nth-child(odd) {
    animation-delay: 0.1s, 0s;
}

.lab-jukebox.jukebox-holo-pulse .frequency-bars span:nth-child(even) {
    animation-delay: 0.25s, 0.15s;
}

@keyframes holoBarPulse {
    0% { transform: scaleY(0.35); opacity: 0.75; }
    100% { transform: scaleY(1.15); opacity: 1; }
}

@keyframes holoBarShimmer {
    0% { background-position: 0% 0%; }
    100% { background-position: 0% 100%; }
}

.jukebox-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.jukebox-btn {
    background: none;
    border: 1px solid rgba(0, 242, 255, 0.2);
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jukebox-btn:hover {
    border-color: var(--logo-cyan);
    color: var(--logo-cyan);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
}

.jukebox-btn.play-pause {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    background: rgba(0, 242, 255, 0.1);
}

.track-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
}

#track-name {
    font-size: 0.9rem;
    color: var(--body-blue);
    font-weight: 500;
}

.volume-slider input {
    width: 100%;
    accent-color: var(--logo-cyan);
    cursor: pointer;
}

@keyframes bounceBar {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.4); }
}

@media (max-width: 992px) {
    .lab-jukebox {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    .jukebox-header {
        align-items: center;
    }
}

/* ============================================
   CURSOR TRAIL
   ============================================ */
#cursor-trail-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99998;
}

/* ============================================
   LIVE STATION CLOCK (Terminal Sidebar)
   ============================================ */
.station-clock {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 242, 255, 0.15);
    border-radius: 10px;
    text-align: center;
}

.clock-label {
    font-size: 0.55rem;
    letter-spacing: 2px;
    color: var(--logo-cyan);
    opacity: 0.6;
    margin-bottom: 0.4rem;
}

.live-clock {
    font-family: 'Courier New', monospace;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--logo-cyan);
    text-shadow: 0 0 15px rgba(0, 242, 255, 0.5);
    letter-spacing: 3px;
    animation: clockPulse 1s ease-in-out infinite;
}

.clock-date {
    font-size: 0.6rem;
    color: var(--body-blue);
    opacity: 0.6;
    margin-top: 0.3rem;
    letter-spacing: 1px;
}

@keyframes clockPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.75; }
}

/* ============================================
   CIPHER LAB – TYPING CHALLENGE
   ============================================ */
.cipher-lab-section {
    padding: 6rem 0;
}

.cipher-arena {
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid rgba(0, 242, 255, 0.15);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    overflow: hidden;
}

.cipher-arena::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.cipher-top-bar {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cipher-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 80px;
}

.cs-label {
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: var(--body-blue);
    opacity: 0.7;
}

.cs-val {
    font-family: 'Courier New', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: var(--logo-cyan);
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.4);
    line-height: 1;
}

.cipher-rank {
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(0, 242, 255, 0.3);
    border-radius: 20px;
    color: var(--logo-cyan);
    background: rgba(0, 242, 255, 0.05);
    white-space: nowrap;
}

.cipher-rank.rank-elite { border-color: gold; color: gold; background: rgba(255, 215, 0, 0.1); }
.cipher-rank.rank-commander { border-color: #a855f7; color: #a855f7; background: rgba(168, 85, 247, 0.1); }
.cipher-rank.rank-specialist { border-color: #22c55e; color: #22c55e; background: rgba(34, 197, 94, 0.1); }

.cipher-quote-display {
    font-size: 1.2rem;
    line-height: 2;
    letter-spacing: 0.5px;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-family: 'Courier New', monospace;
    min-height: 80px;
    word-break: break-word;
    user-select: none;
}

/* Individual character spans */
.cipher-char {
    position: relative;
    transition: color 0.1s ease;
}

.cipher-char.correct { color: var(--logo-cyan); }
.cipher-char.incorrect { color: #ff3e3e; background: rgba(255, 62, 62, 0.15); border-radius: 3px; }
.cipher-char.current {
    color: #fff;
    background: rgba(0, 242, 255, 0.2);
    border-radius: 3px;
    animation: caretBlink 0.7s ease infinite;
}
.cipher-char.pending { color: rgba(255,255,255,0.3); }

@keyframes caretBlink {
    0%, 100% { background: rgba(0, 242, 255, 0.2); }
    50% { background: rgba(0, 242, 255, 0.5); }
}

.cipher-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    padding: 1rem 1.25rem;
    resize: none;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.cipher-input:focus {
    border-color: var(--logo-cyan);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.1);
}

.cipher-controls {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.cipher-btn {
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid rgba(0, 242, 255, 0.3);
    color: var(--logo-cyan);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.cipher-btn:hover {
    background: rgba(0, 242, 255, 0.2);
    box-shadow: 0 5px 20px rgba(0, 242, 255, 0.15);
    transform: translateY(-2px);
}

.cipher-progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 99px;
    overflow: hidden;
}

.cipher-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--logo-cyan), #a855f7);
    border-radius: 99px;
    transition: width 0.2s ease;
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.4);
}

@media (max-width: 768px) {
    .cipher-arena { padding: 2rem 1.5rem; }
    .cipher-top-bar { gap: 1rem; }
    .cs-val { font-size: 1.5rem; }
    .cipher-rank { margin-left: 0; }
    .cipher-controls { flex-wrap: wrap; }
    .cipher-quote-display { font-size: 1rem; }
}

/* ============================================
   HYPER-JUMP WARP CANVAS
   ============================================ */
.warp-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: #000;
}
.warp-canvas.active {
    opacity: 1;
    pointer-events: all;
}

/* ============================================
   TERMINAL EASTER EGGS / HACKS
   ============================================ */
.rainbow-mode {
    animation: rainbowPulse 2s linear infinite !important;
}

@keyframes rainbowPulse {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.zero-g .sector-card, .zero-g .lab-jukebox, .zero-g .terminal-window {
    animation: zeroGravity 8s infinite ease-in-out alternate;
}
.zero-g .sector-card:nth-child(even) { animation-direction: alternate-reverse; animation-duration: 9s; }
.zero-g .sector-card:nth-child(3n) { animation-delay: -2s; animation-duration: 10s; }

@keyframes zeroGravity {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
    100% { transform: translateY(15px) rotate(-1.5deg); }
}

.giant-meteor {
    position: fixed;
    top: -100px;
    width: 4px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--logo-cyan), #fff);
    border-radius: 99px;
    filter: drop-shadow(0 0 15px var(--logo-cyan));
    z-index: 9999;
    pointer-events: none;
    animation: meteorStrike 1.5s linear forwards;
}

@keyframes meteorStrike {
    0% { transform: translate(0, 0) rotate(45deg) scale(1); opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translate(-3000px, 3000px) rotate(45deg) scale(0.2); opacity: 0; }
}

body.shake {
    animation: screenShake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes screenShake {
    10%, 90% { transform: translate3d(-2px, 0, 0); }
    20%, 80% { transform: translate3d(4px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-8px, 0, 0); }
    40%, 60% { transform: translate3d(8px, 0, 0); }
}

/* ============================================
   STATION SOUNDBOARD & SFX CONTROLS
   ============================================ */
.station-soundboard {
    margin-top: 3.5rem;
    padding: 2.5rem;
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 28px;
    background: rgba(0, 10, 20, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.station-soundboard::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.station-soundboard h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.sound-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 5px var(--logo-cyan));
}

.sound-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.soundboard-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--body-blue);
    padding: 1.75rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    backdrop-filter: blur(5px);
}

.soundboard-btn span {
    font-size: 2rem;
    transition: transform 0.4s ease;
}

.soundboard-btn:hover {
    background: rgba(0, 242, 255, 0.1);
    border-color: var(--logo-cyan);
    color: #fff;
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(0, 242, 255, 0.2);
}

.soundboard-btn:hover span {
    transform: scale(1.3) rotate(8deg);
}

.soundboard-btn:active {
    transform: scale(0.92);
}

.soundboard-btn.playing {
    background: rgba(0, 242, 255, 0.25);
    border-color: var(--logo-cyan);
    box-shadow: 0 0 40px rgba(0, 242, 255, 0.4);
    animation: flashCyan 0.3s ease;
}

@keyframes flashCyan {
    0% { background: rgba(0, 242, 255, 0.25); }
    50% { background: rgba(0, 242, 255, 0.6); }
    100% { background: rgba(0, 242, 255, 0.25); }
}

/* SFX Toggle Switch - Premium Style */
.sfx-toggle-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 2rem 0;
    padding: 0.8rem 1.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: fit-content;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.sfx-label {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--body-blue);
    text-transform: uppercase;
    opacity: 0.9;
}

.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    transition: .4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px; width: 18px;
    left: 2px; bottom: 2px;
    background-color: #fff;
    transition: .4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

input:checked + .slider {
    background-color: var(--logo-cyan);
    border-color: var(--logo-cyan);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.5);
}

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

.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }

/* Frequency Visualizer Upgrade */
.frequency-bars span {
    box-shadow: 0 0 20px var(--logo-cyan);
    filter: blur(0.5px);
    width: 4px;
}

@media (max-width: 768px) {
    .sound-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .station-soundboard {
        padding: 2rem 1.5rem;
    }
}

/* ============================================
   CC-OS TERMINAL STYLES (RESTORED)
   ============================================ */
.terminal-output {
    height: 300px;
    overflow-y: auto;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 242, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--body-blue);
    scrollbar-width: thin;
    scrollbar-color: var(--logo-cyan) transparent;
}

.terminal-output::-webkit-scrollbar { width: 4px; }
.terminal-output::-webkit-scrollbar-thumb { background: var(--logo-cyan); border-radius: 10px; }

.t-row {
    margin-bottom: 0.5rem;
    display: flex;
    gap: 10px;
    animation: fadeIn 0.3s ease;
}

.t-prefix {
    color: var(--logo-cyan);
    font-weight: 800;
}

.t-code {
    color: var(--logo-cyan);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.t-input-val {
    color: #fff;
    font-weight: 600;
}

.t-error {
    color: #ff3e3e;
    font-weight: 700;
}

.terminal-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.terminal-input-wrapper:focus-within {
    border-color: var(--logo-cyan);
    background: rgba(0, 242, 255, 0.05);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.1);
}

.terminal-input-wrapper span {
    color: var(--logo-cyan);
    font-weight: 800;
}

#terminal-input {
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    flex: 1;
}

.terminal-cursor {
    width: 10px;
    height: 1.2rem;
    background: var(--logo-cyan);
    display: inline-block;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

@keyframes blink {
    50% { opacity: 0; }
}

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

/* ========== STATION WOW-PACK (global UI) ========== */
.cc-welcome-curtain {
    position: fixed;
    inset: 0;
    z-index: 25000;
    background: radial-gradient(ellipse at center, rgba(0, 242, 255, 0.15) 0%, #030608 65%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    animation: ccCurtainIn 0.45s ease-out forwards;
}

.cc-welcome-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cc-welcome-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(1.5rem, 6vw, 2.75rem);
    letter-spacing: 0.35em;
    color: var(--logo-cyan);
    text-shadow: 0 0 30px rgba(0, 242, 255, 0.6);
}

.cc-welcome-sub {
    font-size: 0.85rem;
    letter-spacing: 0.5em;
    color: var(--body-blue);
    font-weight: 600;
}

.cc-welcome-out {
    animation: ccCurtainOut 0.85s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

@keyframes ccCurtainIn {
    from { opacity: 0; filter: blur(12px); }
    to { opacity: 1; filter: blur(0); }
}

@keyframes ccCurtainOut {
    to { transform: translateY(-100%); opacity: 0; }
}

.cc-theme-dock {
    position: fixed;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 12000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 8px;
    background: rgba(8, 18, 26, 0.92);
    border: 1px solid var(--lab-border);
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.5);
}

.cc-theme-btn {
    font-family: 'Outfit', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 8px 6px;
    min-width: 64px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--body-blue);
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.cc-theme-btn:hover {
    color: var(--logo-cyan);
    border-color: var(--logo-cyan);
}

.cc-theme-btn.active {
    color: #030608;
    background: var(--logo-cyan);
    border-color: var(--logo-cyan);
    box-shadow: 0 0 16px rgba(0, 242, 255, 0.45);
}

body.theme-aurora {
    --logo-cyan: #e040fb;
    --heading-blue: #ce93d8;
    --accent-blue: #e040fb;
    --lab-border: rgba(224, 64, 251, 0.28);
    --premium-shadow: 0 0 18px rgba(224, 64, 251, 0.2);
}

body.theme-solar {
    --logo-cyan: #ffc107;
    --heading-blue: #ffe082;
    --accent-blue: #ffc107;
    --lab-border: rgba(255, 193, 7, 0.35);
    --premium-shadow: 0 0 18px rgba(255, 193, 7, 0.2);
}

.cc-shortcuts-overlay {
    position: fixed;
    inset: 0;
    z-index: 24000;
    background: rgba(0, 0, 0, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.cc-shortcuts-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cc-shortcuts-panel {
    position: relative;
    max-width: 420px;
    width: 100%;
    padding: 2rem 2rem 1.75rem;
    border: 1px solid var(--lab-border);
}

.cc-shortcuts-panel h2 {
    margin-bottom: 1.25rem;
    font-size: 1.35rem;
}

.cc-shortcuts-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--lab-text);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}

.cc-shortcuts-close:hover {
    color: var(--logo-cyan);
}

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

.cc-shortcuts-list li {
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.95rem;
    color: var(--body-blue);
}

.cc-shortcuts-list kbd {
    display: inline-block;
    padding: 0.2em 0.5em;
    margin-right: 6px;
    font-family: monospace;
    font-size: 0.8rem;
    background: rgba(0, 242, 255, 0.12);
    border: 1px solid var(--lab-border);
    color: var(--logo-cyan);
}

.cc-shortcuts-foot {
    margin-top: 1.25rem;
    font-size: 0.8rem;
    color: var(--body-blue);
    opacity: 0.85;
}

.cc-sector-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 11900;
    padding: 14px 22px;
    background: rgba(8, 18, 26, 0.95);
    border: 1px solid var(--logo-cyan);
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    max-width: min(90%, 400px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(0, 242, 255, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.cc-sector-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.cc-confetti-root {
    position: fixed;
    inset: 0;
    z-index: 23500;
    pointer-events: none;
    overflow: hidden;
}

.cc-confetti-piece {
    position: absolute;
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
    animation: ccConfettiFly 2s ease-out forwards;
}

@keyframes ccConfettiFly {
    to {
        transform: translate(var(--cc-dx), var(--cc-dy)) rotate(var(--cc-rot));
        opacity: 0;
    }
}

.cc-click-ripple {
    position: absolute;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    transform: scale(0);
    animation: ccRipple 0.6s ease-out forwards;
    pointer-events: none;
}

@keyframes ccRipple {
    to {
        transform: scale(12);
        opacity: 0;
    }
}

.animated-title.cc-title-spark {
    animation: titleReveal 0.6s ease, titleShimmer 4s linear infinite, ccTitleSpark 0.55s ease;
}

@keyframes ccTitleSpark {
    0%, 100% { filter: brightness(1); }
    40% { filter: brightness(1.4) drop-shadow(0 0 20px var(--logo-cyan)); }
}

@media (max-width: 768px) {
    .cc-theme-dock {
        left: auto;
        right: 8px;
        top: auto;
        bottom: 100px;
        transform: none;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-end;
        max-width: 120px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cc-welcome-curtain {
        display: none !important;
    }

    .cta-btn {
        animation: none;
    }

    .cc-confetti-piece {
        animation-duration: 0.01ms !important;
    }

    .lab-jukebox.jukebox-holo-pulse .frequency-bars span {
        animation: none;
    }
}

/* Mobile Home — fixed control (script injects on all pages) */
.cc-mobile-home-fab {
    display: none;
}

@media (max-width: 768px) {
    .cc-mobile-home-fab {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
        position: fixed;
        left: max(12px, env(safe-area-inset-left));
        bottom: max(12px, env(safe-area-inset-bottom));
        z-index: 9995;
        padding: 0.55rem 1rem;
        min-height: 44px;
        min-width: 44px;
        background: rgba(8, 18, 26, 0.92);
        border: 1px solid var(--logo-cyan);
        color: var(--logo-cyan);
        font-family: 'Outfit', sans-serif;
        font-size: 0.95rem;
        font-weight: 700;
        text-decoration: none;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45), 0 0 20px rgba(0, 242, 255, 0.15);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .cc-mobile-home-fab span:first-child {
        font-size: 1.25rem;
        line-height: 1;
    }

    .cc-mobile-home-text {
        line-height: 1;
    }

    body.nav-drawer-open .cc-mobile-home-fab {
        display: none;
    }

    body {
        padding-bottom: calc(4rem + env(safe-area-inset-bottom));
    }

    .custom-cursor,
    .cursor-trail {
        display: none !important;
    }

    #cursor-trail-canvas {
        display: none !important;
        pointer-events: none;
    }
}

@media (min-width: 769px) {
    .cc-mobile-home-fab {
        display: none !important;
    }
}

/* Terminal fireworks overlay */
body.station-fireworks::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 24010;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 242, 255, 0.25) 0%, transparent 35%),
        radial-gradient(circle at 80% 25%, rgba(168, 85, 247, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(255, 193, 7, 0.2) 0%, transparent 45%);
    animation: stationFireworkFlash 3s ease-out forwards;
}

@keyframes stationFireworkFlash {
    0% { opacity: 0; }
    15% { opacity: 1; }
    100% { opacity: 0; }
}

/* --- Free bookmarks download page --- */
.downloads-page main {
    padding-top: 100px;
    padding-bottom: 4rem;
}

.downloads-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
}

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

    .download-card-visual {
        aspect-ratio: 3 / 5;
        max-height: 70vh;
    }
}

.download-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--lab-border);
    background: rgba(8, 18, 26, 0.75);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.download-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 242, 255, 0.12);
}

.download-card-visual {
    aspect-ratio: 2 / 5;
    background: #050a10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.download-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.download-card-body h2 {
    font-size: 1.05rem;
    margin: 0;
    color: #fff;
}

.download-card-body p {
    font-size: 0.85rem;
    color: var(--body-blue);
    margin: 0;
    flex: 1;
}

/* --- Bookmark Studio (editor) --- */
.studio-page main {
    padding-top: 90px;
    padding-bottom: 3rem;
}

.studio-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
}

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

.studio-toolbar {
    padding: 1.5rem;
    border: 1px solid var(--lab-border);
    background: rgba(8, 18, 26, 0.85);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.studio-toolbar h3 {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--logo-cyan);
    margin: 0 0 0.5rem;
}

.studio-toolbar label {
    font-size: 0.75rem;
    color: var(--body-blue);
    display: block;
    margin-bottom: 0.35rem;
}

.studio-toolbar input[type="color"],
.studio-toolbar input[type="file"],
.studio-toolbar input[type="range"],
.studio-toolbar select {
    width: 100%;
    margin-bottom: 0.75rem;
}

.studio-toolbar .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.studio-canvas-wrap {
    border: 1px solid var(--lab-border);
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.03),
        rgba(255, 255, 255, 0.03) 8px,
        rgba(0, 0, 0, 0.08) 8px,
        rgba(0, 0, 0, 0.08) 16px
    );
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 520px;
    overflow: auto;
}

#studio-canvas {
    max-width: 100%;
    height: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    cursor: crosshair;
    background: #fff;
}

.studio-hint {
    font-size: 0.8rem;
    color: var(--body-blue);
    margin-top: 0.5rem;
    line-height: 1.4;
}


/* ============================================================
   SETTINGS SYSTEM
   ============================================================ */

/* ── Floating gear button ── */
.settings-fab {
    position: fixed;
    top: 5rem;
    left: 1.25rem;
    z-index: 2147483647;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(0, 242, 255, .35);
    background: rgba(13, 15, 17, .9);
    backdrop-filter: blur(12px);
    color: var(--logo-cyan);
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 18px rgba(0, 242, 255, .15), 0 4px 20px rgba(0,0,0,.5);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.settings-fab:hover {
    transform: rotate(45deg) scale(1.1);
    border-color: rgba(0, 242, 255, .7);
    box-shadow: 0 0 28px rgba(0, 242, 255, .35), 0 4px 24px rgba(0,0,0,.6);
}
.settings-fab.panel-open {
    transform: rotate(90deg);
    border-color: rgba(0, 242, 255, .7);
}

/* ── Backdrop overlay ── */
.settings-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483645;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}
.settings-overlay.open {
    opacity: 1;
    pointer-events: all;
}

/* ── Settings panel ── */
.settings-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 2147483646;
    width: min(360px, 100vw);
    height: 100%;
    background: rgba(11, 14, 18, .97);
    border-left: 1px solid rgba(0, 242, 255, .18);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
    overflow-y: auto;
}
.settings-panel.open {
    transform: translateX(0);
}

/* ── Panel header ── */
.settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.75rem 1.25rem;
    border-bottom: 1px solid rgba(0, 242, 255, .1);
    position: sticky;
    top: 0;
    background: rgba(11, 14, 18, .98);
    backdrop-filter: blur(8px);
    z-index: 1;
}
.settings-header-copy {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.settings-kicker {
    margin: 0;
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--logo-cyan);
    opacity: 0.7;
}
.settings-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: .02em;
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: 0;
}
.settings-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.05);
    color: rgba(255,255,255,.6);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s, border-color .2s;
}
.settings-close-btn:hover {
    background: rgba(255, 75, 110, .15);
    border-color: rgba(255, 75, 110, .4);
    color: #ff4b6e;
}

/* ── Panel body ── */
.settings-body {
    padding: 1.5rem 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.settings-overview-card {
    padding: 1rem;
    border: 1px solid rgba(0,242,255,.12);
    background: linear-gradient(180deg, rgba(0,242,255,.06), rgba(255,255,255,.02));
    border-radius: .9rem;
}
.settings-status-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.settings-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(0,242,255,.18);
    background: rgba(0,242,255,.08);
    color: #e8fcff;
    font-size: 0.78rem;
    font-weight: 600;
}
.settings-status-chip.is-off {
    border-color: rgba(255,255,255,.08);
    background: rgba(255,255,255,.04);
    color: rgba(255,255,255,.68);
}
.settings-status-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--logo-cyan);
    box-shadow: 0 0 10px rgba(0,242,255,.45);
    flex-shrink: 0;
}
.settings-status-chip.is-off .settings-status-dot {
    background: rgba(255,255,255,.35);
    box-shadow: none;
}
.settings-overview-note {
    margin: 0.9rem 0 0;
    color: rgba(255,255,255,.48);
    font-size: 0.78rem;
    line-height: 1.5;
}

/* ── Section ── */
.settings-section-label {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--logo-cyan);
    opacity: .65;
    margin-bottom: .75rem;
}
.settings-section-rows {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

/* ── Row ── */
.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .9rem 1rem;
    border-radius: .75rem;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
    transition: background .2s, border-color .2s;
    cursor: pointer;
}
.settings-row:hover {
    background: rgba(0, 242, 255, .05);
    border-color: rgba(0, 242, 255, .18);
}
.settings-row-left {
    display: flex;
    align-items: center;
    gap: .75rem;
}
.settings-row-icon {
    font-size: 1.2rem;
    width: 2rem;
    text-align: center;
}
.settings-row-info h4 {
    font-size: .9rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 .1rem;
    line-height: 1.2;
}
.settings-row-info p {
    font-size: .75rem;
    color: rgba(255,255,255,.4);
    margin: 0;
    line-height: 1.3;
}
.settings-quick-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}
.settings-quick-btn {
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.03);
    color: #f3fbff;
    padding: 0.85rem 0.9rem;
    border-radius: 0.75rem;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, border-color .2s, transform .15s;
}
.settings-quick-btn:hover {
    background: rgba(0,242,255,.07);
    border-color: rgba(0,242,255,.2);
    transform: translateY(-1px);
}
.settings-quick-btn:active {
    transform: scale(.98);
}

/* ── Toggle switch ── */
.settings-toggle {
    position: relative;
    width: 46px;
    height: 26px;
    flex-shrink: 0;
}
.settings-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.settings-toggle-track {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.15);
    transition: background .25s, border-color .25s, box-shadow .25s;
    cursor: pointer;
}
.settings-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    transition: transform .25s cubic-bezier(.4,0,.2,1), background .25s;
    pointer-events: none;
}
.settings-toggle input:checked ~ .settings-toggle-track {
    background: rgba(0, 242, 255, .25);
    border-color: rgba(0, 242, 255, .6);
    box-shadow: 0 0 10px rgba(0, 242, 255, .25);
}
.settings-toggle input:checked ~ .settings-toggle-thumb {
    transform: translateX(20px);
    background: var(--logo-cyan);
}

/* Thumb pop on toggle */
@keyframes togglePop {
    0%   { transform: translateX(20px) scale(1); }
    40%  { transform: translateX(20px) scale(1.35); }
    70%  { transform: translateX(20px) scale(.9); }
    100% { transform: translateX(20px) scale(1); }
}
.settings-toggle input:checked ~ .settings-toggle-thumb.popping {
    animation: togglePop .3s ease forwards;
}

/* ── Reset button ── */
.settings-reset-btn {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,.06);
}
.settings-reset-btn button {
    width: 100%;
    padding: .8rem;
    border-radius: .75rem;
    border: 1px solid rgba(255, 75, 110, .3);
    background: rgba(255, 75, 110, .07);
    color: #ff7a90;
    font-family: 'Outfit', sans-serif;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s, transform .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}
.settings-reset-btn button:hover {
    background: rgba(255, 75, 110, .15);
    border-color: rgba(255, 75, 110, .55);
    color: #ff4b6e;
}
.settings-reset-btn button:active { transform: scale(.97); }

/* ── Version badge ── */
.settings-version {
    text-align: center;
    font-size: .7rem;
    color: rgba(255,255,255,.18);
    padding: 1rem 0 .5rem;
    letter-spacing: .08em;
}
body.settings-open {
    overflow: hidden;
}

@media (max-width: 480px) {
    .settings-body {
        padding: 1.1rem 1rem 1.25rem;
    }
    .settings-quick-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Bookmark of the Day ── */
.botd-section {
    padding: var(--section-space) 0 3rem;
}
.botd-card {
    position: relative;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border: 1px solid var(--lab-border);
    overflow: hidden;
}
.botd-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #030608;
    background: var(--logo-cyan);
    padding: 4px 14px;
    border-radius: 0;
    margin-bottom: 1.5rem;
}
.botd-layout {
    display: grid;
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: center;
}
.botd-image-wrap {
    flex: 0 0 180px;
    height: 320px;
    overflow: hidden;
    border: 1px solid var(--lab-border);
}
.botd-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.botd-image-wrap:hover .botd-image {
    transform: scale(1.05);
}
.botd-info {
    flex: 1;
}
.botd-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.5rem;
}
.botd-desc {
    color: var(--body-blue);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}
.botd-date {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    letter-spacing: 1px;
    text-transform: uppercase;
}
@media (max-width: 768px) {
    .botd-layout { grid-template-columns: 1fr; }
    .botd-image-wrap { flex: none; width: 100%; height: 250px; }
}

/* ── Light mode ── */
body.cc-light-mode {
    filter: invert(1) hue-rotate(180deg);
}
body.cc-light-mode img,
body.cc-light-mode video,
body.cc-light-mode canvas,
body.cc-light-mode .settings-fab,
body.cc-light-mode .settings-panel,
body.cc-light-mode .settings-overlay {
    filter: invert(1) hue-rotate(180deg);
}

/* ── No animations ── */
body.cc-no-animations *,
body.cc-no-animations *::before,
body.cc-no-animations *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}

/* ─── Cosmos Runner Solar System Section ─── */
.cosmos-runner-section {
    padding: 4rem 0;
}
.cosmos-runner-frame {
    max-width: 880px;
    margin: 2rem auto 0;
    padding: 1.2rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 234, 255, 0.28);
    background: rgba(13, 15, 17, 0.55);
    box-shadow: 0 0 28px rgba(0, 234, 255, 0.14), 0 0 60px rgba(15, 92, 110, 0.18);
    text-align: center;
    position: relative;
}
.cosmos-runner-frame::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0, 234, 255, 0.4), transparent 40%, rgba(255, 75, 110, 0.25));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    opacity: 0.7;
}
.cosmos-runner-frame-inner {
    width: 100%;
    overflow-x: auto;
    display: flex;
    justify-content: center;
    border-radius: 10px;
}
.cosmos-runner-frame-inner iframe {
    display: block;
    border-radius: 8px;
    background: #000;
}
.cosmos-runner-credit {
    margin-top: 0.9rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.08em;
    font-family: 'Courier New', monospace;
}
.cosmos-runner-credit a {
    color: rgba(0, 234, 255, 0.85);
    text-decoration: none;
    border-bottom: 1px dotted rgba(0, 234, 255, 0.4);
}
.cosmos-runner-credit a:hover {
    color: #00eaff;
    border-bottom-color: rgba(0, 234, 255, 0.8);
}

@media (max-width: 700px) {
    .cosmos-runner-frame { padding: 0.8rem; max-width: 100%; }
    .cosmos-runner-frame-inner {
        /* iframe enforces min-width:600px; allow horizontal scroll on narrow viewports */
        justify-content: flex-start;
    }
}


/* ─── Station Access Panel (decorative Cloudflare Turnstile housing) ─── */
.station-access-panel {
    margin: 2rem auto 0;
    max-width: 360px;
    padding: 1rem 1.1rem 0.9rem;
    border: 1px solid rgba(0, 242, 255, 0.28);
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(0, 242, 255, 0.05), rgba(0, 242, 255, 0.01)),
        rgba(10, 14, 18, 0.65);
    box-shadow:
        inset 0 0 18px rgba(0, 242, 255, 0.06),
        0 0 22px rgba(0, 242, 255, 0.08);
    position: relative;
    overflow: hidden;
}
.station-access-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 242, 255, 0.7), transparent);
    box-shadow: 0 0 6px rgba(0, 242, 255, 0.5);
}
.station-access-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    color: rgba(0, 242, 255, 0.7);
    margin-bottom: 0.85rem;
    text-shadow: 0 0 4px rgba(0, 242, 255, 0.35);
}
.station-access-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00f2ff;
    box-shadow: 0 0 8px rgba(0, 242, 255, 0.8);
    animation: stationAccessPulse 2s ease-in-out infinite;
}
@keyframes stationAccessPulse {
    0%, 100% { opacity: 0.45; transform: scale(0.85); }
    50%      { opacity: 1;    transform: scale(1.15); }
}
.station-access-panel .cf-turnstile {
    display: flex;
    justify-content: center;
}
