/* =======================================================
   COZMICLEARNING — VIBRANT GALAXY ARCADE THEME
   Modern Design System with Glassmorphism, Colors & Animation
======================================================= */

/* ==================== COLOR PALETTE ==================== */
:root {
    /* Primary Palette - Vibrant & Bold */
    --color-primary: #5c6bff;
    --color-primary-light: #7683ff;
    --color-primary-dark: #4451d8;
    
    /* Accent Colors - Rainbow Spectrum */
    --color-accent-cyan: #00f2ff;
    --color-accent-pink: #ff6fd8;
    --color-accent-gold: #ffdd55;
    --color-accent-green: #4caf50;
    --color-accent-purple: #c084fc;
    --color-accent-orange: #ff9500;
    --color-accent-red: #ff6b6b;
    --color-accent-lime: #84ff00;
    
    /* Neutrals */
    --color-bg-dark: #0a0e27;
    --color-bg-darker: #050813;
    --color-text-primary: #f7fbff;
    --color-text-secondary: #c4d1ff;
    --color-text-muted: #8a92b3;
    
    /* Surfaces - More translucent for vibrancy */
    --color-surface-light: rgba(255, 255, 255, 0.12);
    --color-surface-medium: rgba(255, 255, 255, 0.16);
    --color-surface-dark: rgba(0, 0, 0, 0.3);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
    
    /* Background Gradients - More Dynamic */
    --bg-gradient-main: linear-gradient(135deg, #0a0e27 0%, #050813 100%);
    --bg-gradient-premium: linear-gradient(135deg, 
        rgba(10, 14, 39, 0.95) 0%, 
        rgba(5, 8, 19, 0.98) 100%);
    --bg-nebula: radial-gradient(
        circle at 50% 0%, 
        rgba(86, 162, 255, 0.2) 0%, 
        transparent 50%),
        radial-gradient(
        circle at 0% 80%, 
        rgba(255, 204, 112, 0.15) 0%, 
        transparent 50%),
        radial-gradient(
        circle at 100% 60%, 
        rgba(192, 132, 252, 0.18) 0%, 
        transparent 50%),
        radial-gradient(
        circle at 20% 30%,
        rgba(0, 242, 255, 0.12) 0%,
        transparent 50%);
}

/* ==================== GLOBAL LAYOUT ==================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--color-text-primary);
    overflow-x: hidden;
    position: relative;
    background: radial-gradient(circle at top, #0f1a3d 0%, var(--color-bg-darker) 40%, #000000 100%);
    line-height: 1.6;
}

/* Star & nebula layers */
body::before {
    content: "";
    position: fixed;
    inset: -40px;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 2px, transparent 2px),
        radial-gradient(circle at 10% 10%, rgba(0, 255, 255, 0.12), transparent 60%),
        radial-gradient(circle at 85% 70%, rgba(255, 95, 162, 0.18), transparent 65%);
    background-size: 200px 200px, 300px 300px, 400px 400px, cover, cover;
    opacity: 0.25;
    z-index: -3;
    animation: skyDrift 80s linear infinite;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 50% 0%, rgba(86, 162, 255, 0.15), transparent 65%),
        radial-gradient(circle at 0% 80%, rgba(255, 204, 112, 0.09), transparent 60%),
        radial-gradient(circle at 100% 60%, rgba(132, 94, 255, 0.16), transparent 60%);
    mix-blend-mode: screen;
    z-index: -2;
    pointer-events: none;
}

@keyframes skyDrift {
    from { transform: translate3d(0,0,0); }
    to   { transform: translate3d(0,-1600px,0); }
}

