/* ============================================
   Brain Bank - Custom Styles
   ============================================ */

/* --- General --- */
:root {
    --bb-primary: #4361ee;
    --bb-secondary: #3f37c9;
    --bb-accent: #f72585;
    --bb-gold: #ffd60a;
    --bb-green: #06d6a0;
    --bb-orange: #fb8500;
    --bb-dark: #1a1a2e;
    --bb-light: #f8f9fa;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: #f0f2f5;
    min-height: 100vh;
}

/* --- Homepage Hero --- */
.hero-section {
    background: linear-gradient(135deg, var(--bb-primary) 0%, var(--bb-secondary) 50%, var(--bb-accent) 100%);
    color: white;
    padding: 3rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 520px;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 0;
}

.hero-section > * {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}

.hero-section .brain-icon {
    font-size: 5rem;
    animation: brainBounce 2s ease-in-out infinite;
    display: inline-block;
}

@keyframes brainBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    25% { transform: translateY(-10px) scale(1.05); }
    50% { transform: translateY(0) scale(1); }
    75% { transform: translateY(-5px) scale(1.02); }
}

/* Floating elements in hero */
.hero-floating {
    position: absolute;
    z-index: 1;
    opacity: 0.15;
    font-size: 2rem;
    animation: floatUp 6s ease-in-out infinite;
    pointer-events: none;
}

.hero-floating:nth-child(1) { left: 5%; top: 20%; animation-delay: 0s; animation-duration: 7s; }
.hero-floating:nth-child(2) { left: 15%; top: 60%; animation-delay: 1s; animation-duration: 5s; }
.hero-floating:nth-child(3) { left: 80%; top: 15%; animation-delay: 2s; animation-duration: 8s; }
.hero-floating:nth-child(4) { left: 90%; top: 55%; animation-delay: 0.5s; animation-duration: 6s; }
.hero-floating:nth-child(5) { left: 50%; top: 80%; animation-delay: 3s; animation-duration: 7s; }
.hero-floating:nth-child(6) { left: 30%; top: 10%; animation-delay: 1.5s; animation-duration: 9s; }
.hero-floating:nth-child(7) { left: 70%; top: 75%; animation-delay: 2.5s; animation-duration: 5.5s; }
.hero-floating:nth-child(8) { left: 45%; top: 40%; animation-delay: 4s; animation-duration: 6.5s; }

@keyframes floatUp {
    0% { transform: translateY(0) rotate(0deg); opacity: 0.15; }
    25% { opacity: 0.25; }
    50% { transform: translateY(-30px) rotate(10deg); opacity: 0.2; }
    75% { opacity: 0.25; }
    100% { transform: translateY(0) rotate(0deg); opacity: 0.15; }
}

/* Hero stats counter */
.hero-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
    min-width: 80px;
}

.hero-stat .stat-number {
    font-size: 2rem;
    font-weight: 800;
    display: block;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

.hero-stat .stat-label {
    font-size: 0.85rem;
    opacity: 0.85;
    font-weight: 600;
}

/* Hero board image */
.hero-board-img {
    max-width: 340px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    border: 4px solid rgba(255,255,255,0.3);
    animation: boardFloat 4s ease-in-out infinite;
}

@keyframes boardFloat {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-12px) rotate(2deg); }
}

/* Bouncy play button */
.btn-play {
    background: linear-gradient(135deg, var(--bb-green), #118ab2);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 1rem 3rem;
    font-weight: 700;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    animation: playBounce 2s ease-in-out infinite;
    box-shadow: 0 6px 20px rgba(6, 214, 160, 0.4);
}

.btn-play:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 30px rgba(6, 214, 160, 0.5);
    color: white;
    animation: none;
}

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

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

