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

:root {
    --black: #000000;
    --white: #FFFFFF;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #E5E5E5;
    --gray-300: #D4D4D4;
    --gray-400: #A3A3A3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    --green: #00D26A;
    --primary: #000000;
    --primary-dark: #000000;
    --primary-light: #262626;
    --accent: #000000;
    --accent-dark: #000000;
    --accent-light: rgba(0,0,0,0.04);
    --success: #00D26A;
    --success-light: #34d399;
    --warning: #f59e0b;
    --warning-light: #fbbf24;
    --coral: #000000;
    --coral-dark: #000000;
    --coral-light: #262626;
    --teal: #00D26A;
    --teal-dark: #00A854;
    --teal-light: #34d399;
    --yellow: #f59e0b;
    --yellow-dark: #d97706;
    --purple: #000000;
    --purple-dark: #000000;
    --cream: #FAFAFA;
    --charcoal: #171717;
    --charcoal-light: #525252;
    --charcoal-lighter: #737373;
    --card-border: #E5E5E5;
    --radius: 12px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--charcoal);
    line-height: 1.6;
    background: var(--cream);
    min-height: 100vh;
}


/* ─── TOPBAR ─── */
.topbar {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 0 40px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--charcoal);
}

.topbar-logo-icon {
    width: 32px; height: 32px;
    background: var(--coral);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
    font-weight: 800;
}

.topbar-logo-text {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.topbar-logo-text span { color: var(--coral); }

.topbar-logo-img {
    height: 140px;
    width: auto;
}

.topbar-nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.topbar-nav a {
    text-decoration: none;
    color: var(--gray-600);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

.topbar-nav a:hover {
    color: var(--black);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--card-border);
    background: var(--white);
    color: var(--charcoal);
    transition: all 0.15s;
    text-decoration: none;
}

.topbar-btn:hover {
    background: var(--cream);
    border-color: var(--charcoal-lighter);
}

.topbar-signin {
    text-decoration: none;
    color: var(--gray-600);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

.topbar-signin:hover {
    color: var(--black);
}

.topbar-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--black);
    color: var(--white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    transition: background 0.2s;
}

.topbar-cta:hover {
    background: var(--gray-800);
}

@media (max-width: 768px) {
    .topbar {
        padding: 0 16px;
        height: 72px;
    }
    .topbar-logo-img {
        height: 90px;
    }
    .topbar-nav,
    .topbar-right {
        display: none;
    }
}

/* ─── MAIN CONTAINER ─── */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
}

/* ─── PHASE SECTIONS ─── */
.phase { display: none; }
.phase.active { display: block; }

/* ─── STEP INDICATOR (4-step progress bar) ─── */
.step-indicator { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 32px; padding: 24px 0; }
.step-dot { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; border: 2px solid var(--charcoal-lighter); color: var(--charcoal-lighter); background: var(--white); transition: all 0.3s; flex-shrink: 0; }
.step-dot.active { border-color: var(--accent); color: var(--white); background: var(--accent); box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3); }
.step-dot.completed { border-color: var(--teal); color: var(--white); background: var(--teal); }
.step-connector { width: 60px; height: 2px; background: var(--charcoal-lighter); transition: background 0.3s; }
.step-connector.completed { background: var(--teal); }
.step-label { font-size: 11px; font-weight: 600; color: var(--charcoal-lighter); text-align: center; margin-top: 6px; }
.step-label.active { color: var(--coral); }
.step-label.completed { color: var(--teal); }
.step-group { display: flex; flex-direction: column; align-items: center; }

/* ─── PHASE 1: QUERY INPUT ─── */
.query-section {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.query-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--charcoal);
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.query-subtitle {
    font-size: 16px;
    color: var(--charcoal-light);
    margin-bottom: 32px;
}

.query-box {
    background: var(--white);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    text-align: left;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

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

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    color: var(--charcoal);
    background: var(--white);
    transition: border-color 0.15s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--coral);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.form-textarea {
    min-height: 80px;
    resize: vertical;
    line-height: 1.5;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23636e72' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
}

.section-card {
    background: var(--white);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}

.section-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 15px;
    color: var(--charcoal-light);
    margin-bottom: 24px;
}

.geo-btn {
    white-space: nowrap;
    flex-shrink: 0;
}

section {
    display: none;
}

section.active {
    display: block;
}

.query-textarea {
    width: 100%;
    min-height: 100px;
    padding: 14px 16px;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    color: var(--charcoal);
    resize: vertical;
    transition: border-color 0.15s;
}

.query-textarea:focus {
    outline: none;
    border-color: var(--coral);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.suggestion-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 24px;
}

.chip {
    padding: 6px 14px;
    background: #FFF5F5;
    border: 1px solid rgba(255, 107, 107, 0.25);
    border-radius: 20px;
    font-size: 13px;
    color: var(--coral-dark);
    cursor: pointer;
    transition: all 0.15s;
}

.chip:hover {
    background: rgba(255, 107, 107, 0.12);
    border-color: var(--coral);
}

.location-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 24px;
}

.location-input-wrap {
    flex: 1;
}

.location-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    color: var(--charcoal);
}

.location-input:focus {
    outline: none;
    border-color: var(--coral);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    border: none;
    white-space: nowrap;
}

.btn-outline {
    background: var(--white);
    border: 1px solid var(--card-border);
    color: var(--charcoal);
}

