:root {
    --bg-primary: #0a0620;
    /* Cosmic Royal Deep Violet */
    --bg-secondary: #110b30;
    /* Velvet Amethyst */
    --bg-tertiary: #1b1248;
    /* High-tech Indigo */
    --glass-bg: rgba(14, 9, 39, 0.65);
    /* Elegant glass base */
    --glass-border: rgba(255, 255, 255, 0.08);
    /* Sophisticated slim boundary */

    /* Harmonious curated neon-luxe accents */
    --color-primary: #ffd700;
    /* Gilded Sovereign Gold */
    --color-secondary: #ff5e62;
    /* Radiant Sunset Coral */
    --color-accent: #00ffc8;
    /* Bright Electric Mint-Cyan */
    --color-neon-blue: #00f2fe;
    /* Cyber Neon Ice-Blue */
    --color-text-white: #ffffff;
    --color-text-muted: rgba(225, 230, 255, 0.65);
    /* Pale silver-blue label copy */

    /* Premium High-End Font Combinations */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-display: 'Cormorant Garamond', serif;
    /* Elegant serif for accent/display typography */
}

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

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: var(--font-body);
    background: radial-gradient(circle at 50% 50%, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    color: var(--color-text-white);
}

#canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    z-index: 10;
    -webkit-overflow-scrolling: touch;
    background: rgba(6, 4, 18, 0.88);
    /* Page entry animation */
    animation: pageEnter 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

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

/* Page exit transition */
.overlay.page-exit {
    animation: pageExit 0.4s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes pageExit {
    to {
        opacity: 0;
        transform: translateY(-12px) scale(0.99);
    }
}



.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Directional scroll reveal variants */
.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-scale {
    opacity: 0;
    transform: scale(0.88);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-scale.visible {
    opacity: 1;
    transform: scale(1);
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(9, 6, 28, 0.65);
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.08);
    transition: all 0.4s ease;
}

.navbar.scrolled {
    padding: 14px 50px;
    background: rgba(9, 6, 28, 0.88);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-icon {
    font-size: 1.5rem;
    animation: logoPulse 2s infinite;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.85));
    background: none;
    -webkit-text-fill-color: initial;
}

@keyframes logoPulse {

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

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    color: var(--color-text-muted);
    font-family: var(--font-body);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    transition: color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
    letter-spacing: 0.5px;
    padding: 6px 16px;
    border-radius: 30px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 2px;
}

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

.nav-links a.active {
    color: var(--color-primary);
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.08), inset 0 0 12px rgba(255, 215, 0, 0.04);
}

.nav-links a:hover::after {
    width: 80%;
}

.nav-links a.active::after {
    width: 60%;
}

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

.hero-content {
    background: var(--glass-bg);
    padding: 60px 80px;
    border-radius: 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65),
        0 0 60px rgba(255, 94, 98, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.4), transparent);
    animation: shimmerLine 3s ease-in-out infinite alternate;
}

@keyframes shimmerLine {
    0% {
        opacity: 0.3;
        left: 20%;
        right: 20%;
    }

    100% {
        opacity: 0.8;
        left: 5%;
        right: 5%;
    }
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.25);
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.hero-title span {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    position: relative;
    animation: pulseGlow 3s infinite alternate;
}

.hero-title span::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 4px;
    animation: underlineShimmer 2s ease-in-out infinite alternate;
}

@keyframes underlineShimmer {
    0% {
        opacity: 0.4;
        transform: scaleX(0.7);
    }

    100% {
        opacity: 1;
        transform: scaleX(1);
    }
}

@keyframes pulseGlow {
    0% {
        filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.35));
    }

    100% {
        filter: drop-shadow(0 0 35px rgba(255, 94, 98, 0.6));
    }
}

.hero-desc {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    font-weight: 400;
    font-style: italic;
}

.cta-btn {
    display: inline-block;
    position: relative;
    font-family: var(--font-heading);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: #060412;
    border: none;
    padding: 18px 50px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
    overflow: hidden;
}

.btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.45) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.cta-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 50px rgba(255, 94, 98, 0.35);
}

.cta-btn:hover .btn-glow {
    opacity: 1;
}

.cta-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.cta-btn.outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid rgba(255, 215, 0, 0.5);
    box-shadow: none;
}

.cta-btn.outline:hover {
    background: rgba(255, 215, 0, 0.1);
    color: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.2),
        inset 0 0 30px rgba(255, 215, 0, 0.05);
}

.scroll-indicator {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--color-text-muted);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid rgba(255, 215, 0, 0.5);
    border-bottom: 2px solid rgba(255, 215, 0, 0.5);
    transform: rotate(45deg);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {

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

    50% {
        transform: rotate(45deg) translateY(8px);
        opacity: 0.4;
    }
}

.section-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}

.heading-text {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-text-white) 0%, var(--color-text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    position: relative;
}

.heading-underline {
    display: block;
    width: 0;
    height: 3px;
    margin-top: 16px;
    border-radius: 3px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible .heading-underline {
    width: 120px;
}

.section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 120px 50px;
    position: relative;
    background: transparent;
}

.section.alternate {
    background: transparent;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.15), transparent);
}

