/* ================================================
   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
     * KlinIQ brand colors - gold/mustard for CTAs, navy for headings
     */
    --primary: #C49A3C;           /* KlinIQ gold - buttons, links, accents */
    --primary-dark: #A8832E;      /* Darker gold - hover states */
    --primary-light: #D4AA4C;     /* Lighter gold - highlights */
    --primary-glow: rgba(196, 154, 60, 0.30);  /* Glow effect for buttons */
    
    /*
     * BRAND NAVY
     * Used for headings, logo text, and strong elements
     */
    --brand-navy: #2B4C7E;        /* KlinIQ navy blue */
    --brand-navy-dark: #1E3A5F;   /* Darker navy */
    --brand-navy-light: #3A6199;  /* Lighter navy */
    
    /* 
     * BACKGROUNDS
     * Light theme backgrounds matching KlinIQ homepage
     */
    --bg-base: #F0F4FA;           /* Main page background - light ice blue */
    --bg-elevated: #F8FAFC;       /* Elevated elements - near white */
    --bg-card: #FFFFFF;           /* Card backgrounds - white */
    --bg-card-hover: #F1F5F9;     /* Card hover state */
    --bg-input: #F8FAFC;          /* Input field backgrounds */
    
    /* 
     * BORDERS
     * Subtle borders for light theme
     */
    --border-subtle: rgba(0, 0, 0, 0.06);     /* Very subtle borders */
    --border-default: rgba(0, 0, 0, 0.10);    /* Default border */
    --border-hover: rgba(0, 0, 0, 0.18);      /* Hover state border */
    --border-focus: var(--primary);            /* Focus state border */
    
    /* 
     * TEXT COLORS
     * Dark text on light backgrounds
     */
    --text-primary: #1E293B;      /* Main text - dark navy */
    --text-secondary: #475569;    /* Secondary text - slate gray */
    --text-muted: #64748B;        /* Muted text - medium gray */
    --text-dim: #94A3B8;          /* Dim text - lighter 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-7: 28px;
    --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
     * Softer shadows for light theme
     */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.10);
    --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 gold orb */
.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    opacity: 0.06;
    animation-delay: 0s;
}

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

/* Center blue orb */
.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--brand-navy-light) 0%, transparent 70%);
    top: calc(50% - 175px);
    left: calc(50% - 175px);
    opacity: 0.03;
    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(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 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(255, 255, 255, 0.90);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

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

.logo-mark svg,
.logo-mark img {
    width: auto;
    height: 36px;
}

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

.logo-name {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--brand-navy);
}

.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 {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
}

.progress-steps {
    display: flex;
    align-items: center;
    gap: 2px;
}

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

.step-dot {
    width: 8px;
    height: 8px;
    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);
}

.progress-step:hover .step-dot {
    transform: scale(1.15);
    background: var(--primary-light);
}

.progress-step:hover .step-label {
    color: var(--text-primary);
}

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

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

.progress-connector {
    width: 12px;
    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);
    flex-shrink: 0;
}

.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(43, 76, 126, 0.10);
    border-radius: 50%;
}

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

.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: 36px;
    height: 36px;
    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.10);
    color: var(--success);
}

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

.save-status.error {
    background: rgba(239, 68, 68, 0.10);
    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: 900px;
}

