@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Pix-up Design System */
    --ink: #0A1F44;
    --ink-muted: #4B5563;
    --ink-subtle: #9CA3AF;
    --canvas: #F8FAFC;
    --border: #E5E7EB;
    --accent: #FF2680;
    --accent-hover: #e0216e;
    --accent-light: #FFF0F6;
    --accent-2: #00B5E2;
    --accent-3: #FFD100;
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-accent: 0 8px 24px rgba(255, 38, 128, 0.35);
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);

    /* ============================================
       PIX-UP LOGO COLOR SYSTEM
       Extracted from the Pix-up camera logo:
       Yellow (camera blades) · Magenta (arrow) · Cyan (lens)
       ============================================ */
    --pix-yellow:  #FFD000;
    --pix-magenta: #FF2680;
    --pix-cyan:    #00C8F0;
    --pix-purple:  #9B2FFF;

    /* Brand gradients */
    --grad-primary: linear-gradient(135deg, #FF2680 0%, #9B2FFF 100%);
    --grad-warm:    linear-gradient(135deg, #FFD000 0%, #FF6B35 50%, #FF2680 100%);
    --grad-cool:    linear-gradient(135deg, #00C8F0 0%, #9B2FFF 100%);
    --grad-logo:    linear-gradient(135deg, #FFD000 0%, #FF6B35 20%, #FF2680 50%, #9B2FFF 75%, #00C8F0 100%);
    --grad-dark:    linear-gradient(135deg, #0E0020 0%, #1A0050 45%, #001540 100%);

    /* Button glow shadows */
    --shadow-btn:  0 4px 20px rgba(255, 38, 128, 0.4), 0 1px 4px rgba(155, 47, 255, 0.3);
    --shadow-btn-hover: 0 8px 32px rgba(255, 38, 128, 0.55), 0 2px 8px rgba(155, 47, 255, 0.4);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f5f7fa;
    min-height: 100vh;
}

.btn-primary {
    background: var(--grad-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-btn);
    border: none;
}

.btn-primary:hover {
    background: var(--grad-warm);
    box-shadow: var(--shadow-btn-hover);
    transform: translateY(-1px);
}

/* Universal pix-up branded button — use on any element */
.btn-pix {
    background: var(--grad-primary);
    color: white;
    box-shadow: 0 2px 12px rgba(255, 38, 128, 0.35);
    transition: all 0.25s ease;
}
.btn-pix:hover {
    background: var(--grad-warm);
    box-shadow: var(--shadow-btn-hover);
    transform: translateY(-1px);
}

.card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    color: #4b5563;
    transition: all 0.2s;
}

.sidebar-link:hover {
    background: linear-gradient(135deg, rgba(255,38,128,0.08) 0%, rgba(155,47,255,0.08) 100%);
    color: var(--pix-magenta);
}

.sidebar-link.active {
    background: var(--grad-primary);
    color: white;
    box-shadow: 0 2px 12px rgba(255, 38, 128, 0.3);
}

.sidebar-link i {
    width: 20px;
    margin-right: 12px;
}

.result-image {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.result-image:hover {
    transform: scale(1.02);
}

.result-image img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    background-color: #f3f4f6;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

/* Watermark overlay for unpurchased images */
.result-image.not-purchased::after,
.modal-image-container.not-purchased::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/Pix-up_Logo.png');
    background-repeat: repeat;
    background-size: 100px auto;
    background-position: center;
    opacity: 0.25;
    pointer-events: none;
}

.modal-image-container {
    position: relative;
    display: inline-block;
}

/* Protect modal image */
#modal-result-image {
    user-select: none;
    -webkit-user-drag: none;
}

.result-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    padding: 1rem;
    color: white;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-completed { background: rgba(0, 200, 240, 0.15); color: #0098b8; border: 1px solid rgba(0, 200, 240, 0.3); }
.status-processing { background: rgba(255, 208, 0, 0.15); color: #b87c00; border: 1px solid rgba(255, 208, 0, 0.35); }
.status-pending { background: rgba(155, 47, 255, 0.1); color: #7b1fa2; border: 1px solid rgba(155, 47, 255, 0.2); }
.status-failed { background: rgba(255, 38, 128, 0.1); color: #cc1060; border: 1px solid rgba(255, 38, 128, 0.2); }

.credit-package {
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}

.credit-package:hover {
    border-color: var(--pix-magenta);
    box-shadow: 0 4px 20px rgba(255, 38, 128, 0.15);
    transform: translateY(-2px);
}

.credit-package.popular {
    border-color: var(--pix-magenta);
    position: relative;
}

.credit-package.popular::before {
    content: 'Populair';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--grad-primary);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Auth screens */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--grad-dark);
}

.auth-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.input-field:focus {
    outline: none;
    border-color: var(--pix-magenta);
    box-shadow: 0 0 0 3px rgba(255, 38, 128, 0.12);
}

.tab-btn {
    flex: 1;
    padding: 0.75rem;
    text-align: center;
    font-weight: 600;
    color: #6b7280;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.tab-btn.active {
    color: var(--pix-magenta);
    border-bottom-color: var(--pix-magenta);
}

.tab-btn:hover:not(.active) {
    color: #374151;
}

/* Mobile responsive styles */
/* Hamburger menu button (hidden on desktop) */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--ink);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: var(--transition);
}
.hamburger-btn:hover { background: var(--canvas); }

/* Mobile-only CTA button in navbar (always visible, not affected by hamburger) */
.mobile-nav-cta {
    display: none !important;
    font-size: 12px !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    white-space: nowrap;
}
@media (max-width: 768px) {
    .mobile-nav-cta { display: inline-flex !important; align-items: center; gap: 4px; }
}

@media (max-width: 768px) {
    /* Show hamburger on public pages, hide their nav links + actions */
    .hamburger-btn { display: flex; align-items: center; justify-content: center; }
    .navbar-links { display: none !important; }
    /* Only hide navbar-actions when a hamburger button is present (public pages) */
    .navbar-inner:has(.hamburger-btn) .navbar-actions { display: none !important; }
    .navbar-inner { padding: 0 16px; height: 56px; }

    /* Mobile dropdown menu */
    .navbar-links.mobile-open,
    .navbar-actions.mobile-open {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(12px);
        padding: 12px 16px;
        gap: 4px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
        z-index: 99;
    }
    .navbar-actions.mobile-open {
        top: auto;
        position: relative;
        border-bottom: none;
        box-shadow: none;
        padding-top: 8px;
        border-top: 1px solid var(--border);
    }
    .navbar-actions.mobile-open .btn-primary,
    .navbar-actions.mobile-open .btn-ghost {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* Fix header height on mobile */
    nav.fixed {
        min-height: auto;
    }
    
    /* Main content full width on mobile */
    main.flex-1 {
        margin-left: 0 !important;
        padding: 1rem;
    }
    
    /* Result images smaller on mobile */
    .result-image img {
        aspect-ratio: 4/3;
    }
    
    /* Cards padding on mobile */
    .card {
        padding: 1rem;
    }
    
    /* Generator widget mobile fixes */
    .widget-mode-btn,
    .widget-product-submode-btn {
        padding: 0.75rem;
    }
}

/* Mobile auth bar styling */
.mobile-auth-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

@media (max-width: 640px) {
    .mobile-auth-bar .separator {
        display: none;
    }
}

/* Force mobile menu and button to be hidden on desktop */
@media (min-width: 768px) {
    #mobile-menu-portal,
    #mobile-menu-btn-portal {
        display: none !important;
    }
}

/* Mobile menu styling - ensure links don't overlap with header elements */
#mobile-menu-portal {
    position: relative;
    z-index: 40;
}

#mobile-menu-portal .sidebar-link {
    display: flex;
    width: 100%;
    position: relative;
    z-index: 41;
}