/* --- Subject Cards --- */
.subject-card {
    border: none;
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.subject-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.subject-card .icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.subject-card .label {
    font-size: 1.1rem;
    font-weight: 700;
}

.subject-card.math { background: linear-gradient(135deg, #4361ee, #3a0ca3); color: white; }
.subject-card.english { background: linear-gradient(135deg, #ffd60a, #fb8500); color: #333; }
.subject-card.spelling { background: linear-gradient(135deg, #06d6a0, #118ab2); color: white; }
.subject-card.science { background: linear-gradient(135deg, #7209b7, #560bad); color: white; }
.subject-card.cyber { background: linear-gradient(135deg, #00b4d8, #0077b6); color: white; }
.subject-card.heart { background: linear-gradient(135deg, #f72585, #b5179e); color: white; }

/* --- Scenario Cards --- */
.scenario-card {
    border: none;
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.scenario-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.scenario-card.doodad { background: linear-gradient(135deg, #fb8500, #e76f51); color: white; }
.scenario-card.opportunity { background: linear-gradient(135deg, #06d6a0, #2dc653); color: white; }

.scenario-card .icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* --- Player Avatars --- */
.avatar-row {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0;
    justify-content: center;
    flex-wrap: wrap;
}

.avatar-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 15px;
    border: 3px solid transparent;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.avatar-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.avatar-btn.active {
    border-color: var(--bb-primary);
    background: #e8edff;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.avatar-btn .emoji {
    font-size: 2.5rem;
}

.avatar-btn .name {
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 0.25rem;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.avatar-btn .age-badge {
    font-size: 0.7rem;
    background: var(--bb-primary);
    color: white;
    border-radius: 10px;
    padding: 0.1rem 0.5rem;
    margin-top: 0.2rem;
}

/* --- Timer --- */
.timer-display {
    font-size: 2.5rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 2px;
    color: var(--bb-primary);
    text-align: center;
}

.timer-display.warning {
    color: var(--bb-orange);
    animation: timerPulse 1s infinite;
}

.timer-display.danger {
    color: var(--bb-accent);
    animation: timerPulse 0.5s infinite;
}

@keyframes timerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.timer-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.timer-bar-fill {
    height: 100%;
    background: var(--bb-primary);
    transition: width 1s linear;
    border-radius: 3px;
}

.timer-bar-fill.warning { background: var(--bb-orange); }
.timer-bar-fill.danger { background: var(--bb-accent); }

/* --- Stamp Animation --- */
.stamp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
}

.stamp-overlay.show {
    animation: stampAppear 1.5s ease forwards;
    pointer-events: auto;
}

.stamp-image {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(220,53,69,0.9) 0%, rgba(220,53,69,0) 70%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    transform: scale(3) rotate(-15deg);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    border: 8px solid rgba(255,255,255,0.8);
    box-shadow: 0 0 30px rgba(220,53,69,0.5);
}

@keyframes stampAppear {
    0% {
        opacity: 0;
        transform: scale(3) rotate(-15deg);
    }
    20% {
        opacity: 1;
        transform: scale(0.8) rotate(5deg);
    }
    30% {
        transform: scale(1.1) rotate(-3deg);
    }
    40% {
        transform: scale(1) rotate(0deg);
    }
    70% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: scale(1) rotate(0deg);
    }
}

/* --- Player Entry Form --- */
.player-entry-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 1rem;
}

.player-entry-card .player-emoji {
    font-size: 3rem;
    text-align: center;
}

/* --- Game Screen Layout --- */
.game-container {
    max-width: 100%;
    padding: 1rem;
}

.game-header {
    background: white;
    border-radius: 20px;
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    margin-bottom: 1rem;
}

.game-body {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.game-main {
    flex: 1;
    min-width: 300px;
}

.game-sidebar {
    width: 280px;
}

@media (max-width: 768px) {
    .game-sidebar {
        width: 100%;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .timer-display {
        font-size: 1.8rem;
    }
    
    .subject-card {
        padding: 1rem;
        min-height: 90px;
    }
    
    .subject-card .icon {
        font-size: 2rem;
    }
}

/* --- Feature Cards (Homepage) --- */
.feature-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    height: 100%;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
}

.feature-card .feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--bb-primary);
}

/* --- Subscription Section --- */
.subscription-card {
    background: linear-gradient(135deg, #f72585, #7209b7);
    color: white;
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.subscription-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
}

/* --- SweetAlert2 Custom Classes --- */
.swal2-popup.brainbank-swal {
    border-radius: 20px;
    font-family: 'Nunito', sans-serif;
}

.swal2-popup.brainbank-swal .swal2-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
}

.swal2-popup.brainbank-swal .swal2-html-container {
    font-size: 1.1rem;
    line-height: 1.8;
}

.swal2-popup.question-swal {
    border-left: 6px solid var(--bb-primary);
}

.swal2-popup.correct-swal {
    border-left: 6px solid var(--bb-green);
}

.swal2-popup.incorrect-swal {
    border-left: 6px solid var(--bb-accent);
}

.swal2-popup.scenario-swal {
    border-left: 6px solid var(--bb-orange);
}

/* --- Question Text Styling --- */
.question-text {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.6;
    color: #333;
    margin-bottom: 1rem;
}

.answer-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--bb-green);
    padding: 0.75rem;
    background: #e8f5e9;
    border-radius: 10px;
    margin-bottom: 0.75rem;
}

.fun-fact {
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
    padding: 0.5rem;
    background: #fff8e1;
    border-radius: 10px;
    border-left: 4px solid var(--bb-gold);
}

/* --- Difficulty Stars --- */
.difficulty-stars {
    display: inline-block;
}

/* --- Game Score Tracker --- */
.score-tracker {
    background: white;
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.score-tracker h6 {
    font-weight: 700;
    color: var(--bb-primary);
}

.score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid #eee;
}

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

/* --- Misc --- */
.btn-brain {
    background: linear-gradient(135deg, var(--bb-primary), var(--bb-secondary));
    color: white;
    border: none;
    border-radius: 15px;
    padding: 0.75rem 2rem;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-brain:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.4);
    color: white;
}

.btn-play {
    background: linear-gradient(135deg, var(--bb-green), #118ab2);
    color: white;
    border: none;
    border-radius: 15px;
    padding: 1rem 3rem;
    font-weight: 700;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(6, 214, 160, 0.4);
    color: white;
}

.text-shadow {
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* Toggle Switch */
.form-switch .form-check-input {
    width: 3em;
    height: 1.5em;
}

.form-switch .form-check-input:checked {
    background-color: var(--bb-primary);
    border-color: var(--bb-primary);
}

/* ============================================
   HOMEPAGE UI/UX ENHANCEMENTS
   ============================================ */

/* --- Enhanced Feature Cards --- */
.feature-card {
    background: white;
    border-radius: 24px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 6px 25px rgba(0,0,0,0.07);
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(67,97,238,0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px) rotate(-1deg);
    box-shadow: 0 15px 40px rgba(67,97,238,0.15);
    border-color: var(--bb-primary);
}

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

.feature-card .feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    position: relative;
    z-index: 1;
}

.feature-card:hover .feature-icon {
    animation: iconWiggle 0.5s ease-in-out;
}

@keyframes iconWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg) scale(1.1); }
    50% { transform: rotate(10deg) scale(1.1); }
    75% { transform: rotate(-5deg) scale(1.05); }
}

.feature-card .step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: white;
}

.step-badge.step-1 { background: linear-gradient(135deg, #4361ee, #3a0ca3); }
.step-badge.step-2 { background: linear-gradient(135deg, #f72585, #b5179e); }
.step-badge.step-3 { background: linear-gradient(135deg, #06d6a0, #118ab2); }

/* --- Enhanced Subject Cards --- */
.subject-card {
    border: none;
    border-radius: 24px;
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.subject-card::before {
    content: '✨';
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
}

.subject-card:hover::before {
    opacity: 1;
    transform: scale(1.3);
}

.subject-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.subject-card .icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    transition: transform 0.3s;
}

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

.subject-card .label {
    font-size: 1.1rem;
    font-weight: 700;
}

.subject-card .tagline {
    font-size: 0.75rem;
    opacity: 0.85;
    margin-top: 0.25rem;
    font-weight: 600;
}

/* --- Singaporean Scenario Cards (Storybook Style) --- */
.scenario-item {
    background: white;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border-left: 5px solid transparent;
    margin-bottom: 0.75rem;
}

.scenario-item:hover {
    transform: translateX(6px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
}

.scenario-item.expense {
    border-left-color: var(--bb-orange);
}

.scenario-item.opportunity {
    border-left-color: var(--bb-green);
}

.scenario-item .scenario-emoji {
    font-size: 2rem;
    display: inline-block;
    animation: emojiBounce 3s ease-in-out infinite;
}

.scenario-item:nth-child(2) .scenario-emoji { animation-delay: 0.3s; }
.scenario-item:nth-child(3) .scenario-emoji { animation-delay: 0.6s; }

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

.scenario-item .money-badge {
    font-size: 0.85rem;
    font-weight: 800;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    white-space: nowrap;
}

.money-badge.expense-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
}

.money-badge.opportunity-badge {
    background: linear-gradient(135deg, #06d6a0, #2dc653);
    color: white;
}

/* --- Testimonials Section --- */
.testimonials-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
}

.testimonial-card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    color: white;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
    height: 100%;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-5px);
}

.testimonial-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
    background: rgba(255,255,255,0.2);
    border: 3px solid rgba(255,255,255,0.4);
}

.testimonial-quote {
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.testimonial-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.testimonial-age {
    font-size: 0.8rem;
    opacity: 0.75;
}

/* --- Enhanced Subscription Card --- */
.subscription-card {
    background: linear-gradient(135deg, #f72585, #7209b7, #3a0ca3);
    color: white;
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 3px solid rgba(255,214,10,0.3);
}

.subscription-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,214,10,0.1) 0%, transparent 60%);
    animation: shimmer 3s ease-in-out infinite;
}

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

.subscription-card .crown-icon {
    font-size: 4rem;
    display: inline-block;
    animation: crownGlow 2s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(255,214,10,0.5));
}

@keyframes crownGlow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(255,214,10,0.3)); transform: scale(1); }
    50% { filter: drop-shadow(0 0 25px rgba(255,214,10,0.6)); transform: scale(1.05); }
}

.premium-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.premium-feature i {
    color: var(--bb-gold);
    font-size: 1.1rem;
}

/* --- Enhanced Footer --- */
.fun-footer {
    background: linear-gradient(135deg, var(--bb-dark) 0%, #16213e 100%);
    color: white;
    padding: 2.5rem 0 1.5rem;
    position: relative;
}

.fun-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f72585, #ffd60a, #06d6a0, #4361ee, #f72585);
    background-size: 200% auto;
    animation: rainbowSlide 3s linear infinite;
}

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

.fun-footer .footer-brand {
    font-size: 1.5rem;
    font-weight: 800;
}

.fun-footer .footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 600;
}

.fun-footer .footer-links a:hover {
    color: var(--bb-gold);
}

.fun-footer .footer-hearts {
    font-size: 1.2rem;
}

/* --- Section Title Enhancements --- */
.section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(135deg, var(--bb-primary), var(--bb-accent));
}

.section-subtitle {
    color: #666;
    font-weight: 600;
    font-size: 1.05rem;
}

/* --- Wave Divider --- */
.wave-divider {
    position: relative;
    height: 60px;
    overflow: hidden;
}

.wave-divider svg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 60px;
}

/* --- Responsive Enhancements --- */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 2rem 0 3rem;
    }

    .hero-section h1 {
        font-size: 2.2rem;
    }

    .hero-board-img {
        max-width: 220px;
        margin-top: 1.5rem;
    }

    .hero-stats {
        gap: 1rem;
    }

    .hero-stat .stat-number {
        font-size: 1.5rem;
    }

    .subject-card {
        padding: 1rem;
        min-height: 110px;
    }

    .subject-card .icon {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .subscription-card {
        padding: 2rem;
    }
}

/* --- Sparkle Effect --- */
.sparkle {
    position: relative;
    display: inline-block;
}

.sparkle::before,
.sparkle::after {
    content: '✦';
    position: absolute;
    font-size: 0.7rem;
    color: var(--bb-gold);
    opacity: 0;
    animation: sparkleAnim 2s ease-in-out infinite;
}

.sparkle::before {
    top: -8px;
    right: -8px;
    animation-delay: 0s;
}

.sparkle::after {
    top: -4px;
    left: -10px;
    animation-delay: 1s;
}

@keyframes sparkleAnim {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1.2); }
}
