/* ============================================
   AI CODE GENERATION - TECH FOCUSED DESIGN
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
    /* Tech Color Palette - AI/Code Theme */
    --primary-cyan: #00d9ff;
    --primary-blue: #0066ff;
    --primary-dark-blue: #0052cc;
    --accent-green: #00ff88;
    --accent-purple: #7c3aed;
    --accent-orange: #ff6b35;
    
    /* Dark Tech Gradients */
    --gradient-primary: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 25%, #1e3a5f 50%, #0f4c75 100%);
    --gradient-tech: linear-gradient(135deg, #001122 0%, #003366 25%, #004488 50%, #0055aa 100%);
    --gradient-cyan: linear-gradient(135deg, #00d9ff 0%, #0099cc 50%, #006699 100%);
    --gradient-code: linear-gradient(135deg, #1e1e2e 0%, #2d2d44 50%, #3d3d5c 100%);
    
    /* Code Editor Colors */
    --code-bg: #1e1e2e;
    --code-surface: #252538;
    --code-border: rgba(0, 217, 255, 0.2);
    --code-text: #e4e4e7;
    --code-comment: #6b7280;
    --code-keyword: #00d9ff;
    --code-string: #00ff88;
    --code-number: #ff6b35;
    
    /* Dark Theme */
    --dark-bg: #0a0e27;
    --dark-surface: #151b33;
    --dark-elevated: #1e2640;
    --dark-border: rgba(0, 217, 255, 0.15);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --text-muted: rgba(255, 255, 255, 0.65);
    --text-subtle: rgba(255, 255, 255, 0.45);
    
    /* Glass Effects - Tech Style */
    --glass-bg: rgba(30, 30, 46, 0.8);
    --glass-border: rgba(0, 217, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    
    /* Tech Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.5);
    --shadow-cyan: 0 8px 24px rgba(0, 217, 255, 0.3);
    --shadow-green: 0 8px 24px rgba(0, 255, 136, 0.3);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

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

html {
    background-color: var(--dark-bg);
    margin: 0;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0e27;
    color: #e4e4e7;
    line-height: 1.7;
    font-weight: 400;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    margin: 0;
}

body.landing-page {
    background: var(--gradient-primary);
    min-height: 100vh;
    position: relative;
}

body.landing-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 217, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 255, 136, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 102, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

body.landing-page::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 217, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 217, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   TECH GLASS NAVIGATION
   ============================================ */

.glass-nav {
    background: rgba(10, 14, 39, 0.8) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 217, 255, 0.2);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(0, 217, 255, 0.1);
    padding: 1.25rem 0;
    position: relative;
    z-index: 1000;
    transition: all var(--transition-base);
}

.glass-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.4), transparent);
}

.glass-nav .navbar-brand {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary) !important;
    text-decoration: none;
    letter-spacing: 0.05em;
    position: relative;
    transition: all var(--transition-base);
}

.glass-nav .navbar-brand:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 0 8px rgba(0, 217, 255, 0.5));
}

.glass-nav .navbar-brand i {
    margin-right: 0.5rem;
    color: var(--primary-cyan);
    filter: drop-shadow(0 0 6px rgba(0, 217, 255, 0.6));
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { 
        filter: drop-shadow(0 0 6px rgba(0, 217, 255, 0.6));
        opacity: 1;
    }
    50% { 
        filter: drop-shadow(0 0 12px rgba(0, 217, 255, 0.9));
        opacity: 0.9;
    }
}

.glass-nav .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
    transition: all var(--transition-base);
    margin: 0 0.75rem;
    position: relative;
    padding: 0.5rem 0.75rem !important;
    border-radius: var(--radius-sm);
}

.glass-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: var(--primary-cyan);
    border-radius: var(--radius-full);
    transition: transform var(--transition-base);
    box-shadow: 0 0 8px rgba(0, 217, 255, 0.6);
}

.glass-nav .nav-link:hover {
    color: var(--primary-cyan) !important;
    background: rgba(0, 217, 255, 0.1);
}

.glass-nav .nav-link:hover::before {
    transform: translateX(-50%) scaleX(1);
}

.glass-nav .nav-link i {
    margin-right: 0.375rem;
    font-size: 0.875rem;
    transition: transform var(--transition-fast);
}

