/* Root Variables */
:root {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;

    --accent-violet: #2563eb; /* Trusted Royal Blue */
    --accent-violet-hover: #1d4ed8;
    --accent-indigo: #0d9488; /* Professional Teal */
    --accent-indigo-hover: #0f766e;

    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --color-info: #0ea5e9;

    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(15, 23, 42, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.5);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-circle: 50%;

    --font-outfit: 'Outfit', sans-serif;
    --font-inter: 'Inter', sans-serif;

    --shadow-sm: 0 4px 6px -1px rgb(15 23 42 / 0.05), 0 2px 4px -2px rgb(15 23 42 / 0.05);
    --shadow-md: 0 10px 15px -3px rgb(15 23 42 / 0.08), 0 4px 6px -4px rgb(15 23 42 / 0.08);
    --shadow-lg: 0 20px 25px -5px rgb(15 23 42 / 0.12), 0 8px 10px -6px rgb(15 23 42 / 0.12);
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-inter);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Dynamic Radial Gradient Background */
.glass-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background: radial-gradient(circle at 10% 20%, rgba(13, 148, 136, 0.04) 0%, transparent 50%),
                radial-gradient(circle at 90% 80%, rgba(37, 99, 235, 0.05) 0%, transparent 60%),
                #f8fafc;
}

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

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.3);
}

::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.5);
}

/* Typography elements */
h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-outfit);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

p {
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Helper Utilities */
.hidden {
    display: none !important;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    font-size: 28px;
    background: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-violet) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(99, 102, 241, 0.3));
}

.brand-text {
    font-family: var(--font-outfit);
    font-weight: 800;
    font-size: 24px;
    color: var(--text-primary);
}

.brand-text span {
    color: var(--accent-violet);
    font-weight: 400;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* User Profile in Navbar */
.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(15, 23, 42, 0.04);
    padding: 6px 16px;
    border-radius: 40px;
    border: 1px solid var(--glass-border);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-circle);
    background: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-violet) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-outfit);
    font-weight: 600;
    font-size: 14px;
    color: white;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
}

.user-role {
    font-size: 11px;
    color: var(--text-muted);
}

/* Glassmorphism Cards */
.card {
    border-radius: var(--radius-lg);
    padding: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--glass-highlight) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(15, 23, 42, 0.12);
}

/* Buttons */
.btn {
    font-family: var(--font-outfit);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-violet) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
    background: linear-gradient(135deg, var(--accent-indigo-hover) 0%, var(--accent-violet-hover) 100%);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.15);
}

.btn-success {
    background: var(--color-success);
    color: white;
}

.btn-success:hover {
    background: #0ea577;
}

/* Spinner */
.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

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

/* Layout container */
.dashboard-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    padding: 40px;
    max-width: 1600px;
    margin: 0 auto;
}

.main-panel {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-panel {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Hero Section */
.hero-section h1 {
    font-size: 38px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-indigo) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-section p {
    font-size: 16px;
    margin-bottom: 30px;
    max-width: 700px;
}

/* Input Fields & Forms */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-family: var(--font-outfit);
    font-weight: 500;
    font-size: 14px;
    color: var(--text-secondary);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="datetime-local"],
textarea {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: var(--font-inter);
    font-size: 14px;
    transition: all 0.2s ease;
    outline: none;
}

input:focus,
textarea:focus {
    border-color: var(--accent-violet);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    background: #ffffff;
}

/* Search Form group */
.search-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.search-bar-container {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: 99px;
    padding: 8px 12px 8px 24px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    gap: 12px;
    transition: all 0.25s ease;
}

.search-bar-container:focus-within {
    border-color: var(--accent-violet);
    box-shadow: 0 4px 24px rgba(99, 102, 241, 0.1);
}

.search-field {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.search-field-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.search-field input {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    font-size: 14px !important;
    font-weight: 500;
    color: var(--text-primary) !important;
    box-shadow: none !important;
    width: 100%;
}

.search-field input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.search-divider {
    width: 1px;
    height: 32px;
    background: var(--glass-border);
    margin: 0 8px;
}

#search-submit {
    height: 48px;
    padding: 0 24px;
    border-radius: 99px;
    font-size: 14px;
    font-weight: 600;
}

.search-helpers {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-muted);
}

.helper-tag {
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid var(--glass-border);
    padding: 4px 10px;
    border-radius: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.helper-tag:hover {
    background: rgba(15, 23, 42, 0.06);
    border-color: rgba(15, 23, 42, 0.12);
    color: var(--text-primary);
}

/* Badge classes */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    font-family: var(--font-outfit);
    font-weight: 600;
    font-size: 12px;
    border-radius: 20px;
    text-transform: capitalize;
    color: white;
}

.badge-sm {
    padding: 2px 8px;
    font-size: 11px;
}

