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

body {
    font-family: 'Arial', sans-serif;
    background: white;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    padding: 20px;
    scroll-behavior: auto; /* Prevent smooth scrolling that can cause shifts */
}

/* Animated background */
body::before {
    content: '';
    position: fixed;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.15) 2px, transparent 2px),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.15) 2px, transparent 2px),
        radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.15) 2px, transparent 2px);
    background-size: 200px 200px, 150px 150px, 180px 180px;
    animation: float 20s infinite ease-in-out;
    opacity: 0.6;
    z-index: 0;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Logout Button */
.logout-btn {
    position: fixed;
    top: 10px;
    right: 20px;
    background: #0bd776;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 15px rgba(11, 215, 118, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    font-family: inherit;
}

.logout-btn:hover {
    background: #08a85f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 215, 118, 0.4);
}

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

.logout-icon {
    font-size: 18px;
}

.logout-text {
    font-size: 15px;
}

@media (max-width: 768px) {
    .logout-btn {
        top: 10px;
        right: 10px;
        padding: 10px 18px;
        font-size: 14px;
    }
    
    .logout-text {
        display: none;
    }
    
    .logout-icon {
        font-size: 20px;
    }
}

.container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    padding: 30px 40px;
    max-width: 1600px;
    margin: 0 auto;
}

.logo-container {
    text-align: center;
    position: relative;
    max-width: 1400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    min-height: 1200px;
    margin-left: -50px;
}

.mascot-scoreboard-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 50px;
    margin-bottom: 20px;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 1400px;
    margin: 0;
    margin-left: -30px;
    padding: 0;
    flex-shrink: 0;
    order: 1;
}

.mascot-scoreboard-wrapper .mascot {
    margin: 5px 0 0 5px;
    flex-shrink: 0;
}


/* Road/Pavement */
.road {
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    width: 300px;
    height: 120px;
    background: 
        repeating-linear-gradient(
            90deg,
            #4a4a4a 0px,
            #4a4a4a 40px,
            #5a5a5a 40px,
            #5a5a5a 80px
        ),
        linear-gradient(to bottom, #3a3a3a 0%, #2a2a2a 100%);
    background-size: 80px 100%, 100% 100%;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: 0 0 10px 10px;
}

.road.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    background-position: 0 0, 0 0;
    animation: roadScroll 2s linear infinite;
}

.road::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 200%;
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        #ffd700 0px,
        #ffd700 30px,
        transparent 30px,
        transparent 60px
    );
    animation: roadMove 1s linear infinite;
    opacity: 0.8;
}

@keyframes roadScroll {
    0% { 
        background-position: 0 0, 0 0;
    }
    100% { 
        background-position: -80px 0, 0 0;
    }
}

.road::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 0, 0, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 80% 50%, rgba(0, 0, 0, 0.1) 2px, transparent 2px);
    background-size: 100px 50px, 100px 50px;
    opacity: 0.5;
}


@keyframes roadMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-60px); }
}

.road.active::before {
    animation: roadMove 0.5s linear infinite;
}

/* Mascot Container - Fresh Modern Design */
.mascot {
    position: relative;
    width: 300px;
    height: 480px;
    margin: 0 auto 30px;
    overflow: visible;
    z-index: 2;
}

.mascot:not(.walking) {
    animation: gentleFloat 3s infinite ease-in-out;
}

.mascot.walking {
    position: relative;
}

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

/* Clickable indicator */
.clickable {
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.clickable:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
    z-index: 10;
}

/* Head - Simple Round Design */
.head {
    position: relative;
    width: 150px;
    height: 150px;
    background: #ffdbac;
    border-radius: 50%;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 3;
    animation: headWiggle 4s infinite ease-in-out;
}

@keyframes headWiggle {
    0%, 100% { transform: rotate(-1deg); }
    50% { transform: rotate(1deg); }
}

/* Hair - Curly Style */
.hair {
    position: absolute;
    width: 150px;
    height: 150px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: #2c1810;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    z-index: 1;
    box-shadow: 
        inset -8px -8px 0 0 #1a0f08,
        inset 8px -8px 0 0 #1a0f08,
        0 3px 10px rgba(0, 0, 0, 0.2);
    clip-path: inset(0 0 20% 0);
}

/* Face */
.face {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: #ffdbac;
    border-radius: 50%;
}

/* Dream Bubble with Brain */
.dream-bubble {
    position: absolute;
    top: -10px;
    left: -140px;
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    border: 2px solid #1a1a1a;
    opacity: 0;
    transform: scale(0.5) translateX(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.dream-bubble::before {
    content: '';
    position: absolute;
    bottom: 25px;
    right: -15px;
    width: 0;
    height: 0;
    border-left: 15px solid white;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    transform: rotate(-20deg);
}

.dream-bubble::after {
    content: '';
    position: absolute;
    bottom: 24px;
    right: -17px;
    width: 0;
    height: 0;
    border-left: 16px solid #1a1a1a;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    transform: rotate(-20deg);
    z-index: -1;
}

.face:hover .dream-bubble,
.head:hover .dream-bubble,
.dream-bubble:hover {
    opacity: 1;
    transform: scale(1) translateX(0);
    pointer-events: auto;
    animation: bubbleFloat 2s infinite ease-in-out;
}

@keyframes bubbleFloat {
    0%, 100% { transform: scale(1) translateX(0) translateY(0); }
    50% { transform: scale(1) translateX(0) translateY(-5px); }
}

/* Brain Icon */
.brain-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 45px;
    z-index: 11;
    cursor: pointer;
    transition: transform 0.3s ease;
    pointer-events: auto;
}

.brain-icon:hover {
    transform: translate(-50%, -50%) scale(1.05);
}

.brain-shape {
    position: relative;
    width: 100%;
    height: 75%;
    top: 0;
    background: linear-gradient(135deg, #ff6b9d 0%, #e91e63 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    box-shadow: 
        0 0 0 2px #fff,
        0 2px 8px rgba(255, 107, 157, 0.3),
        inset -2px 0 4px rgba(200, 50, 100, 0.3),
        inset 2px 0 4px rgba(200, 50, 100, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    clip-path: polygon(
        10% 5%, 20% 2%, 30% 5%, 40% 2%, 50% 4%, 60% 2%, 70% 5%, 80% 2%, 90% 5%,
        95% 12%, 98% 20%, 100% 28%, 100% 38%, 98% 48%, 95% 55%, 90% 62%,
        85% 70%, 78% 76%, 70% 82%, 62% 85%, 54% 87%,
        46% 87%, 38% 85%, 30% 82%, 22% 76%, 15% 70%,
        10% 62%, 5% 55%, 2% 48%, 0% 38%, 0% 28%, 2% 20%, 5% 12%
    );
}

.brain-shape::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 50%;
    background: rgba(200, 50, 100, 0.5);
    border-radius: 1px;
    box-shadow: 
        -6px 0 0 rgba(200, 50, 100, 0.4),
        6px 0 0 rgba(200, 50, 100, 0.4),
        -3px 8px 0 rgba(200, 50, 100, 0.3),
        3px 8px 0 rgba(200, 50, 100, 0.3),
        -3px -8px 0 rgba(200, 50, 100, 0.3),
        3px -8px 0 rgba(200, 50, 100, 0.3);
}

.brain-shape::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 12px;
    background: linear-gradient(180deg, #ff6b9d 0%, #e91e63 100%);
    border-radius: 0 0 4px 4px;
    box-shadow: 
        0 0 0 2px #fff,
        0 2px 4px rgba(255, 107, 157, 0.3);
    z-index: 1;
}

.brain-icon:hover .brain-shape {
    transform: scale(1.1);
    box-shadow: 
        0 0 0 2px #fff,
        0 0 15px rgba(255, 107, 157, 0.6),
        0 0 25px rgba(255, 107, 157, 0.4),
        inset -2px 0 4px rgba(200, 50, 100, 0.4),
        inset 2px 0 4px rgba(200, 50, 100, 0.4);
}

.brain-icon:hover .brain-shape::after {
    box-shadow: 
        0 0 0 2px #fff,
        0 2px 6px rgba(255, 107, 157, 0.4);
}

/* Eyes - Large and Friendly */
.eye {
    position: absolute;
    width: 30px;
    height: 38px;
    background: white;
    border-radius: 50%;
    top: 52px;
    animation: blink 4s infinite;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
}

.left-eye {
    left: 38px;
}

.right-eye {
    right: 38px;
}

.pupil {
    width: 21px;
    height: 21px;
    background: #1a1a1a;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    color: white;
    font-weight: bold;
    overflow: visible;
}

.eye:hover .pupil {
    font-size: 20px;
    background: #0bd776;
    box-shadow: 0 0 8px rgba(11, 215, 118, 0.9);
    color: white;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9), 0 0 8px rgba(255, 255, 255, 0.5);
    z-index: 10;
    font-weight: 300;
}

.eye:hover {
    box-shadow: 0 0 8px rgba(11, 215, 118, 0.3);
}

@keyframes blink {
    0%, 90%, 100% { height: 38px; }
    92%, 98% { height: 2px; }
}

/* Mouth - Simple Smile */
.mouth {
    position: absolute;
    width: 60px;
    height: 30px;
    border: 4px solid #1a1a1a;
    border-top: none;
    border-radius: 0 0 60px 60px;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    animation: smile 3s infinite ease-in-out;
}

@keyframes smile {
    0%, 100% { width: 60px; }
    50% { width: 72px; }
}

/* Brain Glow */
.brain-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(11, 215, 118, 0.2) 0%, transparent 70%);
    animation: brainPulse 2.5s infinite ease-in-out;
    pointer-events: none;
    z-index: 0;
}

@keyframes brainPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

/* Body Wrapper */
.body-wrapper {
    position: relative;
    width: 180px;
    height: 210px;
    margin: -15px auto 0;
    z-index: 2;
}