.glass-nav .nav-link:hover i {
    transform: scale(1.1);
}

/* ============================================
   TECH HERO SECTION
   ============================================ */

.hero-section {
    padding: 6rem 0 8rem;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Landing: pull hero content up—default centering + 6rem top padding read as a gap under the nav */
body.landing-page .hero-section {
    align-items: flex-start;
    padding-top: 3rem;
    padding-bottom: 5rem;
}

/* Row uses Bootstrap .align-items-center (!important)—override so copy isn’t vertically centered in 100vh */
body.landing-page .hero-section .row.min-vh-100 {
    min-height: auto;
    align-items: flex-start !important;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(0, 217, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(0, 255, 136, 0.08) 0%, transparent 50%);
    animation: rotate 30s linear infinite;
    pointer-events: none;
}

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

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.25rem;
    background: rgba(0, 217, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: var(--radius-full);
    color: var(--primary-cyan);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.2), inset 0 1px 0 rgba(0, 217, 255, 0.2);
    transition: all var(--transition-base);
    font-family: 'JetBrains Mono', monospace;
}

.hero-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.4), inset 0 1px 0 rgba(0, 217, 255, 0.3);
    background: rgba(0, 217, 255, 0.15);
    border-color: rgba(0, 217, 255, 0.5);
}

.hero-badge i {
    margin-right: 0.625rem;
    color: var(--accent-green);
    font-size: 1rem;
    filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.6));
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.hero-content h1 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--accent-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.3));
}

.text-white-75 {
    color: var(--text-secondary) !important;
    font-size: 1.125rem;
    line-height: 1.8;
    font-weight: 400;
}

.hero-actions {
    margin-top: 2.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-note strong {
    color: var(--primary-cyan);
    font-weight: 600;
}

.hero-tech-strip {
    border-top: 1px solid rgba(0, 217, 255, 0.2);
}

.text-muted-landing {
    color: var(--text-muted) !important;
}

.hero-tech-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.hero-tech-list li {
    position: relative;
    padding-left: 0;
}

.hero-tech-list li:not(:last-child)::after {
    content: '·';
    margin-left: 1.25rem;
    color: var(--text-subtle);
    pointer-events: none;
}

@media (max-width: 576px) {
    .hero-tech-list li:not(:last-child)::after {
        display: none;
    }
}

.hero-stats {
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(0, 217, 255, 0.2);
}

.hero-stats .row {
    margin: 0;
}

.hero-stats .col-4 {
    padding: 0 1rem;
}

.stat-item {
    text-align: center;
    position: relative;
    width: 100%;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: -1.25rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 1rem;
    background: var(--primary-cyan);
    box-shadow: 0 0 8px rgba(0, 217, 255, 0.6);
    border-radius: var(--radius-full);
}

.stat-item h3 {
    font-family: 'JetBrains Mono', monospace;
    color: var(--primary-cyan);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
    line-height: 1;
}

.stat-item p {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
}

/* ============================================
   CODE PREVIEW - TERMINAL STYLE
   ============================================ */

.hero-visual {
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.code-preview {
    background: var(--code-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(0, 217, 255, 0.3),
        inset 0 1px 0 rgba(0, 217, 255, 0.1);
    border: 1px solid var(--code-border);
    position: relative;
    transition: all var(--transition-base);
}

.code-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.code-preview:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 24px 72px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(0, 217, 255, 0.5),
        inset 0 1px 0 rgba(0, 217, 255, 0.2),
        0 0 40px rgba(0, 217, 255, 0.2);
}

.code-header {
    background: var(--code-surface);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--code-border);
    position: relative;
    z-index: 2;
}

.code-dots {
    display: flex;
    gap: 0.625rem;
}

.code-dots .dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: transform var(--transition-fast);
}

.code-dots .dot:hover {
    transform: scale(1.2);
}