.container {
    max-width: 1100px;
    width: 100%;
    text-align: center;
}

.section p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.85;
    margin-bottom: 28px;
}

.text-content p {
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    font-family: var(--font-display);
    font-size: 1.3rem;
    line-height: 1.9;
}

.section-subtitle {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.55);
    max-width: 650px;
    margin-inline: auto;
    margin-bottom: 50px;
    font-style: italic;
}


.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.stat-card {
    background: var(--glass-bg);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 20px;
    padding: 45px 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.stat-card:hover {
    border-color: rgba(255, 215, 0, 0.35);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 215, 0, 0.05);
}

.stat-card:hover .stat-glow {
    opacity: 1;
}

.stat-glow {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.15), transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.stat-number {
    font-family: 'Space Mono', monospace;
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--color-secondary);
    margin-bottom: 12px;
    letter-spacing: -1px;
    text-shadow: 0 0 20px rgba(255, 94, 98, 0.3);
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    font-weight: 400;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    perspective: 1200px;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 45px 30px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-primary), var(--color-secondary), transparent);
    transform: scaleX(0);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    right: 0;
    bottom: 0;
    width: 100%;
    background: linear-gradient(105deg,
            transparent 40%,
            rgba(255, 215, 0, 0.02) 45%,
            rgba(255, 215, 0, 0.05) 50%,
            rgba(255, 215, 0, 0.02) 55%,
            transparent 60%);
    transition: left 0.7s ease;
    pointer-events: none;
}

.card:hover {
    background: rgba(0, 255, 192, 0.05);
    border-color: rgba(0, 255, 192, 0.4);
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(0, 255, 200, 0.08);
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover .card-shine {
    left: 200%;
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 22px;
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0 0 12px rgba(0, 255, 200, 0.3));
}

.card:hover .card-icon {
    transform: scale(1.15) translateY(-10px);
    animation: iconBounce 1.5s ease infinite alternate;
}

@keyframes iconBounce {
    0% {
        transform: scale(1.15) translateY(-10px);
        filter: drop-shadow(0 0 12px rgba(0, 255, 200, 0.3));
    }

    100% {
        transform: scale(1.25) translateY(-15px);
        filter: drop-shadow(0 0 25px rgba(0, 255, 200, 0.8));
    }
}

.card h3 {
    font-size: 1.5rem;
    color: #00ffc8;
    margin-bottom: 14px;
    font-weight: 800;
    position: relative;
    display: inline-block;
}


.card h3::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: rgba(0, 255, 200, 0.5);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.card:hover h3::after {
    width: 100%;
}

.card p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    margin-bottom: 0;
}


.action-cards {
    gap: 24px !important;
}

.action-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 35px 30px;
    border-left: 4px solid rgba(0, 255, 200, 0.4);
    text-align: left;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.action-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(0, 255, 200, 0.1);
    position: absolute;
    top: 15px;
    right: 20px;
    line-height: 1;
    transition: color 0.3s;
}

.action-card:hover .action-number {
    color: rgba(0, 255, 200, 0.25);
}

.action-card h3 {
    color: #fff;
    font-size: 1.35rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.action-card p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    margin-bottom: 0;
}

.action-card:hover {
    transform: translateX(8px);
    background: rgba(0, 255, 200, 0.04);
    border-left-color: #00ffc8;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}


.pledge-container {
    margin-top: 60px;
}

.hidden-msg {
    display: none;
    margin-top: 25px;
    font-size: 1.3rem !important;
    font-weight: 700;
    color: #00ffc8 !important;
    animation: pledgeReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.pledge-emoji {
    font-size: 1.6rem;
    margin-right: 8px;
    display: inline-block;
    animation: pledgeEmoji 0.6s 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes pledgeReveal {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.95);
    }

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

@keyframes pledgeEmoji {
    from {
        transform: scale(0) rotate(-30deg);
    }

    to {
        transform: scale(1) rotate(0deg);
    }
}


.footer {
    padding: 40px 50px 30px;
    text-align: center;
    background: rgba(0, 0, 0, 0.95);
    border-top: none;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), var(--color-accent), var(--color-secondary), transparent);
    animation: footerBorderSlide 6s linear infinite;
}

@keyframes footerBorderSlide {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0%);
    }
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
}

.footer-nav a {
    text-decoration: none;
    font-size: 1.5rem;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
    display: inline-block;
    filter: grayscale(0.5) brightness(0.7);
}

.footer-nav a:hover {
    transform: translateY(-4px) scale(1.15);
    filter: grayscale(0) brightness(1) drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
}




.theme-amber {
    background: transparent;
}

.theme-amber::before {
    background: linear-gradient(90deg, transparent, rgba(255, 159, 67, 0.25), transparent);
}

.theme-amber .heading-text {
    color: #ff9f43;
}