/* 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);
    scroll-margin-top: 80px;
}

.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);
    padding: var(--space-4) 0;
}

.step-indicator {
    display: flex;
    align-items: baseline;
    justify-content: center;
    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(--brand-navy);
    margin-bottom: var(--space-4);
    position: relative;
    display: inline-block;
}

.step-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 2px;
}

.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: all var(--duration-normal) var(--ease-out);
    box-shadow: var(--shadow-sm);
}

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

.form-card.highlight {
    border-color: rgba(196, 154, 60, 0.25);
    background: linear-gradient(135deg, rgba(196, 154, 60, 0.06), 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: linear-gradient(135deg, rgba(43, 76, 126, 0.10), rgba(196, 154, 60, 0.06));
    border-radius: var(--radius-md);
    flex-shrink: 0;
    transition: transform var(--duration-fast);
}

.form-card:hover .card-icon {
    transform: scale(1.05);
}

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

.card-header-text h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--brand-navy);
    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(196, 154, 60, 0.15);
}

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(196, 154, 60, 0.15);
}

.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: #FFFFFF;
}

.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 - sticky when scrolling */
.services-summary-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-6);
    background: linear-gradient(135deg, rgba(196, 154, 60, 0.12), rgba(196, 154, 60, 0.05));
    border: 1.5px solid rgba(196, 154, 60, 0.30);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-6);
    opacity: 0;
    transform: translateY(-10px);
    transition: all var(--duration-normal) var(--ease-out);
    pointer-events: none;
    position: sticky;
    top: 72px;
    z-index: 50;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.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(196, 154, 60, 0.18);
    border-radius: 50%;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(196, 154, 60, 0.3); }
    50% { box-shadow: 0 0 0 8px rgba(196, 154, 60, 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 {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-5);
    background: rgba(239, 68, 68, 0.12);
    border: 1.5px solid rgba(239, 68, 68, 0.25);
    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 svg {
    width: 14px;
    height: 14px;
}

.summary-clear-btn:hover {
    background: var(--error);
    border-color: var(--error);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.summary-clear-btn:active {
    transform: translateY(0);
}

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

.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-5) var(--space-5);
    padding-left: 52px;
    padding-right: 52px;
    background: var(--bg-elevated);
    border: 2px solid var(--border-default);
    border-radius: var(--radius-2xl);
    font-size: 1rem;
    color: var(--text-primary);
    transition: all var(--duration-fast);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

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

.services-search input:hover {
    border-color: var(--border-hover);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.services-search input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(196, 154, 60, 0.12),
                0 4px 16px rgba(0, 0, 0, 0.06);
}

.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: 10px var(--space-5);
    background: var(--bg-elevated);
    border: 1.5px 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);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.quick-select-btn:hover {
    background: white;
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 154, 60, 0.15);
}

.quick-select-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

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

/* Section Heading Divider */
.services-section-heading {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

.section-heading-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-default), transparent);
}

.section-heading-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

/* 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: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out);
    border-left: 4px solid transparent;
}

.service-category-card:hover {
    border-color: var(--border-default);
    border-left-color: var(--border-default);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.service-category-card.expanded {
    border-color: var(--border-hover);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transform: translateY(0);
}

.service-category-card.has-selections {
    border-color: rgba(196, 154, 60, 0.35);
    border-left-color: var(--primary);
}

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

.service-category-card.search-match {
    border-color: var(--primary);
    border-left-color: var(--primary);
    background: linear-gradient(135deg, rgba(196, 154, 60, 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;
}
.service-category-card[data-category="injectables"].expanded { border-left-color: #a78bfa; }

.category-card-icon.fillers {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.25), rgba(236, 72, 153, 0.1));
    color: #f472b6;
}
.service-category-card[data-category="fillers"].expanded { border-left-color: #f472b6; }

.category-card-icon.laser {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(245, 158, 11, 0.1));
    color: #fbbf24;
}
.service-category-card[data-category="laser"].expanded { border-left-color: #fbbf24; }

.category-card-icon.candela {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(139, 92, 246, 0.08));
    color: #a855f7;
}
.service-category-card[data-category="candela"].expanded { border-left-color: #a855f7; }

.category-card-icon.body {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(34, 197, 94, 0.1));
    color: var(--primary-light);
}
.service-category-card[data-category="body"].expanded { border-left-color: #22c55e; }

.category-card-icon.skin {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(59, 130, 246, 0.1));
    color: #60a5fa;
}
.service-category-card[data-category="skin"].expanded { border-left-color: #60a5fa; }

.category-card-icon.tightening {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(239, 68, 68, 0.1));
    color: #f87171;
}
.service-category-card[data-category="tightening"].expanded { border-left-color: #f87171; }

.category-card-icon.wellness {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(34, 197, 94, 0.1));
    color: #4ade80;
}
.service-category-card[data-category="wellness"].expanded { border-left-color: #4ade80; }

.category-card-icon.hair {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(168, 85, 247, 0.1));
    color: #c084fc;
}
.service-category-card[data-category="hair"].expanded { border-left-color: #c084fc; }

.category-card-icon.sexual {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.25), rgba(244, 63, 94, 0.1));
    color: #fb7185;
}
.service-category-card[data-category="sexual"].expanded { border-left-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 0.4s var(--ease-out),
                padding 0.3s var(--ease-out),
                border-color var(--duration-fast);
}

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

/* Services Chips */
.services-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    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: 10px var(--space-5);
    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 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.service-chip:hover .chip-content {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.service-chip input:checked + .chip-content {
    background: linear-gradient(135deg, rgba(196, 154, 60, 0.15), rgba(196, 154, 60, 0.08));
    border-color: var(--primary);
    color: var(--text-primary);
    font-weight: 600;
    box-shadow: 0 0 0 3px rgba(196, 154, 60, 0.10),
                0 2px 8px rgba(196, 154, 60, 0.08);
}

.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 0.2s 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(196, 154, 60, 0.08);
}

