/* ================================================
   KlinIQ Onboarding - Premium Design System
   
   TABLE OF CONTENTS:
   1. CSS Variables & Design Tokens
   2. Reset & Base Styles
   3. Background Effects
   4. App Container & Layout
   5. Header & Navigation
   6. Main Content & Forms
   7. Form Cards
   8. Input Styles
   9. Service Categories & Chips
   10. Location & Audience Cards
   11. Budget Section
   12. File Upload
   13. Modals
   14. Footer Navigation
   15. Responsive Design
   16. Utilities & Animations
   ================================================ */

/* ================================================
   1. CSS VARIABLES & DESIGN TOKENS
   
   These variables define the entire color scheme
   and spacing system. Update these to change
   the overall look and feel.
   ================================================ */
   :root {
    /* 
     * PRIMARY PALETTE
     * The main brand colors - green tones for success/action
     */
    --primary: #22c55e;           /* Main green - buttons, links, accents */
    --primary-dark: #16a34a;      /* Darker green - hover states */
    --primary-light: #4ade80;     /* Lighter green - highlights */
    --primary-glow: rgba(34, 197, 94, 0.35);  /* Glow effect for buttons */
    
    /* 
     * BACKGROUNDS
     * Lighter tones for better readability and modern feel
     */
    --bg-base: #0f172a;           /* Main page background - dark navy */
    --bg-elevated: #1e293b;       /* Elevated elements - slightly lighter */
    --bg-card: #1e293b;           /* Card backgrounds */
    --bg-card-hover: #334155;     /* Card hover state */
    --bg-input: #0f172a;          /* Input field backgrounds */
    
    /* 
     * BORDERS
     * Subtle borders that don't distract
     */
    --border-subtle: rgba(148, 163, 184, 0.1);  /* Very subtle borders */
    --border-default: rgba(148, 163, 184, 0.2); /* Default border */
    --border-hover: rgba(148, 163, 184, 0.3);   /* Hover state border */
    --border-focus: var(--primary);              /* Focus state border */
    
    /* 
     * TEXT COLORS
     * High contrast text for better readability
     */
    --text-primary: #f8fafc;      /* Main text - almost white */
    --text-secondary: #cbd5e1;    /* Secondary text - light gray */
    --text-muted: #94a3b8;        /* Muted text - medium gray */
    --text-dim: #64748b;          /* Dim text - darker gray */
    
    /* 
     * ACCENT COLORS
     * Platform and status colors
     */
    --meta-blue: #1877F2;
    --google-blue: #4285F4;
    --google-green: #34A853;
    --google-yellow: #FBBC05;
    --google-red: #EA4335;
    --instagram-pink: #E4405F;
    
    /* 
     * STATUS COLORS
     * Feedback and state indicators
     */
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* 
     * SPACING SCALE
     * Consistent spacing throughout the app
     * Based on 4px grid
     */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    
    /* 
     * BORDER RADIUS
     * Rounded corners for different elements
     */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-2xl: 28px;
    --radius-full: 9999px;
    
    /* 
     * SHADOWS
     * Depth and elevation
     */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px var(--primary-glow);
    
    /* 
     * TRANSITIONS
     * Smooth animations
     */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --duration-fast: 150ms;
    --duration-normal: 250ms;
    --duration-slow: 400ms;
}

/* ================================================
   2. RESET & BASE STYLES
   
   Basic reset and typography setup
   ================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Prevent scrolling when auth modal is active */
body:has(.auth-modal.active) {
    overflow: hidden;
}

/* ================================================
   3. BACKGROUND EFFECTS
   
   Subtle animated gradient orbs and grid overlay
   for visual depth
   ================================================ */
.bg-effects {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: float 25s ease-in-out infinite;
}

/* Top-right green orb */
.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    opacity: 0.12;
    animation-delay: 0s;
}

/* Bottom-left purple orb */
.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    opacity: 0.08;
    animation-delay: -8s;
}

/* Center blue orb */
.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--info) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.05;
    animation-delay: -16s;
}

/* Floating animation for orbs */
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(-30px, -20px) scale(1.02); }
}

/* Subtle grid overlay */
.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

/* ================================================
   4. APP CONTAINER & LAYOUT
   
   Main application structure
   ================================================ */
.app-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ================================================
   5. HEADER & NAVIGATION
   
   Sticky header with logo, progress, and actions
   ================================================ */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-8);
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

/* Logo styles */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.logo-mark svg {
    width: 42px;
    height: 42px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-tagline {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Progress Steps in Header */
.header-progress {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.progress-steps {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
    cursor: pointer;
    padding: var(--space-2);
    background: transparent;
    border: none;
    transition: all var(--duration-normal) var(--ease-out);
}

.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-default);
    transition: all var(--duration-normal) var(--ease-out);
}

.progress-step.active .step-dot {
    background: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
    transform: scale(1.2);
}

.progress-step.completed .step-dot {
    background: var(--primary);
}

.step-label {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-dim);
    transition: color var(--duration-fast);
}

.progress-step.active .step-label,
.progress-step.completed .step-label {
    color: var(--text-secondary);
}

.progress-connector {
    width: 24px;
    height: 2px;
    background: var(--border-subtle);
    border-radius: 1px;
    transition: background var(--duration-fast);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.help-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: transparent;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 500;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--duration-fast);
}

.help-btn:hover {
    background: var(--bg-card);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.help-btn svg {
    width: 16px;
    height: 16px;
}

/* User Display (when logged in) */
.user-display {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-4);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
}

.user-avatar {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.15);
    border-radius: 50%;
}

.user-avatar svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.user-email {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logout-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--duration-fast);
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
}

.logout-btn svg {
    width: 16px;
    height: 16px;
}

/* Save Status Indicator */
.save-status {
    font-size: 0.75rem;
    font-weight: 500;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-full);
    transition: all var(--duration-fast);
}

.save-status.saved {
    background: rgba(34, 197, 94, 0.15);
    color: var(--primary);
}

.save-status.pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.save-status.error {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
}

/* ================================================
   6. MAIN CONTENT & FORMS
   
   Main content area and form structure
   ================================================ */
.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: var(--space-12) var(--space-6);
    padding-bottom: 140px;
}

.form-wrapper {
    width: 100%;
    max-width: 760px;
}

