:root {
    --primary: #FF6B6B;
    --secondary: #4D96FF;
    --accent-1: #FFD93D;
    --accent-2: #6BCB77;
    --bg-color: #F7FBFF;
    --text-color: #2D3436;
    --white: #FFFFFF;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --font-main: 'Quicksand', sans-serif;
    --font-heading: 'Fredoka One', cursive;
    --font-alt: 'Outfit', sans-serif;
}

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

body {
    font-family: 'Quicksand', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .logo {
    font-family: 'Fredoka One', cursive;
}

/* Header Styles */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-link {
    text-decoration: none !important;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: block;
}

.logo-link:hover .logo-let {
    animation: logo-wiggle 0.3s infinite alternate ease-in-out;
}

.logo-link:hover .logo-let:nth-child(even) { animation-duration: 0.25s; animation-delay: 0.1s; }
.logo-link:hover .logo-let:nth-child(3n) { animation-duration: 0.35s; animation-delay: 0.05s; }
.logo-link:hover .logo-let:nth-child(4n) { animation-duration: 0.4s; }

@keyframes logo-wiggle {
    0% { transform: translate(0, 0) rotate(0); }
    33% { transform: translate(1px, -1px) rotate(-2deg); }
    66% { transform: translate(-1px, 1px) rotate(2deg); }
    100% { transform: translate(0.5px, -0.5px) rotate(-1deg); }
}

.logo {
    font-size: 2.5rem;
    letter-spacing: 2px;
}

/* Sequential Logo Wave Animation with Bursts */
.logo-let {
    display: inline-block;
    transition: transform 0.3s;
    animation: logo-wave 10s infinite ease-in-out;
}

.logo-let:nth-child(1) { animation-delay: 0.1s; }
.logo-let:nth-child(2) { animation-delay: 0.2s; }
.logo-let:nth-child(3) { animation-delay: 0.3s; }
.logo-let:nth-child(4) { animation-delay: 0.4s; }
.logo-let:nth-child(5) { animation-delay: 0.5s; }
.logo-let:nth-child(6) { animation-delay: 0.6s; }
.logo-let:nth-child(7) { animation-delay: 0.7s; }
.logo-let:nth-child(8) { animation-delay: 0.8s; }

@keyframes logo-wave {
    0%, 8%, 100% { transform: translateY(0) rotate(0deg); text-shadow: none; filter: brightness(1); }
    4% { 
        transform: translateY(-15px) rotate(10deg); 
        text-shadow: 0 0 20px rgba(255,255,255,1), 0 0 10px rgba(77, 150, 255, 0.8); 
        filter: brightness(1.5);
    }
}

.bob-c { color: var(--primary); }
.logo-4-c { color: var(--accent-2); }
.kids-c { color: var(--secondary); }

.main-nav, .nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
    flex: 1;
    margin-left: 60px;
}

.nav-actions-container {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.login-btn-header:hover {
    background: rgba(77, 150, 255, 0.1) !important;
    transform: translateY(-2px);
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border-radius: 15px;
}

.nav-link:hover, .nav-link.active {
    background-color: var(--secondary);
    color: var(--white);
    transform: translateY(-3px);
}

.search-bar {
    display: flex;
    background: #EEE;
    padding: 10px 20px;
    border-radius: 50px;
}

.search-bar input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 1rem;
    width: 200px;
}

