* {
    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;
    }
}

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