/* Prevent horizontal overflow on mobile */
@media (max-width: 640px) {
    main.flex-1 {
        overflow-x: hidden;
        max-width: 100vw;
    }

    #section-results,
    #section-overview,
    #section-credits,
    #section-history,
    #section-settings,
    #section-generator {
        overflow-x: hidden;
    }

    /* Result cards responsive */
    #all-results .card {
        min-width: 0;
    }
}

/* Mobile App-like Bottom Navigation */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e5e7eb;
    padding: 0.5rem 0;
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
    z-index: 50;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.mobile-bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0;
    color: #6b7280;
    font-size: 0.65rem;
    transition: color 0.2s;
    text-decoration: none;
}

.mobile-bottom-nav a i {
    font-size: 1.25rem;
}

.mobile-bottom-nav a.active {
    color: var(--pix-magenta);
}

.mobile-bottom-nav a:hover {
    color: var(--pix-magenta);
}

/* Add bottom button (center prominent) */
.mobile-bottom-nav .add-btn {
    background: var(--grad-primary);
    color: white !important;
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    max-width: 50px;
    max-height: 50px;
    border-radius: 50%;
    margin-top: -25px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(255, 38, 128, 0.45);
    flex-shrink: 0;
    flex-grow: 0;
    padding: 0 !important;
}