.theme-amber .heading-underline {
    background: linear-gradient(90deg, transparent, #ff9f43, rgba(255, 180, 100, 0.7), #ff9f43, transparent);
}


.theme-blue {
    background: transparent;
}

.theme-blue::before {
    background: linear-gradient(90deg, transparent, rgba(79, 172, 254, 0.25), transparent);
}

.theme-blue .heading-text {
    color: #4facfe;
}

.theme-blue .heading-underline {
    background: linear-gradient(90deg, transparent, #4facfe, rgba(100, 180, 255, 0.7), #4facfe, transparent);
}

.theme-blue .stat-number {
    color: #4facfe;
    text-shadow: 0 0 20px rgba(79, 172, 254, 0.4);
}

.theme-blue .stat-card {
    border-color: rgba(79, 172, 254, 0.12);
}

.theme-blue .stat-card:hover {
    border-color: rgba(79, 172, 254, 0.4);
}

.theme-blue .stat-glow {
    background: radial-gradient(circle, rgba(79, 172, 254, 0.2), transparent 70%);
}


.theme-green {
    background: transparent;
}

.theme-green::before {
    background: linear-gradient(90deg, transparent, rgba(0, 230, 118, 0.25), transparent);
}

.theme-green .heading-text {
    color: #00e676;
}

.theme-green .heading-underline {
    background: linear-gradient(90deg, transparent, #00e676, rgba(100, 255, 180, 0.7), #00e676, transparent);
}

.theme-green .card {
    border-color: rgba(0, 230, 118, 0.12);
}

.theme-green .card:hover {
    border-color: rgba(0, 230, 118, 0.45);
    background: rgba(0, 230, 118, 0.05);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(0, 230, 118, 0.08);
}

.theme-green .card::before {
    background: linear-gradient(90deg, transparent, #00e676, rgba(100, 255, 180, 0.8), transparent);
}

.theme-green .card h3 {
    color: #00e676;
}

.theme-green .card h3::after {
    background: rgba(0, 230, 118, 0.5);
}

.theme-green .card-shine {
    background: linear-gradient(105deg,
            transparent 40%,
            rgba(0, 230, 118, 0.03) 45%,
            rgba(0, 230, 118, 0.06) 50%,
            rgba(0, 230, 118, 0.03) 55%,
            transparent 60%);
}


.theme-cyan {
    background: transparent;
}

.theme-cyan::before {
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.25), transparent);
}

.theme-cyan .heading-text {
    color: #00e5ff;
}

.theme-cyan .heading-underline {
    background: linear-gradient(90deg, transparent, #00e5ff, rgba(100, 240, 255, 0.7), #00e5ff, transparent);
}

.theme-cyan .action-card {
    border-left-color: rgba(0, 229, 255, 0.4);
}

.theme-cyan .action-card:hover {
    border-left-color: #00e5ff;
    background: rgba(0, 229, 255, 0.04);
}

.theme-cyan .action-card h3 {
    color: #ffffff;
}

.theme-cyan .action-number {
    color: rgba(0, 229, 255, 0.12);
}

.theme-cyan .action-card:hover .action-number {
    color: rgba(0, 229, 255, 0.25);
}

.theme-cyan .cta-btn.outline {
    color: #00e5ff;
    border-color: rgba(0, 229, 255, 0.5);
}

.theme-cyan .cta-btn.outline:hover {
    background: rgba(0, 229, 255, 0.1);
    border-color: #00e5ff;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.2),
        inset 0 0 30px rgba(0, 229, 255, 0.05);
}

.theme-cyan .hidden-msg {
    color: #00e5ff !important;
}


@media (max-width: 768px) {
    .navbar {
        padding: 16px 20px;
        flex-direction: column;
        gap: 12px;
    }

    .navbar.scrolled {
        padding: 12px 20px;
    }

    .nav-links {
        gap: 18px;
        font-size: 0.85rem;
    }

    .hero-content {
        padding: 40px 25px;
    }

    .hero-title {
        letter-spacing: -1px;
    }

    .section {
        padding: 100px 25px;
    }

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

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stat-card {
        padding: 30px 15px;
    }

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

    .action-card:hover {
        transform: translateY(-5px);
    }

    .scroll-indicator {
        display: none;
    }
}

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


.stat-card.toxic-stat {
    border-color: rgba(57, 255, 20, 0.2);
}

.stat-card.toxic-stat:hover {
    border-color: rgba(57, 255, 20, 0.6);
    box-shadow: 0 20px 40px rgba(57, 255, 20, 0.15);
}

.stat-number.toxic {
    color: #39ff14;
    text-shadow: 0 0 20px rgba(57, 255, 20, 0.5);
}

.stat-glow.toxic-glow {
    background: radial-gradient(circle, rgba(57, 255, 20, 0.3), transparent 70%);
}


.animated-gradient-text {
    background: linear-gradient(270deg, #b44fff, #ff4f8b, #00ffc8, #b44fff);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

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

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

.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    perspective: 1200px;
}

.portal-card {
    display: block;
    text-decoration: none;
    background: rgba(20, 20, 25, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.portal-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2;
    transition: all 0.6s ease;
    z-index: 1;
}

.portal-content {
    position: relative;
    padding: 50px 30px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.portal-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 255, 255, 0.1);
}

.portal-card:hover .portal-bg {
    opacity: 0.8;
    transform: scale(1.1);
}

.portal-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.portal-card:hover .portal-icon {
    transform: scale(1.2) translateY(-10px);
}

.portal-content h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 800;
}

.portal-content p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 25px;
    line-height: 1.6;
}

.portal-btn {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: #fff;
    font-weight: 600;
    transition: all 0.3s ease;
}

.portal-card:hover .portal-btn {
    background: #fff;
    color: #000;
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}


.cross-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.cross-nav-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.cross-nav-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 255, 200, 0.5);
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.cross-icon {
    font-size: 2.5rem;
    transition: transform 0.3s ease;
}

.cross-nav-card:hover .cross-icon {
    transform: scale(1.2);
}

.cross-nav-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
}