/* Hide form until authenticated - shown via JS after login */
.form-wrapper.auth-required {
    opacity: 0.3;
    pointer-events: none;
    filter: blur(4px);
    transition: all 0.3s ease;
}

.form-wrapper.authenticated {
    opacity: 1;
    pointer-events: auto;
    filter: none;
}

.form-footer.auth-required {
    opacity: 0.3;
    pointer-events: none;
}

.form-footer.authenticated {
    opacity: 1;
    pointer-events: auto;
}

/* Form Steps */
.form-step {
    display: none;
    animation: stepIn 0.5s var(--ease-out);
}

.form-step.active {
    display: block;
}

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

/* Step Hero Section */
.step-hero {
    text-align: center;
    margin-bottom: var(--space-10);
}

.step-indicator {
    display: inline-flex;
    align-items: baseline;
    gap: var(--space-1);
    margin-bottom: var(--space-4);
}

.step-current {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
}

.step-total {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-dim);
}

.step-title {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.step-subtitle {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto;
}

/* ================================================
   7. FORM CARDS
   
   Card containers for form sections
   ================================================ */
.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-6);
    overflow: hidden;
    transition: border-color var(--duration-fast);
}

.form-card:hover {
    border-color: var(--border-default);
}

.form-card.highlight {
    border-color: rgba(34, 197, 94, 0.25);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), transparent);
}

.card-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-6);
    border-bottom: 1px solid var(--border-subtle);
}

.card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.15);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.card-icon svg {
    width: 22px;
    height: 22px;
    color: var(--primary);
}

.card-header-text h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.card-header-text p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.card-body {
    padding: var(--space-6);
}

/* ================================================
   8. INPUT STYLES
   
   Form inputs, textareas, and selects
   ================================================ */
.input-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
    margin-bottom: var(--space-5);
}

.input-row:last-child {
    margin-bottom: 0;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group.full-width {
    grid-column: 1 / -1;
    margin-bottom: var(--space-5);
}

.input-group.full-width:last-child {
    margin-bottom: 0;
}

.input-group label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-2);
}

.label-text {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.label-required {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.label-optional {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Input fields */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="date"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: var(--space-4);
    background: var(--bg-input);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9375rem;
    transition: all var(--duration-fast);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-dim);
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
input[type="url"]:hover,
input[type="number"]:hover,
input[type="date"]:hover,
input[type="password"]:hover,
textarea:hover,
select:hover {
    border-color: var(--border-hover);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

textarea {
    resize: vertical;
    min-height: 80px;
}

/* Input with prefix (e.g., https://) */
.input-with-prefix {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--duration-fast);
}

.input-with-prefix:hover {
    border-color: var(--border-hover);
}

.input-with-prefix:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.input-prefix {
    display: flex;
    align-items: center;
    padding: 0 var(--space-3);
    background: var(--bg-elevated);
    color: var(--text-muted);
    font-size: 0.875rem;
    border-right: 1px solid var(--border-default);
}

.input-with-prefix input {
    border: none;
    border-radius: 0;
}

.input-with-prefix input:focus {
    box-shadow: none;
}

/* Age Range inputs */
.age-range {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.age-range input {
    flex: 1;
    text-align: center;
}

.range-divider {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Gender Selector */
.gender-selector {
    display: flex;
    gap: var(--space-2);
}

.gender-option input {
    display: none;
}

.gender-btn {
    display: block;
    padding: var(--space-3) var(--space-5);
    background: var(--bg-input);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--duration-fast);
}

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

.gender-option input:checked + .gender-btn {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-base);
}

.gender-selector.compact {
    gap: var(--space-1);
}

.gender-selector.compact .gender-btn {
    padding: var(--space-2) var(--space-4);
    font-size: 0.8125rem;
}

/* Select styling */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-3) center;
    background-size: 18px;
    padding-right: var(--space-10);
}

/* Date Input */
input[type="date"] {
    position: relative;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    background: transparent;
    cursor: pointer;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
}

/* ================================================
   9. SERVICE CATEGORIES & CHIPS (Step 3)
   
   Service selection UI with categories and chips
   ================================================ */

/* Services Summary Bar */
.services-summary-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-5);
    opacity: 0;
    transform: translateY(-10px);
    transition: all var(--duration-normal) var(--ease-out);
    pointer-events: none;
}

.services-summary-bar.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.summary-content {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.summary-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.2);
    border-radius: 50%;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

.summary-icon svg {
    width: 22px;
    height: 22px;
    color: var(--primary);
}

.summary-text {
    display: flex;
    align-items: baseline;
    gap: var(--space-2);
}

.summary-count {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
}

.summary-label {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.summary-clear-btn {
    padding: var(--space-2) var(--space-4);
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-full);
    color: var(--error);
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--duration-fast);
}

.summary-clear-btn:hover {
    background: var(--error);
    border-color: var(--error);
    color: white;
}

/* Search & Filter */
.services-search-wrapper {
    margin-bottom: var(--space-5);
}

.services-search {
    position: relative;
    display: flex;
    align-items: center;
}

.services-search .search-icon {
    position: absolute;
    left: var(--space-5);
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    pointer-events: none;
    transition: color var(--duration-fast);
}

.services-search:focus-within .search-icon {
    color: var(--primary);
}

.services-search input {
    width: 100%;
    padding: var(--space-4) var(--space-5);
    padding-left: 52px;
    padding-right: 52px;
    background: var(--bg-card);
    border: 2px solid var(--border-default);
    border-radius: var(--radius-xl);
    font-size: 1rem;
    color: var(--text-primary);
    transition: all var(--duration-fast);
}

.services-search input::placeholder {
    color: var(--text-dim);
}

.services-search input:hover {
    border-color: var(--border-hover);
}

.services-search input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-elevated);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

.search-clear-btn {
    position: absolute;
    right: var(--space-4);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-fast);
}

.search-clear-btn.visible {
    opacity: 1;
    visibility: visible;
}

.search-clear-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
}

.search-clear-btn svg {
    width: 16px;
    height: 16px;
}

.search-results-info {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: var(--space-3);
    padding-left: var(--space-2);
    min-height: 20px;
}

.search-results-info .highlight {
    color: var(--primary);
    font-weight: 600;
}

/* Quick Select Buttons */
.quick-select-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

.quick-select-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--duration-fast);
}