/* Soft fade-in for pages */
.fade-in {
    animation: fadeIn 0.7s ease-out both;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(14px) scale(0.99); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------------- PAGE TITLES ---------------- */

.page-title {
    text-align: center;
    font-size: 3.3rem;
    font-weight: 900;
    margin-top: 40px;
    letter-spacing: 1px;
    background: linear-gradient(120deg, #6fe1ff, #ffffff, #ffc96f, #ff7ee5);
    -webkit-background-clip: text;
    color: transparent;
    text-shadow:
        0 0 16px rgba(103, 208, 255, 0.6),
        0 0 28px rgba(0, 0, 0, 0.9);
    position: relative;
}

/* Glow underline below big titles */
.page-title::after {
    content: "";
    display: block;
    width: 130px;
    height: 4px;
    margin: 14px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #00f2ff, #ffdd55, #ff6fd8);
    box-shadow: 0 0 18px rgba(255,255,255,0.7);
}

/* ---------------- GENERIC CONTENT BOX ---------------- */

.content-box {
    width: 80%;
    max-width: 1100px;
    margin: 35px auto 60px;
    padding: 28px 32px;
    border-radius: 24px;
    background: radial-gradient(circle at top left, rgba(255,255,255,0.18), rgba(19,34,76,0.9));
    backdrop-filter: blur(18px);
    box-shadow:
        0 22px 55px rgba(0, 0, 0, 0.8),
        0 0 35px rgba(74, 158, 255, 0.38);
    position: relative;
    overflow: hidden;
}

/* Orbit lines inside cards/boxes */
.content-box::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    border: 1px dashed rgba(151, 199, 255, 0.2);
    top: -150px;
    right: -120px;
    transform: rotate(18deg);
}

.content-box::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.16);
    bottom: -120px;
    left: -80px;
    transform: rotate(-12deg);
}

/* =======================================================
   CHARACTER IMAGERY
======================================================= */

.character-universal,
.character-img,
.character-select-img,
.buddy-avatar,
.avatar-img {
    width: 190px;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto 16px;
    transition: transform 0.28s ease, filter 0.28s ease;
    filter:
        drop-shadow(0 0 14px rgba(0, 255, 255, 0.75))
        drop-shadow(0 0 26px rgba(85, 0, 230, 0.7));
}

.character-large { width: 250px; }
.character-small { width: 130px; }

.character-float {
    animation: floatCharacter 3s ease-in-out infinite;
}
@keyframes floatCharacter {
    0%   { transform: translateY(0) scale(1); }
    50%  { transform: translateY(-14px) scale(1.02); }
    100% { transform: translateY(0) scale(1); }
}

.character-card:hover .character-img,
.character-card:hover .character-universal,
.character-card:hover .buddy-avatar {
    transform: translateY(-8px) scale(1.03);
    filter:
        drop-shadow(0 0 20px rgba(0, 255, 255, 0.9))
        drop-shadow(0 0 30px rgba(255, 153, 255, 0.7));
}

/* =======================================================
   BUTTONS — ARCADE NEON
======================================================= */

.btn,
.btn-blue,
.btn-light,
.btn-glow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 26px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    border: none;
    outline: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    letter-spacing: 0.4px;
}

/* Primary neon */
.btn-blue {
    background: linear-gradient(135deg, #43f3ff, #228dff, #6a4bff);
    color: #ffffff;
    box-shadow:
        0 0 18px rgba(71, 193, 255, 0.65),
        0 14px 28px rgba(0, 0, 0, 0.65);
}

.btn-blue:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow:
        0 0 22px rgba(134, 214, 255, 0.95),
        0 18px 35px rgba(0, 0, 0, 0.8);
}

/* Soft glass button */
.btn-light {
    background: radial-gradient(circle at top, rgba(255,255,255,0.22), rgba(140, 178, 255, 0.06));
    color: #f5fbff;
    border: 1px solid rgba(178, 211, 255, 0.5);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
}

.btn-light:hover {
    background: radial-gradient(circle at top, rgba(255,255,255,0.32), rgba(140, 178, 255, 0.12));
    transform: translateY(-2px);
}

/* Arcade orange / call-to-action */
.btn-glow {
    padding-inline: 30px;
    background: linear-gradient(135deg, #ffb347, #ff6f3c, #ff4088);
    color: #1b0500;
    box-shadow:
        0 0 18px rgba(255, 152, 56, 0.8),
        0 14px 28px rgba(0, 0, 0, 0.7);
}

.btn-glow:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow:
        0 0 26px rgba(255, 200, 120, 1),
        0 18px 34px rgba(0, 0, 0, 0.85);
}

