/* ============================================================
   SalesSignal AI — Design System
   "Humans Backed By AI" — Premium light theme
   ============================================================ */

/* ---------- CSS Variables / Design Tokens (Light Default) ---------- */
:root {
    /* Backgrounds — light, clean, sophisticated */
    --bg-deepest: #F1F3F5;
    --bg-deep: #F8F9FA;
    --bg-base: #FFFFFF;
    --bg-surface: #F8F9FB;
    --bg-elevated: #FFFFFF;
    --bg-hover: #EEF0F4;

    /* Accent — deep teal: confident, distinctive, premium */
    --accent-primary: #0D9488;
    --accent-primary-hover: #0F766E;
    --accent-primary-light: rgba(13, 148, 136, 0.08);
    --accent-primary-glow: rgba(13, 148, 136, 0.18);

    /* Legacy aliases for backwards compat */
    --accent-blue: #0D9488;
    --accent-blue-glow: rgba(13, 148, 136, 0.18);

    /* Semantic colors */
    --accent-coral: #DC2626;
    --accent-coral-glow: rgba(220, 38, 38, 0.15);
    --accent-emerald: #059669;
    --accent-emerald-glow: rgba(5, 150, 105, 0.15);
    --accent-amber: #D97706;
    --accent-amber-glow: rgba(217, 119, 6, 0.15);

    /* Platform Colors */
    --platform-craigslist: #7B2FBE;
    --platform-reddit: #FF4500;
    --platform-patch: #0EA5E9;
    --platform-google: #4285F4;
    --platform-yelp: #D32323;
    --platform-houzz: #4DBC5B;
    --platform-alignable: #1B3A5C;
    --platform-facebook: #1877F2;
    --platform-nextdoor: #8ED500;
    --platform-citydata: #2D5F8A;
    --platform-biggerpockets: #F57C00;
    --platform-angi: #39B54A;
    --platform-thumbtack: #009FD9;
    --platform-porch: #00BFA5;
    --platform-google-reviews: #FBBC04;
    --platform-twitter: #1DA1F2;
    --platform-local-news: #607D8B;
    --platform-parent-community: #E91E63;
    --platform-trade-forum: #795548;
    --platform-tiktok: #333333;
    --platform-quora: #B92B27;
    --platform-threads: #333333;
    --platform-fb-marketplace: #0866FF;
    --platform-trustpilot: #00B67A;
    --platform-instagram: #E4405F;
    --platform-bbb: #005A78;
    --platform-permit: #E67E22;
    --platform-property-sale: #2980B9;
    --platform-business-filing: #27AE60;
    --platform-weather-alert: #E74C3C;
    --platform-code-violation: #F1C40F;
    --platform-eviction-filing: #95A5A6;
    --platform-health-inspection: #E91E63;
    --platform-license-expiry: #D35400;

    /* Text — dark for readability */
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a68;
    --text-muted: #8b8ba0;
    --text-inverse: #FFFFFF;

    /* Borders */
    --border-subtle: rgba(0, 0, 0, 0.06);
    --border-light: rgba(0, 0, 0, 0.10);
    --border-focus: rgba(13, 148, 136, 0.4);

    /* Glass / Card */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.06);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows — subtle depth */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-glow-blue: 0 0 20px rgba(13, 148, 136, 0.1);
    --shadow-glow-coral: 0 0 20px rgba(220, 38, 38, 0.08);

    /* Sidebar */
    --sidebar-width: 260px;
    --sidebar-collapsed: 72px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Dark Theme Override ---------- */
[data-theme="dark"] {
    --bg-deepest: #07070C;
    --bg-deep: #0A0A0F;
    --bg-base: #12121A;
    --bg-surface: #1A1A26;
    --bg-elevated: #222233;
    --bg-hover: #2A2A3D;

    --text-primary: #F1F1F5;
    --text-secondary: #A0A0B8;
    --text-muted: #6B6B80;
    --text-inverse: #0A0A0F;

    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.10);
    --border-focus: rgba(13, 148, 136, 0.5);

    --glass-bg: rgba(26, 26, 38, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 24px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
    --shadow-glow-blue: 0 0 30px rgba(13, 148, 136, 0.2);
    --shadow-glow-coral: 0 0 30px rgba(220, 38, 38, 0.2);

    --platform-tiktok: #EEEEEE;
    --platform-threads: #EEEEEE;
}

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

html, body {
    overflow-x: hidden;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    color: var(--text-primary);
    background: var(--bg-deep);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: var(--accent-primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent-primary-hover); }

::selection { background: var(--accent-primary); color: white; }

img { max-width: 100%; height: auto; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

.stat-number {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-number-sm {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 1.25rem;
}

.mono { font-family: 'JetBrains Mono', monospace; }

/* ---------- Layout: Sidebar ---------- */
.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-deepest);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: width var(--transition-slow);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-brand {
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-brand .brand-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
}

.sidebar-brand .brand-text {
    font-weight: 700;
    font-size: 1.1rem;
    font-family: 'Exo 2', sans-serif;
    color: var(--text-primary);
}

.sidebar-brand .brand-sub {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0.75rem;
}

.sidebar-section-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    padding: 1rem 0.75rem 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    margin-bottom: 2px;
}

.sidebar-link:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.sidebar-link.active {
    background: var(--accent-primary-light);
    color: var(--accent-primary);
    font-weight: 600;
}
[data-theme="dark"] .sidebar-link.active {
    background: var(--accent-primary);
    color: white;
}