.quick-select-btn:hover {
    background: var(--bg-elevated);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.quick-select-btn:active {
    transform: translateY(0);
}

.quick-select-btn svg {
    width: 16px;
    height: 16px;
}

/* Services Grid */
.services-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

/* Service Category Cards */
.service-category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out);
}

.service-category-card:hover {
    border-color: var(--border-default);
}

.service-category-card.expanded {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.service-category-card.has-selections {
    border-color: rgba(34, 197, 94, 0.35);
}

.service-category-card.search-hidden {
    display: none;
}

.service-category-card.search-match {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.05), transparent);
}

/* Category Card Header */
.category-card-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-5) var(--space-6);
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background var(--duration-fast);
}

.category-card-header:hover {
    background: var(--bg-elevated);
}

.category-card-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    flex-shrink: 0;
    transition: transform var(--duration-fast);
}

.service-category-card.expanded .category-card-icon {
    transform: scale(1.05);
}

.category-card-icon svg {
    width: 26px;
    height: 26px;
}

/* Category Icon Colors */
.category-card-icon.injectables {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(139, 92, 246, 0.1));
    color: #a78bfa;
}

.category-card-icon.fillers {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.25), rgba(236, 72, 153, 0.1));
    color: #f472b6;
}

.category-card-icon.laser {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(245, 158, 11, 0.1));
    color: #fbbf24;
}

.category-card-icon.body {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(34, 197, 94, 0.1));
    color: var(--primary-light);
}

.category-card-icon.skin {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(59, 130, 246, 0.1));
    color: #60a5fa;
}

.category-card-icon.tightening {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(239, 68, 68, 0.1));
    color: #f87171;
}

.category-card-icon.wellness {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(34, 197, 94, 0.1));
    color: #4ade80;
}

.category-card-icon.hair {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(168, 85, 247, 0.1));
    color: #c084fc;
}

.category-card-icon.sexual {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.25), rgba(244, 63, 94, 0.1));
    color: #fb7185;
}

.category-card-info {
    flex: 1;
    text-align: left;
}

.category-card-info h4 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.category-card-count {
    font-size: 0.8125rem;
    color: var(--text-muted);
    transition: color var(--duration-fast);
}

.service-category-card.has-selections .category-card-count {
    color: var(--primary);
    font-weight: 600;
}

.category-card-toggle {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-input);
    border-radius: 50%;
    transition: all var(--duration-fast);
}

.category-card-header:hover .category-card-toggle {
    background: var(--bg-card);
}

.chevron-icon {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: transform var(--duration-normal) var(--ease-out);
}

.service-category-card.expanded .chevron-icon {
    transform: rotate(180deg);
}

/* Category Card Body */
.category-card-body {
    max-height: 0;
    overflow: hidden;
    padding: 0 var(--space-6);
    background: var(--bg-elevated);
    border-top: 1px solid transparent;
    transition: max-height var(--duration-normal) var(--ease-out),
                padding var(--duration-normal) var(--ease-out),
                border-color var(--duration-fast);
}

.service-category-card.expanded .category-card-body {
    max-height: 600px;
    padding: var(--space-6);
    border-top-color: var(--border-subtle);
}

/* Services Chips */
.services-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

.service-chip {
    position: relative;
    cursor: pointer;
}

.service-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.chip-content {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: var(--bg-card);
    border: 1.5px solid var(--border-default);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--duration-fast);
    -webkit-tap-highlight-color: transparent;
}

.service-chip:hover .chip-content {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-1px);
}

.service-chip input:checked + .chip-content {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.1));
    border-color: var(--primary);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.service-chip input:checked + .chip-content .chip-check {
    opacity: 1;
    transform: scale(1);
}

.chip-check {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.5);
    transition: all var(--duration-fast) var(--ease-out);
}

.chip-check svg {
    width: 12px;
    height: 12px;
    color: white;
}

/* Popular Badge */
.service-chip.popular .chip-content {
    padding-right: var(--space-3);
}

.chip-badge {
    display: inline-block;
    padding: 2px 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-full);
    font-size: 0.625rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: var(--space-2);
}

/* Search state */
.service-chip.search-hidden {
    display: none;
}

.service-chip.search-match .chip-content {
    border-color: var(--primary);
    background: rgba(34, 197, 94, 0.1);
}

/* Select All Button */
.select-all-category-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: transparent;
    border: 1px dashed var(--border-default);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--duration-fast);
}

.select-all-category-btn:hover {
    border-color: var(--primary);
    border-style: solid;
    color: var(--primary);
    background: rgba(34, 197, 94, 0.08);
}

.select-all-category-btn.all-selected {
    border-style: solid;
    border-color: var(--primary);
    background: rgba(34, 197, 94, 0.15);
    color: var(--primary);
}

.select-all-category-btn svg {
    width: 16px;
    height: 16px;
}

/* No Results Message */
.no-results-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-12) var(--space-6);
    text-align: center;
}

.no-results-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 50%;
    margin-bottom: var(--space-5);
}

.no-results-icon svg {
    width: 36px;
    height: 36px;
    color: var(--text-dim);
}

.no-results-message h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.no-results-message p {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.no-results-message button {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: underline;
}

.no-results-message button:hover {
    text-decoration: none;
}

/* Additional Services Card */
.additional-services-card {
    margin-top: var(--space-2);
}

/* ================================================
   10. LOCATION & AUDIENCE CARDS
   
   Dynamic cards for locations and audiences
   ================================================ */

/* Location Cards */
.location-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
    overflow: hidden;
    animation: cardIn 0.4s var(--ease-out);
}

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

.location-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-subtle);
}

.location-number {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.15);
    border-radius: var(--radius-sm);
    color: var(--primary);
}

.location-number svg {
    width: 16px;
    height: 16px;
}

.location-title {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.remove-location-btn,
.remove-audience-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.15);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--error);
    cursor: pointer;
    transition: all var(--duration-fast);
}

.remove-location-btn:hover,
.remove-audience-btn:hover {
    background: var(--error);
    color: white;
}

.remove-location-btn svg,
.remove-audience-btn svg {
    width: 14px;
    height: 14px;
}

.location-body {
    padding: var(--space-5);
}

.location-body .input-group {
    margin-bottom: var(--space-4);
}

.location-body .input-group:last-child {
    margin-bottom: 0;
}