/* Body - Simple Rounded Rectangle */
.body {
    position: relative;
    width: 100%;
    height: 100%;
    background: #0bd776;
    border-radius: 90px 90px 30px 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
    border: 4px solid #fff;
    animation: bodySway 5s infinite ease-in-out;
}

@keyframes bodySway {
    0%, 100% { transform: rotate(-0.5deg); }
    50% { transform: rotate(0.5deg); }
}

/* Heart Icon */
.heart-icon {
    position: absolute;
    top: 70px;
    right: 50px;
    width: 30px;
    height: 30px;
    z-index: 4;
    transition: transform 0.3s ease;
}

.heart-icon:hover {
    transform: scale(1.2);
}

.heart-icon:hover .heart-shape {
    animation: heartBeatHover 0.6s infinite ease-in-out;
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.9), 0 0 40px rgba(231, 76, 60, 0.6);
}

.heart-shape {
    width: 30px;
    height: 28px;
    background: #e74c3c;
    position: relative;
    transform: rotate(-45deg);
    animation: heartBeat 1.5s infinite ease-in-out;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
    transition: box-shadow 0.3s ease;
}

.heart-shape::before,
.heart-shape::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background: #e74c3c;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
    transition: box-shadow 0.3s ease;
}

.heart-icon:hover .heart-shape::before,
.heart-icon:hover .heart-shape::after {
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.9), 0 0 40px rgba(231, 76, 60, 0.6);
}

.heart-shape::before {
    top: -15px;
    left: 0;
}

.heart-shape::after {
    left: 15px;
    top: 0;
}

@keyframes heartBeat {
    0%, 100% { transform: rotate(-45deg) scale(1); }
    50% { transform: rotate(-45deg) scale(1.1); }
}

@keyframes heartBeatHover {
    0%, 100% { transform: rotate(-45deg) scale(1.2); }
    25% { transform: rotate(-45deg) scale(1.4); }
    50% { transform: rotate(-45deg) scale(1.3); }
    75% { transform: rotate(-45deg) scale(1.5); }
}

/* Hat with MMM Logo */
.hat {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 70px;
    background: #000;
    border-radius: 70px 70px 0 0;
    z-index: 5;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hat::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 15px;
    background: #0bd776;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.hat:hover {
    transform: translateX(-50%) translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 30px rgba(11, 215, 118, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hat-logo-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: auto;
    max-height: 75px;
    z-index: 6;
    display: block;
    object-fit: contain;
    opacity: 1;
    clip-path: inset(30% 30% 30% 30%);
}

.hat-logo-fallback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    z-index: 6;
    letter-spacing: 3px;
}

/* Left Side Pocket */
.pocket-left {
    position: absolute;
    left: 15px;
    bottom: 30px;
    width: 60px;
    height: 50px;
    background: rgba(8, 168, 95, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    z-index: 3;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Wallet Icon */
.wallet-icon {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 35px;
    background: #8b6914;
    border-radius: 6px;
    z-index: 4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    animation: walletShine 3s infinite ease-in-out;
}

.wallet-icon::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 46px;
    height: 10px;
    background: #6b4e0f;
    border-radius: 6px 6px 0 0;
}

@keyframes walletShine {
    0%, 100% { box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3); }
    50% { box-shadow: 0 3px 15px rgba(11, 215, 118, 0.5); }
}

/* Arms */
.arm {
    position: absolute;
    width: 42px;
    height: 120px;
    background: #ffdbac;
    border-radius: 21px;
    top: 30px;
    z-index: 1;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    border: 3px solid #fff;
    overflow: visible;
}

.arm:hover {
    z-index: 20;
}

.left-arm {
    left: -30px;
    transform-origin: top center;
    animation: leftArmWave 3s infinite ease-in-out;
}

.right-arm {
    right: -30px;
    transform-origin: top center;
    animation: rightArmWave 3s infinite ease-in-out;
}

.mascot.walking .left-arm {
    animation: leftArmWalk 0.6s infinite ease-in-out;
}

.mascot.walking .right-arm {
    animation: rightArmWalk 0.6s infinite ease-in-out;
    animation-delay: 0.3s;
}

@keyframes leftArmWave {
    0%, 100% { transform: rotate(-20deg); }
    50% { transform: rotate(5deg); }
}

@keyframes rightArmWave {
    0%, 100% { transform: rotate(20deg); }
    50% { transform: rotate(-5deg); }
}

@keyframes leftArmWalk {
    0%, 100% { transform: rotate(-25deg); }
    50% { transform: rotate(15deg); }
}

@keyframes rightArmWalk {
    0%, 100% { transform: rotate(25deg); }
    50% { transform: rotate(-15deg); }
}

.hand {
    width: 48px;
    height: 48px;
    background: #ffdbac;
    border-radius: 50%;
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    border: 3px solid #fff;
}

.coin-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 27px;
    height: 27px;
    background: #0bd776;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(11, 215, 118, 0.7);
    animation: coinSpin 2s infinite linear;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: white;
    border: 3px solid rgba(255, 255, 255, 0.5);
}

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

/* Money Rain Animation */
.money-rain {
    position: absolute;
    pointer-events: none;
    z-index: 15;
    font-size: 24px;
    font-weight: bold;
    color: #0bd776;
    text-shadow: 0 0 15px rgba(11, 215, 118, 1), 0 0 30px rgba(11, 215, 118, 0.6);
    will-change: transform, opacity;
}

/* Money fall animation - will be dynamically created per drop */

.arm:hover .coin-icon {
    animation: coinSpin 0.5s infinite linear;
    box-shadow: 0 0 20px rgba(11, 215, 118, 1), 0 0 40px rgba(11, 215, 118, 0.8);
    transform: translate(-50%, -50%) scale(1.2);
}

/* Legs */
.legs {
    position: relative;
    width: 150px;
    height: 90px;
    margin: -8px auto 0;
    z-index: 1;
    cursor: pointer;
}

.legs::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    z-index: -1;
    pointer-events: auto;
    background: transparent;
}

.legs:hover .leg {
    transform: scale(1.05);
}

.leg {
    position: absolute;
    width: 45px;
    height: 75px;
    background: #0bd776;
    border-radius: 23px 23px 8px 8px;
    top: 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    border: 3px solid #fff;
}

.left-leg {
    left: 22px;
    animation: leftLegMove 4s infinite ease-in-out;
    transform-origin: top center;
}

.right-leg {
    right: 22px;
    animation: rightLegMove 4s infinite ease-in-out;
    transform-origin: top center;
}

.mascot.walking .left-leg {
    animation: leftLegWalk 0.6s infinite ease-in-out;
}

.mascot.walking .right-leg {
    animation: rightLegWalk 0.6s infinite ease-in-out;
    animation-delay: 0.3s;
}