.sidebar-link i {
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-link .badge-count {
    margin-left: auto;
    background: var(--accent-coral);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    font-family: 'JetBrains Mono', monospace;
}

.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--accent-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.sidebar-user-info {
    overflow: hidden;
}

.sidebar-user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-tier {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ---------- Main Content ---------- */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background: var(--bg-deep);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
[data-theme="dark"] .topbar {
    background: rgba(10, 10, 15, 0.85);
}

.topbar-title {
    font-size: 1.25rem;
    font-weight: 700;
}

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

.page-content {
    padding: 2rem;
}

/* ---------- Glass Cards ---------- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.glass-card-static {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* ---------- KPI Cards ---------- */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.kpi-card {
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.kpi-card.kpi-hot::before { background: var(--accent-coral); box-shadow: 0 0 20px var(--accent-coral-glow); }
.kpi-card.kpi-leads::before { background: var(--accent-blue); box-shadow: 0 0 20px var(--accent-blue-glow); }
.kpi-card.kpi-rate::before { background: var(--accent-amber); box-shadow: 0 0 20px var(--accent-amber-glow); }
.kpi-card.kpi-won::before { background: var(--accent-emerald); box-shadow: 0 0 20px var(--accent-emerald-glow); }

.kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.kpi-hot .kpi-icon { background: rgba(255, 71, 87, 0.15); color: var(--accent-coral); }
.kpi-leads .kpi-icon { background: rgba(13, 148, 136, 0.1); color: var(--accent-primary); }
.kpi-rate .kpi-icon { background: rgba(245, 158, 11, 0.15); color: var(--accent-amber); }
.kpi-won .kpi-icon { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); }

.kpi-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
}

.kpi-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.kpi-hot .kpi-value { color: var(--accent-coral); }
.kpi-leads .kpi-value { color: var(--accent-blue); }
.kpi-rate .kpi-value { color: var(--accent-amber); }
.kpi-won .kpi-value { color: var(--accent-emerald); }

.kpi-trend {
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.kpi-trend.up { color: var(--accent-emerald); }
.kpi-trend.down { color: var(--accent-coral); }

/* ---------- Urgency Badges ---------- */
.urgency-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.urgency-hot {
    background: rgba(255, 71, 87, 0.2);
    color: var(--accent-coral);
    border: 1px solid rgba(255, 71, 87, 0.3);
    animation: pulse-hot 2s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(255, 71, 87, 0.15);
}

.urgency-warm {
    background: rgba(245, 158, 11, 0.2);
    color: var(--accent-amber);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.urgency-new {
    background: rgba(13, 148, 136, 0.12);
    color: var(--accent-primary);
    border: 1px solid rgba(13, 148, 136, 0.2);
}

.urgency-stale {
    background: rgba(107, 107, 128, 0.2);
    color: var(--text-muted);
    border: 1px solid rgba(107, 107, 128, 0.3);
}

/* ---------- Platform Pills ---------- */
.platform-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
}

.platform-craigslist { background: var(--platform-craigslist); }
.platform-reddit { background: var(--platform-reddit); }
.platform-patch { background: var(--platform-patch); }
.platform-google_qna { background: var(--platform-google); }
.platform-yelp_review { background: var(--platform-yelp); }
.platform-houzz { background: var(--platform-houzz); }
.platform-alignable { background: var(--platform-alignable); }
.platform-facebook { background: var(--platform-facebook); }
.platform-nextdoor { background: var(--platform-nextdoor); color: #000; }
.platform-twitter { background: var(--platform-twitter); }
.platform-citydata { background: var(--platform-citydata); }
.platform-biggerpockets { background: var(--platform-biggerpockets); }
.platform-angi_review { background: var(--platform-angi); }
.platform-thumbtack { background: var(--platform-thumbtack); }
.platform-porch { background: var(--platform-porch); }
.platform-google_reviews { background: var(--platform-google-reviews); color: #000; }
.platform-local_news { background: var(--platform-local-news); }
.platform-parent_community { background: var(--platform-parent-community); }
.platform-trade_forum { background: var(--platform-trade-forum); }
.platform-manual { background: #6B7280; }
.platform-tiktok { background: var(--platform-tiktok); border: 1px solid #333; }
.platform-quora { background: var(--platform-quora); }
.platform-threads { background: var(--platform-threads); border: 1px solid #333; }
.platform-fb_marketplace { background: var(--platform-fb-marketplace); }
.platform-trustpilot { background: var(--platform-trustpilot); }
.platform-instagram { background: var(--platform-instagram); }
.platform-bbb { background: var(--platform-bbb); }
.platform-permit { background: var(--platform-permit); }
.platform-property_sale { background: var(--platform-property-sale); }
.platform-business_filing { background: var(--platform-business-filing); }
.platform-weather_alert { background: var(--platform-weather-alert); animation: pulse-hot 2s ease-in-out infinite; }
.platform-code_violation { background: var(--platform-code-violation); color: #000; }
.platform-eviction_filing { background: var(--platform-eviction-filing); }
.platform-health_inspection { background: var(--platform-health-inspection); }
.platform-license_expiry { background: var(--platform-license-expiry); }

/* ---------- Lead Cards ---------- */
.lead-stream {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lead-card {
    padding: 1.25rem 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: all var(--transition-base);
    cursor: pointer;
}

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

.lead-card.is-hot {
    border-left: 3px solid var(--accent-coral);
    box-shadow: inset 4px 0 20px rgba(255, 71, 87, 0.05);
}

.lead-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.35rem;
}

.lead-content-preview {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lead-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.lead-location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.lead-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
}

/* ---------- Buttons ---------- */
.btn-primary-glow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.75rem;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25);
}

.btn-primary-glow:hover {
    background: var(--accent-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.35);
    color: white;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.75rem;
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1.1rem;
    transition: all var(--transition-fast);
}
.btn-icon:hover {
    background: var(--bg-hover);
    color: var(--accent-amber);
    border-color: var(--accent-amber);
}

.btn-coral {
    background: var(--accent-coral);
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}
.btn-coral:hover {
    background: #e8404f;
    box-shadow: 0 6px 25px rgba(255, 71, 87, 0.4);
}

.btn-emerald {
    background: var(--accent-emerald);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}
.btn-emerald:hover {
    background: #059669;
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.4);
}

/* ---------- Form Controls ---------- */
.form-control-dark {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 0.65rem 1rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    width: 100%;
}

.form-control-dark:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px var(--accent-blue-glow);
    background: var(--bg-elevated);
}

.form-control-dark::placeholder {
    color: var(--text-muted);
}

.form-label-dark {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
    display: block;
}

select.form-control-dark {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23A0A0B8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

/* Toggle switch */
.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    display: inline-block;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-hover);
    border-radius: var(--radius-full);
    transition: var(--transition-base);
    border: 1px solid var(--border-light);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background: var(--text-secondary);
    border-radius: 50%;
    transition: var(--transition-base);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(22px);
    background: white;
}

/* ---------- Onboarding Wizard ---------- */
.onboarding-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-deep);
    padding: 2rem;
}

.onboarding-card {
    width: 100%;
    max-width: 680px;
    padding: 3rem;
}

.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg-hover);
    transition: all var(--transition-base);
}

.step-dot.active {
    background: var(--accent-blue);
    box-shadow: 0 0 10px var(--accent-blue-glow);
    width: 32px;
    border-radius: var(--radius-full);
}

.step-dot.completed {
    background: var(--accent-emerald);
}

.step-line {
    width: 40px;
    height: 2px;
    background: var(--bg-hover);
}

.step-content {
    display: none;
    animation: fadeInUp 0.4s ease;
}

.step-content.active {
    display: block;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    max-height: 400px;
    overflow-y: auto;
    padding: 0.25rem;
}

.category-card {
    padding: 1rem;
    text-align: center;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: 0.85rem;
    font-weight: 600;
}

.category-card:hover {
    border-color: var(--border-light);
    background: var(--bg-elevated);
}

.category-card.selected {
    border-color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 20px var(--accent-blue-glow);
}

.category-card i {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent-blue);
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse-hot {
    0%, 100% { box-shadow: 0 0 8px rgba(255, 71, 87, 0.15); }
    50% { box-shadow: 0 0 20px rgba(255, 71, 87, 0.4); }
}

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

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 20px var(--accent-blue-glow); }
    50% { box-shadow: 0 0 40px var(--accent-blue-glow), 0 0 60px rgba(59, 130, 246, 0.1); }
}

@keyframes countUp {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease both;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }

/* ---------- Landing Page ---------- */
.landing-page {
    background: #FFFFFF;
    overflow-x: hidden;
    position: relative;
    color: #1a1a2e;
}

/* --- Subtle dot grid texture --- */
.landing-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle, rgba(0,0,0,0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
}

/* --- Hero background elements --- */
.hero-bg-glow {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}
.hero-bg-glow::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    top: -200px;
    right: -200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
    animation: heroGlowDrift 20s ease-in-out infinite alternate;
}
.hero-bg-glow::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    bottom: -100px;
    left: -100px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
    animation: heroGlowDrift 25s ease-in-out infinite alternate-reverse;
}

@keyframes heroGlowDrift {
    0% { transform: translate(0, 0); }
    50% { transform: translate(30px, -20px); }
    100% { transform: translate(-15px, 10px); }
}

/* --- Radar pulse rings (scanning/monitoring visual) --- */
.signal-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}
.signal-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid rgba(13, 148, 136, 0.35);
    background: radial-gradient(circle, rgba(13, 148, 136, 0.04) 0%, transparent 70%);
    box-shadow: 0 0 30px rgba(13, 148, 136, 0.08), inset 0 0 30px rgba(13, 148, 136, 0.04);
    animation: signalPulse 5s ease-out infinite;
}
.signal-ring:nth-child(1) { width: 220px; height: 220px; animation-delay: 0s; }
.signal-ring:nth-child(2) { width: 440px; height: 440px; animation-delay: 1.25s; border-color: rgba(59, 130, 246, 0.30); background: radial-gradient(circle, rgba(59, 130, 246, 0.03) 0%, transparent 70%); }
.signal-ring:nth-child(3) { width: 660px; height: 660px; animation-delay: 2.5s; border-color: rgba(139, 92, 246, 0.25); background: radial-gradient(circle, rgba(139, 92, 246, 0.03) 0%, transparent 70%); }
.signal-ring:nth-child(4) { width: 880px; height: 880px; animation-delay: 3.75s; border-color: rgba(245, 158, 11, 0.22); background: radial-gradient(circle, rgba(245, 158, 11, 0.02) 0%, transparent 70%); }

@keyframes signalPulse {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.7);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.4);
    }
}

/* Navigation */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.85rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.landing-nav .brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.landing-nav .brand-icon {
    width: 36px;
    height: 36px;
    background: #0D9488;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
}

.landing-nav .brand-name {
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #1a1a2e;
}