.theme-sim {
    background: transparent;
}

.theme-sim .heading-text {
    color: #ff007f;
}

.theme-sim .heading-underline {
    background: linear-gradient(90deg, transparent, #ff007f, #b44fff, transparent);
}

.sim-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.sim-tab {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sim-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.sim-tab.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ff4f8b;
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 79, 139, 0.3);
}

.sim-container {
    transition: opacity 0.5s ease;
}

.sim-container.hidden {
    display: none;
    opacity: 0;
}


.vampire-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.vampire-item {
    background: rgba(20, 15, 25, 0.8);
    border: 1px solid rgba(255, 79, 139, 0.2);
    border-radius: 20px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: border-color 0.3s ease;
}

.vampire-item.off {
    border-color: rgba(255, 255, 255, 0.1);
}

.v-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.vampire-item h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.wire-container {
    width: 4px;
    height: 60px;
    background: #222;
    margin: 10px 0 20px 0;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.wire.glowing {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ff4f8b;
    box-shadow: 0 0 10px #ff4f8b, 0 0 20px #ff4f8b;
    animation: pulseWire 1s infinite alternate;
}

@keyframes pulseWire {
    0% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

button.switch {
    background: #ff4f8b;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

button.switch.off {
    background: #333;
    color: #888;
}

.wasted-watts-display {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #ff4f8b;
    border-radius: 20px;
    padding: 30px;
    display: inline-block;
    box-shadow: 0 0 40px rgba(255, 79, 139, 0.2);
    min-width: 300px;
}

.wasted-label {
    font-size: 1.2rem;
    color: #ff4f8b;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.wasted-number {
    font-size: 4rem;
    font-weight: 900;
    color: #fff;
    font-variant-numeric: tabular-nums;
}


.gen-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
    align-items: center;
}

.slider-group {
    margin-bottom: 30px;
    text-align: left;
}

.slider-group label {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.slider-group input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    position: relative;
    z-index: 10;
    margin: 8px 0;
    transition: background 0.3s ease;
}

.slider-group input[type="range"]:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Webkit (Chrome, Edge, Safari) thumb */
.slider-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #00ffc8;
    cursor: grab;
    border: 2px solid rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 12px rgba(0, 255, 200, 0.5), 0 2px 6px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    z-index: 20;
}

.slider-group input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(0, 255, 200, 0.7), 0 2px 8px rgba(0, 0, 0, 0.5);
}

.slider-group input[type="range"]:active::-webkit-slider-thumb {
    cursor: grabbing;
    transform: scale(1.15);
    box-shadow: 0 0 25px rgba(0, 255, 200, 0.8), 0 2px 10px rgba(0, 0, 0, 0.6);
}

/* Firefox thumb */
.slider-group input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #00ffc8;
    cursor: grab;
    border: 2px solid rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 12px rgba(0, 255, 200, 0.5), 0 2px 6px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.slider-group input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(0, 255, 200, 0.7), 0 2px 8px rgba(0, 0, 0, 0.5);
}

.slider-group input[type="range"]:active::-moz-range-thumb {
    cursor: grabbing;
}

/* Firefox track */
.slider-group input[type="range"]::-moz-range-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    border: none;
}

/* Cut-off warning banner */
.cutoff-warning {
    margin-top: 8px;
    padding: 8px 16px;
    background: rgba(255, 56, 56, 0.12);
    border: 1px solid rgba(255, 56, 56, 0.4);
    border-radius: 10px;
    color: #ff5252;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    animation: cutoffPulse 1.5s infinite alternate ease-in-out;
    display: none;
    letter-spacing: 0.3px;
}

.cutoff-warning.visible {
    display: block;
}

@keyframes cutoffPulse {
    0% {
        box-shadow: 0 0 8px rgba(255, 56, 56, 0.15);
        border-color: rgba(255, 56, 56, 0.3);
    }
    100% {
        box-shadow: 0 0 18px rgba(255, 56, 56, 0.35);
        border-color: rgba(255, 56, 56, 0.6);
    }
}

.gen-visuals {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.visual-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 255, 200, 0.1);
    border-radius: 16px;
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.sun {
    font-size: 4rem;
    transition: opacity 0.2s, filter 0.2s;
}