/* Add Location/Audience Buttons */
.add-location-btn,
.add-audience-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4);
    background: transparent;
    border: 2px dashed var(--border-default);
    border-radius: var(--radius-lg);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration-fast);
    margin-top: var(--space-2);
}

.add-location-btn:hover,
.add-audience-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(34, 197, 94, 0.05);
}

.add-location-btn svg,
.add-audience-btn svg {
    width: 18px;
    height: 18px;
}

/* Service Variation Selector */
.service-variation-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

.variation-option input {
    display: none;
}

.variation-card {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--bg-input);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--duration-fast);
}

.variation-card:hover {
    border-color: var(--border-hover);
}

.variation-option input:checked + .variation-card {
    border-color: var(--primary);
    background: rgba(34, 197, 94, 0.08);
}

.variation-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.15);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.variation-icon svg {
    width: 22px;
    height: 22px;
    color: var(--primary);
}

.variation-content h5 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.variation-content p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Audience Cards */
.audience-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-5);
    overflow: hidden;
    animation: cardIn 0.4s var(--ease-out);
}

.audience-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5) var(--space-6);
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-subtle);
}

.audience-badge {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.audience-number {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--primary);
}

.audience-body {
    padding: var(--space-6);
}

.audience-body .input-row {
    margin-bottom: var(--space-5);
}

.audience-body .input-row:last-child {
    margin-bottom: 0;
}

.audience-body .input-group.full-width {
    margin-bottom: var(--space-5);
}

/* ================================================
   11. BUDGET SECTION (Step 6)
   
   Budget inputs and platform split slider
   ================================================ */
.budget-input-wrapper {
    margin-bottom: var(--space-6);
}

.budget-input {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 2px solid var(--border-default);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--duration-fast);
}

.budget-input:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.budget-input .currency {
    padding: var(--space-4) var(--space-5);
    background: var(--bg-elevated);
    color: var(--text-muted);
    font-size: 1.25rem;
    font-weight: 600;
    border-right: 1px solid var(--border-default);
}

.budget-input input {
    flex: 1;
    border: none;
    border-radius: 0;
    font-size: 1.5rem;
    font-weight: 600;
    padding: var(--space-4);
}

.budget-input input:focus {
    box-shadow: none;
}

.budget-input .period {
    padding: var(--space-4) var(--space-5);
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.budget-input.small {
    max-width: 260px;
}

.budget-input.small input {
    font-size: 1.125rem;
}

/* Platform Split Slider */
.platform-split {
    margin-bottom: var(--space-6);
}

.platform-split > label {
    display: block;
    margin-bottom: var(--space-3);
}

.split-control {
    background: var(--bg-input);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
}

.split-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-4);
}

.split-platform {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.8125rem;
    font-weight: 600;
}

.split-platform.meta {
    color: var(--meta-blue);
}

.split-platform.google {
    color: var(--google-blue);
}

.split-platform svg {
    width: 16px;
    height: 16px;
}

.split-slider-wrapper {
    position: relative;
    height: 12px;
    margin-bottom: var(--space-4);
}

.split-slider-wrapper input[type="range"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
    padding: 0;
}

.split-track {
    display: flex;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
}

.split-fill.meta {
    background: linear-gradient(90deg, var(--meta-blue), #60a5fa);
    transition: width var(--duration-fast);
}

.split-fill.google {
    background: linear-gradient(90deg, #60a5fa, var(--google-blue));
    transition: width var(--duration-fast);
}

.split-thumb {
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background: white;
    border: 3px solid var(--bg-base);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: var(--shadow-md);
    pointer-events: none;
    transition: left var(--duration-fast);
}

.split-values {
    display: flex;
    justify-content: space-between;
}

.split-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.25rem;
    font-weight: 600;
}

.split-value.meta {
    color: var(--meta-blue);
}

.split-value.google {
    color: var(--google-blue);
}

/* Completion Message */
.completion-message {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    padding: var(--space-6);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: var(--radius-xl);
    margin-top: var(--space-6);
}

.completion-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.2);
    border-radius: 50%;
    flex-shrink: 0;
}

.completion-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.completion-text h4 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.completion-text p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ================================================
   12. FILE UPLOAD (Step 2)
   
   Drag and drop file upload zones
   ================================================ */
.file-upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    padding: var(--space-10) var(--space-6);
    background: var(--bg-input);
    border: 2px dashed var(--border-default);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--duration-fast);
    position: relative;
}

.file-upload-zone:hover {
    border-color: var(--primary);
    background: rgba(34, 197, 94, 0.05);
}

.file-upload-zone.drag-over {
    border-color: var(--primary);
    background: rgba(34, 197, 94, 0.1);
    transform: scale(1.01);
}

.file-upload-zone .upload-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.15);
    border-radius: 50%;
}

.file-upload-zone .upload-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.file-upload-zone .upload-text {
    text-align: center;
}

.file-upload-zone .upload-title {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.file-upload-zone .upload-hint {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.file-upload-zone .file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    /* Prevent file input from capturing clicks - let the parent zone handle it */
    pointer-events: none;
}

/* Uploaded Files List */
.uploaded-files {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-top: var(--space-4);
}

.uploaded-file-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    animation: cardIn 0.3s var(--ease-out);
}

.uploaded-file-item .file-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.15);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.uploaded-file-item .file-icon svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.uploaded-file-item .file-info {
    flex: 1;
    min-width: 0;
}

.uploaded-file-item .file-name {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.uploaded-file-item .file-size {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.uploaded-file-item .file-remove {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--duration-fast);
    flex-shrink: 0;
}

.uploaded-file-item .file-remove:hover {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
}

.uploaded-file-item .file-remove svg {
    width: 14px;
    height: 14px;
}

/* ================================================
   13. MODALS
   
   Success, Support, and Auth modals
   ================================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-normal);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
}

.modal-container {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 440px;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-2xl);
    padding: var(--space-10);
    text-align: center;
    transform: scale(0.95);
    transition: transform var(--duration-normal) var(--ease-out);
    overflow: hidden;
}

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

.modal-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--space-6);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.2);
    border-radius: 50%;
}

.modal-icon svg {
    width: 36px;
    height: 36px;
    color: var(--primary);
}

.modal-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.modal-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-8);
}

.modal-footer {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
}

/* Support Modal Specific Styles */
.support-modal-content {
    padding: var(--space-8);
}

.support-icon {
    background: rgba(59, 130, 246, 0.2);
}

.support-icon svg {
    color: var(--info);
}

.support-email-box {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-5);
    background: var(--bg-input);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-6);
}