.btn-outline:hover {
    background: var(--cream);
    border-color: var(--charcoal-lighter);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

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

.btn-success {
    background: var(--teal);
    color: #fff;
}

.btn-success:hover {
    background: var(--teal-dark);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
    border-radius: 12px;
}

.submit-row {
    text-align: center;
}

/* ─── PHASE 2: BUSINESS SELECTION ─── */
.selection-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.selection-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--charcoal);
}

.selection-count {
    font-size: 14px;
    color: var(--charcoal-light);
}

.business-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.biz-category-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    padding: 14px 4px 8px;
    border-bottom: 2px solid var(--text);
    margin-bottom: 8px;
    margin-top: 16px;
}

.biz-category-header:first-child {
    margin-top: 0;
}

.biz-category-icon {
    font-size: 1.2rem;
}

.biz-category-count {
    font-weight: 400;
    color: var(--text-light);
    font-size: 0.9rem;
}

.biz-est-price-row {
    font-size: 0.82rem;
    color: #2d8a4e;
    font-weight: 600;
    margin-top: 2px;
}

.biz-show-more-btn {
    width: 100%;
    margin: 8px 0 16px;
    padding: 10px;
    font-size: 0.9rem;
    text-align: center;
    border-style: dashed;
}

.business-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--white);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.15s;
}

.business-card:hover {
    border-color: var(--coral-light);
    box-shadow: var(--shadow-sm);
}

.business-card.deselected {
    opacity: 0.5;
    background: var(--cream);
}

.business-card.manual {
    border-left: 3px solid var(--purple);
}

.biz-checkbox {
    width: 20px;
    height: 20px;
    accent-color: var(--coral);
    flex-shrink: 0;
    cursor: pointer;
}

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

.biz-name {
    font-weight: 600;
    color: var(--charcoal);
    font-size: 15px;
}

.biz-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--charcoal-light);
    margin-top: 2px;
}

.biz-rating { color: var(--yellow-dark); font-weight: 600; }
.biz-distance { color: var(--charcoal-lighter); }
.biz-phone { color: var(--charcoal-light); }

.manual-add-section {
    background: var(--white);
    border: 1px dashed var(--charcoal-lighter);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
}

.manual-add-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 12px;
}

.manual-add-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.manual-add-row input {
    flex: 1;
    min-width: 140px;
    padding: 8px 12px;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
}

.manual-add-row input:focus {
    outline: none;
    border-color: var(--coral);
}

.go-section {
    text-align: center;
    padding: 16px 0;
}

/* ─── PHASE 3: CALLING DASHBOARD ─── */
.dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    min-height: 500px;
}

@media (max-width: 768px) {
    .dashboard { grid-template-columns: 1fr; }
}

.dashboard-panel {
    background: var(--white);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    overflow: hidden;
}

.panel-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--card-border);
    font-weight: 600;
    font-size: 15px;
    color: var(--charcoal);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-body {
    padding: 16px 20px;
    max-height: 600px;
    overflow-y: auto;
}

/* ─── CALLING LAYOUT ─── */
.calling-layout {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    min-height: 400px;
}

.call-sidebar {
    width: 280px;
    flex-shrink: 0;
    overflow-y: auto;
    max-height: 600px;
}

.call-sidebar-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.transcript-pane {
    flex: 1;
    background: var(--white);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 20px;
    min-height: 400px;
    overflow-y: auto;
    max-height: 600px;
}

@media (max-width: 768px) {
    .calling-layout {
        flex-direction: column;
    }
    .call-sidebar {
        width: 100%;
        max-height: 200px;
    }
}

/* Progress Bar */
.progress-bar {
    background: var(--cream);
    border-radius: 8px;
    height: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-text {
    font-size: 13px;
    color: var(--charcoal-light);
    margin-bottom: 16px;
}

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

.progress-bar-wrap {
    background: var(--cream);
    border-radius: 8px;
    height: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar-fill {
    height: 100%;
    background: var(--coral);
    border-radius: 8px;
    transition: width 0.5s ease;
    width: 0%;
}

.progress-bar-fill.complete {
    background: var(--teal);
}

.progress-text {
    font-size: 13px;
    color: var(--charcoal-light);
    text-align: center;
}

/* Call Cards */
.call-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.call-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s;
}

.call-card:hover {
    border-color: var(--coral-light);
    background: #FFF5F5;
}

.call-card.selected {
    border-color: var(--coral);
    background: #FFF5F5;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.15);
}

.call-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.call-status-dot.queued { background: var(--charcoal-lighter); }
.call-status-dot.dialing { background: var(--yellow); animation: pulse 1s infinite; }
.call-status-dot.ringing { background: var(--yellow-dark); animation: pulse 0.8s infinite; }
.call-status-dot.connected { background: var(--teal); animation: pulse 1.2s infinite; }
.call-status-dot.completed { background: var(--teal); }
.call-status-dot.failed { background: var(--coral); }
.call-status-dot.retrying { background: var(--yellow); animation: pulse 0.6s infinite; }

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

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

.call-card-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--charcoal);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.call-card-status {
    font-size: 12px;
    text-transform: capitalize;
    margin-top: 1px;
}

.call-card-status.queued { color: var(--charcoal-lighter); }
.call-card-status.dialing { color: var(--yellow-dark); }
.call-card-status.ringing { color: var(--yellow-dark); }
.call-card-status.connected { color: var(--teal); }
.call-card-status.completed { color: var(--teal-dark); }
.call-card-status.failed { color: var(--coral); }
.call-card-status.retrying { color: var(--yellow-dark); }