.solar-panel {
    position: absolute;
    bottom: 20px;
    width: 80px;
    height: 40px;
    background: linear-gradient(135deg, #0d47a1, #1976d2);
    border: 2px solid #90caf9;
    border-radius: 4px;
    transform: perspective(100px) rotateX(20deg);
}

.windmill {
    position: relative;
    width: 60px;
    height: 100px;
}

.pole {
    width: 6px;
    height: 60px;
    background: #ccc;
    position: absolute;
    bottom: 0;
    left: 27px;
}

.blades {
    position: absolute;
    top: 10px;
    left: 30px;
    width: 0;
    height: 0;
    animation: spinWindmill linear infinite;
}

.blade {
    position: absolute;
    bottom: 0;
    left: -3px;
    width: 6px;
    height: 40px;
    background: #fff;
    transform-origin: bottom center;
    border-radius: 3px 3px 0 0;
}

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

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

.timeline-dashboard {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 80px;
}

.chart-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 255, 200, 0.1);
    border-radius: 20px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chart-box h3 {
    margin-bottom: 40px;
    font-size: 1.4rem;
    color: #4facfe;
    text-align: center;
}

.pie-wrapper {
    position: relative;
    width: 250px;
    height: 250px;
    margin-bottom: 40px;
}

.pie-chart {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(var(--segments));
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.pie-chart::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130px;
    height: 130px;
    background: #0d0926;
    /* Matches the container secondary theme beautifully! */
    border-radius: 50%;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
}

.chart-legend {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legend-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Space Mono', monospace;
}

.legend-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(8px);
}

.legend-item.dimmed {
    opacity: 0.18;
    filter: blur(0.5px);
}

.legend-color-box {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.color-dot {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    background: var(--c);
}

.legend-value {
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

/* ========================================
   SIMULATION LAB UI
   ======================================== */
.sim-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.sim-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sim-tab.active,
.sim-tab:hover {
    background: rgba(0, 255, 200, 0.15);
    border-color: #00ffc8;
    color: #00ffc8;
    box-shadow: 0 0 20px rgba(0, 255, 200, 0.2);
}

/* SMART HOME */
.smart-home-dashboard {
    background: transparent;
    border: 1px solid rgba(255, 79, 139, 0.2);
    border-radius: 30px;
    padding: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.radar-container {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 79, 139, 0.1) 0%, rgba(5, 5, 10, 1) 70%);
    border: 2px solid rgba(255, 79, 139, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 50px rgba(255, 79, 139, 0.2);
    position: relative;
    overflow: hidden;
}

.radar-container::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 50%;
    top: 0;
    right: 0;
    transform-origin: bottom left;
    background: linear-gradient(45deg, transparent, rgba(255, 79, 139, 0.5));
    animation: radarSweep 4s infinite linear;
}

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

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

.radar-dial {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.radar-value {
    font-size: 4rem;
    font-weight: 900;
    color: #ff4f8b;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 20px rgba(255, 79, 139, 0.5);
    transition: all 0.5s ease;
}

.radar-unit {
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.devices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    width: 100%;
}

.device-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
    position: relative;
}

.device-card.on {
    border-color: rgba(255, 79, 139, 0.4);
    box-shadow: 0 0 30px rgba(255, 79, 139, 0.15);
}

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

.device-info h4 {
    margin-bottom: 5px;
    color: #fff;
}

.device-info p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
}

.ios-toggle.on {
    background: #ff4f8b;
}

.ios-toggle.on::after {
    transform: translateX(20px);
}

/* SMART HOME BLUEPRINT V2 */
.blueprint-container {
    position: relative;
    width: 320px;
    height: 320px;
    background: transparent;
    border: 1px solid rgba(255, 79, 139, 0.15);
    border-radius: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.core-unit {
    width: 100px;
    height: 100px;
    background: #05050a;
    border: 3px solid #ff4f8b;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 30px rgba(255, 79, 139, 0.3);
    z-index: 5;
    position: relative;
}

.core-unit::before {
    content: '';
    position: absolute;
    width: 140%;
    height: 140%;
    border: 1px dashed rgba(255, 79, 139, 0.3);
    border-radius: 30px;
    animation: spin 10s infinite linear;
}

.power-trace {
    position: absolute;
    background: rgba(255, 79, 139, 0.1);
    transition: all 0.5s ease;
    z-index: 1;
}

.power-trace.active {
    background: #ff4f8b;
    box-shadow: 0 0 15px #ff4f8b;
}

/* Specific trace positions */
.trace-1 {
    width: 2px;
    height: 110px;
    bottom: 50%;
    left: 50%;
    transform: translateX(-50%);
}

.trace-2 {
    width: 110px;
    height: 2px;
    top: 50%;
    left: 50%;
}

.trace-3 {
    width: 110px;
    height: 2px;
    top: 50%;
    right: 50%;
}

/* TURBINE LAB */
.turbine-lab {
    position: relative;
    background: transparent;
    border-radius: 30px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: hidden;
    padding-bottom: 50px;
}

.wind-trails-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.wind-trail {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: windDash 2s infinite linear;
}

@keyframes windDash {
    from {
        transform: translateX(-200px);
    }

    to {
        transform: translateX(100vw);
    }
}

.turbine-massive {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 20px rgba(0, 255, 200, 0.5));
}

