@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;600;700;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&family=Patrick+Hand&display=swap');

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

html {
    overflow-x: hidden;
    width: 100%;
}

:root {
    --paw-color: #be2596;
}

body {
    font-family: 'Sora', 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #080F5B;
    background-image: url('/static/images/night-forest-bg.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
    background-attachment: fixed;
    overflow-x: hidden;
    width: 100%;
}

body.auth-voxel-bg {
    background-color: transparent;
    background-image: none;
}

body.auth-voxel-bg .auth-voxel-background {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

body.auth-voxel-bg .auth-voxel-background iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.index-page body,
body.index-page {
    background-color: #ffffff;
    background-image: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    background: #ffffff;
    color: #111111;
    padding: 0.10rem 0;
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e6e6ea;
    overflow: visible;
}


.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    padding: 0 2rem;
    position: relative;
    border: none;
    overflow: visible;
}

.dashboard-page .navbar.dashboard-nav .container {
    max-width: 1100px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    z-index: 1002;
    border: none;
    outline: none;
}

.header-menuai-icon {
    width: 90px;
    height: 90px;
    object-fit: contain;
    display: block;
    flex: 0 0 auto;
}

.logo {
    width: 130px;
    height: 50px;
    display: block;
    border: none;
    object-fit: contain;
}

.nav-brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    border: none;
    margin: 0;
    color: #063970;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.3rem;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
    position: static;
    visibility: visible;
    opacity: 1;
}

.nav-links a {
    color: #111111;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.95rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.nav-links a:hover, .nav-links a.active {
    background: #f4f4f6;
}

/* Login button in main page navigation */
.nav-links a.nav-login-btn {
    background: #f4f4f6;
    color: #111111;
    border: 1px solid #e6e6ea;
    padding: 0.5rem 1.2rem;
    font-weight: 600;
    border-radius: 8px;
}

.nav-links a.nav-login-btn:hover {
    background: #ededf1;
    border-color: #d8d8de;
}

/* Logout link styling */
.nav-links a.logout-link {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    margin-left: 1rem;
}

.nav-links a.logout-link:hover {
    background: rgba(255,255,255,0.2);
    border-color: white;
}

/* Upgrade button */
.upgrade-btn {
    position: relative;
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    color: #fff !important;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 8px 18px rgba(124, 58, 237, 0.35);
}

.upgrade-btn:hover {
    background: linear-gradient(135deg, #b76cff 0%, #8a4bff 100%);
    color: #fff !important;
}

.nav-links a.upgrade-btn:hover,
.nav-links a.upgrade-btn.active {
    background: linear-gradient(135deg, #b76cff 0%, #8a4bff 100%);
    color: #fff !important;
}

.upgrade-badge {
    background: #ffd24d;
    color: #5a2c00;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
}

.upgrade-btn.pro-status {
    background: linear-gradient(135deg, #f7d26a 0%, #d59b2d 100%);
    color: #3b2500 !important;
    box-shadow: 0 8px 18px rgba(213, 155, 45, 0.35);
}

/* Floating menu (dashboard) */
.floating-menu {
    position: fixed;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 22px;
    padding: 14px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.2);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 900;
}

.floating-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.85rem;
}

.floating-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.floating-icon svg {
    width: 32px;
    height: 32px;
    display: block;
}

.floating-icon img {
    width: 28px;
    height: 28px;
    display: block;
    object-fit: contain;
}

.floating-menu-item[href="/teacher-chat"] .floating-icon i {
    font-size: 1.55rem;
    color: #2f4fc2;
}

.dashboard-teacher-fab {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 92px;
    height: 92px;
    border-radius: 999px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    box-shadow: none;
    z-index: 1100;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.dashboard-teacher-fab:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: none;
}

.dashboard-teacher-fab img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    body:not(.public-page) {
        padding-bottom: 114px;
    }

    .dashboard-teacher-fab {
        display: none;
    }

    .floating-menu {
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        transform: none;
        width: auto;
        flex-direction: row;
        align-items: center;
        justify-content: space-around;
        gap: 0;
        padding: 4px 6px calc(4px + env(safe-area-inset-bottom));
        border-radius: 22px 22px 0 0;
        border: 1px solid #eceff4;
        border-bottom: 0;
        background: #ffffff;
        box-shadow: 0 -8px 22px rgba(15, 23, 42, 0.12);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        z-index: 1200;
        display: flex;
    }

    .floating-menu-item {
        flex: 1;
        min-width: 0;
        gap: 2px;
        padding: 0;
        font-size: 0.74rem;
        font-weight: 600;
        color: #6b7280;
        text-align: center;
    }

    .floating-icon {
        width: 34px;
        height: 34px;
        border-radius: 12px;
        background: #f4f6fb;
        border: 1px solid #e5eaf2;
        font-size: 1.25rem;
        color: #5b6472;
    }

    .floating-icon svg {
        width: 20px;
        height: 20px;
        color: #5b6472;
    }

    .floating-icon img {
        width: 20px;
        height: 20px;
    }

    .floating-label {
        display: block;
        line-height: 1.15;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        color: #6b7280;
        font-weight: 600;
    }

    /* Raised center action (3rd item) for mobile dock */
    .floating-menu-item:nth-child(3) {
        transform: translateY(-10px);
        color: #3d5cc9;
        font-weight: 700;
    }

    .floating-menu-item:nth-child(3) .floating-icon {
        width: 64px;
        height: 64px;
        border-radius: 999px;
        background: transparent;
        border: none;
        box-shadow: none;
        color: #2f4fc2;
        font-size: 1.5rem;
    }

    .floating-menu-item:nth-child(3) .floating-icon svg {
        width: 28px;
        height: 28px;
        color: #2f4fc2;
    }

    .floating-menu-item:nth-child(3) .floating-icon img {
        width: 64px;
        height: 64px;
        border-radius: 999px;
        object-fit: cover;
        display: block;
    }

    .floating-menu-item:nth-child(3) .floating-label {
        color: #3d5cc9;
        font-weight: 700;
    }
}

/* Global dark header theme override */
/* Global dark header theme override */

/* Content frame border (below header) */
:is(.dashboard, .content-section, .hero, .features, .pricing-section, .testimonials, .cta, footer) {
    border-radius: 36px;
    margin: 0 12px 12px 12px;
    box-sizing: border-box;
}

.index-page :is(.dashboard, .content-section, .hero, .features, .pricing-section, .testimonials, .cta, footer) {
    margin: 0;
    border-radius: 0;
}

/* Hide notification + profile only when the mobile menu is open */
.nav-links.active .notification-nav,
.nav-links.active .profile-dropdown-container {
    display: none !important;
}

/* Golden Paws Counter in Nav */
.golden-paws-nav {
    display: flex;
    align-items: center;
}

.mobile-header-paws,
.mobile-upgrade-band {
    display: none;
}

.paws-counter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fde8f4;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    color: var(--paw-color);
    font-weight: 600;
    border: 2px solid rgba(190, 37, 150, 0.35);
}

.paws-counter-compact {
    padding: 0.35rem 0.75rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    color: #f97316;
    gap: 0.4rem;
}

.paw-icon-mini {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff0f7;
    border: 1px solid #f59ec7;
    border-radius: 50%;
}

.paw-icon-mini img {
    width: 14px;
    height: 14px;
    display: block;
}

.paws-counter-compact #navPawsCount {
    color: #0f2f5a;
    font-weight: 700;
    min-width: 20px;
    font-size: 1.1rem;
}

.paw-icon-nav {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

#navPawsCount {
    font-size: 1.1rem;
    min-width: 30px;
    text-align: center;
    color: var(--paw-color);
}

/* Notification Button */
.notification-nav {
    display: flex;
    align-items: center;
    position: relative;
}

.notification-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f4f4f6;
    border: none;
    color: #0f172a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.notification-btn i {
    font-size: 1.2rem;
    line-height: 1;
}

.notification-btn:hover {
    background: rgba(255,255,255,0.25);
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ff4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* Notification Dropdown */
.notification-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    width: 380px;
    max-height: 500px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1003;
    overflow: hidden;
}

.notification-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notification-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.notification-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f5f7fa;
    transition: background 0.2s;
    cursor: pointer;
}

.notification-item:hover {
    background: #f9fafb;
}

.notification-item.unread {
    background: #f0f4ff;
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #667eea;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #e3f2fd;
    color: #2196f3;
}

.notification-icon.login-icon {
    background: #e8f5e9;
    color: #4caf50;
}

.notification-content {
    flex: 1;
}

.notification-text {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.5;
}

.notification-time {
    font-size: 0.85rem;
    color: #999;
}

.notification-empty {
    padding: 3rem 2rem;
    text-align: center;
}

.empty-icon {
    margin-bottom: 1rem;
}

.notification-empty h4 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    color: #333;
}

.notification-empty p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

/* Profile Dropdown */
.profile-dropdown-container {
    position: relative;
    z-index: 1002;
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.15);
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
}

.profile-btn:hover {
    background: rgba(255,255,255,0.25);
}

.profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.3rem;
    color: white;
    border: 2px solid white;
    position: relative;
}

.profile-avatar img,
.profile-avatar-large img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.plan-badge {
    position: absolute;
    bottom: -6px;
    right: -10px;
    background: #7c3aed;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.15rem 0.35rem;
    border-radius: 999px;
    border: 2px solid #fff;
}

.plan-badge.pro {
    background: #be2596;
}

.profile-name {
    font-size: 0.9rem;
    font-weight: 500;
}

.dropdown-arrow {
    transition: transform 0.3s;
}

.profile-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1003;
}

.profile-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}

.profile-info h4 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.25rem;
}

.profile-info p {
    font-size: 0.85rem;
    color: #666;
}

.dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 0 1rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.dropdown-item:hover {
    background: #f9fafb;
}

.dropdown-item.active {
    background: #eff6ff;
    color: #667eea;
    font-weight: 600;
}

.dropdown-item.setting {
    color: #1e3a8a;  /* Navy blue */
}

.dropdown-item.setting:hover {
    background: #dbeafe;  /* Light blue hover */
    color: #1e40af;  /* Darker navy on hover */
}

.dropdown-item.setting.active {
    background: #dbeafe;  /* Light blue background */
    color: #1e3a8a;  /* Navy blue text */
    font-weight: 600;
}

.dropdown-item.logout {
    color: #ef4444;
}

.dropdown-item.logout:hover {
    background: #fef2f2;
}

.dropdown-item svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.dropdown-item.avatar-picker-action {
    width: calc(100% - 2rem);
    margin: 0.5rem 1rem;
    border: 1px solid #dbeafe;
    background: #eff6ff;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

.avatar-picker-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.avatar-picker-modal.show {
    display: flex;
}

.avatar-picker-dialog {
    width: min(560px, 96vw);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.28);
    overflow: hidden;
}

.avatar-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}

.avatar-picker-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #1f2937;
}

.avatar-picker-close {
    border: none;
    background: transparent;
    font-size: 1.15rem;
    color: #6b7280;
    cursor: pointer;
}

.avatar-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
    gap: 0.85rem;
    padding: 1.1rem 1.25rem;
}

.avatar-option {
    border: 2px solid #dbe4f0;
    background: #f8fafc;
    border-radius: 999px;
    width: 72px;
    height: 72px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
}

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

.avatar-option.selected {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.avatar-upload-option {
    border-style: dashed;
    border-radius: 16px;
    flex-direction: column;
    gap: 0.2rem;
    background: #f8fbff;
    color: #1f3f7f;
}

.avatar-upload-option .upload-plus {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
}

.avatar-upload-option .upload-text {
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.avatar-picker-note {
    margin: 0;
    padding: 0 1.25rem 0.8rem;
    color: #475569;
    font-size: 0.84rem;
}

.avatar-picker-note.error {
    color: #b91c1c;
}

.avatar-picker-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    padding: 0.95rem 1.25rem 1.2rem;
    border-top: 1px solid #e5e7eb;
}

.avatar-picker-btn {
    border: none;
    border-radius: 10px;
    padding: 0.6rem 0.95rem;
    font-weight: 700;
    cursor: pointer;
}

.avatar-picker-btn.cancel {
    background: #e5e7eb;
    color: #334155;
}

.avatar-picker-btn.remove {
    margin-right: auto;
    background: #fee2e2;
    color: #991b1b;
}

.avatar-picker-btn.remove:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.avatar-picker-btn.save {
    background: #2563eb;
    color: #fff;
}

.cookie-consent-overlay {
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: rgba(15, 23, 42, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cookie-consent-overlay.hide {
    opacity: 0;
    transition: opacity 0.18s ease;
}

.cookie-consent-modal {
    width: min(480px, 96vw);
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    padding: 1.4rem 1.25rem;
    box-shadow: 0 16px 40px rgba(2, 6, 23, 0.35);
    font-family: Arial, sans-serif;
}

.cookie-consent-modal h3 {
    margin: 0 0 1rem;
    font-size: 2rem;
    color: #4b5563;
}

.cookie-consent-modal p {
    margin: 0 0 1rem;
    line-height: 1.55;
    color: #374151;
    font-size: 1.02rem;
}

.cookie-consent-btn {
    width: 100%;
    border-radius: 3px;
    border: 1px solid #2563eb;
    padding: 0.85rem 1rem;
    font-size: 1.06rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 0.75rem;
}

.cookie-consent-btn.primary {
    background: #2563eb;
    color: #fff;
}

.cookie-consent-btn.secondary {
    background: #fff;
    color: #2563eb;
}

.cookie-consent-btn.small {
    width: auto;
    min-width: 180px;
    margin-top: 0.9rem;
}

.cookie-settings-panel {
    display: none;
    margin-top: 0.8rem;
    border-top: 1px solid #e5e7eb;
    padding-top: 0.7rem;
}

.cookie-settings-panel.show {
    display: block;
}

.cookie-setting-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0.55rem 0;
    font-size: 0.95rem;
    color: #1f2937;
}

.cookie-setting-item.locked {
    opacity: 0.75;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none !important;  /* Force hide on desktop */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.75rem;
    z-index: 1002;
    position: relative;
    width: 44px;
    height: 44px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    outline: none;
    box-shadow: none;
}

.menu-toggle:focus {
    outline: none;
    box-shadow: none;
}

.menu-toggle:focus-visible {
    outline: 2px solid rgba(255,255,255,0.5);
    outline-offset: 2px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #111111;
    border-radius: 3px;
    transition: all 0.3s ease;
    display: block;
    pointer-events: none;
    border: none;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-large {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-unlock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.3rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #7c6cf7 0%, #ff8a3d 100%);
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(124, 108, 247, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-unlock:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(124, 108, 247, 0.35);
}

.unlock-sparkle {
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary .btn-spinner {
    display: none;
    width: 18px;
    height: 18px;
    margin-left: 10px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: btnSpin 0.8s linear infinite;
}

.btn-primary.is-loading .btn-text {
    opacity: 0.85;
}

.btn-primary.is-loading .btn-spinner {
    display: inline-block;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.btn-full {
    width: 100%;
}

/* Modern Hero Section - White Background with Image on Right */
.hero-modern {
    background: white;
    padding: 5rem 0 3rem 0;
    position: relative;
    overflow: hidden;
}

.hero-modern::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0ff 100%);
    z-index: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content-left {
    padding-right: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #0033a0;
    margin-bottom: 1rem;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1.5rem;
    font-weight: 500;
    line-height: 1.4;
    animation: fadeInUp 0.8s ease-out 0.1s backwards;
}

.hero-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.btn-hero {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8555 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.5);
}

.btn-hero-secondary {
    background: white;
    color: #0033a0;
    border: 2px solid #0033a0;
    box-shadow: 0 4px 15px rgba(0, 51, 160, 0.1);
}

.btn-hero-secondary:hover {
    background: #0033a0;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 51, 160, 0.3);
}

.hero-features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1rem;
    color: #555;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: white;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: bold;
}

.hero-image-right {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    animation: fadeInRight 1s ease-out 0.3s backwards;
}

.hero-image-modern {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 51, 160, 0.15);
    position: relative;
    z-index: 2;
    transition: transform 0.3s;
}

.hero-image-modern:hover {
    transform: scale(1.02);
}

.hero-image-decoration {
    position: absolute;
    border-radius: 24px;
    z-index: 1;
}

.decoration-1 {
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.1;
}

.decoration-2 {
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8555 100%);
    opacity: 0.1;
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hero Info Section */
.hero-info {
    background: #f8f9fa;
    padding: 3rem 0;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.03);
}

.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem 1rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.stat-card h3 {
    font-size: 1.8rem;
    color: #0033a0;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stat-card p {
    font-size: 0.95rem;
    color: #666;
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-modern {
        padding: 4rem 0 2rem 0;
    }
    
    .hero-modern::before {
        width: 100%;
        height: 50%;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-content-left {
        padding-right: 0;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-features-list {
        align-items: center;
    }
    
    .hero-image-container {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .hero-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-modern {
        padding: 3rem 0 2rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .btn-hero {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-hero {
        width: 100%;
        text-align: center;
    }
    
    .hero-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem 1rem;
    }
}

/* Old Hero Banner CSS - Keep for compatibility */
.hero-banner {
    position: relative;
    width: 100%;
    padding: 0;
    margin: 0;
    background: transparent;
}

.hero-banner-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.hero-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 51, 153, 0.7) 0%, rgba(0, 51, 153, 0.3) 50%, transparent 100%);
    display: flex;
    align-items: center;
}

.hero-banner-content {
    max-width: 600px;
    padding: 2rem;
    animation: slideInLeft 1s ease-out;
}

.hero-banner-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.hero-banner-subtitle {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 2rem;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    line-height: 1.4;
}

.hero-banner-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-banner {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.btn-banner-primary {
    background: #ff6b35;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.btn-banner-primary:hover {
    background: #ff5520;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

.btn-banner-secondary {
    background: white;
    color: #0033a0;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.btn-banner-secondary:hover {
    background: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.5);
}

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

/* Hero Info Section */
.hero-info {
    background: white;
    padding: 3rem 0;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
}

.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.stat-card h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stat-card p {
    font-size: 0.95rem;
    color: #666;
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-banner-container {
        height: 500px;
    }
    
    .hero-banner-title {
        font-size: 2.5rem;
    }
    
    .hero-banner-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-banner-container {
        height: 400px;
    }
    
    .hero-banner-overlay {
        background: linear-gradient(to bottom, rgba(0, 51, 153, 0.8) 0%, rgba(0, 51, 153, 0.6) 100%);
    }
    
    .hero-banner-content {
        padding: 1.5rem;
    }
    
    .hero-banner-title {
        font-size: 2rem;
    }
    
    .hero-banner-subtitle {
        font-size: 1rem;
    }
    
    .btn-banner {
        padding: 0.8rem 1.8rem;
        font-size: 1rem;
    }
    
    .hero-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem 1rem;
    }
}

/* Old Hero Section - Keep for compatibility */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.stat p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-image {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInScale 1.2s ease-out;
}

.hero-main-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: floatImage 6s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.hero-main-image:hover {
    transform: scale(1.05);
}

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

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

/* Hero image is now handled inline in index.html */

/* Features Section */
.features, .products, .testimonials {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: #667eea;
}

.feature-card p {
    color: #666;
}

/* Products */
.products {
    background: #ebf3f9;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    position: relative;
}

.product-card.featured {
    border: 3px solid #667eea;
}

.popular-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.product-card h3 {
    margin-bottom: 1rem;
    color: #667eea;
}

.product-card ul {
    list-style: none;
    margin: 1.5rem 0;
}

.product-card li {
    padding: 0.5rem 0;
    color: #666;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.stars {
    color: #ffc107;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial-card p {
    font-style: italic;
    color: #666;
    margin-bottom: 1.5rem;
}

.testimonial-author strong {
    color: #333;
    display: block;
}

.testimonial-author span {
    color: #999;
    font-size: 0.9rem;
}

/* CTA Section */
.cta {
    background: transparent;
    color: #1f2937;
    text-align: center;
    padding: 1.5rem 0 2.6rem;
}

.cta h2 {
    font-size: 2.45rem;
    margin-bottom: 1.12rem;
    line-height: 1.15;
}

.cta p {
    font-size: 1.18rem;
    margin: 0 auto 1.7rem;
    max-width: 700px;
    color: #4b5563;
    line-height: 1.5;
}

.index-page .cta .container {
    max-width: 1200px;
}

.index-page .cta .cta-panel {
    background: linear-gradient(90deg, #dff2fd 0%, #f9e9f6 100%);
    border-radius: 24px;
    max-width: 950px;
    margin: 0 auto;
    padding: 4.25rem 1.9rem;
}

.index-page .cta .btn-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 275px;
    border-radius: 999px;
    font-size: 0.98rem;
    font-weight: 700;
    padding: 0.9rem 1.8rem;
    text-decoration: none;
    background: linear-gradient(90deg, #f050a4 0%, #14a9e8 100%);
    color: #fff;
    box-shadow: none;
}

@media (max-width: 900px) {
    .cta h2 {
        font-size: 1.45rem;
    }

    .cta p {
        font-size: 0.9rem;
    }

    .index-page .cta .cta-panel {
        border-radius: 16px;
        padding: 2rem 1rem;
    }

    .index-page .cta .btn-large {
        min-width: 190px;
        font-size: 0.74rem;
        padding: 0.62rem 1.2rem;
    }
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #999;
}

/* Auth Pages */
.auth-section {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.auth-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.auth-card h2 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

.auth-card > p {
    color: #666;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
}

.message.success {
    background: #d4edda;
    color: #155724;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: #999;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.divider span {
    padding: 0 1rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    width: 100%;
    padding: 0.9rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    margin-bottom: 1rem;
}

.btn-google:hover {
    background: #f8f9fa;
    border-color: #d0d0d0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-google svg {
    flex-shrink: 0;
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    color: #666;
}

.auth-switch a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.auth-benefits {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 15px;
}

.auth-benefits h3 {
    margin-bottom: 1.5rem;
}

.auth-benefits ul {
    list-style: none;
}

.auth-benefits li {
    padding: 0.75rem 0;
    font-size: 1.05rem;
}

/* Dashboard */
.dashboard {
    padding: 2rem 0;
    min-height: calc(100vh - 80px);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1.5rem 1.75rem;
    border-radius: 18px;
    background: linear-gradient(135deg, #0b73b8 0%, #0a5fa6 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(11, 115, 184, 0.25);
}

.welcome-row {
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
    margin-bottom: 2rem;
    position: relative;
}


.welcome-row > * {
    position: relative;
    z-index: 1;
}

.welcome-row .dashboard-header {
    flex: 1 1 auto;
    margin-bottom: 0;
    height: 180px;
}

.library-card {
    flex: 0 0 320px;
    height: 180px;
    align-self: stretch;
}

.dashboard-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 12% 18%, rgba(255,255,255,0.35) 0 2px, transparent 3px),
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.25) 0 2px, transparent 3px),
        radial-gradient(circle at 50% 15%, rgba(255,255,255,0.2) 0 2px, transparent 3px),
        radial-gradient(circle at 70% 30%, rgba(255,255,255,0.22) 0 2px, transparent 3px),
        radial-gradient(circle at 85% 20%, rgba(255,255,255,0.18) 0 2px, transparent 3px);
    opacity: 0.45;
}

.dashboard-header h2 {
    color: #ffffff;
    margin-bottom: 0.4rem;
}

.welcome-card {
    gap: 1.5rem;
    min-height: 150px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
}

.welcome-card-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    flex: 1 1 auto;
}