.call-card-attempt {
    font-size: 11px;
    color: var(--charcoal-lighter);
}

/* Transcript Panel */
.transcript-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: var(--charcoal-lighter);
    font-size: 14px;
}

.transcript-lines {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.transcript-line {
    display: flex;
    gap: 10px;
    animation: fadeInUp 0.3s ease;
}

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

.transcript-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    color: #fff;
}

.transcript-avatar.ai { background: var(--coral); }
.transcript-avatar.business { background: var(--purple); }

.transcript-bubble {
    flex: 1;
    min-width: 0;
}

.transcript-speaker {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.transcript-speaker.ai { color: var(--coral); }
.transcript-speaker.business { color: var(--purple); }

.transcript-text {
    font-size: 14px;
    color: var(--charcoal);
    line-height: 1.5;
}

.transcript-time {
    font-size: 11px;
    color: var(--charcoal-lighter);
    margin-top: 2px;
}

/* Summary section */
.call-summary {
    margin-top: 20px;
    padding: 16px;
    background: rgba(78, 205, 196, 0.08);
    border: 1px solid rgba(78, 205, 196, 0.2);
    border-radius: 10px;
}

.call-summary-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--teal-dark);
    margin-bottom: 4px;
}

.call-summary-text {
    font-size: 14px;
    color: var(--charcoal);
    line-height: 1.5;
}

/* Save button */
.save-section {
    margin-top: 16px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.save-notes {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
}

.save-notes:focus {
    outline: none;
    border-color: var(--coral);
}

.saved-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: rgba(78, 205, 196, 0.08);
    border: 1px solid rgba(78, 205, 196, 0.2);
    border-radius: 8px;
    font-size: 13px;
    color: var(--teal-dark);
    font-weight: 500;
}

/* Completion bar */
.completion-section {
    text-align: center;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    margin-top: 24px;
}

.completion-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.completion-section p {
    color: var(--charcoal-light);
    font-size: 14px;
    margin-bottom: 20px;
}

.completion-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--card-border);
    border-top-color: var(--coral);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 12px 20px;
    background: var(--charcoal);
    color: #fff;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    animation: slideUp 0.3s ease;
}

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

/* ─── EXAMPLE QUESTIONS ─── */
.example-questions {
    margin-top: 16px;
    margin-bottom: 20px;
    background: #FFF5F5;
    border: 1px solid rgba(255, 107, 107, 0.25);
    border-radius: 10px;
    overflow: hidden;
}

.eq-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 18px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--charcoal);
    transition: background 0.15s;
}

.eq-toggle:hover {
    background: rgba(255, 107, 107, 0.06);
}

.eq-chevron {
    font-size: 12px;
    color: var(--charcoal-lighter);
    transition: transform 0.25s ease;
}

.eq-chevron.collapsed {
    transform: rotate(-90deg);
}

.eq-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 18px 14px 18px;
    margin-top: 0;
}

.eq-list.collapsed {
    display: none;
}

.eq-list li {
    font-size: 13px;
    color: var(--charcoal-light);
    padding-left: 16px;
    position: relative;
    line-height: 1.5;
}

.eq-list li::before {
    content: '\201C';
    position: absolute;
    left: 0;
    color: var(--coral);
    font-weight: 700;
    font-size: 16px;
}

/* ─── FILTER BAR ─── */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 16px;
    padding: 14px 18px;
    background: var(--white);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 100px;
}

.filter-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--charcoal-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select {
    padding: 7px 28px 7px 10px;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    color: var(--charcoal);
    background: var(--cream);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23636e72' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.filter-select:focus {
    outline: none;
    border-color: var(--coral);
}

.filter-clear {
    padding: 7px 14px;
    font-size: 12px;
    align-self: flex-end;
}

/* ─── WIDE CONTAINER (Phase 2) ─── */
.app-container.wide {
    max-width: 1440px;
}