.code-dots .dot.red {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.code-dots .dot.yellow {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.code-dots .dot.green {
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
}

.code-title {
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
}

.code-body {
    padding: 2rem;
    background: var(--code-bg);
    position: relative;
    z-index: 2;
}

.code-body pre {
    margin: 0;
    color: var(--code-text);
    font-family: 'JetBrains Mono', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.8;
    letter-spacing: 0.01em;
}

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

.code-block-hl {
    white-space: pre;
    overflow-x: auto;
}

.code-block-hl .hl-kw {
    color: var(--code-keyword);
    font-weight: 600;
}

.code-block-hl .hl-type {
    color: #c4b5fd;
}

.code-block-hl .hl-name {
    color: #7dd3fc;
}

.code-block-hl .hl-num {
    color: var(--code-number);
}

.code-block-hl .hl-punct {
    color: #94a3b8;
}

.code-block-hl .hl-comment {
    color: var(--code-comment);
    font-style: italic;
}

/* ============================================
   LANDING — PIPELINE, EXAMPLE, FAQ, FOOTER
   ============================================ */

.pipeline-section {
    background: #0a0e27;
    position: relative;
}

.pipeline-track {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 1rem 0.5rem;
}

.pipeline-step {
    flex: 1 1 140px;
    max-width: 220px;
    min-width: 140px;
    background: rgba(21, 27, 51, 0.6);
    border: 1px solid rgba(0, 217, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.25rem;
    text-align: center;
    backdrop-filter: blur(10px);
}

.pipeline-step-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-full);
    background: rgba(0, 217, 255, 0.15);
    color: var(--primary-cyan);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.pipeline-step h3 {
    color: var(--text-primary);
    font-weight: 700;
}

.pipeline-connector {
    display: flex;
    align-items: center;
    color: var(--primary-cyan);
    opacity: 0.5;
    font-size: 1rem;
    padding: 0 0.25rem;
}

@media (max-width: 991px) {
    .pipeline-connector {
        flex-basis: 100%;
        justify-content: center;
        padding: 0.25rem 0;
        transform: rotate(90deg);
    }
}

.example-section {
    background: #0f1419;
}

.example-prompt-card {
    background: rgba(21, 27, 51, 0.7);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 2rem 2rem;
    border-left: 4px solid var(--primary-cyan);
    box-shadow: var(--shadow-md);
}

.example-prompt-text {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.75;
}

.faq-section {
    background: #0a0e27;
}

.faq-accordion .faq-item {
    background: rgba(21, 27, 51, 0.5);
    border: 1px solid rgba(0, 217, 255, 0.15);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-accordion .accordion-button {
    background: rgba(21, 27, 51, 0.8);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    box-shadow: none;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: rgba(0, 217, 255, 0.08);
    color: var(--primary-cyan);
}

.faq-accordion .accordion-button::after {
    filter: invert(0.85);
}

.faq-accordion .accordion-button:focus {
    border-color: rgba(0, 217, 255, 0.3);
    box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.15);
}

.faq-accordion .accordion-body {
    background: rgba(10, 14, 39, 0.6);
    color: var(--text-muted);
    line-height: 1.7;
    border-top: 1px solid rgba(0, 217, 255, 0.1);
}

.landing-footer {
    background: #070a14;
    border-top: 1px solid rgba(0, 217, 255, 0.15);
}

.landing-footer-brand {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.125rem;
}

.landing-footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

.landing-footer-link:hover {
    color: var(--primary-cyan);
}

.landing-footer-sep {
    color: var(--text-subtle);
    margin: 0 0.5rem;
}

.glass-nav .navbar-toggler {
    border-color: rgba(0, 217, 255, 0.35);
}

.glass-nav .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.2);
}

@media (max-width: 991px) {
    .glass-nav .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(0, 217, 255, 0.15);
    }

    .glass-nav .navbar-nav .nav-link {
        margin: 0.25rem 0;
    }
}

/* ============================================
   TECH FEATURES SECTION
   ============================================ */

.features-section {
    background: #0f1419;
    padding: var(--spacing-3xl) 0;
    position: relative;
}

.feature-card {
    background: rgba(21, 27, 51, 0.6);
    border: 1px solid rgba(0, 217, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    height: 100%;
    backdrop-filter: blur(10px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-cyan), var(--accent-green));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl), 0 0 30px rgba(0, 217, 255, 0.2);
    border-color: rgba(0, 217, 255, 0.4);
    background: rgba(21, 27, 51, 0.8);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.75rem;
    color: white;
    font-size: 1.75rem;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    transition: transform var(--transition-slow);
}

.feature-card:hover .feature-icon::before {
    transform: rotate(45deg) translate(100%, 100%);
}

