/* Ultra-Premium White Theme - $100M Design */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    
    --accent: #ec4899;
    --accent-light: #f472b6;
    
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    --bg-white: #ffffff;
    --bg-light: #fafafa;
    --bg-gray: #f5f5f5;
    --bg-card: #ffffff;
    
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
}

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

/* Spinner animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Refresh button animations */
.btn-refresh-modern:active {
    transform: scale(0.95);
}

.btn-refresh-modern:hover {
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-overflow-scrolling: touch;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px !important;
    height: 100vh;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.sidebar.collapsed {
    width: 72px !important;
}

.sidebar.collapsed .sidebar-header {
    padding: 0.75rem 0.5rem;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
}

.sidebar-header {
    padding: 1.75rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 88px;
    position: relative;
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.logo-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    letter-spacing: -0.02em;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar:not(.collapsed) .logo-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.brand-text {
    flex: 1;
    min-width: 0;
    opacity: 1;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.collapsed .brand-text {
    display: none;
}

.sidebar.collapsed .brand-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.sidebar.collapsed .logo-icon {
    margin: 0;
}

.logo {
    font-size: 1.375rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
    margin-bottom: 0.125rem;
    white-space: nowrap;
}

.tagline {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.sidebar-toggle {
    width: 32px;
    height: 32px;
    border: none;
    background: #f8fafc;
    border-radius: 8px;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.sidebar-toggle:hover {
    background: #6366f1;
    color: white;
    transform: scale(1.05);
}

.sidebar-toggle:active {
    transform: scale(0.95);
}

.sidebar.collapsed .sidebar-toggle svg {
    transform: rotate(180deg);
}

.nav-menu {
    flex: 1;
    padding: 1rem 0.75rem;
    list-style: none;
    overflow-y: auto;
}

.nav-item {
    margin: 0.25rem 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    border-radius: 10px;
    margin: 0 0.25rem;
}

.nav-link:hover {
    color: #6366f1;
    background: #f0f4ff;
}

.nav-link.active {
    color: #6366f1;
    background: linear-gradient(135deg, #eff6ff 0%, #f0f4ff 100%);
    box-shadow: 0 1px 3px rgba(99, 102, 241, 0.1);
}

.nav-link .icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.25s;
}

.nav-link:hover .icon {
    transform: scale(1.1);
}

.nav-link.active .icon {
    transform: scale(1.05);
}

.nav-link .icon svg {
    width: 20px;
    height: 20px;
}

.nav-text {
    opacity: 1;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.collapsed .nav-text {
    opacity: 0;
    width: 0;
}

.sidebar.collapsed .nav-link {
    justify-content: center;
    padding: 0.875rem;
}

/* Main Content */
.main-content {
    margin-left: 280px;
    padding: 3rem;
    max-width: 1600px;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* When sidebar is collapsed */
.sidebar.collapsed ~ .main-content {
    margin-left: 72px;
}

.content-section {
    display: none;
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.content-section.active {
    display: block;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

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

/* Section Headers */
.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.75rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-left: 4.25rem;
    font-weight: 400;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--bg-gray);
}

.card-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

/* Forms */
.form-group {
    margin-bottom: 1.75rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
    margin-bottom: 1.75rem;
}

label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

input[type="text"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}

input:hover,
select:hover,
textarea:hover {
    border-color: var(--border-medium);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

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

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-decoration: none;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.35);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--text-primary);
    border: 2px solid var(--border-medium);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--bg-light);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.35);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning) 0%, #d97706 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.btn-warning:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(245, 158, 11, 0.35);
}

.btn-small {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
}

/* Results List Container - Scroll Snap Feed */
.results-list,
#targetLeadsList {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-padding-top: 1rem;
    overflow-y: auto;
    flex: 1;
}

/* Result Cards */
.result-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: var(--shadow-sm);
    scroll-snap-align: start;
    scroll-margin-top: 1rem;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    opacity: 0;
    transition: opacity 0.3s;
}

.result-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.result-card:hover::before {
    opacity: 1;
}

/* Enhanced scroll-in animation */
@keyframes fadeSlideIn {
    from {
        opacity: 0.7;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.result-card {
    animation: fadeSlideIn 0.4s ease-out;
}

/* Active card highlight during scroll */
@supports (animation-timeline: view()) {
    .result-card {
        animation: none;
        view-timeline-name: --card;
        animation-timeline: --card;
    }
}

.business-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-light);
}

.result-number {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.75rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.2);
    letter-spacing: 0.05em;
}

.business-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.625rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.business-address {
    color: var(--text-secondary);
    margin-bottom: 0.625rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.result-details {
    margin: 1.25rem 0;
    display: grid;
    gap: 0.625rem;
}

.detail-row {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 0.75rem 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

.detail-label {
    font-weight: 700;
    color: var(--text-primary);
    min-width: 120px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-value {
    color: var(--text-secondary);
    flex: 1;
    font-weight: 500;
    font-size: 0.875rem;
}

/* Badges */
.badge {
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    letter-spacing: 0.02em;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #6ee7b7;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
    border: 2px solid #fcd34d;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
    border: 2px solid #93c5fd;
}

.status-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 1.25rem 0;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--bg-gray);
}

/* Disposition Buttons */
.disposition-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 2rem;
}