.search-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.2rem;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 5%;
    background: linear-gradient(135deg, var(--secondary), var(--accent-1));
    color: var(--white);
    border-radius: 0 0 50px 50px;
    margin-bottom: 40px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.1);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-btn {
    display: inline-block;
    text-decoration: none !important;
    white-space: nowrap;
    background: var(--accent-2);
    color: var(--text-color);
    border: none;
    padding: 15px 40px;
    font-size: 1.5rem;
    font-family: 'Fredoka One', cursive;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.cta-btn:hover {
    transform: scale(1.1) rotate(-2deg);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.main-actions-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
}

/* Page Components: Global Hero Headers */
/* Page Components: Global Hero Headers */
.page-hero {
    padding: 80px 5%;
    text-align: center;
    color: white;
    border-radius: 0 0 60px 60px;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

/* Individual Hero Themes */
.hero-shows { background: linear-gradient(135deg, #FF6B6B, #FF8E8E); }
.hero-favorites { background: linear-gradient(135deg, #FF4D96, #FF96C5); }
.hero-shield { background: linear-gradient(135deg, #4D96FF, #6BCB77); }
.hero-profile { background: linear-gradient(135deg, #6BCB77, #A1EB9A); }
.hero-pricing { background: linear-gradient(135deg, #FFD93D, #FF6B6B); }
.hero-register { background: linear-gradient(135deg, #FF96C5, #4D96FF); }
.hero-learning { background: linear-gradient(135deg, #A29BFE, #6C5CE7); }

/* Floating Decorative Emblems */
.hero-bg-icon {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15rem;
    opacity: 0.1;
    pointer-events: none;
}

.page-hero h1 { 
    font-size: 3.5rem; 
    margin-bottom: 15px; 
    font-family: var(--font-heading);
    text-shadow: 2px 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
}
.page-hero p { 
    font-size: 1.3rem; 
    opacity: 0.9; 
    max-width: 800px; 
    margin: 0 auto; 
    font-family: var(--font-alt);
    position: relative;
    z-index: 2;
}

.shows-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    padding: 0 5%;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 30px;
    border-radius: 30px;
    border: 3px solid #EEE;
    background: white;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    transform: translateY(-3px);
}

.filter-btn.active {
    background: var(--secondary);
    border-color: var(--secondary);
    color: white;
    box-shadow: 0 10px 25px rgba(77, 150, 255, 0.2);
}

.watch-btn {
    background: var(--secondary) !important;
    color: white !important;
    padding: 10px 25px !important;
    font-size: 1.1rem !important;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 15px;
    font-family: 'Outfit', sans-serif !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
}

.watch-btn i {
    font-size: 0.9rem;
}

.watch-btn:hover {
    background: var(--primary) !important;
    transform: translateY(-2px) !important;
}

.hero-image {
    width: 45%;
}

.placeholder-img {
    width: 100%;
    height: 350px;
    background: rgba(255,255,255,0.2);
    border-radius: 40px;
    backdrop-filter: blur(10px);
    border: 3px dashed rgba(255,255,255,0.5);
}

/* Video Section */
.video-section {
    padding: 40px 5%;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 6px;
    background: var(--accent-2);
    border-radius: 3px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.video-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    border: 4px solid transparent;
}

.video-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: var(--accent-2);
}

.thumbnail {
    width: 100%;
    height: 200px;
    background-color: #EEE;
    position: relative;
    overflow: hidden;
}

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

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover .play-overlay {
    opacity: 1;
}

.video-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.3);
    backdrop-filter: blur(5px);
    z-index: 5;
}

.video-progress-inner {
    height: 100%;
    background: var(--secondary);
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(77, 150, 255, 0.4);
}

.play-icon {
    font-size: 3rem;
    color: var(--white);
}

.video-info-card {
    padding: 20px;
}

.video-info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--text-color);
}

.category-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--bg-color);
    color: var(--secondary);
}


.flipper-book-container {
    perspective: 2000px;
    display: flex;
    justify-content: center;
    padding: 0;
    margin-top: 40px;
    background: radial-gradient(circle, #fcfcfc, #f0f0f0);
    border-radius: 40px;
}

.flipper-book {
    width: 1100px; /* Base interior spread width */
    height: 700px;
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
    margin: 0 auto;
    
    /* Initially center the CLOSED cover: 
       Move book so its center (550px) aligns with viewport center,
       but the visible half (550-1100) is what we center.
       Center of cover is at 825px. Target is 550px.
       -275px shift does the trick. */
    transform: translateX(-275px) scale(1);
    transform-origin: center center;
}

.flipper-book.book-opened {
    /* Center the full double spread */
    transform: translateX(0) scale(1); 
}

/* Dynamic Scaling for smaller wide-screens */
@media (max-width: 1400px) {
    .flipper-book { transform: translateX(-240px) scale(0.85); }
    .flipper-book.book-opened { transform: translateX(0) scale(0.85); }
}

@media (max-width: 1150px) {
    .flipper-book { transform: translateX(-200px) scale(0.7); }
    .flipper-book.book-opened { transform: translateX(0) scale(0.7); }
}

.flipper-page {
    width: 550px; /* Half width of book */
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    transform-origin: left;
    transition: transform 1.2s cubic-bezier(0.645, 0.045, 0.355, 1);
    transform-style: preserve-3d;
    z-index: 10;
}

.flipper-page.flipped {
    transform: rotateY(-180deg);
}

/* Fix 3D Hitbox Interception: Hidden faces should ignore pointers */
.flipper-page.flipped .flipper-front,
.flipper-page:not(.flipped) .flipper-back {
    pointer-events: none !important;
}

.flipper-page.flipped .flipper-back,
.flipper-page:not(.flipped) .flipper-front {
    pointer-events: all;
}

/* Page Sides: Front and Back */
.flipper-front, .flipper-back {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: #fff;
    padding: 70px;
    backface-visibility: hidden;
    box-shadow: inset 5px 0 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 0 20px 20px 0;
}

.flipper-back {
    transform: rotateY(180deg);
    border-radius: 20px 0 0 20px;
    box-shadow: inset -5px 0 15px rgba(0,0,0,0.05);
}

.page-number {
    position: absolute;
    bottom: 25px;
    right: 35px;
    font-family: var(--font-alt);
    font-weight: 700;
    color: #999;
    font-size: 0.9rem;
    pointer-events: none; /* Make unclickable */
    user-select: none;
}

.flipper-back .page-number {
    right: auto;
    left: 35px;
}

/* The Engaging Cover */
.book-cover-front {
    background: #4a2c2a !important; /* Dark Brown Leather */
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.05) 0%, transparent 80%),
        repeating-linear-gradient(45deg, rgba(0,0,0,0.05) 0, rgba(0,0,0,0.05) 1px, transparent 1px, transparent 2px) !important;
    color: #e5c07b !important; /* Golden Text */
    text-align: center;
    border: 8px solid #3d2422 !important;
    box-shadow: inset 0 0 60px rgba(0,0,0,0.4), 10px 10px 30px rgba(0,0,0,0.3) !important;
    border-radius: 0 15px 15px 0 !important;
}

.book-cover-front h1 {
    font-family: 'Fredoka One', cursive;
    font-size: 3.5rem;
    margin-top: 20px;
    margin-bottom: 20px;
    color: #e5c07b;
    text-shadow: 2px 2px 0px #2a1816, 0 0 20px rgba(229,192,123,0.3);
    text-transform: uppercase;
}

.book-cover-front p {
    font-size: 1.4rem !important;
    color: #c9a96e !important;
    font-style: italic;
    opacity: 0.85;
}

/* Gold Corner Detail */
.book-cover-front::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, transparent 50%, #e5c07b 50%);
    border-radius: 0 0 15px 0;
    opacity: 0.6;
}

/* Static Left Base Page (Upscaled) */
.page-base-left {
    position: absolute;
    left: 0;
    top: 0;
    width: 550px;
    height: 100%;
    background: #fdfdfd;
    padding: 70px;
    box-shadow: inset -5px 0 15px rgba(0,0,0,0.05);
    border: 1px solid #ddd;
    border-radius: 20px 0 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 0; /* Changed from 1 to prevent Z-fighting with flipped leaves */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.book-opened .page-base-left {
    opacity: 1;
    pointer-events: all;
}

/* Spine and Texture (Removed) */
.book-spine-central {
    display: none !important;
}

.flipper-book h2 {
    font-family: 'Fredoka One', cursive;
    color: var(--primary);
    margin-bottom: 20px;
}

.flipper-book p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #555;
    font-family: var(--font-alt);
}

/* Unified Book Corner Interactions */
.book-corner {
    position: absolute;
    width: 200px;
    height: 200px;
    bottom: 0;
    cursor: pointer;
    z-index: 200;
    background: transparent;
    transition: all 0.3s ease;
}

.book-corner::before {
    content: '';
    position: absolute;
    bottom: 0;
    width: 0;
    height: 0;
    transition: all 0.4s ease;
    z-index: 201;
}

/* Next Page (Bottom Right) */
.corner-next {
    right: 0;
}

.flipper-front:not(.book-cover-front) .corner-next::before {
    right: 0;
    background: linear-gradient(135deg, #fff 50%, #f0f0f0 50%);
    box-shadow: -5px -5px 15px rgba(0,0,0,0.1);
    border-radius: 0 0 20px 0;
}

.flipper-front:not(.book-cover-front) .corner-next:hover::before {
    width: 100px;
    height: 100px;
}

/* Previous Page (Bottom Left) */
.corner-prev {
    left: 0;
}

.flipper-back .corner-prev::before {
    left: 0;
    background: linear-gradient(225deg, #fff 50%, #f0f0f0 50%);
    box-shadow: 5px -5px 15px rgba(0,0,0,0.1);
    border-radius: 0 0 0 20px;
}

.flipper-back .corner-prev:hover::before {
    width: 100px;
    height: 100px;
}

.book-page {
    flex: 1;
    padding: 60px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.page-left {
    border-right: 1px solid #eee;
    background: linear-gradient(to right, #fdfdfd, #fff);
}

.page-right {
    background: linear-gradient(to left, #fdfdfd, #fff);
}

.book-page h2 {
    font-family: 'Fredoka One', cursive;
    color: var(--primary);
    margin-bottom: 25px;
    font-size: 2.2rem;
}

.book-page p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #444;
    font-family: var(--font-alt);
}

.book-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

/* Responsive Book */
@media (max-width: 1000px) {
    .book { width: 95%; flex-direction: column; height: auto; transform: none; border-left: 10px solid #d63031; }
    .book-page { padding: 40px; }
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--white);
    width: 90%;
    max-width: 1000px;
    border-radius: 40px;
    padding: 40px;
    position: relative;
    animation: modalPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--primary);
}

/* Video Player Enhancements */
.video-player-container {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.video-js {
    font-family: 'Quicksand', sans-serif;
    border-radius: 30px;
}

.vjs-big-play-button {
    background-color: var(--primary) !important;
    border-radius: 50% !important;
    width: 80px !important;
    height: 80px !important;
    line-height: 80px !important;
    border: none !important;
    top: 50% !important;
    left: 50% !important;
    margin-top: -40px !important;
    margin-left: -40px !important;
}

.vjs-big-play-button:hover {
    background-color: var(--secondary) !important;
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.vjs-control-bar {
    background: rgba(0,0,0,0.7) !important;
}

.video-info h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Learning Page Styles */
.learning-container {
    padding: 80px 10%;
    max-width: 1200px;
    margin: 0 auto;
}

.learning-header {
    text-align: center;
    margin-bottom: 60px;
}

.learning-header h1 {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.learning-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.learning-card {
    background: var(--white);
    padding: 50px 30px;
    border-radius: 40px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.learning-card:hover {
    transform: translateY(-10px);
}

.learning-card i {
    color: var(--secondary);
    margin-bottom: 25px;
}

.learning-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.learning-cta {
    margin-top: 60px;
    text-align: center;
}

/* Show Page Styles */
.show-container {
    padding: 40px 5%;
}

.show-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: var(--white);
    padding: 20px 40px;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.show-title-area h2 {
    font-size: 2.5rem;
    color: var(--primary);
}

.show-actions {
    display: flex;
    gap: 15px;
}

.action-btn, .cta-btn, .small-action {
    padding: 12px 25px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-family: var(--font-main);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.btn-fav { background: #FFE5E5; color: var(--primary); }
.btn-save { background: #E5F0FF; color: var(--secondary); }

.action-btn:hover {
    filter: brightness(0.9);
    transform: scale(1.05);
}

.show-main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.episodes-panel {
    background: var(--white);
    padding: 30px;
    border-radius: 40px;
    box-shadow: var(--shadow);
}

.episode-row {
    padding: 20px;
    border-bottom: 2px solid #F5F7FA;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: background 0.3s ease;
    border-radius: 15px;
}

.episode-row:hover {
    background: #F9FAFB;
}

.ep-num {
    background: var(--secondary);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
}

.ep-info h4 { font-size: 1.1rem; }

/* Subscription/Pricing Section */
.pricing-section {
    padding: 80px 5%;
    text-align: center;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    padding: 0 5%;
}

.pricing-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 40px;
    transition: all 0.3s ease;
    border: 4px solid transparent;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow);
}

.pricing-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.pricing-card.standard { border-color: var(--secondary); background: #f0f7ff; }
.pricing-card.premium { border-color: var(--primary); background: #fff5f5; }

.price {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    margin: 30px 0;
    color: var(--text-color);
}

.price span { font-size: 1.2rem; opacity: 0.6; }

.features-list {
    list-style: none;
    margin-bottom: 40px;
    text-align: left;
}

.features-list li {
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.features-list li::before {
    content: '✨';
}

/* Authentication Modal Overlay */
.auth-overlay, .modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    z-index: 5000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.auth-card {
    background: var(--white);
    width: 95%;
    max-width: 900px;
    padding: 60px;
    border-radius: 40px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    text-align: center;
    animation: modalPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.auth-step {
    display: none;
}

/* Auth Toggle Styles */
.auth-toggle-btn {
    border: none;
    background: transparent;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    padding: 12px 30px;
    border-radius: 30px;
    cursor: pointer;
    color: var(--text-color);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.auth-toggle-btn.active {
    background: var(--secondary);
    color: white;
    opacity: 1;
    box-shadow: 0 10px 20px rgba(77, 150, 255, 0.2);
}

#login-required-alert {
    animation: slideDown 0.5s ease-out;
}

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

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.form-group input {
    width: 100%;
    padding: 15px 25px;
    border-radius: 20px;
    border: 2px solid #EEE;
    font-size: 1rem;
    font-family: var(--font-alt);
    margin-bottom: 20px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: var(--secondary);
    outline: none;
}

.auth-step.active {
    display: block;
}

.form-group {
    text-align: left;
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--text-color);
}

.form-group select, .form-group input {
    width: 100%;
    padding: 15px 20px;
    border-radius: 15px;
    border: 2px solid #EEE;
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.form-group select:focus {
    border-color: var(--secondary);
}

/* World Map Selector */
.world-map-selector {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 1;
    background: #EAF2FF;
    border-radius: 30px;
    overflow: hidden;
    margin: 20px 0;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.05);
    border: 3px dashed #BDC3C7;
}

.map-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    filter: saturate(0.8);
}

.continent-region {
    position: absolute;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid white;
    padding: 10px 18px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 5;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    white-space: nowrap;
}

.continent-label {
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--text-color);
    font-size: 0.85rem;
}

.continent-region:hover {
    background: var(--secondary);
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 15px 30px rgba(77, 150, 255, 0.4);
}

.continent-region:hover .continent-label {
    color: white;
}

.continent-region.selected {
    background: var(--primary);
    border-color: white;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
    transform: scale(1.1);
}

.continent-region.selected .continent-label {
    color: white;
}

/* Precise Map Mapping (Approximate for stylized kids map) */
.continent-region.americas { top: 40%; left: 15%; }
.continent-region.europe { top: 25%; left: 45%; }
.continent-region.africa { top: 55%; left: 48%; }
.continent-region.asia { top: 30%; left: 70%; }
.continent-region.oceania { top: 75%; left: 78%; }

/* Country Grid Selection */
.country-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}

.country-item {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px !important;
    font-size: 1.1rem;
}

.mini-flag {
    width: 32px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* User Profile & Family */
.profiles-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 30px;
}

.profile-bubble {
    text-align: center;
    transition: transform 0.3s ease;
}

.profile-bubble img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 5px solid var(--secondary);
    margin-bottom: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    object-fit: cover;
}

.profile-bubble span {
    display: block;
    font-weight: 800;
    font-family: var(--font-heading);
}

.add-child-btn {
    width: 100%;
    height: 120px;
    border-radius: 25px;
    border: 3px dashed var(--secondary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: var(--secondary);
    font-weight: 800;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #F9FBFF;
    grid-column: 1 / -1; /* Make it span the full width of the grid for emphasis */
}

.add-child-btn:hover {
    background: rgba(77, 150, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.add-child-btn i {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

/* Small Pricing Grid for Modal */
.small-grid {
    gap: 15px !important;
    margin-top: 20px !important;
}

.modal-plan {
    padding: 30px 20px !important;
    cursor: pointer;
    border: 3px solid transparent !important;
}

.modal-plan h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.modal-plan .price {
    font-size: 1.8rem;
    margin: 10px 0;
}

.premium-badge {
    background: var(--primary);
    color: white;
    font-size: 0.6rem;
    padding: 3px 10px;
    border-radius: 12px;
    vertical-align: middle;
    margin-left: 8px;
    text-transform: uppercase;
}

/* User Profile Dropdown */
.user-profile-trigger {
    position: relative;
    cursor: pointer;
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 220px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 10px;
    display: none;
    z-index: 1000;
    margin-top: 10px;
    animation: slideDown 0.3s ease;
}

.user-dropdown-menu.active {
    display: block;
}

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

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
    border-radius: 12px;
    transition: background 0.3s;
    border: none;
    background: none;
    font-size: 1rem;
    cursor: pointer;
}

.dropdown-item:hover {
    background: var(--bg-color);
    color: var(--secondary);
}

.dropdown-item i {
    width: 25px;
}

.user-dropdown-menu hr {
    border: none;
    border-top: 1px solid #EEE;
    margin: 8px 0;
}

/* Dashboard Styles */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.dash-section {
    background: #F9FAFB;
    padding: 25px;
    border-radius: 25px;
    text-align: left;
}

.dash-section h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #444;
}

.dash-section.full-width {
    grid-column: 1 / -1;
}

.plan-info-box {
    background: white;
    padding: 15px 20px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;
}

.shield-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 12px 20px;
    border-radius: 15px;
    margin-bottom: 10px;
}

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

/* Registration Wizard Pages */
.register-main {
    padding: 60px 0;
    background: var(--bg-color);
    min-height: 80vh;
}

.register-wizard-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    padding: 60px;
    border-radius: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    text-align: center;
}

.reg-page-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.reg-page-step.active {
    display: block;
}

.reg-page-step h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: var(--primary);
}

.back-link {
    background: none;
    border: none;
    color: var(--text-color);
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 20px;
    display: inline-block;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.back-link:hover {
    opacity: 1;
}

/* Dashboard Sidebar & Core Layout */
.dashboard-container {
    display: flex;
    max-width: 1400px;
    margin: 40px auto;
    gap: 40px;
    padding: 0 40px;
}

.dashboard-sidebar {
    flex: 0 0 280px;
    background: white;
    padding: 30px;
    border-radius: 30px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: fit-content;
    position: sticky;
    top: 120px;
}

.dash-user-card {
    text-align: center;
    padding-bottom: 30px;
    border-bottom: 1px solid #EEE;
    margin-bottom: 30px;
}

.dash-user-card i {
    color: var(--secondary);
    margin-bottom: 15px;
}

.dash-user-card h3 {
    font-size: 1.2rem;
    color: var(--text-color);
}

.dash-user-card p {
    font-size: 0.85rem;
    opacity: 0.6;
}

.dash-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dash-nav-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border: none;
    background: none;
    border-radius: 15px;
    font-weight: 700;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
}

.dash-nav-btn:hover, .dash-nav-btn.active {
    background: var(--bg-color);
    color: var(--secondary);
}

.dashboard-main-content {
    flex: 1;
}

.dash-tab {
    display: none;
}

.dash-tab.active {
    display: block;
}

.plan-hero-box {
    background: var(--bg-color);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
}

.plan-hero-box h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.plan-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.cancel-plan {
    background: #FFEDED;
    color: #E74C3C;
}

/* Profiles Mini View */
.mini-profiles .profile-bubble img {
    width: 70px;
    height: 70px;
}

/* Premium Badges */
.shield-badge {
    background: rgba(77, 150, 255, 0.1);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    margin: 10px 0;
}

/* Refined Shield Controls */
.shield-control-item {
    background: white;
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 20px;
    border: 1px solid #EEE;
    transition: transform 0.3s;
}

.shield-control-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.shield-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.shield-label-row label {
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--text-color);
}

.shield-label-row label i {
    color: var(--secondary);
    margin-right: 10px;
}

.shield-desc {
    font-size: 0.85rem;
    line-height: 1.5;
    opacity: 0.7;
    margin: 0;
}

/* Editable Profiles */
.profile-editable {
    position: relative;
}

.profile-actions {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s;
}

.profile-editable:hover .profile-actions {
    opacity: 1;
}

.small-action {
    background: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    color: var(--text-color);
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    font-size: 0.8rem;
}

.rename-btn:hover { background: var(--secondary); color: white; }
.remove-btn:hover { background: #E74C3C; color: white; }

/* Dashboard Card Tweaks */
.card h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Premium BOB Cards */
.bob-card, .dash-section.card, .reg-page-step {
    background: white !important;
    border-radius: 40px !important;
    padding: 50px !important;
    box-shadow: 0 25px 70px rgba(0,0,0,0.07) !important;
    border: 1px solid rgba(0,0,0,0.02) !important;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.bob-card:hover, .dash-section.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(0,0,0,0.1) !important;
}

/* Update Register Wizard */
.register-wizard-container {
    max-width: 900px !important;
    margin: 60px auto !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Update Dashboard */
.account-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.plan-hero-box {
    background: #F8FAFF;
    border-radius: 30px;
    padding: 40px;
}

/* Generic Form Inside Cards */
.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-color);
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 18px 25px;
    border-radius: 20px;
    border: 2px solid #F0F0F0;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus {
    border-color: var(--secondary);
    outline: none;
    background: #F9FBFF;
}

/* Mini Card for User Sidebar */
.dash-user-card {
    background: #FFF;
    padding: 30px;
    border-radius: 30px;
    margin-bottom: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
}

/* Confirmation Modal Enhancement */
.confirmation-card {
    background: white;
    padding: 60px;
    border-radius: 40px;
    max-width: 550px;
    text-align: center;
}

/* Premium BOB Toggle Switch */
.bob-toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.bob-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.bob-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #E2E8F0;
    transition: .3s;
    border-radius: 34px;
}

.bob-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

input:checked + .bob-slider {
    background-color: var(--secondary);
}

input:checked + .bob-slider:before {
    transform: translateX(24px);
}

/* Update Shield Controls Layout */
.shield-label-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.shield-label-row label {
    font-size: 1.1rem;
    cursor: pointer;
    margin: 0;
}

/* Plan Comparison Grid */
.comparison-modal-card {
    max-width: 1100px !important;
}

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

.plan-compare-box {
    background: #F9FBFF;
    border: 3px solid transparent;
    border-radius: 35px;
    padding: 40px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.plan-compare-box.current-plan-highlight {
    border-color: var(--secondary);
    background: white;
    box-shadow: 0 20px 50px rgba(77, 150, 255, 0.1);
}

.plan-compare-box .plan-header h4 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.plan-compare-box .price {
    font-size: 2.5rem;
    margin: 20px 0;
}

.compare-features {
    list-style: none;
    margin: 30px 0;
    padding: 0;
    flex-grow: 1;
    text-align: left;
}

.compare-features li {
    margin-bottom: 12px;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.compare-features .gain i { color: #27AE60; }
.compare-features .loss { opacity: 0.4; text-decoration: line-through; }
.compare-features .loss i { color: #E74C3C; }

.select-plan-btn {
    width: 100%;
    padding: 15px;
    border-radius: 20px;
    border: none;
    background: var(--secondary);
    color: white;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
}

.select-plan-btn:hover:not(:disabled) {
    background: var(--primary);
    transform: translateY(-3px);
}

.popular-tag {
    display: inline-block;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    padding: 5px 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-weight: 800;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .dashboard-container { flex-direction: column; padding: 20px; }
    .dashboard-sidebar { flex: none; width: 100%; position: static; }
    .dash-nav { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 768px) {
    .register-wizard-container { padding: 0 20px; }
    .reg-page-step, .bob-card, .dash-section.card { padding: 30px !important; border-radius: 25px !important; }
}

/* Main Footer */
.main-footer {
    padding: 80px 5%;
    background: #2D3436;
    color: white;
    text-align: center;
}

.main-footer .logo-link {
    display: inline-block;
    margin-bottom: 20px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.main-footer .logo-link:hover {
    transform: scale(1.05);
}

.main-footer p {
    opacity: 0.8;
    font-weight: 600;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .show-main-grid { grid-template-columns: 1fr; }
    .learning-header h1 { font-size: 2.5rem; }
}
