/* ==========================================================================
   SCOOBLY — Luxury Pink & Blue SaaS Edition
   Visual Style: Royal Blue + Electric Sky + Rose Pink & Magenta
   ========================================================================== */

:root {
    /* Canvas & Background */
    --bg-page: #0b0f19;
    
    /* Surfaces */
    --surface-card: #111827;
    --surface-card-secondary: #1e293b;
    --surface-input: #0f172a;
    --surface-btn-secondary: #1e293b;
    --surface-hover: #26334d;
    
    /* Pink & Blue Palette */
    --blue-primary: #3b82f6;
    --blue-indigo: #4f46e5;
    --blue-sky: #38bdf8;
    --blue-subtle: rgba(59, 130, 246, 0.12);
    --blue-border: rgba(59, 130, 246, 0.35);
    
    --pink-primary: #ec4899;
    --pink-rose: #f43f5e;
    --pink-light: #f472b6;
    --pink-subtle: rgba(236, 72, 153, 0.12);
    --pink-border: rgba(236, 72, 153, 0.35);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    --gradient-primary-hover: linear-gradient(135deg, #60a5fa 0%, #a855f7 50%, #f472b6 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(236, 72, 153, 0.12) 100%);
    --gradient-line: linear-gradient(90deg, #38bdf8 0%, #8b5cf6 50%, #ec4899 100%);
    
    /* Subtle Shadows */
    --shadow-card: 0 15px 45px rgba(0, 0, 0, 0.3);
    --shadow-dropdown: 0 20px 50px rgba(0, 0, 0, 0.5);
    --shadow-btn: 0 6px 20px rgba(236, 72, 153, 0.35), 0 2px 10px rgba(59, 130, 246, 0.25);
    
    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.15);
    
    /* Utility Accents */
    --amber-warning: #f59e0b;
    --amber-subtle: rgba(245, 158, 11, 0.08);
    --amber-border: rgba(245, 158, 11, 0.22);
    --amber-text: #fbbf24;
    
    --danger-rose: #f43f5e;
    --danger-subtle: rgba(244, 63, 94, 0.12);
    --danger-border: rgba(244, 63, 94, 0.28);
    --danger-text: #fda4af;
    
    /* Typography */
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-disabled: #475569;
    
    /* Radius System */
    --radius-sm: 8px;
    --radius-btn: 10px;
    --radius-card: 16px;
    --radius-pill: 9999px;
}

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

body {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

/* Ambient Background (Blue & Pink Radial Glows) */
.background-ambient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: 
        radial-gradient(circle at 18% 10%, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.08) 35%, transparent 65%),
        radial-gradient(circle at 85% 85%, rgba(236, 72, 153, 0.14) 0%, rgba(244, 63, 94, 0.06) 40%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

/* App Container */
.app-container {
    max-width: 1120px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 24px 64px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Top User Bar
   ========================================================================== */
.top-user-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.auth-user-pill {
    background: var(--surface-card);
    border: 1px solid var(--blue-border);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 14px rgba(59, 130, 246, 0.15);
}

.auth-user-pill i {
    color: var(--blue-sky);
    font-size: 12px;
}

.auth-user-pill span {
    color: var(--text-primary);
    font-weight: 600;
}

.logout-btn {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: var(--pink-subtle);
    border-color: var(--pink-border);
    color: var(--pink-light);
}

/* ==========================================================================
   Header & Wordmark (Pink & Blue Identity)
   ========================================================================== */
header {
    text-align: center;
    margin-bottom: 32px;
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 12px;
}

.logo-icon-wrapper {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-btn);
}

.logo-icon {
    font-size: 22px;
    color: #ffffff;
}

.logo h1 {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -0.8px;
    color: #ffffff;
    line-height: 1;
}

.gradient-pro {
    background: linear-gradient(135deg, #ec4899 0%, #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 14.5px;
    font-weight: 400;
    max-width: 580px;
    margin: 0 auto 28px;
    line-height: 1.5;
}

/* ==========================================================================
   Extractor Tabs (Segmented Control)
   ========================================================================== */
.source-tabs {
    display: inline-flex;
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 5px;
    gap: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.source-tab {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    height: 44px;
}

.source-tab:hover:not(.active) {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.source-tab.active {
    background: var(--gradient-subtle);
    border: 1px solid var(--blue-border);
    color: #ffffff;
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.2);
}

.badge-new {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.4);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.text-sky { color: var(--blue-sky) !important; }
.text-indigo { color: var(--blue-primary) !important; }
.text-amber { color: var(--amber-warning) !important; }

/* ==========================================================================
   Main Cards
   ========================================================================== */
main {
    display: flex;
    flex-direction: column;
}

.source-panel {
    margin-bottom: 22px;
}

.search-card {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    padding: 26px 28px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.search-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-line);
}

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

.panel-title {
    display: flex;
    gap: 14px;
    align-items: center;
}

.panel-title i {
    font-size: 24px;
    color: var(--blue-sky);
}

.panel-title h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.2px;
    margin-bottom: 3px;
}

.panel-title p {
    color: var(--text-secondary);
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.4;
}

.tool-btn {
    background: var(--surface-card-secondary);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.tool-btn:hover {
    background: var(--surface-hover);
    color: var(--blue-sky);
    border-color: var(--blue-border);
}

/* ==========================================================================
   Action Buttons (Substantial Scale: 44px)
   ========================================================================== */
.action-buttons-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.primary-btn {
    background: var(--gradient-primary);
    color: #ffffff;
    border: none;
    height: 44px;
    padding: 0 22px;
    border-radius: var(--radius-btn);
    font-weight: 700;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-btn);
    position: relative;
    overflow: hidden;
}

.primary-btn i {
    font-size: 16px;
}

.primary-btn:hover:not(:disabled) {
    background: var(--gradient-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.45);
}

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

.secondary-btn {
    background: var(--surface-btn-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    height: 44px;
    padding: 0 18px;
    border-radius: var(--radius-btn);
    font-weight: 600;
    font-size: 13.5px;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.secondary-btn i {
    font-size: 15px;
    color: var(--blue-sky);
}

.secondary-btn:hover {
    background: var(--surface-hover);
    border-color: var(--blue-border);
    color: #ffffff;
}

/* ==========================================================================
   1-Click Method Area
   ========================================================================== */
.bookmarklet-bar {
    background: linear-gradient(90deg, #f59e0b 0%, #ea580c 100%);
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    color: #000000;
}

.bookmarklet-step-badge {
    background: #000000;
    color: #fbbf24;
    border: none;
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.bookmarklet-steps {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #000000;
    font-weight: 600;
    flex-wrap: wrap;
}

.bookmarklet-btn {
    background: #000000;
    color: #fbbf24 !important;
    border: 1px solid rgba(0, 0, 0, 0.2);
    text-decoration: none;
    font-weight: 700;
    font-size: 12.5px;
    padding: 4px 10px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: grab;
    transition: all 0.2s ease;
}

.bookmarklet-btn:hover {
    background: #18181b;
    color: #ffffff !important;
}

/* Instant Paste Section */
.paste-section {
    background: var(--surface-card-secondary);
    border: 1px solid var(--blue-border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 18px;
    animation: fadeIn 0.2s ease-out;
}

.paste-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 6px;
}

.paste-hint {
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 400;
}

#pasteInput {
    width: 100%;
    height: 100px;
    background: var(--surface-input);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 12px;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s ease;
}

#pasteInput:focus {
    border-color: var(--blue-sky);
}

/* ==========================================================================
   Google Maps Search Bar
   ========================================================================== */
.search-bar {
    display: flex;
    gap: 8px;
    background: var(--surface-input);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 5px;
    align-items: center;
    height: 54px;
}

.search-bar .search-icon {
    display: flex;
    align-items: center;
    padding-left: 14px;
    color: var(--blue-sky);
    font-size: 15px;
}

.search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 12px;
    color: var(--text-primary);
    font-size: 14.5px;
    font-family: inherit;
    outline: none;
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

#searchBtn {
    width: 135px;
    height: 44px;
    flex-shrink: 0;
    font-size: 14px;
}

/* ==========================================================================
   Result Toolbar (Height: 38px, Blue & Pink Accents)
   ========================================================================== */
.controls-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 12px;
}

.status-pill-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.live-indicator-pill {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
}

.status-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: pulseDot 1.8s infinite ease-in-out;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 10px #10b981; }
    50% { opacity: 0.6; transform: scale(1.2); box-shadow: 0 0 16px #10b981; }
}

.leads-counter-pill {
    background: var(--surface-card);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.leads-counter-pill i {
    color: var(--blue-sky);
}

.leads-counter-pill span {
    color: var(--blue-sky);
    font-weight: 800;
}

.action-buttons-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.search-filter-box i {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    font-size: 13px;
}

.search-filter-box input {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 8px 14px 8px 34px;
    color: var(--text-primary);
    font-size: 13px;
    font-family: inherit;
    outline: none;
    height: 38px;
    width: 210px;
    transition: all 0.2s ease;
}

.search-filter-box input:focus {
    width: 250px;
    border-color: var(--blue-sky);
    background: var(--surface-card-secondary);
}

.download-btn {
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
    padding: 0 16px;
    height: 38px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s ease;
}

.download-btn:hover:not(:disabled) {
    background: rgba(16, 185, 129, 0.3);
    color: #ffffff;
    border-color: #10b981;
}

.download-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    box-shadow: none;
}

.clear-btn {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #f87171;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.clear-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: #ef4444;
    color: #ffffff;
}

/* ==========================================================================
   Results Container & Lead Cards
   ========================================================================== */
.results-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 18px;
    padding-bottom: 56px;
}

.lead-card {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 20px;
    box-shadow: var(--shadow-card);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 11px;
    position: relative;
    overflow: hidden;
}

.lead-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-line);
    opacity: 0.6;
}