.support-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
}

.support-email-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: color var(--duration-fast);
}

.support-email-link:hover {
    color: var(--primary-light);
}

.support-email-link svg {
    width: 20px;
    height: 20px;
}

/* Auth Modal - Premium Design */
.auth-modal {
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

.auth-modal .modal-backdrop {
    background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.95) 0%, rgba(0, 0, 0, 0.98) 100%);
    backdrop-filter: blur(12px);
}

.auth-modal .modal-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 420px;
    animation: authModalSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.auth-container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.auth-modal .modal-content {
    background: linear-gradient(165deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: var(--radius-2xl);
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.03),
        0 25px 50px -12px rgba(0, 0, 0, 0.6),
        0 0 100px -30px rgba(34, 197, 94, 0.2);
    width: 100%;
    max-width: 420px;
}

.auth-content {
    padding: var(--space-8) var(--space-6);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Subtle decorative gradient orb */
.auth-content::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.auth-header {
    text-align: center;
    margin-bottom: var(--space-6);
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-logo {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-4);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Glow ring behind logo */
.auth-logo::before {
    content: '';
    position: absolute;
    inset: -6px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    animation: authLogoGlow 3s ease-in-out infinite alternate;
}

@keyframes authLogoGlow {
    from { opacity: 0.5; transform: scale(1); }
    to { opacity: 0.8; transform: scale(1.05); }
}

.auth-logo svg {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 12px rgba(34, 197, 94, 0.3));
}

.auth-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    text-align: center;
}

.auth-header p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.5;
    text-align: center;
}

.auth-tabs {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
    padding: var(--space-1);
    background: var(--bg-input);
    border-radius: var(--radius-lg);
}

.auth-tab {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    background: transparent;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--duration-fast);
}

.auth-tab:hover {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
}

.auth-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-base);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.auth-error {
    padding: var(--space-4);
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-md);
    color: var(--error);
    font-size: 0.875rem;
    margin-bottom: var(--space-5);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.auth-form .input-group {
    margin-bottom: 0;
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: var(--space-4);
    margin-top: var(--space-2);
}