.bg-violet {
    background-color: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.bg-red {
    background-color: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.bg-green {
    background-color: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.bg-yellow {
    background-color: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.bg-blue {
    background-color: rgba(14, 165, 233, 0.1);
    color: #0284c7;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

/* Classification Card */
.classification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.badge-container {
    display: flex;
    gap: 8px;
}

.confidence-container {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.meta-label {
    color: var(--text-muted);
}

.meta-value {
    font-weight: 600;
    color: var(--accent-violet);
}

.classification-body h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

/* Results section & Providers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.results-count {
    font-size: 13px;
    color: var(--text-muted);
}

.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

/* Provider card */
.pro-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pro-card:hover {
    transform: translateY(-4px);
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: var(--shadow-lg);
}

.pro-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.pro-title h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.pro-source-pill {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

.source-verified {
    background: rgba(16, 185, 129, 0.08);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.source-scraped {
    background: rgba(99, 102, 241, 0.08);
    color: #4f46e5;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.source-google {
    background: rgba(245, 158, 11, 0.08);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.15);
}

.source-demo {
    background: rgba(100, 116, 139, 0.08);
    color: #475569;
    border: 1px solid rgba(100, 116, 139, 0.15);
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.stars {
    color: #eab308;
    letter-spacing: 2px;
    font-size: 14px;
}

.rating-num {
    font-weight: 600;
    font-size: 14px;
}

.review-count {
    font-size: 12px;
    color: var(--text-muted);
}

.rating-link {
    font-size: 13px;
    font-weight: 600;
    color: #eab308;
    text-decoration: none;
}

.rating-link:hover {
    text-decoration: underline;
}

.pro-link {
    color: var(--accent-violet);
    text-decoration: none;
}

.pro-link:hover {
    text-decoration: underline;
}

.pro-link-muted {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 12px;
}

.pro-link-muted:hover {
    color: var(--accent-violet);
}

.detected-problem {
    font-size: 14px;
    margin-bottom: 8px;
    padding: 8px 12px;
    border-left: 3px solid var(--accent-violet);
    background: rgba(99, 102, 241, 0.06);
    border-radius: 6px;
}

.pro-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-icon {
    font-size: 14px;
    color: var(--text-muted);
    width: 18px;
}

.pro-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--glass-border);
    padding-top: 16px;
    margin-top: auto;
}

.price-box {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.price-value {
    font-family: var(--font-outfit);
    font-weight: 700;
    font-size: 18px;
    color: var(--text-primary);
}

/* Sidebar lists: Bookings and History */
.sidebar-card {
    padding: 24px;
}

.sidebar-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 14px;
    margin-bottom: 16px;
}

.sidebar-card-header h3 {
    font-size: 18px;
}

.empty-state {
    text-align: center;
    padding: 20px 0;
    color: var(--text-muted);
    font-size: 13px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-item {
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.02);
    border: 1px solid rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.history-item:hover {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.08);
}

.history-query {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
}

.bookings-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 400px;
    overflow-y: auto;
}

.booking-item {
    background: rgba(15, 23, 42, 0.02);
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.2s ease;
}

.booking-item:hover {
    border-color: rgba(15, 23, 42, 0.08);
}

.booking-pro-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.booking-time {
    font-size: 11px;
    color: var(--text-muted);
}

.booking-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(15, 23, 42, 0.04);
    padding-top: 10px;
    margin-top: 4px;
}

.booking-status-badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 40px;
    font-weight: 600;
    text-transform: capitalize;
}

.status-pending {
    background: rgba(245, 158, 11, 0.08);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.15);
}

.status-confirmed {
    background: rgba(16, 185, 129, 0.08);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.status-cancelled {
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.15);
}

/* Modals */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.25s ease;
    padding: 20px;
}

.modal-card {
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: modalSlide 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlide {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-footer-text {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 16px;
}

.modal-footer-text a {
    color: var(--accent-violet);
    text-decoration: none;
    font-weight: 500;
}

.modal-footer-text a:hover {
    text-decoration: underline;
}

.error-msg {
    color: var(--color-danger);
    font-size: 13px;
    margin-bottom: 14px;
    font-weight: 500;
}

/* Booking Details */
.booking-summary-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
}

.summary-pro-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.summary-pro-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.booking-notice {
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.2);
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: #bae6fd;
    margin-bottom: 20px;
    display: flex;
    gap: 8px;
}

/* Payment Modal Specifics */
.payment-amount-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 14px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    border: 1px solid var(--glass-border);
}

.amount-label {
    font-weight: 500;
    color: var(--text-secondary);
}

.amount-val {
    font-family: var(--font-outfit);
    font-size: 22px;
    font-weight: 700;
    color: white;
}

.payment-info-text {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.col-6 {
    flex: 1;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--bg-secondary);
    color: white;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--accent-violet);
    box-shadow: var(--shadow-lg);
    z-index: 1100;
    font-weight: 500;
    font-size: 14px;
    animation: toastSlide 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes toastSlide {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive adjustments */
@media(max-width: 1024px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }
}