.t-pole {
    width: 12px;
    height: 250px;
    background: linear-gradient(90deg, #ddd, #fff, #999);
    margin: 0 auto;
    border-radius: 6px 6px 0 0;
}

.t-blades {
    position: absolute;
    top: 10px;
    left: 50%;
    margin-left: -5px;
    width: 10px;
    height: 10px;
    animation: spinWindmill 3s infinite linear;
    transform-origin: center center;
}

.t-blade {
    position: absolute;
    bottom: 50%;
    left: 50%;
    width: 8px;
    height: 120px;
    background: linear-gradient(90deg, #e0e0e0, #ffffff);
    transform-origin: bottom center;
    border-radius: 4px 4px 50% 50%;
    margin-left: -4px;
}

.t-control-panel {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid rgba(0, 255, 200, 0.2);
    z-index: 5;
}

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

.t-output {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
}

.t-output span {
    color: #00ffc8;
    font-size: 2.5rem;
    font-variant-numeric: tabular-nums;
}

/* GRID BUILDER */
.grid-builder {
    background: transparent;
    border-radius: 30px;
    padding: 40px;
    border: 1px solid rgba(255, 159, 67, 0.2);
}

.meters-row {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
}

.gb-meter {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.gb-meter h4 {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.gb-number {
    font-size: 3rem;
    font-weight: 900;
    transition: color 0.5s;
}

.energy-meter .gb-number {
    color: #00ffc8;
    text-shadow: 0 0 20px rgba(0, 255, 200, 0.3);
}

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

.b-btn {
    padding: 15px 30px;
    border-radius: 12px;
    border: none;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s, filter 0.2s;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.b-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.2);
}

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

.b-btn.coal {
    background: #333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.b-btn.gas {
    background: #ff9f43;
    box-shadow: 0 5px 15px rgba(255, 159, 67, 0.3);
}

.b-btn.solar {
    background: #00e676;
    box-shadow: 0 5px 15px rgba(0, 230, 118, 0.3);
}

/* ANIMATED PIE CHARTS */
@property --p {
    syntax: '<number>';
    inherits: true;
    initial-value: 0;
}

.pie-chart {
    --mask: radial-gradient(transparent 55%, black 56%);
    --reveal: conic-gradient(black calc(var(--p) * 360deg), transparent 0deg);
    -webkit-mask-image: var(--mask), var(--reveal);
    mask-image: var(--mask), var(--reveal);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
    transition: --p 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.pie-chart.animated {
    --p: 1;
    /* Trigger percentage 100% of the calculated segments */
}

/* RENEWABLE LAB TOGGLE & SOLAR (Added from Refinement) */
.source-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 30px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tgl-btn {
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    transition: all 0.3s;
}

.tgl-btn.active {
    background: #00ffc8;
    color: #000;
    box-shadow: 0 0 15px rgba(0, 255, 200, 0.4);
}

.solar-massive {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.s-panel-array {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    transform: perspective(600px) rotateX(45deg);
    transition: filter 0.3s;
}

.s-panel {
    width: 60px;
    height: 100px;
    background: linear-gradient(135deg, #0d47a1, #1976d2);
    border: 2px solid #90caf9;
    border-radius: 4px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.s-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: skewX(-20deg);
    animation: solarShine 4s infinite;
}

@keyframes solarShine {

    0%,
    50% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

/* VISUAL CITY BUILDER (Added from Refinement) */
.city-builder-grid {
    margin-top: 40px;
    height: 180px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02));
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 20px 20px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
}

.cb-building {
    font-size: 3rem;
    animation: dropIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transform-origin: bottom center;
    filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.5));
    position: relative;
    z-index: 2;
}

@keyframes dropIn {
    0% {
        transform: translateY(-50px) scale(0.5);
        opacity: 0;
    }

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

.co2-cloud-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.toxic-smoke-cloud {
    position: absolute;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(100, 100, 100, 0.8) 0%, rgba(50, 50, 50, 0) 70%);
    border-radius: 50%;
    bottom: 50px;
    animation: smokeFloat 6s forwards ease-out;
    mix-blend-mode: multiply;
}

.toxic-smoke-cloud.oil {
    background: radial-gradient(circle, rgba(60, 30, 80, 0.8) 0%, rgba(30, 10, 40, 0) 70%);
}

@keyframes smokeFloat {
    0% {
        transform: translateY(0) scale(0.5);
        opacity: 0.8;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(-150px) translateX(30px) scale(3);
        opacity: 0;
    }
}

/* ==========================================================================
   STARTING SPLASH SCREEN & 3D LOADER STYLES
   ========================================================================== */

#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100000;
    background: radial-gradient(circle at center, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Floating, beautifully blurred gas nebulae in background */
#splash-screen::before {
    content: '';
    position: absolute;
    top: 25%;
    left: 20%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, rgba(255, 94, 98, 0.12) 0%, rgba(255, 215, 0, 0.06) 45%, transparent 70%);
    filter: blur(80px);
    z-index: 0;
    animation: nebulaFloat 20s infinite alternate ease-in-out;
    pointer-events: none;
    will-change: transform;
}

#splash-screen::after {
    content: '';
    position: absolute;
    bottom: 20%;
    right: 15%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.12) 0%, rgba(180, 0, 255, 0.06) 50%, transparent 70%);
    filter: blur(70px);
    z-index: 0;
    animation: nebulaFloatAlt 16s infinite alternate ease-in-out;
    pointer-events: none;
    will-change: transform;
}