.disposition-label {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-disposition {
    padding: 0.875rem 1.75rem;
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-disposition::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-disposition:active::before {
    width: 300px;
    height: 300px;
}

.btn-disposition:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2), 0 3px 6px rgba(0, 0, 0, 0.15);
}

.btn-disposition:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-interested {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-booked-demo {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

.btn-callback {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.btn-no-answer {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
}

.btn-voicemail {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.btn-not-interested {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.btn-add-note {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.btn-add-note:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.35);
}

/* Team Info */
.team-info-section {
    margin-top: 2.5rem;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.btn-get-team {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    padding: 1.125rem 2.25rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
    letter-spacing: 0;
}

.btn-get-team:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.btn-get-team:active {
    transform: translateY(0);
}

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

/* Send Email Button */
.btn-send-email {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 1.125rem 2.25rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.25), 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-send-email::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-send-email:active::before {
    width: 300px;
    height: 300px;
}

.btn-send-email:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.35), 0 4px 8px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-send-email:active {
    transform: translateY(0);
}

.team-info-content {
    margin-top: 2rem;
}

/* Business Cheat Sheet */
.business-cheat-sheet {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.collapsible-header {
    padding: 1rem 1.25rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-light);
    transition: all 0.2s;
    border-bottom: 1px solid var(--border-light);
}

.collapsible-header:hover {
    background: var(--bg-white);
}

.collapsible-header h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.collapsible-toggle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    transition: transform 0.3s;
    line-height: 1;
}

.collapsible-header.active .collapsible-toggle {
    transform: rotate(180deg);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.collapsible-content.active {
    max-height: 3000px;
}

.collapsible-inner {
    padding: 1.25rem;
}

.team-hint {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 1rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid var(--border-light);
}

.cheat-section {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 0.625rem 0.875rem;
    margin-bottom: 0.625rem;
    transition: all 0.2s;
}

.cheat-section:hover {
    background: var(--bg-white);
    border-color: var(--primary-light);
}

.cheat-section strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.375rem;
}

.cheat-section p {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    line-height: 1.4;
    margin: 0;
    font-weight: 500;
}

.cheat-section ul {
    margin: 0.375rem 0 0 0;
    padding-left: 1.125rem;
}

.cheat-section li {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    line-height: 1.4;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

/* LLC Info Section */
.llc-info-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    padding: 0.875rem 1rem;
}

.llc-info-section strong {
    color: var(--primary);
    font-size: 0.75rem;
}

.llc-info-section p {
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0.25rem 0;
}

/* Contact Info Section */
.contact-info-section {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid #93c5fd;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.contact-info-section h4 {
    margin: 0 0 0.75rem 0;
    color: #1e40af;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.contact-info-section strong {
    font-size: 0.8125rem;
}

.contact-info-section ul {
    margin: 0.5rem 0;
    padding-left: 1.25rem;
}

.contact-info-section li {
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0.25rem;
}

/* Team Members Section */
.team-members-section {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-top: 1rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.team-member-count {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 1rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid var(--border-light);
}

.team-member-card {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 0.875rem 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s;
}

.team-member-card:hover {
    background: var(--bg-white);
    border-color: var(--primary-light);
}

.team-member-card h5 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
    letter-spacing: -0.01em;
}

.team-member-title {
    display: inline-block;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 0.1875rem 0.625rem;
    border-radius: var(--radius-sm);
    font-size: 0.6875rem;
    font-weight: 700;
    margin-bottom: 0.625rem;
    letter-spacing: 0.02em;
}

.team-member-details {
    margin-top: 0.625rem;
}

.team-member-details ul {
    margin: 0;
    padding-left: 1.125rem;
}

.team-member-details li {
    color: var(--text-secondary);
    font-size: 0.75rem;
    line-height: 1.4;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.team-member-details strong {
    color: var(--text-primary);
    font-weight: 700;
}

/* Team Error Messages */
.team-error {
    background: #fee2e2;
    border: 2px solid #fca5a5;
    color: #991b1b;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 600;
}

/* Social Links */
.social-links-section {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.social-links-hint {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 1rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid var(--border-light);
}

.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
}

.social-link {
    padding: 0.75rem 1rem;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.social-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Saved Searches */
.category-section {
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-2xl);
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
}

.category-section:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.category-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border-bottom: 2px solid var(--border-light);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    cursor: pointer;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.category-emoji {
    font-size: 2rem;
}

.category-badge {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-secondary);
    padding: 0.5rem 1.25rem;
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
}

.category-toggle {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.btn-download-category {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.btn-download-category:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.35);
}

.category-content {
    padding: 1.5rem;
}

/* State Section */
.state-section {
    background: var(--bg-light);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-xl);
    margin-bottom: 1.25rem;
    overflow: hidden;
}

.state-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: var(--bg-white);
}

.state-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    cursor: pointer;
}

.state-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.state-emoji {
    font-size: 1.5rem;
}