@media(max-width: 640px) {
    .navbar {
        padding: 16px 20px;
    }

    .dashboard-container {
        padding: 20px;
    }

    .hero-section h1 {
        font-size: 28px;
    }

    .search-bar-container {
        flex-direction: column;
        border-radius: var(--radius-md);
        padding: 16px;
        align-items: stretch;
        gap: 8px;
    }

    .search-divider {
        width: 100%;
        height: 1px;
        margin: 8px 0;
    }

    #search-submit {
        width: 100%;
        margin-top: 10px;
    }
}

/* ============================================================
   Live Search additions (city input, progress strip, chips)
   ============================================================ */

.city-field {
    font-weight: 500;
}

.resolved-location {
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Live crawl progress strip */
.crawl-progress {
    margin-bottom: 18px;
    padding: 16px 20px;
}

.crawl-progress-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-family: var(--font-outfit);
    color: var(--text-primary);
}

.live-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-circle);
    background: var(--color-success);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: live-pulse 1.4s infinite;
    flex-shrink: 0;
}

@keyframes live-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.crawl-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.source-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 500;
    border: 1px solid var(--glass-border);
    background: var(--glass-highlight);
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.source-chip b {
    color: var(--text-primary);
}

.source-chip.searching {
    border-color: var(--accent-violet);
    color: var(--text-primary);
}

.source-chip.done {
    border-color: var(--color-success);
    color: var(--color-success);
}

.source-chip.empty {
    opacity: 0.55;
}

.chip-spinner {
    width: 11px;
    height: 11px;
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-top-color: var(--accent-violet);
    border-radius: var(--radius-circle);
    animation: chip-spin 0.7s linear infinite;
}

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

/* New results stream in */
.fade-in {
    animation: card-fade-in 0.35s ease both;
}

@keyframes card-fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer actions for live cards (Call / Email / Open) */
.pro-footer {
    gap: 8px;
    flex-wrap: wrap;
}

.pro-footer .btn {
    flex: 1 1 auto;
    text-align: center;
    text-decoration: none;
}

/* Subsections for Organizations and Individuals */
.result-subsection {
    margin-top: 25px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

.subsection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    padding-bottom: 12px;
}

.subsection-header h3 {
    font-size: 18px;
    color: var(--text-primary);
    font-family: var(--font-outfit);
}

/* AI Worker Suggestion Box Styles */
.ai-suggestion-box {
    margin-top: 20px;
    padding: 16px 20px;
    background: rgba(99, 102, 241, 0.04);
    border: 1px dashed rgba(99, 102, 241, 0.25);
    border-radius: var(--radius-md);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.01);
    animation: card-fade-in 0.4s ease both;
}

.ai-suggestion-title {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--accent-indigo);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-outfit);
}

#ai-suggestion-text {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text-primary);
}

/* Social Media link styling */
.social-link {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    margin-right: 6px;
    border-radius: 4px;
    font-size: 11px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.facebook-link {
    background: rgba(24, 119, 242, 0.15);
    color: #4c8bf5;
    border: 1px solid rgba(24, 119, 242, 0.3);
}

.facebook-link:hover {
    background: rgba(24, 119, 242, 0.3);
}

.linkedin-link {
    background: rgba(10, 102, 194, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(10, 102, 194, 0.3);
}

.linkedin-link:hover {
    background: rgba(10, 102, 194, 0.3);
}

.instagram-link {
    background: rgba(225, 48, 108, 0.15);
    color: #f43f5e;
    border: 1px solid rgba(225, 48, 108, 0.3);
}

.instagram-link:hover {
    background: rgba(225, 48, 108, 0.3);
}

.twitter-link {
    background: rgba(15, 23, 42, 0.04);
    color: var(--text-primary);
    border: 1px solid rgba(15, 23, 42, 0.1);
}

.twitter-link:hover {
    background: rgba(15, 23, 42, 0.08);
}

/* Vendor Detail Modal Styles */
.detail-modal-card {
    max-width: 650px !important;
    width: 90% !important;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.detail-header-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.detail-distance-badge {
    background: rgba(16, 185, 129, 0.08);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.15);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.detail-section {
    margin-top: 24px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    padding-top: 18px;
}

.detail-section h3 {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-family: var(--font-outfit);
    letter-spacing: 0.5px;
}

.detail-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.comment-item {
    background: rgba(15, 23, 42, 0.02);
    border: 1px solid rgba(15, 23, 42, 0.04);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.comment-author {
    font-weight: 600;
    color: var(--accent-indigo);
}

.comment-body {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.45;
}

.no-comments-msg {
    font-size: 12.5px;
    color: var(--text-muted);
    font-style: italic;
}

.social-links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pro-card-clickable {
    cursor: pointer;
    transition: all 0.2s ease-in-out !important;
}

.pro-card-clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15) !important;
    border-color: rgba(99, 102, 241, 0.3) !important;
}