.landing-nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.landing-nav-links a {
    color: #4a4a68;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.landing-nav-links a:hover { color: #1a1a2e; }

/* Nav dropdown */
.nav-dropdown {
    position: relative;
}
.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
}
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0.75rem;
    min-width: 240px;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    z-index: 1001;
    flex-direction: column;
}
.nav-dropdown:hover .nav-dropdown-menu {
    display: flex;
}
.nav-dropdown-menu a {
    display: flex !important;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.85rem !important;
    border-radius: var(--radius-sm);
    color: #4a4a68 !important;
    font-size: 0.88rem !important;
    font-weight: 500;
    transition: background 0.15s ease;
    white-space: nowrap;
}
.nav-dropdown-menu a:hover {
    background: #F1F3F5 !important;
    color: #1a1a2e !important;
}
.nav-dropdown-menu a i {
    font-size: 1rem;
    width: 1.2rem;
    text-align: center;
}

/* Landing mobile hamburger */
.landing-hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #1a1a2e;
    font-size: 1.6rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

/* Landing mobile menu overlay */
.landing-mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 1.5rem 2rem 2rem;
    flex-direction: column;
    gap: 0.25rem;
    transform: translateY(-10px);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
    pointer-events: none;
}
.landing-mobile-menu.open {
    display: flex;
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.landing-mobile-menu a:not(.btn-secondary):not(.btn-primary-glow) {
    display: block;
    padding: 0.85rem 0;
    color: #4a4a68;
    font-size: 1.05rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: color var(--transition-fast);
}
.landing-mobile-menu a:not(.btn-secondary):not(.btn-primary-glow):hover {
    color: #1a1a2e;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8F9FA 100%);
    overflow: hidden;
    max-width: 100vw;
}

.hero-section > .animate-fade-in-up {
    position: relative;
    z-index: 1;
}

/* Hero brand title */
.hero-brand-title {
    font-family: 'Exo 2', sans-serif;
    font-size: 4.5rem;  /* 72px desktop */
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: #1a1a2e;
    margin-bottom: 1.25rem;
    text-transform: none;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Taglines — single line with bullet separator */
.hero-tagline {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.75rem;  /* 28px desktop */
    font-weight: 800;
    color: #0D9488;
    margin-bottom: 2.5rem;
    letter-spacing: -0.02em;
    white-space: nowrap;
}
.hero-tagline-bullet {
    display: inline-block;
    margin: 0 0.4em;
    color: #8b8ba0;
    font-weight: 400;
}
.hero-tagline-alt {
    color: #3B82F6;
}

/* Scrolling service text */
.hero-scroll-text {
    font-size: 1.15rem;
    color: #4a4a68;
    max-width: 680px;
    margin: 0 auto 2.5rem;
    line-height: 1.75;
    padding: 0 1rem;
}

.scroll-word {
    display: inline-block;
    font-weight: 700;
    color: #DC2626;
    min-width: 160px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.scroll-word.scroll-out {
    opacity: 0;
    transform: translateY(-8px);
}
.scroll-word.scroll-in {
    animation: scrollWordIn 0.4s ease both;
}
@keyframes scrollWordIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    max-width: 600px;
    margin: 0 auto;
}

.hero-stat-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.25rem;
    font-weight: 700;
}
.hero-stat-value.stat-coral { color: #DC2626; }
.hero-stat-value.stat-blue { color: #3B82F6; }
.hero-stat-value.stat-purple { color: #8B5CF6; }
.hero-stat-value.stat-teal { color: #0D9488; }
.hero-stat-value.stat-amber { color: #F59E0B; }

.hero-stat-label {
    font-size: 0.8rem;
    color: #8b8ba0;
    margin-top: 0.25rem;
}

/* ---------- Pipeline Section ---------- */
.pipeline-section {
    padding: 7rem 2rem;
    text-align: center;
    background: #FFFFFF;
}

.pipeline-section .section-title {
    font-family: 'Exo 2', sans-serif;
    font-size: 2.25rem;
    margin-bottom: 1rem;
    color: #1a1a2e;
}

.pipeline-section .section-subtitle {
    color: #4a4a68;
    margin-bottom: 4rem;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.pipeline-flow {
    display: flex;
    align-items: stretch;
    gap: 0;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

.pipeline-stage {
    flex: 1;
    padding: 2.5rem 2rem;
    text-align: left;
    position: relative;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all var(--transition-base);
}

.pipeline-stage:first-child { border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.pipeline-stage:last-child { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }

.pipeline-stage:hover {
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    z-index: 1;
}

.pipeline-stage-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: #3B82F6;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

/* Colored top borders on pipeline stages */
.pipeline-stage-detect { border-top: 3px solid #3B82F6; }
.pipeline-stage-contact { border-top: 3px solid #F59E0B; }
.pipeline-stage-connect { border-top: 3px solid #10B981; }

.pipeline-stage h3 {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a1a2e;
}

.pipeline-stage p {
    font-size: 0.95rem;
    color: #4a4a68;
    line-height: 1.65;
}

.pipeline-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    flex-shrink: 0;
    color: #3B82F6;
    font-size: 1.2rem;
    opacity: 0.4;
}

.pipeline-callout {
    max-width: 700px;
    margin: 3rem auto 0;
    padding: 1.5rem 2rem;
    background: rgba(13, 148, 136, 0.04);
    border: 1px solid rgba(13, 148, 136, 0.12);
    border-radius: var(--radius-lg);
    font-size: 1.05rem;
    font-weight: 600;
    color: #0D9488;
    text-align: center;
}

/* ---------- Social Monitoring Section ---------- */
.social-monitoring-section {
    padding: 5rem 2rem;
    background: #F8F9FA;
}

.social-monitoring-section .section-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.social-icon-badge {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: rgba(139, 92, 246, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #8B5CF6;
    margin: 0 auto 1.5rem;
}

.social-monitoring-section h2 {
    font-family: 'Exo 2', sans-serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #1a1a2e;
}

.social-monitoring-section p {
    font-size: 1.05rem;
    color: #4a4a68;
    line-height: 1.75;
}

/* ---------- Scenario Cards Section ---------- */
.scenarios-section {
    padding: 7rem 2rem;
    background: #FFFFFF;
}

.scenarios-section .section-title {
    font-family: 'Exo 2', sans-serif;
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 3.5rem;
    color: #1a1a2e;
}

.scenario-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.scenario-card {
    padding: 2rem;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.scenario-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: currentColor;
    opacity: 0;
    transition: opacity var(--transition-base);
}
.scenario-card:nth-child(1)::before { background: #DC2626; }
.scenario-card:nth-child(2)::before { background: #F59E0B; }
.scenario-card:nth-child(3)::before { background: #3B82F6; }

.scenario-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

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

.scenario-card .scenario-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}
.scenario-icon-coral { background: rgba(220, 38, 38, 0.08); color: #DC2626; }
.scenario-icon-amber { background: rgba(245, 158, 11, 0.08); color: #F59E0B; }
.scenario-icon-blue { background: rgba(59, 130, 246, 0.08); color: #3B82F6; }
.scenario-icon-purple { background: rgba(139, 92, 246, 0.08); color: #8B5CF6; }
.scenario-icon-teal { background: rgba(13, 148, 136, 0.08); color: #0D9488; }
.scenario-icon-emerald { background: rgba(16, 185, 129, 0.08); color: #10B981; }

.scenario-card p {
    font-size: 0.95rem;
    color: #4a4a68;
    line-height: 1.7;
}

.scenario-card strong {
    color: #1a1a2e;
}

/* ---------- Industries Section ---------- */
.industries-section {
    padding: 5rem 2rem;
    background: #F8F9FA;
    text-align: center;
    overflow: hidden;
}

.industries-section h2 {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: #1a1a2e;
}

.industry-ticker {
    display: flex;
    gap: 1rem;
    animation: tickerScroll 30s linear infinite;
    width: max-content;
}

.industry-ticker .industry-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.25rem;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    color: #4a4a68;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.industry-ticker .industry-tag:hover {
    border-color: #0D9488;
    color: #0D9488;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---------- Live Counter Section ---------- */
.live-counter-section {
    padding: 4rem 2rem;
    text-align: center;
    background: #FFFFFF;
}

.live-counter-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: rgba(13, 148, 136, 0.04);
    border: 1px solid rgba(13, 148, 136, 0.12);
    border-radius: var(--radius-xl);
}

.live-counter-badge .counter-dot {
    width: 10px;
    height: 10px;
    background: #0D9488;
    border-radius: 50%;
    animation: pulse-live 2s ease-in-out infinite;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.live-counter-badge .counter-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.05rem;
    color: #4a4a68;
}

.live-counter-badge .counter-number {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: #0D9488;
}

/* ---------- Features Section ---------- */
.features-section {
    padding: 7rem 2rem;
    background: #FFFFFF;
}

.features-section > * {
    position: relative;
    z-index: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    padding: 2rem;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

.feature-icon.coral { background: rgba(220, 38, 38, 0.08); color: #DC2626; }
.feature-icon.blue { background: rgba(59, 130, 246, 0.08); color: #3B82F6; }
.feature-icon.emerald { background: rgba(16, 185, 129, 0.08); color: #10B981; }
.feature-icon.amber { background: rgba(245, 158, 11, 0.08); color: #F59E0B; }
.feature-icon.purple { background: rgba(139, 92, 246, 0.08); color: #8B5CF6; }
.feature-icon.teal { background: rgba(13, 148, 136, 0.08); color: #0D9488; }

.feature-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: #4a4a68;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ---------- Pricing Section (Landing) ---------- */
.pricing-section {
    padding: 7rem 2rem;
    text-align: center;
    background: #F8F9FA;
}

.pricing-section > * {
    position: relative;
    z-index: 1;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    max-width: 1300px;
    margin: 2rem auto 0;
}

.pricing-grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

.pricing-card {
    padding: 2.25rem 1.5rem;
    text-align: left;
    position: relative;
    background: #FFFFFF;
    border: 2px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

/* Colored top borders for each tier */
.pricing-card-outreach { border-top: 3px solid #3B82F6; }
.pricing-card-growth { border-top: 3px solid #0D9488; }
.pricing-card-dominate { border-top: 3px solid #F59E0B; }
.pricing-card-concierge { border-top: 3px solid #DC2626; }
.pricing-card-custom { border-top: 3px solid #8B5CF6; }

/* Featured (Most Popular) card */
.pricing-card.featured {
    border-color: #0D9488;
    border-width: 2px;
    border-top: 3px solid #0D9488;
    box-shadow: 0 4px 20px rgba(13, 148, 136, 0.15);
    background: linear-gradient(180deg, rgba(13, 148, 136, 0.02) 0%, #FFFFFF 40%);
    transform: scale(1.03);
    z-index: 2;
}

.pricing-card.featured:hover {
    transform: scale(1.03) translateY(-3px);
    box-shadow: 0 8px 36px rgba(13, 148, 136, 0.18);
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #0D9488, #0F766E);
    color: white;
    padding: 0.3rem 1.25rem;
    border-radius: var(--radius-full);
    font-family: 'Exo 2', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3);
}

.pricing-name {
    font-family: 'Exo 2', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    color: #0D9488;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.4rem;
}

.pricing-tagline {
    font-size: 0.82rem;
    font-style: italic;
    color: #4a4a68;
    margin-bottom: 0.75rem;
}

.pricing-price {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #1a1a2e;
}

.pricing-price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: #8b8ba0;
}

.pricing-price-custom {
    font-family: 'Exo 2', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #4a4a68;
}

.pricing-desc {
    color: #4a4a68;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    line-height: 1.5;
}

.pricing-features {
    list-style: none;
    margin-bottom: 1.5rem;
    flex: 1;
}

.pricing-features li {
    padding: 0.3rem 0;
    font-size: 0.82rem;
    color: #4a4a68;
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    line-height: 1.4;
}

.pricing-features li i {
    color: #059669;
    font-size: 0.8rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.pricing-setup {
    font-size: 0.75rem;
    color: #8b8ba0;
    margin-bottom: 1rem;
    font-family: 'JetBrains Mono', monospace;
}

.pricing-roi {
    max-width: 600px;
    margin: 2.5rem auto 0;
    padding: 1rem 1.5rem;
    background: rgba(13, 148, 136, 0.04);
    border: 1px solid rgba(13, 148, 136, 0.1);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    color: #4a4a68;
}

.pricing-roi strong {
    color: #0D9488;
}

.pricing-setup-note {
    max-width: 600px;
    margin: 0.75rem auto 0;
    font-size: 0.85rem;
    color: #8b8ba0;
}

/* ---------- CTA Section (Landing) ---------- */
/* --- Live Lead Preview Section --- */
.live-preview-section {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, #F8F9FA 0%, #FFFFFF 100%);
    position: relative;
}

.live-preview-section .section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(13, 148, 136, 0.08);
    border: 1px solid rgba(13, 148, 136, 0.15);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: #0D9488;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}

.live-preview-section h2 {
    font-family: 'Exo 2', sans-serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.75rem;
}

.live-preview-section .section-desc {
    color: #4a4a68;
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.preview-lead-stream {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 720px;
    margin: 0 auto;
}

.preview-lead-card {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    align-items: flex-start;
}

.preview-lead-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.preview-lead-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    min-width: 90px;
}

.preview-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.preview-pill-coral {
    background: rgba(220, 38, 38, 0.1);
    color: #DC2626;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.preview-pill-green {
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.preview-pill-blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.preview-pill-purple {
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.preview-pill-amber {
    background: rgba(217, 119, 6, 0.1);
    color: #D97706;
    border: 1px solid rgba(217, 119, 6, 0.2);
}

.preview-urgency {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.preview-urgency-hot {
    background: rgba(220, 38, 38, 0.12);
    color: #DC2626;
}

.preview-urgency-warm {
    background: rgba(217, 119, 6, 0.12);
    color: #D97706;
}

.preview-lead-body {
    flex: 1;
    min-width: 0;
}

.preview-lead-title {
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: #1a1a2e;
    margin-bottom: 0.35rem;
    line-height: 1.3;
}

.preview-lead-detail {
    font-size: 0.88rem;
    color: #4a4a68;
    line-height: 1.5;
    margin-bottom: 0.35rem;
}

.preview-lead-time {
    font-size: 0.75rem;
    color: #8b8ba0;
    font-family: 'JetBrains Mono', monospace;
}

/* Blurred name redaction for public preview */
.redacted-blur {
    filter: blur(4px);
    -webkit-filter: blur(4px);
    user-select: none;
    pointer-events: none;
    display: inline-block;
    color: #1a1a2e;
    font-weight: 600;
}

/* Staggered fade-in for preview cards */
.preview-lead-card:nth-child(1) { animation-delay: 0.1s; }
.preview-lead-card:nth-child(2) { animation-delay: 0.2s; }
.preview-lead-card:nth-child(3) { animation-delay: 0.3s; }
.preview-lead-card:nth-child(4) { animation-delay: 0.4s; }
.preview-lead-card:nth-child(5) { animation-delay: 0.5s; }

.cta-section {
    padding: 7rem 2rem;
    text-align: center;
    background: #FFFFFF;
    position: relative;
}

/* Footer */
.landing-footer {
    padding: 3rem 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    text-align: center;
    background: #FFFFFF;
}

.footer-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #8b8ba0;
    font-size: 0.85rem;
}

.footer-links a:hover { color: #1a1a2e; }

.footer-copy {
    color: #8b8ba0;
    font-size: 0.8rem;
}

/* ---------- Industry Pages ---------- */

/* Industry Detail Hero */
.industry-hero-section {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 5rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8F9FA 100%);
}

.industry-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: var(--radius-lg);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.industry-hero-title {
    font-family: 'Exo 2', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #1a1a2e;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.industry-hero-stat {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--industry-color, #0D9488);
    margin-bottom: 1.25rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.industry-hero-desc {
    font-size: 1.1rem;
    color: #4a4a68;
    max-width: 650px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

/* Industry Sources Section */
.industry-sources-section {
    padding: 6rem 2rem;
    background: #FFFFFF;
    text-align: center;
}

.industry-sources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 960px;
    margin: 0 auto;
}

.industry-source-card {
    padding: 2rem 1.5rem;
    background: #F8F9FA;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-md);
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.industry-source-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.industry-source-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.industry-source-card h4 {
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.industry-source-card p {
    font-size: 0.9rem;
    color: #4a4a68;
    line-height: 1.6;
}

/* Industry Index Page */
.industry-index-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8F9FA 100%);
}

.industry-index-title {
    font-family: 'Exo 2', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: #1a1a2e;
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
}

.industry-index-subtitle {
    font-size: 1.15rem;
    color: #4a4a68;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.industry-index-grid-section {
    padding: 2rem 2rem 6rem;
    background: #F8F9FA;
}

.industry-index-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.industry-index-card {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.industry-index-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--card-color, #0D9488);
}

.industry-index-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.industry-index-card h3 {
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #1a1a2e;
    margin-bottom: 0.65rem;
}

.industry-index-card p {
    font-size: 0.92rem;
    color: #4a4a68;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 1.25rem;
}

.industry-index-card-link {
    font-size: 0.88rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: gap 0.2s ease;
}

.industry-index-card:hover .industry-index-card-link {
    gap: 0.6rem;
}

@media (max-width: 768px) {
    .industry-hero-section { min-height: auto; padding: 7rem 1.5rem 3rem; }
    .industry-hero-title { font-size: 1.8rem; }
    .industry-sources-grid { grid-template-columns: 1fr; }
    .industry-index-grid { grid-template-columns: 1fr; }
    .industry-index-hero { min-height: auto; padding: 7rem 1.5rem 2rem; }
    .nav-dropdown-menu { display: none !important; }
}

/* ---------- Auth Pages ---------- */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-deep);
    padding: 2rem;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 2.5rem;
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-card .auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.auth-form .form-group {
    margin-bottom: 1.25rem;
}

.auth-divider {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 1.5rem 0;
}

/* ---------- Empty States ---------- */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Alerts / Messages ---------- */
.alert-dark {
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-dark.alert-error {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.25);
    color: var(--accent-coral);
}

.alert-dark.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--accent-emerald);
}

.alert-dark.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: var(--accent-blue);
}

/* ---------- Range Slider ---------- */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: var(--bg-hover);
    border-radius: var(--radius-full);
    outline: none;
    margin: 0.75rem 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-blue);
    cursor: pointer;
    box-shadow: 0 0 10px var(--accent-blue-glow);
}

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

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--bg-hover);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ---------- Hamburger & Mobile Sidebar ---------- */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

.sidebar-close-btn {
    display: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    z-index: 10;
    transition: color var(--transition-fast);
}
.sidebar-close-btn:hover { color: var(--text-primary); }

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.sidebar-backdrop.active {
    display: block;
    opacity: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .hamburger-btn { display: block; }
    .sidebar-close-btn { display: block; }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        height: 100vh;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        flex-direction: column;
        border-right: 1px solid var(--border-subtle);
        border-top: none;
        overflow-y: auto;
        overflow-x: hidden;
    }
    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-brand, .sidebar-section-label, .sidebar-footer { display: flex; }
    .sidebar-nav { flex-direction: column; }

    .sidebar-link {
        flex-direction: row;
        font-size: 0.9rem;
        padding: 0.75rem 1.25rem;
        gap: 0.75rem;
    }
    .sidebar-link i { font-size: 1.1rem; }

    .main-content {
        margin-left: 0;
        padding-bottom: 0;
    }

    .page-content { padding: 1rem; }

    .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }

    .hero-title { font-size: 2rem; }
    .hero-brand-title { font-size: 3rem; } /* 48px tablet */
    .hero-tagline { font-size: 1.375rem; } /* 22px tablet */
    .hero-scroll-text { font-size: 1rem; padding: 0 1.5rem; }
    .hero-section { padding: 7rem 1.5rem 3rem; min-height: auto; }
    .hero-stats { gap: 1.5rem; }
    .pricing-grid-5 { grid-template-columns: repeat(2, 1fr); }
    .pricing-card.featured { transform: none; }
    .pricing-card.featured:hover { transform: translateY(-3px); }
    .steps-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }

    .pipeline-flow { flex-direction: column; }
    .pipeline-connector { width: auto; height: 32px; transform: rotate(90deg); }
    .pipeline-stage:first-child { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
    .pipeline-stage:last-child { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
    .scenario-cards { grid-template-columns: 1fr; }

    .preview-lead-card { flex-direction: column; gap: 0.75rem; }
    .preview-lead-left { flex-direction: row; min-width: auto; }

    .topbar { padding: 0.75rem 1rem; }
    .topbar-title { font-size: 1rem; }

    /* Landing nav: hide links, show hamburger */
    .landing-nav-links { display: none; }
    .landing-hamburger { display: flex; }
}

@media (max-width: 480px) {
    .kpi-grid { grid-template-columns: 1fr; }
    .pricing-grid-5 { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }

    /* Hero mobile — 320px safe */
    .hero-section { padding: 6rem 1rem 2.5rem; }
    .hero-brand-title {
        font-size: 2.75rem; /* 44px mobile */
        letter-spacing: -0.03em;
        margin-bottom: 1rem;
    }
    .hero-tagline {
        font-size: 1.25rem; /* 20px mobile */
        white-space: normal;
        line-height: 1.5;
        margin-bottom: 1.75rem;
    }
    .hero-tagline-bullet {
        display: none; /* hide bullet, stack vertically */
    }
    .hero-tagline-alt {
        display: block;
        margin-top: 0.15rem;
    }
    .hero-scroll-text {
        font-size: 1rem; /* 16px mobile */
        padding: 0 0.5rem;
        line-height: 1.65;
    }
    .scroll-word {
        min-width: 100px;
    }
    .hero-cta a {
        padding: 0.75rem 1.75rem !important;
        font-size: 0.92rem !important;
    }
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    .signal-rings {
        max-width: 100vw;
    }
    .signal-ring:nth-child(3),
    .signal-ring:nth-child(4) {
        display: none; /* hide outer rings on mobile */
    }
}

/* ---------- Timeline ---------- */
.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 24px;
    bottom: -4px;
    width: 2px;
    background: var(--border-subtle);
}

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 3px;
}

.timeline-content {
    flex: 1;
}

.timeline-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.timeline-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

/* ---------- Textarea ---------- */
textarea.form-control-dark {
    resize: vertical;
    min-height: 60px;
}

/* ---------- Utility ---------- */
.text-blue { color: var(--accent-blue); }
.text-coral { color: var(--accent-coral); }
.text-emerald { color: var(--accent-emerald); }
.text-amber { color: var(--accent-amber); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-center { text-align: center; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.w-100 { width: 100%; }

/* ============================================================
   Competitor Intelligence
   ============================================================ */

.competitors-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

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

.competitor-card {
    padding: 1.5rem;
    cursor: pointer;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.competitor-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow-blue);
}

.competitor-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.competitor-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    color: white;
    flex-shrink: 0;
}

.competitor-avatar-lg {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: white;
    flex-shrink: 0;
}

.competitor-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.competitor-url {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.competitor-stats-row {
    display: flex;
    gap: 2rem;
}

.competitor-stat-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.competitor-stat-value {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.rating-stars {
    display: flex;
    gap: 0.1rem;
    font-size: 0.85rem;
}

.rating-number {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: var(--accent-amber);
}

.competitor-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.competitor-arrow {
    color: var(--text-muted);
    transition: transform var(--transition-fast);
}
.competitor-card:hover .competitor-arrow {
    transform: translateX(3px);
    color: var(--accent-blue);
}

/* Competitor Detail */
.competitor-detail-header {
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.competitor-detail-top {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.competitor-detail-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
}

.competitor-detail-stat {
    text-align: center;
}

.competitor-detail-stat-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.competitor-detail-stat-value {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
}

/* Review Cards */
.review-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-card {
    padding: 1.25rem 1.5rem;
    border-left: 3px solid var(--border-subtle);
}
.review-negative {
    border-left-color: var(--accent-coral);
}
.review-opportunity {
    border-left-color: var(--accent-amber);
    background: rgba(245, 158, 11, 0.04);
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.review-stars {
    display: flex;
    gap: 0.1rem;
    font-size: 0.9rem;
}
.star-negative { color: var(--accent-coral); }
.star-normal { color: var(--accent-amber); }

.review-platform-pill {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.15rem 0.6rem;
    border-radius: var(--radius-full);
    background: var(--bg-elevated);
    color: var(--text-secondary);
}

.opportunity-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.6rem;
    border-radius: var(--radius-full);
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-amber);
}

.negative-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.6rem;
    border-radius: var(--radius-full);
    background: rgba(255, 71, 87, 0.15);
    color: var(--accent-coral);
}

.review-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.review-ai-analysis {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.12);
    border-radius: var(--radius-sm);
}

.review-ai-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-blue);
    margin-bottom: 0.35rem;
}

.review-ai-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.review-filter.active {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
}

/* Google search results in Add Competitor */
.google-result-card {
    padding: 0.75rem 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}
.google-result-card:hover {
    border-color: var(--accent-blue);
    background: var(--bg-elevated);
}
.google-result-card.selected {
    border-color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.08);
    box-shadow: 0 0 0 1px var(--accent-blue);
}

.form-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-subtle);
}

/* ============================================================
   Territory Map
   ============================================================ */

.territory-map {
    width: 100%;
    height: calc(100vh - 220px);
    min-height: 500px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
}

.map-controls {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.map-control-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.form-label-sm {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.form-select-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    cursor: pointer;
    transition: border-color var(--transition-fast);
}
.form-select-sm:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.map-lead-count {
    padding: 0.4rem 0.75rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-primary);
}

.map-legend {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

/* Map pin markers */
.custom-pin {
    background: none !important;
    border: none !important;
}

.map-pin {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    transition: transform 0.15s ease;
}
.map-pin:hover {
    transform: scale(1.4);
}

/* Cluster icons */
.custom-cluster {
    background: none !important;
    border: none !important;
}

.cluster-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}
.cluster-small {
    width: 36px;
    height: 36px;
    font-size: 0.75rem;
    background: rgba(59, 130, 246, 0.85);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}
.cluster-medium {
    width: 42px;
    height: 42px;
    font-size: 0.8rem;
    background: rgba(245, 158, 11, 0.85);
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.4);
}
.cluster-large {
    width: 48px;
    height: 48px;
    font-size: 0.85rem;
    background: rgba(255, 71, 87, 0.85);
    box-shadow: 0 0 20px rgba(255, 71, 87, 0.4);
}

/* Dark popup styling */
.dark-popup .leaflet-popup-content-wrapper {
    background: var(--bg-base);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    color: var(--text-primary);
}
.dark-popup .leaflet-popup-tip {
    background: var(--bg-base);
    border: 1px solid var(--border-light);
}
.dark-popup .leaflet-popup-close-button {
    color: var(--text-muted);
}

.map-popup {
    min-width: 220px;
    padding: 0.25rem;
}

.map-popup-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.map-popup-platform {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.map-popup-content {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.map-popup-location {
    font-size: 0.8rem;
    color: var(--accent-emerald);
    margin-bottom: 0.25rem;
}

.map-popup-service {
    font-size: 0.75rem;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
}

.map-popup-link {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-top: 0.25rem;
}
.map-popup-link:hover {
    color: #60a5fa;
}

/* Heatmap toggle active state */
#toggle-heatmap.active {
    background: var(--accent-coral);
    color: white;
    border-color: var(--accent-coral);
}

/* Leaflet overrides for dark theme */
.leaflet-control-zoom a {
    background: var(--bg-surface) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-light) !important;
}
.leaflet-control-zoom a:hover {
    background: var(--bg-elevated) !important;
}
.leaflet-control-attribution {
    background: rgba(10, 10, 15, 0.7) !important;
    color: var(--text-muted) !important;
    font-size: 0.65rem !important;
}
.leaflet-control-attribution a {
    color: var(--text-muted) !important;
}

@media (max-width: 768px) {
    .territory-map {
        height: calc(100vh - 280px);
        min-height: 400px;
    }
    .map-controls {
        gap: 0.5rem;
    }
    .competitor-grid {
        grid-template-columns: 1fr;
    }
    .competitor-detail-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   Outreach Campaigns
   ============================================================ */

.campaign-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.campaign-card {
    padding: 1.5rem;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.campaign-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-blue);
}

.campaign-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.campaign-status-pill {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.7rem;
    border-radius: var(--radius-full);
}
.status-draft {
    background: rgba(107, 107, 128, 0.15);
    color: var(--text-muted);
}
.status-active {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-emerald);
}
.status-paused {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-amber);
}
.status-completed {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
}

.campaign-metrics-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}

.campaign-metric {
    text-align: center;
}

.campaign-metric-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.campaign-metric-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

/* Campaign Detail */
.campaign-detail-header {
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.campaign-email-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.campaign-email-row {
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.email-row-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 220px;
}

.email-row-middle {
    flex: 1;
    min-width: 0;
}

.email-row-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    min-width: 100px;
}

.email-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.status-dot-queued { background: var(--text-muted); }
.status-dot-sent { background: var(--accent-blue); }
.status-dot-delivered { background: var(--accent-blue); }
.status-dot-opened { background: var(--accent-amber); }
.status-dot-replied { background: var(--accent-emerald); }
.status-dot-bounced { background: var(--accent-coral); }
.status-dot-failed { background: var(--accent-coral); }
.status-dot-new { background: var(--text-muted); }
.status-dot-email1_sent { background: var(--accent-blue); }
.status-dot-email2_sent { background: rgba(59,130,246,0.7); }
.status-dot-email3_sent { background: rgba(59,130,246,0.5); }
.status-dot-interested { background: var(--accent-emerald); }
.status-dot-not_interested { background: var(--accent-coral); }
.status-dot-draft { background: var(--text-muted); }
.status-dot-approved { background: var(--accent-amber); }

.email-status-pill {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
}
.email-status-queued { background: rgba(107,107,128,0.15); color: var(--text-muted); }
.email-status-sent { background: rgba(59,130,246,0.15); color: var(--accent-blue); }
.email-status-delivered { background: rgba(59,130,246,0.15); color: var(--accent-blue); }
.email-status-opened { background: rgba(245,158,11,0.15); color: var(--accent-amber); }
.email-status-replied { background: rgba(16,185,129,0.15); color: var(--accent-emerald); }
.email-status-bounced { background: rgba(255,71,87,0.15); color: var(--accent-coral); }
.email-status-failed { background: rgba(255,71,87,0.15); color: var(--accent-coral); }
.email-status-new { background: rgba(107,107,128,0.15); color: var(--text-muted); }
.email-status-email1_sent { background: rgba(59,130,246,0.15); color: var(--accent-blue); }
.email-status-email2_sent { background: rgba(59,130,246,0.12); color: var(--accent-blue); }
.email-status-email3_sent { background: rgba(59,130,246,0.1); color: var(--accent-blue); }
.email-status-interested { background: rgba(16,185,129,0.15); color: var(--accent-emerald); }
.email-status-not_interested { background: rgba(255,71,87,0.15); color: var(--accent-coral); }
.email-status-draft { background: rgba(107,107,128,0.15); color: var(--text-muted); }
.email-status-approved { background: rgba(245,158,11,0.15); color: var(--accent-amber); }

.email-seq-badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.1rem 0.4rem;
    border-radius: var(--radius-full);
    background: rgba(59,130,246,0.12);
    color: var(--accent-blue);
    margin-left: 0.35rem;
}

/* Campaign Wizard */
.wizard-steps {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.wizard-step {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-full);
    transition: color var(--transition-fast), background var(--transition-fast);
}
.wizard-step span {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-elevated);
    font-size: 0.7rem;
    font-weight: 700;
}
.wizard-step.active {
    color: var(--accent-blue);
}
.wizard-step.active span {
    background: var(--accent-blue);
    color: white;
}
.wizard-step.completed span {
    background: var(--accent-emerald);
    color: white;
}

.wizard-panel {
    display: none;
}
.wizard-panel.active {
    display: block;
}

/* Chip select (for multi-select buttons) */
.chip-select {
    display: inline-flex;
    cursor: pointer;
}
.chip-select input { display: none; }
.chip-select span {
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}
.chip-select input:checked + span {
    background: rgba(59,130,246,0.15);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

/* Toggle switch */
.toggle-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.toggle-row input { display: none; }
.toggle-switch {
    position: relative;
    width: 40px;
    height: 22px;
    background: var(--bg-elevated);
    border-radius: 11px;
    transition: background var(--transition-fast);
    flex-shrink: 0;
}
.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: transform var(--transition-fast), background var(--transition-fast);
}
.toggle-row input:checked + .toggle-switch {
    background: var(--accent-blue);
}
.toggle-row input:checked + .toggle-switch::after {
    transform: translateX(18px);
    background: white;
}

/* Review summary rows */
.review-row {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.review-row:last-child { border-bottom: none; }

/* Prospect rows in wizard */
.prospect-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-primary);
}
.prospect-row:last-child { border-bottom: none; }

@media (max-width: 768px) {
    .campaign-metrics-row { grid-template-columns: repeat(2, 1fr); }
    .campaign-email-row { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .email-row-left { min-width: auto; }
    .email-row-right { align-items: flex-start; }
    .wizard-steps { flex-wrap: wrap; }
}

/* ============================================================
   Mobile Responsiveness — Global Polish
   ============================================================ */

/* Table scroll wrapper — wrap any table in .table-responsive for mobile scroll */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Word break for long URLs / text in lead content */
.lead-content-preview,
.lead-card,
.glass-card p,
.glass-card-static p {
    word-break: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 768px) {
    .app-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .main-content {
        margin-left: 0;
    }

    .page-content {
        padding: 0.75rem;
    }

    /* KPI cards stack 2-up on mobile */
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem;
    }
    .kpi-card {
        padding: 1rem;
    }
    .kpi-value {
        font-size: 1.5rem;
    }

    /* Lead cards full width */
    .lead-card {
        padding: 0.75rem;
    }

    /* Dashboard sidebar-stats below main content */
    .page-content > div[style*="grid-template-columns: 1fr 340px"] {
        grid-template-columns: 1fr !important;
    }

    /* Competitor & campaign grids single column */
    .competitor-grid { grid-template-columns: 1fr; }
    .campaign-card { min-width: 0; }

    /* Inline flex rows wrap */
    .lead-meta,
    .lead-footer { flex-wrap: wrap; }

    /* Long text safety */
    .page-content { overflow-x: hidden; max-width: 100vw; }
}

@media (max-width: 480px) {
    .kpi-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================================
   Animation Polish — Smooth transitions
   ============================================================ */

/* Card hover lift effect (consistent across all card types) */
.glass-card,
.glass-card-static,
.competitor-card,
.campaign-card {
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.25s ease,
                border-color 0.25s ease;
}
.glass-card:hover,
.competitor-card:hover,
.campaign-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

/* Smooth sidebar link transitions */
.sidebar-link {
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.sidebar-link:active {
    transform: scale(0.97);
}

/* Button press feedback */
.btn-primary,
.btn-secondary,
.btn-danger,
.btn-ghost {
    transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-primary:active,
.btn-secondary:active,
.btn-danger:active {
    transform: scale(0.96);
}

/* Platform pill subtle hover */
.platform-pill {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.platform-pill:hover {
    transform: scale(1.05);
}

/* Urgency badge pulse for HOT */
.urgency-hot {
    animation: hotPulse 2s ease-in-out infinite;
}
@keyframes hotPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(255, 71, 87, 0); }
}

/* Smooth scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--bg-hover);
}

/* ─────────────────────────────────────────────────────────────
   CRM STYLES — Pipeline, Contacts, Timeline, Inbox, Appointments
   ───────────────────────────────────────────────────────────── */

/* Sidebar badge */
.sidebar-badge {
    background: var(--accent-coral);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    margin-left: auto;
}

/* Sidebar sub-links (collapsible source sub-navigation) */
.sidebar-sub-links {
    display: none;
    flex-direction: column;
    padding-left: 2.2rem;
}
.sidebar-sub-links.open {
    display: flex;
}
.sidebar-sub-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-secondary);
    padding: 0.3rem 0.75rem;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: color 0.15s, background 0.15s;
}
.sidebar-sub-link:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}
.sidebar-badge-sm {
    background: rgba(255, 71, 87, 0.15);
    color: var(--accent-coral);
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 9999px;
    margin-left: auto;
}

/* Pipeline Stats Bar */
.pipeline-stats-bar {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.pipeline-stat {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.pipeline-stat .stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}
.pipeline-stat .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.pipeline-stat.stat-won .stat-value {
    color: var(--accent-emerald);
}

/* Kanban Board */
.kanban-board {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    min-height: calc(100vh - 250px);
}
.kanban-column {
    min-width: 260px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.kanban-column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--bg-surface);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    border: 1px solid var(--border-subtle);
    border-bottom: 2px solid var(--accent-blue);
}
.kanban-column[data-stage="new"] .kanban-column-header { border-bottom-color: var(--accent-blue); }
.kanban-column[data-stage="contacted"] .kanban-column-header { border-bottom-color: #6366F1; }
.kanban-column[data-stage="follow_up"] .kanban-column-header { border-bottom-color: var(--accent-amber); }
.kanban-column[data-stage="quoted"] .kanban-column-header { border-bottom-color: #F97316; }
.kanban-column[data-stage="won"] .kanban-column-header { border-bottom-color: var(--accent-emerald); }
.kanban-column[data-stage="lost"] .kanban-column-header { border-bottom-color: var(--accent-coral); }

.kanban-column-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-primary);
}
.kanban-column-count {
    background: var(--bg-elevated);
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
}

.kanban-cards {
    flex: 1;
    background: var(--bg-base);
    border: 1px solid var(--border-subtle);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 100px;
    transition: background 0.15s;
}
.kanban-cards.drag-over {
    background: var(--bg-surface);
}

.kanban-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.15s;
}
.kanban-card:hover {
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-sm);
}
.kanban-card.dragging {
    opacity: 0.4;
}
.kanban-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}
.kanban-card-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
}
.kanban-card-service {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}
.kanban-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-muted);
}
.kanban-card-value {
    font-weight: 700;
    color: var(--accent-emerald);
}
.kanban-empty {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Contacts Page */
.contacts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}
.contacts-count {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}
.contacts-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.filter-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.filter-search {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    width: 220px;
}
.filter-search:focus {
    outline: none;
    border-color: var(--accent-blue);
}
.filter-select {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    cursor: pointer;
}

.contacts-table-wrap {
    overflow-x: auto;
}
.contacts-table {
    width: 100%;
    border-collapse: collapse;
}
.contacts-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-subtle);
    white-space: nowrap;
}
.contacts-table td {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}
.contact-row {
    cursor: pointer;
    transition: background 0.1s;
}
.contact-row:hover {
    background: var(--bg-surface);
}
.contact-name-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.contact-avatar-sm {
    width: 32px;
    height: 32px;
    background: var(--bg-elevated);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
}
.contact-name {
    font-weight: 600;
    color: var(--text-primary);
}
.contact-email {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.contacts-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}
.contacts-empty i {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.75rem;
    opacity: 0.4;
}

/* Stage Badges */
.stage-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}
.stage-new { background: rgba(13,148,136,0.12); color: #0D9488; }
.stage-contacted { background: rgba(99,102,241,0.12); color: #6366F1; }
.stage-follow_up { background: rgba(245,158,11,0.15); color: #F59E0B; }
.stage-quoted { background: rgba(249,115,22,0.15); color: #F97316; }
.stage-won { background: rgba(16,185,129,0.15); color: #10B981; }
.stage-lost { background: rgba(255,71,87,0.15); color: #FF4757; }
.stage-upcoming { background: rgba(13,148,136,0.12); color: #0D9488; }
.stage-completed { background: rgba(16,185,129,0.15); color: #10B981; }
.stage-no_show { background: rgba(255,71,87,0.15); color: #FF4757; }
.stage-cancelled { background: rgba(107,107,128,0.15); color: #6B6B80; }

/* Contact Type Badges */
.contact-type-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 500;
}
.contact-type-lead { background: rgba(59,130,246,0.1); color: var(--accent-blue); }
.contact-type-outreach { background: rgba(99,102,241,0.1); color: #6366F1; }
.contact-type-manual { background: rgba(107,107,128,0.1); color: var(--text-muted); }
.contact-type-referral { background: rgba(16,185,129,0.1); color: var(--accent-emerald); }

/* Contact Detail */
.contact-detail-page .back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    text-decoration: none;
}
.contact-detail-page .back-link:hover { color: var(--accent-blue); }

.contact-detail-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 1.5rem;
    align-items: start;
}
@media (max-width: 900px) {
    .contact-detail-grid { grid-template-columns: 1fr; }
}

.contact-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.contact-avatar-lg {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #0F766E 100%);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}
.contact-detail-name {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 0.35rem;
}

.contact-info-fields {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.info-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.info-row i {
    color: var(--text-muted);
    width: 16px;
    text-align: center;
}
.btn-block {
    width: 100%;
}

/* Card Section Title */
.card-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.75rem;
}

/* Stage Buttons */
.stage-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.stage-btn {
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--border-subtle);
    background: var(--bg-base);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
}
.stage-btn:hover { border-color: var(--accent-blue); color: var(--text-primary); }
.stage-btn.active { border-color: transparent; color: #fff; }
.stage-btn.active.stage-new { background: #0D9488; }
.stage-btn.active.stage-contacted { background: #6366F1; }
.stage-btn.active.stage-follow_up { background: #F59E0B; }
.stage-btn.active.stage-quoted { background: #F97316; }
.stage-btn.active.stage-won { background: #10B981; }
.stage-btn.active.stage-lost { background: #FF4757; }

/* Deal Info */
.deal-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.deal-field label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.15rem;
    display: block;
}
.deal-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Activity Timeline */
.timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.timeline-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-left: 2px solid var(--border-subtle);
    margin-left: 15px;
    padding-left: 1.25rem;
    position: relative;
}
.timeline-icon {
    position: absolute;
    left: -15px;
    width: 28px;
    height: 28px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}
.timeline-content {
    flex: 1;
    min-width: 0;
}
.timeline-type {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}
.timeline-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    word-break: break-word;
}
.timeline-value {
    font-weight: 700;
    color: var(--accent-emerald);
    font-size: 0.85rem;
    margin-top: 0.15rem;
}
.timeline-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}
.timeline-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}
.timeline-empty i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.4;
}

/* Modals */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-lg);
}
.modal-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.25rem;
}

/* Form Styles */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.form-group {
    margin-bottom: 0.75rem;
}
.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}
.form-input {
    width: 100%;
    background: var(--bg-base);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-family: inherit;
    box-sizing: border-box;
}
.form-input:focus {
    outline: none;
    border-color: var(--accent-blue);
}
.form-textarea {
    min-height: 80px;
    resize: vertical;
}

/* Inbox */
.crm-inbox-page .inbox-header {
    margin-bottom: 1.25rem;
}
.inbox-count {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.inbox-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.inbox-item {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    transition: border-color 0.15s;
}
.inbox-item:hover {
    border-color: var(--accent-blue);
}
.inbox-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}
.inbox-sender {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.inbox-sender-name {
    font-weight: 600;
    color: var(--text-primary);
}
.inbox-sender-email {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.inbox-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.inbox-campaign-tag {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}
.inbox-original {
    background: var(--bg-base);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}
.inbox-original-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}
.inbox-original-subject {
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.inbox-actions {
    display: flex;
    gap: 0.5rem;
}
.inbox-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}
.inbox-empty i {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.4;
}

/* Appointments */
.appointment-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.appointment-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-subtle);
}
.appointment-row:last-child { border-bottom: none; }
.appointment-past { opacity: 0.6; }
.appointment-date-col {
    text-align: center;
    min-width: 50px;
}
.appointment-day {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}
.appointment-month {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}
.appointment-info {
    flex: 1;
}
.appointment-contact-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}
.appointment-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.appointment-service {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.appointment-notes {
    font-size: 0.75rem;
}
.appointment-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.appointment-status-btns {
    display: flex;
    gap: 0.25rem;
}
.appointment-mini {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.85rem;
}
.appointment-mini:last-child { border-bottom: none; }
.appointment-mini-date {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Competitor Tracker */
.competitor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1.25rem;
}
.competitor-card {
    padding: 1.25rem;
}
.competitor-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}
.competitor-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
}
.competitor-trend i {
    font-size: 1.5rem;
}
.competitor-rating-row {
    margin-bottom: 0.75rem;
}
.competitor-stars {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.competitor-rating-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}
.star-display {
    display: flex;
    gap: 0.1rem;
}
.competitor-alert {
    background: rgba(255,71,87,0.1);
    color: var(--accent-coral);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.competitor-reviews {
    margin-bottom: 0.75rem;
}
.competitor-reviews-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}
.competitor-review-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-subtle);
}
.competitor-review-item:last-child { border-bottom: none; }
.competitor-review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}
.competitor-review-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}
.competitor-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
}