/* Auth Footer - Clean centered styling */
.auth-footer {
    text-align: center;
    margin-top: var(--space-5);
    padding-top: var(--space-4);
    border-top: 1px solid rgba(148, 163, 184, 0.08);
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-footer p {
    font-size: 0.8125rem;
    color: var(--text-dim);
    margin: 0;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.auth-footer p::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

/* Clerk Auth Container - Full width centered */
.clerk-auth-container {
    position: relative;
    width: 100%;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.clerk-auth-container > div {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Style Clerk's development mode banner */
.clerk-auth-container .cl-internal-b3fm6y {
    position: relative !important;
    bottom: auto !important;
    margin-top: var(--space-3);
    border-radius: var(--radius-md);
}

/* Override Clerk's default styles - transparent seamless */
.cl-rootBox {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.cl-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
}

.cl-cardBox {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    width: 100% !important;
}

/* Main content - full width centered */
.cl-main {
    width: 100% !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

/* Hide Clerk's header since we have our own */
.cl-headerTitle,
.cl-headerSubtitle,
.cl-header {
    display: none !important;
}

/* Social buttons container - centered */
.cl-socialButtons {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    margin-bottom: var(--space-2) !important;
}

.cl-socialButtonsBlockButtonArrow {
    display: none !important;
}

/* Input fields - Full width clean styling */
.cl-formFieldInput {
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(148, 163, 184, 0.15) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-md) !important;
    padding: 14px 16px !important;
    font-size: 15px !important;
    width: 100% !important;
    transition: all 0.2s ease !important;
}

.cl-formFieldInput::placeholder {
    color: var(--text-dim) !important;
}

.cl-formFieldInput:hover {
    border-color: rgba(148, 163, 184, 0.25) !important;
}

.cl-formFieldInput:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12) !important;
    background: rgba(15, 23, 42, 0.8) !important;
    outline: none !important;
}

/* Form field labels - left aligned for readability */
.cl-formFieldLabel {
    color: var(--text-secondary) !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    text-align: left !important;
    display: block !important;
    margin-bottom: 8px !important;
}

/* Form field wrapper - full width */
.cl-formField {
    width: 100% !important;
    text-align: left !important;
}

/* Form field row - ensure spacing */
.cl-formFieldRow {
    margin-bottom: var(--space-4) !important;
    width: 100% !important;
}

/* Primary button - Full width gradient with arrow */
.cl-formButtonPrimary {
    background: linear-gradient(135deg, var(--primary) 0%, #16a34a 100%) !important;
    border: none !important;
    border-radius: var(--radius-lg) !important;
    padding: 14px 24px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    width: 100% !important;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3) !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
}

.cl-formButtonPrimary:hover {
    background: linear-gradient(135deg, #4ade80 0%, var(--primary) 100%) !important;
    box-shadow: 0 6px 24px rgba(34, 197, 94, 0.4) !important;
    transform: translateY(-1px) !important;
}

.cl-formButtonPrimary:active {
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.25) !important;
    transform: translateY(0) !important;
}

.cl-footerActionLink {
    color: var(--primary) !important;
    font-weight: 600 !important;
    transition: color 0.2s ease !important;
}

.cl-footerActionLink:hover {
    color: var(--primary-light) !important;
}

/* Social/Google Sign-In Button - Centered pill style */
.cl-socialButtonsBlockButton {
    background: rgba(51, 65, 85, 0.7) !important;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
    border-radius: var(--radius-full) !important;
    width: auto !important;
    min-width: 220px !important;
    padding: 12px 28px !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
}

.cl-socialButtonsBlockButton:hover {
    background: rgba(71, 85, 105, 0.85) !important;
    border-color: rgba(148, 163, 184, 0.35) !important;
    transform: translateY(-1px) !important;
}

.cl-socialButtonsBlockButton:active {
    background: rgba(51, 65, 85, 0.9) !important;
    transform: translateY(0) !important;
}

.cl-socialButtonsBlockButtonText {
    font-weight: 500 !important;
    font-size: 14px !important;
    color: var(--text-primary) !important;
    flex: none !important;
}

/* Divider - Centered with proper spacing */
.cl-dividerRow {
    margin: var(--space-5) 0 !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.cl-dividerLine {
    background: rgba(148, 163, 184, 0.12) !important;
    height: 1px !important;
    flex: 1 !important;
}

.cl-dividerText {
    color: var(--text-dim) !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    text-transform: lowercase !important;
    padding: 0 var(--space-4) !important;
    background: transparent !important;
}

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

.cl-identityPreviewEditButton {
    color: var(--primary) !important;
    font-weight: 500 !important;
}

/* Identity preview box */
.cl-identityPreview {
    background: rgba(30, 41, 59, 0.5) !important;
    border: 1px solid rgba(148, 163, 184, 0.12) !important;
    border-radius: var(--radius-md) !important;
    padding: 12px 16px !important;
    width: 100% !important;
}

/* Alternative methods button */
.cl-alternativeMethodsBlockButton {
    background: rgba(30, 41, 59, 0.5) !important;
    border: 1px solid rgba(148, 163, 184, 0.12) !important;
    border-radius: var(--radius-md) !important;
    padding: 12px 16px !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
}

.cl-alternativeMethodsBlockButton:hover {
    background: rgba(51, 65, 85, 0.6) !important;
    border-color: rgba(148, 163, 184, 0.2) !important;
}

/* Social button icon container */
.cl-socialButtonsIconButton {
    background: rgba(51, 65, 85, 0.5) !important;
    border: 1px solid rgba(148, 163, 184, 0.15) !important;
    border-radius: var(--radius-md) !important;
    transition: all 0.2s ease !important;
}

.cl-socialButtonsIconButton:hover {
    background: rgba(71, 85, 105, 0.6) !important;
}

/* Clerk Development Mode Badge */
.cl-internal-b3fm6y,
.cl-dev-mode-badge,
[data-localization-key="developmentMode"],
.cl-footer__developmentBadge {
    border-radius: var(--radius-sm) !important;
    margin-top: var(--space-3) !important;
    font-size: 0.7rem !important;
}

/* Clerk footer - centered */
.cl-footer {
    position: relative !important;
    margin-top: var(--space-5) !important;
    width: 100% !important;
    background: transparent !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.cl-footerAction {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.cl-footerActionText {
    color: var(--text-muted) !important;
    font-size: 14px !important;
}

/* Make all form elements full width */
.cl-form {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

/* Internal Clerk wrapper - ensure full width and centered */
.cl-signIn-root,
.cl-signUp-root {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.cl-internal-b3fm6y,
.cl-internal-1dauvpw {
    width: 100% !important;
    border-radius: var(--radius-md) !important;
}

/* Power by Clerk badge - centered */
.cl-footerPages,
.cl-footerPagesLink {
    justify-content: center !important;
    text-align: center !important;
}

/* Ensure Clerk's internal fixed elements stay within container */
.clerk-auth-container [style*="position: fixed"],
.clerk-auth-container [style*="position:fixed"] {
    position: relative !important;
}

/* Clerk branding link (Secured by Clerk) */
.cl-internal-wkkub3,
.cl-internal-1fsy7p0 {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: var(--space-4) !important;
    padding-top: var(--space-3) !important;
    border-top: 1px solid rgba(148, 163, 184, 0.08) !important;
}

/* OTP Input styling */
.cl-otpCodeFieldInput {
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1.5px solid rgba(148, 163, 184, 0.15) !important;
    border-radius: var(--radius-md) !important;
    color: var(--text-primary) !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.cl-otpCodeFieldInput:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15) !important;
}

/* Back button styling */
.cl-formResendCodeLink,
.cl-backLink {
    color: var(--text-muted) !important;
    font-weight: 500 !important;
    transition: color 0.2s ease !important;
}

.cl-formResendCodeLink:hover,
.cl-backLink:hover {
    color: var(--primary) !important;
}

/* ================================================
   14. FOOTER NAVIGATION
   
   Fixed footer with navigation buttons
   ================================================ */
.form-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-subtle);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-4) var(--space-8);
    gap: var(--space-4);
}

.footer-spacer {
    flex: 1;
}

.footer-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
}

#progressText {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
}

.progress-bar {
    width: 200px;
    height: 4px;
    background: var(--border-default);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 2px;
    transition: width var(--duration-slow) var(--ease-out);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration-fast);
    border: none;
    text-decoration: none;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-default);
}

.btn-ghost:hover {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

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

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-success {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: var(--space-4) var(--space-8);
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 30px var(--primary-glow);
}

/* ================================================
   15. FEATURED SERVICE CARD (SmartGraft)
   
   Special styling for featured partner
   ================================================ */
.featured-service-card {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(34, 197, 94, 0.1) 0%,
        rgba(34, 197, 94, 0.03) 50%,
        rgba(168, 85, 247, 0.08) 100%);
    border: 2px solid rgba(34, 197, 94, 0.35);
    border-radius: var(--radius-2xl);
    padding: 0;
    margin-bottom: var(--space-8);
    overflow: hidden;
    animation: featuredPulse 4s ease-in-out infinite;
}

@keyframes featuredPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.2),
                    0 8px 32px rgba(34, 197, 94, 0.15);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1),
                    0 12px 48px rgba(34, 197, 94, 0.2);
    }
}

.featured-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--primary) 0%, 
        #4ade80 25%,
        #a855f7 50%,
        #4ade80 75%,
        var(--primary) 100%);
    background-size: 200% 100%;
    animation: gradientSlide 3s linear infinite;
}

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

.featured-badge {
    position: absolute;
    top: var(--space-5);
    right: var(--space-5);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.featured-badge svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    stroke: none;
}

.featured-content {
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.featured-logo {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.smartgraft-logo {
    font-family: 'Inter', sans-serif;
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.sg-smart {
    color: var(--text-primary);
}

.sg-graft {
    color: var(--primary);
}

.featured-tagline {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    font-style: italic;
}

.featured-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.featured-info > p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-5);
}

.featured-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: var(--space-3) var(--space-4);
    background: rgba(34, 197, 94, 0.1);
    border-radius: var(--radius-md);
    border: 1px solid rgba(34, 197, 94, 0.2);
    transition: all var(--duration-fast);
}