/* Select All Button */
.select-all-category-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 8px var(--space-5);
    background: transparent;
    border: 1.5px 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 svg {
    width: 15px;
    height: 15px;
}

.select-all-category-btn:hover {
    border-color: var(--primary);
    border-style: solid;
    color: var(--primary);
    background: rgba(196, 154, 60, 0.06);
    transform: translateY(-1px);
}

.select-all-category-btn.all-selected {
    border-style: solid;
    border-color: var(--primary);
    background: rgba(196, 154, 60, 0.10);
    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);
}

/* Other Services Dynamic Entries */
.other-service-entry {
    margin-bottom: var(--space-3);
    animation: cardIn 0.3s var(--ease-out);
}

.other-service-row {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.other-service-input {
    flex: 1;
}

.remove-other-service-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.12);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--error);
    cursor: pointer;
    transition: all var(--duration-fast);
    flex-shrink: 0;
}

.remove-other-service-btn:hover {
    background: var(--error);
    color: white;
}

.remove-other-service-btn svg {
    width: 16px;
    height: 16px;
}

.add-other-service-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3);
    background: transparent;
    border: 2px dashed var(--border-default);
    border-radius: var(--radius-md);
    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-other-service-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(196, 154, 60, 0.05);
}

.add-other-service-btn svg {
    width: 18px;
    height: 18px;
}

/* ================================================
   9b. SERVICE DETAILS (3-dot menu, modal)

   Notes and file attachments per selected service
   ================================================ */

/* 3-dot button on selected service chips */
.service-details-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    margin-left: var(--space-1);
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    position: relative;
}

.service-details-btn:hover {
    background: rgba(196, 154, 60, 0.15);
    color: var(--primary);
    transform: scale(1.15);
}

.service-details-btn svg {
    width: 14px;
    height: 14px;
}

/* Indicator dot when service has details */
.service-details-btn.has-details::after {
    content: '';
    position: absolute;
    top: 1px;
    right: 1px;
    width: 7px;
    height: 7px;
    background: var(--primary);
    border-radius: 50%;
    border: 1.5px solid var(--bg-card);
}

/* Service Details Modal Overrides */
.service-details-container {
    max-width: 520px;
}

.service-details-content {
    text-align: left !important;
    padding: 0 !important;
}

.service-details-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: var(--space-6) var(--space-7);
    border-bottom: 1px solid var(--border-subtle);
}

.service-details-title-row {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.service-details-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(196, 154, 60, 0.12);
    border-radius: var(--radius-lg);
    flex-shrink: 0;
}

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

.service-details-header h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.service-details-subtitle {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 2px 0 0 0;
}

.service-details-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.service-details-close:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.service-details-close svg {
    width: 18px;
    height: 18px;
}