/* Revenue tracker helper */
.text-emerald, .text-success { color: var(--accent-emerald); }
.text-danger { color: var(--accent-coral); }
.text-blue { color: var(--accent-blue); }

/* Light theme overrides for CRM */
[data-theme="light"] .kanban-card {
    background: #fff;
}
[data-theme="light"] .kanban-cards {
    background: #f5f5f7;
}
[data-theme="light"] .modal-card {
    background: #fff;
}
[data-theme="light"] .form-input {
    background: #f5f5f7;
}
[data-theme="light"] .inbox-item {
    background: #fff;
}
[data-theme="light"] .contact-avatar-sm {
    background: #e5e7eb;
}
[data-theme="light"] .filter-search,
[data-theme="light"] .filter-select {
    background: #fff;
}

/* ============================================================
   Sales Team CRM
   ============================================================ */
.sales-admin-page, .sales-page { max-width: 1200px; }

/* Pipeline stage status pills */
.status-pill.status-new { background: rgba(148,163,184,0.15); color: #94a3b8; }
.status-pill.status-contacted { background: rgba(59,130,246,0.15); color: #3b82f6; }
.status-pill.status-callback { background: rgba(245,158,11,0.15); color: #f59e0b; }
.status-pill.status-demo_scheduled { background: rgba(139,92,246,0.15); color: #8b5cf6; }
.status-pill.status-demo_completed { background: rgba(99,102,241,0.15); color: #6366F1; }
.status-pill.status-proposal_sent { background: rgba(245,158,11,0.2); color: #fbbf24; }
.status-pill.status-closed_won { background: rgba(16,185,129,0.15); color: #10b981; }
.status-pill.status-closed_lost { background: rgba(239,68,68,0.15); color: #ef4444; }
.status-pill.status-active { background: rgba(16,185,129,0.15); color: #10b981; }
.status-pill.status-inactive { background: rgba(148,163,184,0.15); color: #94a3b8; }

/* Activity Timeline */
.activity-timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item { display: flex; gap: 0.75rem; padding: 0.75rem 0; border-bottom: 1px solid var(--border-color); }
.timeline-item:last-child { border-bottom: none; }
.timeline-icon { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.05); flex-shrink: 0; font-size: 0.9rem; }
.timeline-content { flex: 1; min-width: 0; }
.timeline-header { font-size: 0.85rem; }
.timeline-desc { font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.25rem; white-space: pre-line; }
.timeline-date { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.2rem; }

/* Stat rows */
.stat-rows { display: flex; flex-direction: column; }
.stat-row { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0; border-bottom: 1px solid var(--border-color); font-size: 0.85rem; }
.stat-row:last-child { border-bottom: none; }

/* Text color helpers */
.text-emerald { color: var(--accent-emerald); }
.text-amber { color: var(--accent-amber); }

/* Card header row */
.card-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.card-title { font-size: 1rem; font-weight: 600; margin: 0; display: flex; align-items: center; gap: 0.5rem; }

/* Filter pills */
.filter-pills { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.filter-pill { padding: 0.35rem 0.85rem; border-radius: 20px; font-size: 0.8rem; color: var(--text-secondary); background: rgba(255,255,255,0.05); text-decoration: none; transition: all 0.15s; border: 1px solid transparent; }
.filter-pill:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }
.filter-pill.active { background: rgba(59,130,246,0.15); color: #3b82f6; border-color: rgba(59,130,246,0.3); }

/* KPI responsive on mobile */
@media (max-width: 768px) {
    .kanban-board { flex-direction: column; }
    .kanban-column { min-width: unset; max-width: unset; }
    .sales-page > div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
}