.feature-card h4 {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.feature-card p {
    color: var(--text-muted);
    margin: 0;
    line-height: 1.7;
    font-size: 1rem;
}

/* ============================================
   TECH HOW IT WORKS SECTION
   ============================================ */

.how-it-works {
    background: #0a0e27;
    padding: var(--spacing-3xl) 0;
    position: relative;
}

.section-heading {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.03em;
}

.step-card {
    background: rgba(21, 27, 51, 0.6);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    position: relative;
    transition: all var(--transition-base);
    border: 1px solid rgba(0, 217, 255, 0.15);
    box-shadow: var(--shadow-md);
    height: 100%;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.step-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl), 0 0 30px rgba(0, 217, 255, 0.2);
    border-color: rgba(0, 217, 255, 0.4);
    background: rgba(21, 27, 51, 0.8);
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'JetBrains Mono', monospace;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 2rem;
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.5);
    position: relative;
    z-index: 1;
}

.step-number::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    opacity: 0.3;
    z-index: -1;
    filter: blur(12px);
}

.step-card h4 {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.step-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 1rem;
}

.step-icon {
    width: 64px;
    height: 64px;
    background: rgba(0, 217, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto 0;
    color: var(--primary-cyan);
    font-size: 1.5rem;
    border: 1px solid rgba(0, 217, 255, 0.3);
    transition: all var(--transition-base);
}

.step-card:hover .step-icon {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
    border-color: transparent;
}

/* ============================================
   TECH CTA SECTION
   ============================================ */

.cta-section {
    background: var(--gradient-primary);
    padding: var(--spacing-3xl) 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(0, 217, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(0, 255, 136, 0.08) 0%, transparent 50%);
    animation: rotate 30s linear infinite;
    pointer-events: none;
}

.cta-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(10, 14, 39, 0.6) 0%, transparent 50%);
    pointer-events: none;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-actions {
    margin-top: 2.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   TECH BUTTONS
   ============================================ */

.btn-primary {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    border: none;
    border-radius: var(--radius-md);
    padding: 1rem 2.5rem;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
    transition: all var(--transition-base);
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.4);
    color: white;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left var(--transition-slow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(0, 217, 255, 0.6);
}

.btn-primary:hover::before {
    left: 100%;
}

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

.btn-outline-light {
    border: 2px solid rgba(0, 217, 255, 0.4);
    color: var(--primary-cyan);
    border-radius: var(--radius-md);
    padding: 1rem 2.5rem;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
    transition: all var(--transition-base);
    background: rgba(0, 217, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.btn-outline-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 217, 255, 0.2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.btn-outline-light:hover {
    border-color: rgba(0, 217, 255, 0.7);
    background: rgba(0, 217, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.4);
    color: var(--text-primary);
}

.btn-outline-light:hover::before {
    transform: scaleX(1);
}

.btn-light {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-blue);
    border: none;
    border-radius: var(--radius-md);
    padding: 1rem 2.5rem;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
    transition: all var(--transition-base);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.btn-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(0, 102, 255, 0.1));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
    color: var(--primary-dark-blue);
}

.btn-light:hover::before {
    opacity: 1;
}

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

@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0 6rem;
        min-height: auto;
    }

    body.landing-page .hero-section {
        padding-top: 1.75rem;
        padding-bottom: 4rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .hero-stats .col-4 {
        margin-bottom: 2rem;
    }
    
    .features-section,
    .how-it-works,
    .cta-section {
        padding: var(--spacing-2xl) 0;
    }
    
    .code-preview {
        margin-top: 2rem;
    }
    
    .feature-card,
    .step-card {
        padding: 2rem 1.5rem;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.min-vh-100 {
    min-height: 100vh;
}

/* ============================================
   CHAT AND OTHER PAGE STYLES
   ============================================ */

.container-fluid {
    padding: 2rem 1rem;
}

/* Landing: no top inset under nav (global container-fluid padding) */
body.landing-page .container-fluid {
    padding-top: 0 !important;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 2rem;
}

/* ============================================
   TECH ALERT STYLES
   ============================================ */

.alert {
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 217, 255, 0.2);
    box-shadow: var(--shadow-md);
    padding: 1rem 1.5rem;
    backdrop-filter: blur(10px);
    background: rgba(21, 27, 51, 0.8);
}

/* ============================================
   TECH FORM STYLES
   ============================================ */

.form-control,
.form-select {
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 217, 255, 0.2);
    padding: 0.875rem 1.25rem;
    transition: all var(--transition-base);
    font-size: 0.9375rem;
    background: rgba(21, 27, 51, 0.6);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.2), 0 0 20px rgba(0, 217, 255, 0.3);
    outline: none;
    background: rgba(21, 27, 51, 0.8);
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* ============================================
   TECH CARD STYLES
   ============================================ */