.state-badge {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    padding: 0.4rem 1rem;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
}

.state-toggle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.btn-download-state {
    background: var(--bg-white);
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.7rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-download-state:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.state-content {
    padding: 1rem;
}

/* Saved Item */
.saved-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.saved-item:hover {
    border-color: var(--primary-light);
    transform: translateX(6px);
    box-shadow: var(--shadow-lg);
}

.search-checkbox {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: var(--primary);
}

.saved-info {
    flex: 1;
}

.saved-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.saved-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.saved-date,
.saved-count {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
}

.btn-view {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.btn-view:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.35);
}

/* Results Section - CRM Style */
.results-section {
    margin-top: 2rem;
    animation: fadeIn 0.2s ease-out;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

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

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

.results-header {
    position: relative;
    margin-bottom: 1.5rem;
    padding: 1.5rem 1.75rem;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-close-results {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    color: #6b7280;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.btn-close-results:hover {
    background: #f3f4f6;
    color: #374151;
}

.results-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.results-title-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.results-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    letter-spacing: -0.02em;
}

.results-count-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.results-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.sort-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-container label {
    margin: 0;
    font-weight: 600;
    color: #6b7280;
    text-transform: none;
    font-size: 0.875rem;
}

.sort-select {
    padding: 0.5rem 0.75rem;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #374151;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.sort-select:hover {
    border-color: #9ca3af;
}

.sort-select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.btn-export {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-export:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Filter Controls */
.filter-controls-search {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid #bfdbfe;
    border-radius: var(--radius-xl);
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
}

.filter-checkbox {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: var(--primary);
}

.review-threshold {
    width: 90px;
    padding: 0.5rem 0.75rem;
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 700;
    text-align: center;
}

/* Callback Quick Buttons */
.callback-quick-btn {
    padding: 1rem 0.75rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0ea5e9;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.callback-quick-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
}

.callback-quick-btn:active, .callback-quick-btn.selected {
    transform: translateY(0);
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
}

.callback-quick-btn.selected div {
    color: white;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-2xl);
    padding: 3rem;
    max-width: 600px;
    width: 90%;
    box-shadow: var(--shadow-2xl);
    animation: modalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    margin-bottom: 2rem;
}

.modal-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.modal-actions {
    display: flex;
    gap: 1.25rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Loading & Messages */
.loader {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.loading-text {
    text-align: center;
    color: var(--text-secondary);
    padding: 3rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.no-results {
    text-align: center;
    color: var(--text-secondary);
    padding: 4rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.error-message {
    background: #fee2e2;
    border: 2px solid #fecaca;
    color: #991b1b;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin: 1.5rem 0;
    font-weight: 600;
}

.success-message {
    background: #d1fae5;
    border: 2px solid #6ee7b7;
    color: #065f46;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin: 1.5rem 0;
    font-weight: 600;
}

/* Lead Manager */
.lead-manager-section {
    margin-top: 2rem;
}

.disposition-group {
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-2xl);
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.disposition-header {
    padding: 1.75rem 2rem;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
    border-bottom: 2px solid var(--border-light);
}

.disposition-header:hover {
    background: linear-gradient(135deg, #f5f5f5 0%, #e5e5e5 100%);
}

.disposition-title {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lead-card {
    padding: 2rem;
    border-bottom: 2px solid var(--bg-gray);
    transition: all 0.3s;
}

.lead-card:hover {
    background: var(--bg-light);
}

.lead-card:last-child {
    border-bottom: none;
}

/* Desktop responsive - keep sidebar visible */
@media (min-width: 1025px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* Modern Saved Searches - Fluid Design */
.saved-searches-modern {
    padding: 2.5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.searches-toolbar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 10;
}

.search-bar-container {
    flex: 1;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #111827;
    background: white;
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-input::placeholder {
    color: #9ca3af;
}

.btn-refresh-modern {
    padding: 0.875rem 1.25rem;
    background: white;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-refresh-modern:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #374151;
}

.quick-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.filter-pill {
    padding: 0.5rem 1rem;
    background: white;
    border: 1.5px solid #e5e7eb;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.filter-pill:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.filter-pill.active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-color: #6366f1;
    color: white;
}

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

.search-card {
    background: white;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.search-card:hover {
    border-color: #6366f1;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
}

.search-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.search-keyword {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    flex: 1;
}

.search-category-badge {
    padding: 0.25rem 0.625rem;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    white-space: nowrap;
}

.search-location {
    display: flex;
    align-items: center;
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.search-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid #f3f4f6;
}

.search-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.8125rem;
    color: #9ca3af;
}

.search-date, .search-count {
    font-weight: 500;
}

.search-arrow {
    color: #d1d5db;
    transition: all 0.2s;
}

.search-card:hover .search-arrow {
    color: #6366f1;
    transform: translateX(3px);
}

/* Category Groups - Organized Sections */
.category-group {
    margin-bottom: 3rem;
}

.category-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f3f4f6;
}

.category-group-header h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-count {
    padding: 0.375rem 0.875rem;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #6b7280;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

#searchesGrid {
    display: block;
}

/* State Subsections */
.state-subsection {
    margin-bottom: 2rem;
    padding-left: 1rem;
    border-left: 3px solid #e5e7eb;
}

.state-subsection-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.state-name {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #374151;
}

.state-count {
    padding: 0.25rem 0.625rem;
    background: #f3f4f6;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
}

/* Quick Note Box - Inline on Cards */
.quick-note-box {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: #fafafa;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
}

.quick-note-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.quick-note-input {
    width: 100%;
    padding: 0.75rem;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.2s;
    background: white;
}

.quick-note-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.quick-note-input::placeholder {
    color: #9ca3af;
}

.btn-save-note {
    margin-top: 0.75rem;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
}

.btn-save-note:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
}

.btn-save-note:active {
    transform: translateY(0);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    width: 48px;
    height: 48px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    align-items: center;
    justify-content: center;
    color: #374151;
    transition: all 0.2s;
}

.mobile-menu-btn:hover {
    background: #f9fafb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mobile-menu-btn:active {
    transform: scale(0.95);
}

/* ========================================
   MOBILE & TABLET RESPONSIVE DESIGN
   ======================================== */

/* Tablet and Mobile - Bottom Navigation Bar */
@media (max-width: 1024px) {
    /* Sidebar becomes bottom navigation bar */
    .sidebar {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 70px !important;
        flex-direction: row !important;
        z-index: 1000 !important;
        border-top: 1px solid #e5e7eb !important;
        border-left: none !important;
        border-radius: 0 !important;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08) !important;
        transform: none !important;
    }
    
    /* Hide header and toggle button on mobile/tablet */
    .sidebar-header,
    .sidebar-toggle {
        display: none !important;
    }
    
    /* Navigation menu - horizontal layout */
    .nav-menu {
        display: flex !important;
        flex-direction: row !important;
        width: 100% !important;
        padding: 0 !important;
        justify-content: space-around !important;
        align-items: center !important;
        gap: 0 !important;
    }
    
    /* Navigation links - vertical icon + text */
    .nav-link {
        flex-direction: column !important;
        gap: 0.25rem !important;
        padding: 0.5rem 0.5rem !important;
        border-radius: 12px !important;
        flex: 1 !important;
        justify-content: center !important;
        align-items: center !important;
        min-width: 0 !important;
    }
    
    /* Navigation text - always visible on bottom nav */
    .nav-text {
        opacity: 1 !important;
        font-size: 0.7rem !important;
        font-weight: 500 !important;
        white-space: nowrap !important;
        display: block !important;
        width: auto !important;
    }
    
    /* Icons in bottom nav */
    .nav-link svg {
        width: 22px !important;
        height: 22px !important;
    }
    
    /* Active state for bottom nav */
    .nav-link.active {
        background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
        color: white !important;
    }
    
    .nav-link.active .nav-text {
        color: white !important;
    }
    
    /* Main content - adjust for bottom nav */
    .main-content {
        margin-left: 0 !important;
        margin-bottom: 0 !important;
        padding-bottom: 120px !important; /* Space for bottom nav */
        width: 100% !important;
        padding: 1rem !important;
    }
    
    /* Add extra bottom padding to content sections */
    .content-section {
        padding-bottom: 2rem !important;
    }
    
    /* Results section must allow content to flow */
    .results-section {
        display: block !important;
    }
    
    /* Hide mobile menu button - not needed with bottom nav */
    .mobile-menu-btn {
        display: none !important;
    }
    
    /* Page headers - Compact for mobile */
    .page-header {
        padding: 0.75rem 1rem;
        margin-bottom: 0.5rem;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .page-header p {
        font-size: 0.8rem;
        display: none; /* Hide subtitle on mobile for space */
    }
    
    /* MOBILE SALES OPTIMIZED CARDS - SIMPLE SCROLLING */
    .results-list {
        padding: 0.4rem;
    }
    
    .result-item {
        padding: 0.75rem;
        margin-bottom: 0;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    /* PREMIUM MOBILE: Clean, modern cards */
    .result-card {
        padding: 1rem;
        margin-bottom: 1rem;
        border-radius: 12px;
        background: white;
        border: 1px solid #e5e7eb;
        box-shadow: 0 2px 6px rgba(0,0,0,0.08);
        line-height: 1.6;
    }
    
    .result-content {
        /* Clean, modern flow */
    }
    
    .business-header {
        margin-bottom: 0.625rem;
        padding-bottom: 0.625rem;
        border-bottom: 1px solid #f1f5f9;
        flex-shrink: 0;
    }
    
    /* PREMIUM: Bold name, clean hierarchy - now inline with badge */
    .business-name {
        font-size: 1.125rem !important;
        font-weight: 700 !important;
        line-height: 1.4;
        color: #0f172a;
        letter-spacing: -0.015em;
    }
    
    /* PREMIUM: Compact address */
    .business-address {
        font-size: 0.8125rem !important;
        margin-bottom: 0;
        line-height: 1.6;
        color: #64748b;
        font-weight: 500;
    }
    
    /* PREMIUM: Compact badge next to business name */
    .result-number {
        margin-bottom: 0;
        padding: 0.375rem 0.625rem;
        font-size: 0.6875rem;
        font-weight: 700;
        flex-shrink: 0;
    }
    
    /* PREMIUM: Compact grid, clean spacing */
    .result-details {
        margin: 0.875rem 0;
        gap: 0.625rem;
        display: grid;
        grid-template-columns: 1fr;
        flex-shrink: 1;
    }
    
    /* PREMIUM: Clean, readable details */
    .detail-item {
        padding: 0.625rem 0.75rem;
        border-radius: 6px;
        font-size: 0.875rem;
        background: #f8fafc;
        line-height: 1.6;
    }
    
    .detail-label {
        min-width: 60px;
        font-size: 0.875rem;
    }
    
    .detail-value {
        font-size: 0.9375rem;
        line-height: 1.6;
        color: #1e293b;
    }
    
    /* PREMIUM: Phone - prominent but clean */
    .detail-item:has(.detail-label:contains('📞')) {
        background: #ecfdf5;
        border: 1.5px solid #10b981;
        padding: 0.625rem 0.75rem;
    }
    
    .detail-item:has(.detail-label:contains('📞')) a {
        font-size: 1rem !important;
        font-weight: 700 !important;
        color: #059669 !important;
    }
    
    /* Action buttons container - includes disposition + call + team info */
    .action-buttons-container {
        margin-top: 0.5rem;
        flex-shrink: 0;
    }
    
    /* PREMIUM: Compact disposition grid */
    .disposition-buttons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        margin-bottom: 0.625rem;
        flex-shrink: 0;
    }
    
    .disposition-label {
        grid-column: 1 / -1;
        font-size: 0.75rem;
        margin-bottom: 0.375rem;
        font-weight: 600;
        color: #64748b;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
    
    /* PREMIUM: Clean, tappable disposition buttons */
    .btn-disposition {
        padding: 0.75rem 0.875rem;
        font-size: 0.8125rem;
        font-weight: 700;
        border-radius: 8px;
        width: 100%;
        justify-content: center;
        min-height: 44px;
        letter-spacing: 0.01em;
    }
    
    /* PREMIUM: Clean action buttons */
    .btn-get-team,
    .btn-send-email {
        padding: 0.625rem 0.875rem;
        font-size: 0.8125rem;
        border-radius: 8px;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.375rem;
        min-height: 44px;
        font-weight: 700;
    }
    
    /* PREMIUM: Compact notes section */
    .quick-note-box {
        margin-top: 0.75rem;
        padding: 0.75rem;
        background: #f8fafc;
        border-radius: 8px;
    }
    
    .quick-note-label {
        font-size: 0.75rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
        display: block;
        color: #64748b;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
    
    .quick-note-input {
        width: 100%;
        padding: 0.75rem;
        font-size: 0.875rem;
        border: 1.5px solid #e5e7eb;
        border-radius: 8px;
        margin-bottom: 0.5rem;
        min-height: 70px;
    }
    
    .btn-save-note {
        width: 100%;
        padding: 0.75rem;
        font-size: 0.8125rem;
        font-weight: 700;
        border-radius: 8px;
        min-height: 44px;
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        color: white;
        border: none;
        box-shadow: 0 1px 3px rgba(16, 185, 129, 0.2);
    }
    
    /* Team info button - Prominent */
    .btn-get-team {
        width: 100%;
        padding: 0.875rem;
        font-size: 0.9rem;
        font-weight: 700;
        margin-top: 0.75rem;
        min-height: 48px;
        border-radius: 8px;
    }
    
    /* Note history - Compact */
    .note-item {
        padding: 0.4rem 0.6rem;
        margin-bottom: 0.35rem;
        font-size: 0.75rem;
    }
    
    .note-timestamp {
        font-size: 0.65rem;
    }
    
    .note-textarea {
        font-size: 0.7rem;
        padding: 0.4rem;
        min-height: 50px;
    }
    
    .team-info-section {
        margin-top: 0.5rem;
        font-size: 0.7rem;
    }
    
    .quick-note-box {
        margin-top: 0.5rem;
    }
    
    /* Status badges - Smaller */
    .badge {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }
    
    /* Mobile Quick Call Button - Prominent at top of each card */
    .mobile-quick-call {
        display: block !important;
        margin-bottom: 1rem;
    }
    
    .btn-quick-call {
        display: block;
        width: 100%;
        padding: 1rem 1.5rem;
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        color: white !important;
        text-decoration: none;
        border-radius: 10px;
        font-weight: 800;
        font-size: 1.1rem;
        text-align: center;
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
        transition: all 0.2s;
        letter-spacing: 0.02em;
    }
    
    .btn-quick-call:active {
        transform: scale(0.98);
        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    }
    
    /* Hide reviews snippet on mobile for space */
    .review-snippet {
        display: none;
    }
    
    /* Compact headers on mobile */
    .results-header-wrapper {
        padding: 0.3rem 0.4rem;
    }
    
    .breadcrumb-container {
        padding: 0.25rem 0.4rem;
    }
    
    /* Hide export button on mobile */
    .export-btn {
        display: none !important;
    }
    
    /* Show all sort dropdowns on mobile */
    .sort-select {
        display: block !important;
    }
    
    /* Make results count smaller */
    .results-count-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }
    
    .results-title {
        font-size: 0.85rem;
    }
    
    /* Compact team info sections */
    .team-member-card {
        padding: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .member-name {
        font-size: 1rem;
    }
    
    .member-title {
        font-size: 0.8rem;
    }
    
    /* Search container */
    .search-container {
        padding: 1.25rem;
    }
    
    .search-form .form-row {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .form-group {
        width: 100% !important;
    }
    
    /* Results header - stack on mobile */
    .results-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .results-title-section,
    .results-actions {
        width: 100%;
    }
    
    #exportBtn,
    #closeResultsBtn {
        width: 100%;
        justify-content: center;
    }
    
    /* Business cards - simple mobile layout */
    .result-card {
        margin-bottom: 0.75rem;
    }
    
    /* Simple scrolling on mobile */
    .results-list,
    #targetLeadsList {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
    }
    
    .result-number {
        min-width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
    
    .business-name {
        font-size: 1.125rem;
    }
    
    /* Status badges - wrap on mobile */
    .status-badges {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .badge {
        font-size: 0.75rem;
        padding: 0.35rem 0.6rem;
    }
    
    /* Detail items - stack on mobile */
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .detail-label {
        width: 100%;
        font-size: 0.8125rem;
    }
    
    .detail-value {
        width: 100%;
        font-size: 0.875rem;
    }
    
    /* Disposition buttons - stack or wrap */
    .disposition-buttons {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .disposition-label {
        width: 100%;
        margin-bottom: 0.25rem;
    }
    
    .btn-disposition {
        flex: 1;
        min-width: calc(50% - 0.25rem);
        padding: 0.625rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    /* Quick note box */
    .quick-note-input {
        font-size: 1rem; /* Prevent zoom on iOS */
    }
    
    .btn-save-note {
        width: 100%;
        padding: 0.75rem;
        font-size: 0.9375rem;
    }
    
    /* Team info section */
    .btn-get-team {
        width: 100%;
        padding: 0.75rem;
        font-size: 0.9375rem;
    }
    
    .team-member-card {
        padding: 1rem;
    }
    
    .cheat-section {
        padding: 0.875rem;
        font-size: 0.875rem;
    }
    
    /* Saved searches grid */
    .searches-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0.75rem;
    }
    
    .search-card {
        padding: 1rem;
    }
    
    /* Lead Finder section */
    .lead-finder-container {
        padding: 1rem;
    }
    
    .filter-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    /* Modals on mobile */
    .modal-content {
        width: 95%;
        margin: 1rem auto;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    /* Toast notifications */
    .toast {
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 2rem);
        max-width: 320px;
    }
    
    /* Tables - make scrollable */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Collapsible sections */
    .collapsible-header {
        padding: 0.75rem;
        font-size: 0.9375rem;
    }
    
    /* Filter controls */
    .filter-controls {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .filter-controls input,
    .filter-controls select {
        width: 100%;
        font-size: 1rem; /* Prevent zoom on iOS */
    }
}

/* Very small phones */
@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .business-name {
        font-size: 1rem;
    }
    
    .btn-disposition {
        min-width: 100%;
        font-size: 0.75rem;
    }
    
    .result-card {
        padding: 0.75rem;
    }
    
    .search-container {
        padding: 1rem;
    }
    
    .searches-grid {
        padding: 0.5rem;
    }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn-disposition,
    .btn-save-note,
    .btn-get-team,
    .nav-link {
        min-height: 44px;
        padding: 0.75rem 1rem;
    }
    
    /* Remove hover effects on touch devices */
    .btn-disposition:hover,
    .btn-save-note:hover,
    .btn-get-team:hover,
    .btn-send-email:hover {
        transform: none;
    }
    
    /* Keep active/tap effects */
    .btn-disposition:active,
    .btn-save-note:active,
    .btn-get-team:active,
    .btn-send-email:active {
        transform: scale(0.98);
    }
    
    /* Easier scrolling */
    .note-history,
    .team-info-content,
    .searches-grid {
        -webkit-overflow-scrolling: touch;
    }
}

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

.spinner-dark {
    border-color: rgba(99, 102, 241, 0.2);
    border-top-color: #6366f1;
}

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

.btn-loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-loading .spinner {
    margin-right: 0.5rem;
}

/* Landscape mode on phones */
@media (max-width: 768px) and (orientation: landscape) {
    .modal-content {
        max-height: 95vh;
    }
    
    .page-header {
        padding: 0.75rem 1rem;
    }
}

/* ========================================
   PREMIUM BREADCRUMB NAVIGATION
   ======================================== */

.breadcrumb-container {
    background: white;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    margin-bottom: 0;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
    overflow: visible !important;
    min-height: 50px;
}

.breadcrumb-path {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: nowrap;
}

.breadcrumb-select {
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 3px;
    padding: 0.2rem 0.4rem;
    font-size: 0.75rem;
    color: #1e293b;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: all 0.15s ease;
    appearance: none;
    padding-right: 1.25rem;
    background-image: url("data:image/svg+xml,%3Csvg width='8' height='5' viewBox='0 0 8 5' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L4 4L7 1' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.35rem center;
    white-space: nowrap;
}

.breadcrumb-select:hover {
    border-color: #cbd5e1;
    background: #f9fafb;
}

.breadcrumb-select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

.breadcrumb-select.primary {
    color: #6366f1;
    font-weight: 500;
    border-color: #6366f1;
    background-color: transparent;
}

.breadcrumb-select.primary:hover {
    background-color: #f0f4ff;
    border-color: #4f46e5;
}

.breadcrumb-separator {
    color: #cbd5e1;
    font-weight: 300;
    font-size: 0.75rem;
    user-select: none;
    margin: 0;
}

.breadcrumb-loader {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #6366f1;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-left: 0.35rem;
}

.breadcrumb-loader svg {
    width: 14px;
    height: 14px;
    animation: spin 1s linear infinite;
}

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

/* Results Header - Ultra Minimal */
.results-header-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.results-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

.results-count-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.results-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.results-count-badge {
    background: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.results-actions-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sort-select {
    background: white;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    color: #475569;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
    appearance: none;
    padding-right: 2rem;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}

.sort-select:hover {
    border-color: #cbd5e1;
}

.sort-select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

.export-btn {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1.125rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(99, 102, 241, 0.2);
}

.export-btn:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
}

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

/* Mobile breadcrumb adjustments */
@media (max-width: 768px) {
    .breadcrumb-container {
        padding: 0.875rem 1rem;
        margin-bottom: 1rem;
    }
    
    .breadcrumb-path {
        gap: 0.5rem;
    }
    
    .breadcrumb-select {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
        padding-right: 1.5rem;
    }
    
    .breadcrumb-separator {
        font-size: 0.7rem;
        margin: 0;
    }
    
    .results-header-wrapper {
        padding: 0.3rem 0.4rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.3rem;
    }
    
    .results-actions-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .results-count-section {
        width: 100%;
    }
    
    .results-actions-section {
        width: 100%;
    }
    
    .sort-select,
    .export-btn {
        flex: 1;
    }
}

/* Search Progress Modal */
.search-progress-container {
    text-align: center;
    padding: 2rem 0;
}

.search-progress-header {
    margin-bottom: 3rem;
}

.progress-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.spinner-large {
    width: 80px;
    height: 80px;
    border: 6px solid #e5e7eb;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

#progressTitle {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

#progressSubtitle {
    font-size: 1.125rem;
    color: #64748b;
    font-weight: 500;
}

.search-progress-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem 1rem;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
    border-color: #6366f1;
}

.stat-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-progress-bar-container {
    margin-bottom: 2rem;
}

.search-progress-bar {
    width: 100%;
    height: 12px;
    background: #f1f5f9;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
    background-size: 200% 100%;
    border-radius: 999px;
    transition: width 0.5s ease;
    animation: shimmer 2s linear infinite;
}

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

.search-progress-text {
    font-size: 1rem;
    font-weight: 700;
    color: #6366f1;
}

.search-complete {
    margin-top: 3rem;
    animation: slideUp 0.5s ease;
}

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

.success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 4rem;
    color: white;
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.3);
    animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

#completeTitle {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1rem;
}

#completeMessage {
    font-size: 1.125rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.3s;
}

.btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.4);
}

/* Mobile responsive */
@media (max-width: 640px) {
    .search-progress-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .spinner-large {
        width: 60px;
        height: 60px;
    }
    
    #progressTitle {
        font-size: 1.5rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .success-icon {
        width: 80px;
        height: 80px;
        font-size: 3rem;
    }
}

/* Current Location Banner */
.current-location-banner {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0ea5e9;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    animation: pulse-border 2s ease-in-out infinite;
}

@keyframes pulse-border {
    0%, 100% {
        border-color: #0ea5e9;
        box-shadow: 0 0 0 rgba(14, 165, 233, 0);
    }
    50% {
        border-color: #38bdf8;
        box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
    }
}

.location-icon {
    font-size: 2.5rem;
    animation: bounce-location 1s ease-in-out infinite;
}

@keyframes bounce-location {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.location-info {
    flex: 1;
}

.location-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0369a1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.location-city {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0c4a6e;
    line-height: 1.2;
}

/* Recent Searches Ticker */
.recent-searches-ticker {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border: 2px solid #a78bfa;
    border-radius: 12px;
    padding: 1rem;
    margin-top: 2rem;
    overflow: hidden;
}

.ticker-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #6b21a8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.ticker-scroll {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #a78bfa #f3e8ff;
    padding-bottom: 0.5rem;
}

.ticker-scroll::-webkit-scrollbar {
    height: 6px;
}

.ticker-scroll::-webkit-scrollbar-track {
    background: #f3e8ff;
    border-radius: 3px;
}

.ticker-scroll::-webkit-scrollbar-thumb {
    background: #a78bfa;
    border-radius: 3px;
}

.ticker-city {
    flex-shrink: 0;
    background: white;
    border: 1px solid #c4b5fd;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b21a8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: slideInTicker 0.3s ease;
}

@keyframes slideInTicker {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.ticker-city-icon {
    font-size: 1rem;
}

.ticker-city-results {
    font-size: 0.75rem;
    color: #10b981;
    font-weight: 700;
}

/* Enhanced stat card animations */
.stat-value {
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.stat-value.updated {
    animation: countUp 0.5s ease;
}

@keyframes countUp {
    0% {
        transform: scale(1.3);
        color: #10b981;
    }
    100% {
        transform: scale(1);
    }
}

/* Mobile responsive for new elements */
@media (max-width: 640px) {
    .current-location-banner {
        padding: 1rem;
        gap: 1rem;
    }
    
    .location-icon {
        font-size: 2rem;
    }
    
    .location-city {
        font-size: 1.125rem;
    }
    
    .ticker-scroll {
        gap: 0.5rem;
    }
    
    .ticker-city {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }
}

@keyframes slideInLocation {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mini Progress Indicator (Background Mode) */
.mini-progress-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    z-index: 9999;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 400px;
    min-width: 320px;
}

.mini-progress-indicator:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.mini-progress-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.mini-progress-spinner {
    flex-shrink: 0;
}

.spinner-mini {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.mini-progress-title {
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.mini-progress-stats {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    font-weight: 500;
}

.mini-progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.mini-progress-fill {
    height: 100%;
    background: white;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.mini-progress-expand-hint {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Minimize Button */
.minimize-progress-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.minimize-progress-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.minimize-progress-btn:active {
    transform: translateY(0);
}

.minimize-progress-btn svg {
    flex-shrink: 0;
}

/* Mobile responsive for mini indicator */
@media (max-width: 640px) {
    .mini-progress-indicator {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        min-width: auto;
        padding: 0.875rem 1rem;
    }
    
    .mini-progress-content {
        gap: 0.75rem;
    }
    
    .spinner-mini {
        width: 20px;
        height: 20px;
        border-width: 2px;
    }
    
    .mini-progress-title {
        font-size: 0.8125rem;
    }
    
    .mini-progress-stats {
        font-size: 0.7rem;
    }
    
    .minimize-progress-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    .minimize-progress-btn svg {
        width: 16px;
        height: 16px;
    }
}


/* ===================
   SIDEBAR SPACING FIX
   =================== */

.nav-spacer {
    flex: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.75rem;
}

.nav-profile {
    border-top: none !important;
    margin-top: 0 !important;
}

.nav-profile .profile-dropdown {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 12px;
    width: 280px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    overflow: hidden;
    z-index: 1000;
}

.nav-profile .profile-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-profile .dropdown-header {
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.nav-profile .dropdown-user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-profile .dropdown-name {
    font-weight: 700;
    font-size: 16px;
}

.nav-profile .dropdown-email {
    font-size: 13px;
    opacity: 0.9;
}

.nav-profile .dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 0;
}

.nav-profile .dropdown-section {
    padding: 12px 16px;
}

.nav-profile .dropdown-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #9ca3af;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.nav-profile .dropdown-value {
    font-size: 14px;
    color: #1a1a2e;
    font-weight: 600;
}

.nav-profile .credits-amount {
    color: #667eea;
    font-size: 18px;
    font-weight: 700;
}

.nav-profile .dropdown-item {
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.2s;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
}

.nav-profile .dropdown-item:hover {
    background: #f9fafb;
}

.nav-profile .logout-btn {
    color: #ef4444;
}

.nav-profile .logout-btn:hover {
    background: #fef2f2;
}

.nav-profile .logout-btn svg {
    color: #ef4444;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .nav-spacer {
        display: none;
    }
    
    .nav-profile .profile-dropdown {
        left: 8px;
        width: calc(100vw - 100px);
        max-width: 280px;
    }
}


/* Override for mobile navigation - evenly space ALL items */
@media (max-width: 1024px) {
    /* Hide the spacer completely on mobile */
    .nav-spacer {
        display: none !important;
        height: 0 !important;
        width: 0 !important;
        flex: 0 !important;
    }
    
    /* Make sure all nav items are equal width */
    .nav-menu {
        display: flex !important;
        flex-direction: row !important;
        width: 100% !important;
        padding: 0 !important;
        justify-content: space-evenly !important;  /* Changed from space-around to space-evenly */
        align-items: center !important;
        gap: 0 !important;
    }
    
    .nav-item {
        flex: 1 !important;
        max-width: 20% !important;  /* 5 items = 20% each */
        display: flex !important;
        justify-content: center !important;
    }
    
    .nav-link {
        flex-direction: column !important;
        gap: 0.25rem !important;
        padding: 0.5rem 0.25rem !important;
        border-radius: 12px !important;
        justify-content: center !important;
        align-items: center !important;
        min-width: 0 !important;
        width: 100% !important;
    }
    
    /* Hide profile dropdown on mobile */
    .nav-profile .profile-dropdown {
        display: none !important;
    }
}