@keyframes leftLegMove {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

@keyframes rightLegMove {
    0%, 100% { transform: rotate(3deg); }
    50% { transform: rotate(-3deg); }
}

@keyframes leftLegWalk {
    0%, 100% { 
        transform: rotate(-15deg) translateY(0);
    }
    50% { 
        transform: rotate(10deg) translateY(-5px);
    }
}

@keyframes rightLegWalk {
    0%, 100% { 
        transform: rotate(15deg) translateY(0);
    }
    50% { 
        transform: rotate(-10deg) translateY(-5px);
    }
}

.foot {
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 52px;
    height: 30px;
    background: #1a1a1a;
    border-radius: 23px 23px 5px 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.foot::before {
    content: '';
    position: absolute;
    top: 9px;
    left: 4px;
    width: 44px;
    height: 3px;
    background: #333;
    border-radius: 3px;
}

/* Company Name */
.company-name {
    font-size: 48px;
    font-weight: bold;
    color: white;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 18px rgba(255, 255, 255, 0.25);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.letter {
    display: inline-block;
    animation: letterPop 0.6s ease-out backwards;
    animation-delay: var(--delay);
}

.letter.space {
    width: 0.3em;
}

@keyframes letterPop {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.15) rotate(8deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Tagline */
.tagline {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 2s backwards;
    letter-spacing: 1.5px;
    font-weight: 500;
    margin-bottom: 30px;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Financial Scoreboard */
.scoreboard {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 20px;
    margin: 0;
    margin-left: -30px;
    flex: 0 0 auto;
    min-width: 400px;
    max-width: 500px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border: 3px solid #0bd776;
    animation: scoreboardSlideIn 0.8s ease-out;
    align-self: flex-start;
}

@keyframes scoreboardSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.scoreboard-title {
    font-size: 22px;
    font-weight: bold;
    color: #0bd776;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(11, 215, 118, 0.3);
}

.scoreboard-grid {
    display: grid;
    grid-template-columns: auto repeat(3, 1fr) auto;
    gap: 12px;
    position: relative;
}

.scoreboard-row-label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    padding: 8px;
    border-radius: 8px;
}

.scoreboard-row-label.allocatable {
    color: #333;
    background: rgba(0, 0, 0, 0.05);
    border: 2px solid #333;
}

.scoreboard-row-label.expenses {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
    border: 2px solid #ff4444;
}

.scoreboard-row-label.fruitful {
    color: #0bd776;
    background: rgba(11, 215, 118, 0.1);
    border: 2px solid #0bd776;
}

.scoreboard-row-total {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    padding: 8px;
    border-radius: 8px;
}

.scoreboard-row-total.allocatable-total {
    color: #333;
    background: rgba(0, 0, 0, 0.05);
    border: 2px solid #333;
}

.scoreboard-row-total.expenses-total {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
    border: 2px solid #ff4444;
}

.scoreboard-row-total.fruitful-total {
    color: #0bd776;
    background: rgba(11, 215, 118, 0.1);
    border: 2px solid #0bd776;
}

.row-total-value {
    font-size: 20px;
    font-weight: bold;
}

.top-row-group {
    grid-column: 2 / -2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.expenses-group {
    grid-column: 2 / -2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    background: rgba(255, 68, 68, 0.1);
    border: 3px solid #ff4444;
    border-radius: 16px;
    padding: 12px;
}

.savings-group {
    grid-column: 2 / -2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    background: rgba(11, 215, 118, 0.1);
    border: 3px solid #0bd776;
    border-radius: 16px;
    padding: 12px;
}

.score-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 12px;
    position: relative;
    text-align: center;
    border: 2px solid #0bd776;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: scoreItemPop 0.6s ease-out backwards;
}

.score-item:nth-child(1) { 
    animation-delay: 0.1s; 
} /* Income */
.score-item:nth-child(2) { 
    animation-delay: 0.2s; 
    border-color: #333 !important;
} /* Pre-Tax Deductions */
.score-item:nth-child(2) .score-value {
    color: #333 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.score-item:nth-child(3) { 
    animation-delay: 0.3s; 
    border-color: #ff4444 !important;
} /* Monthly Taxes */
.score-item:nth-child(3) .score-value { 
    color: #ff4444 !important; 
    text-shadow: 0 2px 8px rgba(255, 68, 68, 0.4);
}
/* Expenses group items (Discretionary Expenses, Debt Payoff, Insurance) */
.expenses-group .score-item {
    border-color: #ff4444 !important;
}

.expenses-group .score-item .score-value {
    color: #ff4444 !important;
    text-shadow: 0 2px 8px rgba(255, 68, 68, 0.4);
}

.expenses-group .score-item:nth-child(1) { animation-delay: 0.4s; }
.expenses-group .score-item:nth-child(2) { animation-delay: 0.5s; }
.expenses-group .score-item:nth-child(3) { animation-delay: 0.6s; }

/* Savings group items (Savings, Investments, Tithing/Charity) */
.savings-group .score-item {
    border-color: #0bd776 !important;
}

.savings-group .score-item .score-value {
    color: #0bd776 !important;
    text-shadow: 0 2px 8px rgba(11, 215, 118, 0.4);
}

/* Ensure tithing (3rd child of savings-group) has green shadow */
.savings-group .score-item:nth-child(3) .score-value {
    color: #0bd776 !important;
    text-shadow: 0 2px 8px rgba(11, 215, 118, 0.4);
}

.savings-group .score-item:nth-child(3):hover {
    box-shadow: 0 6px 20px rgba(11, 215, 118, 0.3);
    border-color: #08a85f;
}

.score-percentage {
    font-size: 11px;
    color: #666;
    margin-top: 4px;
    font-weight: 500;
}

#legacy-chart-canvas {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    margin-bottom: 0 !important;
}

#legacy-projection-chart {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.expenses-group .score-item .score-percentage {
    color: #ff6666;
}

.savings-group .score-item .score-percentage {
    color: #0bd776;
    text-shadow: 0 2px 8px rgba(11, 215, 118, 0.4);
}

.savings-group .score-item:nth-child(1) { animation-delay: 0.7s; }
.savings-group .score-item:nth-child(2) { animation-delay: 0.8s; }
.savings-group .score-item:nth-child(3) { animation-delay: 0.9s; }

@keyframes scoreItemPop {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.score-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(11, 215, 118, 0.3);
    border-color: #08a85f;
}

/* Pre-Tax Deductions - black shadow on hover */
.score-item:nth-child(2):hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border-color: #333;
}

.score-label {
    font-size: 11px;
    color: #666;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.score-value {
    font-size: 20px;
    font-weight: bold;
    color: #0bd776;
    text-shadow: 0 2px 8px rgba(11, 215, 118, 0.4);
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.score-value.counting {
    animation: numberPulse 0.3s ease-in-out;
}

/* Legacy Impact (under mascot) */
.legacy-impact {
    width: 300px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    border: 3px solid #0bd776;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
    animation: legacySlideIn 0.8s ease-out 1.1s backwards;
}

@keyframes legacySlideIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.legacy-label {
    font-size: 16px;
    color: #666;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.legacy-value {
    font-size: 48px;
    font-weight: bold;
    color: #0bd776;
    text-shadow: 0 2px 10px rgba(11, 215, 118, 0.5);
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.legacy-value.counting {
    animation: numberPulse 0.3s ease-in-out;
}

@keyframes numberPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Course Navigation */
.course-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin-top: 0;
    margin-bottom: 30px;
    max-width: 680px;
    width: 100%;
    position: static;
    z-index: 1;
    flex-shrink: 0;
    order: 3;
    margin-left: -5px;
}

.course-btn {
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #0bd776;
    border-radius: 25px;
    color: #0bd776;
    outline: none; /* Prevent focus outline from causing scroll */
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: auto;
    max-width: 150px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-btn:hover {
    background: #0bd776;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(11, 215, 118, 0.4);
}

.course-btn.active {
    background: #0bd776;
    color: white;
    box-shadow: 0 6px 18px rgba(11, 215, 118, 0.4);
}

/* Educational Tooltip */
.tooltip {
    position: absolute;
    bottom: -220px;
    left: 50%;
    transform: translateX(-50%);
    width: 450px;
    max-width: 90vw;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 12px 45px rgba(0, 0, 0, 0.3);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    border: 3px solid #0bd776;
}

.tooltip.show {
    opacity: 1;
    pointer-events: all;
    bottom: -200px;
}

.tooltip-title {
    font-size: 22px;
    font-weight: bold;
    color: #0bd776;
    margin-bottom: 12px;
    text-align: center;
}

.tooltip-content {
    font-size: 15px;
    color: #333;
    line-height: 1.7;
    text-align: center;
    margin-bottom: 15px;
}

.tooltip-verse {
    font-size: 14px;
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 10px;
    background: rgba(11, 215, 118, 0.1);
    border-radius: 8px;
    border-left: 3px solid #0bd776;
}

.tooltip-close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.tooltip-close:hover {
    color: #e74c3c;
}

/* Course Module Display */
.course-module {
    position: absolute !important;
    width: 100% !important;
    max-width: 875px !important;
    top: 480px !important;
    left: -80px !important;
    transform: none !important;
    background: rgba(255, 255, 255, 0.98) !important;
    border-radius: 25px !important;
    padding: 25px 40px !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4) !important;
    border: 4px solid #0bd776 !important;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    z-index: 10 !important;
    display: block !important;
}

.course-module.show {
    opacity: 1;
    max-height: 2000px;
    pointer-events: all;
}

.course-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.course-close:hover {
    color: #e74c3c;
}

.course-title {
    font-size: 32px;
    font-weight: bold;
    color: #0bd776;
    margin-bottom: 15px;
    text-align: center;
}

.course-content {
    font-size: 18px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 15px;
    text-align: left;
}

.course-verse {
    font-size: 16px;
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 12px;
    background: rgba(11, 215, 118, 0.1);
    border-radius: 12px;
    border-left: 4px solid #0bd776;
    margin-bottom: 15px;
}

.course-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.nav-btn {
    padding: 12px 25px;
    background: #0bd776;
    border: none;
    border-radius: 25px;
    color: white;
    outline: none; /* Prevent focus outline from causing scroll */
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(11, 215, 118, 0.3);
}

.nav-btn:hover {
    background: #08a85f;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(11, 215, 118, 0.4);
}

.nav-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.full-module-btn {
    padding: 14px 30px;
    background: #0bd776;
    border: none;
    border-radius: 25px;
    color: white;
    outline: none; /* Prevent focus outline from causing scroll */
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(11, 215, 118, 0.3);
}

.full-module-btn:hover {
    background: #08a85f;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(11, 215, 118, 0.4);
}

/* Full Module Modal */
.full-module-modal {
    position: absolute !important;
    width: 100% !important;
    max-width: 600px !important;
    top: 130px !important;
    right: -80px !important;
    left: auto !important;
    transform: none !important;
    background: rgba(255, 255, 255, 0.98) !important;
    border-radius: 25px !important;
    padding: 20px 40px 30px 40px !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3) !important;
    border: 4px solid #0bd776 !important;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    z-index: 100 !important;
    display: block !important;
}

.full-module-modal.show {
    opacity: 1 !important;
    max-height: 2000px !important;
    pointer-events: all !important;
}

.full-module-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    color: #666;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s ease;
    z-index: 10;
}

.full-module-close:hover {
    color: #0bd776;
    transform: scale(1.2);
}

.full-module-title {
    font-size: 28px;
    font-weight: bold;
    color: #0bd776;
    margin-bottom: 5px;
    margin-top: 0;
    text-align: center;
    text-shadow: 0 2px 4px rgba(11, 215, 118, 0.2);
}

.module-input-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Arial', sans-serif;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0bd776;
    box-shadow: 0 0 0 3px rgba(11, 215, 118, 0.1);
}

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

.form-help-text {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    font-style: italic;
}

/* Tax Estimate Display */
.tax-estimate-display {
    margin-top: 10px;
    padding: 12px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 10px;
    border: 2px solid #ff4444;
}

.tax-estimate-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 2px solid #ff4444;
}

.tax-estimate-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.tax-estimate-amount-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tax-estimate-amount {
    font-size: 20px;
    font-weight: bold;
    color: #0bd776;
}

.tax-breakdown-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.tax-breakdown-subtitle {
    font-size: 12px;
    font-weight: 600;
    color: #444;
    margin-top: 8px;
    margin-bottom: 4px;
}

.tax-breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    font-size: 12px;
    color: #555;
}

.tax-breakdown-separator {
    height: 1px;
    background: #ff4444;
    margin: 6px 0;
}

.tax-bracket-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 8px;
    padding: 4px 0;
    font-size: 11px;
    border-bottom: 1px solid #eee;
}

.tax-bracket-item:last-child {
    border-bottom: none;
}

