/* ============================================
   GyaniGuru - Premium AI SaaS Platform Styles
   ============================================ */

:root {
    --color-bg: #020617;
    --color-surface: #0f172a;
    --color-surface-elevated: #1e293b;
    --color-border: #334155;
    --color-text: #f8fafc;
    --color-text-muted: #94a3b8;
    --color-brand: #14b8a6;
    --color-brand-glow: rgba(20, 184, 166, 0.5);
    --color-accent-purple: #8b5cf6;
    --color-accent-pink: #ec4899;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --radius: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

/* Selection */
::selection {
    background: rgba(20, 184, 166, 0.3);
    color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-surface);
}

::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* ==========================================
   KEYFRAME ANIMATIONS
   ========================================== */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(1deg); }
    66% { transform: translateY(8px) rotate(-1deg); }
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    0%, 100% { border-color: transparent; }
    50% { border-color: var(--color-brand); }
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}

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

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(40px, -30px) scale(1.1); }
    50% { transform: translate(-20px, -50px) scale(0.95); }
    75% { transform: translate(30px, 20px) scale(1.05); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-35px, 25px) scale(1.05); }
    50% { transform: translate(25px, 40px) scale(0.9); }
    75% { transform: translate(-40px, -20px) scale(1.1); }
}

@keyframes particle {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
    10% {
        opacity: 1;
        transform: scale(1);
    }
    90% {
        opacity: 0.5;
    }
    100% {
        opacity: 0;
        transform: translateY(-400px) scale(0);
    }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(20, 184, 166, 0.3); }
    50% { box-shadow: 0 0 40px rgba(20, 184, 166, 0.6), 0 0 80px rgba(139, 92, 246, 0.2); }
}

/* ==========================================
   SCROLL REVEAL ANIMATIONS
   ========================================== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Staggered delay */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ==========================================
   GLASSMORPHISM
   ========================================== */

.glass {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.glass-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: var(--radius-xl);
    transition: var(--transition);
}

.glass-card:hover {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(20, 184, 166, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 30px rgba(20, 184, 166, 0.1);
}

.glass-panel {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ==========================================
   GRADIENT TEXT & EFFECTS
   ========================================== */

.gradient-text {
    background: linear-gradient(135deg, #14b8a6, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
}

.gradient-text-static {
    background: linear-gradient(135deg, #14b8a6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-border {
    position: relative;
    border: none !important;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(135deg, #14b8a6, #8b5cf6, #ec4899);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    pointer-events: none;
}

/* ==========================================
   HERO BACKGROUND EFFECTS
   ========================================== */

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    pointer-events: none;
}

.hero-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.4) 0%, transparent 70%);
    top: -100px;
    left: 10%;
    animation: orbFloat1 12s ease-in-out infinite;
}

.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, transparent 70%);
    bottom: -50px;
    right: 10%;
    animation: orbFloat2 15s ease-in-out infinite;
}

.hero-orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.2) 0%, transparent 70%);
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    animation: orbFloat1 18s ease-in-out infinite reverse;
}

/* Floating particles */
.particle-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(20, 184, 166, 0.6);
    border-radius: 50%;
    animation: particle 8s linear infinite;
}

.particle:nth-child(2) { left: 20%; animation-delay: 1s; animation-duration: 10s; background: rgba(139, 92, 246, 0.5); }
.particle:nth-child(3) { left: 40%; animation-delay: 2s; animation-duration: 7s; width: 3px; height: 3px; }
.particle:nth-child(4) { left: 60%; animation-delay: 3s; animation-duration: 12s; background: rgba(236, 72, 153, 0.4); }
.particle:nth-child(5) { left: 80%; animation-delay: 0.5s; animation-duration: 9s; width: 5px; height: 5px; }
.particle:nth-child(6) { left: 35%; animation-delay: 4s; animation-duration: 11s; background: rgba(20, 184, 166, 0.4); }
.particle:nth-child(7) { left: 55%; animation-delay: 2.5s; animation-duration: 8s; width: 3px; height: 3px; }
.particle:nth-child(8) { left: 75%; animation-delay: 5s; animation-duration: 13s; background: rgba(139, 92, 246, 0.3); }
.particle:nth-child(9) { left: 15%; animation-delay: 1.5s; animation-duration: 10s; width: 2px; height: 2px; }
.particle:nth-child(10) { left: 90%; animation-delay: 3.5s; animation-duration: 9s; }

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, #14b8a6 0%, #8b5cf6 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(20, 184, 166, 0.4);
}