.mobile-bottom-nav .add-btn i {
    font-size: 1.5rem;
}

.mobile-bottom-nav .add-btn span {
    display: none;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }

    /* Add padding to main content to avoid bottom nav overlap */
    main.flex-1 {
        padding-bottom: 100px !important;
    }

    /* Hide footer on mobile - bottom nav replaces it */
    footer.bg-gray-800 {
        display: none !important;
    }

    /* Hide top mobile menu button when bottom nav is visible */
    #mobile-menu-btn-portal {
        display: none !important;
    }

    #mobile-menu-portal {
        display: none !important;
    }
}

/* Mobile Results Grid - Smaller thumbnails for app-like feel */
@media (max-width: 640px) {
    #all-results {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    #all-results .card {
        padding: 0 !important;
        border-radius: 0.5rem;
        overflow: hidden;
    }

    #all-results .result-image img {
        aspect-ratio: 4/3 !important;
        border-radius: 0 !important;
    }

    /* Hide text on mobile result cards, show only thumbnail */
    #all-results .result-overlay {
        padding: 0.5rem;
        background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    }

    #all-results .result-overlay p {
        font-size: 0.65rem !important;
        line-height: 1.2;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Status badge smaller on mobile */
    #all-results .status-badge {
        font-size: 0.6rem;
        padding: 0.15rem 0.5rem;
    }
}

/* Overview cards more compact on mobile */
@media (max-width: 640px) {
    #section-overview .grid {
        gap: 0.75rem;
    }

    #section-overview .card {
        padding: 0.75rem !important;
    }

    #section-overview .card h3 {
        font-size: 0.875rem;
    }

    #section-overview .card .text-3xl {
        font-size: 1.5rem !important;
    }
}

/* Mobile modal improvements - full screen on small devices */
@media (max-width: 768px) {
    /* Result modal full screen on mobile */
    #result-modal > div:last-child {
        position: fixed !important;
        inset: 0 !important;
        border-radius: 0 !important;
        max-height: 100vh !important;
    }

    /* Edit modal full screen on mobile */
    #edit-image-modal > div:last-child {
        position: fixed !important;
        inset: 0 !important;
        border-radius: 0 !important;
        max-height: 100vh !important;
    }

    /* Billing modal more padding on mobile */
    #billing-modal > div:last-child {
        position: fixed !important;
        top: 2rem !important;
        left: 0.5rem !important;
        right: 0.5rem !important;
        bottom: 2rem !important;
        border-radius: 0.75rem !important;
        max-height: calc(100vh - 4rem) !important;
    }

    /* Confirm modals centered with more padding */
    #delete-job-modal > div:last-child,
    #confirm-modal > div:last-child,
    #delete-account-modal > div:last-child {
        left: 1rem !important;
        right: 1rem !important;
        width: auto !important;
        max-width: calc(100vw - 2rem) !important;
    }
}

/* Extra small screens (< 400px) - ensure all buttons visible */
@media (max-width: 400px) {
    /* Result modal - stack footer items vertically */
    #result-modal .flex.flex-col {
        gap: 0.5rem;
    }

    /* Ensure delete button is always visible */
    #modal-delete-btn {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-width: auto;
    }

    /* Make folder select smaller */
    #modal-folder-select {
        max-width: 90px;
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }

    /* Smaller action buttons */
    #result-modal button {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        font-size: 0.75rem;
    }

    /* Smaller download buttons */
    #modal-download-btn,
    #modal-download-4k-btn,
    #modal-reroll-btn,
    #modal-edit-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.7rem;
    }

    /* Hide long button text on very small screens */
    #modal-download-btn-text,
    #modal-download-4k-text,
    .pricing-reroll,
    .pricing-edit {
        display: none;
    }

    /* Show only icons for action buttons */
    #modal-download-btn i,
    #modal-download-4k-btn i,
    #modal-reroll-btn i,
    #modal-edit-btn i {
        margin-right: 0;
    }
}

/* Fix: Tailwind hidden class overridden by portal.css display:flex on sidebar links */
.sidebar-link.hidden { display: none !important; }

