/* ==================== GLOBAL STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4F46E5;
    --secondary-color: #7C3AED;
    --accent-color: #3B82F6;
    --success-color: #10B981;
    --danger-color: #EF4444;
    --warning-color: #F59E0B;
    --dark: #1F2937;
    --light: #F3F4F6;
    --white: #FFFFFF;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --border-color: #E5E7EB;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: #FAFAFA;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Constrain content on ultra-wide screens */
@media (min-width: 1920px) {
    .container {
        max-width: 1400px;
    }
}

/* ==================== MODERN NAVIGATION ==================== */
.navbar-modern {
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #F3F4F6;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.logo-text {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    flex: 1;
    padding-left: 2rem;
}

.navbar-links-center {
    justify-content: center;
    padding-left: 0;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1.5rem;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.credits-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #FEF3C7;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #92400E;
}

.notification-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.notification-btn:hover {
    background: var(--light);
    color: var(--text-primary);
}

.btn-nav-login {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
}

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

.btn-nav-signup {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-nav-signup:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

/* User Profile Menu */
.user-profile-menu {
    position: relative;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: none;
    border: 1px solid var(--border-color);
    padding: 0.5rem 0.75rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
}

.profile-trigger:hover {
    border-color: var(--primary-color);
    background: #F9FAFB;
}

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

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.profile-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.profile-role {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.profile-arrow {
    color: var(--text-secondary);
    transition: transform 0.3s;
}

.profile-trigger:hover .profile-arrow {
    transform: translateY(2px);
}

.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: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 100;
    pointer-events: none;
}

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

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
}

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