.highlight-item:hover {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
    transform: translateY(-1px);
}

.highlight-item svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
    flex-shrink: 0;
}

.featured-media {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    background: var(--bg-input);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
}

.media-badge {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    flex-shrink: 0;
}

.media-logos {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-2);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.media-dot {
    color: var(--text-dim);
}

.featured-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    cursor: pointer;
    padding: var(--space-5);
    background: var(--bg-elevated);
    border-radius: var(--radius-xl);
    border: 2px solid var(--border-default);
    margin-top: var(--space-2);
    transition: all var(--duration-fast);
}

.featured-checkbox:hover {
    border-color: var(--primary);
    background: rgba(34, 197, 94, 0.08);
}

.featured-checkbox input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkbox-visual {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-input);
    border: 2px solid var(--border-default);
    border-radius: var(--radius-md);
    transition: all var(--duration-fast);
    flex-shrink: 0;
}

.checkbox-visual svg {
    width: 18px;
    height: 18px;
    color: white;
    opacity: 0;
    transform: scale(0.5);
    transition: all var(--duration-fast);
}

.featured-checkbox input:checked + .checkbox-visual {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}

.featured-checkbox input:checked + .checkbox-visual svg {
    opacity: 1;
    transform: scale(1);
}

.featured-checkbox input:checked ~ .checkbox-label {
    color: var(--primary);
}

.checkbox-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-secondary);
    transition: color var(--duration-fast);
}

.featured-service-card:has(input:checked) {
    border-color: var(--primary);
    background: linear-gradient(135deg, 
        rgba(34, 197, 94, 0.15) 0%,
        rgba(34, 197, 94, 0.08) 50%,
        rgba(168, 85, 247, 0.1) 100%);
}

.featured-service-card:has(input:checked) .featured-checkbox {
    border-color: var(--primary);
    background: rgba(34, 197, 94, 0.12);
}

/* Scheduling Section */
.scheduling-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.scheduling-intro {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-5);
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: var(--radius-lg);
}

.scheduling-intro .scheduling-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.2);
    border-radius: 50%;
    flex-shrink: 0;
}

.scheduling-intro .scheduling-icon svg {
    width: 26px;
    height: 26px;
    color: var(--primary);
}

.scheduling-intro .scheduling-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.scheduling-intro .scheduling-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Cal.com Booking Container */
.cal-booking-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.cal-booking-btn {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    width: 100%;
    padding: var(--space-6);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
    border: 2px solid rgba(34, 197, 94, 0.4);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    font-family: inherit;
    text-align: left;
}

.cal-booking-btn:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(34, 197, 94, 0.1));
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(34, 197, 94, 0.25);
}

.cal-booking-btn:active {
    transform: translateY(0);
}

.cal-btn-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.2);
    border-radius: var(--radius-lg);
    flex-shrink: 0;
}

.cal-btn-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.cal-btn-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.cal-btn-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.cal-btn-subtitle {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}

.cal-btn-arrow {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
    transition: transform var(--duration-fast);
}

.cal-btn-arrow svg {
    width: 20px;
    height: 20px;
    color: var(--bg-base);
}

.cal-booking-btn:hover .cal-btn-arrow {
    transform: translateX(3px);
}

/* Cal.com Feature Pills */
.cal-booking-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    justify-content: center;
}

.cal-feature {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.cal-feature svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

/* Auth Success Message */
.auth-success {
    padding: var(--space-4);
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-md);
    color: var(--primary);
    font-size: 0.875rem;
    margin-bottom: var(--space-5);
}

/* Auth Checkmark Animation */
.auth-checkmark {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: authCheckmarkDraw 0.6s ease-out 0.3s forwards;
}

@keyframes authCheckmarkDraw {
    to {
        stroke-dashoffset: 0;
    }
}

/* Auth Modal Error States */
.cl-formFieldErrorText {
    color: var(--error) !important;
    font-size: 0.8125rem !important;
    margin-top: var(--space-2) !important;
}

.cl-formFieldInput[data-error="true"],
.cl-formFieldInput:invalid:not(:placeholder-shown) {
    border-color: rgba(239, 68, 68, 0.5) !important;
}

/* Loading state for auth modal */
.auth-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-10);
    gap: var(--space-4);
}