.welcome-card-avatar {
    position: relative;
    z-index: 1;
    width: 96px;
    height: 96px;
    min-width: 96px;
    border-radius: 18px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.25);
    background: rgba(255, 255, 255, 0.22);
}

.welcome-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.welcome-card-content {
    position: relative;
    z-index: 1;
    max-width: 450px;
}

.welcome-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    font-weight: 700;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.welcome-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1.25rem;
}

.welcome-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.welcome-btn {
    background: #d8f1ff;
    color: #0b73b8;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}

.welcome-paws {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.18);
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-weight: 700;
}

.welcome-paws img {
    width: 24px;
    height: 24px;
}

.welcome-card-illustration {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    min-width: 180px;
}

.welcome-card-illustration img {
    width: 140px;
    height: auto;
    filter: drop-shadow(0 12px 20px rgba(0,0,0,0.2));
}

.welcome-card-illustration .welcome-tiger-gif {
    width: 104px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 14px rgba(0,0,0,0.18));
}

.calendar-icon {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    background: #ffffff;
    color: #0b73b8;
    display: grid;
    grid-template-rows: auto 1fr auto;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.18);
}

.calendar-header {
    background: #0b73b8;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.calendar-body {
    font-size: 1rem;
    font-weight: 800;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.calendar-day {
    font-size: 2.4rem;
    font-weight: 900;
    padding-bottom: 0.5rem;
}

.library-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.85rem;
    padding: 1.2rem 1.4rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    min-height: 180px;
    position: relative;
    overflow: hidden;
}

.library-card h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.library-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 12% 20%, rgba(255,255,255,0.35) 0 20px, transparent 21px),
        radial-gradient(circle at 80% 30%, rgba(255,255,255,0.25) 0 14px, transparent 15px),
        linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0));
    opacity: 0.7;
    pointer-events: none;
}

.library-covers {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.6rem;
}

.library-covers a {
    display: block;
}

.library-covers img {
    width: 100%;
    height: 78px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.library-page {
    padding: 2.5rem 0 4rem;
    background: transparent;
    min-height: calc(100vh - 80px);
}

.library-hero {
    text-align: center;
    margin-bottom: 2.5rem;
}

.library-hero h2 {
    font-size: 2.2rem;
    color: #0b73b8;
    margin-bottom: 0.6rem;
}

.library-hero p {
    color: #5b6b7a;
    margin: 0 auto;
    max-width: 640px;
}

.library-shelf {
    background: #f0f3f8;
    border-radius: 26px;
    padding: 2rem;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}

.shelf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    align-items: end;
}

.book-card {
    display: grid;
    gap: 0.6rem;
    text-decoration: none;
    color: #1f2a37;
    background: #ffffff;
    padding: 0.8rem;
    border-radius: 16px;
    box-shadow: 0 8px 18px rgba(18, 42, 90, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.book-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 26px rgba(18, 42, 90, 0.2);
}

.book-card img {
    width: 100%;
    height: 220px;
    border-radius: 12px;
    object-fit: cover;
}

.book-meta h4 {
    margin: 0;
    font-size: 1rem;
}

.book-meta p {
    margin: 0.2rem 0 0;
    color: #5b6b7a;
    font-size: 0.85rem;
}

.shelf-base {
    margin-top: 2rem;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, #d8a66d, #b57b40);
    box-shadow: inset 0 4px 6px rgba(0,0,0,0.15);
}

.library-viewer-body {
    background: #0f172a;
    color: #ffffff;
    overflow-x: hidden;
}

.library-viewer-topbar {
    background: #1b1464;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.viewer-topbar-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
}

.viewer-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
}

.viewer-brand .logo {
    width: 30px;
    height: 30px;
}

.viewer-progress {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #cbd5f5;
    font-size: 0.9rem;
    flex: 1;
    justify-content: center;
}

.viewer-progress input[type="range"] {
    width: min(520px, 40vw);
    accent-color: #3b82f6;
}

.viewer-back-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.25);
    white-space: nowrap;
}

.viewer-back-link:hover {
    background: rgba(255,255,255,0.15);
}

.library-viewer {
    padding: 0.6rem 0 1.2rem;
}

.library-viewer.landscape {
    min-height: calc(100vh - 62px);
}

.viewer-landscape-container {
    max-width: 1400px;
}

.viewer-stage {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    background: radial-gradient(circle at top, #1f2a48 0%, #0f172a 60%);
    padding: 0.8rem;
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    height: calc(100vh - 90px);
}

.viewer-stage .page {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem;
}

.viewer-stage img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.viewer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 120px;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    background: rgba(15, 23, 42, 0.75);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
    color: #fbbf24;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    transition: transform 0.2s ease, background 0.2s ease;
}

.viewer-nav span {
    line-height: 1;
}

.viewer-nav:hover {
    transform: translateY(-50%) scale(1.03);
    background: rgba(15, 23, 42, 0.9);
}

.viewer-nav-left {
    left: -16px;
}

.viewer-nav-right {
    right: -16px;
}

@media (max-width: 1200px) {
    .viewer-stage {
        max-width: 95%;
    }
}

@media (max-width: 900px) {
    .viewer-stage {
        grid-template-columns: 1fr;
        max-width: 90%;
        height: auto;
    }

    .viewer-nav-left,
    .viewer-nav-right {
        top: 90%;
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
        height: 52px;
        width: 120px;
    }

    .viewer-nav-right {
        top: auto;
        bottom: -18px;
        transform: translate(-50%, 0);
    }
}

.viewer-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.25rem;
    color: #cbd5f5;
}

.viewer-footer input[type=\"range\"] {
    flex: 1;
    accent-color: #3b82f6;
}

@media (max-width: 900px) {
    .viewer-stage {
        grid-template-columns: 1fr;
    }
}

@keyframes drift {
    0% { transform: translateX(0); opacity: 0.9; }
    50% { transform: translateX(12px); opacity: 1; }
    100% { transform: translateX(0); opacity: 0.9; }
}

.welcome-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 35%, rgba(255,255,255,0.25) 0 28px, transparent 30px),
        radial-gradient(circle at 42% 18%, rgba(255,255,255,0.2) 0 36px, transparent 38px),
        radial-gradient(circle at 78% 30%, rgba(255,255,255,0.18) 0 32px, transparent 34px);
    animation: drift 6s ease-in-out infinite;
    opacity: 0.6;
}


.bubbles-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 1rem 2rem;
    border-radius: 10px;
    color: white;
}

.bubble-icon {
    font-size: 2.5rem;
}

/* Golden Paw Icons */
.golden-paw-icon {
    width: 48px;
    height: 48px;
    display: inline-block;
    vertical-align: middle;
}

.golden-paw-icon-inline {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
    margin: 0 4px;
}

.bubble-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.bubble-count {
    font-size: 2rem;
    font-weight: 700;
    color: var(--paw-color);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.dashboard-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
}

.card-header h3 {
    font-size: 1.3rem;
}

.card-body {
    padding: 1.5rem;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f5f7fa;
    border-radius: 10px;
    margin-bottom: 1rem;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.quick-action:hover {
    background: #667eea;
    color: white;
    transform: translateX(5px);
}

.quick-action span {
    font-size: 2rem;
}

.quick-action h4 {
    margin-bottom: 0.25rem;
}

.quick-action p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.subject-progress {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.subject-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f5f7fa;
    border-radius: 10px;
}

.subject-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.subject-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: #eef2ff;
    color: #4f46e5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.subject-icon i {
    font-size: 0.92rem;
}

.skill-level {
    text-align: right;
    font-weight: 600;
    color: #667eea;
}

.progress-bar {
    width: 100px;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    transition: width 0.5s;
}

