/* ResolvaX Modern Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@400;500;600&display=swap');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors */
    --navy: #1c2b4a;
    --blue-resolve: #3C6FF9;
    --coral-action: #FF7366;
    --yellow-earn: #ffc224;
    --mint-top: #10b981;
    --teal: #1e8f8a;

    /* UI Colors */
    --input-border: #E0E6F1;
    --input-placeholder: #B7C2D0;
    --card-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);

    /* Radius */
    --radius-btn: 14px;
    --radius-card: 16px;
    --radius-input: 14px;
    --radius-mobile: 32px;

    /* Fonts */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', sans-serif;
}

/* Base Button Styles */
.btn {
    border-radius: var(--radius-btn);
    font-weight: 600;
    padding: 12px 24px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn:active {
    transform: scale(0.98);
}

/* Primary Button: Azul Resolve */
.btn-primary {
    background: var(--blue-resolve);
    color: white;
    box-shadow: 0 4px 12px rgba(60, 111, 249, 0.2);
}

.btn-primary:hover {
    background: #2a5bd6;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(60, 111, 249, 0.3);
}

/* Secondary Button: White + Border */
.btn-secondary {
    background: white;
    color: var(--blue-resolve);
    border: 2px solid var(--blue-resolve);
}

.btn-secondary:hover {
    background: #f0f5ff;
}

/* Danger/Action Button: Coral */
.btn-action,
.btn-danger,
.btn-coral {
    background: var(--coral-action);
    color: white;
}

.btn-action:hover,
.btn-danger:hover,
.btn-coral:hover {
    background: #e6675c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 115, 102, 0.3);
}

body {
    font-family: var(--font-primary);
    color: #1c2b4a;
    background: #fff;
    font-weight: 400;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Typography Utilities */
h1,
h2,
.title {
    font-family: var(--font-primary);
    font-weight: 600;
    /* SemiBold */
}

h3,
h4,
h5,
h6,
.subtitle {
    font-family: var(--font-primary);
    font-weight: 500;
    /* Medium */
}

p,
.text-regular {
    font-family: var(--font-primary);
    font-weight: 400;
    /* Regular */
}

.long-text,
.note,
.description,
.content-body {
    font-family: var(--font-secondary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding-top: 40px;
    padding-bottom: 40px;
}

@media (max-width: 768px) {
    .section-padding {
        padding-top: 30px;
        padding-bottom: 30px;
    }
}

/* Top Bar */
.top-bar {
    background: var(--navy);
    color: white;
    padding: 10px 0;
    font-size: 13px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-icons {
    display: flex;
    gap: 8px;
}

.social-icon,
.top-link {
    color: white;
    text-decoration: none;
}

.top-link-register {
    color: var(--yellow);
    font-weight: 600;
    text-decoration: none;
}

/* Header */
.main-header-white {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-white {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo-edubin {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon-edubin {
    width: 45px;
    height: 45px;
    background: var(--yellow);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.logo-text-edubin {
    font-size: 24px;
    font-weight: 800;
    color: var(--navy);
}

.nav-menu-white {
    display: flex;
    gap: 25px;
}

.nav-link-white {
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s;
}

.nav-link-white:hover,
.nav-link-white.active {
    color: var(--yellow);
}

.nav-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.credits-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background: #f0f9ff;
    border-radius: 20px;
    border: 1px solid #0ea5e9;
}

.coin-icon {
    font-size: 16px;
}

.credits-value {
    font-weight: 700;
    color: var(--navy);
    font-size: 14px;
}

.btn-send-question {
    background: #10b981;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-send-question:hover {
    background: #059669;
    transform: translateY(-2px);
}

.btn-login {
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.btn-login:hover {
    color: var(--yellow);
}

/* Modern Hero - Degradê Teal */
.hero-modern {
    background: linear-gradient(135deg, #338b85 0%, #1e6f8a 100%);
    padding: 80px 0 100px;
    color: white;
}

.hero-content-modern {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title-modern {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero-text-modern {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 35px;
    opacity: 0.95;
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
}

.btn-green-modern {
    background: var(--green);
    color: white;
    padding: 14px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-green-modern:hover {
    background: #059669;
    transform: translateY(-2px);
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 12px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-box-modern {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 50px;
    padding: 5px;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.search-icon {
    font-size: 20px;
    padding: 0 15px;
}

.search-input-modern {
    flex: 1;
    border: none;
    outline: none;
    padding: 15px 20px;
    font-size: 15px;
    border-radius: 50px;
}

/* Platform Section */
.platform-modern {
    background: linear-gradient(135deg, #2a5f6f 0%, #1e4a5f 100%);
    padding: 60px 0;
    color: white;
}

.platform-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 60px;
    align-items: center;
}

.platform-heading {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.platform-description {
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.9;
}

.platform-cards-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.subject-card {
    background: white;
    border-radius: var(--radius-card);
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    box-shadow: var(--card-shadow);
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.subject-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.card-icon-modern {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.card-blue-modern .card-icon-modern {
    color: #5b72ee;
}

.card-teal-modern .card-icon-modern {
    color: #10b981;
}

.card-pink-modern .card-icon-modern {
    color: #ec4899;
}

.card-title-modern {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}

.card-text-modern {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* Recent Questions Section */
.recent-questions-section {
    padding: 80px 0;
    background: #f8fafc;
}

.section-header-center {
    text-align: center;
    margin-bottom: 40px;
}

.section-title-modern {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 15px;
}

.section-subtitle-modern {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
}

.questions-filters-modern {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-pill {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 8px 20px;
    border-radius: 50px;
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-pill:hover,
.filter-pill.active {
    background: var(--navy);
    color: white;
    border-color: var(--navy);
}

.questions-grid-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.question-card-modern {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    border: 1px solid #f1f5f9;
}

.question-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.card-header-modern {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.subject-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.subject-icon-box.purple {
    background: #f3e8ff;
    color: #9333ea;
}

.subject-icon-box.pink {
    background: #fce7f3;
    color: #db2777;
}

.subject-icon-box.blue {
    background: #dbeafe;
    color: #2563eb;
}

.question-meta {
    flex: 1;
}

.question-title-card {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.user-info-card {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: #94a3b8;
}

.card-tags {
    margin-bottom: 20px;
}

.tag-level {
    background: #fff7ed;
    color: #ea580c;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.card-footer-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

.status-badge {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.status-badge.answers {
    background: #dcfce7;
    color: #166534;
}

.status-badge.waiting {
    background: #fee2e2;
    color: #991b1b;
}

.status-badge.answered {
    background: #e0f2fe;
    color: #075985;
}

.credits-reward {
    color: var(--green);
    font-weight: 700;
    font-size: 0.9rem;
}

.section-footer-center {
    text-align: center;
}

.btn-view-all {
    background: var(--navy);
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-view-all:hover {
    background: #0f172a;
    transform: translateY(-2px);
}

/* Teacher Tools Section */
.teacher-tools-section {
    padding: 80px 0;
    background: white;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.tool-card {
    background: white;
    border-radius: 16px;
    padding: 35px 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.tool-icon-box {
    width: 70px;
    height: 70px;
    background: #f8fafc;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.tool-icon {
    font-size: 32px;
}

.tool-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 15px;
}

.tool-desc {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 25px;
    flex: 1;
}

.btn-tool {
    background: var(--navy);
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    width: 100%;
}

.btn-tool:hover {
    background: #0f172a;
    transform: translateY(-2px);
}

/* Modern Footer */
.main-footer-modern {
    background: #0f172a;
    color: white;
    padding: 80px 0 30px;
}

.footer-grid-modern {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
}

.footer-desc {
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.social-links-footer {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--yellow);
    color: var(--navy);
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: white;
}

.footer-links-list {
    list-style: none;
}

.footer-links-list li {
    margin-bottom: 15px;
}

.footer-links-list a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-links-list a:hover {
    color: var(--yellow);
    padding-left: 5px;
}

.footer-bottom-modern {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;


    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.tool-icon {
    font-size: 32px;
}

.tool-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 15px;
}

.tool-desc {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 25px;
    flex: 1;
}

.btn-tool {
    background: var(--navy);
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    width: 100%;
}

.btn-tool:hover {
    background: #0f172a;
    transform: translateY(-2px);
}

/* Modern Footer */
.main-footer-modern {
    background: #0f172a;
    color: white;
    padding: 80px 0 30px;
}

.footer-grid-modern {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
}

.footer-desc {
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.social-links-footer {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--yellow);
    color: var(--navy);
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: white;
}

.footer-links-list {
    list-style: none;
}

.footer-links-list li {
    margin-bottom: 15px;
}

.footer-links-list a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-links-list a:hover {
    color: var(--yellow);
    padding-left: 5px;
}

.footer-bottom-modern {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .platform-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title-modern {
        font-size: 2.2rem;
    }

    .platform-cards-modern {
        grid-template-columns: 1fr;
    }

    .questions-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid-modern {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .top-bar-content,
    .navbar-white,
    .nav-menu-white {
        flex-direction: column;
    }

    .hero-actions {
        flex-direction: column;
    }

    .questions-grid-modern {
        grid-template-columns: 1fr;
    }

    .footer-grid-modern {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }
}

.main-content {
    min-height: auto;
}

/* Modern Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-decoration: none;
    gap: 8px;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, var(--navy) 0%, #2a3f6a 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(28, 43, 74, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2a3f6a 0%, var(--navy) 100%);
    box-shadow: 0 8px 20px rgba(28, 43, 74, 0.3);
    transform: translateY(-2px);
}

.btn-outline {
    background: white;
    color: #64748b;
    border: 2px solid #e2e8f0;
}

.btn-outline:hover {
    border-color: var(--navy);
    color: var(--navy);
    background: #f8fafc;
}

.btn-ai-magic {
    background: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-ai-magic:hover {
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
}

.btn-ai-magic::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-ai-magic:hover::before {
    left: 100%;
}

/* Form Input Modernization */
.form-input {
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
}

.form-input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(91, 114, 238, 0.1);
}

/* Design System Updates & Overrides */
.form-input {
    border: 2px solid var(--input-border) !important;
    border-radius: var(--radius-input) !important;
    padding: 12px 16px !important;
    font-family: var(--font-secondary) !important;
}

.form-input::placeholder {
    color: var(--input-placeholder) !important;
}

.form-input:focus {
    border-color: var(--blue-resolve) !important;
    box-shadow: 0 0 0 4px rgba(60, 111, 249, 0.1) !important;
    outline: none !important;
}

.question-card-modern,
.tool-card {
    border-radius: var(--radius-card) !important;
    box-shadow: var(--card-shadow) !important;
}

.question-card-modern:hover,
.tool-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12) !important;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-verified {
    background: rgba(60, 111, 249, 0.1);
    color: var(--blue-resolve);
}

.badge-verified::after {
    content: '';
    font-weight: 800;
}

.badge-level {
    background: rgba(255, 194, 36, 0.15);
    color: #d97706;
}

.badge-top {
    background: rgba(16, 185, 129, 0.1);
    color: var(--mint-top);
}

/* Layout Utilities */
.sidebar-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar-fixed {
    width: 280px;
    background: white;
    border-right: 1px solid #f1f5f9;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.main-wrapper {
    flex: 1;
    margin-left: 280px;
    background: #f8fafc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar-fixed {
    background: white;
    height: 70px;
    border-bottom: 1px solid #f1f5f9;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 90;
}

@media (max-width: 992px) {
    .sidebar-fixed {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar-fixed.active {
        transform: translateX(0);
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    }

    .main-wrapper {
        margin-left: 0;
    }

    .mobile-radius-container {
        border-radius: var(--radius-mobile) var(--radius-mobile) 0 0;
        background: white;
        min-height: 100vh;
        padding: 24px;
        margin-top: 20px;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    }
}


/* Gamification Colors */
:root {
    --gold-gam: #FFDE59;
    --mint-gam: #7FE3C1;
    --coral-gam: #FF7366;
}

.text-gold {
    color: var(--gold-gam) !important;
}

.text-mint {
    color: var(--mint-gam) !important;
}

.text-coral {
    color: var(--coral-gam) !important;
}

.badge-gold {
    background: rgba(255, 222, 89, 0.15);
    color: #b49b3e;
}

.badge-mint {
    background: rgba(127, 227, 193, 0.15);
    color: #2a9d8f;
}

.res-points-display {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
    color: var(--navy);
    background: #f1f5f9;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.res-symbol {
    color: var(--gold-gam);
    font-size: 1.1rem;
}

/* Home Page Modern Sections */
.hero-modern {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    color: white;
}

.hero-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(60, 111, 249, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content-modern {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.hero-title-modern {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text-modern {
    font-size: 1.1rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.btn-green-modern {
    background: var(--mint-gam);
    color: #064e3b;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s;
}

.btn-green-modern:hover {
    transform: scale(1.05);
}

.btn-outline-white {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-outline-white:hover {
    background: white;
    color: #0f172a;
}

.search-box-modern {
    background: white;
    border-radius: 50px;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.search-icon {
    font-size: 1.2rem;
    margin-right: 10px;
}

.search-input-modern {
    border: none;
    outline: none;
    flex: 1;
    font-size: 1rem;
    color: #334155;
}

.platform-modern {
    padding: 60px 0;
    background: white;
}

.platform-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.platform-heading {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 20px;
    line-height: 1.1;
}

.platform-description {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.6;
}

.platform-cards-modern {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.card-blue-modern {
    background: #eff6ff;
    border: 1px solid #dbeafe;
}

.card-teal-modern {
    background: #f0fdfa;
    border: 1px solid #ccfbf1;
}

.card-pink-modern {
    background: #fdf2f8;
    border: 1px solid #fce7f3;
}

.card-title-modern {
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 5px;
}

.card-text-modern {
    font-size: 0.9rem;
    color: #64748b;
}

.card-icon-modern {
    font-size: 2rem;
    margin-bottom: 10px;
}

.recent-questions-section {
    padding: 60px 0;
    background: #f8fafc;
}

.main-footer-modern {
    background: #0f172a;
    color: white;
    padding: 60px 0 20px;
    margin-top: auto;
}

.section-header-center {
    text-align: center;
    margin-bottom: 40px;
}


.questions-filters-modern {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-pill {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    color: #64748b;
    font-weight: 600;
    transition: all 0.2s;
}

.filter-pill.active,
.filter-pill:hover {
    background: var(--blue-resolve);
    color: white;
    border-color: var(--blue-resolve);
}

.questions-grid-modern {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.question-card-modern {
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s;
}

.question-card-modern:hover {
    transform: translateY(-3px);
}

.card-header-modern {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.subject-icon-box {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--navy);
}

.subject-icon-box.purple {
    background: #f3e8ff;
    color: #9333ea;
}

.question-title-card {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.4;
    margin-bottom: 5px;
}

.user-info-card {
    font-size: 0.8rem;
    color: #94a3b8;
    display: flex;
    gap: 10px;
}

.card-footer-modern {
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-badge.answers {
    color: var(--blue-resolve);
    font-weight: 600;
    font-size: 0.85rem;
}

.credits-reward {
    background: var(--gold-gam);
    color: #713f12;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.75rem;
}

.btn-view-all {
    display: inline-block;
    color: var(--blue-resolve);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

.btn-view-all:hover {
    border-bottom-color: var(--blue-resolve);
}

.teacher-tools-section {
    padding: 60px 0;
    background: white;
}

.tool-icon {
    font-size: 2.5rem;
}

/* Mobile First Auth Designs */

/* Login Modal - Blue Theme */
.modal-login-blue {
    background: var(--blue-resolve) !important;
    color: white !important;
    padding: 40px 30px !important;
    max-width: 380px !important;
    border: none !important;
    box-shadow: 0 20px 40px rgba(60, 111, 249, 0.4) !important;
}

.modal-close-white {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.8;
}

.logo-white-filter {
    height: 30px;
    margin-bottom: 30px;
    filter: brightness(0) invert(1);
}

.login-title-blue {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
    text-align: left;
}

.input-blue-theme {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: none;
    background: white;
    color: #334155;
    font-size: 1rem;
    margin-bottom: 15px;
}

.input-blue-theme::placeholder {
    color: #94a3b8;
}

.btn-login-blue {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    font-weight: 600;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-login-blue:hover {
    background: white;
    color: var(--blue-resolve);
}

.login-footer-blue {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9rem;
}

.login-footer-blue a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

/* Register Modal - Clean Theme */
.modal-register-clean {
    padding: 30px !important;
    text-align: left !important;
}

.register-header-clean {
    margin-bottom: 30px;
    position: relative;
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.logo-small {
    height: 24px;
}

.brand-text {
    font-weight: 700;
    color: var(--navy);
    font-size: 1.1rem;
}

.register-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 5px;
}

.register-subtitle {
    font-size: 1.1rem;
    color: #64748b;
}

.form-group-clean {
    margin-bottom: 15px;
}

.input-clean {
    width: 100%;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    color: var(--navy);
    transition: all 0.2s;
}

.input-clean:focus {
    border-color: var(--blue-resolve);
    outline: none;
}

.btn-register-clean {
    width: 100%;
    padding: 16px;
    background: var(--blue-resolve);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 10px;
}

.register-footer-clean {
    text-align: center;
    margin-top: 25px;
    color: #64748b;
    font-size: 0.9rem;
}

.register-footer-clean a {
    color: var(--blue-resolve);
    text-decoration: none;
    font-weight: 600;
}


/* Mobile Card Layout Styles */

.mobile-container-reset {
    background: #f8fafc;
    min-height: 100vh;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

.mobile-page-header {
    margin-bottom: 30px;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.page-title-dashboard {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

.page-main-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--navy);
}

.search-box-mobile {
    margin-bottom: 30px;
}

.search-input-mobile {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

/* Question Card Mobile */
.question-card-mobile {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    border: 1px solid #f1f5f9;
}

.q-author-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.author-avatar-mobile {
    width: 40px;
    height: 40px;
    background: var(--blue-resolve);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.author-name-mobile {
    font-weight: 700;
    color: var(--navy);
}

.q-title-mobile {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--navy);
}

.q-content-mobile {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
}

/* Sections */
.section-title-mobile {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 20px;
}

/* Answer Card Mobile */
.answer-card-mobile {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    border: 1px solid #f1f5f9;
}

.author-info-col {
    display: flex;
    flex-direction: column;
}

.role-badge-mobile {
    font-size: 0.75rem;
    color: var(--blue-resolve);
}

.answer-content-mobile {
    margin-bottom: 20px;
    color: #475569;
    line-height: 1.6;
}

.btn-respond-mobile {
    width: 100%;
    padding: 12px;
    background: var(--blue-resolve);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

/* Dashboard Cards */
.dash-card-mobile {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dash-progress-row {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-grow: 1;
}

.dash-btn-continue {
    background: var(--blue-resolve);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
}

.progress-bar-mobile {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    width: 80px;
    overflow: hidden;
}

.progress-fill-mobile {
    height: 100%;
    background: var(--blue-resolve);
}

/* --- MODERN TOPBAR LAYOUT & HERO --- */
:root {
    --header-height: 80px;
}

/* Reset Main Wrapper for Topbar Layout */
.sidebar-layout {
    display: block !important;
    /* Remove flex sidebar layout */
}

.main-wrapper {
    margin-left: 0 !important;
    /* Remove sidebar offset */
    padding: 0 !important;
    width: 100% !important;
    margin-top: var(--header-height);
}

/* Fixed Modern Topbar */
.topbar-modern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.topbar-container {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Navigation Links */
.nav-menu-desktop {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link-modern {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s;
    position: relative;
}

.nav-link-modern:hover,
.nav-link-modern.active {
    color: var(--blue-resolve);
}

.nav-link-modern.active::after {
    content: '';
    position: absolute;
    bottom: -28px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--blue-resolve);
    border-radius: 3px 3px 0 0;
}

/* Topbar Search */
.topbar-search-box {
    position: relative;
    margin: 0 20px;
}

.topbar-search-input {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 10px 15px 10px 40px;
    border-radius: 30px;
    width: 250px;
    outline: none;
    color: #334155;
    transition: all 0.3s;
}

.topbar-search-input:focus {
    width: 320px;
    border-color: var(--blue-resolve);
    background: white;
}

/* Mobile Menu (Hamburger) */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--navy);
    cursor: pointer;
}

.mobile-nav-overlay {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: white;
    padding: 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
}

.mobile-nav-overlay.active {
    transform: translateX(0);
}

.mobile-nav-link {
    display: block;
    padding: 15px;
    font-size: 1.1rem;
    color: var(--navy);
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
}

/* --- HERO SECTION MODERN --- */
.home-hero-section {
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Decorative Circles */
.hero-circle-1 {
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: rgba(60, 111, 249, 0.05);
    border-radius: 50%;
}

.hero-circle-2 {
    position: absolute;
    bottom: 50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: rgba(127, 227, 193, 0.1);
    border-radius: 50%;
}

.hero-main-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 20px;
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

.btn-hero-primary {
    background: var(--blue-resolve);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(60, 111, 249, 0.3);
    transition: transform 0.2s;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
}

.hero-search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.hero-search-input {
    width: 100%;
    padding: 20px 25px 20px 55px;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    font-size: 1.1rem;
    outline: none;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    transition: border-color 0.3s;
}

.hero-search-input:focus {
    border-color: var(--blue-resolve);
}

/* RESPONSIVE */
@media (max-width: 992px) {

    .nav-menu-desktop,
    .topbar-search-box {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-main-title {
        font-size: 2.5rem;
    }

    /* Fix Mobile Grid Overflow */
    .platform-cards-modern,
    .questions-grid-modern {
        grid-template-columns: 1fr !important;
    }

    /* Ensure no horizontal scroll */
    .container {
        padding-left: 20px;
        padding-right: 20px;
        width: 100%;
        overflow-x: hidden;
    }

    /* Adjust Hero for Mobile */
    .home-hero-section {
        padding: 40px 0;
    }

    /* Hero Circles Overflow Fix */
    .hero-circle-1,
    .hero-circle-2 {
        opacity: 0.5;
        transform: scale(0.7);
    }
}

/* Global Overflow Protection */
body,
html {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

.topbar-modern {
    width: 100vw;
    /* Use viewport width instead of % to prevent scrollbar shifts */
    max-width: 100%;
}

/* ========================================
   ENHANCED TOPBAR STYLES
   ======================================== */

/* Credits Indicator */
.topbar-credits {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 8px 16px;
    border-radius: 25px;
    border: 2px solid #fbbf24;
    cursor: default;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.2);
}

.topbar-credits:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.topbar-credits .credits-icon {
    font-size: 1.1rem;
}

.topbar-credits .credits-amount {
    font-weight: 700;
    color: #92400e;
    font-size: 0.95rem;
}

/* Notifications Button */
.topbar-notifications {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #f1f5f9;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.topbar-notifications:hover {
    background: #e2e8f0;
    transform: scale(1.05);
}

.topbar-notifications .notification-icon {
    font-size: 1.2rem;
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Notifications Dropdown */
.notifications-dropdown {
    display: none;
    position: absolute;
    top: 55px;
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
    width: 360px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    z-index: 1002;
}

.notifications-dropdown.active {
    display: block;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
}

.notifications-list {
    max-height: 320px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 15px 20px;
    transition: background 0.2s;
    border-bottom: 1px solid #f8fafc;
}

.notification-item:hover {
    background: #f8fafc;
}

.notification-item.unread {
    background: #eff6ff;
}

.notification-item.unread:hover {
    background: #dbeafe;
}

.notification-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--navy);
    font-weight: 500;
    line-height: 1.4;
}

.notification-time {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 4px;
    display: block;
}

.notifications-footer {
    display: block;
    padding: 14px 20px;
    text-align: center;
    background: #f8fafc;
    color: var(--blue-resolve);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border-top: 1px solid #f1f5f9;
    transition: background 0.2s;
}

.notifications-footer:hover {
    background: #eff6ff;
}

/* User Profile Dropdown */
.topbar-user {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 10px 4px 4px;
    border-radius: 30px;
    transition: all 0.2s ease;
}

.topbar-user:hover {
    background: #f1f5f9;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-resolve) 0%, #6366f1 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(60, 111, 249, 0.25);
}

.user-dropdown-arrow {
    font-size: 0.65rem;
    color: #94a3b8;
    transition: transform 0.2s;
}

.topbar-user:hover .user-dropdown-arrow {
    color: var(--navy);
}

/* User Dropdown Menu */
.user-dropdown-menu {
    display: none;
    position: absolute;
    top: 55px;
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
    width: 280px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    z-index: 1001;
}

.user-dropdown-menu.active {
    display: block;
    animation: slideDown 0.2s ease;
}

.dropdown-header {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

.dropdown-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-resolve) 0%, #6366f1 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.dropdown-user-info {
    flex: 1;
    min-width: 0;
}

.dropdown-credits {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-bottom: 1px solid #fbbf24;
}

.dropdown-credits-label {
    font-size: 0.8rem;
    color: #92400e;
    font-weight: 500;
}

.dropdown-credits-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #78350f;
}

.dropdown-section {
    padding: 8px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #334155;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: #f1f5f9;
    color: var(--blue-resolve);
}

.dropdown-icon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 0;
}

.dropdown-logout {
    color: #ef4444 !important;
}

.dropdown-logout:hover {
    background: #fef2f2 !important;
    color: #dc2626 !important;
}

/* Responsive Adjustments for New Topbar Elements */
@media (max-width: 768px) {
    .topbar-credits {
        display: none;
    }

    .topbar-ask-btn {
        display: none;
    }

    .notifications-dropdown {
        width: 320px;
        right: -50px;
    }

    .user-dropdown-menu {
        width: 260px;
    }

    .user-dropdown-arrow {
        display: none;
    }
}

/* ========================================
   POPULAR CATEGORIES SECTION
   ======================================== */

.popular-categories-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.categories-header {
    text-align: center;
    margin-bottom: 40px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: white;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    transition: width 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

.category-card:hover::before {
    width: 6px;
}

.category-icon {
    font-size: 2.2rem;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f8fafc;
}

.category-info {
    flex: 1;
    min-width: 0;
}

.category-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 4px 0;
}

.category-desc {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

.category-arrow {
    font-size: 1.2rem;
    color: #cbd5e1;
    transition: all 0.3s;
    flex-shrink: 0;
}

.category-card:hover .category-arrow {
    color: var(--blue-resolve);
    transform: translateX(5px);
}

/* Category Colors */

/* Matemática - Blue */
.category-math::before {
    background: #3b82f6;
}

.category-math:hover {
    border-color: #3b82f6;
}

.category-math .category-icon {
    background: #eff6ff;
    color: #3b82f6;
}

/* Português - Green */
.category-portuguese::before {
    background: #10b981;
}

.category-portuguese:hover {
    border-color: #10b981;
}

.category-portuguese .category-icon {
    background: #ecfdf5;
    color: #10b981;
}

/* Ciências - Teal */
.category-science::before {
    background: #14b8a6;
}

.category-science:hover {
    border-color: #14b8a6;
}

.category-science .category-icon {
    background: #f0fdfa;
    color: #14b8a6;
}

/* Física - Purple */
.category-physics::before {
    background: #8b5cf6;
}

.category-physics:hover {
    border-color: #8b5cf6;
}

.category-physics .category-icon {
    background: #f5f3ff;
    color: #8b5cf6;
}

/* Química - Orange */
.category-chemistry::before {
    background: #f97316;
}

.category-chemistry:hover {
    border-color: #f97316;
}

.category-chemistry .category-icon {
    background: #fff7ed;
    color: #f97316;
}

/* Redação - Pink */
.category-writing::before {
    background: #ec4899;
}

.category-writing:hover {
    border-color: #ec4899;
}

.category-writing .category-icon {
    background: #fdf2f8;
    color: #ec4899;
}

/* ENEM - Red */
.category-enem::before {
    background: #ef4444;
}

.category-enem:hover {
    border-color: #ef4444;
}

.category-enem .category-icon {
    background: #fef2f2;
    color: #ef4444;
}

/* Programação - Indigo */
.category-programming::before {
    background: #6366f1;
}

.category-programming:hover {
    border-color: #6366f1;
}

.category-programming .category-icon {
    background: #eef2ff;
    color: #6366f1;
}

/* Categories Responsive */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        padding: 16px 20px;
    }

    .category-icon {
        font-size: 1.8rem;
        width: 45px;
        height: 45px;
    }

    .popular-categories-section {
        padding: 40px 0;
    }
}

/* ========================================
   NEW ELEVATED HEADER STYLES
   ======================================== */

.topbar-elevated {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.topbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 25px;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 42px;
    transition: transform 0.2s;
}

.logo-img:hover {
    transform: scale(1.02);
}

/* Main Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 10px;
    color: #475569;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-item:hover {
    background: #f1f5f9;
    color: var(--navy);
}

.nav-item.active {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: var(--blue-resolve);
    font-weight: 600;
}

/* Nav Dropdown (Matérias) */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.nav-dropdown-btn .dropdown-arrow {
    font-size: 0.6rem;
    color: #94a3b8;
    transition: transform 0.2s;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    padding: 10px 0;
    z-index: 1000;
    border: 1px solid #e2e8f0;
}

.nav-dropdown-menu.active {
    display: block;
    animation: fadeInDown 0.2s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: #475569;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.nav-dropdown-menu a:hover {
    background: #f1f5f9;
    color: var(--blue-resolve);
}

.nav-dropdown-wide {
    min-width: 280px;
    max-height: 400px;
    overflow-y: auto;
}

.dropdown-section-title {
    padding: 10px 20px 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-top: 1px solid #f1f5f9;
    margin-top: 5px;
}

.dropdown-section-title:first-child {
    border-top: none;
    margin-top: 0;
}

/* Search Bar */
.topbar-search {
    flex: 1;
    max-width: 450px;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    z-index: 1;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 45px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.9rem;
    background: #f8fafc;
    transition: all 0.2s;
    color: var(--navy);
}

.search-input:focus {
    outline: none;
    border-color: var(--blue-resolve);
    background: white;
    box-shadow: 0 0 0 4px rgba(60, 111, 249, 0.1);
}

.search-input::placeholder {
    color: #94a3b8;
}

/* Main Header Styles */
.topbar-elevated {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
}

.topbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    gap: 20px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-shrink: 0;
}

.logo-img {
    height: 35px;
    width: auto;
}

.btn-back-header {
    background: #f1f5f9;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1rem;
    color: var(--navy);
    transition: all 0.2s;
}

.btn-back-header:hover {
    background: #e2e8f0;
    transform: translateX(-2px);
}

/* Right Section */
.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Credits Pill (Blue) */
.credits-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--blue-resolve) 0%, #6366f1 100%);
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(60, 111, 249, 0.3);
}

.credits-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(60, 111, 249, 0.4);
}

.credits-pill .credits-icon {
    font-size: 1rem;
}

.credits-pill .credits-value {
    font-weight: 700;
}

/* Notification Button */
.notification-btn {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.2rem;
}

.notification-btn:hover {
    background: #e2e8f0;
}

.notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    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;
}

/* User Avatar Button */
.user-avatar-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    position: relative;
}

.avatar-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-resolve) 0%, #6366f1 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.2s;
}

.user-avatar-btn:hover .avatar-circle {
    transform: scale(1.05);
}

.avatar-arrow {
    font-size: 0.7rem;
    color: #64748b;
}

/* Login/Signup Buttons */
.btn-login {
    background: none;
    border: none;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    font-size: 0.95rem;
    padding: 10px 16px;
    border-radius: 8px;
    transition: background 0.2s;
}

.btn-login:hover {
    background: #f1f5f9;
}

.btn-signup {
    background: var(--navy);
    color: white;
    padding: 10px 22px;
    border-radius: 25px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.btn-signup:hover {
    background: #0f172a;
    transform: translateY(-2px);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

/* Dropdowns (keep existing styles compatible) */
.notifications-dropdown,
.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid #f1f5f9;
    display: none;
    z-index: 1001;
    min-width: 300px;
}

.notifications-dropdown.show,
.user-dropdown-menu.show {
    display: block;
}

/* Mobile Dropdown Styles */
.mobile-nav-dropdown-btn {
    width: 100%;
    background: none;
    border: none;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
}

.mobile-nav-submenu {
    padding-left: 15px;
    background: white;
    border-radius: 8px;
    margin-top: 5px;
}

.mobile-nav-submenu .mobile-nav-link {
    font-size: 0.9rem;
    padding: 10px;
}

/* Responsive Header */
@media (max-width: 1200px) {
    .main-nav {
        display: none;
    }

    .topbar-search {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .topbar-inner {
        padding: 0 16px;
        height: 60px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .topbar-search {
        display: none;
    }

    .credits-pill {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .notification-btn {
        width: 38px;
        height: 38px;
    }

    .avatar-circle {
        width: 38px;
        height: 38px;
    }

    .avatar-arrow {
        display: none;
    }

    .btn-login,
    .btn-signup {
        font-size: 0.85rem;
        padding: 8px 14px;
    }
}

/* Keep compatibility with old topbar class */
.topbar-modern {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ========================================
   NEW MODERN HERO SECTION
   ======================================== */

.hero-modern {
    min-height: 100vh;
    padding-top: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #dbeafe 0%, #eff6ff 30%, #ffffff 100%);
}

.hero-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(60, 111, 249, 0.15) 0%, rgba(99, 102, 241, 0.08) 100%);
    top: 10%;
    left: -5%;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(52, 211, 153, 0.06) 100%);
    top: 60%;
    left: 10%;
    animation: float 6s ease-in-out infinite reverse;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(251, 191, 36, 0.08) 100%);
    top: 20%;
    right: 15%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: float 7s ease-in-out infinite;
}

.shape-4 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.12) 0%, rgba(249, 115, 22, 0.06) 100%);
    bottom: 20%;
    right: 10%;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: float 5s ease-in-out infinite reverse;
}

.shape-5 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.1) 100%);
    top: 50%;
    right: 30%;
    border-radius: 50%;
    animation: float 9s ease-in-out infinite;
}

.shape-6 {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.12) 0%, rgba(20, 184, 166, 0.06) 100%);
    bottom: 10%;
    left: 25%;
    border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
    animation: float 6.5s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: var(--blue-resolve);
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 30px;
    border: 1px solid rgba(60, 111, 249, 0.2);
    box-shadow: 0 4px 15px rgba(60, 111, 249, 0.1);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.15;
    margin-bottom: 25px;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 1.2rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

.hero-btn span {
    font-size: 1.2rem;
}

/* Primary Button - Blue */
.hero-btn-primary {
    background: linear-gradient(135deg, var(--blue-resolve) 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(60, 111, 249, 0.35);
}

.hero-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(60, 111, 249, 0.45);
}

/* AI Button - Yellow/Orange */
.hero-btn-ai {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.35);
}

.hero-btn-ai:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(245, 158, 11, 0.45);
}

/* Outline Button */
.hero-btn-outline {
    background: rgba(255, 255, 255, 0.8);
    color: var(--navy);
    border: 2px solid #e2e8f0;
    backdrop-filter: blur(10px);
}

.hero-btn-outline:hover {
    background: white;
    border-color: var(--blue-resolve);
    color: var(--blue-resolve);
    transform: translateY(-3px);
}

/* Responsive Hero */
@media (max-width: 768px) {
    .hero-modern {
        padding-top: 80px;
        min-height: auto;
        padding-bottom: 60px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .shape {
        opacity: 0.3;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-badge {
        font-size: 0.85rem;
        padding: 8px 18px;
    }
}

/* ========================================
   QUICK MENU SECTION (Colorful Cards)
   ======================================== */

.quick-menu-section {
    padding: 60px 0;
    background: #ffffff;
}

.quick-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.quick-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quick-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s;
}

.quick-card:hover {
    transform: translateY(-8px);
}

.quick-card:hover::before {
    opacity: 0.1;
}

/* Blue Card - Perguntas */
.quick-card-blue {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid #bfdbfe;
}

.quick-card-blue:hover {
    box-shadow: 0 20px 50px rgba(60, 111, 249, 0.25);
    border-color: #93c5fd;
}

.quick-card-blue .quick-card-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

/* Orange Card - IA */
.quick-card-orange {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 2px solid #fed7aa;
}

.quick-card-orange:hover {
    box-shadow: 0 20px 50px rgba(245, 158, 11, 0.25);
    border-color: #fdba74;
}

.quick-card-orange .quick-card-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* Green Card - Professores */
.quick-card-green {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #bbf7d0;
}

.quick-card-green:hover {
    box-shadow: 0 20px 50px rgba(16, 185, 129, 0.25);
    border-color: #86efac;
}

.quick-card-green .quick-card-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.quick-card-icon {
    width: 70px;
    height: 70px;
    min-width: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.quick-card-content {
    flex: 1;
}

.quick-card-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.quick-card-content p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

.quick-card-arrow {
    font-size: 1.5rem;
    color: #94a3b8;
    transition: all 0.3s;
}

.quick-card:hover .quick-card-arrow {
    transform: translateX(5px);
    color: var(--navy);
}

/* Responsive Quick Menu */
@media (max-width: 1024px) {
    .quick-menu-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .quick-card {
        padding: 24px;
    }
}

@media (max-width: 640px) {
    .quick-menu-section {
        padding: 40px 0;
    }

    .quick-card-icon {
        width: 55px;
        height: 55px;
        min-width: 55px;
        font-size: 1.5rem;
    }

    .quick-card-content h3 {
        font-size: 1.1rem;
    }

    .quick-card-content p {
        font-size: 0.85rem;
    }
}

/* ============================================
   MOBILE NAVIGATION STYLES
   ============================================ */

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    margin-right: 10px;
}

@media (max-width: 900px) {
    .mobile-menu-btn {
        display: block;
    }

    .main-nav {
        display: none !important;
    }

    .topbar-search {
        display: none;
    }
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 350px;
    height: 100vh;
    background: white;
    z-index: 10000;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

.mobile-nav-overlay.active {
    left: 0;
}

/* Mobile Overlay Backdrop */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
}

.mobile-overlay.active {
    display: block;
}

/* Mobile Nav Header */
.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--navy) 0%, #1e3a5f 100%);
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.mobile-nav-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
}

/* Mobile Nav Sections */
.mobile-nav-section {
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
}

.mobile-nav-section-title {
    padding: 8px 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

/* Mobile Nav Links */
.mobile-nav-link {
    display: block;
    padding: 12px 20px;
    color: var(--navy);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
}

.mobile-nav-link:hover {
    background: white;
    color: var(--blue-resolve);
}

.mobile-logout {
    color: #ef4444 !important;
    font-weight: 600;
}

/* Mobile Nav Footer */
.mobile-nav-footer {
    padding: 20px;
    margin-top: auto;
    border-top: 1px solid #f1f5f9;
    background: white;
}

/* Mobile User Info */
.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.mobile-user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-resolve) 0%, #6366f1 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.mobile-user-name {
    font-weight: 700;
    color: var(--navy);
    font-size: 1rem;
}

.mobile-user-points {
    color: var(--teal);
    font-weight: 600;
    font-size: 0.85rem;
}

/* Mobile Nav Backdrop */
.mobile-nav-overlay.active::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

/* Ensure topbar content is visible on mobile */
@media (max-width: 600px) {
    .topbar-inner {
        padding: 10px 15px;
    }

    .logo-img {
        height: 30px;
    }

    .credits-pill {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .notification-btn,
    .user-avatar-btn {
        display: flex;
    }
}

/* ============================================
   MOBILE PERFORMANCE OPTIMIZATIONS
   ============================================ */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {

    .hero-float,
    .bubble,
    .floating-element {
        animation: none !important;
    }
}

/* Mobile-specific performance optimizations */
@media (max-width: 768px) {

    /* Disable heavy animations on mobile */
    .hero-float,
    .bubble,
    .floating-element {
        animation: none !important;
    }

    /* GPU acceleration for navigation elements */
    .mobile-nav-overlay,
    .mobile-overlay {
        transform: translateZ(0);
        backface-visibility: hidden;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    * {
        -webkit-tap-highlight-color: transparent;
    }

    button,
    a,
    .btn,
    .mobile-nav-link {
        touch-action: manipulation;
    }
}