.service-details-body {
    padding: var(--space-8) var(--space-8) var(--space-7);
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.service-details-field {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.service-details-label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.service-details-label svg {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.service-details-body textarea {
    width: 100%;
    min-height: 110px;
    padding: var(--space-4) var(--space-5);
    background: var(--bg-input);
    border: 1.5px solid var(--border-default);
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: 0.875rem;
    color: var(--text-primary);
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-details-body textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(196, 154, 60, 0.12);
}

/* File dropzone */
.service-files-dropzone {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-7) var(--space-5);
    border: 2px dashed var(--border-default);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bg-input);
}

.service-files-dropzone:hover {
    border-color: var(--primary);
    background: rgba(196, 154, 60, 0.04);
}

.dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    color: var(--text-muted);
    font-size: 0.875rem;
}

.dropzone-content svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
    opacity: 0.6;
}

.dropzone-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.7;
}

/* File list */
.service-files-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-top: var(--space-2);
}

.service-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    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.25s var(--ease-out);
}

.service-file-info {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    min-width: 0;
}

.service-file-info svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
    flex-shrink: 0;
}

.service-file-name {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service-file-size {
    font-size: 0.6875rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.service-file-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.service-file-remove:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

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

/* Footer */
.service-details-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-3);
    padding: var(--space-5) var(--space-7);
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-elevated);
    border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
}

.service-details-footer .btn svg {
    width: 16px;
    height: 16px;
}

/* ================================================
   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(43, 76, 126, 0.08);
    border-radius: var(--radius-sm);
    color: var(--brand-navy);
}

.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: 32px;
    height: 32px;
    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(196, 154, 60, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(196, 154, 60, 0.10);
}

.add-location-btn:active,
.add-audience-btn:active {
    transform: translateY(0);
}

.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(196, 154, 60, 0.06);
}

.variation-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(43, 76, 126, 0.08);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

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

.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(196, 154, 60, 0.15);
}

.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(196, 154, 60, 0.10), rgba(196, 154, 60, 0.04));
    border: 1px solid rgba(196, 154, 60, 0.20);
    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(196, 154, 60, 0.15);
    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);
}

/* ================================================
   11b. META ACCOUNT SECTION (Step 7)

   Toggle switches, instruction lists, and info cards
   for Meta Ads Manager, Facebook Page, Instagram Page
   ================================================ */

/* Toggle switch in card header */
.meta-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    cursor: pointer;
    margin-left: auto;
    flex-shrink: 0;
}

.meta-toggle input[type="checkbox"] {
    display: none;
}

.meta-toggle-slider {
    position: relative;
    width: 52px;
    height: 28px;
    background: #b0b8c4;
    border: 2px solid #98a2b0;
    border-radius: 14px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.meta-toggle-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.meta-toggle input:checked + .meta-toggle-slider {
    background: var(--primary);
    border-color: var(--primary);
}

.meta-toggle input:checked + .meta-toggle-slider::after {
    transform: translateX(24px);
}

.meta-toggle-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 28px;
    transition: color 0.3s ease;
}

.meta-toggle input:checked ~ .meta-toggle-label {
    color: var(--primary);
}

/* Section content that appears on toggle */
.meta-section-content {
    border-top: 1px solid var(--border-light);
}

/* Prerequisites checklist */
.meta-prereqs {
    padding: var(--space-2) 0;
}

.meta-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-4) 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.meta-checklist li {
    position: relative;
    padding-left: var(--space-8);
    font-size: 0.9375rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.meta-checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 2px solid var(--primary);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23C49A3C' stroke-width='3' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

.meta-help-note {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Reference Documents Grid (MSA step) */
.reference-docs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

@media (max-width: 640px) {
    .reference-docs-grid {
        grid-template-columns: 1fr;
    }
}

.reference-doc-card {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    background: var(--surface-raised);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: all var(--duration-fast) var(--ease-out);
}

.reference-doc-card:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(196, 154, 60, 0.12);
    transform: translateY(-1px);
}

.reference-doc-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--bg-light);
}

.reference-doc-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--brand-navy);
}