.card {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 217, 255, 0.15);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition-base);
    background: rgba(21, 27, 51, 0.6);
    backdrop-filter: blur(10px);
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 217, 255, 0.3);
}

/* ============================================
   NAVBAR FOR NON-LANDING PAGES
   ============================================ */

body:not(.landing-page) {
    background: #0a0e27;
}

body:not(.landing-page) .glass-nav {
    background: rgba(10, 14, 39, 0.95) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 217, 255, 0.2);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

body:not(.landing-page) .glass-nav .navbar-brand {
    color: var(--primary-cyan) !important;
}

body:not(.landing-page) .glass-nav .navbar-brand i {
    color: var(--primary-cyan);
    filter: drop-shadow(0 0 6px rgba(0, 217, 255, 0.6));
}

body:not(.landing-page) .glass-nav .nav-link {
    color: var(--text-secondary) !important;
}

body:not(.landing-page) .glass-nav .nav-link:hover {
    color: var(--primary-cyan) !important;
    background: rgba(0, 217, 255, 0.1);
}

body:not(.landing-page) .glass-nav .nav-link::before {
    background: var(--primary-cyan);
}

/* ============================================
   SMOOTH SCROLLING
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero-section::before,
    .cta-section::before {
        animation: none !important;
    }

    .hero-content,
    .hero-visual {
        animation: none !important;
    }

    .glass-nav .navbar-brand i {
        animation: none !important;
    }

    .hero-badge i {
        animation: none !important;
    }
}

/* ============================================
   SELECTION STYLES
   ============================================ */

::selection {
    background: rgba(0, 217, 255, 0.3);
    color: inherit;
}

::-moz-selection {
    background: rgba(0, 217, 255, 0.3);
    color: inherit;
}

/* ============================================
   WORKFLOW SELECTION PAGE - TECH STYLE
   ============================================ */

.workflow-container {
    min-height: calc(100vh - 200px);
    padding: clamp(3rem, 6vw, 4.5rem) 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 28rem),
        #0a0e27;
    position: relative;
    overflow: hidden;
}

.workflow-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 50% 0%, rgba(0, 217, 255, 0.08) 0%, transparent 42%);
    pointer-events: none;
    z-index: 0;
}

.workflow-container .container {
    position: relative;
    z-index: 1;
}

.workflow-header {
    max-width: 720px;
    text-align: left;
    margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
    animation: fadeInUp 0.6s ease-out;
}

.workflow-header h1 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    text-shadow: none;
}

.workflow-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0;
    line-height: 1.6;
}

.workflow-card {
    background: rgba(21, 27, 51, 0.78);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    height: 100%;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.workflow-link.locked-link {
    pointer-events: none;
}

.workflow-card.locked {
    cursor: not-allowed;
    opacity: 0.72;
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: none;
    transform: none;
}

.workflow-card.locked::before,
.workflow-card.locked::after {
    opacity: 0;
    transform: scaleX(0);
}

.workflow-card.locked:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.06);
    background: rgba(21, 27, 51, 0.78);
}

.workflow-card.locked .workflow-badge {
    box-shadow: none;
}

.workflow-card.locked .workflow-icon-wrapper {
    box-shadow: none;
    filter: saturate(0.7);
}

.workflow-card.locked .workflow-features li i {
    color: rgba(255, 255, 255, 0.4);
    filter: none;
}

.workflow-card.locked .workflow-button {
    background: rgba(148, 163, 184, 0.2);
    color: rgba(255, 255, 255, 0.7);
    box-shadow: none;
}

.workflow-card.locked .workflow-button::before {
    display: none;
}