.tax-estimate-row {
    font-weight: 600;
    padding-top: 6px;
    border-top: 2px solid #ff4444;
    border-bottom: none !important;
    margin-top: 4px;
}

.tax-estimate-row .bracket-range {
    font-weight: 600;
    color: #333;
}

.bracket-range {
    color: #666;
}

.bracket-rate {
    color: #ff4444;
    font-weight: 600;
    text-align: center;
}

.bracket-amount {
    color: #333;
    font-weight: 600;
    text-align: right;
}

.tax-effective-rate-inline {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    font-style: italic;
}

.submit-btn {
    padding: 16px 32px;
    background: #0bd776;
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(11, 215, 118, 0.3);
    margin-top: 10px;
}

.submit-btn:hover {
    background: #08a85f;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(11, 215, 118, 0.4);
}

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

/* Budget Allocation Styles */
.budget-allocation-container {
    margin-top: 0;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 2px solid #e0e0e0;
}

.budget-allocation-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 10px;
    font-size: 12px;
}

.monthly-income-display {
    text-align: center;
    padding: 8px;
    background: linear-gradient(135deg, #0bd776 0%, #08a85f 100%);
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(11, 215, 118, 0.2);
}

.income-label {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-right: 8px;
}

.income-amount {
    font-size: 20px;
    font-weight: bold;
    color: white;
}

.budget-category-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 12px;
}

.budget-category-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    align-items: center;
    padding: 10px 12px;
    background: white;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    gap: 3px;
}

/* Green hover for \"fruitful\" / positive categories (modules 1, 2, 4, 6, 7) */
/* Using class-based approach for better browser support */
.budget-category-item.category-green:hover {
    border-color: #0bd776;
    box-shadow: 0 2px 8px rgba(11, 215, 118, 0.1);
}