.view-details {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.view-details:hover {
    text-decoration: underline;
}

.class-item, .reward-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f5f7fa;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.class-time {
    min-width: 100px;
}

.class-time strong {
    display: block;
    color: #667eea;
}

.class-details h4 {
    margin-bottom: 0.25rem;
}

.class-details p {
    font-size: 0.9rem;
    color: #666;
}

.reward-thumb {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    background: #fff;
    border: 1px solid #e0e0e0;
}

.featured-rewards {
    margin: 1rem 0;
}

/* Content Section */
.content-section {
    padding: 2rem 0;
    min-height: calc(100vh - 80px);
}

.content-section h2 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

.content-section > .container > p {
    color: #666;
    margin-bottom: 2rem;
}

/* Worksheet Generator */
.worksheet-generator {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.form-section h3 {
    color: #667eea;
    margin-bottom: 1.5rem;
}

/* Worksheet Area */
.worksheet-area {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.worksheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.worksheet-header h3 {
    color: #667eea;
}

.worksheet-paper-header {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    margin-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.worksheet-brand {
    font-family: "Comic Sans MS", "Trebuchet MS", cursive;
    font-size: 0.85rem;
    color: #667eea;
    letter-spacing: 0.3px;
}

.worksheet-header-main {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
}

.worksheet-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
}

.worksheet-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.worksheet-number {
    font-size: 0.9rem;
    color: #4b5563;
    font-weight: 600;
}

.worksheet-name {
    font-size: 1.05rem;
    color: #111827;
    font-weight: 700;
}

.worksheet-directions {
    font-size: 0.9rem;
    color: #6b7280;
}

.worksheet-input-mode {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem 0.8rem;
    font-size: 0.85rem;
    color: #334155;
    background: #eef2ff;
    border: 1px solid #dbe4ff;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
}

.worksheet-input-mode-label {
    font-weight: 600;
    color: #1e3a8a;
}

.worksheet-input-mode label {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
}

.worksheet-intro-card {
    border-radius: 24px;
    border: 5px solid rgba(255, 255, 255, 0.75);
    background: linear-gradient(135deg, rgba(49, 168, 224, 0.86) 0%, rgba(47, 158, 216, 0.86) 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
    overflow: hidden;
    margin: 0 0 1.1rem;
    position: relative;
}

.worksheet-intro-card::before {
    content: '';
    position: absolute;
    right: -36px;
    top: -34px;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.worksheet-intro-card::after {
    content: '';
    position: absolute;
    left: 54%;
    top: 22%;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.worksheet-intro-title {
    margin: 0;
    background: rgba(239, 247, 251, 0.82);
    color: #1f9de4;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: "Poppins", sans-serif;
    font-style: normal;
    line-height: 1.1;
    padding: 0.55rem 1rem 0.65rem;
    position: relative;
    z-index: 1;
}

.worksheet-subtitle {
    color: #fff;
    margin: 0;
    padding: 0.85rem 1rem 1rem;
    font-size: 1.05rem;
    line-height: 1.35;
    max-width: 82%;
    position: relative;
    z-index: 1;
}

.worksheet-limit-card {
    background: #ffffff;
    border: 1px solid #e6e6ea;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin: 0.75rem 0 1.2rem;
    color: #1f2937;
    display: grid;
    gap: 0.25rem;
    max-width: 220px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.worksheet-limit-card .limit-title {
    font-weight: 700;
    letter-spacing: 0.2px;
}

.worksheet-limit-card .limit-count {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 1.6rem;
    font-weight: 800;
}

.worksheet-limit-card .limit-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4b5563;
}

.worksheet-limit-card .limit-note {
    font-size: 0.85rem;
    color: #6b7280;
}

.worksheet-message {
    margin: 0.5rem 0 1rem;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    background: #fff7ed;
    border: 1px solid #fbbf24;
    color: #92400e;
    font-size: 0.9rem;
}

.worksheet-generate-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(2, 6, 23, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.worksheet-generate-dialog {
    position: relative;
    width: 100%;
    max-width: 700px;
}

.worksheet-generate-close {
    position: absolute;
    top: 0.4rem;
    right: 0.6rem;
    border: none;
    background: transparent;
    color: #334155;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.worksheet-generate-dialog .worksheet-generator {
    margin-bottom: 0;
}

.worksheet-card-board {
    background: #171652;
    border-radius: 16px;
    padding: 1rem;
    margin: 0 0 1.4rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.2);
}

.worksheet-card-board-head h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.1rem;
}

.worksheet-card-board-head p {
    margin: 0.2rem 0 0.85rem;
    color: #dbeafe;
    font-size: 0.86rem;
}

.worksheet-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 0.75rem;
}

.worksheet-task-card {
    border: none;
    border-radius: 12px;
    min-height: 132px;
    padding: 0.7rem 0.75rem;
    text-align: left;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.worksheet-task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.24);
}

.worksheet-task-card-item {
    background: #f8fafc;
    border: 2px solid #7c3aed;
}

.worksheet-task-card-completed {
    border-color: #16a34a;
    background: #f0fdf4;
}

.worksheet-task-card-completed .worksheet-task-status {
    color: #166534;
}

.worksheet-task-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    font-size: 0.72rem;
    font-weight: 700;
    color: #0ea5e9;
}

.worksheet-task-date {
    position: absolute;
    top: 0.68rem;
    right: 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #f97316;
}

.worksheet-task-title {
    color: #1e293b;
    font-size: 1.02rem;
    line-height: 1.22;
    font-weight: 700;
    margin-top: 0.2rem;
}

.worksheet-task-footer {
    margin-top: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.worksheet-task-status {
    color: #f97316;
    font-size: 0.8rem;
    font-weight: 600;
}

.worksheet-task-progress {
    color: #0ea5e9;
    font-size: 0.8rem;
    font-weight: 700;
}

.worksheet-task-create {
    background: linear-gradient(135deg, #22b8e8 0%, #2497dc 100%);
    border: 2px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.worksheet-task-create-icon {
    font-size: 1.35rem;
    line-height: 1;
}

@media (max-width: 640px) {
    .worksheet-card-grid {
        grid-template-columns: 1fr;
    }
}

.timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #666;
}

.worksheet-cancel-btn {
    padding: 0.35rem 0.7rem;
    font-size: 0.85rem;
    line-height: 1.1;
}

.question-item {
    background: #ffffff;
    padding: 0.75rem 0.5rem 1rem 1.75rem;
    border-radius: 0;
    margin-bottom: 1.25rem;
    box-shadow: none;
    border-bottom: 1px solid #e6e6e6;
}

.question-number {
    color: #001f5b;
    font-weight: 700;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.question-text {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-size: 0.275rem;
    line-height: 1.45;
    margin-bottom: 0.85rem;
    color: #1f1f1f;
}

.worksheet-area .question-text.question-text-small {
    font-size: 1.25rem;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-weight: 400;
}

.question-text ul,
.question-text ol {
    margin-left: 1rem;
}

.question-group-title {
    font-weight: 700;
    font-size: 0.6rem;
    margin: 0.5rem 0 0.35rem;
    color: #2b2b2b;
}

.worksheet-question-image-wrap {
    margin: 0.5rem 0 1rem;
    display: flex;
    justify-content: center;
}


.worksheet-question-image {
    max-width: 33%;
    height: auto;
    border-radius: 10px;
    border: 1px solid #e3e6ef;
    background: #fff;
}

.answer-input {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid #3b82f6;
    border-radius: 4px;
    font-size: 1rem;
    margin-top: 0.5rem;
    resize: vertical;
    min-height: 155px;
    line-height: 1.5;
    background: #f5f6f8;
    box-shadow: none;
}

.answer-input.answer-input-inline {
    min-height: auto;
    height: 40px;
    width: auto;
    min-width: 120px;
    display: inline-block;
    vertical-align: baseline;
    margin: 0 0.35rem;
    resize: none;
}

.answer-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2);
}

.answer-helper {
    margin-top: 0.4rem;
    font-size: 0.8rem;
    color: #9aa2b1;
}

.pen-answer-panel {
    margin-top: 0.5rem;
}

.pen-answer-toolbar {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.pen-clear-btn {
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
    border-radius: 6px;
    padding: 0.3rem 0.6rem;
    cursor: pointer;
}

.pen-clear-btn:hover {
    background: #eef2f7;
}

.pen-draw-canvas {
    width: 100%;
    min-height: 280px;
    height: 280px;
    border: 1px solid #c7d2fe;
    border-radius: 8px;
    background: #fff;
    margin-bottom: 0.6rem;
    touch-action: none;
    cursor: crosshair;
}

.pen-ocr-status {
    min-height: 1rem;
    margin-bottom: 0.35rem;
    font-size: 0.8rem;
    color: #64748b;
}

.pen-answer-transcript {
    min-height: auto;
    height: 44px;
    margin-top: 0;
}

.mcq-statement-list {
    margin: 0.2rem 0 1rem;
}

.mcq-statement-row {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-size: 1.15rem;
    line-height: 1.55;
    color: #1f2937;
    margin: 0.35rem 0;
}

.mcq-choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem 1rem;
    margin-top: 0.35rem;
}

.mcq-choice-pill {
    border: 1px solid #d8dee9;
    border-radius: 999px;
    background: #e5e7eb;
    color: #1f2937;
    padding: 0.9rem 1.2rem;
    text-align: left;
    font-size: 1.05rem;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.mcq-choice-pill:hover {
    background: #dce1e9;
}

.mcq-choice-pill.selected {
    background: #f1d8af;
    border-color: #f1d8af;
}

.mcq-choice-number {
    font-weight: 600;
    min-width: 2.1rem;
}

.mcq-choice-text {
    display: inline-block;
}

@media (max-width: 768px) {
    .mcq-choice-grid {
        grid-template-columns: 1fr;
    }
}

.result-group-title {
    margin: 0 0 0.3rem;
    color: #2b2b2b;
}

.result-partial {
    color: #b7791f;
    font-weight: 600;
    font-size: 0.85em;
}

/* Results Area */
.results-area {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.worksheet-marking-overlay {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    background: rgba(2, 6, 23, 0.35);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.worksheet-marking-dialog {
    width: min(440px, 100%);
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1rem 1rem 1.1rem;
    box-shadow: 0 16px 42px rgba(2, 6, 23, 0.24);
}

.worksheet-marking-dialog h3 {
    margin: 0 0 0.3rem;
    font-size: 1.08rem;
    color: #0f172a;
}

.worksheet-marking-dialog p {
    margin: 0 0 0.8rem;
    color: #64748b;
    font-size: 0.92rem;
}

.worksheet-marking-progress-track {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.worksheet-marking-progress-bar {
    display: block;
    width: 0%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
    transition: width 0.18s ease-out;
}

.worksheet-marking-progress-text {
    margin-top: 0.55rem;
    font-weight: 700;
    color: #1e3a8a;
    font-size: 0.9rem;
}

.ai-summary-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1rem 1.25rem;
    margin: 1rem 0 1.5rem;
    text-align: left;
}

.ai-summary-card h4 {
    margin: 0 0 0.6rem;
    color: #0f172a;
}

.ai-summary-card p {
    margin: 0 0 0.8rem;
    color: #475569;
}

.ai-summary-grid {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.ai-summary-row {
    display: grid;
    grid-template-columns: 1.2fr 0.6fr 2fr;
    gap: 0.75rem;
    align-items: start;
    font-size: 0.9rem;
    color: #1f2937;
}

.ai-summary-head {
    font-weight: 700;
    color: #0f172a;
}

.result-accuracy {
    margin: 0.2rem 0 0.6rem;
    font-size: 0.85rem;
    color: #64748b;
}

.results-card {
    text-align: center;
}

.results-card h3 {
    color: #667eea;
    margin-bottom: 2rem;
}

.score-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.score-circle {
    position: relative;
    width: 150px;
    height: 150px;
}

.score-circle span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
}

.score-details {
    text-align: left;
}

.score-details p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.score-details span {
    color: #667eea;
    font-weight: 700;
}

#resultsDetails {
    margin: 2rem 0;
    text-align: left;
}

.result-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 10px;
}

.result-item.correct {
    background: #d4edda;
}

.result-item.incorrect {
    background: #f8d7da;
}

.result-icon {
    font-size: 1.5rem;
}

.result-details p {
    margin-bottom: 0.5rem;
}

.result-question {
    color: #1f2937;
    font-weight: 600;
}

.correct-answer {
    color: #155724;
    font-weight: 600;
}

.ai-teacher-note {
    margin-top: 0.5rem;
    padding: 0.75rem;
    border-radius: 8px;
    background: #f3f7ff;
    border: 1px solid #d6e2ff;
    color: #2d3a66;
    font-size: 0.95rem;
}

.ai-teacher-note p {
    margin: 0.35rem 0 0;
}

/* Classes */
.classes-intro-card {
    border-radius: 24px;
    border: 5px solid rgba(255, 255, 255, 0.75);
    background: linear-gradient(135deg, rgba(49, 168, 224, 0.86) 0%, rgba(47, 158, 216, 0.86) 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
    overflow: hidden;
    margin: 0 0 1.1rem;
    position: relative;
}

.classes-intro-card::before {
    content: '';
    position: absolute;
    right: -36px;
    top: -34px;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.classes-intro-card::after {
    content: '';
    position: absolute;
    left: 54%;
    top: 22%;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.classes-intro-title {
    margin: 0;
    background: rgba(239, 247, 251, 0.82);
    color: #1f9de4;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: "Poppins", sans-serif;
    line-height: 1.1;
    padding: 0.55rem 1rem 0.65rem;
    position: relative;
    z-index: 1;
}

.classes-subtitle {
    color: #fff;
    margin: 0;
    padding: 0.85rem 1rem 1rem;
    font-size: 1.05rem;
    line-height: 1.35;
    max-width: 82%;
    position: relative;
    z-index: 1;
}

.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.classes-grid-panel {
    background: linear-gradient(135deg, rgba(39, 66, 120, 0.78) 0%, rgba(69, 134, 190, 0.62) 100%);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(9, 24, 58, 0.28);
    padding: 1.1rem 1.2rem 1.25rem;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.classes-group-title {
    grid-column: 1 / -1;
    margin: 0 0 0.3rem;
    display: inline-block;
    justify-self: start;
    background: rgba(255, 255, 255, 0.92);
    color: #d97706;
    border-radius: 999px;
    padding: 0.18rem 0.75rem;
    font-size: 1.05rem;
    font-style: italic;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.classes-empty-message {
    grid-column: 1 / -1;
    margin: 0.25rem 0 0;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.98rem;
}

.class-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    position: relative;
}

.class-card.is-past-cutoff {
    opacity: 0.55;
    filter: grayscale(1);
}

.class-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.class-card h3 {
    color: #667eea;
    margin-bottom: 1rem;
}

.class-info p {
    color: #666;
    margin-bottom: 0.5rem;
}

.info-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.info-section h3 {
    color: #667eea;
    margin-bottom: 1.5rem;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
}

.feature-item .feature-icon {
    font-size: 2.5rem;
}

.feature-item h4 {
    margin-bottom: 0.5rem;
    color: #333;
}

.feature-item p {
    color: #666;
    font-size: 0.95rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

.video-placeholder {
    background: #f5f7fa;
    padding: 3rem;
    border-radius: 10px;
    text-align: center;
    margin: 2rem 0;
}

/* Teacher Chat */
.chat-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.chat-layout.full-width {
    grid-template-columns: 90px 1fr;
    transition: grid-template-columns 0.25s ease;
}

.chat-layout.full-width.sidebar-expanded {
    grid-template-columns: 290px 1fr;
}

.chat-container {
    max-width: 100%;
}

.teachers-toggle {
    width: 100%;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 14px;
    padding: 0.9rem 0.55rem;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    text-align: center;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-bottom: 0.7rem;
}

.teachers-sidebar {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 1rem 0.65rem;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.2);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    height: fit-content;
}

.teachers-sidebar.collapsed {
    padding: 0.85rem 0.5rem 0.65rem;
}

.teachers-sidebar h3 {
    color: #667eea;
    margin-bottom: 1rem;
}

.teacher-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.teacher-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.82rem 0.8rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.25s ease;
    color: #ffffff;
}

.teacher-item:hover, .teacher-item.active {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.45);
    color: #ffffff;
}

.teacher-avatar {
    font-size: 1.6rem;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.24);
    display: grid;
    place-items: center;
}

.teacher-avatar i {
    font-size: 1.35rem;
    color: #3b82f6;
}

.teacher-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.teacher-item h4 {
    margin-bottom: 0.25rem;
}

.teacher-item p {
    font-size: 0.9rem;
    opacity: 0.85;
}

.status {
    font-size: 0.85rem;
}

.status-dot {
    font-size: 0.5rem;
    margin-right: 0.35rem;
    vertical-align: middle;
}

.teachers-sidebar.collapsed .teacher-item {
    justify-content: center;
    padding: 0.8rem 0.42rem;
}

.teachers-sidebar.collapsed .teacher-item div {
    display: none;
}

.teachers-sidebar.collapsed .teacher-avatar {
    width: 34px;
    height: 34px;
    font-size: 1.4rem;
}

.status.online {
    color: #4CAF50;
}

.status.offline {
    color: #999;
}

.teacher-item.active .status.online,
.teacher-item.active .status.offline {
    color: white;
}

.chat-area {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    height: 600px;
    width: 100%;
}

/* Teacher chat full-screen style */
.teacher-chat-page .content-section {
    margin-top: 0.35rem;
    margin-bottom: 0;
    padding: 0;
    min-height: calc(100vh - 72px - 0.35rem);
}

.teacher-chat-page .chat-container.container {
    max-width: 100%;
    padding: 0 0.75rem;
    height: calc(100vh - 72px - 0.35rem);
    display: flex;
    flex-direction: column;
}

.teacher-chat-page .chat-layout {
    margin-bottom: 0;
    flex: 1;
    min-height: 0;
}

/* Remove left Tutor menu on teacher chat page */
.teacher-chat-page .teachers-sidebar {
    display: none !important;
}

.teacher-chat-page .chat-layout,
.teacher-chat-page .chat-layout.full-width,
.teacher-chat-page .chat-layout.full-width.sidebar-expanded {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
}

.teacher-chat-page .chat-area {
    height: 100%;
    min-height: 0;
    max-height: none;
}

.teacher-chat-page .chat-messages {
    padding: 1rem 1.1rem;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid #e0e0e0;
}

.chat-header h3 {
    color: #667eea;
}

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.message {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.user-message {
    flex-direction: row-reverse;
}

.message-avatar {
    font-size: 2rem;
    flex-shrink: 0;
}

.message-avatar i {
    font-size: 1.35rem;
    color: #2563eb;
}

.message-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    object-fit: cover;
    display: block;
}

.message-content {
    background: #f5f7fa;
    padding: 1rem;
    border-radius: 10px;
    max-width: 70%;
}

.ai-response-title {
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 0.6rem;
}

.teacher-message .message-content {
    font-size: 0.95rem;
    line-height: 1.55;
}

.teacher-message .message-content p,
.teacher-message .message-content li {
    font-size: 0.95rem;
    line-height: 1.55;
}

.teacher-message .message-content h1,
.teacher-message .message-content h2,
.teacher-message .message-content h3,
.teacher-message .message-content h4 {
    font-size: 1.02rem;
    line-height: 1.4;
}

.ai-steps {
    display: grid;
    gap: 0.6rem;
}

.ai-step {
    background: #f3f7ff;
    border: 1px solid #d6e2ff;
    border-radius: 12px;
    padding: 0.65rem 0.75rem;
}

.ai-step-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: #7c3aed;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.ai-followup {
    margin-top: 0.7rem;
    color: #0f172a;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    padding: 0.5rem 0.65rem;
}

.message-content .p5-science,
.message-content .p5-science * {
    text-align: left !important;
}

.message-content .p5-science footer {
    background: #1e3a8a !important;
    color: #f8fafc !important;
    border: 1px solid #1d4ed8 !important;
    border-radius: 10px !important;
    padding: 10px 12px !important;
}

.message-content .p5-science footer * {
    color: #f8fafc !important;
}

.user-message .message-content {
    background: #1473e6;
    color: #ffffff;
    border-radius: 18px;
    padding: 0.85rem 1.05rem;
    position: relative;
    box-shadow: 0 8px 16px rgba(20, 115, 230, 0.22);
}

.user-message .message-content::after {
    content: "";
    position: absolute;
    right: 10px;
    bottom: -7px;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 9px solid #1473e6;
}

.user-message .message-content p:first-child,
.user-message .message-content .message-time {
    display: none;
}

.user-message .message-content p {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.35;
}

.message-content strong {
    display: block;
    margin-bottom: 0.5rem;
}

.message-time {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 0.5rem;
    display: block;
}

.chat-input-area {
    padding: 0.85rem 1rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.chat-input-area form {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 0.55rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 0.75rem 0.8rem;
}

.chat-input-area input {
    grid-column: 1 / -1;
    width: 100%;
    padding: 0.2rem 0.2rem 0.55rem;
    border: none;
    border-radius: 0;
    font-size: 1.05rem;
    background: transparent;
    color: #334155;
}

.chat-input-area input:focus {
    outline: none;
}

.chat-input-area input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.voice-input-btn {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: none;
    background: #e2e8f0;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 0 0 auto;
}

.voice-input-btn:hover {
    background: #dbe3ee;
}

.voice-input-btn.listening {
    background: #fee2e2;
    border-color: #f87171;
    color: #b91c1c;
    animation: voicePulse 1s ease-in-out infinite;
}

.voice-input-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.teacher-chat-page .chat-input-area .btn-primary {
    width: 34px;
    height: 34px;
    min-width: 34px;
    grid-column: 4 / 5;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 0;
    padding: 0;
    font-size: 0;
    background: transparent;
    color: #9bbcff;
    border: none;
    box-shadow: none;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.teacher-chat-page .chat-input-area .btn-primary::after {
    content: "\27A4";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: block;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1;
    color: #9bbcff;
    margin: 0;
}

.teacher-chat-page .chat-input-area .btn-primary:hover {
    transform: none;
    background: transparent;
    box-shadow: none;
    outline: none;
}

.teacher-chat-page .chat-input-area .btn-primary:focus,
.teacher-chat-page .chat-input-area .btn-primary:focus-visible,
.teacher-chat-page .chat-input-area .btn-primary:active {
    background: transparent;
    border: none;
    box-shadow: none;
    outline: none;
}

.chat-image-attachment {
    margin-top: 0.55rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: #f8fbff;
    border: 1px solid #dbe7f7;
    border-radius: 10px;
    padding: 0.45rem 0.55rem;
}

.chat-image-attachment img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #c9d8ef;
    flex: 0 0 auto;
}

.chat-image-attachment-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    width: 100%;
    min-width: 0;
}

.chat-image-attachment-actions span {
    color: #334155;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.clear-attachment-btn {
    border: 1px solid #fca5a5;
    background: #fff1f2;
    color: #b91c1c;
    border-radius: 8px;
    padding: 0.35rem 0.6rem;
    font-size: 0.8rem;
    cursor: pointer;
}

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

/* Bubble Store */
.store-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.bubbles-balance {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3);
}

.bubbles-balance p {
    font-size: 1.1rem;
    margin: 0;
}

.bubbles-balance strong {
    font-size: 1.3rem;
    font-weight: 700;
}

.shop-description {
    color: #666;
    font-size: 0.95rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.shop-description--light {
    color: #fff;
}

.little-lion-shop-page .shop-description {
    color: #fff;
}

.store-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.75rem;
}

.store-categories {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.category-btn:hover, .category-btn.active {
    background: #667eea;
    color: white;
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.store-item {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s;
}

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

.item-image {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
}

.item-image img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: block;
}

.store-item h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.store-item p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.item-price {
    color: #667eea;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.stock-qty {
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.stock-banner {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #ff4d4f;
    color: #fff;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    box-shadow: 0 6px 14px rgba(255, 77, 79, 0.3);
}

.store-item {
    position: relative;
}

.btn-primary.disabled,
.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-quest-mini.disabled,
.btn-quest-mini:disabled {
    background: #e0e0e0;
    color: #9e9e9e;
    cursor: not-allowed;
    border-color: transparent;
    box-shadow: none;
}

.quest-complete-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #cff7ef;
    color: #1f4b4a;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    box-shadow: 0 6px 14px rgba(36, 114, 110, 0.18);
}

/* Progress */
.progress-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.progress-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.subject-header {
    padding: 1.5rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.math-header {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.english-header {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
}

.science-header {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
}

.chinese-header {
    background: linear-gradient(135deg, #E91E63 0%, #C2185B 100%);
}

.skill-display {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    align-items: center;
}

.skill-circle {
    position: relative;
}

.skill-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
}

.skill-label {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 0.5rem;
}

.skill-description {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.progress-stats {
    display: flex;
    justify-content: space-around;
    padding: 1.5rem;
    background: #f5f7fa;
}

.progress-stats.secondary-stats {
    background: #fafbfc;
    border-top: 1px solid #e5e9f0;
    padding: 1rem 1.5rem;
}

.progress-stats.secondary-stats .stat-item h4 {
    font-size: 0.9rem;
    color: #667eea;
}

.progress-stats.secondary-stats .stat-item p {
    font-size: 1rem;
}

.stat-item {
    text-align: center;
}

.stat-item h4 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: #666;
    font-size: 1.1rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.info-card {
    background: #f5f7fa;
    padding: 1.5rem;
    border-radius: 10px;
}

.info-card h4 {
    color: #667eea;
    margin-bottom: 1rem;
}

.info-card p {
    color: #666;
}

/* Responsive */
/* Tablet/iPad authenticated pages: show primary nav as bottom dock */
@media (min-width: 769px) and (max-width: 1200px) {
    body:not(.public-page) {
        padding-bottom: 86px;
    }

    .navbar.dashboard-nav .container {
        max-width: 100%;
        padding: 0.2rem 0.8rem;
        flex-wrap: nowrap;
        align-items: center;
    }

    .navbar.dashboard-nav .menu-toggle,
    .navbar.dashboard-nav .mobile-header-paws,
    .navbar.dashboard-nav .mobile-upgrade-band {
        display: none !important;
    }

    .navbar.dashboard-nav .nav-brand {
        flex: 0 0 auto;
    }

    .navbar.dashboard-nav .logo {
        width: 118px;
        height: 46px;
    }

    .navbar.dashboard-nav .nav-links {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: 8px;
        top: auto;
        transform: none;
        height: auto;
        width: auto;
        max-width: none;
        display: flex !important;
        flex-direction: row;
        align-items: center;
        justify-content: space-around;
        gap: 0;
        padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
        margin: 0;
        border-radius: 20px 20px 0 0;
        border: 1px solid #e5e7eb;
        border-bottom: 0;
        background: #ffffff;
        box-shadow: 0 -3px 12px rgba(15, 23, 42, 0.2);
        z-index: 1200;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        overflow: visible;
    }

    .navbar.dashboard-nav .nav-links li {
        flex: 1 1 0;
        min-width: 0;
        list-style: none;
        margin: 0;
        padding: 0;
        display: block !important;
    }

    .navbar.dashboard-nav .nav-links li.mobile-action-item,
    .navbar.dashboard-nav .nav-links a.upgrade-btn {
        display: none !important;
    }

    /* Keep paws + notification + profile anchored inside top header on iPad */
    .tablet-header-actions {
        margin-left: auto;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        flex: 0 0 auto;
    }

    .tablet-header-actions .golden-paws-nav,
    .tablet-header-actions .notification-nav,
    .tablet-header-actions .profile-dropdown-container {
        display: block !important;
        position: static !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none;
        z-index: auto;
    }

    .tablet-header-actions .golden-paws-nav .paws-counter {
        width: auto;
        min-width: 86px;
        padding: 0.45rem 0.7rem;
        border-radius: 999px;
        border: 1px solid #e5e7eb;
        background: #ffffff;
        box-shadow: none;
    }

    .tablet-header-actions .notification-nav .notification-btn {
        width: 40px;
        height: 40px;
        border-radius: 999px;
        border: 1px solid #e5e7eb;
        background: #ffffff;
    }

    .tablet-header-actions .profile-dropdown-container .profile-btn {
        padding: 0;
        border-radius: 999px;
        background: transparent;
    }

    .tablet-header-actions .profile-dropdown-container .plan-badge {
        right: -6px;
    }

    .navbar.dashboard-nav .nav-links a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.45rem;
        width: 100%;
        color: #1f2937;
        font-size: 0.86rem;
        font-weight: 600;
        padding: 0.58rem 0.3rem;
        border-radius: 12px;
        white-space: nowrap;
    }

    .navbar.dashboard-nav .nav-links a.active,
    .navbar.dashboard-nav .nav-links a:hover {
        background: #f4f4f6;
    }

    .navbar.dashboard-nav .nav-links a .nav-icon {
        font-size: 1rem;
    }

    .dashboard-page .floating-menu {
        display: none !important;
    }

    /* Teacher chat: keep input above tablet bottom dock */
    .teacher-chat-page .chat-area {
        position: relative;
    }

    .teacher-chat-page .chat-messages {
        padding-bottom: calc(165px + env(safe-area-inset-bottom));
    }

    .teacher-chat-page .chat-input-area {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(76px + env(safe-area-inset-bottom));
        z-index: 1210;
        background: linear-gradient(180deg, #f7fafc 0%, #eef3f9 100%);
        border-top: 0;
        padding: 0.55rem 0.7rem;
    }

    .teacher-chat-page .chat-input-area form {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
        background: #ffffff;
        border: 1px solid #e4eaf3;
        border-radius: 18px;
        padding: 0.45rem 0.5rem;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    }
}

/* Tablet styles */
@media (max-width: 1024px) {
    .navbar .container {
        padding: 0.25rem 0.8rem;
        flex-wrap: wrap;
        row-gap: 0.35rem;
    }


    .nav-links {
        gap: 0.2rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links a {
        padding: 0.42rem 0.75rem;
        font-size: 0.86rem;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .navbar {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    body {
        overflow-x: hidden;
    }
    
    .container {
        padding: 0 1rem;
        max-width: 100%;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        margin: 1.5rem 0;
    }
    
    .stat {
        text-align: left;
    }
    
    .stat h3 {
        font-size: 1.5rem;
    }
    
    .stat p {
        font-size: 0.85rem;
    }
    
    .btn-large {
        width: 100%;
        text-align: center;
    }
    
    .hero-image {
        display: none;
    }
    
    .auth-container {
        grid-template-columns: 1fr;
    }
    
    .auth-benefits {
        display: none;
    }

    /* Mobile Navigation */
    .menu-toggle {
        display: flex !important;
        order: 3;
        margin-left: auto;
        flex-shrink: 0;
        z-index: 1101;
    }

    .mobile-header-paws {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        padding: 0.28rem 0.58rem;
        border-radius: 999px;
        border: 1px solid #e5e7eb;
        background: #ffffff;
        color: #0f2f5a;
        font-weight: 700;
        font-size: 0.95rem;
        order: 2;
        margin-left: auto;
        margin-right: 0.6rem;
        min-height: 32px;
    }

    .mobile-header-paws .paw-icon-mini {
        width: 18px;
        height: 18px;
    }

    .mobile-header-paws .paw-icon-mini img {
        width: 12px;
        height: 12px;
    }

    .mobile-upgrade-band {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        padding: 0.45rem 0.8rem;
        background: linear-gradient(90deg, #eff6ff 0%, #dbeafe 100%);
        border-top: 1px solid #dbe5f7;
        border-bottom: 1px solid #dbe5f7;
    }

    .mobile-upgrade-text {
        color: #1e3a8a;
        font-size: 0.78rem;
        font-weight: 600;
    }

    .mobile-upgrade-btn {
        text-decoration: none;
        background: #2563eb;
        color: #ffffff;
        border-radius: 8px;
        padding: 0.3rem 0.7rem;
        font-size: 0.72rem;
        font-weight: 700;
        white-space: nowrap;
    }

    .navbar .container {
        width: 100%;
        max-width: 100vw;
        padding: 0 0.1rem;
        flex-wrap: nowrap;
        position: relative;
        justify-content: space-between;
        border-bottom: none;
    }

    .nav-brand {
        order: 1;
        border: none;
    }

    /* Hide desktop-only items on mobile */
    .nav-links li.desktop-only {
        display: none !important;
    }

    /* Ensure nav-links don't create visual line */
    .nav-links {
        position: fixed !important;
        top: 0;
        right: -100% !important;
        height: 100vh;
        width: 280px;
        max-width: 85vw;
        background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 0;
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
        transition: right 0.3s ease-in-out, visibility 0.3s, opacity 0.3s;
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 1000;
        justify-content: flex-start;
        align-items: flex-start;
        -webkit-overflow-scrolling: touch;
        order: 2;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        display: flex !important;
        transform: translateX(0);
        z-index: 1100;
    }

    .nav-links.active {
        right: 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    
    /* Ensure nav-links list items don't show */
    .nav-links:not(.active) li {
        display: none !important;
    }
    
    .nav-links.active li {
        display: block !important;
    }

    .nav-links li {
        width: 100%;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    /* Mobile Golden Paws alignment */
    .golden-paws-nav {
        display: none !important;
    }
    
    .paws-counter {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
        font-size: 1.1rem;
    }

    .golden-paws-nav {
        margin-bottom: 0.75rem !important;
    }
    
    .notification-btn {
        width: 100%;
        height: 48px;
        border-radius: 12px;
    }

    /* Mobile: hide notification + profile items */
    .notification-nav,
    .profile-dropdown-container {
        display: none !important;
    }

    /* Mobile: hide paws + upgrade items inside slide menu on all pages */
    .nav-links .golden-paws-nav,
    .nav-links a.upgrade-btn {
        display: none !important;
    }


    .mobile-action-item {
        width: 100%;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .mobile-action-link {
        display: block;
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        border-radius: 8px;
        margin-bottom: 0.5rem;
        text-align: center;
        color: #ffffff;
        text-decoration: none;
        background: transparent;
        border: 1px solid transparent;
    }

    .mobile-action-link .nav-icon {
        margin-right: 0.5rem;
        width: 1rem;
        text-align: center;
    }

    .mobile-action-link:hover {
        background: rgba(255,255,255,0.24);
    }

    .mobile-action-link.active {
        background: rgba(255,255,255,0.2);
        border-color: rgba(255,255,255,0.35);
    }
    
    /* Mobile notification dropdown */
    .notification-dropdown {
        width: calc(100vw - 2rem);
        right: 1rem;
        left: 1rem;
        max-width: 380px;
    }
    
    .notification-dropdown.show {
        position: fixed;
        top: 80px;
        right: 1rem;
        left: auto;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        border-radius: 8px;
        margin-bottom: 0.5rem;
        text-align: center;
        -webkit-tap-highlight-color: transparent;
    }

    .nav-links a:hover, .nav-links a.active {
        background: rgba(255,255,255,0.2);
    }

    /* Mobile Sign In/Sign Up Buttons */
    .nav-links a.nav-login-btn {
        background: rgba(255,255,255,0.15);
        border: 2px solid rgba(255,255,255,0.6);
        font-weight: 600;
        text-align: center;
        margin-top: 1rem;
    }

    .nav-links a.btn-primary {
        background: white;
        color: #667eea;
        font-weight: 600;
        border: none;
        text-align: center;
    }

    .nav-links a.logout-link {
        margin-left: 0;
        margin-top: 1rem;
        text-align: center;
    }
    
    /* Profile dropdown mobile */
    .profile-dropdown-container {
        margin-top: 1rem;
    }
    
    .profile-btn {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
        border-radius: 8px;
    }
    
    .profile-dropdown {
        position: static;
        width: 100%;
        margin-top: 0.5rem;
        transform: none;
    }
    
    .profile-dropdown.show {
        transform: none;
    }

    .nav-brand h1 {
        font-size: 1.2rem;
    }
    
    /* Dashboard mobile responsiveness */
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
    }

    .welcome-card-main {
        width: 100%;
        align-items: center;
    }

    .welcome-card-illustration {
        width: 100%;
        justify-content: flex-end;
        align-self: flex-end;
        gap: 0.55rem;
    }

    .calendar-icon {
        width: 96px;
        height: 96px;
        margin-top: 0.5rem;
        margin-left: auto;
    }

    .calendar-icon {
        display: none;
    }

    .calendar-day {
        font-size: 2rem;
        padding-bottom: 0.4rem;
    }

    .welcome-card-illustration img {
        width: 120px;
    }

    .welcome-card-illustration .welcome-tiger-gif {
        width: 82px;
    }

    .welcome-card-avatar {
        width: 76px;
        height: 76px;
        min-width: 76px;
    }

    .library-card {
        width: 100%;
        margin-bottom: 1.5rem;
        height: 140px;
        min-height: 140px;
    }

    .dashboard .library-card {
        display: none !important;
    }

    .welcome-row {
        flex-direction: column;
        margin-bottom: 1.5rem;
    }

    .welcome-row .dashboard-header {
        margin-bottom: 0;
        height: auto;
        min-height: 220px;
    }
    
    .dashboard-header h2 {
        font-size: 1.3rem;
    }
    
    .bubbles-display {
        width: 100%;
        padding: 0.8rem 1rem;
        gap: 0.8rem;
    }
    
    .bubble-icon {
        font-size: 2rem;
    }
    
    .golden-paw-icon {
        width: 36px;
        height: 36px;
    }
    
    .golden-paw-icon-inline {
        width: 18px;
        height: 18px;
    }
    
    .bubble-count {
        font-size: 1.5rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .dashboard {
        padding: 1rem 0;
    }
    
    .dashboard .container {
        padding: 0 1rem;
    }
    
    .chat-layout {
        grid-template-columns: 1fr;
    }

    .chat-layout.full-width,
    .chat-layout.full-width.sidebar-expanded {
        grid-template-columns: 1fr;
    }
    
    .teachers-sidebar {
        display: none !important;
    }

    .chat-area {
        width: 100%;
        min-width: 0;
    }

    .chat-input-area form {
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .chat-input-area input {
        min-width: 0;
    }
}

/* Small mobile styles */
@media (max-width: 480px) {
    .navbar .container {
        padding: 0;
    }

    .nav-brand h1 {
        font-size: 1rem;
    }

    .logo {
        width: 120px;
        height: auto;
        max-height: 60px;
    }

    .header-menuai-icon {
        width: 28px;
        height: 28px;
    }

    .nav-links {
        width: 100%;
        right: -100%;
    }

    .nav-links.active {
        right: 0;
    }
}

/* Golden Paw Toast Notification */
.golden-paw-toast {
    position: fixed;
    top: 80px;
    right: -400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    z-index: 10000;
    transition: right 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    min-width: 280px;
}

.golden-paw-toast.show {
    right: 20px;
}

.golden-paw-toast-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.golden-paw-toast-icon {
    width: 56px;
    height: 56px;
    animation: pawBounce 0.6s ease-in-out;
}

.golden-paw-toast-text {
    flex: 1;
}

.golden-paw-amount {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
    color: var(--paw-color);
}

.golden-paw-label {
    font-size: 0.9rem;
    opacity: 0.95;
    font-weight: 500;
}

@keyframes pawBounce {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.2) rotate(-10deg);
    }
    50% {
        transform: scale(1.1) rotate(10deg);
    }
    75% {
        transform: scale(1.15) rotate(-5deg);
    }
}

/* Mobile Golden Paw Toast */
@media (max-width: 768px) {
    .golden-paw-toast {
        top: auto;
        bottom: -200px;
        right: 50%;
        transform: translateX(50%);
        min-width: 90%;
        max-width: 320px;
        transition: bottom 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }
    
    .golden-paw-toast.show {
        bottom: 20px;
        right: 50%;
    }
    
    .golden-paw-toast-icon {
        width: 48px;
        height: 48px;
    }
    
    .golden-paw-amount {
        font-size: 1.8rem;
    }
}

/* Daily Quest Section */
.daily-quests-section {
    margin-bottom: 2rem;
}

.daily-quests-section .section-title {
    color: #ffffff;
}

.classroom-section {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 2rem;
}

.classroom-left .section-header {
    margin-bottom: 1rem;
    position: static;
    z-index: 2;
}

.classroom-left .section-header h3 {
    font-size: 1.25rem;
    margin: 0;
    color: #f28a33;
    font-weight: 700;
    font-style: italic;
    background: #fff6ed;
    border-radius: 0 0 22px 0;
    padding: 0.35rem 1rem 0.4rem 0.65rem;
    position: absolute;
    top: 0;
    left: 0;
    line-height: 1.1;
    z-index: 3;
}

.classroom-left {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 36px;
    padding: 3.4rem 1.4rem 1.3rem;
    border: 2px solid #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    position: relative;
    overflow: hidden;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.classroom-left::before {
    content: '';
    position: absolute;
    right: -30px;
    top: -28px;
    width: 118px;
    height: 118px;
    border-radius: 50%;
    background: #f3f4f6;
    z-index: 1;
}

.classroom-left::after {
    content: '';
    position: absolute;
    left: -46px;
    bottom: -52px;
    width: 134px;
    height: 134px;
    border-radius: 50%;
    background: #f3f4f6;
    z-index: 1;
}

.classroom-subtitle {
    margin: 2.75rem 0 0.75rem;
    color: #f8fffb;
    font-size: 1.35rem;
    line-height: 1.2;
}

.classroom-subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
    position: relative;
    z-index: 2;
}


.classroom-subject-card {
    border-radius: 20px;
    padding: 0;
    box-shadow: none;
    background: transparent;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    display: flex;
    justify-content: center;
}

.classroom-subject-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.classroom-subject-card.math {
    background: transparent;
}

.classroom-subject-card.english {
    background: transparent;
}

.classroom-subject-card.science {
    background: transparent;
}

.classroom-subject-card.chinese {
    background: transparent;
}

.classroom-frame {
    background: transparent;
    border-radius: 16px;
    padding: 0.4rem 0.8rem 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
    position: relative;
    border: none;
    box-shadow: none;
}

.classroom-frame img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    border: 2px solid #d6dde8;
    border-radius: 12px;
    background: #ffffff;
    padding: 3px;
    filter: drop-shadow(0 10px 18px rgba(0,0,0,0.15));
    transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
    transform-origin: center;
}

.classroom-subject-card:hover .classroom-frame img {
    transform: translateY(-6px) scale(1.05) rotate(-4deg);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
    filter: drop-shadow(0 14px 24px rgba(0,0,0,0.18));
}

.classroom-frame span {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    color: #2c3e50;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
}

.classroom-right .dashboard-card {
    height: 100%;
}

.class-schedule-card {
    background: linear-gradient(135deg, #4eb3e3 0%, #3ca6da 100%);
    border-radius: 32px;
    border: 4px solid #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
    padding: 3.1rem 1.2rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    position: relative;
    overflow: hidden;
}

.class-schedule-card::before {
    content: '';
    position: absolute;
    right: -34px;
    top: -30px;
    width: 122px;
    height: 122px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.class-schedule-card::after {
    content: '';
    position: absolute;
    left: -52px;
    bottom: -58px;
    width: 145px;
    height: 145px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
}

.class-schedule-card .panel-header {
    position: relative;
    z-index: 2;
    margin-bottom: 0.2rem;
}

.class-schedule-card .panel-header h3 {
    font-size: 1.15rem;
    margin: 0;
    color: #37a7e6;
    font-weight: 700;
    font-style: italic;
    background: #f6fbff;
    border-radius: 0 0 22px 0;
    padding: 0.35rem 0.95rem 0.45rem 0.65rem;
    position: absolute;
    top: -2.5rem;
    left: -1.2rem;
    line-height: 1.1;
}

.class-schedule-card .panel-link {
    background: rgba(255, 255, 255, 0.2);
    color: #f2fbff;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.class-schedule-card .panel-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.3);
}

.class-schedule-card .schedule-list {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.84);
    border-radius: 22px;
    padding: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.quick-start-card {
    background: linear-gradient(135deg, #4eb3e3 0%, #3ca6da 100%);
    border-radius: 32px;
    border: 4px solid #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
    padding: 3.1rem 1.2rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    position: relative;
    overflow: hidden;
}

.quick-start-card::before {
    content: '';
    position: absolute;
    right: -34px;
    top: -30px;
    width: 122px;
    height: 122px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.quick-start-card::after {
    content: '';
    position: absolute;
    left: -52px;
    bottom: -58px;
    width: 145px;
    height: 145px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
}

.quick-start-card .panel-header {
    position: relative;
    z-index: 2;
}

.quick-start-card .panel-header h3 {
    font-size: 1.15rem;
    margin: 0;
    color: #37a7e6;
    font-weight: 700;
    font-style: italic;
    background: #f6fbff;
    border-radius: 0 0 22px 0;
    padding: 0.35rem 0.95rem 0.45rem 0.65rem;
    position: absolute;
    top: -2.5rem;
    left: -1.2rem;
    line-height: 1.1;
}

.quick-start-card .panel-link {
    background: rgba(255, 255, 255, 0.2);
    color: #f2fbff;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.quick-start-card .panel-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.3);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #1f2937;
    font-weight: 700;
}

.panel-link {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: #f4f6fb;
}

.panel-link:hover {
    color: #1f2937;
}

.panel-card .card-body {
    padding: 0;
}

.quick-start-card .quick-start-list,
.quick-start-card .card-body {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.84);
    border-radius: 22px;
    padding: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.quick-start-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.quick-start-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.65rem 0.75rem;
    border-radius: 14px;
    background: #f9fafc;
    text-decoration: none;
    border: 1px solid #eef2f7;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-start-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
}

.quick-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, #dfe7ff, #c7d6ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    color: #4f46e5;
}

.quick-icon i {
    font-size: 1.18rem;
}

.quick-text h4 {
    margin: 0 0 0.2rem;
    font-size: 0.98rem;
    color: #1f2937;
    font-weight: 700;
}

.quick-text p {
    margin: 0;
    color: #6b7280;
    font-size: 0.85rem;
}

.quick-start-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: #0b73b8;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.65rem 1rem;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(11, 115, 184, 0.25);
}

.quick-start-cta:hover {
    background: #0a5fa6;
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.schedule-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.65rem 0.75rem;
    border-radius: 14px;
    background: #f9fafc;
    text-decoration: none;
    border: 1px solid #eef2f7;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.schedule-item.is-past-cutoff {
    opacity: 0.5;
    filter: grayscale(1);
}

.schedule-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
}

.schedule-dot {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;
}

.dot-purple {
    background: linear-gradient(135deg, #b39bff, #8f84ff);
}

.dot-blue {
    background: linear-gradient(135deg, #7cc8ff, #5ca3ff);
}

.dot-peach {
    background: linear-gradient(135deg, #ffb480, #ff9f6e);
}

.dot-red {
    background: linear-gradient(135deg, #ff7a7a, #ff4d4d);
}

.welcome-back-modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 16, 24, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1.5rem;
}

.welcome-back-modal.is-visible {
    display: flex;
}

.welcome-back-card {
    width: min(420px, 100%);
    background: #ffffff;
    border-radius: 14px;
    padding: 0.5rem;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.4rem;
    position: relative;
    backdrop-filter: blur(2px);
}

.welcome-back-close {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #dbe3ee;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    color: #4a5568;
}

.welcome-back-media {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: transparent;
    border-radius: 10px;
    padding: 0.25rem;
}

.welcome-back-media img {
    width: 180px;
    height: 180px;
    object-fit: contain;
}

.welcome-back-media .welcome-back-speak-img {
    width: 90px;
    height: 90px;
}

.welcome-back-content h3 {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
    color: #0f172a;
}

.welcome-back-content p {
    margin: 0 0 1rem;
    color: #475569;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.welcome-back-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.1rem;
    margin-bottom: 0.9rem;
}

.welcome-back-content .btn-primary {
    border-radius: 999px;
    padding: 0.6rem 1.5rem;
}

.welcome-back-content .btn-secondary {
    border-radius: 999px;
    padding: 0.35rem 0.5rem;
    font-size: 1rem;
    margin: 0 auto;
    box-shadow: none !important;
}

@media (max-width: 520px) {
    .welcome-back-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .welcome-back-media {
        justify-content: center;
    }
}

.schedule-text h4 {
    margin: 0 0 0.2rem;
    font-size: 0.95rem;
    color: #1f2937;
    font-weight: 700;
}

.schedule-text p {
    margin: 0;
    font-size: 0.82rem;
    color: #6b7280;
}

.schedule-arrow {
    margin-left: auto;
    color: #94a3b8;
    font-size: 1.3rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .class-schedule-card {
        padding: 1.1rem;
    }
}

@media (max-width: 1024px) {
    .classroom-section {
        grid-template-columns: 1fr;
    }
}

.section-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

.activity-trends-row {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 1fr);
    gap: 1rem;
    align-items: stretch;
    margin-bottom: 1.5rem;
}

.daily-activity {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    padding: 2.3rem 1.5rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.daily-activity-header {
    display: block;
    margin-bottom: 1rem;
}

.daily-activity-header h3 {
    font-size: 1.25rem;
    margin: 0;
    color: #f28a33;
    font-weight: 700;
    font-style: italic;
    background: #fff6ed;
    border-radius: 0 0 22px 0;
    padding: 0.35rem 1rem 0.4rem 0.65rem;
    position: absolute;
    top: 0;
    left: 0;
    line-height: 1.1;
}

.daily-activity-header h3::after {
    content: none;
}

.daily-activity-header p {
    margin: 0;
    color: #9aa3af;
    font-size: 0.9rem;
    line-height: 1.25;
}

.daily-activity-strip {
    display: grid;
    grid-template-columns: repeat(7, minmax(48px, 1fr));
    gap: 0.6rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.activity-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    min-width: 48px;
    background: #ffffff;
    border-radius: 16px;
    padding: 0.45rem 0.4rem 0.35rem;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    border: 1px solid #eef2f7;
}

.activity-weekday {
    font-size: 0.72rem;
    color: #9aa3af;
    font-weight: 700;
    text-transform: uppercase;
}

.activity-circle {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: #f1f5f9;
    color: #4b5563;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid #e5e7eb;
}

.activity-circle.active {
    background: #ffffff;
    color: #111827;
    border-color: #e5e7eb;
    box-shadow: none;
}

.activity-circle.active {
    background: linear-gradient(135deg, #d7f7ef 0%, #c2f1e7 100%);
    color: #0f766e;
    border-color: #b5eee0;
    box-shadow: 0 6px 14px rgba(14, 116, 144, 0.18);
}

.activity-dots {
    display: flex;
    gap: 0.2rem;
}

.activity-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #e5e7eb;
}

.activity-dot.filled {
    background: #5b8def;
}

@media (max-width: 1024px) {
    .daily-activity-strip {
        grid-template-columns: repeat(7, minmax(44px, 1fr));
    }
}

@media (max-width: 768px) {
    .daily-activity {
        padding: 1rem;
    }

    .daily-activity-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .daily-activity-strip {
        grid-template-columns: repeat(7, minmax(42px, 1fr));
    }
}

.paw-activity-overview {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 0.6rem;
}

.paw-stat-card {
    background: #ffffff;
    border: 1px solid #e3e8f3;
    border-radius: 12px;
    padding: 0.65rem 0.75rem;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.paw-stat-label {
    display: block;
    font-size: 0.74rem;
    color: #64748b;
    margin-bottom: 0.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.paw-stat-card strong {
    font-size: 1.12rem;
    color: #1e3a8a;
    font-weight: 800;
}

.paw-graph-card {
    margin-top: 0;
    background: #ffffff;
    border: 1px solid #e3e8f3;
    border-radius: 14px;
    padding: 0.7rem 0.8rem 0.55rem;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    height: 100%;
}

.paw-trend-card {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.paw-graph-title {
    font-size: 0.82rem;
    color: #1e3a8a;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.paw-chart-canvas-wrap {
    position: relative;
    height: 195px;
}

#pawTrendChart {
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 768px) {
    .activity-trends-row {
        grid-template-columns: 1fr;
    }

    .paw-activity-overview {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }

    .paw-chart-canvas-wrap {
        height: 170px;
    }
}

.daily-quests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 320px));
    gap: 1.5rem;
    margin-bottom: 2rem;
    justify-content: start;
}

.daily-quest-card.mini {
    position: relative;
    background: #fdfdfd;
    border: 2px solid #eef2f7;
    border-radius: 18px;
    padding: 1.25rem;
    transition: all 0.3s;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    width: 100%;
    max-width: 320px;
}

.daily-quest-card.mini:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(76, 102, 241, 0.16);
    border-color: #dbe4ff;
}

.quest-top {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.75rem;
}

.quest-badge {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    background: linear-gradient(135deg, #dfe7ff 0%, #c8d6ff 100%);
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.8);
}

.quest-title-wrap h4 {
    font-size: 1.05rem;
    color: #1f2937;
    margin: 0 0 0.2rem;
    font-weight: 700;
}

.quest-desc {
    color: #6b7280;
    font-size: 0.85rem;
    margin: 0;
}

.quest-progress-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #6b7280;
    margin: 0.75rem 0 0.4rem;
}

.quest-progress-label {
    font-weight: 600;
}

.quest-progress-status {
    color: #9aa3af;
    font-weight: 600;
}

.daily-quest-card.completed .quest-progress-status {
    color: #16a34a;
}

.daily-quest-card.completed .quest-progress-fill {
    width: 100% !important;
}

.daily-quest-card.completed .quest-progress-label {
    color: #16a34a;
}

.quest-progress-bar {
    height: 8px;
    background: #eef2f7;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.9rem;
}

.quest-progress-fill {
    display: block;
    height: 100%;
    width: 12%;
    background: linear-gradient(90deg, #6b8cff 0%, #7f7bff 100%);
    border-radius: 999px;
}

.daily-quest-card[data-subject="Math"] .quest-badge {
    background: linear-gradient(135deg, #ffd9e5 0%, #ffc3d8 100%);
}

.daily-quest-card[data-subject="Math"] .quest-progress-fill {
    background: linear-gradient(90deg, #ff8fb1 0%, #ff6ea9 100%);
}

.daily-quest-card[data-subject="English"] .quest-badge {
    background: linear-gradient(135deg, #dfe7ff 0%, #c9d6ff 100%);
}

.daily-quest-card[data-subject="English"] .quest-progress-fill {
    background: linear-gradient(90deg, #7b8cff 0%, #5f6bff 100%);
}

.daily-quest-card[data-subject="Science"] .quest-badge {
    background: linear-gradient(135deg, #dcf3ff 0%, #c5e5ff 100%);
}

.daily-quest-card[data-subject="Science"] .quest-progress-fill {
    background: linear-gradient(90deg, #57b0ff 0%, #3a8dff 100%);
}

.daily-quest-card[data-subject="Chinese"] .quest-badge {
    background: linear-gradient(135deg, #e5fbec 0%, #d1f5dc 100%);
}

.daily-quest-card[data-subject="Chinese"] .quest-progress-fill {
    background: linear-gradient(90deg, #4fd6a2 0%, #29b98a 100%);
}

.quest-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.quest-reward-mini {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #4f46e5;
    font-weight: 700;
    font-size: 0.85rem;
    margin: 0;
}

.btn-quest-mini {
    background: linear-gradient(135deg, #0b73b8 0%, #0a5fa6 100%);
    color: white;
    border: none;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Sora', 'Poppins', sans-serif;
    font-size: 0.85rem;
}

.btn-quest-mini:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(11, 115, 184, 0.25);
}

.btn-quest-mini:disabled {
    background: #4caf50;
    cursor: not-allowed;
}

.btn-quest-mini.completed {
    background: #4caf50;
}

/* Full-Screen Quest Interface */
.fullscreen-quest {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f5f7fa;
    z-index: 10000;
    overflow: hidden;
}

.quest-fullscreen-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.quest-header-bar {
    background: #303C6C;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.quest-back-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
}

.quest-back-btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
}

.quest-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.quest-subject-badge {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 1rem;
}

.quest-progress-info {
    font-weight: 600;
    font-size: 1.1rem;
}

.quest-paw-counter {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-weight: 700;
    position: relative;
    min-width: 90px;
    justify-content: center;
}

.quest-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.quest-voice-toggle {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.quest-voice-toggle:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
}

.quest-voice-toggle.is-off {
    opacity: 0.7;
}

.quest-paw-counter img {
    width: 22px;
    height: 22px;
}

.paw-fly {
    position: absolute;
    right: 10px;
    top: -8px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: #ffd166;
    animation: pawFly 0.9s ease-out forwards;
    pointer-events: none;
}

.paw-fly img {
    width: 16px;
    height: 16px;
}

.clap-fly {
    position: absolute;
    right: 36px;
    top: -12px;
    font-size: 1.1rem;
    animation: clapFly 0.9s ease-out forwards;
    pointer-events: none;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}

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

@keyframes clapFly {
    0% { transform: translateY(8px) scale(0.9); opacity: 0; }
    30% { opacity: 1; }
    100% { transform: translateY(-18px) scale(1.1); opacity: 0; }
}

.paw-center {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(2);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    background: rgba(0,0,0,0.6);
    color: #ffd166;
    border-radius: 999px;
    font-size: 1.1rem;
    font-weight: 700;
    z-index: 10000;
    animation: pawCenterPop 0.9s ease-out forwards;
    pointer-events: none;
}

.paw-center img {
    width: 80px;
    height: 80px;
}

@keyframes pawCenterPop {
    0% { transform: translate(-50%, -50%) scale(0.7); opacity: 0; }
    30% { opacity: 1; }
    100% { transform: translate(-50%, -55%) scale(1.05); opacity: 0; }
}

.quest-main-content {
    flex: 1;
    display: flex;
    gap: 0;
    min-height: 0;
}

/* Quest Sidebar */
.quest-sidebar {
    width: 280px;
    background: white;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 70px);
}

.proficiency-section {
    flex-shrink: 0;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.proficiency-label {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.proficiency-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.proficiency-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50 0%, #45a049 100%);
    transition: width 0.3s ease;
}

.proficiency-score {
    color: #4caf50;
    font-weight: 700;
    font-size: 1.1rem;
}

.questions-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
}

.questions-list::-webkit-scrollbar {
    width: 6px;
}

.questions-list::-webkit-scrollbar-track {
    background: #f5f7fa;
}

.questions-list::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

.questions-list::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.question-list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.question-list-item.locked {
    cursor: default;
    opacity: 0.6;
}

.question-list-item.locked .question-list-topic,
.question-list-item.locked .question-list-points {
    color: #9ca3af;
}

.question-list-item::before {
    content: '';
    position: absolute;
    left: 1.9rem;
    top: 100%;
    width: 2px;
    height: 0.5rem;
    background: #e5e7eb;
}

.question-list-item:last-child::before {
    display: none;
}

.question-list-item.active {
    background: #f0f4ff;
    border-left: 3px solid #667eea;
}

.question-list-item.correct {
    background: #f0fdf4;
}

.question-list-item.correct .status-number {
    background: #4caf50;
    color: white;
}

.question-list-item.incorrect {
    background: #fef2f2;
}

.question-list-item.incorrect .status-number {
    background: #f44336;
    color: white;
}

.question-status-icon {
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.status-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}


.question-list-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.question-list-title {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.question-list-topic {
    font-size: 0.85rem;
    color: #999;
}

.question-list-points {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #667eea;
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.question-list-points::before {
    content: '';
    width: 16px;
    height: 16px;
    display: inline-block;
    background-image: url('/static/images/golden-paw.png');
    background-size: contain;
    background-repeat: no-repeat;
}

.quest-content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    overflow-y: auto;
    align-items: center;
    min-height: 0;
}

.quest-content-area.feedback-mode {
    overflow: hidden;
}

/* Question Display */
.question-display {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 8px 40px rgba(0,0,0,0.1);
    margin: 0 auto;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.question-topic {
    background: #667eea;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
}

.question-counter {
    color: #666;
    font-weight: 600;
}

.question-text-large {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 3rem;
    line-height: 1.6;
    text-align: center;
}

.quest-solution-card {
    background: #fbf7f2;
    border-radius: 16px;
    padding: 1.75rem;
    max-width: 900px;
    width: 100%;
    height: 100%;
    max-height: 100%;
    box-shadow: 0 12px 30px rgba(18, 24, 38, 0.08);
    display: flex;
    flex-direction: column;
}

.solution-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fbf7f2;
    padding-bottom: 0.45rem;
}

.solution-avatar img {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

.solution-score {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
}

.solution-actions {
    justify-self: end;
}

.btn-next-top {
    margin: 0;
    padding: 0.45rem 0.9rem;
    font-size: 0.9rem;
    border-radius: 999px;
}

.quest-solution-card .btn-next.btn-next-top {
    padding: 0.42rem 1.05rem !important;
    font-size: 0.88rem !important;
    border-radius: 999px !important;
    min-width: auto !important;
    width: auto !important;
    line-height: 1.2;
}

.solution-date {
    color: #9ca3af;
    font-weight: 600;
    justify-self: end;
}

.solution-body {
    color: #1f2937;
    font-size: 1.05rem;
    line-height: 1.6;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.5rem;
    margin-right: -0.15rem;
    min-height: 0;
    flex: 1;
}

.solution-body::-webkit-scrollbar {
    width: 9px;
}

.solution-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
    border: 2px solid #fbf7f2;
}

.solution-body::-webkit-scrollbar-track {
    background: transparent;
}

.solution-status {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.solution-status.is-correct {
    color: #16a34a;
}

.solution-status.is-incorrect {
    color: #dc2626;
}

.solution-section-title {
    font-weight: 700;
    margin: 1rem 0 0.5rem;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.solution-section-title.cub-ai-title {
    color: #16a34a;
}

.solution-section-title.cub-ai-title .cub-ai-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.solution-divider {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 1.5rem 0;
}

.solution-steps {
    margin: 0 0 1rem 1.2rem;
    padding: 0;
}

.solution-steps li {
    list-style: none;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.9rem 1rem;
    margin: 0 0 0.75rem 0;
    box-shadow: 0 6px 16px rgba(17, 24, 39, 0.08);
}

.solution-steps li .solution-step-label {
    display: inline-block;
    background: #eef2ff;
    color: #4338ca;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    margin-right: 0.5rem;
}

.solution-answers {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.solution-answers li {
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.solution-answers li.is-selected {
    border-color: #f59e0b;
    background: #fff7ed;
}

.solution-answers li.is-correct {
    border-color: #22c55e;
    background: #f0fdf4;
}

/* Admin Question Play: one-tab list indentation inside question content */
#playQuestionText ul,
#playQuestionText ol {
    margin: 0.55rem 0 0.75rem;
    padding-left: 2em;
}

#playQuestionText li {
    margin: 0.2rem 0;
}

.solution-step-label {
    font-weight: 700;
    color: #1f2937;
    margin-right: 0.25rem;
}

.solution-body p {
    margin: 0 0 1rem;
    font-size: 1.02rem;
    line-height: 1.72;
}

.solution-body ul {
    margin: 0 0 1rem 1.2rem;
    padding: 0;
}

.solution-loading {
    color: #6b7280;
    font-weight: 600;
}

.solution-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ai-top-sections {
    display: grid;
    gap: 0.75rem;
    margin: 0 0 0.9rem;
}

.feedback-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0 0 0.75rem;
}

.feedback-action-btn {
    border: 1px solid #c7d2fe;
    background: #eef2ff;
    color: #1e3a8a;
    border-radius: 999px;
    padding: 0.42rem 0.88rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.feedback-action-btn:hover {
    background: #dbeafe;
    border-color: #93c5fd;
}

.feedback-inline-note {
    margin: 0 0 0.9rem;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1e3a8a;
    border-radius: 12px;
    padding: 0.68rem 0.82rem;
    font-size: 0.95rem;
    line-height: 1.55;
}

.ai-top-card {
    border-radius: 12px;
    padding: 0.72rem 0.9rem;
    border: 1px solid #dbe4ef;
    background: #f8fafc;
}

.ai-top-card h5 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    line-height: 1.2;
}

.ai-top-card p {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.72;
}

.ai-top-card.summary {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.ai-top-card.explanation {
    background: #eefaf3;
    border-color: #bbf7d0;
}

.ai-top-card.exam-expectation {
    background: #fff7ed;
    border-color: #fdba74;
}

.ai-top-card.exam-checklist {
    background: #eef2ff;
    border-color: #c7d2fe;
}

.ai-top-card.tip {
    background: #fff7ed;
    border-color: #fed7aa;
}

.ai-top-card.correct {
    background: #f0fdf4;
    border-color: #86efac;
}

.ai-top-card.misconception {
    background: #fff1f2;
    border-color: #fda4af;
}

.ai-checklist {
    margin: 0.1rem 0 0;
    padding-left: 1.1rem;
}

.ai-checklist li {
    margin: 0.25rem 0;
    line-height: 1.55;
}

.timeline-step {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 0.75rem;
}

.timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #6b7280;
    margin-top: 0.38rem;
}

.timeline-line {
    width: 2px;
    flex: 1;
    background: #d1d5db;
    margin-top: 0.45rem;
}

.timeline-content {
    border-left: 2px solid #d1d5db;
    padding: 0.7rem 0.9rem 0.7rem 1rem;
    border-radius: 0 10px 10px 0;
    background: #ffffff;
}

.timeline-content h4 {
    margin: 0 0 0.55rem;
    font-size: 1.06rem;
    color: #111827;
}

.timeline-content p {
    margin: 0 0 0.75rem;
    font-size: 1.02rem;
    line-height: 1.7;
}

.solution-key-card {
    margin-top: 0.4rem;
    border: 1px solid #86efac;
    background: #f0fdf4;
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    color: #166534;
    font-weight: 600;
}

.quest-question-card {
    background: #ffffff;
    border: 1px solid #e7e9f2;
    border-radius: 16px;
    padding: 1.75rem;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 10px 24px rgba(21, 34, 50, 0.05);
}

.quest-question-card .question-text-large {
    text-align: left;
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
}

.question-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.question-mark {
    font-weight: 600;
    color: #374151;
}

.question-performance {
    color: #6b7280;
}

.question-parts-toggle {
    width: 100%;
    border: none;
    background: #eef2f7;
    color: #374151;
    font-weight: 600;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    margin: 1rem 0;
}

.question-parts-chevron {
    font-size: 1.4rem;
    transform: rotate(90deg);
}

.question-parts-toggle.open .question-parts-chevron {
    transform: rotate(-90deg);
}

.question-parts {
    display: none;
    background: #f8fafc;
    border-radius: 12px;
    padding: 1rem;
    color: #4b5563;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.question-parts.open {
    display: block;
}

.quest-hint-card {
    background: #e9f3fb;
    border: 1px solid #cfe3f4;
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    max-width: 800px;
    width: 100%;
}

.hint-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem 1rem;
    margin-bottom: 0.75rem;
}

.hint-title {
    font-weight: 700;
    color: #1f2937;
}

.hint-feedback {
    font-size: 0.85rem;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.hint-icon-btn {
    border: none;
    background: #ffffff;
    border-radius: 999px;
    padding: 0.3rem 0.55rem;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}

.hint-icon-btn.active {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.hint-body {
    color: #1f2937;
    font-size: 0.95rem;
    line-height: 1.5;
}

.options-grid {
    display: grid;
    gap: 1rem;
}

.option-button {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f9fafb;
    border: 3px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    font-family: 'Poppins', sans-serif;
}

.option-button:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateX(10px);
}

.option-letter {
    width: 40px;
    height: 40px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.option-button:hover .option-letter {
    background: white;
    color: #667eea;
}

.option-button.selected {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.option-button.selected .option-letter {
    background: white;
    color: #667eea;
}

.multi-submit-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

body:not(.public-page) .quest-content-area .btn-submit-multi,
body:not(.public-page) .quest-content-area .btn-skip-question {
    background: #1e8e3e !important;
    color: white;
    border: 1px solid #1e8e3e !important;
    padding: 0.78rem 1.9rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 2px 0 rgba(20, 108, 44, 0.35), 0 3px 10px rgba(30, 142, 62, 0.28) !important;
}

body:not(.public-page) .quest-content-area .btn-submit-multi:disabled,
body:not(.public-page) .quest-content-area .btn-skip-question:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none !important;
}

body:not(.public-page) .quest-content-area .btn-skip-question {
    padding: 0.78rem 1.55rem;
}

body:not(.public-page) .quest-content-area .btn-submit-multi:hover:not(:disabled),
body:not(.public-page) .quest-content-area .btn-skip-question:hover:not(:disabled) {
    background: #188038 !important;
    border-color: #188038 !important;
    box-shadow: 0 2px 0 rgba(18, 94, 39, 0.35), 0 4px 12px rgba(24, 128, 56, 0.3) !important;
    transform: translateY(-1px);
}

.option-text {
    font-size: 1.1rem;
    flex: 1;
}

/* Feedback Display */
.feedback-display {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 8px 40px rgba(0,0,0,0.1);
    text-align: center;
    margin: 0 auto;
}

.feedback-icon {
    margin-bottom: 2rem;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: #4caf50;
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 700;
    animation: successPop 0.5s;
}

.error-icon {
    width: 100px;
    height: 100px;
    background: #f44336;
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 700;
    animation: errorShake 0.5s;
}

@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.feedback-result h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feedback-display.correct h2 {
    color: #4caf50;
}

.feedback-display.incorrect h2 {
    color: #f44336;
}

.feedback-message {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.explanation-box {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: left;
}

.explanation-box h3 {
    color: #667eea;
    margin-bottom: 1rem;
}

.explanation-box p {
    color: #333;
    line-height: 1.8;
    font-size: 1.1rem;
}

.solution-summary {
    background: #eef2ff;
    color: #1f2937;
    padding: 1rem 1.2rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.solution-steps h4 {
    color: #667eea;
    margin: 0 0 1rem;
    font-size: 1rem;
}

.solution-step {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    margin-bottom: 0.75rem;
}

.step-badge {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #667eea;
    color: #ffffff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-text {
    color: #1f2937;
    font-size: 0.95rem;
    line-height: 1.6;
}

.feedback-actions {
    margin-top: 2rem;
}

.btn-next {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 1px solid rgba(255,255,255,0.15);
    padding: 0.78rem 1.9rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
    box-shadow: none !important;
}

.btn-next:hover {
    filter: brightness(1.04);
    transform: none;
}

.btn-next:disabled {
    background: #9ca3af;
    color: #f3f4f6;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Quest Completion Screen */
.quest-completion-screen {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 8px 40px rgba(0,0,0,0.1);
    text-align: center;
    margin: 0 auto;
    position: relative;
}

.completion-icon {
    font-size: 6rem;
    margin-bottom: 1rem;
    animation: completionBounce 0.6s;
}

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

.completion-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.completion-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.perfect-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    padding: 1rem 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    font-weight: 700;
    font-size: 1.3rem;
    animation: shine 1s infinite;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-item {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 12px;
}

.stat-item.highlight {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.2rem;
}

.upgrade-cta-top-right {
    position: absolute;
    top: 18px;
    right: 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
}

.btn-unlock.btn-compact {
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
    border-radius: 999px;
    box-shadow: 0 6px 14px rgba(124, 108, 247, 0.25);
}

.upgrade-note {
    font-size: 0.85rem;
    color: #6b7280;
}

/* Exit Dialog */
.quest-exit-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    animation: fadeIn 0.3s;
}

.quest-exit-dialog {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.3s;
}

.exit-dialog-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 1rem;
}

.quest-exit-dialog h3 {
    font-size: 1.8rem;
    color: #333;
    text-align: center;
    margin-bottom: 1rem;
}

.quest-exit-dialog p {
    color: #666;
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.exit-dialog-list {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    list-style: none;
}

.exit-dialog-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #555;
}

.exit-dialog-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.exit-dialog-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-cancel {
    background: #f5f7fa;
    color: #666;
    border: 2px solid #e5e7eb;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
}

.btn-cancel:hover {
    background: #e5e7eb;
    border-color: #cbd5e0;
}

.btn-end-quiz {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
}

.btn-end-quiz:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(244, 67, 54, 0.4);
}

/* Partial Completion Messages */
.partial-completion-notice {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.partial-completion-notice p {
    color: #856404;
    margin: 0;
    font-weight: 600;
}

.completion-note {
    background: #e3f2fd;
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.completion-note p {
    color: #1565c0;
    margin: 0;
    font-size: 0.95rem;
}

/* Mobile Quest Styles */
@media (max-width: 768px) {
    .daily-quests-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .quest-header-bar {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .quest-back-btn {
        order: -1;
        width: 100%;
    }
    
    .quest-main-content {
        flex-direction: column;
    }
    
    .quest-sidebar {
        width: 100%;
        max-height: 200px;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .questions-list {
        display: flex;
        overflow-x: auto;
        padding: 0 1rem;
        gap: 0.5rem;
    }
    
    .question-list-item {
        flex-direction: column;
        min-width: 80px;
        text-align: center;
        margin-bottom: 0;
    }
    
    .question-list-item::before {
        display: none;
    }
    
    .question-list-title {
        font-size: 0.8rem;
    }
    
    .question-list-topic {
        display: none;
    }
    
    .question-display,
    .feedback-display,
    .quest-completion-screen {
        padding: 2rem 1.5rem;
    }
    
    .question-text-large {
        font-size: 1.3rem;
    }
    
    .option-button {
        padding: 1rem;
    }
    
    .option-text {
        font-size: 1rem;
    }
    
    .feedback-result h2 {
        font-size: 2rem;
    }

    .quest-solution-card {
        max-height: calc(100vh - 140px);
        padding: 1rem;
    }

    .solution-header {
        grid-template-columns: 1fr;
        gap: 0.65rem;
        margin-bottom: 0.85rem;
    }

    .solution-avatar img {
        width: 62px;
        height: 62px;
    }

    .solution-actions {
        justify-self: start;
    }

    .solution-body {
        padding-right: 0.35rem;
    }
    
    .completion-title {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}




/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #080F5B;
    background-image: url('/static/images/night-forest-bg.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.loading-screen.active {
    display: flex;
    opacity: 1;
}

.loading-content {
    text-align: center;
    animation: floatUp 1s ease-out;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 20px;
    padding: 1.2rem 1.4rem 1.4rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.loading-logo {
    max-width: 250px;
    width: 30%;
    height: auto;
    animation: pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
}

.loading-bar-container {
    width: 300px;
    height: 8px;
    background: rgba(255,255,255,0.3);
    border-radius: 10px;
    margin: 3rem auto 0;
    overflow: hidden;
}

.loading-bar {
    height: 100%;
    background: linear-gradient(90deg, #fff 0%, #ffd700 100%);
    border-radius: 10px;
    animation: loading 3s ease-in-out;
    box-shadow: 0 0 20px rgba(255,255,255,0.5);
}

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

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

@keyframes loading {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

/* Decorative elements */
.loading-screen::before,
.loading-screen::after {
    content: '✨';
    position: absolute;
    font-size: 2rem;
    animation: twinkle 2s ease-in-out infinite;
}

.loading-screen::before {
    top: 10%;
    left: 15%;
    animation-delay: 0s;
}

.loading-screen::after {
    top: 15%;
    right: 20%;
    animation-delay: 1s;
}

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

/* Mobile responsive */
@media (max-width: 768px) {
    .loading-logo {
        max-width: 150px;
    }
    
    .loading-bar-container {
        width: 80%;
        max-width: 300px;
    }
}
/* ===========================================
   E-COMMERCE STYLES - Little Lion Shop
   Add these to static/css/style.css
   =========================================== */

/* Floating Cart Button */
.cart-floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s;
    z-index: 1000;
}

.cart-floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(102, 126, 234, 0.6);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* Cart Overlay */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1001;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s;
    z-index: 1002;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.cart-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.cart-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.cart-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 12px;
    position: relative;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h4 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.cart-item-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #666;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-item-quantity button {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.cart-item-quantity button:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.cart-item-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ff4444;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    transition: all 0.3s;
}

.cart-item-remove:hover {
    transform: rotate(90deg);
    background: #cc0000;
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
}

.cart-empty p:first-of-type {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem;
}

.cart-empty p:last-of-type {
    color: #666;
    margin: 0;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 2px solid #f0f0f0;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.cart-total-paws {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
}

.checkout-btn {
    width: fit-content;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    align-self: flex-end;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Product Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 2rem;
}

.product-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s;
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f0f0;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.modal-close:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

.product-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 3rem;
}

.product-modal-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    border-radius: 16px;
    padding: 2rem;
    min-height: 400px;
}

.product-modal-image img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.product-modal-details h2 {
    margin: 0 0 1rem;
    font-size: 2rem;
}

.product-modal-price {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.product-modal-price .paw-icon {
    width: 32px;
    height: 32px;
}

.product-modal-price span {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.product-modal-description h3 {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
}

.product-modal-description p {
    color: #666;
    line-height: 1.8;
    margin: 0 0 1.5rem;
}

.product-modal-stock {
    background: #f0f4ff;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.product-modal-stock p {
    margin: 0.5rem 0;
    color: #333;
}

.product-modal-quantity {
    margin-bottom: 2rem;
}

.product-modal-quantity label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.quantity-selector button {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.quantity-selector button:hover {
    background: #667eea;
    color: white;
}

.quantity-selector input {
    width: 80px;
    height: 40px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
}

.quantity-total {
    display: block;
    color: #666;
    font-size: 0.95rem;
}

.add-to-cart-btn {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.insufficient-paws {
    text-align: center;
    padding: 2rem;
    background: #fff5f5;
    border-radius: 12px;
}

.insufficient-paws svg {
    margin-bottom: 1rem;
}

.insufficient-paws p {
    margin: 0.5rem 0;
    color: #666;
}

/* Checkout Modal */
.checkout-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
}

.checkout-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 12px;
}

.checkout-section h3 {
    margin: 0 0 1rem;
    font-size: 1.3rem;
}

.checkout-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checkout-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
}

.checkout-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.checkout-item-info {
    flex: 1;
}

.checkout-item-info h4 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.checkout-item-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.checkout-item-total {
    font-weight: 700;
    color: #667eea;
}

.address-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.address-details {
    padding: 1rem;
    background: white;
    border-radius: 8px;
    line-height: 1.8;
}

.checkout-summary {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.summary-row.total {
    border-top: 2px solid #e0e0e0;
    border-bottom: none;
    padding-top: 1rem;
    margin-top: 1rem;
    font-size: 1.2rem;
}

.paws-positive {
    color: #4caf50;
}

.paws-negative {
    color: #ff4444;
}

.checkout-confirm-btn {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s;
}

.checkout-confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

/* Order Confirmation */
.order-confirmation-content {
    text-align: center;
    padding: 3rem 2rem;
}

.confirmation-icon {
    margin-bottom: 2rem;
}

.order-confirmation-content h2 {
    margin: 0 0 1.5rem;
    font-size: 2rem;
    color: #4caf50;
}

.order-details {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.order-details p {
    margin: 0.75rem 0;
    font-size: 1.1rem;
}

.confirmation-message {
    color: #666;
    line-height: 1.8;
    margin: 1.5rem 0;
}

.confirmation-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn-secondary {
    padding: 0.75rem 2rem;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
}

.btn-primary {
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Address Management in Settings */
.settings-section {
    margin-bottom: 3rem;
}

.section-description {
    color: #666;
    margin-bottom: 1.5rem;
}

.addresses-list {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.address-card {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s;
}

.address-card.default {
    border-color: #667eea;
    background: linear-gradient(135deg, #f0f4ff 0%, #fafcff 100%);
}

.address-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.address-info h3 {
    margin: 0 0 0.75rem;
    font-size: 1.2rem;
}

.address-info p {
    margin: 0.5rem 0;
    color: #666;
    line-height: 1.6;
}

.address-phone {
    font-weight: 600;
    color: #333 !important;
}

.default-badge {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    background: #667eea;
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.75rem;
}

.address-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-edit,
.btn-delete {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    border: 2px solid;
    background: white;
}

.btn-edit {
    color: #2196f3;
    border-color: #2196f3;
}

.btn-edit:hover {
    background: #2196f3;
    color: white;
}

.btn-delete {
    color: #ff4444;
    border-color: #ff4444;
}

.btn-delete:hover {
    background: #ff4444;
    color: white;
}

.no-addresses {
    text-align: center;
    padding: 3rem 2rem;
    background: #f9f9f9;
    border-radius: 12px;
}

.no-addresses h3 {
    margin: 1rem 0 0.5rem;
}

.no-addresses p {
    color: #666;
    margin: 0.5rem 0;
}

.add-address-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.add-address-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Address Form Modal */
.address-modal {
    max-width: 600px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkbox-group {
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.save-address-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s;
}

.save-address-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Order History */
.orders-list {
    display: grid;
    gap: 1.5rem;
}

.order-history-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.order-history-top {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid #eef2f7;
}

.order-chip {
    background: #f3f4f6;
    color: #4b5563;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

.order-chip span {
    color: #3b82f6;
    font-weight: 700;
}

.order-history-date {
    color: #94a3b8;
    font-size: 0.95rem;
}

.track-order-btn {
    border: none;
    border-radius: 999px;
    background: #f59e0b;
    color: #ffffff;
    padding: 0.5rem 1.1rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.4px;
}

.track-order-btn:hover {
    background: #d97706;
}

.order-history-item-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.6fr) minmax(120px, 0.8fr) minmax(170px, 0.9fr);
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid #eef2f7;
}

.order-history-product {
    display: flex;
    gap: 0.85rem;
    align-items: center;
}

.order-history-product img {
    width: 74px;
    height: 74px;
    object-fit: cover;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.order-history-product-meta h4 {
    margin: 0 0 0.25rem;
    color: #111827;
    font-size: 1.08rem;
}

.order-history-product-meta p {
    margin: 0 0 0.35rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.order-paws-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #334155;
    font-weight: 700;
    font-size: 0.9rem;
}

.order-history-status,
.order-history-delivery {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
}

.order-history-status span,
.order-history-delivery span {
    color: #9ca3af;
    font-size: 0.82rem;
}

.order-history-status strong,
.order-history-delivery strong {
    color: #111827;
    font-size: 1rem;
}

.order-history-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.8rem 1.15rem;
    background: #f8fafc;
}

.order-history-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.history-action-btn,
.history-cancel-btn {
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #334155;
    border-radius: 10px;
    padding: 0.45rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.history-action-btn:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
}

.history-cancel-btn {
    border-color: #fecaca;
    color: #b91c1c;
}

.history-cancel-btn:hover:not(:disabled) {
    background: #fef2f2;
}

.history-cancel-btn.disabled,
.history-cancel-btn:disabled {
    border-color: #e5e7eb;
    color: #9ca3af;
    background: #f3f4f6;
    cursor: not-allowed;
}

.order-history-total {
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
}

.order-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.order-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.order-header h3 {
    margin: 0 0 0.5rem;
    font-size: 1.3rem;
}

.order-date {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.order-status {
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.order-details {
    margin-bottom: 1rem;
}

.order-info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    color: #666;
}

.order-paws {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #667eea;
}

.view-order-btn {
    width: 100%;
    padding: 0.75rem;
    background: #f0f4ff;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.view-order-btn:hover {
    background: #667eea;
    color: white;
}

@media (max-width: 900px) {
    .order-history-top {
        grid-template-columns: 1fr;
    }

    .track-order-btn {
        justify-self: start;
    }

    .order-history-item-row {
        grid-template-columns: 1fr;
    }

    .order-history-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Paw Icon Variants */
.paw-icon-small {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.paw-icon-tiny {
    width: 16px;
    height: 16px;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s;
    z-index: 3000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.toast-success {
    border-left: 4px solid #4caf50;
}

.toast.toast-error {
    border-left: 4px solid #ff4444;
}

.toast.toast-info {
    border-left: 4px solid #2196f3;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .product-modal-grid {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem;
    }
    
    .product-modal-image {
        min-height: 250px;
    }
    
    .checkout-modal-content {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .address-card {
        flex-direction: column;
        gap: 1rem;
    }
    
    .address-actions {
        flex-direction: row;
    }
    
    .confirmation-actions {
        flex-direction: column;
    }
    
    .confirmation-actions button {
        width: 100%;
    }
}

/* ===========================================
   ADMIN DASHBOARD STYLES
   =========================================== */

.admin-header {
    text-align: center;
    margin-bottom: 3rem;
}

.admin-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-header p {
    color: #fff;
    font-size: 1.1rem;
}

/* Statistics Cards */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    display: flex;
    gap: 1.5rem;
    align-items: center;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-info h3 {
    margin: 0 0 0.25rem;
    font-size: 2rem;
    color: #333;
}

.stat-info p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

/* Tabs */
.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e0e0e0;
    align-items: stretch;
    overflow: visible;
}

.tab-btn {
    padding: 1rem 2rem;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    margin-bottom: -2px;
    flex: 0 1 auto;
}

.tab-btn.active {
    color: #fff;
    border-bottom-color: #fff;
}

.tab-btn:hover {
    color: #fff;
}

/* Admin Dashboard Tab Panels */
.admin-page .tab-content {
    display: none;
}

.admin-page .tab-content.active {
    display: block;
}

/* Admin Dashboard Tab Panels */
#users-tab,
#orders-tab {
    display: none;
}

#users-tab.active,
#orders-tab.active {
    display: block;
}

/* Admin Section */
.admin-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    margin: 0;
    font-size: 1.8rem;
    color: #333;
}

.search-input {
    padding: 0.75rem 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 1rem;
    min-width: 300px;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Tables */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #111827;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    color: #6b7280;
    font-weight: 600;
}

.admin-table thead {
    background: #f9f9f9;
}

.admin-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.admin-table tbody tr {
    transition: all 0.2s;
}

.admin-table tbody tr:hover {
    background: #f9f9f9;
}

.questions-jobs-table .file-col {
    width: 28%;
    max-width: 380px;
}

.questions-jobs-table .question-file-name {
    display: inline-block;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.35;
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.paws-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.activity-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.75rem;
    color: #0f172a;
    background: #e2e8f0;
    text-transform: uppercase;
}

.activity-badge.daily {
    background: #dbeafe;
    color: #1e40af;
}

.activity-badge.worksheet {
    background: #fef3c7;
    color: #92400e;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-admin {
    background: #ff4444;
    color: white;
}

.badge-oauth {
    background: #4caf50;
    color: white;
}

.badge-email {
    background: #2196f3;
    color: white;
}

.badge-success {
    background: #4caf50;
    color: white;
}

.badge-inactive {
    background: #9e9e9e;
    color: white;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.2px;
    background: #cff7ef;
    color: #1f4b4a;
}

.status-pill.in-progress {
    background: #d8f0ff;
    color: #1f3f5f;
}

.status-select {
    padding: 0.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.status-select:focus {
    outline: none;
    border-color: #667eea;
}

.admin-input {
    width: 110px;
    padding: 0.4rem 0.6rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
}

.admin-select {
    padding: 0.4rem 0.6rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
}

.admin-input:focus,
.admin-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.product-image-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.product-thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #e0e0e0;
    background: #fff;
}

.generator-panel {
    background: #f9fbff;
    border: 1px solid #e6eef7;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.generator-fields {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.generator-subjects {
    margin: 1rem 0;
}

.subject-checkboxes {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.subject-checkboxes label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.generator-topics {
    margin: 1rem 0;
}

.topic-checkboxes {
    display: grid;
    gap: 0.75rem;
}

.topic-group {
    border: 1px solid #dbe7f4;
    border-radius: 10px;
    background: #ffffff;
    padding: 0.75rem;
}

.topic-group-title {
    font-family: Arial, sans-serif;
    font-size: 1.18rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
    line-height: 1.25;
}

.topic-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.topic-group-actions {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.btn-topic-toggle {
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    cursor: pointer;
}

.btn-topic-toggle:hover {
    background: #dbeafe;
}

.topic-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
}

.topic-items label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: Arial, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.25;
}

.generator-note {
    margin-top: 0.75rem;
    color: #666;
    font-size: 0.9rem;
}

.status-badge {
    padding: 0.4rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-processing {
    background: #cce5ff;
    color: #004085;
}

.status-shipped {
    background: #d1ecf1;
    color: #0c5460;
}

.status-delivered {
    background: #d4edda;
    color: #155724;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

/* Buttons */
.btn-sm {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    margin-right: 0.5rem;
}

.btn-info {
    background: #2196f3;
    color: white;
}

.btn-info:hover {
    background: #0b7dda;
}

.btn-success {
    background: #4caf50;
    color: white;
}

.btn-success:hover {
    background: #45a049;
}

.btn-warning {
    background: #ff9800;
    color: white;
}

.btn-warning:hover {
    background: #e68900;
}

/* User Details Modal */
.user-details-content {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}

.user-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.detail-section {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.detail-section h3 {
    margin: 0 0 1rem;
    color: #333;
    font-size: 1.2rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: #666;
    font-weight: 600;
}

.detail-value {
    color: #333;
}

.paws-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 12px;
}

.paws-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
}

.mini-orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.mini-order-card {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.mini-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.mini-order-details p {
    margin: 0.25rem 0;
    color: #666;
    font-size: 0.9rem;
}

.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 300px;
    overflow-y: auto;
}

.transaction-row {
    display: grid;
    grid-template-columns: 100px 1fr 120px;
    gap: 1rem;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    align-items: center;
}

.tx-date {
    font-size: 0.85rem;
    color: #666;
}

.tx-desc {
    color: #333;
}

.tx-amount {
    text-align: right;
    font-weight: 600;
}

.tx-amount.positive {
    color: #4caf50;
}

.tx-amount.negative {
    color: #ff4444;
}

/* Order Details Modal */
.order-details-content {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.order-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.address-display {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    line-height: 1.8;
}

.address-display p {
    margin: 0.5rem 0;
}

.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.item-info strong {
    display: block;
    margin-bottom: 0.25rem;
}

.item-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.item-total {
    text-align: right;
    color: #667eea;
}

.order-total-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-stats {
        grid-template-columns: 1fr;
    }
    
    .user-details-grid,
    .order-details-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-table {
        font-size: 0.85rem;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input {
        min-width: auto;
        width: 100%;
    }
    
    .transaction-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .tx-amount {
        text-align: left;
    }
}

/* Table Overflow */
.users-table-container,
.orders-table-container {
    overflow-x: auto;
}

/* ===========================================
   OTP VERIFICATION STYLES
   =========================================== */

.email-otp-group {
    display: flex;
    gap: 0.5rem;
}

.email-otp-group input {
    flex: 1;
}

.btn-send-otp {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-send-otp:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-send-otp:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.otp-input-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.otp-input-group input {
    flex: 1;
    text-align: center;
    font-size: 1.2rem;
    letter-spacing: 0.5rem;
    font-weight: 600;
}

.otp-timer {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    min-width: 70px;
}

.otp-hint {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

#otpGroup {
    animation: slideDown 0.3s ease-out;
}

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

/* Mobile responsive */
@media (max-width: 768px) {
    .email-otp-group {
        flex-direction: column;
    }
    
    .btn-send-otp {
        width: 100%;
    }
}

/* ===========================================
   FORGOT PASSWORD STYLES
   =========================================== */

.forgot-password-link {
    text-align: right;
    margin-top: 0.5rem;
}

.forgot-password-link a {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}

.forgot-password-link a:hover {
    color: #764ba2;
    text-decoration: underline;
}


/* ===========================================
   LEARNING RESOURCES - FULL SCREEN VIEWS
   =========================================== */

/* Full Screen Container */
.study-note-fullscreen,
.quiz-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f5f7fa;
    z-index: 9999;
    overflow-y: auto;
}

.study-note-fullscreen,
.study-note-fullscreen * {
    font-family: 'Comic Neue', 'Patrick Hand', 'Poppins', cursive;
}

/* Full Screen Header */
.fullscreen-header {
    background: #303c6c;
    color: white;
    padding: 0.75rem 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.fullscreen-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    flex: 1;
    text-align: center;
}

/* Back Button */
.back-button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.62rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.3s;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateX(-3px);
}

.back-arrow {
    font-size: 0.9rem;
    font-weight: bold;
}

/* Mark Completed Button */
.mark-completed-btn {
    background: #4caf50;
    border: none;
    color: white;
    padding: 0.62rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.3s;
    white-space: nowrap;
}

.mark-completed-btn:hover:not(:disabled) {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.mark-completed-btn.completed {
    background: #9e9e9e;
    cursor: not-allowed;
}

.check-icon {
    font-size: 0.9rem;
    font-weight: bold;
}

/* Success Toast */
.success-toast {
    position: fixed;
    top: 100px;
    right: 2rem;
    background: #4caf50;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s;
    font-weight: 500;
}

.success-toast.show {
    opacity: 1;
    transform: translateX(0);
}

/* Full Screen Body */
.fullscreen-body {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.study-note-fullscreen .fullscreen-body {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0.35rem 1.5rem 0;
    min-height: calc(100vh - 58px);
    height: calc(100vh - 58px);
    box-sizing: border-box;
    overflow: hidden;
}

.study-layout {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
    width: 100%;
    min-height: 100%;
    height: 100%;
}

.study-page-preview {
    background: #ffffff;
    border-radius: 12px;
    padding: 0.75rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    max-height: calc(100vh - 220px);
    overflow-y: auto;
    position: sticky;
    top: 110px;
}

.study-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.55rem;
}

.study-preview-label {
    font-size: 0.92rem;
    font-weight: 700;
    color: #22437b;
}

.study-preview-toggle {
    border: 1px solid #9eb7e8;
    background: #edf3ff;
    color: #2a4f93;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3rem 0.55rem;
    cursor: pointer;
}

.study-preview-list {
    display: block;
}

.study-page-preview.collapsed .study-preview-list {
    display: none;
}

.page-preview-item {
    width: 100%;
    border: 1px solid #d7deea;
    border-radius: 10px;
    background: #f8fafc;
    color: #1f2937;
    text-align: left;
    padding: 0.65rem 0.7rem;
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
}

.page-preview-item:hover {
    border-color: #6b84d6;
    background: #eef3ff;
}

.page-preview-item.active {
    border-color: #3755b3;
    background: #e6eeff;
    box-shadow: inset 0 0 0 1px #3755b3;
}

.page-preview-number {
    min-width: 1.6rem;
    height: 1.6rem;
    border-radius: 999px;
    background: #dce6ff;
    color: #27408f;
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.page-preview-title {
    font-size: 0.9rem;
    line-height: 1.35;
    font-weight: 600;
    width: 100%;
}

.study-slider-container {
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.study-page-indicator {
    margin-bottom: 0;
    color: #334155;
    font-weight: 600;
    font-size: 0.86rem;
    text-align: center;
}

/* Study Content */
.study-content {
    background: #fffdf6;
    border-radius: 16px;
    padding: 2.5rem 2.75rem;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.12);
    line-height: 1.8;
    font-family: Arial, sans-serif;
    font-size: 9px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    background-image: repeating-linear-gradient(
        to bottom,
        rgba(120, 135, 155, 0.12),
        rgba(120, 135, 155, 0.12) 1px,
        transparent 1px,
        transparent 28px
    );
}

.study-content h1 {
    font-size: 2.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #1f2937;
    border-bottom: 3px solid #f2c94c;
    padding-bottom: 0.4rem;
    font-family: Arial, sans-serif;
}

.study-content h1:first-child {
    margin-top: 0;
}

.study-content h2 {
    font-size: 1.6rem;
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
    color: #374151;
    background: #fff3bf;
    border-left: 6px solid #f2c94c;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
}

.study-content h3 {
    font-size: 1.25rem;
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
    color: #3f4b5f;
    font-weight: 700;
}

.study-content p {
    margin-bottom: 0.9rem;
    color: #374151;
    font-size: 9px;
}

.study-content ul {
    margin-left: 1.6rem;
    margin-bottom: 1.2rem;
    list-style: disc;
}

.study-content li {
    margin-bottom: 0.6rem;
    color: #374151;
    font-size: 9px;
}

.study-content strong {
    color: #1f2937;
    font-weight: 700;
}

.study-image {
    text-align: center;
    margin: 1rem 0 1.25rem;
}

.study-image img {
    width: 50%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.study-image img[alt="Plant Life Cycle"] {
    width: 50%;
}

.study-note-fullscreen .study-content .study-image:has(img[alt="Flower Reproductive Structures"]) {
    float: right;
    width: min(42%, 340px);
    margin: 0.2rem 0 0.8rem 1rem;
    text-align: right;
}

.study-note-fullscreen .study-content .study-image:has(img[alt="Flower Reproductive Structures"]) img {
    width: 100%;
}

.study-note-fullscreen .study-content img[alt="Flower Reproductive Structures"] {
    float: right;
    width: min(42%, 340px);
    margin: 0.2rem 0 0.8rem 1rem;
}

.study-note-fullscreen .study-content img[alt="Pollination Definition"],
.study-note-fullscreen .study-content img[alt="Agents of Pollination"] {
    width: 300px !important;
    height: 400px !important;
    object-fit: contain;
}

/* From this point onward: keep all study-note content images at 300x400 */
.study-note-fullscreen .study-content .study-image img,
.study-note-fullscreen .study-content img {
    width: 300px !important;
    height: 400px !important;
    object-fit: contain !important;
}

/* Basics Needed Before Reproduction images: use default fit behavior */
.study-note-fullscreen .study-content img[alt="Cell Basics"],
.study-note-fullscreen .study-content img[alt="Role of Cells in Reproduction"],
.study-note-fullscreen .study-content img[alt="Inheritance in Plants"] {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
}

.study-navigation {
    margin-top: auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.45rem;
    position: sticky;
    bottom: 0;
    background: #ffffff;
    border-top: 1px solid #d9e2f4;
    padding: 0.1rem 0 0;
    z-index: 2;
}

.study-nav-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.nav-btn {
    border: none;
    border-radius: 6px;
    background: #3f5fb8;
    color: #ffffff;
    padding: 0.5rem 0.95rem;
    font-size: 0.75rem;
    font-weight: 600;
    min-height: 38px;
    min-width: 170px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nav-btn:disabled {
    cursor: not-allowed;
}

.page-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
}

.page-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #c8d3ee;
    cursor: pointer;
}

.page-dot.active {
    background: #3f5fb8;
}

/* Study Notes LMS-like theme */
.study-note-fullscreen {
    background: #f1f3f6;
}

.study-note-fullscreen .fullscreen-header {
    background: #ffffff;
    color: #1f2937;
    border-bottom: 1px solid #d9e2ec;
    box-shadow: none;
    padding: 0.55rem 0.9rem;
    font-family: Arial, sans-serif !important;
}

.study-note-fullscreen .fullscreen-title {
    color: #111827;
    font-size: 0.98rem;
    font-weight: 700;
    font-family: Arial, sans-serif !important;
}

.study-note-fullscreen .back-button {
    background: linear-gradient(90deg, #0f766e 0%, #0ea5a1 68%);
    border: 1px solid #0c7f76;
    color: #ffffff;
    padding: 0.5rem 0.9rem;
    font-size: 0.82rem;
    border-radius: 8px;
    position: relative;
    padding-right: 2.1rem;
    font-family: Arial, sans-serif !important;
}

.study-note-fullscreen .back-button .back-arrow {
    display: none;
}

.study-note-fullscreen .back-button::after {
    content: "\f060";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 0;
    right: 0;
    width: 1.65rem;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.14);
    border-left: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 0 8px 8px 0;
    font-size: 0.78rem;
}

.study-note-fullscreen .mark-completed-btn {
    background: #4f46e5;
    color: #ffffff;
    padding: 0.5rem 0.9rem;
    font-size: 0.82rem;
    box-shadow: none;
    font-family: Arial, sans-serif !important;
}

.study-note-fullscreen .mark-completed-btn:hover:not(:disabled) {
    background: #4338ca;
    transform: none;
}

.study-note-fullscreen .fullscreen-body {
    padding: 0.45rem 0.8rem 0;
}

.study-note-fullscreen .study-layout {
    gap: 0;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    grid-template-columns: 285px minmax(0, 1fr);
}

.study-note-fullscreen .study-page-preview {
    border-radius: 0;
    border-right: 1px solid #d7dee8;
    box-shadow: none;
    max-height: 100%;
    top: 0;
    padding: 0;
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

.study-note-fullscreen .material-tabs {
    margin: 0;
    padding: 0.8rem 0.75rem 0.35rem;
    border-bottom: none;
    background: #ffffff;
    display: flex;
    gap: 0.5rem;
}

.study-note-fullscreen .material-tab {
    border: none;
    background: transparent;
    color: #4b5563;
    font-size: 15px;
    font-weight: 700;
    padding: 0.3rem 0.45rem;
    border-bottom: none;
    cursor: default;
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    font-family: Arial, sans-serif !important;
}

.study-note-fullscreen .material-tab.active {
    color: #607089;
}

.study-note-fullscreen .material-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #e0e7ff;
    color: #4338ca;
    font-size: 0.62rem;
    margin-left: 0.22rem;
}

.study-note-fullscreen .study-preview-list {
    padding: 0.2rem 0.5rem 0.45rem;
    overflow-y: auto;
    max-height: none;
    flex: 1;
    background: #ffffff;
}

.study-note-fullscreen .study-preview-list::-webkit-scrollbar {
    width: 7px;
}

.study-note-fullscreen .study-preview-list::-webkit-scrollbar-thumb {
    background: #5b61ff;
    border-radius: 999px;
}

.study-note-fullscreen .page-preview-item {
    border-radius: 20px;
    background: transparent;
    border: 1px solid #c8d5ea;
    margin: 0 0 0.7rem;
    padding: 0.8rem 0.9rem 0.75rem;
    display: block;
    position: relative;
    text-align: left;
}

.study-note-fullscreen .page-preview-item.active {
    background: #f4f8ff;
    border-color: #1a78ef;
    box-shadow: none;
    padding-bottom: 0.9rem;
}

.study-note-fullscreen .page-preview-item.active::before {
    display: none;
}

.study-note-fullscreen .topic-card-head {
    font-size: 15px;
    font-weight: 400;
    color: #4f6282;
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-family: Arial, sans-serif !important;
}

.study-note-fullscreen .page-preview-item.active .topic-card-head {
    color: #1675ea;
    font-weight: 700;
}

.study-note-fullscreen .topic-card-progress {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.55rem;
}

.study-note-fullscreen .topic-card-track {
    flex: 1;
    height: 10px;
    background: #e2e8f2;
    border-radius: 999px;
    overflow: hidden;
}

.study-note-fullscreen .topic-card-track span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: #1680f2;
}

.study-note-fullscreen .topic-card-percent {
    font-size: 12px;
    color: #5f7391;
    min-width: 32px;
    text-align: right;
    font-family: Arial, sans-serif !important;
}

.study-note-fullscreen .topic-card-items {
    display: none;
    margin-top: 0.65rem;
}

.study-note-fullscreen .page-preview-item.active .topic-card-items {
    display: block;
}

.study-note-fullscreen .topic-card-item {
    font-size: 14px;
    color: #5f7391;
    padding: 0.42rem 0;
    font-family: Arial, sans-serif !important;
}

.study-note-fullscreen .study-preview-footer {
    border-top: 1px solid #d7dee8;
    background: #ffffff;
    padding: 0.2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.study-note-fullscreen .material-footer-item {
    border: none;
    background: transparent;
    color: #1f2937;
    border-radius: 0;
    font-size: 15px;
    font-weight: 400;
    padding: 0.42rem 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.38rem;
    text-align: left;
    cursor: pointer;
    font-family: Arial, sans-serif !important;
    border-bottom: 1px solid #d7dee8;
}

.study-note-fullscreen .material-footer-item:hover {
    background: transparent;
}

.study-note-fullscreen .material-item-icon {
    font-size: 15px;
    color: #1f2937;
    min-width: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif !important;
}

.study-note-fullscreen .study-slider-container {
    background: #ffffff;
    padding: 0.5rem 0.8rem 0;
}

.study-note-fullscreen .study-workspace-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
}

.study-note-fullscreen .study-page-indicator {
    font-size: 16px;
    color: #4b5563;
    font-weight: 600;
    font-family: Arial, sans-serif !important;
}

.study-note-fullscreen .study-top-controls {
    display: flex;
    gap: 0.4rem;
}

.study-note-fullscreen .study-top-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid #0c7f76;
    background: linear-gradient(90deg, #0f766e 0%, #0ea5a1 68%);
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.study-note-fullscreen .study-top-nav-btn:disabled {
    cursor: not-allowed;
}

.study-note-fullscreen .study-content {
    border-radius: 0;
    box-shadow: none;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    background-image: none;
    padding: 1rem 1.1rem;
    font-size: 16px !important;
    line-height: 1.6;
    font-family: Arial, sans-serif !important;
}

.study-note-fullscreen .study-content,
.study-note-fullscreen .study-content h1,
.study-note-fullscreen .study-content h2,
.study-note-fullscreen .study-content h3,
.study-note-fullscreen .study-content h4,
.study-note-fullscreen .study-content h5,
.study-note-fullscreen .study-content h6,
.study-note-fullscreen .study-content p,
.study-note-fullscreen .study-content li,
.study-note-fullscreen .study-content ul,
.study-note-fullscreen .study-content ol,
.study-note-fullscreen .study-content strong,
.study-note-fullscreen .study-content em,
.study-note-fullscreen .study-content span,
.study-note-fullscreen .study-content td,
.study-note-fullscreen .study-content th,
.study-note-fullscreen .study-content blockquote,
.study-note-fullscreen .study-content code {
    font-family: Arial, sans-serif !important;
}

.study-note-fullscreen .study-content h1 {
    font-size: 1.15rem;
    border-bottom: 4px solid #2cc89a;
    margin-top: 0;
    margin-bottom: 0.7rem;
    padding-bottom: 0.22rem;
}

.study-note-fullscreen .study-content h2 {
    font-size: 1.95rem;
    color: #c76500;
    background: transparent;
    border: none;
    margin-top: 1.05rem;
    margin-bottom: 0.7rem;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 700;
}

.study-note-fullscreen .study-content h2::before {
    content: "\f15b";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: #f59e0b;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex: 0 0 34px;
}

.study-note-fullscreen .study-content h3 {
    font-size: 1.05rem;
    margin-top: 0.7rem;
    margin-bottom: 0.35rem;
    font-weight: 700;
    color: #024950;
    border-bottom: 3px solid #2cc89a;
    padding-bottom: 0.16rem;
    display: inline-block;
}

.study-note-fullscreen .study-content h2,
.study-note-fullscreen .study-content h2 .heading-text {
    border-bottom: 3px solid #2cc89a;
    padding-bottom: 0.12rem;
}

.study-note-fullscreen .study-content .key-ideas-box {
    background: #f6efe6;
    border-radius: 14px;
    padding: 0.9rem 1rem;
    margin: 0.6rem 0 1rem;
}

.study-note-fullscreen .study-content .key-ideas-heading {
    color: #ef6c00;
    font-size: 1.15rem;
    margin: 0 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 700;
}

.study-note-fullscreen .study-content .key-ideas-heading::before {
    content: "\f111";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #ef6c00;
    font-size: 0.52rem;
}

.study-note-fullscreen .study-content .key-ideas-box ul,
.study-note-fullscreen .study-content .key-ideas-box p {
    margin: 0;
}

.study-note-fullscreen .study-content ul {
    margin: 0.2rem 0 0.35rem 1.45rem;
    padding: 0;
    list-style: disc;
}

.study-note-fullscreen .study-content ul li {
    margin: 0 0 0.15rem;
    line-height: 1.3;
    color: #0f172a;
}

.study-note-fullscreen .study-content ul + ul {
    margin-top: 0.08rem;
}

.study-note-fullscreen .study-content ul li::marker {
    color: #c7d2df;
}

.study-note-fullscreen .study-content p,
.study-note-fullscreen .study-content li {
    font-size: 16px !important;
}

.study-note-fullscreen .study-content ul,
.study-note-fullscreen .study-content ol,
.study-note-fullscreen .study-content span,
.study-note-fullscreen .study-content td,
.study-note-fullscreen .study-content th,
.study-note-fullscreen .study-content blockquote {
    font-size: 16px !important;
}

.study-note-fullscreen .study-navigation {
    display: none;
}

/* Quiz Full Screen Styles */
.quiz-content {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.quiz-progress-section {
    margin-bottom: 3rem;
}

.quiz-question-section {
    margin-bottom: 2rem;
}

.question-text {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #2c3e50;
    line-height: 1.4;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quiz-text-answer {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.quiz-text-input {
    flex: 1;
    min-width: 220px;
    padding: 0.9rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1.1rem;
}

.quiz-text-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.quiz-submit-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.9rem 1.6rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quiz-submit-btn:hover:not(:disabled) {
    background: #5568d3;
    transform: translateY(-1px);
}

.quiz-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    text-align: left;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.1rem;
}

.quiz-option:hover:not(:disabled) {
    border-color: #667eea;
    background: #f7f9ff;
    transform: translateX(8px);
}

.option-letter {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 50%;
    font-weight: 700;
    color: #666;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.option-text {
    flex: 1;
    line-height: 1.5;
}

.quiz-option.correct {
    border-color: #4caf50;
    background: #e8f5e9;
}

.quiz-option.correct .option-letter {
    background: #4caf50;
    color: white;
}

.quiz-option.incorrect {
    border-color: #f44336;
    background: #ffebee;
}

.quiz-option.incorrect .option-letter {
    background: #f44336;
    color: white;
}

/* Quiz Explanation */
.quiz-explanation-section {
    margin-top: 2.5rem;
    padding: 2rem;
    border-radius: 12px;
    animation: slideIn 0.3s ease;
}

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

.correct-explanation {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
}

.incorrect-explanation {
    background: #ffebee;
    border-left: 4px solid #f44336;
}

.explanation-header h3 {
    margin: 0 0 1rem;
    color: #2c3e50;
    font-size: 1.5rem;
}

.explanation-text {
    margin: 0 0 1.5rem;
    color: #4a5568;
    font-size: 1.1rem;
    line-height: 1.6;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    min-width: 200px;
}

/* Quiz Results */
.quiz-results {
    text-align: center;
    padding: 2rem;
}

.results-emoji {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    animation: bounce 0.6s ease;
}

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

.quiz-results h2 {
    margin: 0 0 2.5rem;
    color: #2c3e50;
    font-size: 2.2rem;
}

.score-circle {
    width: 200px;
    height: 200px;
    margin: 0 auto 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.score-number {
    font-size: 3.5rem;
    font-weight: bold;
}

.score-percentage {
    font-size: 1.5rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

.results-breakdown {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.result-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.stat-label {
    font-size: 1rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
}

.stat-value.correct {
    color: #4caf50;
}

.stat-value.incorrect {
    color: #f44336;
}

.results-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .fullscreen-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem;
    }
    
    .fullscreen-title {
        font-size: 1.3rem;
        text-align: left;
    }
    
    .back-button {
        order: -1;
        width: 100%;
        justify-content: center;
    }
    
    .mark-completed-btn {
        width: 100%;
        justify-content: center;
    }
    
    .fullscreen-body {
        padding: 1rem;
    }

    .study-note-fullscreen .fullscreen-body {
        min-height: auto;
        height: auto;
        overflow: visible;
    }

    .study-layout {
        grid-template-columns: 1fr;
        min-height: auto;
        height: auto;
    }

    .study-page-preview {
        position: static;
        max-height: 220px;
    }

    .study-note-fullscreen .study-layout {
        grid-template-columns: 1fr !important;
        min-height: auto;
        height: auto;
        border: 1px solid #d7dee8;
    }

    .study-note-fullscreen .study-page-preview {
        width: 100%;
        max-height: 320px;
        border-right: none;
        border-bottom: 1px solid #d7dee8;
        position: static;
    }

    .study-note-fullscreen .study-slider-container {
        width: 100%;
        min-width: 0;
        padding: 0.45rem 0.6rem 0;
    }

    .study-note-fullscreen .study-content {
        width: 100%;
        min-width: 0;
        padding: 0.9rem 0.85rem;
        font-size: 15px !important;
        line-height: 1.55;
        overflow-wrap: break-word;
        word-break: normal;
    }

    .study-note-fullscreen .study-content h1 {
        font-size: 1.05rem;
        line-height: 1.3;
    }

    .study-note-fullscreen .study-content h2 {
        font-size: 1.05rem;
        line-height: 1.35;
        gap: 0.45rem;
    }

    .study-note-fullscreen .study-content h2::before {
        width: 28px;
        height: 28px;
        flex: 0 0 28px;
        font-size: 0.85rem;
        border-radius: 10px;
    }

    .study-note-fullscreen .study-content h3 {
        font-size: 0.98rem;
        line-height: 1.35;
    }
    
    .study-content,
    .quiz-content {
        padding: 1.5rem;
    }
    
    .study-content h1 {
        font-size: 1.8rem;
    }
    
    .study-content h2 {
        font-size: 1.5rem;
    }

    .study-navigation {
        grid-template-columns: 1fr;
        position: static;
        padding: 0;
        border-top: none;
    }

    .nav-btn {
        width: 100%;
    }
    
    .question-text {
        font-size: 1.3rem;
    }
    
    .score-circle {
        width: 160px;
        height: 160px;
    }
    
    .score-number {
        font-size: 2.5rem;
    }
    
    .results-breakdown {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .results-actions {
        flex-direction: column;
    }
    
    .results-actions button {
        width: 100%;
    }
    
    .success-toast {
        right: 1rem;
        left: 1rem;
    }
}

/* Loading Spinner (kept from modal CSS) */
.loading-spinner {
    text-align: center;
    padding: 3rem;
}

.loading-spinner .spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #666;
}

.empty-state p {
    font-size: 1.1rem;
}

/* Progress Bar (used in quiz) */
.progress-bar {
    height: 10px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.question-counter {
    text-align: center;
    color: #667eea;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
}

/* Daily Quest question card: sample-style layout */
.quest-question-card .dq-question-shell {
    border: 1px solid #e1e8f5;
    border-radius: 16px;
    padding: 1rem 1rem 1.15rem;
    margin-bottom: 1rem;
    background: #ffffff;
}

.quest-question-card .dq-question-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.quest-question-card .dq-head-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.quest-question-card .dq-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.34rem 0.8rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.quest-question-card .dq-chip-topic {
    background: #efe9fb;
    color: #5b2bc9;
}

.quest-question-card .dq-chip-subtopic {
    background: #e6f6ea;
    color: #0f6b3d;
}

.quest-question-card .dq-chip-difficulty {
    background: #dff8ea;
    color: #0f7a4a;
}

.quest-question-card .dq-chip-marks {
    background: #e7edff;
    color: #1d4ed8;
    white-space: nowrap;
}

.quest-question-card .dq-question-main {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.quest-question-card .dq-question-index {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #2f66e8;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 8px 18px rgba(47, 102, 232, 0.25);
}

.quest-question-card .dq-question-text {
    margin: 0;
    width: 100%;
    color: #0f254d;
    font-size: 1.1rem;
    line-height: 1.55;
}

.quest-question-card .dq-question-text p {
    margin: 0 0 0.7rem;
}

.quest-question-card .dq-question-text p:last-child {
    margin-bottom: 0;
}

.quest-question-card .dq-question-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.9rem 0;
    border: 1px solid #d7dce8;
    border-radius: 10px;
    overflow: hidden;
}

.quest-question-card .dq-question-text th {
    background: #2f66e8;
    color: #ffffff;
    text-align: left;
    padding: 0.6rem 0.8rem;
    border: 1px solid #2f66e8;
}

.quest-question-card .dq-question-text td {
    padding: 0.62rem 0.8rem;
    border: 1px solid #d7dce8;
    color: #1e293b;
}

.quest-question-card .dq-question-text tr:nth-child(even) td {
    background: #f8fbff;
}

.quest-question-card .options-grid {
    border-top: 1px dashed #d9e0ec;
    padding-top: 1rem;
    gap: 0.72rem;
}

.quest-question-card .option-button {
    padding: 0.72rem 0.95rem;
    border-width: 2px;
    border-radius: 14px;
    gap: 0.75rem;
    min-height: 58px;
}

.quest-question-card .option-button .option-text {
    font-size: 0.99rem;
    line-height: 1.32;
    font-weight: 500;
}

.quest-question-card .option-button:hover {
    transform: none;
}

.quest-question-card .option-number-pill {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 999px;
    background: #e8eef7;
    color: #334155;
    font-weight: 800;
    font-size: 0.78rem;
    border: 1px solid #d4dce9;
}

@media (max-width: 768px) {
    .quest-question-card .dq-question-main {
        gap: 0.75rem;
    }

    .quest-question-card .dq-question-index {
        width: 38px;
        height: 38px;
        font-size: 1.05rem;
    }

    .quest-question-card .dq-question-text {
        font-size: 1rem;
    }

    .quest-question-card .option-button {
        min-height: 52px;
        padding: 0.62rem 0.78rem;
        gap: 0.62rem;
    }

    .quest-question-card .option-button .option-text {
        font-size: 0.98rem;
    }

    .quest-question-card .option-number-pill {
        width: 28px;
        height: 28px;
        min-width: 28px;
        font-size: 0.72rem;
    }
}

/* Global Button Theme */
body:not(.public-page) :is(a, button, input[type="submit"], input[type="button"])[class^="btn"],
body:not(.public-page) :is(a, button, input[type="submit"], input[type="button"])[class*=" btn"] {
    background: linear-gradient(90deg, #2f2d76 0%, #2eaee3 100%) !important;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.65) !important;
    border-radius: 999px !important;
    box-shadow: 0 5px 0 rgba(15, 23, 42, 0.35), 0 8px 16px rgba(15, 23, 42, 0.2) !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

body:not(.public-page) :is(a, button)[class^="btn"]::after,
body:not(.public-page) :is(a, button)[class*=" btn"]::after {
    content: "›";
    margin-left: 0.55em;
    font-size: 1.15em;
    font-weight: 700;
    line-height: 1;
}

body:not(.public-page) :is(a, button, input[type="submit"], input[type="button"])[class^="btn"]:hover,
body:not(.public-page) :is(a, button, input[type="submit"], input[type="button"])[class*=" btn"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 0 rgba(15, 23, 42, 0.35), 0 12px 18px rgba(15, 23, 42, 0.24) !important;
    filter: saturate(1.08);
}

body:not(.public-page) :is(a, button, input[type="submit"], input[type="button"])[class^="btn"]:active,
body:not(.public-page) :is(a, button, input[type="submit"], input[type="button"])[class*=" btn"]:active {
    transform: translateY(1px);
    box-shadow: 0 3px 0 rgba(15, 23, 42, 0.35), 0 5px 12px rgba(15, 23, 42, 0.2) !important;
}

body:not(.public-page) :is(button, input[type="submit"], input[type="button"])[class^="btn"]:disabled,
body:not(.public-page) :is(button, input[type="submit"], input[type="button"])[class*=" btn"]:disabled {
    background: #9ca3af !important;
    color: #f8fafc !important;
    border-color: #d1d5db !important;
    box-shadow: none !important;
    transform: none !important;
    filter: none !important;
    cursor: not-allowed;
}

/* Worksheet submit button style override */
#submitWorksheetBtn.btn-primary.btn-large {
    background: linear-gradient(90deg, #0e9f98 0%, #0aa7a0 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-weight: 700 !important;
    padding: 0.9rem 1.35rem !important;
    min-height: 44px;
}

/* Admin Button Theme - match purple "Start" style */
.admin-page :is(a, button, input[type="submit"], input[type="button"])[class^="btn"],
.admin-page :is(a, button, input[type="submit"], input[type="button"])[class*=" btn"],
.admin-page .tab-btn {
    background: linear-gradient(90deg, #8b3fe3 0%, #6b2fd9 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 18px !important;
    box-shadow: 0 4px 0 rgba(42, 23, 84, 0.28) !important;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.admin-page :is(a, button)[class^="btn"]::after,
.admin-page :is(a, button)[class*=" btn"]::after,
.admin-page .tab-btn::after {
    content: "›";
    margin-left: 0.5em;
    font-size: 1.05em;
    font-weight: 700;
    line-height: 1;
}

.admin-page :is(a, button, input[type="submit"], input[type="button"])[class^="btn"]:hover,
.admin-page :is(a, button, input[type="submit"], input[type="button"])[class*=" btn"]:hover,
.admin-page .tab-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 0 rgba(42, 23, 84, 0.3) !important;
    filter: brightness(1.03);
}

.admin-page :is(a, button, input[type="submit"], input[type="button"])[class^="btn"]:active,
.admin-page :is(a, button, input[type="submit"], input[type="button"])[class*=" btn"]:active,
.admin-page .tab-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 0 rgba(42, 23, 84, 0.28) !important;
}

.admin-page :is(button, input[type="submit"], input[type="button"])[class^="btn"]:disabled,
.admin-page :is(button, input[type="submit"], input[type="button"])[class*=" btn"]:disabled,
.admin-page .tab-btn:disabled {
    background: #b7a7d8 !important;
    color: #f8f7fd !important;
    box-shadow: none !important;
    transform: none !important;
    cursor: not-allowed;
}

#submitWorksheetBtn.btn-primary.btn-large::after {
    content: none !important;
}

#submitWorksheetBtn.btn-primary.btn-large:hover {
    background: linear-gradient(90deg, #0b948d 0%, #089b95 100%) !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Daily Quest action buttons: final override after global button theme */
body:not(.public-page) .quest-content-area button.btn-submit-multi,
body:not(.public-page) .quest-content-area button.btn-skip-question {
    background: #1e8e3e !important;
    border: 1px solid #1e8e3e !important;
    color: #ffffff !important;
    border-radius: 999px !important;
    box-shadow: 0 2px 0 rgba(20, 108, 44, 0.35), 0 3px 10px rgba(30, 142, 62, 0.28) !important;
    font-weight: 700 !important;
}

body:not(.public-page) .quest-content-area button.btn-submit-multi:hover:not(:disabled),
body:not(.public-page) .quest-content-area button.btn-skip-question:hover:not(:disabled) {
    background: #188038 !important;
    border-color: #188038 !important;
    box-shadow: 0 2px 0 rgba(18, 94, 39, 0.35), 0 4px 12px rgba(24, 128, 56, 0.3) !important;
}

body:not(.public-page) .quest-content-area button.btn-submit-multi::after,
body:not(.public-page) .quest-content-area button.btn-skip-question::after {
    content: none !important;
}

/* Classes Page: mobile layout */
.classes-page .classes-grid-panel-all {
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .classes-page .content-section {
        margin: 0 0.5rem 0.75rem;
        border-radius: 16px;
    }

    .classes-page .content-section .container {
        padding: 0 0.65rem;
    }

    .classes-page .classes-grid {
        grid-template-columns: 1fr;
        gap: 0.9rem;
        margin-bottom: 1rem;
    }

    .classes-page .classes-grid-panel {
        border-radius: 14px;
        padding: 0.75rem;
    }

    .classes-page .classes-grid-panel-all {
        margin-top: 0.85rem;
    }

    .classes-page .classes-group-title {
        font-size: 0.9rem;
        padding: 0.15rem 0.6rem;
        margin-bottom: 0.2rem;
    }

    .classes-page .class-card {
        padding: 1rem;
        border-radius: 12px;
    }

    .classes-page .class-badge {
        top: 0.7rem;
        right: 0.7rem;
        padding: 0.3rem 0.65rem;
        font-size: 0.75rem;
    }

    .classes-page .class-card h3 {
        margin-bottom: 0.55rem;
        font-size: 1rem;
        padding-right: 4.8rem;
    }

    .classes-page .class-info p {
        font-size: 0.88rem;
        margin-bottom: 0.25rem;
    }

    .classes-page .btn-unlock.btn-full,
    .classes-page .btn-primary.btn-full {
        min-height: 42px;
        font-size: 0.9rem;
        padding: 0.7rem 1rem;
    }

    .classes-page .info-section {
        margin-top: 1rem;
        border-radius: 12px;
        padding: 1rem;
    }

    .classes-page .features-list {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .classes-page .feature-item .feature-icon {
        font-size: 1.55rem;
        min-width: 1.8rem;
    }

    .classes-page .feature-item h4 {
        font-size: 0.95rem;
        margin-bottom: 0.2rem;
    }

    .classes-page .feature-item p {
        font-size: 0.84rem;
        line-height: 1.35;
    }
}

/* Teacher Chat: mobile formatting fixes */
@media (max-width: 768px) {
    body.teacher-chat-page {
        padding-bottom: 0 !important;
    }

    .teacher-chat-page .content-section {
        margin: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    .teacher-chat-page .chat-container.container {
        padding: 0 !important;
        overflow-x: hidden;
        max-width: 100%;
    }

    .teacher-chat-page .chat-layout,
    .teacher-chat-page .chat-layout.full-width,
    .teacher-chat-page .chat-layout.full-width.sidebar-expanded {
        display: block;
        grid-template-columns: 1fr !important;
        gap: 0;
    }

    .teacher-chat-page .teachers-sidebar,
    .teacher-chat-page .teachers-toggle {
        display: none !important;
        width: 0 !important;
        min-width: 0 !important;
        max-width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
    }

    .teacher-chat-page .chat-area {
        width: 100%;
        min-width: 0;
        height: calc(100dvh - 58px);
        min-height: 0;
        max-height: none;
        border-radius: 0;
        overflow: hidden;
        background: transparent !important;
        box-shadow: none !important;
        border: 0 !important;
    }

    .teacher-chat-page .chat-messages {
        padding: 0.7rem 0.65rem calc(90px + env(safe-area-inset-bottom));
    }

    .teacher-chat-page .message {
        gap: 0.55rem;
        margin-bottom: 0.9rem;
    }

    .teacher-chat-page .message-content {
        max-width: 86%;
        padding: 0.72rem;
    }

    .teacher-chat-page .message-avatar {
        font-size: 1.35rem;
    }

    .teacher-chat-page .chat-input-area {
        padding: 0.55rem 0.6rem calc(0.55rem + env(safe-area-inset-bottom));
        border-top: 0;
        background: linear-gradient(180deg, #f7fafc 0%, #eef3f9 100%);
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1201;
    }

    .teacher-chat-page .chat-input-area form {
        display: flex !important;
        align-items: center;
        gap: 0.35rem;
        width: 100%;
        background: #ffffff;
        border: 1px solid #e4eaf3;
        border-radius: 22px;
        padding: 0.35rem 0.38rem 0.35rem 0.55rem;
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    }

    .teacher-chat-page .chat-input-area input {
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
        font-size: 0.9rem;
        padding: 0.55rem 0.25rem;
        border-radius: 0;
        border: none;
        background: transparent;
        color: #334155;
        box-shadow: none;
    }

    .teacher-chat-page .chat-input-area input::placeholder {
        color: #9aa6b8;
        font-weight: 500;
    }

    .teacher-chat-page .chat-input-area .btn-primary {
        flex: 0 0 auto;
        min-width: 36px;
        width: 36px;
        height: 36px;
        padding: 0;
        font-size: 0;
        border-radius: 999px;
        background: #eef2f6;
        color: #6b7280;
        border: 1px solid #d5dbe4;
        box-shadow: inset 0 -1px 0 rgba(15, 23, 42, 0.05);
        font-weight: 700;
    }

    .teacher-chat-page .chat-input-area .btn-primary::after {
        content: "\2192";
        color: #7d8795;
        font-weight: 800;
        font-size: 1rem;
        line-height: 1;
    }

    .teacher-chat-page .voice-input-btn {
        width: 34px;
        height: 34px;
        font-size: 0.82rem;
        border-radius: 999px;
        background: #f4f7fb;
        border: 1px solid #e2e8f0;
        color: #7b8799;
    }

    .teacher-chat-page .info-section {
        display: none !important;
    }

    .teacher-chat-page .floating-menu {
        display: none !important;
    }
}