/* ─── SPLIT VIEW (Phase 2) ─── */
.split-view {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.split-list-pane {
    flex: 0 0 58%;
    max-height: 700px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 4px;
}

.split-map-pane {
    flex: 0 0 40%;
    position: sticky;
    top: 80px;
    height: 700px;
}

.map-container-split {
    height: 100%;
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    overflow: hidden;
}

/* ─── HIGHLIGHTED CARD (bidirectional highlight) ─── */
.business-card.highlighted {
    border-color: var(--coral);
    background: #FFF5F5;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2);
}

/* ─── MAP CONTAINER ─── */
.map-container {
    height: 500px;
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 24px;
}

.map-marker-icon {
    background: transparent !important;
    border: none !important;
}

.map-pin {
    width: 28px;
    height: 28px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.map-popup {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.5;
    min-width: 180px;
}

.map-popup strong {
    font-size: 14px;
    color: var(--charcoal);
}

.map-popup em {
    color: var(--charcoal-light);
    font-style: normal;
    font-size: 12px;
}

.map-popup-toggle,
.map-popup-detail {
    display: inline-block;
    margin-top: 6px;
    margin-right: 6px;
    padding: 4px 10px;
    border: 1px solid var(--card-border);
    border-radius: 6px;
    background: var(--white);
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    color: var(--charcoal-light);
    cursor: pointer;
    transition: all 0.15s;
}

.map-popup-toggle:hover { background: #FFF5F5; border-color: var(--coral); color: var(--coral); }
.map-popup-detail:hover { background: #FFF5F5; border-color: var(--coral); color: var(--coral); }

/* ─── BUSINESS CARD ENHANCEMENTS ─── */
.business-list {
    max-height: 700px;
    overflow-y: auto;
}

.biz-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.biz-price {
    font-size: 12px;
    font-weight: 600;
    color: var(--teal-dark);
    background: rgba(78, 205, 196, 0.08);
    padding: 1px 6px;
    border-radius: 4px;
}

.biz-cuisine, .biz-service-type {
    font-size: 11px;
    font-weight: 500;
    color: var(--yellow-dark);
    background: rgba(255, 230, 109, 0.2);
    padding: 1px 6px;
    border-radius: 4px;
}

.biz-desc-snippet {
    font-size: 12px;
    color: var(--charcoal-lighter);
    margin-top: 4px;
    line-height: 1.4;
}

.biz-detail-btn {
    background: none;
    border: 1px solid var(--card-border);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--charcoal-lighter);
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s;
}

.biz-detail-btn:hover {
    background: #FFF5F5;
    border-color: var(--coral);
    color: var(--coral);
}

/* ─── BUSINESS DETAIL MODAL ─── */
.biz-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeIn 0.2s ease;
}

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

.biz-modal {
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    max-width: 520px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: modalSlideUp 0.25s ease;
}

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

.biz-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--charcoal-lighter);
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.15s;
}

.biz-modal-close:hover {
    background: var(--cream);
    color: var(--charcoal);
}

.biz-modal-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 12px;
    padding-right: 32px;
}

.biz-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.modal-tag {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.modal-tag.price { background: rgba(78, 205, 196, 0.08); color: var(--teal-dark); border: 1px solid rgba(78, 205, 196, 0.2); }
.modal-tag.cuisine, .modal-tag.service-type { background: rgba(255, 230, 109, 0.2); color: var(--yellow-dark); border: 1px solid rgba(255, 230, 109, 0.35); }
.modal-tag.category { background: #FFF5F5; color: var(--coral); border: 1px solid rgba(255, 107, 107, 0.2); }

.biz-modal-rating {
    font-size: 16px;
    color: var(--yellow-dark);
    margin-bottom: 12px;
}

.biz-modal-rating strong {
    color: var(--charcoal);
    font-size: 14px;
}

.biz-modal-desc {
    font-size: 14px;
    color: var(--charcoal-light);
    line-height: 1.6;
    margin-bottom: 16px;
}

.biz-modal-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.modal-detail {
    font-size: 13px;
    color: var(--charcoal-light);
    line-height: 1.4;
}

.modal-detail strong {
    color: var(--charcoal);
}

.biz-modal-website {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 20px;
    background: var(--coral);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.15s;
}

.biz-modal-website:hover {
    background: var(--coral-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

/* ─── AUTOCOMPLETE ─── */
.autocomplete-wrap {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.autocomplete-wrap input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
}

.autocomplete-wrap input:focus {
    outline: none;
    border-color: var(--coral);
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--white);
    border: 1px solid var(--card-border);
    border-radius: 0 0 10px 10px;
    box-shadow: var(--shadow-md);
    max-height: 240px;
    overflow-y: auto;
}

.autocomplete-dropdown:empty {
    display: none;
}

.autocomplete-item {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--cream);
    transition: background 0.1s;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background: #FFF5F5;
}

.ac-name {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--charcoal);
}

.ac-cat {
    display: block;
    font-size: 12px;
    color: var(--charcoal-lighter);
    margin-top: 1px;
}

/* ─── CATEGORY SELECT ─── */
.category-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    color: var(--charcoal);
    background: var(--white);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23636e72' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    margin-bottom: 8px;
    transition: border-color 0.15s;
}

.category-select:focus {
    outline: none;
    border-color: var(--coral);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

/* ─── RECOMMENDED DETAILS ─── */
.recommended-details {
    margin-top: 12px;
    margin-bottom: 16px;
    padding: 16px 18px;
    background: #FFF5F5;
    border: 1px solid rgba(255, 107, 107, 0.2);
    border-radius: 10px;
}

.recommended-details-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--coral-dark);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recommended-details-icon {
    color: var(--yellow);
    font-size: 16px;
}

/* ─── SMART SUGGESTIONS ─── */
.smart-suggestions {
    margin-top: 12px;
    margin-bottom: 16px;
    padding: 14px 16px;
    background: var(--cream);
    border: 1px solid var(--card-border);
    border-radius: 10px;
}

.smart-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.smart-field {
    flex: 1;
    min-width: 140px;
}

.smart-field-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--charcoal-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.smart-field-input {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    color: var(--charcoal);
    background: var(--white);
}

.smart-field-input:focus {
    outline: none;
    border-color: var(--coral);
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.08);
}

.smart-field-input[type="date"],
.smart-field-input[type="time"] {
    cursor: pointer;
    color-scheme: light;
}

.smart-field-input[type="date"]::-webkit-calendar-picker-indicator,
.smart-field-input[type="time"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
}