/* Fallback: :has() selectors for modern browsers */
.budget-category-item:has(#home-renters-insurance):hover,
.budget-category-item:has(#life-insurance):hover,
.budget-category-item:has(#auto-insurance):hover,
.budget-category-item:has(#health-insurance):hover,
.budget-category-item:has(#pretax-401k):hover,
.budget-category-item:has(#traditional-ira):hover,
.budget-category-item:has(#other-pretax):hover,
.budget-category-item:has(#annual-salary):hover,
.budget-category-item:has(#bonuses):hover,
.budget-category-item:has(#investment-income):hover,
.budget-category-item:has(#other-income):hover,
.budget-category-item:has(#savings):hover,
.budget-category-item:has(#investment):hover,
.budget-category-item:has(#tithing-charity):hover,
.budget-category-item:has(#emergency-fund):hover,
.budget-category-item:has(#high-yield-savings):hover,
.budget-category-item:has(#short-term-goals):hover,
.budget-category-item:has(#money-market):hover,
.budget-category-item:has(#certificate-deposit):hover,
.budget-category-item:has(#brokerage):hover,
.budget-category-item:has(#roth-ira):hover,
.budget-category-item:has(#529-plan):hover,
.budget-category-item:has(#cryptocurrency):hover,
.budget-category-item:has(#other-investments):hover {
    border-color: #0bd776;
    box-shadow: 0 2px 8px rgba(11, 215, 118, 0.1);
}

/* Red hover for expense / debt categories (modules 3 & 5, plus insurance/debt buckets in module 4) */
/* Module 3 – Debt (balances & payments) */
.budget-category-item:has(#student-loan-balance):hover,
.budget-category-item:has(#student-loan-payment):hover,
.budget-category-item:has(#auto-loan-balance):hover,
.budget-category-item:has(#auto-loan-payment):hover,
/* Module 4/5 – Expense buckets */
.budget-category-item:has(#rent-housing):hover,
.budget-category-item:has(#food-going-out):hover,
.budget-category-item:has(#gas-transportation):hover,
.budget-category-item:has(#insurance):hover,
.budget-category-item:has(#debt-payments):hover,
.budget-category-item:has(#personal-care):hover,
.budget-category-item:has(#entertainment):hover {
    border-color: #ff4444;
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.2);
}

/* Green text for savings, investment, and tithing/charity amounts */
#savings-amount,
#investment-amount,
#tithing-charity-amount {
    color: #0bd776 !important;
}

/* Red text for expense category amounts only */
#rent-housing-amount,
#food-going-out-amount,
#gas-transportation-amount,
#insurance-amount,
#debt-payments-amount,
#personal-care-amount,
#entertainment-amount {
    color: #ff4444 !important;
}

/* Red focus state for expense category inputs and debt inputs */
#rent-housing:focus,
#food-going-out:focus,
#gas-transportation:focus,
#insurance:focus,
#debt-payments:focus,
#personal-care:focus,
#entertainment:focus,
#rent-housing-dollar:focus,
#food-going-out-dollar:focus,
#gas-transportation-dollar:focus,
#personal-care-dollar:focus,
#entertainment-dollar:focus,
/* Module 3 - Debt inputs */
#student-loan-balance:focus,
#student-loan-payment:focus,
#auto-loan-balance:focus,
#auto-loan-payment:focus {
    border-color: #ff4444 !important;
    box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.1) !important;
}

.budget-category-item label {
    font-weight: 600;
    color: #333;
    font-size: 13px;
    grid-column: 1;
}

/* Modules 1, 2, 3 - More spacing between labels and inputs (move inputs further right) */
#insurance-form .budget-category-item,
#income-form .budget-category-item,
#debt-form .budget-category-item {
    grid-template-columns: 200px 1fr;
    gap: 20px;
}

#insurance-form .budget-input-group,
#income-form .budget-input-group,
#debt-form .budget-input-group {
    grid-column: 2;
    justify-content: flex-end;
}

.budget-input-group {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
    grid-column: 2;
    justify-content: flex-start;
    margin-right: 0;
}

.budget-percentage {
    width: 100px;
    padding: 6px 8px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    text-align: center;
    transition: all 0.3s ease;
}

.budget-percentage:focus {
    outline: none;
    border-color: #0bd776;
    box-shadow: 0 0 0 3px rgba(11, 215, 118, 0.1);
}

.budget-dollar {
    width: 100px;
    padding: 6px 8px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    text-align: center;
    transition: all 0.3s ease;
}

.budget-dollar:focus {
    outline: none;
    border-color: #0bd776;
    box-shadow: 0 0 0 3px rgba(11, 215, 118, 0.1);
}

.budget-percent-symbol {
    font-weight: 600;
    color: #666;
    font-size: 14px;
}

.budget-amount {
    min-width: 75px;
    max-width: 85px;
    font-weight: 600;
    color: #0bd776;
    font-size: 13px;
    text-align: right;
    grid-column: 3;
    white-space: nowrap;
    margin-left: 0;
    padding-left: 0;
}

.budget-total-display {
    display: flex;
    justify-content: space-around;
    padding: 10px;
    background: white;
    border-radius: 8px;
    border: 2px solid #0bd776;
    margin-top: 10px;
}

.budget-total-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.budget-total-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.budget-total-value {
    font-size: 20px;
    font-weight: bold;
    color: #0bd776;
}

.budget-warning {
    margin-top: 10px;
    padding: 8px;
    background: #fff3cd;
    border: 2px solid #ffaa00;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    font-size: 12px;
}

/* Responsive Design - Laptop Sizes */
/* Large laptops and desktops (1920px+) */
@media (min-width: 1920px) {
    .container {
        max-width: 1800px;
        padding: 40px 60px;
    }
    
    .logo-container {
        max-width: 1600px;
    }
    
    .mascot-scoreboard-wrapper {
        max-width: 1600px;
    }
    
    .course-module {
        max-width: 900px !important;
        padding: 30px 50px !important;
    }
    
    .scoreboard {
        min-width: 450px;
        max-width: 550px;
    }
}

/* Standard laptops (1440px - 1919px) */
@media (min-width: 1440px) and (max-width: 1919px) {
    .container {
        max-width: 1600px;
        padding: 30px 50px;
    }
    
    .logo-container {
        max-width: 1400px;
    }
    
    .mascot-scoreboard-wrapper {
        max-width: 1400px;
    }
    
    .course-module {
        max-width: 850px !important;
    }
    
    .scoreboard {
        min-width: 400px;
        max-width: 500px;
    }
}

/* Small laptops (1366px - 1439px) */
@media (min-width: 1366px) and (max-width: 1439px) {
    .container {
        max-width: 1300px;
        padding: 25px 40px;
    }
    
    .logo-container {
        max-width: 1200px;
    }
    
    .mascot-scoreboard-wrapper {
        max-width: 1200px;
        gap: 40px;
    }
    
    .course-module {
        max-width: 800px !important;
        padding: 20px 35px !important;
    }
    
    .scoreboard {
        transform: scale(0.95);
    }
}

/* Tablets and small laptops (1024px - 1365px) */
@media (min-width: 1024px) and (max-width: 1365px) {
    .container {
        max-width: 100%;
        padding: 20px 30px;
    }
    
    .logo-container {
        max-width: 100%;
        margin-left: 0;
    }
    
    .mascot-scoreboard-wrapper {
        max-width: 100%;
        margin-left: 0;
        gap: 30px;
        flex-wrap: wrap;
    }
    
    .course-module {
        max-width: 90% !important;
        padding: 20px 30px !important;
    }
    
    .scoreboard {
        transform: scale(0.9);
    }
}

/* Tablets and small laptops (1024px - 1365px) */
@media (min-width: 1024px) and (max-width: 1365px) {
    .container {
        max-width: 100%;
        padding: 20px 30px;
    }
    
    .logo-container {
        max-width: 100%;
        margin-left: 0;
    }
    
    .mascot-scoreboard-wrapper {
        max-width: 100%;
        margin-left: 0;
        gap: 30px;
        flex-wrap: wrap;
    }
}

/* Mobile and small tablets */
@media (max-width: 768px) {
    .mascot {
        width: 170px;
        height: 270px;
    }
    
    .head {
        width: 85px;
        height: 85px;
    }
    
    .body-wrapper {
        width: 100px;
        height: 120px;
    }
    
    .company-name {
        font-size: 36px;
    }
    
    .tagline {
        font-size: 16px;
    }
    
    .tooltip {
        width: 90vw;
        padding: 20px;
    }
    
    .course-module {
        width: 95%;
        padding: 30px 20px;
    }
    
    .course-title {
        font-size: 24px;
    }
    
    .course-content {
        font-size: 16px;
    }
    
    .course-nav {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }
    
    .course-btn {
        font-size: 12px;
        padding: 10px 12px;
    }
}

/* ============================================
   DISCOVERY FUNNEL - MONEY MAP LITE
   GAMIFIED & MIND-BLOWING VERSION
   ============================================ */

#discovery-funnel {
    width: 100%;
    min-height: 100vh;
    background: #fafcfb;
    position: relative;
    z-index: 1;
    overflow-x: hidden;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Subtle professional background */
#discovery-funnel::before {
    content: '';
    position: fixed;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(11, 215, 118, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(11, 215, 118, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.discovery-container {
    max-width: 840px;
    margin: 0 auto;
    padding: 24px 24px 56px;
    position: relative;
    z-index: 1;
}

/* Hero Section */
.discovery-hero {
    text-align: center;
    padding: 48px 24px 56px;
    position: relative;
    max-width: 840px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, #0bd776 0%, #08a85f 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(11, 215, 118, 0.3);
    animation: badgeFloat 3s ease-in-out infinite;
    letter-spacing: 0.5px;
}

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

/* Actual Mascot Character for Homepage - Scaled Down */
.discovery-mascot-wrapper {
    margin: 0 auto 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.discovery-mascot {
    position: relative;
    width: 200px;
    height: 320px;
    margin: 0 auto;
    overflow: visible;
    z-index: 2;
    animation: discoveryMascotFloat 3s infinite ease-in-out;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.discovery-mascot:hover {
    transform: scale(1.05);
    animation-play-state: paused;
}

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

/* Head - Scaled Down */
.discovery-head {
    position: relative;
    width: 100px;
    height: 100px;
    background: #ffdbac;
    border-radius: 50%;
    margin: 0 auto;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 3;
    animation: discoveryHeadWiggle 4s infinite ease-in-out;
}

@keyframes discoveryHeadWiggle {
    0%, 100% { transform: rotate(-1deg); }
    50% { transform: rotate(1deg); }
}

.discovery-face {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: #ffdbac;
    border-radius: 50%;
}

/* Eyes */
.discovery-eye {
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    top: 35%;
    border: 2px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: discoveryBlink 4s infinite;
}

.discovery-left-eye {
    left: 25%;
}

.discovery-right-eye {
    right: 25%;
}

.discovery-pupil {
    font-size: 10px;
    font-weight: bold;
    color: #333;
}

@keyframes discoveryBlink {
    0%, 90%, 100% { height: 20px; }
    95% { height: 2px; }
}

/* Mouth */
.discovery-mouth {
    position: absolute;
    width: 30px;
    height: 15px;
    border: 2px solid #333;
    border-top: none;
    border-radius: 0 0 30px 30px;
    bottom: 25%;
    left: 50%;
    transform: translateX(-50%);
}

/* Hat */
.discovery-hat {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 35px;
    background: #333;
    border-radius: 30px 30px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    z-index: 4;
}

.discovery-hat-logo-img {
    width: 30px;
    height: auto;
}

.discovery-hat-logo-fallback {
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Body */
.discovery-body-wrapper {
    position: relative;
    margin-top: -5px;
}

.discovery-body {
    width: 80px;
    height: 100px;
    background: #4a90e2;
    border-radius: 15px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Heart */
.discovery-heart-icon {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    z-index: 2;
    cursor: pointer;
}

.discovery-heart-shape {
    width: 100%;
    height: 100%;
    background: #ff6b9d;
    clip-path: path('M12,21.35l-1.45-1.32C5.4,15.36,2,12.28,2,8.5 C2,5.42,4.42,3,7.5,3c1.74,0,3.41,0.81,4.5,2.09C13.09,3.81,14.76,3,16.5,3 C19.58,3,22,5.42,22,8.5c0,3.78-3.4,6.86-8.55,11.54L12,21.35z');
    animation: discoveryHeartBeat 1.5s ease-in-out infinite;
}

@keyframes discoveryHeartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Pocket and Wallet */
.discovery-pocket-left {
    position: absolute;
    left: -15px;
    top: 50px;
    width: 25px;
    height: 35px;
    background: #2c3e50;
    border-radius: 5px;
    border: 2px solid #1a1a1a;
}

.discovery-wallet-icon {
    width: 20px;
    height: 15px;
    background: #8b4513;
    border-radius: 3px;
    margin: 5px auto;
    position: relative;
}

.discovery-wallet-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 10px;
    background: #654321;
}

/* Arms */
.discovery-arm {
    position: absolute;
    width: 12px;
    height: 50px;
    background: #ffdbac;
    border-radius: 6px;
    top: 10px;
}

.discovery-left-arm {
    left: -10px;
    transform: rotate(-20deg);
}

.discovery-right-arm {
    right: -10px;
    transform: rotate(20deg);
}

.discovery-hand {
    width: 20px;
    height: 20px;
    background: #ffdbac;
    border-radius: 50%;
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.discovery-coin-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    font-weight: bold;
    color: #ffd700;
}

/* Legs */
.discovery-legs {
    position: relative;
    margin-top: -5px;
}

.discovery-leg {
    position: relative;
    width: 15px;
    height: 60px;
    background: #2c3e50;
    border-radius: 8px;
    display: inline-block;
    margin: 0 5px;
}

.discovery-left-leg {
    margin-left: 25px;
}

.discovery-foot {
    width: 25px;
    height: 12px;
    background: #1a1a1a;
    border-radius: 0 0 12px 12px;
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
}

.discovery-headline {
    font-size: 52px;
    font-weight: 700;
    color: #0bd776;
    margin-bottom: 24px;
    line-height: 1.2;
    animation: headlineSlideIn 0.8s ease-out;
    letter-spacing: -0.5px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

@keyframes headlineSlideIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.discovery-subheadline {
    font-size: 18px;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 44px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.discovery-subheadline .highlight-text {
    display: none;
}

.highlight-text {
    color: #0bd776;
    font-weight: 600;
}

.discovery-cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.cta-subtext {
    font-size: 14px;
    color: #666;
    margin: 0;
    font-weight: 500;
    text-align: center;
}

.discovery-btn-primary {
    background: #0bd776;
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(11, 215, 118, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    text-transform: none;
    letter-spacing: 0.01em;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.discovery-btn-primary:hover {
    background: #08a85f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 8px 24px rgba(11, 215, 118, 0.3);
}

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

.btn-icon {
    font-size: 22px;
    display: inline-block;
}

.btn-arrow {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.discovery-btn-primary:hover .btn-arrow {
    transform: translateX(5px);
}

.cta-note {
    font-size: 14px;
    color: #6b7280;
    margin: 12px 0 0 0;
    font-weight: 400;
    text-align: center;
}

.discovery-link-secondary {
    color: #0bd776;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    margin-top: 12px;
    transition: color 0.2s ease;
}

.discovery-link-secondary:hover {
    color: #08a85f;
}

.discovery-link-secondary:hover {
    text-decoration: underline;
}

/* Quick Stats - boxed card */
.discovery-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin: 44px 0;
    padding: 40px 48px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.stat-item {
    text-align: center;
    min-width: 100px;
    position: relative;
    z-index: 1;
    transition: transform 0.2s ease;
    padding: 8px;
    border-radius: 12px;
}

.stat-item:hover {
    transform: translateY(-2px);
}

.stat-item.highlight-stat .stat-label {
    font-weight: 700;
}

.stat-item.highlight-stat .stat-number {
    color: #0bd776;
}

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

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: #0bd776;
    line-height: 1;
    margin-bottom: 6px;
    animation: numberCountUp 1.2s ease-out;
}

@keyframes numberCountUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat-label {
    font-size: 15px;
    color: #6b7280;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.01em;
    margin-top: 4px;
}

.discovery-member-link {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.discovery-member-link a {
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.discovery-member-link a:hover {
    color: #0bd776;
}

/* Content Sections */
.discovery-section-content {
    margin-top: 25px;
}

.discovery-why,
.discovery-expect {
    margin-bottom: 20px;
}

.discovery-why h2,
.discovery-expect h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
    text-align: center;
}

.discovery-why p,
.discovery-expect p {
    font-size: 16px;
    color: #666;
    line-height: 1.7;
}

.discovery-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 5px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.discovery-list li {
    padding: 8px 0;
    padding-left: 50px;
    position: relative;
    font-size: 18px;
    color: #333;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s ease;
    font-weight: 500;
    line-height: 1.4;
}

.discovery-list li.visible {
    opacity: 1;
    transform: translateX(0);
}

.list-item-animated {
    animation: listItemSlideIn 0.6s ease-out forwards;
    opacity: 0;
}

@keyframes listItemSlideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.discovery-list li::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #0bd776 0%, #08a85f 100%);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(11, 215, 118, 0.6);
    animation: dotPulse 2s ease-in-out infinite;
}

.discovery-list li:hover {
    transform: translateX(5px);
    color: #0bd776;
    font-weight: 600;
}

.discovery-list li:hover::before {
    transform: translateY(-50%) scale(1.3);
    box-shadow: 0 0 20px rgba(11, 215, 118, 0.8);
}

@keyframes dotPulse {
    0%, 100% { transform: translateY(-50%) scale(1); opacity: 1; }
    50% { transform: translateY(-50%) scale(1.5); opacity: 0.7; }
}

.discovery-no-pressure {
    font-style: italic;
    color: #999;
    margin-top: 16px;
}

/* New Fun Ecosystem Design */
.discovery-ecosystem {
    margin-top: 48px;
    padding: 48px 24px;
    background: linear-gradient(180deg, rgba(11, 215, 118, 0.08) 0%, rgba(255, 255, 255, 0) 50%);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.discovery-ecosystem::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #0bd776;
    opacity: 0.8;
}

.discovery-ecosystem h2 {
    font-size: 30px;
    color: #111827;
    margin-bottom: 8px;
    text-align: center;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.ecosystem-intro {
    text-align: center;
    font-size: 18px;
    color: #374151;
    margin-bottom: 40px;
    line-height: 1.6;
    font-weight: 500;
}

.ecosystem-journey {
    max-width: 900px;
    margin: 0 auto;
}

.journey-step {
    background: #ffffff;
    border-radius: 20px;
    padding: 32px 28px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
}

.journey-step:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(11, 215, 118, 0.15), 0 0 0 1px rgba(11, 215, 118, 0.2);
}

.step-1 {
    border-left: 5px solid #0bd776;
}

.step-2 {
    border-left: 5px solid #0bd776;
}

.step-3 {
    border-left: 5px solid #0bd776;
}

.step-icon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 12px;
    display: block;
    animation: stepIconFloat 3s ease-in-out infinite;
}

.step-1 .step-icon { animation-delay: 0s; }
.step-2 .step-icon { animation-delay: 0.2s; }
.step-3 .step-icon { animation-delay: 0.4s; }

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

.journey-step h3 {
    font-size: 24px;
    color: #111827;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.step-description {
    text-align: center;
    color: #6b7280;
    font-size: 16px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.step-items {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

a.ecosystem-item {
    text-decoration: none;
    color: inherit;
}

.ecosystem-item {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    min-width: 130px;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ecosystem-item:hover {
    border-color: #0bd776;
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 24px rgba(11, 215, 118, 0.25);
}

.ecosystem-item.featured {
    background: linear-gradient(135deg, #0bd776, #08a85f);
    border-color: #0bd776;
    color: white;
    box-shadow: 0 4px 16px rgba(11, 215, 118, 0.4);
}

.ecosystem-item.featured:hover {
    background: linear-gradient(135deg, #08a85f, #0bd776);
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 12px 32px rgba(11, 215, 118, 0.5);
}

.ecosystem-item.featured .item-text {
    color: white;
    font-weight: 700;
}

.item-icon {
    font-size: 26px;
    display: block;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.item-text {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.journey-arrow {
    text-align: center;
    font-size: 36px;
    color: #0bd776;
    margin: 16px 0;
    animation: arrowPulse 1.5s ease-in-out infinite;
    opacity: 0.9;
}

@keyframes arrowPulse {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.9; }
    50% { transform: translateY(8px) scale(1.1); opacity: 1; }
}

.ecosystem-motto {
    text-align: center;
    margin-top: 36px;
    padding: 24px 32px;
    background: linear-gradient(135deg, rgba(11, 215, 118, 0.12), rgba(11, 215, 118, 0.06));
    border-radius: 16px;
    border: 2px solid rgba(11, 215, 118, 0.25);
    box-shadow: 0 4px 20px rgba(11, 215, 118, 0.1);
}

.ecosystem-motto p {
    font-size: 18px;
    color: #111827;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.02em;
}

/* ============================================
   BLOG SECTION
   ============================================ */

.blog-section .discovery-container {
    padding-top: 48px;
    padding-bottom: 64px;
}

.blog-back-link {
    display: inline-block;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 600;
    color: #0bd776;
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
}

.blog-back-link:hover {
    color: #08a85f;
    transform: translateX(-2px);
}

.blog-title {
    margin: 0 0 8px 0;
    font-size: 32px;
    font-weight: 800;
    color: #111827;
}

.blog-intro {
    margin: 0 0 32px 0;
    font-size: 16px;
    color: #6b7280;
    line-height: 1.5;
}

.money-marathon-embed {
    max-width: 900px;
    margin: 0 auto;
}

.money-marathon-credit {
    margin-top: 12px;
    font-size: 14px;
    color: #6b7280;
}

.money-marathon-credit a {
    color: #0bd776;
    font-weight: 600;
    text-decoration: none;
}

.money-marathon-credit a:hover {
    color: #08a85f;
}

.money-marathon-referenced {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.money-marathon-referenced-title {
    margin: 0 0 12px 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6b7280;
}

.money-marathon-referenced-item {
    margin: 0;
    font-size: 15px;
    color: #4b5563;
}

.money-marathon-referenced-item a {
    color: #0bd776;
    font-weight: 600;
    text-decoration: none;
}

.money-marathon-referenced-item a:hover {
    color: #08a85f;
    text-decoration: underline;
}

/* Calculators catalog */
.calculators-intro {
    margin: 0 0 36px 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted, #6b7280);
    max-width: 640px;
}

.calculators-catalog {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.calculators-group {
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.calculators-group:last-child {
    border-bottom: none;
}

.calculators-group-title {
    margin: 0 0 16px 0;
    font-size: 20px;
    font-weight: 700;
}

.calculators-group-title a {
    color: var(--accent, #0bd776);
    text-decoration: none;
}

.calculators-group-title a:hover {
    color: #08a85f;
    text-decoration: underline;
}

.calculators-list {
    margin: 0;
    padding-left: 20px;
    list-style: disc;
}

.calculators-list li {
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.5;
}

.calculators-list li a {
    color: var(--accent, #0bd776);
    font-weight: 600;
    text-decoration: none;
}

.calculators-list li a:hover {
    color: #08a85f;
    text-decoration: underline;
}

.podcast-cta-wrap {
    margin: 24px 0 16px 0;
}

.podcast-cta-btn {
    display: inline-block;
    padding: 14px 28px;
    background: #1DB954;
    color: white;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 24px;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(29, 185, 84, 0.35);
}

.podcast-cta-btn:hover {
    background: #1ed760;
    transform: translateY(-2px);
}

.podcast-note {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.referral-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 24px;
}

.referral-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 20px 22px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid #e5e7eb;
}

.referral-main {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.referral-avatar {
    flex: 0 0 72px;
    height: 72px;
    border-radius: 999px;
    overflow: hidden;
    background: linear-gradient(135deg, #0bd776 0%, #08a85f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.referral-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.referral-details {
    flex: 1;
}

.referral-header {
    margin-bottom: 10px;
}

.referral-name {
    margin: 0 0 4px 0;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.referral-role {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.referral-role a {
    color: #0bd776;
    font-weight: 600;
    text-decoration: none;
}

.referral-role a:hover {
    color: #08a85f;
}

.referral-summary {
    margin: 6px 0 10px 0;
    font-size: 14px;
    color: #4b5563;
}

.referral-meta {
    margin: 0 0 8px 0;
    padding: 0;
}

.referral-meta-row {
    display: flex;
    gap: 10px;
    font-size: 13px;
    margin-bottom: 4px;
}

.referral-meta-row dt {
    min-width: 90px;
    font-weight: 600;
    color: #6b7280;
}

.referral-meta-row dd {
    margin: 0;
    color: #111827;
}

.referral-bio {
    margin: 10px 0;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
}

.referral-tags {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.referral-tag {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(11, 215, 118, 0.08);
    color: #047857;
    font-weight: 600;
}

.referral-links {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.referral-link {
    font-size: 14px;
    font-weight: 600;
    color: #0bd776;
    text-decoration: none;
}

.referral-link:hover {
    color: #08a85f;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.blog-card {
    display: block;
    padding: 24px 28px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.blog-card:hover {
    border-color: #0bd776;
    box-shadow: 0 8px 24px rgba(11, 215, 118, 0.15);
    transform: translateY(-2px);
}

/* Pinned post – featured style */
.blog-card--pinned {
    padding: 28px 32px;
    border-color: #0bd776;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    box-shadow: 0 4px 20px rgba(11, 215, 118, 0.12);
}

.blog-card--pinned:hover {
    border-color: #08a85f;
    box-shadow: 0 8px 28px rgba(11, 215, 118, 0.2);
}

.blog-card-pin {
    display: inline-block;
    margin-bottom: 12px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #059669;
    background: rgba(11, 215, 118, 0.15);
    border-radius: 6px;
}

.blog-card--pinned .blog-card-title {
    font-size: 22px;
}

.blog-card-title {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.blog-card-date {
    display: block;
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 12px;
}

.blog-card-excerpt {
    margin: 0 0 12px 0;
    font-size: 15px;
    color: #4b5563;
    line-height: 1.6;
}

.blog-card-link {
    font-size: 14px;
    font-weight: 600;
    color: #0bd776;
}

.blog-empty {
    margin: 0;
    padding: 32px;
    text-align: center;
    color: #6b7280;
    font-size: 16px;
}

.blog-article {
    max-width: 680px;
    margin: 0 auto;
}

.blog-post-title {
    margin: 0 0 12px 0;
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    line-height: 1.3;
}

.blog-post-date {
    display: block;
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 28px;
}

.blog-post-body {
    font-size: 16px;
    line-height: 1.7;
    color: #374151;
}

.blog-post-body p {
    margin: 0 0 16px 0;
}

.blog-post-body p:last-child {
    margin-bottom: 0;
}

.blog-post-body a {
    color: #0bd776;
    font-weight: 600;
    text-decoration: underline;
}

.blog-figure {
    margin: 24px 0;
}

.blog-figure-img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.blog-figure figcaption {
    margin-top: 12px;
    font-size: 14px;
    color: #9ca3af;
}

.blog-canva-caption {
    margin-top: 8px !important;
    font-size: 14px;
    color: #9ca3af;
}

/* 401(k) comparison graphic */
.blog-401k-comparison {
    margin: 28px 0;
    padding: 24px;
    background: linear-gradient(135deg, #f8faf9 0%, #ffffff 100%);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.blog-401k-inputs {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 32px;
    margin-bottom: 12px;
}

.blog-401k-input-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.blog-401k-input-label {
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
}

.blog-401k-salary-input,
.blog-401k-contrib-input {
    width: 140px;
    padding: 10px 14px;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-variant-numeric: tabular-nums;
    box-sizing: border-box;
}

.blog-401k-salary-input:focus,
.blog-401k-contrib-input:focus {
    outline: none;
    border-color: #0bd776;
    box-shadow: 0 0 0 3px rgba(11, 215, 118, 0.2);
}

.blog-401k-disclaimer {
    font-size: 12px;
    color: #9ca3af;
    margin: 0 0 20px 0 !important;
    line-height: 1.5;
}

.blog-401k-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 2px solid #e5e7eb;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.blog-401k-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.blog-401k-section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-top: 16px;
    margin-bottom: 8px;
}

.blog-401k-section-label:first-child {
    margin-top: 0;
}

.blog-401k-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: baseline;
    min-height: 36px;
}

.blog-401k-grid-row .blog-401k-cell:first-child {
    padding-right: 24px;
}

.blog-401k-grid-row .blog-401k-cell:last-child {
    padding-left: 24px;
    border-left: 1px solid #e5e7eb;
}

.blog-401k-cell {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 15px;
}

.blog-401k-cell:empty {
    min-height: 0;
}

.blog-401k-value-wrap {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.blog-401k-taxrate {
    font-size: 13px;
    font-weight: 500;
    color: #9ca3af;
}

.blog-401k-subtotal-line {
    height: 0;
    width: 100%;
    border-bottom: 1px dashed #d1d5db;
    margin: 6px 0 4px 0;
}

.blog-401k-grid-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 12px 0;
    width: 100%;
}

.blog-401k-row-result .blog-401k-value {
    font-size: 17px;
    font-weight: 700;
}

.blog-401k-total-cell .blog-401k-value {
    color: #059669;
    font-size: 18px;
}

/* legacy row class for highlight */
.blog-401k-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 15px;
}

.blog-401k-label {
    color: #4b5563;
    margin-right: 12px;
}

.blog-401k-value {
    font-weight: 600;
    color: #111827;
    font-variant-numeric: tabular-nums;
}

.blog-401k-row.blog-401k-highlight .blog-401k-value,
.blog-401k-cell.blog-401k-highlight .blog-401k-value {
    color: #059669;
}

.blog-401k-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 8px 0;
}

.blog-401k-grid-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 12px 0;
    width: 100%;
}

.blog-401k-row.blog-401k-result {
    padding-top: 4px;
}

.blog-401k-row.blog-401k-result .blog-401k-value {
    font-size: 17px;
    font-weight: 700;
}

.blog-401k-row.blog-401k-total .blog-401k-value {
    color: #059669;
    font-size: 18px;
}

.blog-401k-takeaway {
    margin-top: 24px;
    padding: 16px 20px;
    background: rgba(11, 215, 118, 0.08);
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
    border-left: 4px solid #0bd776;
}

.blog-401k-takeaway strong {
    color: #111827;
}

@media (max-width: 600px) {
    .blog-401k-comparison {
        padding: 16px;
    }
    .blog-401k-grid-row {
        gap: 16px;
    }
    .blog-401k-grid-row .blog-401k-cell:first-child {
        padding-right: 12px;
    }
    .blog-401k-grid-row .blog-401k-cell:last-child {
        padding-left: 12px;
    }
    .blog-401k-header {
        grid-template-columns: 1fr 1fr;
    }
}

/* 401(k) growth illustration calculator */
.blog-401k-growth-calc {
    margin: 28px 0;
    padding: 24px;
    background: linear-gradient(135deg, #f8faf9 0%, #ffffff 100%);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.blog-401k-growth-header {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
}

.blog-401k-growth-disclaimer {
    font-size: 12px;
    color: #9ca3af;
    margin: 0 0 20px 0 !important;
}

.blog-401k-growth-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px 24px;
}

.blog-401k-growth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.blog-401k-growth-label {
    font-size: 12px;
    font-weight: 600;
    color: #4b5563;
}

.blog-401k-growth-field input {
    padding: 10px 12px;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-variant-numeric: tabular-nums;
    box-sizing: border-box;
}

.blog-401k-growth-field input:focus {
    outline: none;
    border-color: #0bd776;
    box-shadow: 0 0 0 3px rgba(11, 215, 118, 0.2);
}

.blog-401k-growth-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 20px 0 16px 0;
}

.blog-401k-growth-outputs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.blog-401k-growth-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 15px;
}

.blog-401k-growth-outlabel {
    color: #4b5563;
    margin-right: 12px;
}

.blog-401k-growth-balance,
.blog-401k-growth-fees,
.blog-401k-growth-monthly {
    font-weight: 700;
    color: #111827;
    font-variant-numeric: tabular-nums;
}

.blog-401k-growth-row-last .blog-401k-growth-monthly {
    color: #059669;
    font-size: 17px;
}

/* Inflation-adjusted calculator */
.blog-inflation-calc {
    margin: 28px 0;
    padding: 24px;
    background: linear-gradient(135deg, #f0f4f3 0%, #ffffff 100%);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.blog-inflation-header {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
}

.blog-inflation-disclaimer {
    font-size: 12px;
    color: #9ca3af;
    margin: 0 0 16px 0 !important;
}

.blog-inflation-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.blog-inflation-label {
    font-size: 12px;
    font-weight: 600;
    color: #4b5563;
}

.blog-inflation-rate {
    width: 100%;
    max-width: 120px;
    padding: 10px 12px;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-variant-numeric: tabular-nums;
    box-sizing: border-box;
}

.blog-inflation-rate:focus {
    outline: none;
    border-color: #0bd776;
    box-shadow: 0 0 0 3px rgba(11, 215, 118, 0.2);
}

.blog-inflation-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 20px 0 16px 0;
}

.blog-inflation-outputs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.blog-inflation-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 15px;
}

.blog-inflation-outlabel {
    color: #4b5563;
    margin-right: 12px;
}

.blog-inflation-balance,
.blog-inflation-monthly {
    font-weight: 700;
    color: #111827;
    font-variant-numeric: tabular-nums;
}

.blog-inflation-row-last .blog-inflation-monthly {
    color: #059669;
    font-size: 17px;
}

/* Rule of 72 graphic */
.blog-rule72 {
    margin: 28px 0;
    padding: 28px 28px 24px;
    background: linear-gradient(160deg, #0a0f0d 0%, #111827 100%);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative;
}

.blog-rule72-brand {
    position: absolute;
    top: 14px;
    right: 18px;
}

.blog-rule72-logo {
    height: 32px;
    width: auto;
    opacity: 0.9;
}

.blog-rule72-mmm-fallback {
    display: inline-block;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #0bd776;
}

.blog-rule72-title {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

.blog-rule72-formula {
    font-size: 17px;
    font-weight: 600;
    color: #0bd776;
    margin-bottom: 20px;
    font-variant-numeric: tabular-nums;
}

.blog-rule72-interactive {
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    margin-bottom: 16px;
}

.blog-rule72-label {
    display: block;
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 10px;
}

.blog-rule72-rate-input {
    display: block;
    width: 100%;
    max-width: 140px;
    padding: 12px 16px;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 16px;
    font-variant-numeric: tabular-nums;
    box-sizing: border-box;
}

.blog-rule72-rate-input:focus {
    outline: none;
    border-color: #0bd776;
    box-shadow: 0 0 0 3px rgba(11, 215, 118, 0.2);
}

.blog-rule72-output {
    font-size: 17px;
    color: #ffffff;
    margin-bottom: 8px;
}

.blog-rule72-output-label {
    color: #9ca3af;
    margin-right: 6px;
}

.blog-rule72-years {
    font-weight: 700;
    color: #0bd776;
    font-variant-numeric: tabular-nums;
}

.blog-rule72-result-line {
    font-size: 15px;
    color: #0bd776;
    font-weight: 600;
}

.blog-rule72-note {
    font-size: 13px;
    color: #9ca3af;
    line-height: 1.5;
}

.blog-canva-caption a {
    color: #0bd776;
    text-decoration: none;
}

.blog-canva-caption a:hover {
    text-decoration: underline;
}

.blog-post-body .blog-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
}
.blog-post-body .blog-table th,
.blog-post-body .blog-table td {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    text-align: left;
}
.blog-post-body .blog-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #111827;
}
.blog-post-body .blog-table td {
    color: #4b5563;
}
.blog-post-body .blog-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.blog-post-body a:hover {
    color: #08a85f;
}

.discovery-personal-touch {
    margin-top: 48px;
    margin-bottom: 24px;
    padding: 32px 36px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.06);
    text-align: center;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.personal-content {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.personal-headshot {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
    margin-bottom: 20px;
    border: 3px solid #e5e7eb;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.personal-intro {
    font-size: 17px;
    color: #374151;
    line-height: 1.65;
    margin-bottom: 12px;
    font-weight: 400;
}

.personal-intro strong {
    color: #0bd776;
}

.personal-intro-name {
    color: #0bd776;
    text-decoration: none;
}

.personal-intro-name:hover {
    color: #08a85f;
    text-decoration: underline;
    font-weight: 600;
}

.personal-content .discovery-btn-primary {
    margin-top: 24px;
}

.discovery-footer {
    margin-top: 20px;
    padding-top: 15px;
    text-align: center;
}

.footer-location {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
}

.discovery-footer p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Money Map Lite Form */
.money-map-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.money-map-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #0bd776, #08a85f, #0bd776);
    background-size: 200% 100%;
    animation: gradientShift 3s linear infinite;
}

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

.form-back-to-home {
    display: inline-block;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 600;
    color: #0bd776;
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
}

.form-back-to-home:hover {
    color: #08a85f;
    transform: translateX(-2px);
}

.form-header-text {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.form-header-text h1 {
    font-size: 32px;
    color: #111827;
    margin-bottom: 8px;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.form-subtitle {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.5;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #0bd776;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0bd776 0%, #08a85f 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(11, 215, 118, 0.4);
    animation: stepNumberPulse 2s ease-in-out infinite;
}

@keyframes stepNumberPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.form-step.active .step-number {
    animation: stepNumberCelebrate 0.6s ease-out;
}

@keyframes stepNumberCelebrate {
    0% { transform: scale(0) rotate(0deg); }
    50% { transform: scale(1.3) rotate(180deg); }
    100% { transform: scale(1) rotate(360deg); }
}

.form-step h2 {
    font-size: 28px;
    color: #333;
    margin: 0;
    font-weight: 700;
}

/* Priorities step - 3 distinct lines */
.priorities-intro {
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 20px;
    line-height: 1.5;
}

.priorities-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.priority-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.priority-row:focus-within {
    border-color: #374151;
    box-shadow: 0 0 0 2px rgba(55, 65, 81, 0.1);
}

.priority-num {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    flex-shrink: 0;
}

.priority-row input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    padding: 0;
    outline: none;
}

.priority-row input::placeholder {
    color: #9ca3af;
}

.priority-row:has(input.error) {
    border-color: #ef4444;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #374151;
    background: white;
    box-shadow: 0 0 0 2px rgba(55, 65, 81, 0.15);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #ff4444;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-group.error {
    border: 2px solid #ff4444;
    padding: 12px;
    border-radius: 8px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 3px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
}

.radio-option::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: #0bd776;
    transform: scaleY(0);
    transition: transform 0.3s ease;
    border-radius: 12px 0 0 12px;
}

.radio-option:hover {
    border-color: #0bd776;
    background: #f0fdf4;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(11, 215, 118, 0.15);
}

.radio-option:hover::after {
    transform: scaleY(1);
}

.radio-option input[type="radio"]:checked + span {
    font-weight: 700;
    color: #0bd776;
}

.radio-option:has(input[type="radio"]:checked) {
    border-color: #0bd776;
    background: #f0fdf4;
    box-shadow: 0 4px 12px rgba(11, 215, 118, 0.2);
}

.radio-option:has(input[type="radio"]:checked)::after {
    transform: scaleY(1);
}

/* Remove checkmarks from radio options */
.radio-option::before {
    display: none;
}

.radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.radio-option span {
    font-size: 16px;
    color: #333;
}

.form-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    gap: 16px;
}

.form-btn-next,
.form-btn-back,
.form-btn-submit {
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.form-btn-next,
.form-btn-submit {
    background: linear-gradient(135deg, #0bd776 0%, #08a85f 100%);
    color: white;
    margin-left: auto;
    box-shadow: 0 6px 20px rgba(11, 215, 118, 0.4);
}

.form-btn-next:hover,
.form-btn-submit:hover {
    background: linear-gradient(135deg, #08a85f 0%, #0bd776 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(11, 215, 118, 0.6);
}

.form-btn-submit {
    animation: submitPulse 2s ease-in-out infinite;
}

@keyframes submitPulse {
    0%, 100% { box-shadow: 0 6px 20px rgba(11, 215, 118, 0.4); }
    50% { box-shadow: 0 6px 30px rgba(11, 215, 118, 0.7), 0 0 0 8px rgba(11, 215, 118, 0.1); }
}

.form-btn-back {
    background: #f0f0f0;
    color: #333;
}

.form-btn-back:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

/* Newsletter-only: open at Contact step, hide Back so they only submit */
#money-map-form.newsletter-only .form-step[data-step="5"] .form-btn-back {
    display: none;
}

.form-progress {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0bd776, #08a85f, #0bd776);
    background-size: 200% 100%;
    transition: width 0.5s ease;
    width: 20%;
    border-radius: 4px;
    animation: progressGlow 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(11, 215, 118, 0.5);
}

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

.progress-text {
    font-size: 14px;
    color: #666;
    text-align: center;
    display: block;
}

/* Thanks Page */
.thanks-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 20px 20px 60px;
    position: relative;
}

.celebration-container {
    position: relative;
    margin-bottom: 20px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.celebration-icon {
    font-size: 40px;
    animation: celebrationBounce 1s ease-in-out infinite;
    display: inline-block;
}

@keyframes celebrationBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(-5deg); }
    75% { transform: translateY(-10px) rotate(5deg); }
}

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

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #0bd776;
    animation: confettiFall 3s ease-out infinite;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(500px) rotate(720deg);
        opacity: 0;
    }
}

.thanks-headline {
    font-size: 42px;
    background: linear-gradient(135deg, #333 0%, #0bd776 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    font-weight: 700;
    animation: headlineSlideIn 0.8s ease-out;
}

.thanks-message {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 50px;
}

.thanks-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.thanks-option-card {
    padding: 40px 30px;
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
    border-radius: 20px;
    border: 3px solid #e0e0e0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.thanks-option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(11, 215, 118, 0.15), transparent);
    transition: left 0.6s ease;
}

.thanks-option-card:hover::before {
    left: 100%;
}

.thanks-option-card:hover {
    border-color: #0bd776;
    box-shadow: 0 12px 40px rgba(11, 215, 118, 0.3);
    transform: translateY(-8px) scale(1.02);
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.card-icon {
    font-size: 48px;
    margin-bottom: 20px;
    animation: iconFloat 2s ease-in-out infinite;
    display: block;
}

.thanks-option-card:hover .card-icon {
    animation: iconCelebrate 0.6s ease-out;
}

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

@keyframes iconCelebrate {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.3) rotate(180deg); }
    100% { transform: scale(1) rotate(360deg); }
}

.thanks-option-card h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 12px;
    font-weight: 700;
}

.thanks-option-card p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.thanks-btn {
    background: linear-gradient(135deg, #0bd776 0%, #08a85f 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(11, 215, 118, 0.3);
    position: relative;
    overflow: hidden;
}

.thanks-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.thanks-btn:hover::before {
    width: 300px;
    height: 300px;
}

.thanks-btn:hover {
    background: linear-gradient(135deg, #08a85f 0%, #0bd776 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(11, 215, 118, 0.5);
}

.pulse-btn {
    animation: buttonPulse 2s ease-in-out infinite;
}

.thanks-btn .btn-arrow {
    transition: transform 0.3s ease;
}

.thanks-btn:hover .btn-arrow {
    transform: translateX(5px);
}

.newsletter-card {
    border-top: 4px solid #0bd776;
}

.money-clearly-card {
    border-top: 4px solid #4a90e2;
}

.login-card {
    border-top: 4px solid #333;
}

.card-success-message {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #0bd776 0%, #08a85f 100%);
    color: white;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    animation: successSlideIn 0.5s ease-out;
}

@keyframes successSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.success-icon {
    font-size: 18px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.thanks-option h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 12px;
}

.thanks-option p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.newsletter-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    cursor: pointer;
}

.newsletter-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.thanks-btn {
    width: 100%;
    padding: 12px 24px;
    background: #0bd776;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thanks-btn:hover {
    background: #08a85f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11, 215, 118, 0.3);
}

.thanks-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Form field success state */
.form-group input:valid:not(:placeholder-shown),
.form-group textarea:valid:not(:placeholder-shown),
.form-group select:valid {
    border-color: #0bd776;
    background: #f0fdf4;
}

.form-group input:valid:not(:placeholder-shown)::after,
.form-group textarea:valid:not(:placeholder-shown)::after {
    content: '✓';
    position: absolute;
    right: 10px;
    color: #0bd776;
    font-weight: bold;
}

/* Loading state for submit */
.form-btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    animation: none;
}

.form-btn-submit.loading {
    position: relative;
    color: transparent;
}

.form-btn-submit.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .discovery-headline {
        font-size: 36px;
    }
    
    .discovery-subheadline {
        font-size: 17px;
    }
    
    .hero-badge {
        font-size: 12px;
        padding: 6px 16px;
    }
    
    .discovery-stats {
        gap: 20px;
        padding: 25px 15px;
    }
    
    .stat-number {
        font-size: 42px;
    }
    
    .stat-label {
        font-size: 13px;
    }
    
    .discovery-personal-touch {
        padding: 25px 20px;
        margin-top: 30px;
        margin-bottom: 25px;
    }
    
    .personal-headshot {
        width: 100px;
        height: 100px;
        margin-bottom: 16px;
    }
    
    .personal-intro {
        font-size: 15px;
    }
    
    .footer-location {
        font-size: 13px;
    }
    
    .discovery-list li {
        padding: 10px 0;
        font-size: 16px;
    }
    
    .discovery-expect {
        margin-bottom: 15px;
    }
    
    .discovery-section-content {
        margin-top: 20px;
    }
    
    .discovery-ecosystem {
        margin-top: 25px;
        padding: 30px 15px;
    }
    
    .ecosystem-intro {
        margin-bottom: 20px;
    }
    
    .journey-step {
        padding: 25px 20px;
        margin-bottom: 15px;
    }
    
    .ecosystem-motto {
        margin-top: 25px;
        padding: 15px;
    }
    
    .discovery-mascot {
        width: 150px;
        height: 150px;
    }
    
    .discovery-mascot-head {
        width: 90px;
        height: 90px;
    }
    
    .discovery-btn-primary {
        padding: 16px 36px;
        font-size: 16px;
    }
    
    .thanks-options {
        grid-template-columns: 1fr;
    }
    
    .ecosystem-center {
        width: 180px;
        height: 180px;
        font-size: 13px;
    }
    
    .form-header-text h1 {
        font-size: 32px;
    }
    
    .step-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* ============================================
   AUTHENTICATION MODAL - AMAZING ANIMATIONS
   ============================================ */