@keyframes nebulaFloat {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    50% {
        transform: translate(6%, 8%) scale(1.15) rotate(180deg);
    }

    100% {
        transform: translate(-4%, -6%) scale(0.9) rotate(360deg);
    }
}

@keyframes nebulaFloatAlt {
    0% {
        transform: translate(0, 0) scale(1.1) rotate(0deg);
    }

    50% {
        transform: translate(-8%, -5%) scale(0.9) rotate(-180deg);
    }

    100% {
        transform: translate(5%, 6%) scale(1.05) rotate(-360deg);
    }
}

#splash-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

#splash-ui {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    max-width: 850px;
    width: 100%;
    height: 100vh;
    box-sizing: border-box;
}

#splash-emoji {
    font-size: clamp(6.5rem, 15vw, 10.5rem);
    line-height: 1;
    margin-bottom: 25px;
    text-shadow: 0 0 35px rgba(255, 215, 0, 0.85);
    /* Fast hardware-accelerated text shadow instead of heavy outline drop-shadow */
    z-index: 15;
    will-change: transform, opacity;
    user-select: none;
    display: inline-block;
    transform: scale(0);
    position: relative;
    /* Position reference for absolute child auras */
}

/* Ki Energy Aura Styles - Super Lightweight & Optimized */
.splash-aura {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.98) 0%, rgba(240, 248, 255, 0.5) 25%, rgba(215, 235, 255, 0.1) 45%, transparent 65%);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.5), inset 0 0 15px rgba(255, 255, 255, 0.3);
    /* Cheap GPU box-shadow */
    z-index: -1;
    pointer-events: none;
    opacity: 0.95;
    will-change: transform, opacity;
    animation: uiAuraCycle 0.95s infinite ease-in-out;
}

@keyframes uiAuraCycle {
    0% {
        transform: translate(-50%, -50%) scale(0.97) translateY(0);
        opacity: 0.8;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.06) translateY(-4px);
        opacity: 0.95;
    }

    100% {
        transform: translate(-50%, -50%) scale(0.97) translateY(0);
        opacity: 0.8;
    }
}

.splash-text {
    opacity: 0;
    transform: translateY(30px);
}

#splash-title {
    font-size: clamp(2.2rem, 5.5vw, 4.2rem);
    font-weight: 900;
    letter-spacing: 5px;
    margin-bottom: 20px;
    line-height: 1.15;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffffff 20%, var(--color-primary) 55%, var(--color-secondary) 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.3));
    font-family: var(--font-heading);
}

#splash-subtitle {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    color: var(--color-text-muted);
    max-width: 600px;
    margin-bottom: 45px;
    font-weight: 300;
    letter-spacing: 1px;
    line-height: 1.6;
}

#splash-btn {
    font-family: var(--font-heading);
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border: none;
    border-radius: 50px;
    padding: 18px 50px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #060412;
    cursor: pointer;
    text-transform: uppercase;
    pointer-events: auto;
    box-shadow: 0 0 35px rgba(255, 94, 98, 0.3);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

#splash-btn:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 0 45px rgba(255, 215, 0, 0.55);
}

.splash-btn-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

#splash-btn:hover .splash-btn-glow {
    opacity: 1;
}

/* Skip/Played Session State */
.splash-played #splash-screen {
    display: none !important;
}

/* Carbon City Grid Status Banner Alerts */
.gb-status-banner {
    width: 100%;
    margin: 20px 0;
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    font-family: 'Space Mono', monospace;
    font-size: 0.95rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    color: rgba(255, 255, 255, 0.7);
}

.gb-status-banner.warning {
    background: rgba(255, 159, 67, 0.05);
    border-color: rgba(255, 159, 67, 0.3);
    color: #ff9f43;
    box-shadow: 0 0 15px rgba(255, 159, 67, 0.1);
}

.gb-status-banner.critical {
    background: rgba(255, 79, 139, 0.08);
    border-color: rgba(255, 79, 139, 0.4);
    color: #ff4f8b;
    box-shadow: 0 0 20px rgba(255, 79, 139, 0.15);
    animation: dangerPulse 2s infinite alternate ease-in-out;
}

.gb-status-banner.fatal {
    background: rgba(255, 0, 0, 0.12);
    border-color: #ff3838;
    color: #ff3838;
    font-weight: bold;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.3);
    animation: criticalHazardPulse 1s infinite alternate ease-in-out;
}

@keyframes dangerPulse {
    0% {
        border-color: rgba(255, 79, 139, 0.3);
        box-shadow: 0 0 10px rgba(255, 79, 139, 0.1);
    }

    100% {
        border-color: rgba(255, 79, 139, 0.6);
        box-shadow: 0 0 25px rgba(255, 79, 139, 0.3);
    }
}

@keyframes criticalHazardPulse {
    0% {
        transform: scale(1);
        border-color: rgba(255, 0, 0, 0.5);
    }

    100% {
        transform: scale(1.015);
        border-color: #ff3838;
        box-shadow: 0 0 40px rgba(255, 0, 0, 0.45);
    }
}