.smart-field-input[type="date"]::-webkit-calendar-picker-indicator:hover,
.smart-field-input[type="time"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.smart-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.smart-tag {
    padding: 5px 12px;
    background: #FFF5F5;
    border: 1px solid rgba(255, 107, 107, 0.25);
    border-radius: 16px;
    font-family: inherit;
    font-size: 12px;
    color: var(--coral-dark);
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.smart-tag:hover {
    background: rgba(255, 107, 107, 0.12);
    border-color: var(--coral);
}

.smart-tag.used {
    background: var(--cream);
    border-color: var(--charcoal-lighter);
    color: var(--charcoal-lighter);
    cursor: default;
}

/* ─── MODAL GALLERY ─── */
.biz-modal {
    max-width: 600px;
}

.biz-modal-gallery {
    margin: -32px -32px 20px -32px;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}

.gallery-main-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    background: var(--cream);
}

.gallery-thumbs {
    display: flex;
    gap: 4px;
    padding: 8px;
    background: var(--cream);
}

.gallery-thumb {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.15s;
    opacity: 0.7;
}

.gallery-thumb:hover {
    opacity: 1;
}

.gallery-thumb.active {
    border-color: var(--coral);
    opacity: 1;
}

/* ─── MODAL AMENITIES ─── */
.biz-modal-amenities {
    margin-bottom: 16px;
}

.amenities-label,
.reviews-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.amenities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.amenity-tag {
    padding: 4px 10px;
    background: rgba(78, 205, 196, 0.08);
    border: 1px solid rgba(78, 205, 196, 0.2);
    border-radius: 12px;
    font-size: 12px;
    color: var(--teal-dark);
    font-weight: 500;
}

/* ─── MODAL REVIEWS ─── */
.biz-modal-reviews {
    margin-top: 16px;
    margin-bottom: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--card-border);
}

.review-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--cream);
}

.review-item:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.review-author {
    font-size: 13px;
    font-weight: 600;
    color: var(--charcoal);
}

.review-stars {
    font-size: 12px;
    color: var(--yellow-dark);
}

.review-date {
    font-size: 11px;
    color: var(--charcoal-lighter);
    margin-left: auto;
}

.review-text {
    font-size: 13px;
    color: var(--charcoal-light);
    line-height: 1.5;
}

/* ─── MODAL EXTERNAL LINKS ─── */
.biz-modal-external {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--card-border);
}

.external-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s;
}

.yelp-link {
    background: #FFF5F5;
    color: var(--coral);
    border: 1px solid rgba(255, 107, 107, 0.25);
}

.yelp-link:hover {
    background: rgba(255, 107, 107, 0.12);
}

.google-link {
    background: #FFF5F5;
    color: var(--coral);
    border: 1px solid rgba(255, 107, 107, 0.25);
}

.google-link:hover {
    background: rgba(255, 107, 107, 0.12);
}

.website-link {
    background: var(--cream);
    color: var(--charcoal);
    border: 1px solid var(--card-border);
}

.website-link:hover {
    background: var(--white);
}

/* ─── DARK SPREADSHEET RESULTS ─── */
.ss-window {
    background: #1a1f25;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    margin-top: 24px;
}

.ss-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #222831;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ss-dots {
    display: flex;
    gap: 6px;
}

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

.ss-dot-red { background: #ef4444; }
.ss-dot-yellow { background: #eab308; }
.ss-dot-green { background: #22c55e; }

.ss-title {
    font-size: 13px;
    font-weight: 500;
    color: #7f8c8d;
}

.ss-dots-spacer {
    width: 54px;
}

.ss-body {
    overflow-x: auto;
}

.ss-table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
    font-size: 13px;
}

.ss-table thead th {
    text-align: left;
    padding: 10px 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #7f8c8d;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    white-space: nowrap;
}

.ss-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.1s;
}

.ss-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.ss-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.ss-data-cell {
    font-size: 12px;
    color: #b2bec3;
    white-space: nowrap;
}

.ss-table tbody td {
    padding: 10px 16px;
    color: #b2bec3;
    vertical-align: top;
}

.ss-biz-name {
    font-weight: 600;
    color: #fff;
    font-size: 13px;
}

.ss-biz-addr {
    font-size: 11px;
    color: #636e72;
    margin-top: 2px;
}

.ss-summary-cell {
    max-width: 280px;
    font-size: 12px;
    line-height: 1.4;
    color: #7f8c8d;
}

.ss-phone-cell {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    color: #7f8c8d;
}

/* Status badges */
.ss-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.ss-done {
    background: rgba(78, 205, 196, 0.15);
    color: var(--teal-light);
}

.ss-calling {
    background: rgba(255, 230, 109, 0.15);
    color: var(--yellow);
    animation: pulse 1.5s infinite;
}

.ss-retry {
    background: rgba(255, 107, 107, 0.15);
    color: var(--coral-light);
}

.ss-failed {
    background: rgba(239, 68, 68, 0.15);
    color: var(--coral);
}

.ss-waiting {
    background: rgba(178, 190, 195, 0.1);
    color: #636e72;
}

/* Footer */
.ss-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #222831;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
    gap: 12px;
}

.ss-stats {
    font-size: 13px;
    color: #7f8c8d;
}

.ss-actions {
    display: flex;
    gap: 8px;
}

.ss-export-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: var(--coral-light);
    transition: all 0.15s;
}

.ss-export-btn:hover {
    background: rgba(255, 107, 107, 0.1);
    border-color: var(--coral);
}

.ss-new-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: var(--coral);
    color: #fff;
    transition: all 0.15s;
}