.workflow-badge.locked-badge {
    background: rgba(148, 163, 184, 0.2);
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(148, 163, 184, 0.4);
}

.workflow-lock-overlay {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

.workflow-locked-tip {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.98);
    background: rgba(8, 12, 24, 0.9);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.6rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    z-index: 2;
}

.workflow-card.locked:hover .workflow-locked-tip {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.workflow-container a {
    text-decoration: none;
    color: inherit;
}

.workflow-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-cyan);
    transform: scaleX(1);
    transform-origin: left;
    transition: transform var(--transition-base);
    box-shadow: none;
}

.workflow-card::after {
    display: none;
}

.workflow-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 217, 255, 0.28);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
    background: rgba(24, 31, 58, 0.94);
}

.workflow-card:hover::before {
    transform: scaleX(1);
}

.workflow-card.single:hover {
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.workflow-card.multiple:hover {
    box-shadow: none;
}

.workflow-card.multiple::before {
    background: rgba(148, 163, 184, 0.5);
}

.workflow-card.verification:hover {
    box-shadow: none;
}

.workflow-card.verification::before {
    background: rgba(148, 163, 184, 0.5);
}

.workflow-badge {
    display: inline-block;
    padding: 0.35rem 0.7rem;
    background: rgba(0, 217, 255, 0.08);
    border: 1px solid rgba(0, 217, 255, 0.18);
    border-radius: var(--radius-full);
    color: var(--primary-cyan);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0;
    font-family: 'JetBrains Mono', monospace;
    box-shadow: none;
    transition: all var(--transition-base);
}

.workflow-card:hover .workflow-badge {
    box-shadow: none;
    background: rgba(0, 217, 255, 0.08);
    border-color: rgba(0, 217, 255, 0.18);
}

.workflow-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.workflow-icon-wrapper {
    width: 42px;
    height: 42px;
    background: rgba(0, 217, 255, 0.08);
    border: 1px solid rgba(0, 217, 255, 0.16);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-size: 1rem;
    color: var(--primary-cyan);
    box-shadow: none;
    position: relative;
    transition: all var(--transition-base);
}

.workflow-icon-wrapper::before {
    display: none;
}

.workflow-card:hover .workflow-icon-wrapper {
    transform: none;
    box-shadow: none;
}

.workflow-card.multiple .workflow-icon-wrapper {
    background: rgba(148, 163, 184, 0.08);
    border-color: rgba(148, 163, 184, 0.18);
    color: rgba(255, 255, 255, 0.72);
    box-shadow: none;
}

.workflow-card.multiple .workflow-icon-wrapper::before {
    display: none;
}

.workflow-card.multiple:hover .workflow-icon-wrapper {
    box-shadow: none;
}

.workflow-card.verification .workflow-icon-wrapper {
    background: rgba(148, 163, 184, 0.08);
    border-color: rgba(148, 163, 184, 0.18);
    color: rgba(255, 255, 255, 0.72);
    box-shadow: none;
}

.workflow-card.verification .workflow-icon-wrapper::before {
    display: none;
}

.workflow-card.verification:hover .workflow-icon-wrapper {
    box-shadow: none;
}

.workflow-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: left;
    letter-spacing: -0.02em;
}

.workflow-description {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    text-align: left;
    flex-grow: 1;
}

.workflow-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    flex-grow: 1;
}

.workflow-features li {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 0.55rem;
    display: flex;
    align-items: center;
    transition: all var(--transition-fast);
}

.workflow-features li i {
    color: var(--primary-cyan);
    margin-right: 0.75rem;
    font-size: 0.875rem;
    filter: none;
    transition: all var(--transition-fast);
}

.workflow-card:hover .workflow-features li i {
    transform: none;
    filter: none;
}

.workflow-card.multiple .workflow-features li i {
    color: rgba(255, 255, 255, 0.45);
    filter: none;
}

.workflow-card.multiple:hover .workflow-features li i {
    filter: none;
}

.workflow-card.verification .workflow-features li i {
    color: rgba(255, 255, 255, 0.45);
    filter: none;
}

.workflow-card.verification:hover .workflow-features li i {
    filter: none;
}

.workflow-button {
    background: var(--primary-cyan);
    color: white;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: all var(--transition-base);
    box-shadow: none;
    position: relative;
    overflow: hidden;
    margin-top: auto;
}