.auth-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(34, 197, 94, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.auth-loading-text {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Spin Animation for Loading */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* ================================================
   16. RESPONSIVE DESIGN
   
   Mobile-first responsive adjustments
   ================================================ */
@media (max-width: 1024px) {
    .header-progress {
        display: none;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: var(--space-3) var(--space-4);
    }
    
    .logo-tagline {
        display: none;
    }
    
    .help-btn span {
        display: none;
    }
    
    .main-content {
        padding: var(--space-6) var(--space-4);
        padding-bottom: 120px;
    }
    
    .step-title {
        font-size: 1.75rem;
    }
    
    .input-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        padding: var(--space-3) var(--space-4);
    }
    
    .footer-progress {
        display: none;
    }
    
    .user-display {
        padding: var(--space-2);
    }
    
    .user-email {
        display: none;
    }
    
    .save-status {
        display: none;
    }
    
    /* Auth Modal - Mobile Optimizations */
    .auth-modal {
        padding: var(--space-3);
    }
    
    .auth-modal .modal-container {
        max-width: 100%;
    }
    
    .auth-container {
        width: 100%;
        max-width: 100%;
    }
    
    .auth-modal .modal-content {
        max-width: 100%;
        border-radius: var(--radius-xl);
    }
    
    .auth-content {
        padding: var(--space-6) var(--space-5);
    }
    
    .auth-header {
        margin-bottom: var(--space-5);
    }
    
    .auth-header h2 {
        font-size: 1.375rem;
    }
    
    .auth-header p {
        font-size: 0.875rem;
    }
    
    .auth-logo {
        width: 52px;
        height: 52px;
        margin-bottom: var(--space-3);
    }
    
    .auth-footer {
        margin-top: var(--space-4);
        padding-top: var(--space-3);
    }
    
    .auth-footer p {
        font-size: 0.75rem;
    }
    
    /* Clerk mobile adjustments */
    .cl-socialButtonsBlockButton {
        min-width: 200px !important;
        padding: 12px 20px !important;
    }
    
    .cl-formButtonPrimary {
        padding: 14px 20px !important;
    }
    
    .cl-formFieldInput {
        font-size: 16px !important; /* Prevents iOS zoom on focus */
    }
    
    .service-variation-selector {
        grid-template-columns: 1fr;
    }
    
    .services-summary-bar {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
        padding: var(--space-5);
    }
    
    .summary-content {
        flex-direction: column;
        gap: var(--space-3);
    }
    
    .summary-count {
        font-size: 2rem;
    }
    
    .quick-select-row {
        justify-content: center;
    }
    
    .quick-select-btn {
        flex: 1 1 auto;
        justify-content: center;
        min-width: 130px;
    }
    
    .category-card-header {
        padding: var(--space-4) var(--space-5);
        gap: var(--space-3);
    }
    
    .category-card-icon {
        width: 44px;
        height: 44px;
    }
    
    .category-card-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .category-card-info h4 {
        font-size: 0.9375rem;
    }
    
    .service-category-card.expanded .category-card-body {
        padding: var(--space-5);
    }
    
    .services-chips {
        gap: var(--space-2);
    }
    
    .chip-content {
        padding: var(--space-3) var(--space-3);
        font-size: 0.8125rem;
    }
    
    .chip-badge {
        font-size: 0.5625rem;
        padding: 2px 6px;
    }
    
    .scheduling-intro {
        flex-direction: column;
        text-align: center;
    }
    
    .cal-booking-btn {
        flex-direction: column;
        text-align: center;
        padding: var(--space-5);
    }
    
    .cal-btn-content {
        align-items: center;
    }
    
    .cal-btn-arrow {
        margin-top: var(--space-2);
    }
    
    .cal-booking-btn:hover .cal-btn-arrow {
        transform: translateY(3px);
    }
    
    .cal-booking-features {
        flex-direction: column;
        align-items: center;
    }
    
    .cal-feature {
        width: 100%;
        justify-content: center;
    }
    
    .file-upload-zone {
        padding: var(--space-6);
    }
    
    .file-upload-zone .upload-icon {
        width: 48px;
        height: 48px;
    }
    
    .featured-content {
        padding: var(--space-6);
        padding-top: var(--space-10);
    }
    
    .featured-badge {
        top: var(--space-4);
        right: var(--space-4);
        font-size: 0.625rem;
        padding: 6px 12px;
    }
    
    .smartgraft-logo {
        font-size: 1.75rem;
    }
    
    .featured-highlights {
        grid-template-columns: 1fr;
    }
    
    .featured-media {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
    }
    
    .media-logos {
        font-size: 0.75rem;
    }
    
    .featured-checkbox {
        padding: var(--space-4);
    }
    
    .checkbox-visual {
        width: 28px;
        height: 28px;
    }
    
    .checkbox-label {
        font-size: 0.9375rem;
    }
}

@media (max-width: 480px) {
    /* Auth Modal - Small screen optimizations */
    .auth-modal {
        padding: var(--space-2);
    }
    
    .auth-content {
        padding: var(--space-5) var(--space-4);
    }
    
    .auth-header h2 {
        font-size: 1.25rem;
    }
    
    .auth-header p {
        font-size: 0.8125rem;
    }
    
    .auth-logo {
        width: 48px;
        height: 48px;
    }
    
    .cl-socialButtonsBlockButton {
        min-width: 180px !important;
        padding: 10px 18px !important;
        font-size: 13px !important;
    }
    
    .cl-formFieldInput {
        padding: 12px 14px !important;
    }
    
    .cl-formButtonPrimary {
        padding: 12px 18px !important;
        font-size: 14px !important;
    }
    
    .services-search input {
        font-size: 16px; /* Prevents iOS zoom on focus */
        padding: var(--space-4);
        padding-left: 48px;
        padding-right: 48px;
    }
    
    .quick-select-row {
        flex-direction: column;
    }
    
    .quick-select-btn {
        width: 100%;
    }
    
    .category-card-header {
        padding: var(--space-4);
    }
    
    .category-card-icon {
        width: 40px;
        height: 40px;
    }
    
    .category-card-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .category-card-info h4 {
        font-size: 0.875rem;
    }
    
    .category-card-count {
        font-size: 0.75rem;
    }
    
    .category-card-toggle {
        width: 32px;
        height: 32px;
    }
    
    .services-chips {
        gap: var(--space-2);
    }
    
    .chip-content {
        padding: 10px 14px;
        font-size: 0.8125rem;
    }
    
    .chip-check {
        width: 16px;
        height: 16px;
    }
    
    .chip-check svg {
        width: 10px;
        height: 10px;
    }
    
    .select-all-category-btn {
        width: 100%;
        justify-content: center;
        padding: var(--space-3);
    }
    
    .variation-card {
        flex-direction: column;
        text-align: center;
        padding: var(--space-4);
    }
    
    .variation-icon {
        width: 40px;
        height: 40px;
    }
    
    .gender-selector.compact {
        flex-wrap: wrap;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
    }
    
    .featured-content {
        padding: var(--space-5);
        padding-top: var(--space-12);
    }
    
    .smartgraft-logo {
        font-size: 1.5rem;
    }
    
    .featured-info h3 {
        font-size: 1.0625rem;
    }
    
    .featured-info > p {
        font-size: 0.875rem;
    }
    
    .highlight-item {
        font-size: 0.75rem;
        padding: var(--space-2) var(--space-3);
    }
    
    .highlight-item svg {
        width: 16px;
        height: 16px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .service-chip .chip-content {
        padding: 12px 16px;
    }
    
    .service-chip:active .chip-content {
        transform: scale(0.98);
    }
    
    .category-card-header:active {
        background: var(--bg-elevated);
    }
    
    .quick-select-btn:active {
        transform: scale(0.98);
    }
}

/* ================================================
   17. UTILITIES & ANIMATIONS
   
   Utility classes and keyframe animations
   ================================================ */

/* Card animation for removals */
@keyframes cardOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }
}

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

::-webkit-scrollbar-track {
    background: transparent;
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}

/* Text Selection */
::selection {
    background: rgba(34, 197, 94, 0.3);
    color: var(--text-primary);
}

/* Focus Visible for Accessibility */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Hide focus ring for mouse users */
:focus:not(:focus-visible) {
    outline: none;
}

/* Screen Reader Only */
.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;
}