/* Generic .btn if used alone */
.btn {
    background: linear-gradient(135deg, #00e0ff, #0d7bff);
    color: white;
    box-shadow: 0 10px 24px rgba(0,0,0,0.6);
}

.btn:hover {
    transform: translateY(-2px) scale(1.03);
}

/* =======================================================
   CARDS / PANELS
======================================================= */

.card {
    background: linear-gradient(145deg, rgba(34, 48, 92, 0.96), rgba(11, 18, 42, 0.96));
    width: 70%;
    max-width: 1000px;
    margin: 35px auto;
    padding: 32px 34px;
    border-radius: 24px;
    box-shadow:
        0 22px 55px rgba(0, 0, 0, 0.9),
        0 0 24px rgba(89, 175, 255, 0.5);
    backdrop-filter: blur(16px);
    animation: cardPop 0.7s ease forwards;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(86, 162, 255, 0.3);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow:
        0 22px 55px rgba(0, 0, 0, 0.9),
        0 0 28px rgba(86, 162, 255, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(86, 162, 255, 0.6);
    transform: translateY(-2px);
}

.card::before {
    content: "";
    position: absolute;
    width: 160%;
    height: 3px;
    top: 0;
    left: -30%;
    background: linear-gradient(90deg, transparent, #00e6ff, #ffdd55, #c084fc, transparent);
    opacity: 0.7;
}

@keyframes cardPop {
    from { transform: scale(0.96) translateY(18px); opacity: 0; }
    to   { transform: scale(1) translateY(0); opacity: 1; }
}

/* =======================================================
   STATS / DASHBOARD CHIPS
======================================================= */

.stats-row {
    display: flex;
    justify-content: center;
    gap: 22px;
    margin: 25px auto 40px;
    flex-wrap: wrap;
}

.stat-box {
    background: linear-gradient(145deg, rgba(92, 107, 255, 0.22), rgba(86, 162, 255, 0.18));
    padding: 18px 22px;
    border-radius: 18px;
    min-width: 150px;
    text-align: center;
    box-shadow: 0 12px 24px rgba(0,0,0,0.6);
    border: 1px solid rgba(86, 162, 255, 0.6);
    transition: all 0.3s ease;
}

.stat-box:hover {
    background: linear-gradient(145deg, rgba(92, 107, 255, 0.3), rgba(86, 162, 255, 0.25));
    box-shadow: 0 12px 30px rgba(86, 162, 255, 0.4);
    transform: translateY(-3px);
}

.stat-box h3 {
    margin: 0 0 4px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #cfdcff;
}

.stat-box .stat-value {
    font-size: 1.9rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00f2ff, #7683ff, #ff6fd8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =======================================================
   PLANET GRID — SUBJECT SELECT
======================================================= */

.planet-container {
    margin-top: 60px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 55px;
}

.planet-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: 0.3s;
    cursor: pointer;
    position: relative;
}

.planet-wrapper::before {
    content: "";
    position: absolute;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    border: 2px solid rgba(86, 162, 255, 0.4);
    box-shadow: 
        0 0 20px rgba(86, 162, 255, 0.5),
        inset 0 0 20px rgba(0, 242, 255, 0.1);
    transform: scale(0.92);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.planet-wrapper:hover::before {
    border-color: rgba(86, 162, 255, 0.8);
    box-shadow: 
        0 0 30px rgba(86, 162, 255, 0.8),
        inset 0 0 20px rgba(0, 242, 255, 0.2);
}

.planet {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    box-shadow:
        0 0 25px rgba(255,255,255,0.5),
        0 0 45px rgba(83, 140, 255, 0.8);
    animation: floatPlanet 4.4s ease-in-out infinite;
    transition: all 0.3s ease;
}

.planet-wrapper:hover .planet {
    box-shadow:
        0 0 35px rgba(86, 162, 255, 1),
        0 0 60px rgba(0, 242, 255, 0.7),
        0 0 80px rgba(255, 111, 216, 0.4);
}

@keyframes floatPlanet {
    0%   { transform: translateY(0) scale(1); }
    50%  { transform: translateY(-14px) scale(1.03); }
    100% { transform: translateY(0) scale(1); }
}

.planet-wrapper:hover {
    transform: translateY(-8px) scale(1.05);
}

.planet-label {
    margin-top: 16px;
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffe57e, #ffdd55, #ffb84d, #ff9500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    transition: all 0.3s ease;
    position: relative;
}

/* =======================================================
   ASK QUESTION / FORM AREAS
======================================================= */

.ask-container {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.ask-form {
    background: linear-gradient(150deg, rgba(33, 48, 92, 0.96), rgba(15, 26, 58, 0.98));
    padding: 30px 28px;
    width: 560px;
    max-width: 95vw;
    border-radius: 22px;
    box-shadow:
        0 22px 46px rgba(0,0,0,0.85),
        0 0 26px rgba(105, 170, 255, 0.7);
    backdrop-filter: blur(16px);
}

.ask-form label {
    font-size: 0.95rem;
    color: #c3d9ff;
}

.ask-form input,
.ask-form select,
.ask-form textarea {
    width: 100%;
    margin-top: 6px;
    margin-bottom: 16px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 2px solid rgba(86, 162, 255, 0.5);
    background: rgba(5, 11, 32, 0.9);
    color: #e6f1ff;
    font-family: inherit;
    font-size: 0.98rem;
    outline: none;
    transition: border 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.ask-form input:focus,
.ask-form select:focus,
.ask-form textarea:focus {
    border-color: #00f2ff;
    box-shadow: 0 0 18px rgba(0, 242, 255, 0.7), inset 0 1px 0 rgba(86, 162, 255, 0.2);
    background: rgba(10, 18, 46, 0.98);
}

/* =======================================================
   CHARACTER SELECT GRID
======================================================= */

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

.character-card {
    background: radial-gradient(circle at top, rgba(255,255,255,0.18), rgba(25,40,88,0.96));
    padding: 24px 20px;
    border-radius: 22px;
    text-align: center;
    box-shadow:
        0 18px 40px rgba(0,0,0,0.9),
        0 0 30px rgba(117, 189, 255, 0.7);
    backdrop-filter: blur(14px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(86, 162, 255, 0.4);
}

.character-card::before {
    content: "";
    position: absolute;
    width: 140%;
    height: 140%;
    top: -60%;
    left: -20%;
    background: radial-gradient(circle at 20% 0%, rgba(111, 226, 255, 0.25), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.character-card:hover::before {
    opacity: 1;
}

.character-card:hover {
    transform: translateY(-8px) scale(1.03);
    background: radial-gradient(circle at top, rgba(86, 162, 255, 0.3), rgba(32, 51, 112, 0.98));
    box-shadow:
        0 18px 45px rgba(0,0,0,0.95),
        0 0 40px rgba(86, 162, 255, 0.9),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(86, 162, 255, 0.8);
}

/* =======================================================
   SIDEBAR — EXPERIENCE NAV
======================================================= */

.sidebar {
    width: 260px;
    height: 100vh;
    background: linear-gradient(180deg, rgba(8,12,35,0.98), rgba(3,6,18,0.98));
    color: #e4eeff;
    position: fixed;
    left: 0;
    top: 0;
    padding: 22px 20px 26px;
    box-shadow:
        0 0 22px rgba(0,0,0,0.95),
        10px 0 35px rgba(0,0,0,0.85);
    backdrop-filter: blur(14px);
    z-index: 10;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Top logo / title area (if used) */
.sidebar .sidebar-title {
    font-size: 1.7rem;
    font-weight: 800;
    margin-bottom: 18px;
    background: linear-gradient(120deg, #6df3ff, #ffffff, #ffc86f);
    -webkit-background-clip: text;
    color: transparent;
}

/* Nav sections */
.sidebar a {
    display: block;
    margin: 12px 0;
    padding: 11px 13px;
    font-size: 0.98rem;
    color: #dce9ff;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.22s ease;
    position: relative;
}

.sidebar a::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: radial-gradient(circle, #64f1ff, #007bff);
    transform: translateY(-50%);
    opacity: 0.3;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.sidebar a:hover {
    background: linear-gradient(90deg, rgba(36,85,190,0.95), rgba(77,161,255,0.98));
    padding-left: 22px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.7);
}

.sidebar a:hover::before {
    opacity: 1;
    transform: translateY(-50%) scale(1.4);
}

/* Scrollbar inside sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}
.sidebar::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
}
.sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00f2ff, #5b8bff);
    border-radius: 3px;
}

/* =======================================================
   MAIN CONTENT WRAPPER
======================================================= */

.main-content {
    margin-left: 270px;
    padding: 40px 40px 60px;
    min-height: 100vh;
}

/* =======================================================
   ASSIGNMENT / LIST STYLING (teacher_assignments.html)
======================================================= */

.assignment-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
    margin-top: 24px;
}

.assignment-item {
    background: linear-gradient(150deg, rgba(255,255,255,0.15), rgba(45,72,144,0.92));
    border-radius: 18px;
    padding: 18px 18px 20px;
    box-shadow:
        0 16px 32px rgba(0,0,0,0.8),
        0 0 18px rgba(128,187,255,0.65);
    position: relative;
    overflow: hidden;
}

.assignment-item h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.15rem;
}

.assignment-item p {
    margin: 4px 0;
    font-size: 0.95rem;
    color: #e5efff;
}

.assignment-item::before {
    content: "";
    position: absolute;
    width: 140%;
    height: 60%;
    top: -40%;
    left: -20%;
    background: radial-gradient(circle at 20% 20%, rgba(125, 214, 255, 0.35), transparent 70%);
    opacity: 0.8;
}

/* =======================================================
   RESPONSIVE TWEAKS
======================================================= */

@media (max-width: 980px) {
    .sidebar {
        width: 230px;
    }
    .main-content {
        margin-left: 240px;
        padding: 26px 22px 50px;
    }
}

@media (max-width: 780px) {
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        box-shadow: 0 10px 26px rgba(0,0,0,0.9);
    }
    .main-content {
        margin-left: 0;
        padding: 22px 18px 45px;
    }
    .page-title {
        font-size: 2.4rem;
    }
    .content-box {
        width: 92%;
        padding: 22px 20px;
    }
    .card {
        width: 90%;
        padding: 22px 20px;
    }
    .planet-container {
        gap: 32px;
    }
}
/* =======================================================
   MODALS / ADMIN LOGIN
======================================================= */

.admin-password-wrapper {
    position: relative;
    width: 100%;
}

.admin-password-wrapper input {
    width: 100%;
    padding-right: 40px; /* room for eye icon */
}

.admin-toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    opacity: 0.7;
    font-size: 1.1rem;
    user-select: none;
}

.admin-toggle-password:hover {
    opacity: 1;
}


/* =======================================================
   STREAMING & TYPING INDICATORS
======================================================= */

.typing-indicator {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    animation: typingBounce 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.6; }
    30% { transform: translateY(-10px); opacity: 1; }
}

.ai-streaming {
    animation: streamPulse 1.5s ease-in-out infinite;
}

@keyframes streamPulse {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

/* =======================================================
   CONFETTI & CELEBRATION
======================================================= */

.confetti {
    position: fixed;
    pointer-events: none;
    animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) rotate(360deg);
        opacity: 0;
    }
}

.celebration-burst {
    position: fixed;
    top: 50%;
    left: 50%;
    font-size: 3rem;
    animation: celebrationPop 0.8s ease-out forwards;
    pointer-events: none;
}

@keyframes celebrationPop {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* =======================================================
   HELP BUTTON & TOOLTIPS
======================================================= */

.floating-help-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5c6bff, #7683ff);
    color: white;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(92, 107, 255, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-help-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(92, 107, 255, 0.6);
}

.help-tooltip {
    position: absolute;
    bottom: 80px;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    max-width: 300px;
    border: 1px solid rgba(92, 107, 255, 0.5);
    animation: tooltipSlideUp 0.3s ease-out;
    z-index: 1001;
}

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

/* Rainbow gradient text animation */
@keyframes rainbowShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Pulsing glow effect */
@keyframes glowPulse {
    0%, 100% { 
        box-shadow: 0 0 18px rgba(86, 162, 255, 0.5);
    }
    50% { 
        box-shadow: 0 0 30px rgba(86, 162, 255, 0.8), 0 0 50px rgba(0, 242, 255, 0.4);
    }
}

/* Fun bounce with color shift */
@keyframes bouncyGlow {
    0%, 100% { 
        transform: translateY(0) scale(1);
        box-shadow: 0 0 15px rgba(255, 111, 216, 0.5);
    }
    50% { 
        transform: translateY(-6px) scale(1.02);
        box-shadow: 0 0 25px rgba(86, 162, 255, 0.8);
    }
}

/* Shimmer effect */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.help-tooltip::after {
    content: "";
    position: absolute;
    bottom: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(0, 0, 0, 0.9);
}

/* =======================================================
   DIFFICULTY BADGE
======================================================= */

.difficulty-badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.difficulty-easy {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.4), rgba(132, 255, 0, 0.2));
    color: #84ff00;
    border: 1px solid rgba(132, 255, 0, 0.6);
    box-shadow: 0 0 10px rgba(132, 255, 0, 0.3);
}

.difficulty-easy:hover {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.6), rgba(132, 255, 0, 0.4));
    box-shadow: 0 0 18px rgba(132, 255, 0, 0.6);
}

.difficulty-medium {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.4), rgba(255, 198, 45, 0.2));
    color: #FFD700;
    border: 1px solid rgba(255, 198, 45, 0.6);
    box-shadow: 0 0 10px rgba(255, 198, 45, 0.3);
}