/* ==========================================================================
   SCROLL PROGRESS BAR
   ========================================================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-secondary));
    z-index: 10000;
    transition: width 0.08s linear;
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
    will-change: width;
}

/* ==========================================================================
   AMBIENT FLOATING PARTICLES (CSS-only, zero JS cost)
   ========================================================================== */
.ambient-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

.ambient-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.35);
    will-change: transform;
    animation: ambientFloat linear infinite;
}

.ambient-particle:nth-child(even) {
    background: rgba(0, 255, 200, 0.3);
    width: 2px;
    height: 2px;
}

.ambient-particle:nth-child(3n) {
    background: rgba(180, 79, 255, 0.25);
    width: 4px;
    height: 4px;
}

@keyframes ambientFloat {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-10vh) translateX(40px);
        opacity: 0;
    }
}

/* ==========================================================================
   CURSOR-TRACKING CARD GLOW
   ========================================================================== */
.card-glow-tracker {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.card:hover .card-glow-tracker,
.portal-card:hover .card-glow-tracker {
    opacity: 1;
}

/* ==========================================================================
   COUNTER COMPLETION FLASH
   ========================================================================== */
.counter-complete {
    animation: counterFlash 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes counterFlash {
    0% {
        text-shadow: 0 0 20px currentColor;
        transform: scale(1);
    }

    40% {
        text-shadow: 0 0 40px currentColor, 0 0 60px currentColor;
        transform: scale(1.08);
    }

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

/* ==========================================================================
   ENERGY TIPS MARQUEE TICKER
   ========================================================================== */
.energy-ticker {
    width: 100%;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.6);
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    padding: 14px 0;
    position: relative;
}

.energy-ticker::before,
.energy-ticker::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.energy-ticker::before {
    left: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.8), transparent);
}

.energy-ticker::after {
    right: 0;
    background: linear-gradient(-90deg, rgba(0, 0, 0, 0.8), transparent);
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: tickerScroll 40s linear infinite;
    will-change: transform;
}

.ticker-track:hover {
    animation-play-state: paused;
}

.ticker-item {
    flex-shrink: 0;
    padding: 0 40px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.3px;
}

.ticker-item .tip-icon {
    font-size: 1.1rem;
}

.ticker-item .tip-highlight {
    color: var(--color-primary);
    font-weight: 600;
}

@keyframes tickerScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ==========================================================================
   BACK-TO-TOP BUTTON
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: var(--color-primary);
    font-size: 1.3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background: rgba(255, 215, 0, 0.3);
    border-color: var(--color-primary);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.25), 0 8px 24px rgba(0, 0, 0, 0.4);
    transform: translateY(-4px);
}

/* ==========================================================================
   ENHANCED SCROLLBAR
   ========================================================================== */
.overlay::-webkit-scrollbar {
    width: 7px;
}

.overlay::-webkit-scrollbar-track {
    background: rgba(10, 6, 32, 0.5);
}

.overlay::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.4), rgba(0, 255, 200, 0.3));
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.overlay::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.7), rgba(0, 255, 200, 0.5));
}

/* ==========================================================================
   SPLASH SCREEN ENHANCEMENTS
   ========================================================================== */

/* Particle burst ring */
.splash-burst-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 215, 0, 0.6);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 14;
    will-change: transform, opacity;
}

@keyframes burstExpand {
    0% {
        width: 30px;
        height: 30px;
        opacity: 0.8;
        border-width: 3px;
    }

    100% {
        width: 280px;
        height: 280px;
        opacity: 0;
        border-width: 1px;
    }
}

/* Warp flash overlay */
.splash-warp-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.95) 0%, rgba(255, 215, 0, 0.3) 40%, transparent 70%);
    z-index: 100001;
    pointer-events: none;
    opacity: 0;
    will-change: opacity;
}

/* Typewriter cursor blink */
.splash-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: var(--color-primary);
    margin-left: 4px;
    vertical-align: text-bottom;
    animation: cursorBlink 0.7s step-end infinite;
}

@keyframes cursorBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Sound wave ring from settled emoji */
.splash-soundwave {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 1px solid rgba(255, 215, 0, 0.4);
    pointer-events: none;
    z-index: 14;
    will-change: transform, opacity;
    animation: soundwaveExpand 2s ease-out forwards;
}

@keyframes soundwaveExpand {
    0% {
        width: 80px;
        height: 80px;
        opacity: 0.5;
    }

    100% {
        width: 400px;
        height: 400px;
        opacity: 0;
    }
}

/* Lens flare sweep */
.splash-lens-flare {
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(105deg,
            transparent 30%,
            rgba(255, 255, 255, 0.03) 40%,
            rgba(255, 215, 0, 0.06) 50%,
            rgba(255, 255, 255, 0.03) 60%,
            transparent 70%);
    pointer-events: none;
    z-index: 2;
    will-change: transform;
}

/* iOS Toggle styling (shared simulation component) */
.ios-toggle {
    width: 44px;
    height: 24px;
    border-radius: 12px;
    background: #333;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease;
    flex-shrink: 0;
    margin-left: auto;
}

.ios-toggle::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    top: 2px;
    left: 2px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ios-toggle.on {
    background: #ff4f8b;
}

.ios-toggle.on::after {
    transform: translateX(20px);
}

/* Spin helper */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}