:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    
    /* Free Tier Colors - Blue to Teal */
    --free-gradient: linear-gradient(135deg, #4A90E2 0%, #2DD4BF 100%);
    --free-primary: #4A90E2;
    --free-secondary: #2DD4BF;
    --free-light: rgba(74, 144, 226, 0.1);
    --free-border: rgba(74, 144, 226, 0.2);
    
    /* Premium Tier Colors - Purple */
    --premium-gradient: linear-gradient(135deg, #6f42c1 0%, #8b5cf6 100%);
    --premium-primary: #6f42c1;
    --premium-secondary: #8b5cf6;
    --premium-light: rgba(111, 66, 193, 0.1);
    --premium-border: rgba(111, 66, 193, 0.2);
    
    /* Neutral Colors */
    --gray-light: #f8f9fa;
    --gray-medium: #6c757d;
    --gray-dark: #343a40;
    --success-gradient: linear-gradient(135deg, #28a745 0%, #20c997 100%);

    /* ===== Design-system tokens (2026 refresh) ===== */
    /* Consolidated premium accent (pink variant used on framework/role surfaces) */
    --premium-accent: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);

    /* Radius scale */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 999px;

    /* Layered shadow tiers — softer, modern */
    --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.04);
    --shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.04);
    --shadow-md: 0 4px 12px rgba(16, 24, 40, 0.06), 0 2px 4px rgba(16, 24, 40, 0.04);
    --shadow-lg: 0 12px 28px rgba(16, 24, 40, 0.10), 0 4px 8px rgba(16, 24, 40, 0.04);
    --shadow-brand: 0 14px 32px rgba(74, 144, 226, 0.16);

    /* Type scale */
    --text-xs: 0.78rem;
    --text-sm: 0.875rem;
    --text-base: 0.95rem;
    --text-lg: 1.05rem;
    --text-xl: 1.25rem;

    /* Surfaces, borders & text */
    --surface: #ffffff;
    --surface-muted: #f8f9fa;
    --border-subtle: #eef0f3;
    --text-heading: #111827;
    --text-body: #6b7280;

    /* Canonical neutral scale — single source for greys across the app */
    --gray-50:  #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Spacing scale (4px base) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-8: 48px;

    /* Canonical card shadow (dashboard + app surfaces) */
    --shadow-card: 0 2px 16px rgba(59, 130, 246, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
}

/* ===== Launch-offer strikethrough pricing (reusable) ===== */
/* Use inside gradient/dark headers — light-black digits, bigger than the live price, red strike */
.price-was {
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1;
    color: rgba(0, 0, 0, 0.55);
    text-decoration: line-through;
    text-decoration-color: #ef4444;
    text-decoration-thickness: 3px;
    white-space: nowrap;
}
.price-was--dark { color: #9aa3af; text-decoration-color: #9aa3af; }
.price-offer-pill {
    display: inline-block;
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    font-weight: 700;
    font-size: 0.6rem;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    margin-left: 6px;
    vertical-align: middle;
    white-space: nowrap;
}
.price-offer-pill--solid {
    background: var(--free-gradient);
    color: #fff;
}
/* Compact inline "was" price for tight cards (register selector, etc.) */
.pc-was { font-size: 1.05rem; font-weight: 700; color: #64748b; margin-right: 5px; text-decoration: line-through; text-decoration-color: #ef4444; }






/* Free Framework Card Header */
.free-frameworks .card-header {
    background: var(--free-gradient) !important;
    color: white;
}

.free-frameworks .badge.bg-light {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

/* Free Framework Badges */
.free-frameworks .badge.bg-success {
    background: var(--free-gradient) !important;
    border: none;
}

/* Free Framework Footer Button */
.free-frameworks .btn-success {
    background: var(--free-gradient) !important;
    border: none;
    transition: all 0.3s ease;
}

.free-frameworks .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

/* Generator Section Updates */
.bg-gradient.bg-primary {
    background: var(--free-gradient) !important;
}

.text-primary {
    color: var(--free-primary) !important;
}

.btn-primary {
    background: var(--free-gradient) !important;
    border: none !important;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(74,144,226,0.4);
}

/* Form Elements */
.form-control, .form-select {
    background: linear-gradient(145deg, rgba(74, 144, 226, 0.05), rgba(255, 255, 255, 0.95)) !important;
    border: 2px solid rgba(74, 144, 226, 0.1);
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--free-primary);
    box-shadow: 0 0 0 0.25rem rgba(74, 144, 226, 0.25);
}

/* Loading Spinner */
.spinner-border.text-primary {
    border-color: var(--free-primary);
    border-right-color: transparent;
}

/* Results Header - Success Gradient */
.card-header[style*="background: linear-gradient(135deg, #28a745, #20c997)"] {
    background: var(--success-gradient) !important;
}

/* Info Boxes in Results */
.text-primary {
    color: var(--free-primary) !important;
}

/* Premium Framework Styling (Keep Purple) */
.premium-frameworks .card-header {
    background: var(--premium-gradient) !important;
}

.premium-frameworks .badge {
    background: var(--premium-gradient) !important;
}

.premium-frameworks .btn {
    background: var(--premium-gradient) !important;
}

/* Upgrade Notice */
.upgrade-notice, 
.card[style*="background: linear-gradient(145deg, rgba(111, 66, 193, 0.1)"] {
    background: var(--premium-light) !important;
    border: 1px solid var(--premium-border) !important;
}

/* Hero Section Updates */
.hero-section.bg-gradient-primary {
    background: var(--free-gradient) !important;
}

/* Feature Icons */
.feature-icon.bg-primary {
    background: var(--free-gradient) !important;
}

.feature-icon.bg-success {
    background: var(--success-gradient) !important;
}

.feature-icon.bg-info {
    background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%) !important;
}

/* CTA Section */
.bg-primary {
    background: var(--free-gradient) !important;
}

/* Badge Updates */
.badge.bg-primary {
    background: var(--free-gradient) !important;
}

.badge.bg-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #868e96 100%) !important;
}