.reference-doc-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.reference-doc-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.reference-doc-action {
    font-size: 0.6875rem;
    color: var(--text-dim);
    font-weight: 500;
}

.reference-doc-card:hover .reference-doc-action {
    color: var(--primary);
}

.reference-doc-arrow {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    opacity: 0.35;
    transition: opacity var(--duration-fast);
}

.reference-doc-arrow svg {
    width: 18px;
    height: 18px;
    stroke: var(--text-secondary);
}

.reference-doc-card:hover .reference-doc-arrow {
    opacity: 0.7;
}

/* Instruction steps for adding partner */
.meta-instructions {
    padding: var(--space-2) 0;
}

.meta-instructions-header h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--brand-navy);
    margin-bottom: var(--space-4);
}

.meta-steps-list {
    padding-left: var(--space-6);
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.meta-steps-list li {
    font-size: 0.9375rem;
    color: var(--text-primary);
    line-height: 1.6;
    padding-left: var(--space-2);
}

.meta-steps-list li::marker {
    color: var(--primary);
    font-weight: 600;
}

.meta-business-id {
    display: inline-block;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 2px 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.5px;
    user-select: all;
}

/* "No worries" message */
.meta-no-worry {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    background: linear-gradient(135deg, rgba(196, 154, 60, 0.06), rgba(196, 154, 60, 0.02));
    border: 1px solid rgba(196, 154, 60, 0.15);
    border-radius: var(--radius-lg);
    padding: var(--space-5) var(--space-6);
}

.meta-no-worry svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.meta-no-worry p {
    font-size: 0.9375rem;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.5;
}

/* ================================================
   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(196, 154, 60, 0.04);
}

.file-upload-zone.drag-over {
    border-color: var(--primary);
    background: rgba(196, 154, 60, 0.08);
    transform: scale(1.01);
}

.file-upload-zone .upload-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(43, 76, 126, 0.08);
    border-radius: 50%;
}

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

.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(43, 76, 126, 0.08);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

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

.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(196, 154, 60, 0.12);
    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(240, 244, 250, 0.95) 0%, rgba(226, 232, 240, 0.98) 100%);
    backdrop-filter: blur(12px);
}

.auth-modal .modal-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 440px;
    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: 440px;
    margin: 0 auto;
}

.auth-modal .modal-content {
    background: #FFFFFF;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-2xl);
    box-shadow: 
        0 0 0 1px rgba(0, 0, 0, 0.03),
        0 25px 50px -12px rgba(0, 0, 0, 0.12),
        0 0 100px -30px rgba(43, 76, 126, 0.08);
    width: 100%;
    max-width: 440px;
    overflow: visible !important;
}

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

/* 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(43, 76, 126, 0.04) 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: 160px;
    height: auto;
    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(43, 76, 126, 0.12) 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 img {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
}

.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(0, 0, 0, 0.03);
}

.auth-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #FFFFFF;
    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 var(--border-subtle);
    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 */
/* IMPORTANT: overflow: visible on ALL Clerk containers to prevent
   clipping of labels like "Password" / "Forgot password?" and OTP fields */
.cl-rootBox {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    overflow: visible !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;
    overflow: visible !important;
}

.cl-cardBox {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    width: 100% !important;
    overflow: visible !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;
    overflow: visible !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: var(--bg-input) !important;
    border: 1px solid var(--border-default) !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: var(--border-hover) !important;
}

.cl-formFieldInput:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(196, 154, 60, 0.12) !important;
    background: #FFFFFF !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 label row - contains "Password" + "Forgot password?" */
.cl-formFieldLabelRow {
    width: 100% !important;
    overflow: visible !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
}

/* "Forgot password?" and similar action links */
.cl-formFieldAction {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    overflow: visible !important;
}

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

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

/* Primary button - Full width gradient with arrow */
.cl-formButtonPrimary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 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;
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(196, 154, 60, 0.25) !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, var(--primary-light) 0%, var(--primary) 100%) !important;
    box-shadow: 0 6px 24px rgba(196, 154, 60, 0.35) !important;
    transform: translateY(-1px) !important;
}