.difficulty-medium:hover {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.6), rgba(255, 198, 45, 0.4));
    box-shadow: 0 0 18px rgba(255, 198, 45, 0.6);
}

.difficulty-hard {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.4), rgba(255, 107, 107, 0.2));
    color: #FF8787;
    border: 1px solid rgba(255, 107, 107, 0.6);
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
}

.difficulty-hard:hover {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.6), rgba(255, 107, 107, 0.4));
    box-shadow: 0 0 18px rgba(255, 107, 107, 0.6);
}

/* =======================================================
   PROGRESS VISUALIZATION
======================================================= */

.mission-progress {
    background: rgba(86, 162, 255, 0.08);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(86, 162, 255, 0.25);
    transition: all 0.3s ease;
}

.mission-progress:hover {
    background: rgba(86, 162, 255, 0.12);
    border-color: rgba(86, 162, 255, 0.4);
}

.progress-bar-outer {
    width: 100%;
    height: 10px;
    background: rgba(0, 242, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
    box-shadow: inset 0 0 10px rgba(0, 242, 255, 0.1);
}

.progress-bar-inner {
    height: 100%;
    background: linear-gradient(90deg, #5c6bff, #00f2ff, #84ff00);
    border-radius: 10px;
    transition: width 0.4s ease;
    box-shadow: 0 0 12px rgba(92, 107, 255, 0.7), 0 0 18px rgba(0, 242, 255, 0.5);
    position: relative;
}

.progress-bar-inner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    animation: shimmer 2s infinite;
}

/* =======================================================
   WARM BUTTON STYLES
======================================================= */

.btn-friendly {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #5c6bff, #7683ff);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.btn-friendly:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(92, 107, 255, 0.4);
}

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

/* ================================================================
   MODERN COMPONENTS — ENHANCED VISUAL DESIGN
================================================================ */

/* PREMIUM CARD */
.premium-card {
    background: linear-gradient(135deg, 
        rgba(92, 107, 255, 0.12),
        rgba(71, 200, 255, 0.08)
    );
    border: 1px solid rgba(118, 131, 255, 0.3);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(12px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 1px 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    position: relative;
    overflow: hidden;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(92, 107, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.premium-card:hover {
    border-color: rgba(118, 131, 255, 0.6);
    box-shadow: 
        0 16px 48px rgba(92, 107, 255, 0.2),
        inset 1px 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.premium-card:hover::before {
    opacity: 1;
}

/* MISSION CARD (for practice/subjects) */
.mission-card-modern {
    background: linear-gradient(145deg, 
        rgba(30, 50, 120, 0.8),
        rgba(15, 28, 60, 0.8)
    );
    border: 2px solid transparent;
    border-image: linear-gradient(135deg, #5c6bff, #00f2ff) 1;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.mission-card-modern::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(92, 107, 255, 0.1), transparent 70%);
    opacity: 0;
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.mission-card-modern:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(92, 107, 255, 0.3),
        inset 0 0 20px rgba(92, 107, 255, 0.1);
    border-color: #5c6bff;
}

.mission-card-modern:hover::before {
    transform: translateX(100%);
}

.mission-card-modern h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: var(--color-text-primary);
    font-weight: 700;
}

.mission-card-modern p {
    margin: 0;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

/* STAT BOX (for dashboard) */
.stat-box-modern {
    background: linear-gradient(135deg,
        rgba(92, 107, 255, 0.15),
        rgba(71, 200, 255, 0.08)
    );
    border: 1px solid rgba(118, 131, 255, 0.35);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.stat-box-modern:hover {
    transform: translateY(-6px);
    border-color: rgba(118, 131, 255, 0.6);
    box-shadow: 0 12px 36px rgba(92, 107, 255, 0.2);
}

.stat-box-modern .stat-value {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #5c6bff, #00f2ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 10px 0;
}

.stat-box-modern .stat-label {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* GRADIENT TEXT */
.text-gradient {
    background: linear-gradient(135deg, #5c6bff, #00f2ff, #ff6fd8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* BADGE STYLES */
.badge-modern {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(92, 107, 255, 0.2);
    border: 1px solid rgba(92, 107, 255, 0.5);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #00f2ff;
    transition: all 0.2s ease;
}

.badge-modern:hover {
    background: rgba(92, 107, 255, 0.35);
    box-shadow: 0 4px 12px rgba(92, 107, 255, 0.3);
}

/* SECTION HEADING */
.section-heading {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--color-text-primary);
    position: relative;
    padding-bottom: 12px;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #5c6bff, #00f2ff);
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(92, 107, 255, 0.5);
}

/* GLASSMORPHISM CONTAINER */
.glass-container {
    background: rgba(15, 28, 60, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ENHANCED PLANET CARD */
.planet-card-modern {
    background: linear-gradient(135deg,
        rgba(92, 107, 255, 0.15),
        rgba(71, 200, 255, 0.08)
    );
    border: 1px solid rgba(118, 131, 255, 0.4);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.planet-card-modern::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle at center, rgba(92, 107, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    transform: scale(0);
}

.planet-card-modern:hover {
    transform: translateY(-12px) scale(1.05);
    border-color: rgba(118, 131, 255, 0.8);
    box-shadow: 
        0 16px 48px rgba(92, 107, 255, 0.3),
        inset 0 0 24px rgba(92, 107, 255, 0.1),
        0 0 20px rgba(0, 242, 255, 0.2);
}

.planet-card-modern::before {
    opacity: 1;
    transform: scale(1);
}

/* INPUT FIELD */
.input-modern {
    background: rgba(15, 28, 60, 0.6);
    border: 1px solid rgba(92, 107, 255, 0.3);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--color-text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-modern:focus {
    outline: none;
    border-color: rgba(92, 107, 255, 0.8);
    background: rgba(15, 28, 60, 0.8);
    box-shadow: 0 0 16px rgba(92, 107, 255, 0.3);
}

.input-modern::placeholder {
    color: var(--color-text-muted);
}

/* SELECT FIELD */
.select-modern {
    background: rgba(15, 28, 60, 0.6);
    border: 1px solid rgba(92, 107, 255, 0.3);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--color-text-primary);
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.select-modern:focus {
    outline: none;
    border-color: rgba(92, 107, 255, 0.8);
    box-shadow: 0 0 16px rgba(92, 107, 255, 0.3);
}

/* MODAL ENHANCED */
.modal-modern {
    background: linear-gradient(135deg,
        rgba(20, 35, 80, 0.95),
        rgba(15, 28, 60, 0.95)
    );
    border: 1px solid rgba(92, 107, 255, 0.3);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 
        0 24px 64px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(92, 107, 255, 0.2);
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* CHARACTER comment box */
.character-comment {
    background: rgba(92, 107, 255, 0.15);
    border-left: 4px solid #5c6bff;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    font-style: italic;
    border: 1px solid rgba(92, 107, 255, 0.3);
    animation: slideInLeft 0.5s ease-out;
}

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

.character-comment::before {
    content: "✨ ";
    font-size: 1.2rem;
    margin-right: 8px;
}

/* Background Utility Classes */
.bg-main {
    background: var(--bg-gradient-main);
}

.bg-premium {
    background: var(--bg-gradient-premium);
}

.body-with-nebula {
    background: var(--bg-gradient-main);
    position: relative;
}

.body-with-nebula::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-nebula);
    pointer-events: none;
    z-index: -1;
}