.ss-new-btn:hover {
    background: var(--coral-dark);
}

/* ─── STEP 2: AI RECOMMENDATIONS (Budget & Rec Items) ─── */
.budget-tracker { background: var(--white); border: 1px solid var(--card-border); border-radius: 12px; padding: 20px; margin-bottom: 24px; }
.budget-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.budget-label { font-size: 14px; font-weight: 600; color: var(--charcoal); }
.budget-amount { font-size: 14px; font-weight: 700; color: var(--teal); }
.budget-bar { height: 8px; background: var(--cream); border-radius: 4px; overflow: hidden; }
.budget-fill { height: 100%; background: var(--teal); border-radius: 4px; transition: width 0.4s ease; }
.budget-fill.over { background: var(--coral); }
.rec-category { margin-bottom: 24px; }
.rec-category-title { font-size: 16px; font-weight: 700; color: var(--charcoal); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--card-border); }
.rec-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--white); border: 1px solid var(--card-border); border-radius: 10px; margin-bottom: 8px; cursor: pointer; transition: all 0.15s; }
.rec-item:hover { border-color: var(--coral); }
.rec-item.unchecked { opacity: 0.5; }
.rec-item input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--coral); flex-shrink: 0; }
.rec-item-info { flex: 1; min-width: 0; }
.rec-item-name { font-size: 14px; font-weight: 600; color: var(--charcoal); }
.rec-item-cost { font-size: 12px; color: var(--charcoal-light); }
.rec-item-meta { display: flex; gap: 12px; align-items: center; margin-top: 3px; }
.rec-item-category { font-size: 11px; color: var(--charcoal-lighter); background: var(--cream); padding: 2px 8px; border-radius: 4px; }
.rec-list-header { font-size: 14px; color: var(--charcoal-light); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--card-border); }
.rec-flat-list { max-height: 60vh; overflow-y: auto; padding-right: 4px; }
.rec-priority { padding: 3px 10px; border-radius: 100px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.rec-priority.must-have { background: #dbeafe; color: var(--primary); }
.rec-priority.nice-to-have { background: #fef3c7; color: #b45309; }
.rec-priority.optional { background: #f1f5f9; color: var(--charcoal-lighter); }
.rec-item-type { font-size: 11px; color: var(--charcoal-lighter); padding: 2px 8px; border: 1px solid var(--card-border); border-radius: 4px; }
.add-custom-item { display: flex; gap: 8px; margin-top: 16px; padding: 16px; background: var(--white); border: 1px dashed var(--card-border); border-radius: 10px; }
.add-custom-item input, .add-custom-item select { padding: 8px 12px; border: 1px solid var(--card-border); border-radius: 8px; font-family: inherit; font-size: 13px; }
.add-custom-item input { flex: 1; }
.rec-continue-btn { display: block; width: 100%; max-width: 400px; margin: 24px auto 0; padding: 14px 32px; }

/* ─── STEP 4: RESULTS & BOOKING ─── */
.booking-card { background: var(--white); border: 1px solid var(--card-border); border-radius: 12px; padding: 20px; margin-bottom: 16px; border-left: 4px solid var(--card-border); }
.booking-card.service { border-left-color: var(--coral); }
.booking-card.goods { border-left-color: var(--yellow); }
.booking-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.booking-card-title { font-size: 16px; font-weight: 700; color: var(--charcoal); }
.booking-card-category { font-size: 12px; color: var(--charcoal-light); background: var(--cream); padding: 3px 10px; border-radius: 100px; }
.booking-card-vendor { font-size: 14px; color: var(--charcoal-light); margin-bottom: 8px; }
.booking-card-price { font-size: 15px; font-weight: 700; color: var(--teal); margin-bottom: 12px; }
.booking-actions { display: flex; gap: 12px; align-items: flex-end; }
.booking-actions textarea { flex: 1; min-height: 60px; padding: 10px 12px; border: 1px solid var(--card-border); border-radius: 8px; font-family: inherit; font-size: 13px; resize: vertical; }
.booking-actions textarea:focus { outline: none; border-color: var(--coral); }
.buy-yourself-msg { padding: 16px; background: var(--cream); border-radius: 10px; font-size: 14px; color: var(--charcoal-light); line-height: 1.6; }
.buy-yourself-msg strong { color: var(--charcoal); }
.session-summary { background: var(--white); border: 1px solid var(--card-border); border-radius: 12px; padding: 24px; margin-top: 32px; text-align: center; }
.session-summary h3 { font-size: 20px; font-weight: 700; color: var(--charcoal); margin-bottom: 8px; }
.session-summary .total { font-size: 28px; font-weight: 800; color: var(--teal); margin-bottom: 16px; }
.session-summary-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
    .split-view {
        flex-direction: column;
    }
    .split-list-pane {
        flex: 1;
        max-height: 400px;
    }
    .split-map-pane {
        flex: 1;
        position: static;
        height: 350px;
    }
    .app-container.wide {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .query-title { font-size: 24px; }
    .location-row { flex-direction: column; }
    .manual-add-row { flex-direction: column; }
    .completion-actions { flex-direction: column; }
    .filter-bar { flex-direction: column; gap: 8px; }
    .filter-group { min-width: 100%; }
    .map-container { height: 350px; }
    .biz-modal { padding: 20px; }
    .biz-modal-gallery { margin: -20px -20px 16px -20px; border-radius: 16px 16px 0 0; }
    .gallery-main-img { height: 180px; }
    .smart-fields { flex-direction: column; }
    .smart-field { min-width: 100%; }
    .ss-footer { flex-direction: column; text-align: center; }
    .ss-actions { justify-content: center; }
    .biz-modal-external { flex-direction: column; }
    .external-link { justify-content: center; }
    .review-date { margin-left: 0; }
}

/* ─── REFRESH BUTTON ─── */
.rec-refresh-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--card-border);
    background: var(--white);
    color: var(--charcoal-light);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s;
    padding: 0;
}
.rec-refresh-btn:hover { border-color: var(--coral); color: var(--coral); }
.rec-refresh-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.rec-refresh-btn:disabled:hover { border-color: var(--card-border); color: var(--charcoal-light); }
.rec-refresh-btn.spinning {
    animation: spin 0.6s linear infinite;
    border-color: var(--coral);
    color: var(--coral);
}

/* ─── EVENT TYPE CHIPS ─── */
.event-type-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 16px;
}
.event-chip {
    padding: 5px 14px;
    border-radius: 100px;
    border: 1px solid var(--card-border);
    background: var(--white);
    color: var(--charcoal);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}
.event-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}