/* Button Ripple Effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

/* ==========================================
   LOADING SPINNER
   ========================================== */

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--color-brand);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner-sm {
    width: 16px;
    height: 16px;
    border-width: 2px;
}

.spinner-lg {
    width: 40px;
    height: 40px;
    border-width: 3px;
}

/* ==========================================
   INPUT FIELDS
   ========================================== */

.input-field {
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.875rem 1rem;
    color: var(--color-text);
    font-size: 0.9375rem;
    transition: var(--transition);
    resize: vertical;
}

.input-field:focus {
    outline: none;
    border-color: var(--color-brand);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1), 0 0 20px rgba(20, 184, 166, 0.05);
}

.input-field::placeholder {
    color: #64748b;
}

/* ==========================================
   AGENT CARD
   ========================================== */

.agent-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: var(--transition);
}

.agent-card:hover {
    border-color: rgba(20, 184, 166, 0.3);
}

/* ==========================================
   STATUS BADGES
   ========================================== */

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.status-idle {
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.status-running {
    background: rgba(20, 184, 166, 0.1);
    color: #5eead4;
    border: 1px solid rgba(20, 184, 166, 0.3);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.status-success {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-error {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ==========================================
   OUTPUT BOX
   ========================================== */

.output-box {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    min-height: 120px;
    max-height: 500px;
    overflow-y: auto;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #e2e8f0;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ==========================================
   NATIVE AD CONTAINERS
   ========================================== */

.ad-native {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.6) 100%);
    border: 1px solid rgba(51, 65, 85, 0.4);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.ad-native::before {
    content: 'Sponsored';
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(148, 163, 184, 0.5);
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(15, 23, 42, 0.5);
}

.ad-native:hover {
    border-color: rgba(51, 65, 85, 0.6);
}

/* Banner-style ad */
.ad-banner-styled {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.5) 100%);
    border: 1px solid rgba(51, 65, 85, 0.3);
    border-radius: var(--radius-lg);
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.ad-banner-styled::after {
    content: 'Ad';
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.4);
    padding: 2px 6px;
    border-radius: 3px;
}

/* Sidebar ad */
.ad-sidebar {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(51, 65, 85, 0.3);
    border-radius: var(--radius);
    padding: 1rem;
    position: relative;
}

.ad-sidebar::before {
    content: 'Sponsored';
    display: block;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(148, 163, 184, 0.4);
    margin-bottom: 0.5rem;
}

/* Inline feed ad */
.ad-inline {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.3) 0%, rgba(15, 23, 42, 0.4) 100%);
    border: 1px solid rgba(51, 65, 85, 0.25);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    position: relative;
}

.ad-inline::before {
    content: 'Sponsored';
    position: absolute;
    top: 0.75rem;
    left: 1rem;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(148, 163, 184, 0.4);
}

/* Sticky bottom ad (mobile) */
.ad-sticky-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid rgba(51, 65, 85, 0.5);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.ad-sticky-bottom.visible {
    transform: translateY(0);
}

.ad-sticky-bottom .ad-close {
    position: absolute;
    top: -10px;
    right: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.7rem;
    transition: var(--transition);
}

.ad-sticky-bottom .ad-close:hover {
    color: white;
    background: var(--color-border);
}

/* Legacy ad-banner compat */
.ad-banner {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.5) 100%);
    border: 1px solid rgba(51, 65, 85, 0.3);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    position: relative;
}

.ad-banner::after {
    content: 'Ad';
    position: absolute;
    top: 0.4rem;
    right: 0.6rem;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(148, 163, 184, 0.35);
}

.ad-banner:hover {
    border-color: rgba(51, 65, 85, 0.5);
}

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

.step-connector {
    position: relative;
}

.step-connector::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -2rem;
    width: 2rem;
    height: 2px;
    background: linear-gradient(90deg, var(--color-brand), var(--color-accent-purple));
    opacity: 0.5;
}

@media (max-width: 768px) {
    .step-connector::after {
        display: none;
    }
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    position: relative;
}

.step-number::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-brand), var(--color-accent-purple));
    z-index: -1;
    opacity: 0.3;
    animation: glowPulse 3s ease-in-out infinite;
}

/* ==========================================
   TESTIMONIAL CARDS
   ========================================== */