.cl-formButtonPrimary:active {
    box-shadow: 0 2px 8px rgba(196, 154, 60, 0.2) !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: var(--bg-input) !important;
    border: 1px solid var(--border-default) !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: var(--bg-card-hover) !important;
    border-color: var(--border-hover) !important;
    transform: translateY(-1px) !important;
}

.cl-socialButtonsBlockButton:active {
    background: var(--bg-input) !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: var(--border-default) !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: var(--bg-input) !important;
    border: 1px solid var(--border-default) !important;
    border-radius: var(--radius-md) !important;
    padding: 12px 16px !important;
    width: 100% !important;
}

/* Alternative methods button */
.cl-alternativeMethodsBlockButton {
    background: var(--bg-input) !important;
    border: 1px solid var(--border-default) !important;
    border-radius: var(--radius-md) !important;
    padding: 12px 16px !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
}

.cl-alternativeMethodsBlockButton:hover {
    background: var(--bg-card-hover) !important;
    border-color: var(--border-hover) !important;
}

/* Social button icon container */
.cl-socialButtonsIconButton {
    background: var(--bg-input) !important;
    border: 1px solid var(--border-default) !important;
    border-radius: var(--radius-md) !important;
    transition: all 0.2s ease !important;
}

.cl-socialButtonsIconButton:hover {
    background: var(--bg-card-hover) !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;
    overflow: visible !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;
    overflow: visible !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;
}

/* Prevent ANY Clerk internal div from clipping form content
   (password labels, forgot password links, OTP fields, etc.) */
.clerk-auth-container div[class^="cl-"],
.clerk-auth-container div[class*=" cl-"] {
    overflow: visible !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-6) !important;
    padding-top: var(--space-4) !important;
    border-top: none !important;
    opacity: 0.4 !important;
    font-size: 11px !important;
    letter-spacing: 0.02em !important;
    transition: opacity 0.2s ease !important;
}

.cl-internal-wkkub3:hover,
.cl-internal-1fsy7p0:hover {
    opacity: 0.65 !important;
}

/* OTP / Verification code containers - centered and prevent clipping */
.cl-otpCodeField,
.cl-otpCodeFieldInputs {
    overflow: visible !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* OTP Input styling */
.cl-otpCodeFieldInput {
    background: var(--bg-input) !important;
    border: 1.5px solid var(--border-default) !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(196, 154, 60, 0.12) !important;
}

/* Resend code and alternative method links - centered */
.cl-formResendCodeLink,
.cl-backLink,
.cl-alternativeMethods {
    color: var(--text-muted) !important;
    font-weight: 500 !important;
    transition: color 0.2s ease !important;
    text-align: center !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !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(255, 255, 255, 0.90);
    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);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.btn-ghost:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(196, 154, 60, 0.20);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--primary-glow);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(196, 154, 60, 0.15);
}

.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 PARTNERS & SERVICE CARDS
   
   Featured partner cards with premium styling
   ================================================ */

/* Featured Partners Grid - Side by side on desktop */
.featured-partners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.featured-partners-grid .featured-service-card {
    margin-bottom: 0;
}

/* Featured Partners Section Heading */
.featured-partners-section {
    margin-bottom: var(--space-4);
}

.featured-partners-heading {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.featured-partners-heading::before,
.featured-partners-heading::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(196, 154, 60, 0.30), transparent);
}

.featured-partners-heading svg {
    width: 18px;
    height: 18px;
    fill: var(--primary);
    stroke: none;
}

.featured-service-card {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(196, 154, 60, 0.06) 0%,
        rgba(196, 154, 60, 0.02) 50%,
        rgba(43, 76, 126, 0.04) 100%);
    border: 2px solid rgba(196, 154, 60, 0.30);
    border-radius: var(--radius-2xl);
    padding: 0;
    margin-bottom: var(--space-8);
    overflow: hidden;
    animation: featuredPulse 4s ease-in-out infinite;
    display: flex;
    flex-direction: column;
}