/* ─── SELECT CHIPS (Multi-select) ─── */
.chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.select-chip {
    padding: 8px 16px;
    border-radius: 100px;
    border: 1.5px solid var(--card-border);
    background: var(--white);
    color: var(--charcoal);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.select-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}
.select-chip.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}
.select-chip.selected:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: white;
}
.form-input-sm {
    margin-top: 8px;
    font-size: 14px;
    padding: 10px 14px;
}

/* ─── HERO SECTION ─── */
.hero-section {
    text-align: center;
    padding: 48px 24px 32px;
    background: var(--cream);
    border-radius: var(--radius);
    margin-bottom: 24px;
    border: 1px solid var(--card-border);
}

.hero-title {
    font-size: 42px;
    font-weight: 900;
    color: var(--charcoal);
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--charcoal-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ─── FEATURES ROW ─── */
.features-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--accent);
    flex-shrink: 0;
}

.feature-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.feature-text strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--charcoal);
}

.feature-text span {
    font-size: 13px;
    color: var(--charcoal-light);
    line-height: 1.4;
}

/* ─── CARD HEADER ─── */
.card-header {
    margin-bottom: 24px;
}

.card-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--charcoal);
    margin-bottom: 6px;
}

.card-subtitle {
    font-size: 15px;
    color: var(--charcoal-light);
}

/* ─── FORM SECTIONS ─── */
.form-section {
    padding: 24px;
    background: var(--cream);
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 20px;
}

.form-section-number {
    width: 28px;
    height: 28px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.form-input-lg {
    padding: 14px 16px;
    font-size: 16px;
}

.form-hint {
    font-size: 13px;
    color: var(--charcoal-light);
    margin-top: 8px;
    line-height: 1.5;
}

.form-label-hint {
    font-weight: 400;
    color: var(--charcoal-lighter);
    font-size: 13px;
}

.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    opacity: 0.6;
}

.input-with-icon .form-input,
.input-with-icon .form-select {
    padding-left: 42px;
}

/* ─── FORM ACTIONS ─── */
.form-actions {
    text-align: center;
    padding-top: 16px;
}

.form-actions-hint {
    font-size: 13px;
    color: var(--charcoal-lighter);
    margin-top: 12px;
}

.btn-xl {
    padding: 16px 40px;
    font-size: 17px;
    font-weight: 700;
}

.btn-icon {
    margin-right: 8px;
}

.geo-icon {
    margin-right: 6px;
}

/* ─── TRUST SECTION ─── */
.trust-section {
    display: flex;
    justify-content: center;
    gap: 48px;
    padding: 32px 24px;
    margin-top: 24px;
}

.trust-item {
    text-align: center;
}

.trust-number {
    display: block;
    font-size: 32px;
    font-weight: 900;
    color: var(--coral);
    line-height: 1;
}

.trust-label {
    display: block;
    font-size: 13px;
    color: var(--charcoal-light);
    margin-top: 6px;
}

/* ─── STEP HEADER ─── */
.step-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.step-header-content {
    flex: 1;
    min-width: 280px;
}

.step-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--cream);
    color: var(--charcoal-light);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 100px;
    margin-bottom: 12px;
}

.step-title {
    font-size: 28px;
    font-weight: 900;
    color: var(--charcoal);
    line-height: 1.2;
    margin-bottom: 8px;
}

.step-subtitle {
    font-size: 15px;
    color: var(--charcoal-light);
    line-height: 1.5;
    max-width: 600px;
}

/* ─── INFO CARD ─── */
.checklist-info {
    margin-bottom: 20px;
}

.info-card {
    display: flex;
    gap: 16px;
    padding: 16px 20px;
    background: var(--accent-light);
    border-radius: var(--radius);
    border: 1px solid rgba(14, 165, 233, 0.15);
}

.info-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.info-content strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 4px;
}

.info-content p {
    font-size: 13px;
    color: var(--charcoal-light);
    line-height: 1.5;
    margin: 0;
}

/* ─── PROGRESS SECTION ─── */
.progress-section {
    margin-bottom: 24px;
}