.lead-card:hover {
    transform: translateY(-3px);
    background: var(--surface-card-secondary);
    border-color: var(--pink-border);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.card-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.lead-source-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.4px;
}

.badge-source-justdial {
    background: var(--pink-subtle);
    color: var(--pink-light);
    border: 1px solid var(--pink-border);
}

.badge-source-google {
    background: var(--blue-subtle);
    color: var(--blue-sky);
    border: 1px solid var(--blue-border);
}

.rating-badge {
    background: var(--amber-subtle);
    color: var(--amber-text);
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.lead-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
    letter-spacing: -0.2px;
}

.lead-type {
    font-size: 12px;
    color: var(--blue-sky);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.lead-info-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 4px 0;
}

.lead-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 13.5px;
    line-height: 1.45;
}

.lead-info-item i {
    color: var(--pink-light);
    margin-top: 3px;
    width: 14px;
    font-size: 13px;
    flex-shrink: 0;
}

.phone-badge {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 13px;
    color: var(--blue-sky);
    background: var(--blue-subtle);
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid var(--blue-border);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.card-actions-row {
    margin-top: auto;
    display: flex;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
}

.card-action-btn {
    flex: 1;
    padding: 7px 10px;
    border-radius: 7px;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-whatsapp {
    background: var(--pink-subtle);
    color: var(--pink-light);
    border: 1px solid var(--pink-border);
}

.btn-whatsapp:hover {
    background: var(--pink-primary);
    color: #ffffff;
}

.btn-phone {
    background: var(--blue-subtle);
    color: var(--blue-sky);
    border: 1px solid var(--blue-border);
}

.btn-phone:hover {
    background: var(--blue-primary);
    color: #ffffff;
}

.btn-link {
    background: var(--surface-card-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.btn-link:hover {
    background: var(--surface-hover);
    color: #ffffff;
}

/* ==========================================================================
   Results Empty State
   ========================================================================== */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 44px 24px;
    background: var(--surface-input);
    border: 1px dashed var(--pink-border);
    border-radius: var(--radius-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 290px;
}

.empty-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-subtle);
    color: var(--pink-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 14px;
    border: 1px solid var(--pink-border);
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 14px;
    max-width: 480px;
    line-height: 1.5;
}

/* ==========================================================================
   Loading & Notification States
   ========================================================================== */
#loadingState {
    text-align: center;
    margin: 32px 0;
}

.loader {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--blue-sky);
    border-right-color: var(--pink-primary);
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

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

#loadingState p {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 700;
}

.loading-subtext {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 4px;
}

#errorState {
    text-align: center;
    color: var(--danger-text);
    background: var(--danger-subtle);
    border: 1px solid var(--danger-border);
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    max-width: 600px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 600;
}