.testimonial-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(51, 65, 85, 0.4);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 4rem;
    font-family: 'Poppins', serif;
    line-height: 1;
    background: linear-gradient(135deg, var(--color-brand), var(--color-accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
}

.testimonial-card:hover {
    border-color: rgba(20, 184, 166, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.testimonial-stars {
    display: flex;
    gap: 2px;
    color: #fbbf24;
    font-size: 0.875rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-brand), var(--color-accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ==========================================
   FAQ ACCORDION
   ========================================== */

.faq-item {
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(51, 65, 85, 0.3);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: rgba(51, 65, 85, 0.5);
}

.faq-item.active {
    border-color: rgba(20, 184, 166, 0.3);
    background: rgba(30, 41, 59, 0.5);
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--color-brand);
}

.faq-question .faq-icon {
    transition: transform 0.3s ease;
    color: var(--color-text-muted);
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.active .faq-question .faq-icon {
    transform: rotate(180deg);
    color: var(--color-brand);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ==========================================
   MOBILE MENU
   ========================================== */

.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    border-radius: var(--radius);
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: rgba(51, 65, 85, 0.5);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 55;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    max-width: 85vw;
    background: var(--color-surface);
    border-left: 1px solid var(--color-border);
    z-index: 56;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.mobile-menu-panel.active {
    transform: translateX(0);
}

.mobile-menu-panel a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: var(--color-text-muted);
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 500;
    transition: var(--transition);
}

.mobile-menu-panel a:hover {
    color: white;
    background: rgba(51, 65, 85, 0.5);
}

/* ==========================================
   PROMPT CHIPS
   ========================================== */

.prompt-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 9999px;
    color: var(--color-text-muted);
    font-size: 0.8125rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.prompt-chip:hover {
    background: rgba(20, 184, 166, 0.1);
    border-color: rgba(20, 184, 166, 0.3);
    color: #5eead4;
    transform: translateY(-1px);
}

.prompt-chip i {
    font-size: 0.75rem;
}

/* ==========================================
   TOAST NOTIFICATIONS
   ========================================== */

.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-brand);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    max-width: 450px;
    animation: fadeInUp 0.3s ease-out;
}

.toast-success { border-left-color: var(--color-success); }
.toast-error { border-left-color: var(--color-error); }
.toast-warning { border-left-color: var(--color-warning); }

/* ==========================================
   IMAGE OUTPUT
   ========================================== */

.image-output {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--color-border);
}

.image-output img {
    width: 100%;
    height: auto;
    display: block;
}

.image-placeholder {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #475569;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.5) 100%);
}

/* Shimmer loading */
.shimmer {
    background: linear-gradient(
        90deg,
        rgba(51, 65, 85, 0.3) 25%,
        rgba(51, 65, 85, 0.5) 50%,
        rgba(51, 65, 85, 0.3) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ==========================================
   INSPIRATION GALLERY
   ========================================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(51, 65, 85, 0.3);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.gallery-item:hover {
    border-color: rgba(139, 92, 246, 0.5);
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================
   STYLE PREVIEW
   ========================================== */

.style-preview {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.style-preview-item {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    border: 2px solid rgba(51, 65, 85, 0.3);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    position: relative;
}

.style-preview-item.active,
.style-preview-item:hover {
    border-color: var(--color-accent-purple);
}

.style-preview-item::after {
    content: attr(data-label);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.5rem;
    text-align: center;
    padding: 2px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ==========================================
   FLOATING CTA
   ========================================== */

.floating-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 45;
    animation: floatSlow 3s ease-in-out infinite;
}

.floating-cta a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--color-brand), var(--color-accent-purple));
    color: white;
    font-weight: 600;
    border-radius: 9999px;
    text-decoration: none;
    box-shadow: 0 10px 40px rgba(20, 184, 166, 0.4), 0 0 60px rgba(20, 184, 166, 0.15);
    transition: var(--transition);
}

.floating-cta a:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(20, 184, 166, 0.5), 0 0 80px rgba(20, 184, 166, 0.2);
}

@media (max-width: 768px) {
    .floating-cta {
        bottom: 4.5rem;
        right: 1rem;
    }

    .floating-cta a {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
}

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

@media (max-width: 768px) {
    .toast {
        min-width: auto;
        max-width: calc(100vw - 2rem);
        margin: 0 1rem;
    }
    
    .toast-container {
        left: 0;
        right: 0;
        bottom: 1rem;
    }
}

/* ==========================================
   FOCUS VISIBLE
   ========================================== */

*:focus-visible {
    outline: 2px solid var(--color-brand);
    outline-offset: 2px;
}

/* ==========================================
   REDUCED MOTION
   ========================================== */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .reveal, .reveal-left, .reveal-right, .reveal-scale {
        opacity: 1;
        transform: none;
    }
}