.sidebar-icon {
    margin-right: 8px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .features-row {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .trust-section {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }

    .step-title {
        font-size: 22px;
    }

    .step-header {
        flex-direction: column;
    }
}

/* ─── ENHANCED RECOMMENDATIONS ─── */
.budget-icon {
    margin-right: 6px;
}

.rec-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.rec-stat {
    background: var(--cream);
    padding: 12px 16px;
    border-radius: var(--radius);
    text-align: center;
}

.rec-stat-number {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--charcoal);
    line-height: 1;
}

.rec-stat-label {
    display: block;
    font-size: 11px;
    color: var(--charcoal-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.rec-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--card-border);
    margin-bottom: 12px;
}

.rec-list-count {
    font-size: 14px;
    font-weight: 600;
    color: var(--charcoal);
}

.rec-list-hint {
    font-size: 12px;
    color: var(--charcoal-lighter);
}

.rec-custom-badge {
    display: inline-block;
    padding: 2px 6px;
    background: var(--purple);
    color: white;
    font-size: 9px;
    font-weight: 700;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
}

.rec-item-type-tag {
    font-size: 11px;
    color: var(--charcoal-lighter);
}

.add-custom-section {
    background: var(--cream);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 20px;
}

.add-custom-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-icon {
    width: 24px;
    height: 24px;
    background: var(--coral);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.add-custom-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.add-custom-form .form-input {
    flex: 2;
    min-width: 200px;
}

.add-custom-form .form-select {
    flex: 1;
    min-width: 140px;
}

.add-custom-form .btn {
    white-space: nowrap;
}

.rec-continue-section {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--card-border);
}

.rec-continue-hint {
    font-size: 13px;
    color: var(--charcoal-lighter);
    margin-top: 10px;
}

@media (max-width: 768px) {
    .rec-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .rec-list-header {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .add-custom-form {
        flex-direction: column;
    }

    .add-custom-form .form-input,
    .add-custom-form .form-select {
        min-width: 100%;
    }
}

/* ─── AUTH STYLES ─── */
.topbar-signin {
    background: none;
    border: 1px solid var(--card-border);
    padding: 8px 20px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--charcoal);
    cursor: pointer;
    transition: all 0.15s;
}

.topbar-signin:hover {
    background: var(--cream);
    border-color: var(--charcoal-lighter);
}

/* User Menu */
.user-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--white);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.15s;
}

.user-menu-btn:hover {
    background: var(--cream);
    border-color: var(--charcoal-lighter);
}

.user-avatar {
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.user-name {
    font-weight: 500;
    color: var(--charcoal);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-chevron {
    font-size: 10px;
    color: var(--charcoal-lighter);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--white);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    overflow: hidden;
    display: none;
    z-index: 100;
}

.user-menu:hover .user-dropdown,
.user-menu:focus-within .user-dropdown {
    display: block;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    text-align: left;
    font-family: inherit;
    font-size: 14px;
    color: var(--charcoal);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.1s;
}

.dropdown-item:hover {
    background: var(--cream);
}

.dropdown-item-danger {
    color: #dc2626;
}

.dropdown-item-danger:hover {
    background: #fef2f2;
}

.dropdown-divider {
    border: none;
    border-top: 1px solid var(--card-border);
    margin: 4px 0;
}

/* Auth Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-modal {
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    max-width: 400px;
    width: 100%;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: modalSlideUp 0.25s ease;
}

.auth-modal h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--charcoal);
    margin-bottom: 24px;
    text-align: center;
}

.auth-modal .form-group {
    margin-bottom: 16px;
}

.auth-modal .form-label {
    margin-bottom: 6px;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--charcoal-lighter);
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.15s;
}

.modal-close:hover {
    background: var(--cream);
    color: var(--charcoal);
}

.btn-block {
    width: 100%;
    margin-top: 8px;
}

.form-error {
    color: #dc2626;
    font-size: 13px;
    margin-top: 8px;
    min-height: 20px;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--charcoal-light);
}

.auth-switch a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* ─── STEP 5: E-VITE STYLES ─── */
.evite-section {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.evite-summary-card {
    background: var(--cream);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 32px;
    text-align: left;
}

.summary-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.summary-icon {
    font-size: 28px;
}

.summary-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--charcoal);
    margin: 0;
}

.summary-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid var(--card-border);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--charcoal-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--charcoal);
    text-align: right;
    max-width: 60%;
}

.summary-tip {
    font-size: 13px;
    color: var(--charcoal-lighter);
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed var(--card-border);
    text-align: center;
}

.evite-cta {
    margin-bottom: 32px;
}

.evite-main-btn {
    padding: 18px 48px;
    font-size: 18px;
}

.evite-icon {
    margin-right: 8px;
}

.evite-hint {
    font-size: 13px;
    color: var(--charcoal-lighter);
    margin-top: 12px;
}

.evite-alternatives {
    background: var(--white);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 32px;
}

.alternatives-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 12px;
}

.alternatives-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.copy-icon {
    margin-right: 4px;
}

.evite-actions {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--card-border);
}

@media (max-width: 640px) {
    .evite-main-btn {
        padding: 16px 32px;
        font-size: 16px;
    }

    .alternatives-btns {
        flex-direction: column;
    }

    .alternatives-btns .btn {
        width: 100%;
    }

    .summary-row {
        flex-direction: column;
        gap: 4px;
    }

    .summary-value {
        text-align: left;
        max-width: 100%;
    }
}