@keyframes featuredPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(196, 154, 60, 0.15),
                    0 8px 32px rgba(196, 154, 60, 0.08);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(196, 154, 60, 0.06),
                    0 12px 48px rgba(196, 154, 60, 0.12);
    }
}

.featured-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--primary) 0%, 
        var(--primary-light) 25%,
        var(--brand-navy) 50%,
        var(--primary-light) 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(196, 154, 60, 0.30);
}

.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-5);
    flex: 1;
}

.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 {
    flex: 1;
}

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

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

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

.highlight-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: var(--space-2) var(--space-3);
    background: rgba(196, 154, 60, 0.06);
    border-radius: var(--radius-md);
    border: 1px solid rgba(196, 154, 60, 0.15);
    transition: all var(--duration-fast);
}

.highlight-item:hover {
    background: rgba(196, 154, 60, 0.10);
    border-color: rgba(196, 154, 60, 0.25);
    transform: translateY(-1px);
}

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

.featured-media {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    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.625rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

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

.media-logos > span:not(.media-dot) {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.media-dot {
    display: none;
}

.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(196, 154, 60, 0.06);
}

.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(196, 154, 60, 0.15);
}

.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(196, 154, 60, 0.10) 0%,
        rgba(196, 154, 60, 0.05) 50%,
        rgba(43, 76, 126, 0.06) 100%);
}

.featured-service-card:has(input:checked) .featured-checkbox {
    border-color: var(--primary);
    background: rgba(196, 154, 60, 0.08);
}

/* ================================================
   15b. DRIPBAR FEATURED CARD (Teal theme variant)
   ================================================ */
.dripbar-card {
    background: linear-gradient(135deg,
        rgba(14, 165, 233, 0.06) 0%,
        rgba(14, 165, 233, 0.02) 50%,
        rgba(6, 182, 212, 0.04) 100%);
    border-color: rgba(14, 165, 233, 0.30);
    animation: dripbarPulse 4s ease-in-out infinite;
}

@keyframes dripbarPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.15),
                    0 8px 32px rgba(14, 165, 233, 0.08);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.06),
                    0 12px 48px rgba(14, 165, 233, 0.12);
    }
}

.dripbar-card::before {
    background: linear-gradient(90deg,
        #0ea5e9 0%,
        #06b6d4 25%,
        #14b8a6 50%,
        #06b6d4 75%,
        #0ea5e9 100%);
    background-size: 200% 100%;
}

.dripbar-badge {
    background: linear-gradient(135deg, #0ea5e9, #0891b2);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.30);
}

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

.db-the {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1.5rem;
}

.db-drip {
    color: #0ea5e9;
}

.db-bar {
    color: #0891b2;
}

.dripbar-highlight {
    background: rgba(14, 165, 233, 0.06);
    border-color: rgba(14, 165, 233, 0.15);
}

.dripbar-highlight:hover {
    background: rgba(14, 165, 233, 0.10);
    border-color: rgba(14, 165, 233, 0.25);
}

.dripbar-highlight svg {
    color: #0ea5e9;
}

.dripbar-checkbox:hover {
    border-color: #0ea5e9;
    background: rgba(14, 165, 233, 0.06);
}

.dripbar-checkbox input:checked + .checkbox-visual {
    background: #0ea5e9;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

.dripbar-checkbox input:checked ~ .checkbox-label {
    color: #0ea5e9;
}

.dripbar-card:has(input:checked) {
    border-color: #0ea5e9;
    background: linear-gradient(135deg,
        rgba(14, 165, 233, 0.10) 0%,
        rgba(14, 165, 233, 0.05) 50%,
        rgba(6, 182, 212, 0.06) 100%);
}

.dripbar-card:has(input:checked) .dripbar-checkbox {
    border-color: #0ea5e9;
    background: rgba(14, 165, 233, 0.08);
}

/* 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(43, 76, 126, 0.05);
    border: 1px solid rgba(43, 76, 126, 0.12);
    border-radius: var(--radius-lg);
}

.scheduling-intro .scheduling-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(43, 76, 126, 0.10);
    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(196, 154, 60, 0.08), rgba(196, 154, 60, 0.03));
    border: 2px solid rgba(196, 154, 60, 0.30);
    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(196, 154, 60, 0.15), rgba(196, 154, 60, 0.06));
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(196, 154, 60, 0.15);
}

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

.cal-btn-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(196, 154, 60, 0.12);
    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: #FFFFFF;
}

.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.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: var(--radius-md);
    color: var(--success);
    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);
    animation: fadeIn 0.3s ease-out;
}

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

.auth-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(196, 154, 60, 0.15);
    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;
    margin: 0;
}

/* Error state for auth modal */
.auth-error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
    gap: var(--space-4);
    animation: fadeIn 0.3s ease-out;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
}

.auth-error-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.15);
    border-radius: 50%;
}

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