.workflow-button::before {
    display: none;
}

.workflow-card:hover .workflow-button {
    transform: none;
    background: #20ddff;
}

.workflow-button i {
    margin-right: 0.5rem;
}

.workflow-card.multiple .workflow-button {
    background: rgba(148, 163, 184, 0.16);
    box-shadow: none;
}

.workflow-card.multiple:hover .workflow-button {
    box-shadow: none;
}

.workflow-card.verification .workflow-button {
    background: rgba(148, 163, 184, 0.16);
    box-shadow: none;
}

.workflow-card.verification:hover .workflow-button {
    box-shadow: none;
}

.locked-page {
    position: relative;
}

.locked-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 12, 24, 0.82);
    backdrop-filter: blur(6px);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.locked-overlay-card {
    max-width: 560px;
    width: 100%;
    background: rgba(21, 27, 51, 0.92);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 217, 255, 0.25);
    box-shadow: var(--shadow-xl);
    padding: 2.5rem 2rem;
}

.locked-overlay-card .locked-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    margin: 0 auto 1.5rem;
    background: rgba(0, 217, 255, 0.12);
    border: 1px solid rgba(0, 217, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary-cyan);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.25);
}

.locked-overlay-card h2 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.locked-overlay-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.locked-overlay-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 0 25px rgba(0, 217, 255, 0.35);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.locked-overlay-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(0, 217, 255, 0.5);
}