.hidden {
    display: none !important;
}

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

/* ==========================================================================
   Guide Modal
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: fadeIn 0.2s ease-out;
}

.modal-content {
    background: var(--surface-card);
    border: 1px solid var(--blue-border);
    border-radius: var(--radius-card);
    width: 100%;
    max-width: 620px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-dropdown);
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-title h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

.modal-close:hover {
    color: var(--pink-light);
}

.modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.guide-step {
    display: flex;
    gap: 14px;
}

.step-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--gradient-subtle);
    border: 1px solid var(--pink-border);
    color: var(--pink-light);
    font-weight: 800;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.step-text strong {
    color: var(--text-primary);
    font-size: 14px;
    display: block;
    margin-bottom: 3px;
}

.step-text p {
    color: var(--text-secondary);
    font-size: 13.5px;
    line-height: 1.45;
}

.badge-text {
    background: var(--pink-subtle);
    color: var(--pink-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: flex-end;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    margin-top: auto;
    padding: 28px 0 16px;
    border-top: 1px solid var(--border-subtle);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 13px;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-badges {
    display: flex;
    gap: 18px;
}

.footer-badges span {
    display: flex;
    align-items: center;
    gap: 7px;
}

.footer-badges span i {
    color: var(--pink-light);
}

/* ==========================================================================
   Workspace Scope Toggle & Team Badges
   ========================================================================== */
.workspace-toggle-group {
    display: inline-flex;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    padding: 3px;
    gap: 3px;
}

.workspace-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.workspace-toggle-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.workspace-toggle-btn.active {
    background: var(--gradient-primary);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.35);
}

.badge-scraped-by {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.35);
    color: #c4b5fd;
    font-size: 0.72rem;
    font-weight: 600;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 768px) {
    .app-container {
        padding: 14px 16px 40px;
    }

    .logo h1 {
        font-size: 34px;
    }

    .search-card {
        padding: 20px 18px;
    }

    .action-buttons-row {
        flex-direction: column;
        align-items: stretch;
    }

    .action-buttons-row button {
        width: 100%;
    }

    .search-bar {
        flex-direction: column;
        height: auto;
        padding: 8px;
    }

    #searchBtn {
        width: 100%;
        height: 44px;
    }

    .controls-section {
        flex-direction: column;
        align-items: stretch;
    }

    .status-pill-container, .action-buttons-group {
        justify-content: space-between;
    }

    .search-filter-box {
        flex: 1;
    }

    .search-filter-box input {
        width: 100%;
    }

    .search-filter-box input:focus {
        width: 100%;
    }

    .results-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}