.dropdown-item.logout {
    color: var(--danger-color);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mobile-menu.show {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    background: white;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-link {
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s;
}

.mobile-link:hover {
    background: var(--light);
}

.mobile-credits {
    background: #FEF3C7;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: #92400E;
    font-weight: 600;
    text-align: center;
    margin: 0.5rem 0;
}

.mobile-link-logout {
    padding: 0.75rem 1rem;
    color: var(--danger-color);
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid var(--danger-color);
    text-align: center;
    margin-top: 1rem;
}

.mobile-link-signup {
    padding: 0.75rem 1rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    margin-top: 1rem;
}

/* ==================== BUTTONS ==================== */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-secondary {
    background: var(--light);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--border-color);
}

.btn-success {
    background: var(--success-color);
    color: var(--white);
}

.btn-danger {
    background: var(--danger-color);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* ==================== CARDS ==================== */
.card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card-header {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.card-body {
    color: var(--text-secondary);
}

/* ==================== FORMS ==================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* ==================== ALERTS ==================== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background: #FEE2E2;
    color: #991B1B;
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background: #FEF3C7;
    color: #92400E;
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background: #DBEAFE;
    color: #1E40AF;
    border-left: 4px solid var(--primary-color);
}

/* ==================== GRID SYSTEM ==================== */
.grid {
    display: grid;
    gap: 2rem;
}

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

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Constrain grid items on large screens */
@media (min-width: 1200px) {
    .grid-2 {
        grid-template-columns: repeat(auto-fit, minmax(300px, 450px));
    }

    .grid-3 {
        grid-template-columns: repeat(auto-fit, minmax(250px, 380px));
    }

    .grid-4 {
        grid-template-columns: repeat(auto-fit, minmax(200px, 320px));
    }
}

/* ==================== HERO SECTION ==================== */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

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

/* ==================== FOOTER ==================== */
.footer-modern {
    background: #1F2937;
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 3fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer-tagline {
    color: #9CA3AF;
    font-size: 0.9rem;
}

.footer-links-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-column a {
    display: block;
    color: #9CA3AF;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    transition: color 0.3s;
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #374151;
    text-align: center;
    color: #9CA3AF;
    font-size: 0.85rem;
}

/* ==================== UTILITIES ==================== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-primary {
    background: var(--primary-color);
    color: var(--white);
}

.badge-success {
    background: var(--success-color);
    color: var(--white);
}

.badge-warning {
    background: var(--warning-color);
    color: var(--white);
}

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

/* Medium screens and tablets (landscape) */
@media (max-width: 1200px) {
    .container {
        max-width: 1000px;
        padding: 0 1.5rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero h1 {
        font-size: 2.75rem;
    }

    .hero p {
        font-size: 1.125rem;
    }
}

@media (max-width: 1024px) {
    .navbar-links {
        display: none;
    }

    .navbar-right {
        gap: 1rem;
    }

    .credits-badge {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mobile-menu {
        display: block;
    }

    .profile-info {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links-group {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Mobile App Optimization - Touch-friendly, app-like interface */
@media (max-width: 768px) {
    /* Container padding for mobile */
    .container {
        padding: 0 1rem;
    }

    /* Mobile app typography */
    body {
        font-size: 1rem;
        line-height: 1.5;
    }

    h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    h2 {
        font-size: 1.25rem;
        line-height: 1.3;
    }

    h3 {
        font-size: 1.125rem;
        line-height: 1.4;
    }

    /* Hero adjustments */
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* Touch-friendly buttons (minimum 44px height for accessibility) */
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9375rem;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
    }

    /* Navigation buttons */
    .btn-nav-login,
    .btn-nav-signup {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
        min-height: 40px;
    }

    /* Footer */
    .footer-links-group {
        grid-template-columns: 1fr;
    }

    /* Cards - mobile app styling */
    .card {
        padding: 1.25rem;
        border-radius: 12px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    }

    .card-header {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }

    /* Touch feedback for cards */
    .card:active {
        transform: scale(0.98);
    }

    /* Buttons - make them full width on mobile when needed */
    .btn-group-mobile {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn-group-mobile .btn {
        width: 100%;
        text-align: center;
    }

    /* Profile trigger - more compact */
    .profile-trigger {
        padding: 0.4rem 0.6rem;
        min-height: 40px;
    }

    .profile-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    /* Grid system - always single column on mobile */
    .grid,
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Form controls - touch-friendly */
    .form-control {
        padding: 0.75rem;
        font-size: 1rem;
        min-height: 44px;
        border-radius: 8px;
    }

    .form-label {
        font-size: 0.9375rem;
        margin-bottom: 0.5rem;
    }

    /* Alerts - mobile optimized */
    .alert {
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
        border-radius: 8px;
    }

    /* Badges - mobile sizing */
    .badge {
        padding: 0.3rem 0.75rem;
        font-size: 0.8125rem;
        border-radius: 12px;
    }

    /* Credits badge mobile */
    .credits-badge {
        font-size: 0.875rem;
        padding: 0.5rem 0.875rem;
    }

    /* Navbar mobile improvements */
    .navbar-logo {
        font-size: 1.125rem;
    }

    .mobile-link {
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
        min-height: 44px;
    }
}

/* Extra small devices (phones in portrait) */
@media (max-width: 480px) {
    /* Container - tighter padding */
    .container {
        padding: 0 0.875rem;
    }

    /* Typography for small phones */
    body {
        font-size: 0.9375rem;
    }

    h1 {
        font-size: 1.375rem;
    }

    h2 {
        font-size: 1.125rem;
    }

    h3 {
        font-size: 1rem;
    }

    /* Logo text smaller */
    .navbar-logo {
        font-size: 1rem;
    }

    /* Buttons - still touch-friendly but more compact */
    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
        min-height: 44px;
    }

    /* Card adjustments */
    .card {
        padding: 1rem;
    }

    .card-header {
        font-size: 1rem;
    }

    /* Form controls */
    .form-control {
        padding: 0.625rem;
        font-size: 0.9375rem;
    }

    .form-label {
        font-size: 0.875rem;
    }

    /* Alerts */
    .alert {
        padding: 0.75rem 0.875rem;
        font-size: 0.875rem;
    }

    /* Hero section */
    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 0.9375rem;
    }
}

/* ==================== MOBILE COLLAPSIBLE SECTIONS ==================== */
.collapsible-section {
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.collapsible-section.expanded {
    overflow: visible;
}

.collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    cursor: pointer;
    background: var(--white);
    border: none;
    width: 100%;
    text-align: left;
    transition: background 0.2s;
    user-select: none;
}

.collapsible-header:hover {
    background: #F9FAFB;
}

.collapsible-header:active {
    background: var(--light);
}

.collapsible-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.collapsible-icon {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.collapsible-toggle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
    line-height: 1;
}

.collapsible-section.expanded .collapsible-toggle {
    transform: rotate(180deg);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.collapsible-section.expanded .collapsible-content {
    max-height: 5000px;
    overflow: visible;
}

.collapsible-body {
    padding: 0 1.25rem 1.25rem;
}

/* Desktop: Show all content expanded by default */
@media (min-width: 769px) {
    .collapsible-mobile-only .collapsible-content {
        max-height: none !important;
        overflow: visible !important;
    }

    .collapsible-mobile-only .collapsible-toggle {
        display: none;
    }

    .collapsible-mobile-only .collapsible-header {
        cursor: default;
        pointer-events: none;
    }

    .collapsible-mobile-only .collapsible-header:hover {
        background: var(--white);
    }
}

/* Mobile: Enable collapsible functionality */
@media (max-width: 768px) {
    .collapsible-mobile-only .collapsible-section {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .collapsible-mobile-only .collapsible-header {
        pointer-events: auto;
    }
}

/* ==================== LOADING OVERLAY ==================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.loading-content {
    background: white;
    border-radius: 20px;
    padding: 3rem 2.5rem;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.loading-spinner {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.spinner-ring-outer {
    border: 4px solid #E5E7EB;
    border-top-color: #4F46E5;
    animation: spin 1.2s linear infinite;
}

.spinner-ring-middle {
    border: 4px solid #E5E7EB;
    border-right-color: #7C3AED;
    animation: spin 1.5s linear infinite reverse;
    width: 85%;
    height: 85%;
    top: 7.5%;
    left: 7.5%;
}

.spinner-ring-inner {
    border: 4px solid #E5E7EB;
    border-bottom-color: #3B82F6;
    animation: spin 1s linear infinite;
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
}

.spinner-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.loading-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    animation: pulse-text 2s ease-in-out infinite;
}

.loading-subtext {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.loading-progress {
    width: 100%;
    height: 6px;
    background: #E5E7EB;
    border-radius: 10px;
    margin-top: 1.5rem;
    overflow: hidden;
}

.loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4F46E5, #7C3AED, #3B82F6);
    background-size: 200% 100%;
    border-radius: 10px;
    animation: shimmer 2s ease-in-out infinite;
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(0.95);
    }
}

@keyframes pulse-text {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

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

/* ==================== UPSELL MODAL ==================== */
.upsell-modal {
    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: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    padding: 1rem;
}

.upsell-modal.show {
    opacity: 1;
    visibility: visible;
}

.upsell-content {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 550px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s;
}

.upsell-modal.show .upsell-content {
    transform: scale(1);
}

.upsell-header {
    text-align: center;
    margin-bottom: 2rem;
}

.upsell-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    color: white;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.3);
}

.upsell-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.upsell-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.upsell-body {
    margin-bottom: 2rem;
}

.upsell-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.upsell-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: #F9FAFB;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.upsell-feature:hover {
    background: #F3F4F6;
    border-color: #4F46E5;
    transform: translateX(5px);
}

.upsell-feature-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.upsell-feature-text {
    flex: 1;
}

.upsell-feature-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 1.05rem;
}

.upsell-feature-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.upsell-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.upsell-actions .btn {
    flex: 1;
    padding: 1rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.upsell-cost {
    text-align: center;
    padding: 1rem;
    background: #FEF3C7;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 2px solid #F59E0B;
}

.upsell-cost-label {
    font-size: 0.9rem;
    color: #92400E;
    font-weight: 600;
}

.upsell-cost-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #92400E;
    margin-left: 0.5rem;
}

.upsell-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 0.5rem;
}

@media (max-width: 768px) {
    .upsell-content {
        padding: 2rem 1.5rem;
    }

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

    .upsell-subtitle {
        font-size: 0.95rem;
    }

    .upsell-actions {
        flex-direction: column;
    }

    .upsell-actions .btn {
        width: 100%;
    }
}

/* ==================== LEGACY COMPATIBILITY ==================== */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.navbar-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.navbar-menu a:hover {
    color: var(--primary-color);
}

.navbar-menu .credits {
    background: var(--light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    color: var(--primary-color);
}

.navbar-menu .btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.navbar-menu .nav-link-login {
    color: var(--primary-color);
    font-weight: 600;
}