/* Workflow Page Responsive */
@media (max-width: 768px) {
    .workflow-container {
        padding: var(--spacing-2xl) 0;
    }
    
    .workflow-header {
        margin-bottom: 1.5rem;
        text-align: left;
    }
    
    .workflow-card {
        padding: 2rem 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .workflow-icon-wrapper {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
    
    .workflow-title {
        font-size: 1.5rem;
    }
}

/* ============================================
   SCROLLBAR STYLES - TECH THEME
   ============================================ */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #0a0e27;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 217, 255, 0.3);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 217, 255, 0.5);
}

/* ============================================
   ADMIN DASHBOARD - WHITE TEXT ON DARK
   ============================================ */

.container.py-4 .card,
.container-fluid .container.py-4 .card {
    background: var(--dark-surface);
    border-color: var(--dark-border);
}

.container.py-4 .card-body,
.container-fluid .container.py-4 .card-body {
    color: #ffffff;
    background: var(--dark-surface);
}

.container.py-4 .table-responsive,
.container-fluid .container.py-4 .table-responsive {
    color: #ffffff;
}

.container.py-4 .table,
.container-fluid .container.py-4 .table {
    color: #ffffff;
    --bs-table-bg: var(--dark-elevated);
    --bs-table-striped-bg: rgba(30, 38, 64, 0.6);
    --bs-table-hover-bg: rgba(0, 217, 255, 0.08);
    --bs-table-border-color: var(--dark-border);
}

.container.py-4 .table thead.table-dark,
.container-fluid .container.py-4 .table thead.table-dark {
    background: var(--dark-elevated) !important;
    color: #ffffff !important;
    border-color: var(--dark-border);
}

.container.py-4 .table tbody td,
.container.py-4 .table thead th,
.container-fluid .container.py-4 .table tbody td,
.container-fluid .container.py-4 .table thead th {
    color: #ffffff !important;
    border-color: var(--dark-border);
    background: transparent;
}

.container.py-4 .table tbody tr:nth-of-type(odd),
.container-fluid .container.py-4 .table tbody tr:nth-of-type(odd) {
    --bs-table-accent-bg: var(--bs-table-striped-bg);
}

.container.py-4 .table tbody tr:hover td,
.container-fluid .container.py-4 .table tbody tr:hover td {
    background: var(--bs-table-hover-bg) !important;
}

.container.py-4 .table .form-control.token-limit-input,
.container-fluid .container.py-4 .table .form-control.token-limit-input {
    background: var(--dark-elevated);
    border-color: rgba(0, 217, 255, 0.3);
    color: #ffffff;
}

.container.py-4 .text-muted,
.container-fluid .container.py-4 .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

.container.py-4 .card.bg-info .card-body,
.container.py-4 .card.bg-warning .card-body,
.container.py-4 .card.bg-success .card-body,
.container.py-4 .card.bg-danger .card-body,
.container.py-4 .card.bg-primary .card-body,
.container.py-4 .card.bg-secondary .card-body {
    color: #ffffff !important;
}

/* ============================================
   LOGIN & REGISTER - WHITE TEXT ON DARK
   ============================================ */

.main-container {
    min-height: calc(100vh - 120px);
    padding: 2rem 0;
    background: #0a0e27;
}

.main-container .auth-card,
.main-container .card {
    background: rgba(21, 27, 51, 0.9);
    border: 1px solid rgba(0, 217, 255, 0.2);
    color: #ffffff;
}

.main-container .auth-card .card-body,
.main-container .card .card-body {
    color: #ffffff;
}

.main-container .auth-card h2,
.main-container .card h2 {
    color: #ffffff !important;
}

.main-container .auth-card .form-label,
.main-container .card .form-label {
    color: #ffffff !important;
}

.main-container .auth-card .text-white-75,
.main-container .auth-card p,
.main-container .card .text-white-75,
.main-container .card p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.main-container .auth-card a,
.main-container .card a {
    color: #00d9ff;
}

.main-container .auth-card a:hover,
.main-container .card a:hover {
    color: #00ff88;
}

.main-container .input-group-text {
    background: var(--dark-elevated);
    border-color: rgba(0, 217, 255, 0.2);
    color: #ffffff;
}

.main-container .form-control {
    background: rgba(21, 27, 51, 0.8);
    border-color: rgba(0, 217, 255, 0.2);
    color: #ffffff;
}

.main-container .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   PROFILE SECTION - WHITE TEXT ON DARK
   ============================================ */

.profile-page .card,
.profile-page .card-body {
    background: var(--dark-surface);
    border-color: var(--dark-border);
    color: #ffffff;
}

.profile-page .card-header.bg-primary,
.profile-page .card-header.bg-info {
    color: #ffffff !important;
    border-color: var(--dark-border);
}

.profile-page .table-borderless td {
    color: #ffffff !important;
}

.profile-page .table-borderless strong {
    color: rgba(255, 255, 255, 0.95);
}

.profile-page .text-primary,
.profile-page .text-muted {
    color: rgba(255, 255, 255, 0.9) !important;
}

.profile-page .text-success {
    color: #00ff88 !important;
}

/* Profile tabs */
.profile-page .nav-tabs {
    border-color: var(--dark-border);
}

.profile-page .nav-tabs .nav-link {
    background: var(--dark-elevated);
    border-color: var(--dark-border);
    color: rgba(255, 255, 255, 0.85);
}

.profile-page .nav-tabs .nav-link:hover {
    background: rgba(0, 217, 255, 0.1);
    border-color: var(--dark-border);
    color: #ffffff;
}

.profile-page .nav-tabs .nav-link.active {
    background: var(--dark-surface);
    border-color: var(--dark-border) var(--dark-border) var(--dark-surface);
    color: #ffffff;
}

/* Request Cost History & Chat History tab content */
.profile-page .tab-content-dark {
    background: var(--dark-surface) !important;
    border-color: var(--dark-border) !important;
    color: #ffffff;
}

.profile-page .tab-content-dark .table {
    color: #ffffff;
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(30, 38, 64, 0.5);
    --bs-table-hover-bg: rgba(0, 217, 255, 0.08);
    --bs-table-border-color: var(--dark-border);
}

.profile-page .tab-content-dark .table thead th {
    background: var(--dark-elevated);
    color: #ffffff !important;
    border-color: var(--dark-border);
}

.profile-page .tab-content-dark .table tbody td {
    color: #ffffff !important;
    border-color: var(--dark-border);
}

.profile-page .tab-content-dark .table tbody tr:hover td {
    background: var(--bs-table-hover-bg) !important;
}

.profile-page .tab-content-dark .table .table-light td {
    background: rgba(30, 38, 64, 0.8) !important;
    color: #ffffff !important;
}

.profile-page .tab-content-dark .badge.bg-secondary {
    background: rgba(0, 217, 255, 0.25) !important;
    color: #ffffff;
}

.profile-page .tab-content-dark .text-muted {
    color: rgba(255, 255, 255, 0.75) !important;
}

.profile-page .tab-content-dark p.text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}