/* Force modals to be on top of everything including header/footer/mobile-nav */
#edit-image-modal,
#result-modal,
#confirm-modal,
#delete-job-modal,
#billing-modal,
#bug-report-modal,
#delete-account-modal {
    z-index: 99999 !important;
    isolation: isolate;
}

/* Reroll variation buttons */
.reroll-variation-btn {
    padding: 0.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.reroll-variation-btn:hover {
    border-color: var(--pix-magenta);
    box-shadow: 0 0 0 3px rgba(255,38,128,0.1);
}

.reroll-variation-btn.active {
    border-color: var(--pix-magenta);
    background: rgba(255,38,128,0.05);
}

/* ========================
   Pix-up Landing Page CSS
   ======================== */

/* Announcement bar */
.announce-bar {
    background: #fff8f0;
    color: #111;
    border-bottom: 1px solid #fde8d4;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    padding: 9px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.announce-bar .badge {
    background: linear-gradient(135deg, #FF2680 0%, #9B2FFF 100%);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.announce-bar strong { color: #FF2680; }

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.navbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.navbar-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.navbar-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}
.navbar-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-muted);
    padding: 6px 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}
.navbar-links a:hover { color: var(--ink); background: var(--canvas); }
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Ghost + primary buttons for landing */
.btn-ghost {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-ghost:hover { background: var(--canvas); }

a.btn-primary,
.navbar .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    background: var(--grad-primary);
    color: white !important;
    padding: 8px 18px;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: var(--shadow-btn);
}
a.btn-primary:hover,
.navbar .btn-primary:hover {
    background: var(--grad-warm);
    box-shadow: var(--shadow-btn-hover);
    transform: translateY(-1px);
}

/* Text gradient */
.text-gradient {
    background: var(--grad-logo);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Stats bar */
.stats-bar {
    display: flex;
    justify-content: center;
    align-items: stretch;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: white;
}
.stat-item {
    flex: 1;
    max-width: 320px;
    text-align: center;
    padding: 28px 24px;
    border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-value {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label { font-size: 13px; color: var(--ink-muted); font-weight: 500; }

/* Section headers */
.section-header { text-align: center; margin-bottom: 48px; }
.section-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--pix-magenta);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.section-header h2 {
    font-size: clamp(24px, 3.5vw, 40px);
    font-weight: 900;
    color: var(--ink);
    line-height: 1.15;
}

/* Workflow steps */
.workflow-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 48px;
}
.workflow-step-num {
    font-size: 11px;
    font-weight: 700;
    color: var(--ink-subtle);
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}
.workflow-step-icon { font-size: 20px; color: var(--ink-subtle); margin-bottom: 12px; }
.workflow-step h3 { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.workflow-step p { font-size: 14px; color: var(--ink-muted); line-height: 1.65; }

/* Bento grid items */
.bento-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: var(--canvas);
}
.bento-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5,5,15,0.75) 0%, rgba(5,5,15,0.2) 45%, transparent 80%);
    z-index: 2;
    pointer-events: none;
}
.bento-label {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 3;
}
.bento-label h3 { font-size: 17px; font-weight: 700; color: white; margin-bottom: 4px; }
.bento-label p  { font-size: 13px; color: rgba(255,255,255,0.75); }
.bento-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 10;
    background: rgba(10,31,68,0.75);
    backdrop-filter: blur(6px);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* BA (before/after) labels — positioned below slider */
.ba-label {
    position: absolute;
    bottom: -28px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: white;
    padding: 3px 8px;
    border-radius: 100px;
    z-index: 9;
}
.ba-label.voor { right: calc(50% + 10px); background: rgba(0,0,0,0.5); }
.ba-label.na   { left:  calc(50% + 10px); background: rgba(255,38,128,0.8); }