/* Additional Enhancements */
.gradient-text {
    background: var(--free-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

/* Hover Effects */
.card:hover {
    transform: translateY(-3px);
    transition: all 0.3s ease;
}

/* Button Enhancements */
.btn {
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

/* Copy Button Success State */
.copy-success {
    background: var(--success-gradient) !important;
    border: none !important;
}









/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Hero Section */
.hero-section {
    min-height: 0;
}

.hero-image {
    position: relative;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 0;
}

/* Feature Icons */
.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Forms */
.form-control, .form-select {
    border-radius: 8px;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 12px 24px;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.btn-primary {
    background: var(--free-gradient);
    border: none;
}

.btn-primary:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.btn-outline-primary:hover {
    transform: translateY(-1px);
}

/* Generated Prompt Output */
.prompt-output {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
    border-left: 4px solid var(--primary-color);
    max-height: 400px;
    overflow-y: auto;
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Framework Badge */
.badge {
    font-size: 0.75rem;
    padding: 4px 8px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        text-align: center;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .btn-lg {
        padding: 12px 20px;
        font-size: 1rem;
    }
}

/* Usage Counter */
.usage-counter {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 8px 16px;
    display: inline-block;
}

/* Premium Badge */
.premium-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4a 100%);
    color: #333;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Dashboard Styles */
.dashboard-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

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

.stat-card .card-body {
    padding: 2rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1;
}

/* Prompt History */
.prompt-item {
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.prompt-item:hover {
    background-color: #f8f9fa;
    border-left-color: var(--success-color);
}

.prompt-meta {
    font-size: 0.875rem;
    color: var(--secondary-color);
}

/* Analytics Charts */
.chart-container {
    position: relative;
    height: 300px;
    margin: 20px 0;
}

/* Error States */
.error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Pricing Tables */
.pricing-card {
    position: relative;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

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

.price-tag {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Footer */
footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: white !important;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus States */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    footer {
        display: none !important;
    }
    
    .prompt-output {
        background: white !important;
        border: 1px solid #000 !important;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-up {
    animation: slideUp 0.5s ease-out;
}

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

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .card {
        background-color: #2d3748;
        border-color: #4a5568;
    }
    
    .text-muted {
        color: #a0aec0 !important;
    }
}



/***************************************/
/* Professional Premium Tab Design - Replace the previous CSS */

/* Premium Tab Navigation */
.nav-pills {
    background: linear-gradient(145deg, #f8fafc, #ffffff);
    padding: 6px;
    border-radius: 14px;
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(10px);
}

.nav-pills .nav-link {
    border-radius: 10px;
    margin: 0 2px;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.025em;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: transparent;
    color: #64748b;
    border: none;
}

.nav-pills .nav-link:not(.active) {
    color: #64748b;
}

.nav-pills .nav-link:not(.active):hover {
    background: linear-gradient(145deg, #ffffff, #f1f5f9);
    color: #475569;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: 
        0 8px 32px rgba(99, 102, 241, 0.35),
        0 2px 8px rgba(99, 102, 241, 0.2);
}

.nav-pills .nav-link.active::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: inherit;
    pointer-events: none;
}

.nav-pills .nav-link i {
    margin-right: 10px;
    font-size: 1.1em;
    opacity: 0.9;
}

/* Premium Platform Selection */
.platform-selection {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.platform-selection .form-check {
    background: linear-gradient(145deg, #ffffff, #fafbfc);
    padding: 16px 20px;
    margin: 8px 0;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1.5px solid transparent;
    cursor: pointer;
    position: relative;
}

.platform-selection .form-check:hover {
    background: linear-gradient(145deg, #f8fafc, #ffffff);
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.platform-selection .form-check-input:checked + .form-check-label {
    color: #6366f1;
    font-weight: 600;
}

.platform-selection .form-check:has(.form-check-input:checked) {
    background: linear-gradient(145deg, #f0f4ff, #faf9ff);
    border-color: #6366f1;
    box-shadow: 
        0 4px 20px rgba(99, 102, 241, 0.12),
        0 1px 4px rgba(99, 102, 241, 0.08);
}

.platform-selection .form-check:has(.form-check-input:checked)::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #6366f1, #8b5cf6);
    border-radius: 0 4px 4px 0;
}

.platform-selection .form-check-label {
    cursor: pointer;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.platform-selection .form-check-label strong {
    color: #1e293b;
    font-weight: 700;
}

/* Premium Options Sections */
.options-section {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    position: relative;
}

.options-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #a855f7);
    border-radius: 12px 12px 0 0;
}

.options-section .form-label.fw-bold {
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.025em;
}

.options-section .form-label.small {
    color: #475569;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 6px;
    letter-spacing: 0.025em;
}

/* Premium Form Controls */
.form-select-sm, .form-control-sm {
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    padding: 10px 14px;
    transition: all 0.3s ease;
    background: linear-gradient(145deg, #ffffff, #fafbfc);
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.form-select-sm:focus, .form-control-sm:focus {
    border-color: #6366f1;
    box-shadow: 
        0 0 0 3px rgba(99, 102, 241, 0.1),
        0 1px 4px rgba(99, 102, 241, 0.1);
    background: #ffffff;
    outline: none;
}

.form-select-sm option {
    padding: 8px 12px;
    background: #ffffff;
    color: #374151;
}

/* Premium Generate Button */
#generateBtn-premium {
    background: linear-gradient(135deg, #4A90E2 0%, #2DD4BF 100%) !important;
    border: none !important;
    padding: 18px 36px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    letter-spacing: 0.025em !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 
        0 8px 32px rgba(99, 102, 241, 0.3),
        0 2px 8px rgba(99, 102, 241, 0.15) !important;
    position: relative !important;
    overflow: hidden !important;
    text-transform: uppercase !important;
    color: white !important;
}

#generateBtn-premium::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: left 0.6s ease;
}

#generateBtn-premium:hover::before {
    left: 100%;
}

#generateBtn-premium:hover {
    transform: translateY(-2px) !important;
    box-shadow: 
        0 12px 40px rgba(99, 102, 241, 0.4),
        0 4px 16px rgba(99, 102, 241, 0.2) !important;
}

#generateBtn-premium:active {
    transform: translateY(-1px) !important;
}

/* Tab Content Animation */
.tab-content {
    padding: 28px 0 20px 0;
}

.tab-pane {
    min-height: 240px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-pane.active {
    opacity: 1;
    transform: translateY(0);
}

/* Premium Input Fields */
#userPrompt-premium, #additionalContext-premium {
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 20px;
    background: linear-gradient(145deg, #ffffff, #fafbfc);
    transition: all 0.3s ease;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
}

#userPrompt-premium:focus, #additionalContext-premium:focus {
    border-color: #6366f1;
    box-shadow: 
        0 0 0 3px rgba(99, 102, 241, 0.1),
        0 2px 8px rgba(99, 102, 241, 0.08);
    background: #ffffff;
    outline: none;
}

#frameworkSelect-premium {
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 18px;
    background: linear-gradient(145deg, #ffffff, #fafbfc);
    font-weight: 500;
    font-size: 1rem;
}

#frameworkSelect-premium:focus {
    border-color: #6366f1;
    box-shadow: 
        0 0 0 3px rgba(99, 102, 241, 0.1),
        0 2px 8px rgba(99, 102, 241, 0.08);
    background: #ffffff;
    outline: none;
}

/* Premium Badge Enhancement */
.premium-badge {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-pills .nav-link {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .options-section {
        padding: 20px 16px;
    }
    
    #generateBtn-premium {
        padding: 16px 28px !important;
        font-size: 1rem !important;
    }
}

/* Subtle animations for premium feel */
@keyframes premium-glow {
    0%, 100% { box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3); }
    50% { box-shadow: 0 8px 32px rgba(139, 92, 246, 0.4); }
}

.premium-element {
    animation: premium-glow 3s ease-in-out infinite;
}

.char-counter {
    float: right;
    font-size: 12px;
    color: #888;
}




        .hero-section {
            background:
                radial-gradient(circle at 20% 50%, rgba(74, 144, 226, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(45, 212, 191, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
                linear-gradient(135deg, #fafbfc 0%, #ffffff 50%, #f8fafc 100%);
            padding: 60px 0 60px;
            position: relative;
            overflow: hidden;
        }

        .hero-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: 
                linear-gradient(90deg, transparent 0%, rgba(74, 144, 226, 0.02) 50%, transparent 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="%234A90E2" stroke-width="0.5" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
            pointer-events: none;
        }

        .hero-content {
            position: relative;
            z-index: 2;
        }

        .hero-badge {
            display: inline-block;
        }

        .badge-text {
            background: linear-gradient(135deg, rgba(74, 144, 226, 0.08), rgba(45, 212, 191, 0.08));
            color: #4A90E2;
            padding: 6px 16px;
            border-radius: 20px;
            font-size: 0.78rem;
            font-weight: 600;
            border: 1px solid rgba(74, 144, 226, 0.2);
            letter-spacing: 0.02em;
        }

        .gradient-text {
            /*background: linear-gradient(135deg, #4A90E2 0%, #2DD4BF 100%);*/
            background: linear-gradient(135deg, #4A90E2, #2DD4BF);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .stats-grid {
            display: flex;
            gap: 0;
            padding: 20px 0;
        }

        .stat-item {
            flex: 1;
            text-align: center;
            padding: 12px 0;
            border-right: 1px solid #e9ecef;
        }
        .stat-item:last-child { border-right: none; }
        .stat-item:first-child { padding-left: 0; text-align: left; }

        .stat-number {
            font-size: 1.55rem;
            font-weight: 700;
            color: #1a1a2e;
            line-height: 1;
        }

        .stat-label {
            font-size: 0.72rem;
            color: #9ca3af;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.4px;
            margin-top: 3px;
        }

        .cta-group {
            display: flex;
            gap: 16px;
            flex-wrap: wrap;
        }

        .btn {
            border-radius: 10px;
            padding: 13px 26px;
            font-weight: 600;
            font-size: 0.97rem;
            transition: all 0.3s ease;
            border-width: 1px;
        }

        .btn-primary {
            background: var(--free-gradient);
            border: none;
            color: white;
            box-shadow: 0 4px 15px rgba(74,144,226,0.3);
        }

        .btn-primary:hover {
            opacity: 0.92;
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(74,144,226,0.4);
        }

        .btn-outline-dark {
            color: #343a40;
            border-color: #343a40;
        }

        .btn-outline-dark:hover {
            background: #343a40;
            color: white;
            transform: translateY(-2px);
        }

        .trust-section {
            padding-top: 30px;
        }

        .trust-label {
            font-size: 0.85rem;
            color: #6c757d;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 16px;
        }

        .company-logos {
            display: flex;
            gap: 24px;
            flex-wrap: wrap;
        }

        .company-logo {
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(0, 0, 0, 0.05);
            border-radius: 8px;
            padding: 12px 20px;
            font-weight: 600;
            color: #6c757d;
            transition: all 0.3s ease;
        }

        .company-logo:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            color: #4A90E2;
        }

        /* Product Interface Styling */
        .product-interface {
            max-width: 500px;
            margin: 0 auto;
            position: relative;
        }

        .browser-window {
            background: white;
            border-radius: 12px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
            border: 1px solid #e9ecef;
            overflow: hidden;
        }

        .browser-header {
            background: #f8f9fa;
            padding: 16px 20px;
            border-bottom: 1px solid #e9ecef;
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .browser-controls {
            display: flex;
            gap: 8px;
        }

        .control-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
        }

        .control-dot.red { background: #ff5f57; }
        .control-dot.yellow { background: #ffbd2e; }
        .control-dot.green { background: #28ca42; }
        .control-dot.black { background: #36BFC9; }
        .control-dot.gray { background: #808080; }

        .browser-url {
            background: white;
            padding: 8px 16px;
            border-radius: 6px;
            font-size: 0.85rem;
            color: #6c757d;
            flex-grow: 1;
        }

        .interface-content {
            padding: 16px;
        }

        .interface-section {
            margin-bottom: 12px;
        }

        .interface-label {
            display: block;
            font-weight: 600;
            color: #6c757d;
            margin-bottom: 5px;
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }

        .interface-select {
            background: #f8f9fa;
            border: 1.5px solid #e9ecef;
            border-radius: 7px;
            padding: 8px 12px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: #343a40;
            font-weight: 500;
            font-size: 0.8rem;
        }

        .interface-input {
            background: #f8f9fa;
            border: 1.5px solid #e9ecef;
            border-radius: 7px;
            padding: 8px 12px;
        }

        .input-before {
            font-size: 0.68rem;
            color: #9ca3af;
            margin-bottom: 3px;
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }

        .input-text {
            color: #374151;
            font-weight: 500;
            font-size: 0.8rem;
        }

        .transformation-arrow {
            text-align: center;
            margin: 8px 0;
        }

        .arrow-icon {
            background: linear-gradient(135deg, #4A90E2 0%, #2DD4BF 100%);
            color: white;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 0.75rem;
        }

        .interface-output {
            background: linear-gradient(135deg, rgba(74, 144, 226, 0.05), rgba(45, 212, 191, 0.05));
            border: 1.5px solid rgba(74, 144, 226, 0.15);
            border-radius: 7px;
            padding: 10px 12px;
        }

        .output-line {
            margin-bottom: 5px;
            font-size: 0.78rem;
            color: #374151;
            line-height: 1.4;
        }

        .output-line:last-child {
            margin-bottom: 0;
        }

        .success-indicator {
            background: rgba(16, 185, 129, 0.08);
            color: #065f46;
            padding: 7px 12px;
            border-radius: 7px;
            border: 1px solid rgba(16, 185, 129, 0.2);
            display: flex;
            align-items: center;
            gap: 6px;
            font-weight: 600;
            font-size: 0.78rem;
            margin-top: 10px;
        }

        /* Floating Metrics */
        .floating-metrics {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            pointer-events: none;
        }

        .metric-card {
            position: absolute;
            background: white;
            border-radius: 10px;
            padding: 12px 16px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            border: 1px solid #e9ecef;
            display: flex;
            align-items: center;
            gap: 10px;
            backdrop-filter: blur(10px);
        }

        .metric-1 {
            top: 16px;
            right: 8px;
            animation: float 3s ease-in-out infinite;
        }

        .metric-2 {
            top: 38%;
            right: 4px;
            animation: float 3s ease-in-out infinite 1s;
        }

        .metric-3 {
            top: 68%;
            right: 8px;
            animation: float 3s ease-in-out infinite 2s;
        }
        
        .metric-icon {
            width: 32px;
            height: 32px;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 14px;
        }

        .metric-icon.success { background: #10b981; }
        .metric-icon.primary { background: #4A90E2; }
        .metric-icon.warning { background: #f59e0b; }

        .metric-value {
            font-weight: 700;
            color: #1a1a1a;
            font-size: 0.9rem;
        }

        .metric-label {
            font-size: 0.75rem;
            color: #6c757d;
        }

        /* Background Decorations */
        .bg-decoration {
            position: absolute;
            border-radius: 50%;
            opacity: 0.03;
            pointer-events: none;
        }

        .decoration-1 {
            width: 200px;
            height: 200px;
            background: linear-gradient(135deg, #4A90E2, #2DD4BF);
            top: 10%;
            right: 10%;
            animation: float 6s ease-in-out infinite;
        }

        .decoration-2 {
            width: 150px;
            height: 150px;
            background: linear-gradient(135deg, #8b5cf6, #ec4899);
            bottom: 20%;
            left: 5%;
            animation: float 8s ease-in-out infinite reverse;
        }

        .decoration-3 {
            width: 100px;
            height: 100px;
            background: linear-gradient(135deg, #f59e0b, #ef4444);
            top: 60%;
            right: 20%;
            animation: float 4s ease-in-out infinite;
        }

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

        @keyframes fadeFloat {
            0%, 100% { transform: translateY(0px); opacity: 0.8; }
            50% { transform: translateY(-8px); opacity: 1; }
        }

        /* Features Row — removed from page, kept for safety */
        .features-row { display: none; }

        .feature-card {
            text-align: center;
            padding: 30px 20px;
            transition: transform 0.3s ease;
        }
        .feature-card:hover { transform: translateY(-5px); }

        .feature-icon {
            width: 56px;
            height: 56px;
            background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(45, 212, 191, 0.1));
            border: 2px solid rgba(74, 144, 226, 0.2);
            border-radius: 12px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: #4A90E2;
            font-size: 22px;
            margin-bottom: 16px;
        }
        .feature-card h5 { color: #1a1a1a; font-weight: 700; margin-bottom: 10px; }
        .feature-card p { color: #6c757d; margin-bottom: 0; font-size: 0.9rem; }

        @media (max-width: 991px) {
            .floating-metrics { display: none; }
        }

        @media (max-width: 768px) {
            .hero-section { padding: 72px 0 52px; }
            .stat-number { font-size: 1.5rem; }
            .cta-group { flex-direction: column; }
            .company-logos { justify-content: center; }
        }



/* Premium Card Container */
.premium-card {
    border-radius: 24px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Premium Header */
.premium-header {
    position: relative;
    padding: 32px;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
}

/* Premium Header matching with primary*/
.premium-header-pm {
    position: relative;
    padding: 32px;
    background: linear-gradient(135deg, #4A90E2 0%, #2DD4BF 100%)
}

.premium-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.9) 0%, rgba(236, 72, 153, 0.9) 100%);
    z-index: 1;
}

.premium-gradient-pm {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #4A90E2 0%, #2DD4BF 100%);
    z-index: 1;
}

.premium-content {
    position: relative;
    z-index: 2;
}

.premium-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.premium-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75);
}

/* Free Header */
.free-header {
    position: relative;
    padding: 24px 32px;
    background: var(--free-gradient);
}

.free-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--free-gradient);
    z-index: 1;
}

.free-content {
    position: relative;
    z-index: 2;
}

.free-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.free-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 5px 13px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Premium Tabs */
.premium-tabs {
    background: #f8fafc;
    padding: 24px 32px 0;
}

.premium-tabs .nav-pills {
    background: #eef1f6;
    padding: 5px;
    border-radius: 14px;
    box-shadow: inset 0 1px 2px rgba(16, 24, 40, 0.05);
    border: none;
    gap: 4px;
}

.premium-tabs .nav-link {
    border-radius: 10px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 0.92rem;
    color: #64748b;
    background: transparent;
    border: none;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.premium-tabs .nav-link i {
    font-size: 0.95em;
    opacity: 0.85;
}

.premium-tabs .nav-link:hover {
    color: #334155;
    background: rgba(255, 255, 255, 0.65);
}

.premium-tabs .nav-link.active {
    background: linear-gradient(135deg, #4A90E2 0%, #2DD4BF 100%);
    color: #ffffff;
    box-shadow: 0 6px 16px -4px rgba(74, 144, 226, 0.5);
    transform: translateY(-1px);
}

.premium-tabs .nav-link.active i { opacity: 1; }


.tab-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-tab { background: #4A90E2; }
.image-tab { background: #4A90E2; }
.video-tab { background: #4A90E2; }

/* Generator Content */
.generator-content {
    padding: 32px;
    background: #f8fafc;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.generator-content .section-card {
    flex: 1;
}

/* Section Cards */
.section-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    height: 100%;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}

.section-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 12px;
    font-size: 14px;
}

.text-platform { background: #4A90E2; }
.text-options { background: #6366f1; }
.image-platform { background: #10b981; }
.image-options { background: #059669; }
.video-platform { background: #f59e0b; }
.video-options { background: #d97706; }

.section-title {
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    font-size: 16px;
}

/* Platform Selection */
.platform-selection {
    margin-top: 10px;
}

.platform-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.platform-radio {
    display: none;
}

.platform-option {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 7px 10px;
    background: #f8fafc;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.platform-option:hover {
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.platform-radio:checked + .platform-option {
    background: rgba(74, 144, 226, 0.10);
    border-color: #4A90E2;
}

.platform-badge {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 11px;
    color: white;
    margin-right: 9px;
    flex-shrink: 0;
}

/* Platform badge colors — scoped to .platform-badge to prevent Bootstrap conflicts */
.platform-badge.universal  { background: #6b7280; }
/* Text platforms */
.platform-badge.chatgpt    { background: #10b981; }
.platform-badge.claude     { background: #cc785c; }
.platform-badge.gemini     { background: #4285f4; }
.platform-badge.perplexity { background: #8b5cf6; }
.platform-badge.grok       { background: #111827; }
.platform-badge.copilot    { background: #0078d4; }
.platform-badge.deepseek   { background: #1a56db; }
.platform-badge.meta       { background: #0866ff; }
.platform-badge.mistral    { background: #f97316; }
/* Image platforms */
.platform-badge.dalle      { background: #10b981; }
.platform-badge.midjourney { background: #3b82f6; }
.platform-badge.flux       { background: #1e293b; }
.platform-badge.stable     { background: #7c3aed; }
.platform-badge.firefly    { background: #ef4444; }
.platform-badge.ideogram   { background: #6366f1; }
.platform-badge.leonardo   { background: #8b5cf6; }
.platform-badge.imagen     { background: #4285f4; }
.platform-badge.kling      { background: #06b6d4; }
/* Video platforms */
.platform-badge.sora       { background: #10b981; }
.platform-badge.runway     { background: #374151; }
.platform-badge.veo        { background: #4285f4; }
.platform-badge.hailuo     { background: #2563eb; }
.platform-badge.pika       { background: #a855f7; }
.platform-badge.dream      { background: #8b5cf6; }

.platform-info {
    flex: 1;
    min-width: 0;
}

.platform-name {
    font-weight: 600;
    color: #1e293b;
    display: block;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Descriptions hidden for a denser platform picker (names are self-explanatory);
   the text stays in the DOM so nothing functional is lost. */
.platform-desc {
    display: none;
}

/* Single column on narrow screens where the card is full-width */
@media (max-width: 575px) {
    .platform-options { grid-template-columns: 1fr; }
}

/* Options Grid */
.options-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Image & video have ~6 options — lay them out in TWO columns so the options card
   height roughly matches its platform card (text keeps a single column). */
#image-prompt .options-grid,
#video-prompt .options-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
    align-content: start;
}

@media (max-width: 575px) {
    #image-prompt .options-grid,
    #video-prompt .options-grid { grid-template-columns: 1fr; }
}

/* Full-width option (e.g. Negative Prompt) spans both columns so its input takes the
   whole row and the hint note sits directly beneath it. */
#image-prompt .options-grid .option-item--full,
#video-prompt .options-grid .option-item--full { grid-column: 1 / -1; }
/* Inline hint appended to an option label, e.g. "Negative Prompt (…)" */
.option-label .option-hint { font-weight: 400; color: #94a3b8; font-size: 12px; }

.option-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.option-label {
    font-weight: 600;
    color: #374151;
    font-size: 13px;
    margin: 0;
}

.clean-select, .clean-input {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 9px 11px;
    font-size: 13px;
    transition: all 0.2s ease;
    width: 100%;
}

.clean-select:focus, .clean-input:focus {
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15);
    outline: none;
}

/* Common Fields */
.common-fields {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #e2e8f0;
}

.main-input-section {
    margin-bottom: 24px;
}

.main-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
    display: block;
}

.secondary-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    display: block;
}

.main-textarea {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 15px;
    width: 100%;
    resize: vertical;
    transition: all 0.2s ease;
    min-height: 96px;
}

.main-textarea:focus {
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15);
    outline: none;
}

.input-hint {
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 10;
}

.hint-text {
    background: #f3f4f6;
    color: #6b7280;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.main-select {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 11px 12px;
    font-size: 14px;
    width: 100%;
    transition: all 0.2s ease;
}

.main-select:focus {
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15);
    outline: none;
}

/* NOTE: do NOT set font-size/weight on .main-select option/optgroup — Chrome
   leaks <optgroup> font styling onto the CLOSED control, which made the
   Framework select (it has optgroups) render bold/larger than the Domain one.
   Let the closed control inherit .main-select's own 14px / normal weight. */

/* Framework selects use <optgroup>s — pin padding/size/weight/bg on the closed
   control so they match the Domain dropdown exactly. (An earlier #frameworkSelect-premium
   rule set font-size:1rem + a gradient bg + 14px padding; re-pin them all here so the
   Framework select renders identically to the plain .main-select Domain dropdown.) */
#frameworkSelect-premium,
#frameworkSelect {
    padding: 11px 12px;
    font-weight: 400;
    font-size: 14px;
    font-family: inherit;
    background: #ffffff;
}

.secondary-textarea {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    width: 100%;
    resize: vertical;
    transition: all 0.2s ease;
    min-height: 60px;
}

.secondary-textarea:focus {
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15);
    outline: none;
}

.context-section {
    margin-bottom: 24px;
}

.optional-badge {
    background: #f3f4f6;
    color: #6b7280;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 8px;
}

/* Usage Notice */
/* ── Usage strip ──────────────────────────────────────────────────────────────
   A status line, not an alert.

   The old version washed the whole strip in tinted blue and set BOTH counts in
   bold on top of a 600-weight span — so every word carried the same emphasis and
   the eye had nothing to land on. Weight now sits on the numbers alone, which are
   the only part anyone is actually reading; the words around them recede.

   Running out of a free allowance is an expected state with an offer attached, not
   an error the user caused, so the exhausted variant below stays on a neutral
   surface. The previous amber fill with brown-red text read as a failure. */
.usage-notice {
    background: #fff;
    border: 1px solid #e8ecf2;
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 24px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.usage-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.usage-info {
    display: flex;
    align-items: center;
    gap: 13px;
}

.usage-icon {
    width: 36px;
    height: 36px;
    background: rgba(74, 144, 226, 0.10);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--free-primary);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.usage-count {
    display: block;
    font-size: 14.5px;
    font-weight: 500;
    color: #64748b;
    letter-spacing: -0.1px;
    /* The numbers change on every generation; without this they shift width and the
       whole line twitches. */
    font-variant-numeric: tabular-nums;
}

.usage-count strong {
    font-weight: 700;
    color: #0f172a;
}

.usage-sep {
    color: #cbd5e1;
    margin: 0 7px;
}

.usage-desc {
    color: #94a3b8;
    font-size: 12.5px;
    margin-top: 3px;
}

/* Out of quota. Same shape, one restrained accent — the icon and the copy already
   changed, so the surface does not need to shout as well. */
.usage-notice-out {
    background: #fbfcfd;
    border-color: #e5e9f0;
    border-left: 3px solid #f0b429;
}

.usage-notice-out .usage-icon {
    background: #f1f4f8;
    color: #64748b;
}

/* Blocking notice shown when a generation is refused. Was a yellow panel with
   brown-red type set inline on the element; the only saturated thing here now is
   the upgrade button, which is the one element meant to be clicked. */
.limit-notice {
    background: #fff;
    border: 1px solid #e8ecf2;
    border-left: 3px solid #f0b429;
    border-radius: 16px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.limit-notice-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.limit-notice-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f1f4f8;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.05rem;
}

.limit-notice-title {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.98rem;
    letter-spacing: -0.1px;
}

.limit-notice-msg {
    color: #64748b;
    font-size: 0.86rem;
    margin-top: 2px;
}

.usage-btn {
    background: var(--free-gradient);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.usage-btn:hover {
    filter: brightness(1.08);
    color: white;
    transform: translateY(-1px);
}

/* Generate Section */
.generate-section {
    text-align: center;
    margin-bottom: 32px;
}

/* Offset so 'scroll to start of results' clears the sticky navbar (~56px) */
#promptResults {
    scroll-margin-top: 70px;
}

.generate-btn {
    background: var(--free-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px -6px rgba(74, 144, 226, 0.45);
}

.premium-generate {
    background: linear-gradient(135deg, #4A90E2 0%, #2DD4BF 100%);
    box-shadow: 0 10px 15px -3px rgba(74, 144, 226, 0.4);
}

.free-generate {
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 10px 15px -3px rgba(102, 126, 234, 0.4);
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(74, 144, 226, 0.4);
}

.btn-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.generate-desc {
    color: #6b7280;
    font-size: 14px;
    margin-top: 8px;
}

/* Upgrade Notice */
.upgrade-notice {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 20px;
}

.upgrade-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.upgrade-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.upgrade-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.upgrade-title {
    font-weight: 700;
    color: #1e293b;
    font-size: 16px;
}

.upgrade-desc {
    color: #64748b;
    font-size: 14px;
    margin-top: 2px;
}

.upgrade-btn {
    background: var(--free-gradient);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(139, 92, 246, 0.4);
}

.upgrade-btn:hover {
    opacity: 0.92;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(74,144,226,0.35);
}

/* Glass Effect */
.glass {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.gradient-text {
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    background: linear-gradient(135deg, #4A90E2, #2DD4BF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-premium {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.scale-in {
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.interactive-hover {
    transition: all 0.3s ease;
}

.interactive-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.premium-feature {
    position: relative;
    overflow: hidden;
}

.premium-badge-glow {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 5px rgba(139, 92, 246, 0.5);
    }
    to {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.8);
    }
}

.border-gradient-premium {
    border: 2px solid;
    border-image: linear-gradient(135deg, #4A90E2, #2DD4BF) 1;
    border-radius: 12px;
}

.rounded-xl {
    border-radius: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .premium-header, .free-header {
        padding: 24px;
    }
    
    .generator-content {
        padding: 24px;
    }
    
    .section-card {
        padding: 20px;
    }
    
    .usage-content, .upgrade-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .generate-btn {
        width: 100%;
        justify-content: center;
    }
    
    .premium-tabs .nav-link {
        padding: 12px 16px;
        font-size: 14px;
    }

    .main-label {
        font-size: 18px;
    }

    .secondary-label {
        font-size: 14px;
    }
}

/* Phones: compact 3-up tab control — trim padding, shorten labels to Text/Image/Video */
@media (max-width: 575px) {
    .premium-tabs { padding: 16px 12px 0; }
    .premium-tabs .nav-pills { gap: 3px; padding: 4px; }
    .premium-tabs .nav-link { padding: 9px 4px; font-size: 0.82rem; gap: 5px; }
    .premium-tabs .nav-link i { font-size: 0.9em; }
    .premium-tabs .tab-suffix { display: none; }
}

/* ============================================================
   PRESETS — saved platform + option combinations
   ============================================================ */

/* Bar */
.preset-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    margin-bottom: 16px;
    background: #f8fafc;
    border: 1px solid #eef0f3;
    border-radius: 10px;
    gap: 12px;
    flex-wrap: wrap;
}

/* Variant: preset bar sitting inline on the options-card header row (right corner) —
   strip the panel styling so it's just the label + dropdown next to the heading. */
.section-header .preset-bar--header {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    gap: 8px 10px;
    flex: 0 1 auto;
    flex-wrap: wrap;
    justify-content: flex-start;
    min-width: 0;
}
.preset-bar--header .preset-bar-left { flex: 0 1 auto; gap: 7px; min-width: 0; }
.preset-bar--header .preset-label { font-size: 11px; }
.preset-bar--header .preset-dropdown { height: 32px; flex: 0 1 190px; max-width: 190px; min-width: 92px; font-size: 12px; }
.preset-bar--header .preset-bar-right { gap: 6px; }

/* Icon + title grouped so the header is two items: title-group (left) + preset bar.
   space-between → bar at the right corner on the same line; when it wraps, the lone
   bar falls to flex-start (left/start of the new line). */
.section-header-title-group { display: flex; align-items: center; min-width: 0; }
.section-header:has(.preset-bar--header) {
    justify-content: space-between;
    flex-wrap: wrap;
    row-gap: 10px;
}

.preset-bar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.preset-label {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.preset-dropdown {
    flex: 1;
    max-width: 300px;
    height: 36px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 0 10px;
    font-size: 13px;
    color: #374151;
    background: #fff;
    cursor: pointer;
    outline: none;
}

.preset-dropdown:focus {
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15);
}

.preset-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.preset-save-btn {
    background: var(--free-gradient);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.preset-save-btn:hover { opacity: 0.9; }

.preset-manage-btn {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s;
    flex-shrink: 0;
}

.preset-manage-btn:hover { background: #e2e8f0; }

/* Modal overlay */
.preset-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
}

.preset-modal {
    background: #fff;
    border-radius: 14px;
    width: 420px;
    max-width: 100%;
    box-shadow: 0 24px 64px rgba(0,0,0,0.18);
    overflow: hidden;
}

.preset-modal-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.preset-modal-hdr h6 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

.preset-modal-x {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 14px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    line-height: 1;
}

.preset-modal-x:hover { background: #f1f5f9; color: #475569; }

.preset-modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.preset-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.preset-field input[type="text"] {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 14px;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.preset-field input[type="text"]:focus {
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15);
}

.preset-check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    user-select: none;
}

.preset-check-row input[type="checkbox"] {
    width: 15px;
    height: 15px;
    cursor: pointer;
    flex-shrink: 0;
}

.preset-hint {
    margin: 0;
    font-size: 12px;
    color: #94a3b8;
}

.preset-modal-ftr {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.preset-btn-pri {
    background: var(--free-gradient);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.preset-btn-pri:hover:not(:disabled) { opacity: 0.9; }
.preset-btn-pri:disabled { opacity: 0.55; cursor: not-allowed; }

.preset-btn-sec {
    background: #fff;
    color: #475569;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s;
}

.preset-btn-sec:hover { background: #f1f5f9; }

/* Manage list */
.preset-mgr-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.preset-mgr-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.preset-mgr-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preset-star {
    color: #f59e0b;
    font-size: 14px;
    flex-shrink: 0;
    transition: opacity 0.15s;
}

.preset-mgr-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.preset-act-btn {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.preset-act-btn:hover { background: #f1f5f9; }

.preset-act-del:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
}


/* ── Mega dropdown nav ───────────────────────────────────────────── */
.mega-dropdown {
    min-width: 720px;
    padding: 10px !important;
    border: none !important;
    border-radius: 14px !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.13) !important;
    left: 50%;
    transform: translateX(-50%);
    top: calc(100% + 6px) !important;
}
.mega-inner {
    display: flex;
    gap: 6px;
}
.mega-col {
    flex: 1;
    padding: 8px 10px;
}
.mega-col + .mega-col {
    border-left: 1px solid #f0f0f0;
    padding-left: 12px;
}
.mega-col-header {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    color: #9ca3af;
    padding: 4px 8px 8px;
}
.mega-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 7px;
    text-decoration: none !important;
    color: #374151 !important;
    transition: background 0.13s;
    white-space: nowrap;
}
.mega-item:hover {
    background: #f5f7ff;
    color: #1a1a2e !important;
}
.mega-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
}
.mega-item-title {
    font-size: 0.83rem;
    font-weight: 600;
    line-height: 1.2;
    color: #111827;
}
.mega-item-desc {
    font-size: 0.7rem;
    color: #9ca3af;
    line-height: 1.2;
    margin-top: 1px;
}
@media (max-width: 991px) {
    .mega-dropdown {
        min-width: 100%;
        transform: none;
        left: 0;
        border-radius: 8px !important;
    }
    .mega-inner { flex-direction: column; }
    .mega-col + .mega-col { border-left: none; border-top: 1px solid #f0f0f0; padding-left: 4px; }
}

/* ── User nav dropdown ──────────────────────────────────────────── */
.user-nav-trigger {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 4px 10px !important;
    border-radius: 30px;
    transition: background 0.15s;
}
.user-nav-trigger:hover {
    background: rgba(255,255,255,0.12) !important;
}
.user-nav-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.22);
    border: 1.5px solid rgba(255,255,255,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    letter-spacing: 0;
}
.user-nav-name {
    font-size: 0.88rem;
    font-weight: 600;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.user-dropdown {
    min-width: 250px;
    padding: 0 !important;
    border: none !important;
    border-radius: 14px !important;
    box-shadow: 0 14px 44px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.06) !important;
    overflow: hidden;
    right: 0;
    left: auto;
    margin-top: 8px !important;
}
.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 16px 14px;
    background: linear-gradient(135deg, #f8f9ff 0%, #eef2ff 100%);
    border-bottom: 1px solid #ececf5;
}
.user-dropdown-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4A90E2, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(74,144,226,0.32);
}
.user-dropdown-avatar.udav-premium {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 3px 10px rgba(245,158,11,0.32);
}
.user-dropdown-avatar.udav-team {
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    box-shadow: 0 3px 10px rgba(124,58,237,0.32);
}
.user-dropdown-info {
    flex: 1;
    min-width: 0;
}
.user-dropdown-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.user-dropdown-email {
    font-size: 0.71rem;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 6px;
}
.user-plan-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.63rem;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.user-plan-freemium { background: #f3f4f6; color: #6b7280; }
.user-plan-premium  { background: linear-gradient(90deg,#fef3c7,#fde68a); color: #92400e; }
.user-plan-team     { background: linear-gradient(90deg,#ede9fe,#ddd6fe); color: #5b21b6; }
.user-dropdown-body {
    padding: 6px 0;
}
.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    text-decoration: none !important;
    color: #374151 !important;
    font-size: 0.84rem;
    font-weight: 500;
    transition: background 0.12s;
    cursor: pointer;
}
.user-dropdown-item:hover {
    background: #f5f7ff;
    color: #1a1a2e !important;
}
.udi-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.73rem;
    color: #6b7280;
    flex-shrink: 0;
    transition: background 0.12s, color 0.12s;
}
.user-dropdown-item:hover .udi-icon {
    background: #e0e7ff;
    color: #4338ca;
}
.user-dropdown-divider {
    height: 1px;
    background: #f0f2f5;
    margin: 4px 0;
}
.user-dropdown-logout { color: #dc2626 !important; }
.user-dropdown-logout .udi-icon { background: #fef2f2; color: #dc2626; }
.user-dropdown-logout:hover { background: #fff5f5 !important; color: #b91c1c !important; }
.user-dropdown-logout:hover .udi-icon { background: #fecaca; color: #b91c1c; }

.nav-db-btn {
    display: inline-block;
    padding: 5px 16px;
    border-radius: 20px;
    border: 1.5px solid rgba(255,255,255,0.35);
    color: rgba(255,255,255,0.88) !important;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    white-space: nowrap;
}
.nav-db-btn:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.65);
    color: #fff !important;
}

/* ══════════════════════════════════════════════════════
   DASHBOARD — shared design system
   ══════════════════════════════════════════════════════ */

/* ── Page background ─────────────────────────────────── */
.db-layout {
    background: linear-gradient(160deg,#f5f7ff 0%,#eef2fb 55%,#f0f4ff 100%);
    min-height: calc(100vh - 56px);
    padding-top: 28px !important;
    padding-bottom: 48px !important;
}

/* ── Sidebar ──────────────────────────────────────────── */
.db-sidebar-wrap {
    position: sticky;
    top: 72px;
    align-self: flex-start;
}
.db-sidebar-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 20px rgba(59,130,246,0.07),0 1px 4px rgba(0,0,0,0.05);
    overflow: hidden;
}
.db-sidebar-user {
    padding: 24px 20px 18px;
    background: linear-gradient(160deg,#f5f7ff 0%,#eef2ff 100%);
    border-bottom: 1.5px solid #f0f2f8;
    text-align: center;
}
.db-sidebar-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}
.db-sidebar-avatar.plan-freemium { background: linear-gradient(135deg,#4A90E2,#6366f1); box-shadow: 0 4px 14px rgba(74,144,226,0.3); }
.db-sidebar-avatar.plan-premium  { background: linear-gradient(135deg,#f59e0b,#d97706); box-shadow: 0 4px 14px rgba(245,158,11,0.3); }
.db-sidebar-avatar.plan-team     { background: linear-gradient(135deg,#7c3aed,#5b21b6); box-shadow: 0 4px 14px rgba(124,58,237,0.3); }
.db-sidebar-name { font-size: 0.93rem; font-weight: 700; color: #111827; margin-bottom: 2px; line-height: 1.3; }
.db-sidebar-email { font-size: 0.72rem; color: #9ca3af; margin-bottom: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 186px; margin-left: auto; margin-right: auto; }
.db-plan-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.db-plan-pill.plan-freemium { background: #f3f4f6; color: #6b7280; }
.db-plan-pill.plan-premium  { background: linear-gradient(90deg,#fef3c7,#fde68a); color: #92400e; }
.db-plan-pill.plan-team     { background: linear-gradient(90deg,#ede9fe,#ddd6fe); color: #5b21b6; }

.db-sidebar-nav { padding: 10px 12px 4px; }
.db-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 0.86rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none !important;
    transition: background .13s,color .13s;
    margin-bottom: 2px;
}
.db-nav-link:hover { background: #f5f7ff; color: #3b82f6; }
.db-nav-link.active { background: #eff6ff; color: #3b82f6; font-weight: 700; }
.db-nav-icon {
    width: 30px; height: 30px;
    border-radius: 8px;
    background: #f3f4f6;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.72rem; color: #9ca3af;
    flex-shrink: 0;
    transition: background .13s,color .13s;
}
.db-nav-link:hover .db-nav-icon { background: #e0e7ff; color: #4338ca; }
.db-nav-link.active .db-nav-icon { background: #3b82f6; color: #fff; }
.db-nav-link.disabled { opacity: 0.45; pointer-events: none; color: #9ca3af; }
.db-nav-link.db-nav-logout { color: #dc2626; }
.db-nav-link.db-nav-logout .db-nav-icon { background: #fef2f2; color: #dc2626; }
.db-nav-link.db-nav-logout:hover { background: #fff5f5; color: #b91c1c; }
.db-nav-link.db-nav-logout:hover .db-nav-icon { background: #fecaca; color: #b91c1c; }
.db-nav-divider { height: 1px; background: #f0f2f8; margin: 8px 2px; }

/* Mobile sidebar toggle — hidden on desktop, shown < 768px */
.db-sidebar-toggle {
    display: none;
    width: calc(100% - 24px);
    margin: 10px 12px 4px;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    background: var(--free-light);
    color: var(--free-primary);
    border: 1px solid var(--free-border);
    border-radius: 10px;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
}
.db-toggle-caret { transition: transform .2s ease; font-size: 0.72rem; }

.db-sidebar-cta {
    margin: 4px 12px 12px;
    padding: 14px;
    background: linear-gradient(135deg,#eff6ff 0%,#e0e7ff 100%);
    border-radius: 12px;
    text-align: center;
}
.db-sidebar-cta-title { font-size: 0.8rem; font-weight: 700; color: #1e40af; margin-bottom: 3px; }
.db-sidebar-cta-desc  { font-size: 0.72rem; color: #4b6cb7; line-height: 1.45; margin-bottom: 10px; }
.db-sidebar-cta-btn {
    display: block;
    background: var(--free-gradient);
    color: #fff !important;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: opacity .15s,transform .15s;
}
.db-sidebar-cta-btn:hover { opacity: 0.9; transform: translateY(-1px); }

/* ── Cards ────────────────────────────────────────────── */
.db-layout .card {
    border: none !important;
    border-radius: 16px !important;
    box-shadow: var(--shadow-card) !important;
    overflow: hidden;
}
.db-layout .card-header {
    background: #fff !important;
    border-bottom: 1.5px solid #f0f2f8 !important;
    padding: 16px 20px !important;
    border-radius: 0 !important;
}
.db-layout .card-header h5,
.db-layout .card-header h6 { font-weight: 700 !important; color: #111827 !important; font-size: 0.92rem !important; margin: 0 !important; }
.db-layout .card-body { padding: 20px !important; }
.db-layout .card-footer { background: #fafbff !important; border-top: 1.5px solid #f0f2f8 !important; padding: 14px 20px !important; }

/* ── Stat tiles ───────────────────────────────────────── */
.db-stat {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
}
.db-stat-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.db-stat-icon.c-blue   { background:#eff6ff; color:#3b82f6; }
.db-stat-icon.c-green  { background:#f0fdf4; color:#22c55e; }
.db-stat-icon.c-purple { background:#faf5ff; color:#8b5cf6; }
.db-stat-icon.c-amber  { background:#fffbeb; color:#f59e0b; }
.db-stat-icon.c-teal   { background:#f0fdfa; color:#14b8a6; }
.db-stat-icon.c-rose   { background:#fff1f2; color:#f43f5e; }
.db-stat-body { flex: 1; min-width: 0; }
.db-stat-value { font-size: 1.6rem; font-weight: 800; color: #111827; line-height: 1.1; letter-spacing: -0.5px; }
.db-stat-label { font-size: 0.72rem; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; margin-top: 3px; }

/* ── Page header ──────────────────────────────────────── */
.db-page-hdr { margin-bottom: 24px; }
.db-page-hdr h1,.db-page-hdr h2 { font-size: 1.45rem !important; font-weight: 800 !important; color: #111827 !important; margin-bottom: 4px !important; line-height: 1.2 !important; }
.db-page-hdr p { font-size: 0.84rem; color: #9ca3af; margin: 0; }

/* ── Forms ────────────────────────────────────────────── */
.db-layout .form-control,
.db-layout .form-select {
    border: 1.5px solid #e8ecf2 !important;
    border-radius: 10px !important;
    background: #f9fafc !important;
    font-size: 0.87rem !important;
    color: #374151 !important;
    padding: 9px 13px !important;
    transition: border-color .15s,box-shadow .15s,background .15s;
}
.db-layout .form-control:focus,
.db-layout .form-select:focus {
    outline: 0 !important;
    border-color: #4A90E2 !important;
    background: #fff !important;
    box-shadow: 0 0 0 3.5px rgba(74,144,226,0.13) !important;
}
.db-layout .form-control:disabled,
.db-layout .form-select:disabled { opacity: 0.6; }
.db-layout .form-label { font-size: 0.8rem; font-weight: 600; color: #374151; margin-bottom: 5px; }
.db-layout .form-text  { font-size: 0.74rem; color: #9ca3af !important; margin-top: 4px; }
.db-layout .input-group-text {
    background: #f9fafc !important;
    border: 1.5px solid #e8ecf2 !important;
    border-right: none !important;
    border-radius: 10px 0 0 10px !important;
    color: #9ca3af;
}
.db-layout .input-group .form-control { border-radius: 0 10px 10px 0 !important; }
.db-layout .input-group .form-control:focus { z-index: 1; }

/* ── Buttons ──────────────────────────────────────────── */
.db-layout .btn {
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 0.86rem !important;
    padding: 9px 18px !important;
    transition: opacity .15s,transform .15s,box-shadow .15s !important;
    line-height: 1.4 !important;
}
.db-layout .btn-sm { padding: 6px 12px !important; font-size: 0.79rem !important; }
.db-layout .btn-lg { padding: 12px 24px !important; font-size: 0.95rem !important; }
.db-layout .btn-primary {
    background: var(--free-gradient) !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(74,144,226,0.25) !important;
    color: #fff !important;
}
.db-layout .btn-primary:hover { opacity: 0.92 !important; transform: translateY(-1px) !important; }
.db-layout .btn-primary:active { transform: none !important; }
.db-layout .btn-outline-primary { border: 1.5px solid #4A90E2 !important; color: #3b82f6 !important; background: transparent !important; }
.db-layout .btn-outline-primary:hover { background: #eff6ff !important; color: #2563eb !important; }
.db-layout .btn-success { background: linear-gradient(135deg,#22c55e 0%,#16a34a 100%) !important; border: none !important; color: #fff !important; }
.db-layout .btn-danger  { background: #dc2626 !important; border: none !important; color: #fff !important; }
.db-layout .btn-danger:hover { background: #b91c1c !important; }
.db-layout .btn-outline-danger { border: 1.5px solid #fca5a5 !important; color: #dc2626 !important; background: transparent !important; }
.db-layout .btn-outline-danger:hover { background: #fef2f2 !important; border-color: #dc2626 !important; }
.db-layout .btn-outline-secondary { border: 1.5px solid #e8ecf2 !important; color: #6b7280 !important; background: transparent !important; }
.db-layout .btn-outline-secondary:hover { background: #f9fafc !important; }
.db-layout .btn-secondary { background: #f3f4f6 !important; border: none !important; color: #374151 !important; }

/* ── Tables ───────────────────────────────────────────── */
.db-layout .table { font-size: 0.85rem; border-collapse: separate; border-spacing: 0; }
.db-layout .table th {
    font-weight: 700; font-size: 0.7rem; text-transform: uppercase;
    letter-spacing: 0.5px; color: #9ca3af !important;
    border-bottom: 1.5px solid #f0f2f8 !important; border-top: none !important;
    padding: 10px 16px !important; background: #fafbff; white-space: nowrap;
}
.db-layout .table td {
    padding: 12px 16px !important; vertical-align: middle !important;
    border-bottom: 1px solid #f5f7ff !important; border-top: none !important; color: #374151;
}
.db-layout .table tbody tr:last-child td { border-bottom: none !important; }
.db-layout .table-hover tbody tr:hover td { background: #f9fbff !important; }

/* ── Badges ───────────────────────────────────────────── */
.db-layout .badge { font-size: 0.68rem !important; font-weight: 700 !important; padding: 4px 9px !important; border-radius: 20px !important; letter-spacing: 0.2px; }
.db-layout .badge.bg-primary   { background: #eff6ff !important; color: #3b82f6 !important; }
.db-layout .badge.bg-success   { background: #f0fdf4 !important; color: #16a34a !important; }
.db-layout .badge.bg-warning   { background: #fffbeb !important; color: #d97706 !important; }
.db-layout .badge.bg-warning.text-dark { color: #92400e !important; }
.db-layout .badge.bg-danger    { background: #fef2f2 !important; color: #dc2626 !important; }
.db-layout .badge.bg-secondary { background: #f3f4f6 !important; color: #6b7280 !important; }
.db-layout .badge.bg-info      { background: #f0f9ff !important; color: #0284c7 !important; }

/* ── Alerts ───────────────────────────────────────────── */
.db-layout .alert { border-radius: 12px !important; border: none !important; font-size: 0.85rem !important; }
.db-layout .alert-info    { background: #f0f9ff !important; color: #075985 !important; }
.db-layout .alert-warning { background: #fffbeb !important; color: #92400e !important; }
.db-layout .alert-danger  { background: #fef2f2 !important; color: #991b1b !important; }
.db-layout .alert-success { background: #f0fdf4 !important; color: #166534 !important; }

/* ── Progress ─────────────────────────────────────────── */
.db-layout .progress { background: #f0f2f8 !important; border-radius: 6px !important; }
.db-layout .progress-bar { border-radius: 6px !important; }

/* ── Modals ───────────────────────────────────────────── */
.db-layout .modal-content { border: none !important; border-radius: 20px !important; box-shadow: 0 20px 60px rgba(0,0,0,0.14) !important; overflow: hidden; }
.db-layout .modal-header  { border-bottom: 1.5px solid #f0f2f8 !important; padding: 18px 24px !important; }
.db-layout .modal-header .modal-title { font-weight: 700 !important; font-size: 1rem !important; }
.db-layout .modal-body    { padding: 20px 24px !important; }
.db-layout .modal-footer  { border-top: 1.5px solid #f0f2f8 !important; padding: 14px 24px !important; }

/* ── Misc ─────────────────────────────────────────────── */
.db-layout hr { border-color: #f0f2f8; }
.db-layout .text-muted { color: #9ca3af !important; }
.db-layout .upgrade-notice {
    background: linear-gradient(135deg,rgba(59,130,246,0.07) 0%,rgba(99,102,241,0.07) 100%) !important;
    border: 1.5px solid rgba(59,130,246,0.16) !important;
    border-radius: 16px !important;
}
@media (max-width: 767px) {
    .db-layout { padding-top: 16px !important; padding-bottom: 32px !important; }
    .db-sidebar-wrap { position: static; top: 0; margin-bottom: 16px; }

    /* Compact the big centered user block into a slim horizontal bar */
    .db-sidebar-user {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 12px;
        padding: 12px 14px;
    }
    .db-sidebar-user .db-sidebar-avatar { width: 42px; height: 42px; font-size: 1rem; margin: 0; flex-shrink: 0; }
    .db-sidebar-user .db-sidebar-name { font-size: 0.9rem; margin: 0; }
    .db-sidebar-user .db-sidebar-email { display: none; }
    .db-sidebar-user .db-plan-pill { margin-left: auto; flex-shrink: 0; }

    /* Collapse the nav behind the Menu toggle */
    .db-sidebar-toggle { display: flex; }
    .db-sidebar-nav { display: none; padding: 0 8px 8px; }
    .db-sidebar-card.nav-open .db-sidebar-nav { display: block; }
    .db-sidebar-card.nav-open .db-toggle-caret { transform: rotate(180deg); }

    /* Upgrade CTA only when the menu is open (keeps the collapsed bar tidy) */
    .db-sidebar-cta { display: none; }
    .db-sidebar-card.nav-open .db-sidebar-cta { display: block; }
}

/* Mobile: home "Previous Versions" cards — let the header + badges wrap so the
   framework/platform/"Prompt Output" pills drop below the title instead of clipping */
@media (max-width: 575px) {
    .js-version-card .card-header { flex-wrap: wrap; gap: 8px; }
    .js-version-card .card-header > .d-flex { min-width: 0; }
    .js-version-card .js-version-badges { flex-wrap: wrap; }
    .js-version-card .card-header h6 { font-size: 0.92rem; word-break: break-word; }
}

/* =====================================================
   Homepage — responsive typography & section styles
   ===================================================== */
.hero-title {
    font-size: clamp(1.8rem, 3.2vw, 2.6rem) !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    color: #111827 !important;
}
/* Page section headings — scoped to h2 to not affect generator 16px labels */
h2.pg-heading {
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    font-weight: 700;
    color: #111827;
    line-height: 1.25;
}

/* Why Choose PromptGen cards */
.why-card {
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.why-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(74, 144, 226, 0.25);
}
.why-icon {
    width: 58px;
    height: 58px;
    background: var(--free-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.35rem;
    margin: 0 auto 22px;
    flex-shrink: 0;
    box-shadow: 0 8px 18px rgba(74, 144, 226, 0.28);
}
.why-card h5 {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}
.why-card p {
    color: var(--text-body);
    font-size: var(--text-base);
    line-height: 1.65;
    margin-bottom: 0;
    flex-grow: 1;
}
.why-badge {
    display: inline-block;
    margin-top: 20px;
    background: var(--free-light);
    color: var(--free-primary);
    border: 1px solid var(--free-border);
    border-radius: var(--radius-pill);
    padding: 5px 15px;
    font-size: var(--text-xs);
    font-weight: 600;
    align-self: center;
}

@media (max-width: 575px) {
    .hero-title { font-size: 1.9rem; }
    .stat-number { font-size: 1.4rem; }
    .cta-group .btn { width: 100%; text-align: center; }
}

/* ===== Framework overview cards — Elevated premium panel ===== */
.frameworks-section .card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Brand-correct headers (free was off-brand Bootstrap blue; premium was inline) */
.frameworks-section .fw-head { border: none; }
.frameworks-section .fw-head--free { background: var(--free-gradient); }
/* Premium header matches free (was a flashy purple→pink gradient) */
.frameworks-section .fw-head--premium { background: var(--free-gradient); }

/* Free card — understated, slightly recessed */
.frameworks-section .fw-free-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Premium card — same brand colour as free, just gently elevated (no bright purple panel) */
.frameworks-section .fw-premium-card {
    background: #ffffff;
    border: 1.5px solid rgba(74, 144, 226, 0.22);
    box-shadow: 0 18px 44px rgba(74, 144, 226, 0.14);
    overflow: visible; /* let the ribbon overlap the top edge */
}
.frameworks-section .fw-premium-card .fw-head--premium {
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
}
.frameworks-section .fw-premium-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 54px rgba(74, 144, 226, 0.2);
}

/* "Most Popular" ribbon — compact, top-right corner */
.frameworks-section .fw-popular-wrap {
    position: absolute;
    top: -11px;
    right: 16px;
    z-index: 10;
}
.frameworks-section .fw-popular-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #ffffff;
    color: #4A90E2;
    font-size: 0.66rem;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: var(--radius-pill);
    box-shadow: 0 6px 16px rgba(74, 144, 226, 0.26);
    border: 1.5px solid rgba(74, 144, 226, 0.45);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* Unify the premium card's inner accents to the brand blue (scoped to the frameworks
   grid so premium branding elsewhere — e.g. pricing — keeps its purple). */
.frameworks-section .fw-premium-card .gradient-text-premium {
    background: linear-gradient(135deg, #4A90E2 0%, #2DD4BF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.frameworks-section .fw-premium-card .bg-purple { background-color: rgba(74, 144, 226, 0.10) !important; }
.frameworks-section .fw-premium-card .text-purple { color: #4A90E2 !important; }

/* Single-color framework icon chips (premium + fallback) */
.frameworks-section .fw-chip {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 144, 226, 0.10);
    color: #1f2937;
    font-weight: 700;
}

/* Footer CTAs */
.frameworks-section .fw-cta-btn {
    border-radius: var(--radius-md);
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.frameworks-section .fw-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    opacity: 0.95;
}
/* Free footer buttons also used off-brand bg-primary — pull onto the brand gradient */
.frameworks-section .card-footer .btn.bg-primary {
    background: var(--free-gradient) !important;
    border-radius: var(--radius-md);
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.frameworks-section .card-footer .btn.bg-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== Prompts by Role cards (2026 refresh) ===== */
.section-pad .role-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    background: var(--surface);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.section-pad .role-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(74, 144, 226, 0.18);
}
.section-pad .role-card .role-cta .btn {
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.section-pad .role-card .role-cta .btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    opacity: 0.95;
}

/* ===== CTA band (2026 refresh) ===== */
.cta-section .cta-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.30);
    border-radius: var(--radius-pill);
    padding: 6px 15px;
}
.cta-section .cta-stat {
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-md);
    padding: 14px 8px;
    transition: transform 0.2s ease, background 0.2s ease;
}
.cta-section .cta-stat:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.20);
}
.cta-section .cta-stat-num {
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1;
}
.cta-section .cta-stat-label {
    font-size: 0.7rem;
    opacity: 0.85;
    margin-top: 4px;
}
.cta-section .btn-lg {
    border-radius: var(--radius-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cta-section .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
.cta-section .btn-outline-light:hover {
    transform: translateY(-2px);
}

/* ============================================================================
   "Open this prompt in an AI tool" bar — sleek, icon-free pills.
   Shared by the generator, previous versions, and saved prompts.
   ==========================================================================*/
.ai-open-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin: 14px 0;
}
.ai-open-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #94a3b8;
    margin-right: 2px;
}
.ai-open-btn {
    border: 1px solid #cfe0f5;
    background: #eaf2fd;
    color: #2f6fb3;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.ai-open-btn:hover {
    border-color: #4A90E2;
    color: #fff;
    background: #4A90E2;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.28);
}
.ai-open-btn:active { transform: translateY(0); box-shadow: none; }
/* Tighter inside dense saved-prompt cards */
.ps-prompt-body .ai-open-bar { margin: 10px 0 4px; gap: 6px; }
.ps-prompt-body .ai-open-btn { font-size: 0.74rem; padding: 4px 11px; }

/* ── Refine / auto-improve bar ─────────────────────────────────────────── */
.refine-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
    margin: 6px 0 16px;
    padding: 14px 16px;
    background: #f6f9fe;
    border: 1px solid #e4edf9;
    border-radius: 12px;
}
.refine-label {
    flex: 1 1 100%;
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
}
.refine-input {
    flex: 1 1 260px;
    min-width: 200px;
    min-height: 92px;
    font-size: 0.88rem;
    line-height: 1.5;
    padding: 10px 14px;
    border: 1px solid #d5e2f3;
    border-radius: 12px;
    background: #fff;
    color: #1f2937;
    outline: none;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.refine-input:focus {
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.14);
}
.refine-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: linear-gradient(135deg, #4A90E2, #2dd4bf);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.2;
    padding: 8px 20px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.refine-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(45, 212, 191, 0.32);
}
.refine-btn:active { transform: translateY(0); box-shadow: none; }
.refine-btn:disabled,
.refine-btn.is-loading {
    opacity: 0.7;
    cursor: default;
    transform: none;
    box-shadow: none;
}

/* ── Post-generation action suite (reveals as one premium unit) ───────────── */
#promptActionSuite {
    flex-direction: column;      /* display:flex is toggled inline by JS */
    gap: 0;
    margin-top: 22px;
    padding: 6px 20px 4px;
    background: linear-gradient(180deg, #fdfefe 0%, #f7f9fc 100%);
    border: 1px solid #eef1f6;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    animation: fadeInUp 0.35s ease;
}
/* Each row is a padded band; thin hairline dividers keep it clean + premium. */
#promptActionSuite > .prompt-refine-feedback,
#promptActionSuite > .ai-open-bar,
#promptActionSuite > .run-bar,
#promptActionSuite > .prompt-suite-actions {
    margin: 0;
    padding: 16px 0;
}
#promptActionSuite > * + * { border-top: 1px solid #eef1f6; }

/* Row 1 — feedback + Refine, one centered line */
.prompt-refine-feedback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.prompt-refine-feedback #promptFeedback { margin: 0; width: 100%; }
.prf-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}
.prf-q { font-size: 0.9rem; font-weight: 600; color: #64748b; margin-right: 4px; }
.prf-btn {
    border-radius: 9px;
    font-weight: 600;
    padding: 5px 12px;
    line-height: 1.2;
}
.prf-refine { margin-left: 4px; }

/* Row 2 — center the "Open in ..." pills */
#promptActionSuite > .ai-open-bar { justify-content: center; }

/* Row 3 — flatten the run-bar's own panel so it blends into the suite's divider style */
#promptActionSuite > .run-bar {
    background: transparent;
    border: none;
    border-top: 1px solid #eef1f6;
    border-radius: 0;
    justify-content: center;
}

/* Row 4 — Share + Save (rounded, premium buttons) */
.prompt-suite-actions { width: 100%; }
.prompt-suite-actions .btn {
    border-radius: 12px;
    font-weight: 600;
    padding: 11px 16px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

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

/* ── Brand Kit "Manage" button (home generator) — matches the .main-select next to it ── */
.brand-kit-manage-btn {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    color: #4A90E2;
    border-radius: 10px;
    padding: 11px 16px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}
.brand-kit-manage-btn:hover {
    background: #4A90E2;
    border-color: #4A90E2;
    color: #fff;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.25);
}
.refine-open-btn {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d5e2f3;
    background: #f6f9fe;
    color: #2f6fb0;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.2;
    padding: 8px 16px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.refine-open-btn:hover {
    background: #eaf2fd;
    border-color: #4A90E2;
    transform: translateY(-1px);
}

/* "Prompt Output" pill added to cards that have a saved BYOK answer */
.prompt-output-btn {
    display: inline-flex;
    align-items: center;
    border: 1px solid #cdeae0;
    background: #edfbf5;
    color: #0d8a7a;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.1;
    padding: 4px 10px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.prompt-output-btn:hover { background: #d7f5ea; border-color: #14b8a6; }

/* ── Refine popup ─────────────────────────────────────────────────────────── */
.refine-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3200;
    background: rgba(15, 23, 42, 0.55);
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.refine-modal-overlay.open { display: flex; }
.refine-modal {
    width: min(560px, 96vw);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
    padding: 20px 22px 22px;
    animation: scaleIn 0.16s ease;
}
.refine-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.refine-modal-title { font-weight: 800; font-size: 1.08rem; color: #111827; }
.refine-modal-close {
    background: #f1f5f9;
    border: none;
    color: #475569;
    width: 32px; height: 32px;
    border-radius: 8px;
    font-size: 1.4rem; line-height: 1;
    cursor: pointer;
}
.refine-modal-close:hover { background: #e2e8f0; }
.refine-modal .refine-label { flex: 1 1 100%; margin-bottom: 8px; }
.refine-modal .refine-input { width: 100%; flex: none; min-height: 120px; }
.refine-modal-actions { display: flex; justify-content: flex-end; margin-top: 14px; }

/* ── BYOK: Run-with-your-key bar + answer output ──────────────────────────── */
.run-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 6px 0 4px;
    padding: 12px 14px;
    background: #f3f7f5;
    border: 1px solid #d9ece5;
    border-radius: 12px;
}
.run-label { font-size: 0.82rem; font-weight: 700; color: #0d8a7a; margin-right: 2px; }
.run-select, .run-model {
    font-size: 0.85rem;
    padding: 8px 10px;
    border: 1px solid #cfe3db;
    border-radius: 9px;
    background: #fff;
    color: #1f2937;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.run-select { max-width: 160px; }
.run-model { flex: 1 1 150px; min-width: 130px; }
.run-select:focus, .run-model:focus { border-color: #14b8a6; box-shadow: 0 0 0 3px rgba(20,184,166,0.14); }
.run-btn {
    display: inline-flex; align-items: center; gap: 6px;
    border: none; cursor: pointer; white-space: nowrap;
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    color: #fff; font-size: 0.85rem; font-weight: 700;
    padding: 8px 18px; border-radius: 999px;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.run-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(13,148,136,0.3); }
.run-btn:active { transform: translateY(0); box-shadow: none; }
.run-btn:disabled, .run-btn.is-loading { opacity: 0.7; cursor: default; transform: none; box-shadow: none; }
.run-keys-link {
    border: 1px solid #cfe3db; background: #fff; color: #0d8a7a;
    font-size: 0.8rem; font-weight: 600; padding: 7px 12px; border-radius: 999px;
    cursor: pointer; white-space: nowrap; transition: background 0.15s, border-color 0.15s;
}
.run-keys-link:hover { background: #e9f6f2; border-color: #14b8a6; }

#runOutputWrap { margin: 10px 0 4px; }
.run-output-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.run-output-label { font-size: 0.82rem; font-weight: 700; color: #334155; }
.run-output-meta { font-weight: 500; color: #94a3b8; font-size: 0.76rem; }
.run-copy-btn {
    border: 1px solid #e2e8f0; background: #fff; color: #475569;
    font-size: 0.76rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.run-copy-btn:hover { background: #f1f5f9; border-color: #cbd5e1; }
.run-output {
    white-space: pre-wrap;
    background: #fff;
    border: 1px solid #e6f1ec;
    border-radius: 12px;
    padding: 16px 18px;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #1f2937;
    max-height: 460px;
    overflow-y: auto;
}

/* Keys manager modal */
.byok-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.55); z-index: 100000; display: flex; align-items: flex-start; justify-content: center; padding: 32px 16px; overflow-y: auto; }
.byok-modal { background: #fff; border-radius: 14px; max-width: 540px; width: 100%; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.byok-modal-hd { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid #eef0f3; }
.byok-modal-hd h5 { margin: 0; font-weight: 800; font-size: 1.12rem; color: #0f172a; }
.byok-modal-x { background: none; border: none; font-size: 1.3rem; color: #9aa3af; cursor: pointer; line-height: 1; }
.byok-modal-bd { padding: 18px 22px; max-height: 60vh; overflow-y: auto; }
.byok-note { font-size: 0.82rem; color: #0d8a7a; background: #eefaf6; border: 1px solid #cdeee4; border-radius: 10px; padding: 10px 12px; margin-bottom: 16px; line-height: 1.5; }
.byok-row { margin-bottom: 14px; }
.byok-row label { display: flex; align-items: center; justify-content: space-between; font-size: 0.85rem; font-weight: 600; color: #374151; margin-bottom: 5px; }
.byok-row label a { font-weight: 500; font-size: 0.78rem; color: #14b8a6; text-decoration: none; }
.byok-row label a:hover { text-decoration: underline; }
.byok-row .byok-key-row { display: flex; gap: 8px; }
.byok-row input { flex: 1; border: 1px solid #d5dbe4; border-radius: 9px; padding: 9px 12px; font-size: 0.85rem; font-family: 'Courier New', monospace; color: #1f2937; outline: none; }
.byok-row input:focus { border-color: #14b8a6; box-shadow: 0 0 0 3px rgba(20,184,166,0.14); }
.byok-saved-tag { font-size: 0.72rem; font-weight: 700; color: #0d8a7a; }
.byok-del-btn {
    flex-shrink: 0; border: 1px solid #f1d4d0; background: #fff; color: #c0392b;
    font-size: 0.78rem; font-weight: 600; padding: 0 13px; border-radius: 9px; cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.byok-del-btn:hover { background: #c0392b; color: #fff; border-color: #c0392b; }
.byok-modal-ft { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid #eef0f3; }
/* model select needs room for long model ids */
#runModel { max-width: 230px; }

/* ── Answer workspace (BYOK run popup: edit + export + saved list) ─────────── */
.aw-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.55); z-index: 100001; display: none; align-items: center; justify-content: center; padding: 24px; }
.aw-overlay.open { display: flex; }
.aw-modal { background: #fff; border-radius: 16px; width: min(96vw, 1120px); height: min(90vh, 820px); box-shadow: 0 30px 70px rgba(0,0,0,.35); display: flex; flex-direction: column; overflow: hidden; }
.aw-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; background: linear-gradient(135deg, #14b8a6, #0d9488); color: #fff; }
.aw-title { font-weight: 800; font-size: 1.05rem; }
.aw-retention { flex: 1 1 auto; text-align: right; margin-right: 14px; font-size: 0.78rem; color: rgba(255,255,255,.85); }
.aw-close { background: rgba(255,255,255,.2); border: none; color: #fff; width: 30px; height: 30px; border-radius: 8px; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.aw-close:hover { background: rgba(255,255,255,.32); }
.aw-body { flex: 1; display: flex; min-height: 0; }

.aw-sidebar { width: 268px; flex-shrink: 0; border-right: 1px solid #eef0f3; display: flex; flex-direction: column; background: #f8fafc; }
.aw-sidebar-head { padding: 12px 16px; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #64748b; border-bottom: 1px solid #eef0f3; }
.aw-count { color: #94a3b8; }
.aw-list { flex: 1; overflow-y: auto; padding: 8px; }
.aw-empty { padding: 20px 14px; color: #94a3b8; font-size: 0.85rem; text-align: center; }
.aw-item { position: relative; padding: 10px 30px 10px 12px; border-radius: 10px; cursor: pointer; margin-bottom: 4px; border: 1px solid transparent; transition: background .12s, border-color .12s; }
.aw-item:hover { background: #eef2f6; }
.aw-item.active { background: #e2f6f2; border-color: #b6e6dc; }
.aw-item-title { font-size: 0.86rem; font-weight: 600; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aw-item-sub { font-size: 0.72rem; color: #94a3b8; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aw-item-del { position: absolute; top: 7px; right: 6px; width: 20px; height: 20px; border: none; background: transparent; color: #cbd5e1; font-size: 1rem; line-height: 1; cursor: pointer; border-radius: 5px; }
.aw-item-del:hover { background: #fef2f2; color: #dc2626; }
.aw-sidebar-note { padding: 10px 16px; font-size: 0.72rem; color: #94a3b8; border-top: 1px solid #eef0f3; }

.aw-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.aw-toolbar { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; padding: 9px 14px; border-bottom: 1px solid #eef0f3; background: #fff; }
.aw-toolbar select { font-size: 0.8rem; padding: 5px 8px; border: 1px solid #e2e8f0; border-radius: 7px; background: #fff; color: #334155; cursor: pointer; outline: none; }
.aw-tb { min-width: 30px; height: 30px; padding: 0 8px; border: 1px solid #e2e8f0; background: #fff; color: #334155; border-radius: 7px; font-size: 0.82rem; cursor: pointer; transition: background .12s, border-color .12s; }
.aw-tb:hover { background: #f1f5f9; border-color: #cbd5e1; }
.aw-sep { width: 1px; height: 20px; background: #e2e8f0; margin: 0 3px; }
.aw-tb-spacer { flex: 1; }
.aw-export { height: 30px; padding: 0 14px; border: 1px solid #cfe3db; background: #fff; color: #0d8a7a; border-radius: 7px; font-size: 0.8rem; font-weight: 700; cursor: pointer; transition: background .12s; }
.aw-export:hover { background: #e9f6f2; }
.aw-meta { padding: 8px 20px 0; font-size: 0.76rem; color: #94a3b8; }
.aw-content { flex: 1; overflow-y: auto; padding: 20px 24px 28px; font-size: 0.95rem; line-height: 1.7; color: #1f2937; outline: none; }
.aw-content:focus { outline: none; }
.aw-content h1 { font-size: 1.5rem; } .aw-content h2 { font-size: 1.25rem; } .aw-content h3 { font-size: 1.08rem; }
.aw-content pre { background: #f6f8fa; border: 1px solid #eef0f3; border-radius: 8px; padding: 12px 14px; overflow-x: auto; white-space: pre-wrap; font-size: 0.86rem; }
.aw-content code { background: #f1f5f9; padding: 1px 5px; border-radius: 4px; font-size: 0.88em; }
.aw-content blockquote { border-left: 3px solid #cbd5e1; margin: 0 0 12px; padding-left: 14px; color: #64748b; }
.aw-content ul, .aw-content ol { padding-left: 24px; }

@media (max-width: 720px) {
    .aw-modal { width: 96vw; height: 92vh; }
    .aw-sidebar { width: 150px; }
}

/* ── Unified form controls (match the login page) ─────────────────────────────
   One clean border + a single soft focus ring — removes the harsh Bootstrap
   "double blue line" on focus across every page. Pages with their own input
   classes (.st-input, .adm-input, generator fields) are unaffected. */
.form-control,
.form-select {
    border: 1.5px solid #e8ecf2;
    border-radius: 10px;
    background: #f9fafc;
    color: #111827;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.form-control::placeholder { color: #b8bec8; }
.form-control:focus,
.form-select:focus {
    outline: 0;
    border-color: #4A90E2;
    background: #fff;
    box-shadow: 0 0 0 3.5px rgba(74, 144, 226, 0.13);
}

/* ══════════════════════════════════════════════════════════════════════════════
   PHONES: Bootstrap g-5 gutters inside a .container

   .row.g-5 sets --bs-gutter-x to 3rem, which gives the row a -24px margin on each
   side. A .container only pads 12px, so the row hangs 12px off both edges. On a
   desktop the container is far narrower than the window and the overhang lands in
   the leftover margin, invisible — but on a phone the container IS the window, so
   the page genuinely scrolls sideways. Measured 402px of document in a 390px
   viewport, and 332px at 320px.

   Site-wide because the bug is: contact, the 20 use-case sub pages, and the 10
   chatgpt-prompts category pages all hit it identically. Matching the gutter to the
   container's own padding fixes every one and still leaves a sensible column gap
   once the columns stack.
   ══════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .row.g-5,
    .row.gx-5 { --bs-gutter-x: 1.5rem; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   PHONES: checkbox rows

   A native checkbox renders at 16px and cannot be resized without redrawing it, so
   the real tap target is its <label>. Every checkbox on the site has one properly
   associated, but the labels were only 20-21px tall — wide and thin, and easy to
   miss with a thumb. Giving the label a minimum height makes the whole row tappable
   without touching the control itself.

   Site-wide because .form-check-label is Bootstrap's and behaves the same
   everywhere — "Remember me" on login, the terms box on register.
   ══════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .form-check-label {
        display: inline-flex;
        align-items: center;
        min-height: 40px;
    }
}