.auth-error-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.auth-error-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

.auth-retry-btn {
    margin-top: var(--space-2);
}

/* Success state for auth modal */
.auth-success-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-10);
    gap: var(--space-5);
    animation: fadeIn 0.3s ease-out;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
}

.auth-success-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.10);
    border-radius: 50%;
    animation: successPop 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes successPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

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

.auth-success-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin: 0;
}

/* Auth modal closing animation */
.auth-modal.closing .modal-content {
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-modal.closing .modal-backdrop {
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Form reveal animation after login */
.form-wrapper.revealing {
    animation: formReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes formReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: none;
    }
}

.form-footer.revealing {
    animation: footerReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
    opacity: 0;
}

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

/* 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: 1350px) {
    .step-label {
        display: none;
    }
    .progress-step {
        padding: var(--space-1);
    }
    .progress-connector {
        width: 16px;
    }
}

@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;
    }
    
    .help-btn {
        padding: var(--space-3);
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
    }
    
    .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);
    }
    
    .auth-header {
        margin-bottom: var(--space-5);
    }
    
    .auth-header h2 {
        font-size: 1.375rem;
    }
    
    .auth-header p {
        font-size: 0.875rem;
    }
    
    .auth-logo {
        width: 140px;
        height: auto;
        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-3);
        text-align: center;
        padding: var(--space-4) var(--space-5);
        top: 56px;
    }
    
    .summary-content {
        flex-direction: row;
        gap: var(--space-3);
    }
    
    .summary-icon {
        width: 36px;
        height: 36px;
    }

    .summary-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .summary-count {
        font-size: 1.5rem;
    }
    
    .quick-select-row {
        justify-content: center;
    }
    
    .quick-select-btn {
        flex: 1 1 auto;
        justify-content: center;
        min-width: 110px;
        padding: 8px var(--space-4);
        font-size: 0.75rem;
    }

    .services-section-heading {
        margin-bottom: var(--space-4);
    }

    .section-heading-text {
        font-size: 0.6875rem;
    }
    
    .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: 8px;
    }
    
    .chip-content {
        padding: 8px 14px;
        font-size: 0.8125rem;
    }
    
    .chip-badge {
        font-size: 0.5625rem;
        padding: 2px 6px;
    }

    .dripbar-logo {
        font-size: 1.75rem;
    }
    
    .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-partners-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .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;
    }
    
    .media-logos > span:not(.media-dot) {
        font-size: 0.6875rem;
        padding: 2px 8px;
    }
    
    .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);
    }
    
    .auth-header h2 {
        font-size: 1.25rem;
    }
    
    .auth-header p {
        font-size: 0.8125rem;
    }
    
    .auth-logo {
        width: 120px;
        height: auto;
    }
    
    .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);
    }
    
    /* Ensure minimum 44px touch targets on touch devices */
    .logout-btn {
        width: 44px;
        height: 44px;
    }
    
    .remove-location-btn,
    .remove-audience-btn {
        width: 44px;
        height: 44px;
    }
    
    .uploaded-file-item .file-remove {
        width: 44px;
        height: 44px;
    }
    
    .search-clear-btn {
        width: 44px;
        height: 44px;
    }
}

/* ================================================
   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(196, 154, 60, 0.20);
    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;
}