/* CTA band */
.cta-band {
    background: var(--grad-dark);
    padding: 80px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(255,38,128,0.18) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 50%, rgba(155,47,255,0.15) 0%, transparent 60%);
    pointer-events: none;
}
.cta-band h2 {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 900;
    color: white;
    line-height: 1.1;
    margin-bottom: 16px;
}
.cta-band p { font-size: 16px; color: rgba(255,255,255,0.7); margin-bottom: 32px; }
.cta-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.cta-badge::before { content: '• '; }
.cta-band .btn-primary {
    background: var(--grad-primary) !important;
    color: white !important;
    font-size: 16px;
    padding: 14px 32px;
    border-radius: 12px;
    box-shadow: var(--shadow-btn);
    position: relative;
}
.cta-band .btn-primary:hover {
    background: var(--grad-warm) !important;
    box-shadow: var(--shadow-btn-hover) !important;
    transform: translateY(-2px);
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}
.pricing-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 32px 28px;
    position: relative;
    transition: var(--transition);
}
.pricing-card:hover { box-shadow: var(--shadow-md); }
.pricing-card.popular { border-color: var(--pix-magenta); }
.pricing-card .popular-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--grad-primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 14px;
    border-radius: 100px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(255,38,128,0.35);
}
.pricing-card h3 { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.pricing-price { font-size: 36px; font-weight: 900; color: var(--ink); line-height: 1; margin-bottom: 4px; }
.pricing-price span { font-size: 16px; font-weight: 500; color: var(--ink-muted); }
.pricing-credits { font-size: 13px; color: var(--ink-muted); margin-bottom: 24px; }
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pricing-features li {
    font-size: 14px;
    color: var(--ink-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}
.pricing-features li::before { content: '✓'; color: var(--pix-cyan); font-weight: 700; flex-shrink: 0; }
.pricing-card .btn-primary { width: 100%; justify-content: center; padding: 12px; border-radius: 10px; }

/* Site footer */
.site-footer {
    background: white;
    border-top: 1px solid var(--border);
    padding: 32px 24px;
}
.site-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.site-footer-links { display: flex; gap: 24px; }
.site-footer-links a { font-size: 13px; color: var(--ink-muted); text-decoration: none; transition: var(--transition); }
.site-footer-links a:hover { color: var(--ink); }
.site-footer-copy { font-size: 13px; color: var(--ink-subtle); }

/* Portal redesign sidebar */
.app-sidebar {
    width: 200px;
    min-width: 200px;
    background: white;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 20px 12px;
    height: 100vh;
    position: sticky;
    top: 0;
}
.app-sidebar .sidebar-logo { padding: 8px 8px 24px; }
.app-sidebar .nav-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--ink-subtle);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0 10px;
    margin-bottom: 4px;
    margin-top: 16px;
}
.app-sidebar .nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-muted);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}
.app-sidebar .nav-item:hover { background: linear-gradient(135deg, rgba(255,38,128,0.08) 0%, rgba(155,47,255,0.08) 100%); color: var(--pix-magenta); }
.app-sidebar .nav-item.active { background: var(--grad-primary); color: white; box-shadow: 0 2px 12px rgba(255, 38, 128, 0.3); }
.app-sidebar .nav-item.active i { color: white; }
.app-sidebar .nav-item i { width: 16px; font-size: 14px; }
.app-sidebar .sidebar-credits {
    margin-top: auto;
    background: linear-gradient(135deg, rgba(255,38,128,0.06) 0%, rgba(155,47,255,0.08) 100%);
    border: 1px solid rgba(255,38,128,0.12);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}
.app-sidebar .sidebar-credits .credits-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--ink-subtle);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.app-sidebar .sidebar-credits .credits-value {
    font-size: 24px;
    font-weight: 800;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 12px;
}
.app-sidebar .sidebar-credits .credits-value sub {
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-muted);
    vertical-align: baseline;
}
.btn-upgrade {
    display: block;
    width: 100%;
    padding: 9px;
    border-radius: 8px;
    background: var(--grad-primary);
    color: white;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(255, 38, 128, 0.35);
}
.btn-upgrade:hover {
    background: var(--grad-warm);
    box-shadow: 0 4px 16px rgba(255, 38, 128, 0.5);
    transform: translateY(-1px);
}
.app-sidebar .nav-item.logout { color: #EF4444; }
.app-sidebar .nav-item.logout:hover { background: #FEF2F2; color: #DC2626; }

/* ========================
   Landing Page Components
   ======================== */

/* Shadow tokens */
:root {
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* Large buttons */
.btn-lg {
    font-size: 16px !important;
    padding: 14px 28px !important;
    border-radius: 12px !important;
}

/* Trust strip */
.trust-strip {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-muted);
}
.trust-item i {
    color: var(--pix-cyan);
    font-size: 14px;
}

/* Step cards (How it works) */
.step-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.25s ease;
}
.step-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.step-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255,38,128,0.1) 0%, rgba(155,47,255,0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 18px;
    color: var(--pix-magenta);
}
.step-number {
    font-size: 11px;
    font-weight: 700;
    color: var(--ink-subtle);
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}
