/* Glimpse CSS Design System & Variables */
:root {
    --bg-primary: #0b0d12;
    --bg-secondary: #12141a;
    --bg-tertiary: #1b1e26;
    --glass-bg: rgba(22, 24, 30, 0.65);
    --glass-border: rgba(255, 255, 255, 0.07);
    --glass-highlight: rgba(255, 255, 255, 0.04);
    --border-active: rgba(167, 139, 250, 0.6);
    --accent-primary: #8b5cf6;
    --accent-primary-hover: #7c3aed;
    --accent-primary-active: #6d28d9;
    --accent-primary-glow: rgba(139, 92, 246, 0.15);
    --accent-cyan: #22D3EE;
    --accent-cyan-glow: rgba(34, 211, 238, 0.12);
    --accent-emerald: #10B981;
    --accent-emerald-glow: rgba(16, 185, 129, 0.12);
    --accent-amber: #F59E0B;
    --accent-amber-glow: rgba(245, 158, 11, 0.12);
    --accent-rose: #F43F5E;
    --accent-rose-glow: rgba(244, 63, 94, 0.12);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dimmed: #64748b;
    --sidebar-width: 260px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

body {
    background-color: var(--bg-primary);
    background-image: radial-gradient(circle at top right, rgba(129, 140, 248, 0.04), transparent 50%), radial-gradient(circle at bottom left, rgba(34, 211, 238, 0.03), transparent 50%);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    background-attachment: fixed;
}

.hidden {
    display: none !important;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.15);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(15, 23, 42, 0.25);
}

/* App Layout Grid */
.app-layout {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    /* Prevent container scrolling */
}

/* Ensure main content scrolls independently */
.main-content {
    overflow-y: auto;
}

/* Sidebar Navigation */
.sidebar {
    width: var(--sidebar-width);
    background: #f1f5f9;
    border-right: 1px solid var(--glass-border);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 10;
    flex-shrink: 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-shrink: 0;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #581c87 0%, #7c3aed 48%, #c084fc 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    text-shadow: 0 2px 5px rgba(46, 16, 101, 0.9), 0 0 1px rgba(46, 16, 101, 0.95);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 2px;
    color: var(--text-main);
}

.logo-subtitle {
    font-size: 0.65rem;
    letter-spacing: 1px;
    color: var(--accent-cyan);
    font-weight: 600;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-bottom: 1.5rem;
    padding-right: 4px;
}

.nav-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    padding: 0.9rem 1.2rem;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    text-align: left;
    width: 100%;
}

.nav-btn i {
    width: 20px;
    height: 20px;
    transition: var(--transition-smooth);
}

.nav-btn:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-main);
}

.nav-btn.active {
    background: var(--accent-primary-glow);
    color: var(--accent-primary);
    border-left: 3px solid var(--accent-primary);
    padding-left: calc(1.2rem - 3px);
}

.nav-btn.active i {
    color: var(--accent-primary);
}

.nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.sidebar-info-box {
    flex-shrink: 0;
    margin-bottom: 2rem;
}

.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
    flex-shrink: 0;
}

.stats-mini {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.stat-mini-row {
    display: flex;
    justify-content: space-between;
}

.stat-mini-row .lbl {
    color: var(--text-dimmed);
}

.stat-mini-row .val {
    color: var(--text-main);
    font-weight: 600;
}

.status-online {
    color: var(--accent-emerald) !important;
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-online::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent-emerald);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-emerald);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #1e293b;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-cyan);
}

.profile-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
}

.username {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 0.65rem;
    color: var(--text-dimmed);
    text-transform: capitalize;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logout-btn {
    background: transparent;
    border: none;
    color: var(--text-dimmed);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.logout-btn:hover {
    color: var(--accent-rose);
    background: rgba(239, 68, 68, 0.08);
}

.logout-btn i {
    width: 16px;
    height: 16px;
}

/* Main Content Area */
.main-content {
    flex: 1;
    min-height: 100vh;
    padding: 2.5rem 3rem;
    position: relative;
}

/* View Panel Base State */
.view-panel {
    display: none;
    animation: fadeScaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    padding-bottom: 4rem;
}

.view-panel.active {
    display: block;
}

@keyframes fadeScaleIn {
    0% {
        opacity: 0;
        transform: scale(0.98) translateY(10px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* AUTHENTICATION VIEW */
.auth-screen-wrapper {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
}

.auth-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.2rem;
    margin-bottom: 2rem;
}

.auth-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.55rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.auth-tab.active {
    background: var(--glass-bg);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.auth-error {
    color: var(--accent-rose);
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* ONBOARDING VIEW */
.onboard-screen-wrapper {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
}

.onboard-card {
    width: 100%;
    max-width: 850px;
    padding: 3.5rem;
    border-radius: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.onboard-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.onboard-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.onboard-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.onboard-opt-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.onboard-opt-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-4px);
}

.onboard-opt-card.selected {
    background: var(--accent-primary-glow);
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.opt-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    margin-bottom: 1.25rem;
    transition: var(--transition-smooth);
}

.onboard-opt-card.selected .opt-icon {
    background: var(--accent-primary);
    color: white;
}

.onboard-opt-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.onboard-opt-card p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* RESOLUTION PANEL */
.resolve-loading-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem;
    text-align: center;
}

.loader-pulse {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-primary-glow);
    border: 3px solid var(--accent-primary);
    position: relative;
    animation: pulseLoader 1.6s infinite ease-in-out;
}

@keyframes pulseLoader {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
        box-shadow: 0 0 20px 10px rgba(99, 102, 241, 0.2);
    }

    100% {
        transform: scale(0.9);
        opacity: 0.8;
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

.resolve-confirm-container {
    max-width: 800px;
    margin: 0 auto;
}

.resolve-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

/* VIEW 1: SEARCH / HERO STYLING */
.search-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 5vh;
    margin-bottom: 8vh;
    position: relative;
    z-index: 5;
}



.hero-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 3.5rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #0f172a 30%, #475569 70%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 650px;
    line-height: 1.6;
    margin-bottom: 3rem;
}

/* Search Tabs */
.search-tabs {
    display: flex;
    background: rgba(13, 17, 33, 0.6);
    border: 1px solid var(--glass-border);
    padding: 0.35rem;
    border-radius: 30px;
    margin-bottom: 2rem;
    backdrop-filter: blur(8px);
}

.search-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.6rem 1.8rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.search-tab.active {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

/* Search Input Box */
.search-box-container {
    position: relative;
    width: 100%;
    max-width: 750px;
    margin-bottom: 2rem;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(13, 17, 33, 0.85);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 0.5rem 0.5rem 0.5rem 1.75rem;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    transition: var(--transition-smooth);
}

.search-input-wrapper:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.25), 0 10px 40px -10px rgba(0, 0, 0, 0.6);
}

.search-input-icon {
    color: var(--text-dimmed);
    margin-right: 1rem;
    width: 22px;
    height: 22px;
}

.search-input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 1.1rem;
    font-family: var(--font-body);
    font-weight: 400;
}

.search-input-wrapper input::placeholder {
    color: var(--text-dimmed);
}

.search-action-btn {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-cyan) 100%);
    border: none;
    color: white;
    padding: 0.9rem 2.2rem;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
    transition: var(--transition-smooth);
}

.search-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.45);
}

/* Autocomplete suggestions */
.autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: rgba(10, 14, 28, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
    z-index: 50;
    overflow: hidden;
    padding: 0.5rem 0;
}

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

.autocomplete-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.75rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.autocomplete-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.autocomplete-item-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.autocomplete-item-name {
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
}

.autocomplete-item-type {
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.autocomplete-item-type.company {
    background: var(--accent-primary-glow);
    color: #a5b4fc;
    border: 1px solid rgba(165, 180, 252, 0.2);
}

.autocomplete-item-type.product {
    background: var(--accent-cyan-glow);
    color: #67e8f9;
    border: 1px solid rgba(103, 232, 249, 0.2);
}

.autocomplete-item-score {
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.autocomplete-item-score.pos {
    color: var(--accent-emerald);
}

.autocomplete-item-score.neu {
    color: var(--accent-amber);
}

.autocomplete-item-score.neg {
    color: var(--accent-rose);
}

/* Popular tags */
.popular-tags-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.popular-label {
    font-size: 0.85rem;
    color: var(--text-dimmed);
}

.tags-container {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.tag-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 0.45rem 1.1rem;
    border-radius: 20px;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-weight: 500;
}

.tag-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Global Stats Banner */
.system-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.stats-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 2px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.05);
    transition: var(--transition-smooth);
}

.stats-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.14), 0 8px 28px rgba(0,0,0,0.28), 0 18px 48px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.06);
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon-wrapper i {
    width: 24px;
    height: 24px;
}

.stat-icon-wrapper.pos {
    background: var(--accent-emerald-glow);
    color: var(--accent-emerald);
}

.stat-icon-wrapper.prim {
    background: var(--accent-primary-glow);
    color: var(--accent-primary);
}

.stat-icon-wrapper.neg {
    background: var(--accent-rose-glow);
    color: var(--accent-rose);
}

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

.stat-val {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.stat-lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 1px;
}


/* VIEW 3: ENTITY DASHBOARD STYLING */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.entity-badge {
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    background: var(--accent-primary-glow);
    color: #a5b4fc;
    border: 1px solid rgba(165, 180, 252, 0.2);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.entity-badge.company {
    background: var(--accent-primary-glow);
    color: #a5b4fc;
    border: 1px solid rgba(165, 180, 252, 0.2);
}

.entity-badge.product {
    background: var(--accent-cyan-glow);
    color: #67e8f9;
    border: 1px solid rgba(103, 232, 249, 0.2);
}



.entity-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.entity-hierarchy-link {
    font-size: 0.85rem;
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-smooth);
    background: rgba(6, 182, 212, 0.08);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
}

.entity-hierarchy-link:hover {
    color: white;
    background: rgba(6, 182, 212, 0.2);
}

.header-right {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.35rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.btn i {
    width: 16px;
    height: 16px;
}

.btn-primary {
    background: var(--accent-primary);
    border: 1px solid transparent;
    color: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 4px 14px rgba(129, 140, 248, 0.3), inset 0 1px 0 rgba(255,255,255,0.15);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.btn-primary:hover:not(:disabled) {
    background: var(--accent-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.14), 0 8px 24px rgba(129, 140, 248, 0.4), inset 0 1px 0 rgba(255,255,255,0.18);
}

.btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.08);
    transform: translateY(-1px);
}

#export-report-btn:hover,
#export-report-btn:focus-visible {
    background: #f5f3ff;
    color: var(--accent-primary);
    border-color: rgba(124, 58, 237, 0.35);
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.14);
}

.btn-block {
    width: 100%;
    justify-content: center;
    padding: 0.85rem;
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

/* Grid Column Widths helper classes */
.grid-col-4 {
    grid-column: span 4;
}

.grid-col-5 {
    grid-column: span 5;
}

.grid-col-6 {
    grid-column: span 6;
}

.grid-col-7 {
    grid-column: span 7;
}

.grid-col-8 {
    grid-column: span 8;
}

.grid-col-12 {
    grid-column: span 12;
}

/* Translucent Cards */
.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1), inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.plat-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-dimmed);
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.plat-pill:hover {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-main);
}

.plat-pill.active {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
    color: #818cf8;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: 0.2px;
}

.card-body {
    padding: 1.5rem;
    flex-grow: 1;
}

.section-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.info-tooltip-trigger {
    color: var(--text-dimmed);
    cursor: help;
    width: 16px;
    height: 16px;
}

/* Gauge Card Styling */
.gauge-card {
    align-items: center;
    padding-bottom: 1.5rem;
}

.gauge-card .card-header {
    width: 100%;
    margin-bottom: 0.5rem;
}

.gauge-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 1rem 0;
}

.radial-gauge-container {
    position: relative;
    width: 170px;
    height: 170px;
}

.radial-gauge {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.radial-gauge-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.04);
    stroke-width: 8;
}

.radial-gauge-fill {
    fill: none;
    stroke: var(--accent-primary);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease-out;
}

.radial-gauge-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: row;
    align-items: baseline;
}

.gauge-val {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-main);
}

.gauge-max {
    font-size: 1rem;
    color: var(--text-dimmed);
    font-weight: 500;
    margin-left: 2px;
}

.gauge-sentiment-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 0.5rem;
}

.sentiment-indicator {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.sentiment-indicator.positive {
    background: var(--accent-emerald-glow);
    color: var(--accent-emerald);
}

.sentiment-indicator.mixed {
    background: var(--accent-amber-glow);
    color: var(--accent-amber);
}

.sentiment-indicator.negative {
    background: var(--accent-rose-glow);
    color: var(--accent-rose);
}

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

/* Charts Containers */
.chart-container {
    position: relative;
    padding: 1.5rem;
    flex-grow: 1;
    min-height: 250px;
}

.chart-container-radar {
    position: relative;
    padding: 1.25rem 2.25rem;
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 250px;
}

.chart-legend-custom {
    display: flex;
    gap: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
}

.legend-item .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.legend-item.pos .dot {
    background: var(--accent-emerald);
}

.legend-item.neu .dot {
    background: var(--accent-amber);
}

.legend-item.neg .dot {
    background: var(--accent-rose);
}

/* Hierarchy Panel & Product Breakdown List */
.hierarchy-card .card-body {
    display: flex;
    flex-direction: column;
}

.header-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.hierarchy-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow-y: auto;
    max-height: 230px;
    padding-right: 0.25rem;
}

.hierarchy-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.hierarchy-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.06);
}

.hierarchy-item-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hierarchy-item-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--accent-primary-glow);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.hierarchy-item.drag-factor .hierarchy-item-avatar {
    background: var(--accent-rose-glow);
    color: var(--accent-rose);
}

.hierarchy-item-details {
    display: flex;
    flex-direction: column;
}

.hierarchy-item-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.hierarchy-item-tag {
    font-size: 0.7rem;
    color: var(--text-dimmed);
    margin-top: 1px;
}

.hierarchy-item-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.hierarchy-item-score-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.hierarchy-item-score {
    font-size: 0.95rem;
    font-weight: 700;
}

.hierarchy-item-score.pos {
    color: var(--accent-emerald);
}

.hierarchy-item-score.neu {
    color: var(--accent-amber);
}

.hierarchy-item-score.neg {
    color: var(--accent-rose);
}

.hierarchy-item-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.hierarchy-item-label.pos {
    color: rgba(16, 185, 129, 0.7);
}

.hierarchy-item-label.neu {
    color: rgba(245, 158, 11, 0.7);
}

.hierarchy-item-label.neg {
    color: rgba(239, 68, 68, 0.7);
}

.hierarchy-item-chevron {
    color: var(--text-dimmed);
    width: 16px;
    height: 16px;
}

/* Alerts Log Panel */
.alerts-card {
    max-height: 400px;
}

.alerts-count-badge {
    background: var(--accent-rose);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
}

.alerts-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem;
    overflow-y: auto;
}

.alert-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.85rem;
    background: rgba(239, 68, 68, 0.03);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: 10px;
    transition: var(--transition-smooth);
}

.alert-item:hover {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
}

.alert-icon {
    color: var(--accent-rose);
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
}

.alert-details {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.alert-msg {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.4;
}

.alert-time {
    font-size: 0.65rem;
    color: var(--text-dimmed);
}

/* Mentions Stream */
.mentions-card {
    max-height: 400px;
}

.mentions-filter {
    display: flex;
    background: #e2e8f0;
    border: 1px solid var(--glass-border);
    padding: 0.2rem;
    border-radius: 6px;
}

.filter-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-tab.active {
    background: #ffffff;
    color: var(--text-main);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.mentions-stream-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.25rem;
    overflow-y: auto;
}

.mention-post {
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    transition: var(--transition-smooth);
}

.mention-post:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.mention-post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.mention-author {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
}

.platform-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-icon.reddit {
    color: #ff4500;
}

.platform-icon.twitter {
    color: #1da1f2;
}

.platform-icon.instagram {
    color: #e1306c;
}

.platform-icon.youtube {
    color: #ff0000;
}

.platform-icon.news {
    color: #10b981;
}

.platform-icon.reviews {
    color: #3b82f6;
}

.mention-sentiment-tag {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
}

.mention-sentiment-tag.pos {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-emerald);
}

.mention-sentiment-tag.neu {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-amber);
}

.mention-sentiment-tag.neg {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-rose);
}

.mention-body {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    word-break: break-word;
}


/* VIEW 4: COMPARATIVE ENGINE */


.comparison-selectors-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2.5rem;
    margin-bottom: 2.5rem;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    gap: 2rem;
}

.selector-container {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

.selector-container label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.selector-container select {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: var(--text-main);
    padding: 0.85rem 1.25rem;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    width: 100%;
}

.selector-container select:hover {
    border-color: var(--accent-primary);
    background: #f1f5f9;
}

.selector-container select option {
    background: #ffffff;
    color: var(--text-main);
}

.compare-divider {
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compare-divider span {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--accent-primary);
    background: var(--accent-primary-glow);
    padding: 0.4rem 0.9rem;
    border-radius: 30px;
    letter-spacing: 1px;
    border: 1px solid rgba(124, 58, 237, 0.15);
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

.compare-score-card {
    align-items: center;
    padding: 2.25rem;
    text-align: center;
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.compare-health-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    margin: 1.75rem 0;
}

.comp-circle {
    width: 115px;
    height: 115px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.05) 0%, transparent 85%);
    border: 6px solid var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.1);
}

.compare-score-card:nth-child(2) .comp-circle {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px var(--accent-cyan-glow);
}

.comp-sentiment-lbl {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comp-quick-stats {
    display: flex;
    gap: 1.5rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 1.25rem;
    width: 100%;
    justify-content: center;
}

.comp-stat-bubble {
    display: flex;
    flex-direction: column;
}

.comp-stat-bubble .lbl {
    font-size: 0.7rem;
    color: var(--text-dimmed);
}

.comp-stat-bubble .val {
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
}

/* Head-to-Head Table */
.side-by-side-card .card-header {
    border-bottom: 1px solid var(--glass-border);
}

.head-to-head-table-wrapper {
    overflow-x: auto;
    padding: 0.5rem;
}

.head-to-head-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.head-to-head-table th {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem 1.5rem;
    border-bottom: 2px solid var(--glass-border);
}

.head-to-head-table th:nth-child(2) {
    color: var(--accent-primary);
}

.head-to-head-table th:nth-child(4) {
    color: var(--accent-cyan);
}

.head-to-head-table td {
    padding: 1.1rem 1.5rem;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--glass-border);
}

.head-to-head-table tr:last-child td {
    border-bottom: none;
}

.head-to-head-table tr:hover {
    background: rgba(255, 255, 255, 0.01);
}

.comparison-indicator-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    margin-top: 4px;
}

.comp-bar-fill {
    height: 100%;
    border-radius: 4px;
}

.comp-bar-fill.entity-a {
    background: var(--accent-primary);
    float: left;
}

.comp-bar-fill.entity-b {
    background: var(--accent-cyan);
    float: right;
}

.win-text-left {
    color: var(--accent-emerald);
    font-weight: 600;
}

.win-text-right {
    color: var(--accent-cyan);
    font-weight: 600;
}


/* VIEW 5: CRAWLER / COLD START CONSOLE */
.crawler-interface-grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 1.5rem;
    align-items: stretch;
    height: calc(100vh - 160px);
}

.crawler-config-card {
    padding: 1.5rem;
}

.crawler-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1rem;
}

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

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.form-group input[type="text"],
.form-group select {
    background: rgba(10, 14, 28, 0.8);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    outline: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.form-group input[type="text"]:focus,
.form-group select:focus {
    border-color: var(--accent-primary);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.75rem;
    color: var(--text-muted);
    user-select: none;
}

.checkbox-wrapper input[type="checkbox"] {
    accent-color: var(--accent-primary);
    width: 14px;
    height: 14px;
}

/* Range input */
.form-group input[type="range"] {
    accent-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.05);
    height: 6px;
    border-radius: 4px;
    outline: none;
}

.range-val-display {
    font-size: 0.75rem;
    color: var(--accent-cyan);
    font-weight: 600;
    text-align: right;
}

/* Terminal Console styling */
.crawler-console-card {
    background: #04060c;
    border: 1px solid #111827;
    position: relative;
    display: flex;
    flex-direction: column;
}

.crawler-console-card .card-header {
    background: #070a14;
    border-bottom: 1px solid #111827;
}

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

.terminal-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-dots .dot.red {
    background: #ef4444;
}

.terminal-dots .dot.yellow {
    background: #f59e0b;
}

.terminal-dots .dot.green {
    background: #10b981;
}

.console-body {
    flex-grow: 1;
    padding: 1.5rem;
    font-family: 'Consolas', 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    color: #38bdf8;
    /* Light Cyan console text */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    scroll-behavior: smooth;
    max-height: calc(100vh - 290px);
}

.console-line {
    line-height: 1.4;
    word-break: break-all;
}

.console-line.system-line {
    color: #64748b;
}

.console-line.info-line {
    color: #a7f3d0;
}

.console-line.success-line {
    color: #34d399;
}

.console-line.warn-line {
    color: #fbbf24;
}

.console-line.error-line {
    color: #f87171;
}

.console-line.input-line {
    color: #e2e8f0;
}

.console-line.blink::after {
    content: '█';
    animation: blinkCursor 0.8s infinite;
}

@keyframes blinkCursor {
    50% {
        opacity: 0;
    }
}

/* Console Progress area */
.crawler-progress-area {
    padding: 1.25rem 1.5rem;
    background: #070a14;
    border-top: 1px solid #111827;
}

.progress-info-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.progress-bar-track {
    width: 100%;
    height: 8px;
    background: #111827;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-cyan) 100%);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
    transition: width 0.1s linear;
}

/* Sidebar Info Box & Dynamic Use Cases */
.sidebar-info-box {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.01);
}

.info-box-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--text-dimmed);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-box-content {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* Switch Toggle Styling */
.switch-toggle input:checked+.slider-toggle {
    background-color: var(--accent-primary) !important;
}

.switch-toggle .slider-toggle:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

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

/* Landing Screen Layout */
.landing-container {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    max-width: 1200px;
    width: 92%;
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 25px 70px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    animation: fadeScaleIn 0.5s ease-out;
}

.landing-info-pane {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--glass-border);
    text-align: left;
}

.landing-heading {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-main);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.landing-subheading {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 580px;
}

.landing-usecases-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.landing-usecase-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    text-align: left;
}

.uc-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--accent-primary-glow);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.landing-usecase-card:nth-child(2) .uc-icon {
    background: var(--accent-amber-glow);
    color: var(--accent-amber);
}

.landing-usecase-card:nth-child(3) .uc-icon {
    background: var(--accent-emerald-glow);
    color: var(--accent-emerald);
}

.landing-usecase-card:nth-child(4) .uc-icon {
    background: var(--accent-cyan-glow);
    color: var(--accent-cyan);
}

.uc-meta h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.uc-meta p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Right Portal Card Styles */
.landing-action-card {
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
    text-align: left;
}

.portal-choices {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.portal-choice-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    cursor: pointer;
    background: #ffffff;
    transition: var(--transition-smooth);
    position: relative;
}

.portal-choice-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-primary);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.06);
}

.pc-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.25rem;
    flex-shrink: 0;
}

.pc-icon.brand-theme {
    background: var(--accent-primary-glow);
    color: var(--accent-primary);
}

.pc-icon.consumer-theme {
    background: var(--accent-cyan-glow);
    color: var(--accent-cyan);
}

.pc-icon.admin-theme {
    background: var(--accent-emerald-glow);
    color: var(--accent-emerald);
}

.pc-meta {
    flex-grow: 1;
}

.pc-meta h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.pc-meta p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.pc-arrow {
    color: var(--text-dimmed);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
}

.portal-choice-card:hover .pc-arrow {
    color: var(--accent-primary);
    transform: translateX(4px);
}

.landing-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.75rem 0;
    color: var(--text-dimmed);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.landing-divider::before,
.landing-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--glass-border);
}

.landing-divider:not(:empty)::before {
    margin-right: .5em;
}

.landing-divider:not(:empty)::after {
    margin-left: .5em;
}

/* Responsive Landing Page */
@media (max-width: 992px) {
    .landing-container {
        grid-template-columns: 1fr;
        max-width: 600px;
    }

    .landing-info-pane {
        padding: 2.5rem;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }

    .landing-action-card {
        padding: 2.5rem;
    }
}

/* Responsive / Overflow Fixes for Mentions Dashboard Card */
.mentions-card .card-header {
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mentions-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.platform-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.01);
}

/* Responsive Layout Media Queries */
@media (max-width: 1024px) {

    .dashboard-grid,
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .grid-col-4,
    .grid-col-5,
    .grid-col-6,
    .grid-col-7,
    .grid-col-8,
    .grid-col-12 {
        grid-column: span 12 / span 12;
    }


    .crawler-interface-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
}

@media (max-width: 768px) {
    .app-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        padding: 1rem 1.5rem;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }

    .logo-container {
        margin-bottom: 1rem;
    }

    .nav-menu {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .nav-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        width: auto;
    }

    .sidebar-info-box {
        display: none;
    }

    .sidebar-footer {
        display: none;
    }

    .main-content {
        padding: 1.5rem 1rem;
        height: auto;
        overflow-y: visible;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .header-right {
        width: 100%;
        justify-content: flex-start;
    }
}

.entity-badge.creator {
    background: rgba(236, 72, 153, 0.12) !important;
    color: #ec4899 !important;
    border: 1px solid rgba(236, 72, 153, 0.3) !important;
}

.entity-badge.person {
    background: rgba(245, 158, 11, 0.12) !important;
    color: #f59e0b !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
}

.entity-badge.url {
    background: rgba(16, 185, 129, 0.12) !important;
    color: #10b981 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

.autocomplete-item-type.creator {
    background: rgba(236, 72, 153, 0.08);
    color: #f472b6;
    border: 1px solid rgba(244, 114, 182, 0.2);
}

.autocomplete-item-type.person {
    background: rgba(245, 158, 11, 0.08);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.autocomplete-item-type.url {
    background: rgba(16, 185, 129, 0.08);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.2);
}

/* Intelligence Hub Utilities */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.score-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.score-badge.pos {
    background: rgba(16, 185, 129, 0.12);
    color: var(--accent-emerald);
}

.score-badge.neu {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}

.score-badge.neg {
    background: rgba(239, 68, 68, 0.12);
    color: var(--accent-rose);
}

/* --- Premium Landing Page Design System --- */

.landing-nav-bar {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 3rem;
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

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

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

.nav-link-item {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.nav-link-item:hover {
    color: var(--accent-primary);
}

/* Hero Section */
.landing-hero-section {
    padding: 6rem 2rem 5rem 2rem;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.08) 0%, rgba(248, 250, 252, 0) 70%);
}

.hero-content-wrapper {
    max-width: 850px;
    margin: 0 auto;
}

.hero-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.08);
    color: #6366f1;
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.hero-main-title {
    font-family: var(--font-heading);
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-main);
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-subtext {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-large {
    padding: 0.85rem 2rem;
    font-size: 0.95rem;
}

/* Features grid styling */
.landing-features-section {
    padding: 5rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header-centered {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.features-custom-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.feature-detail-card {
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-detail-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.05);
}

.feat-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-detail-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.feat-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.feat-need-badge {
    font-size: 0.68rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--accent-rose);
    background: rgba(220, 38, 38, 0.08);
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.feat-need-text {
    font-size: 0.78rem;
    color: var(--text-dimmed);
    line-height: 1.4;
}

/* Why Needed section */
.landing-why-needed-section {
    padding: 6rem 3rem;
    background: rgba(241, 245, 249, 0.5);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.why-needed-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.why-needed-text h2 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1.25rem;
}

.why-needed-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.why-needed-stats {
    display: flex;
    gap: 3rem;
}

.wn-stat {
    display: flex;
    flex-direction: column;
}

.wn-num {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--accent-primary);
}

.wn-lbl {
    font-size: 0.78rem;
    color: var(--text-dimmed);
    margin-top: 0.25rem;
}

/* NLP Section */
.landing-nlp-section {
    padding: 6rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nlp-details-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1020px;
    margin: 0 auto;
    text-align: center;
}

.nlp-details-text {
    width: 100%;
}

.nlp-details-text h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.nlp-details-text p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.nlp-rules-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    text-align: left;
}

.nlp-rule-card {
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.75rem;
    min-height: 310px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04), 0 14px 35px rgba(15, 23, 42, 0.05);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.nlp-rule-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06), 0 20px 48px rgba(15, 23, 42, 0.08);
    border-color: rgba(99, 102, 241, 0.25);
}

.nlp-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.nlp-card-icon i {
    width: 20px;
    height: 20px;
}

.nlp-card-kicker {
    color: var(--text-dimmed);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.45rem;
}

.nlp-rule-card h4 {
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 0.75rem;
}

.nlp-rule-card p {
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.6;
    margin: 0 0 1rem;
}

.nlp-rule-card code {
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-weight: bold;
}

.nlp-card-chip {
    align-self: flex-start;
    margin-top: auto;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.08);
    color: #4f46e5;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.45rem 0.7rem;
}

.nlp-card-chip.danger {
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
}

.nlp-card-chip.success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.code-terminal {
    background: #070a13;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Validation section */
.landing-validation-section {
    padding: 5rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.table-card {
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.validation-table th {
    font-weight: 700;
    padding: 1rem;
    color: var(--text-dimmed);
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
}

.validation-table td {
    padding: 1.25rem 1rem;
    color: var(--text-muted);
}

.validation-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.02);
}

/* Login Modal & Drawers */
.login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.25s ease-out;
}

.login-modal-content {
    background: #ffffff;
    width: 90%;
    max-width: 460px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    padding: 1rem;
    position: relative;
    box-shadow: 0 25px 70px rgba(15, 23, 42, 0.15);
    animation: fadeScaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.login-modal-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    font-size: 1.75rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}

.login-modal-close-btn:hover {
    color: var(--text-main);
}

/* Export Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.25s ease-out;
}

.modal-content {
    background: var(--bg-primary);
    width: 90%;
    max-width: 400px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    position: relative;
    box-shadow: 0 25px 70px rgba(15, 23, 42, 0.15);
    animation: fadeScaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-title {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    text-align: center;
}

.format-options {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeScaleIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

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

@media (max-width: 992px) {

    .features-custom-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .why-needed-container,
    .nlp-details-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .nlp-rules-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }

    .nlp-rule-card {
        min-height: auto;
    }

    .landing-nav-bar {
        padding: 1rem 1.5rem;
    }

    .nav-links a:not(.btn) {
        display: none;
    }
}

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

    .landing-nlp-section {
        padding: 4rem 1.25rem;
    }

    .nlp-rule-card {
        padding: 1rem;
    }
}

/* Export Report Dropdown Menu */
.export-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.export-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: #ffffff !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15) !important;
    z-index: 1000 !important;
    width: 160px !important;
    padding: 0.35rem 0 !important;
    display: flex;
    flex-direction: column;
}

.export-dropdown.hidden {
    display: none !important;
}

.export-dropdown button {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    background: none !important;
    border: none !important;
    color: #0f172a !important;
    font-size: 0.8rem !important;
    font-family: 'Inter', sans-serif !important;
    text-align: left !important;
    cursor: pointer !important;
    transition: background 0.2s ease, color 0.2s ease !important;
}

.export-dropdown button:hover {
    background: #f1f5f9 !important;
    color: var(--accent-primary) !important;
}

/* Refined light platform theme */
:root {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #eef2f7;
    --glass-bg: rgba(255, 255, 255, 0.82);
    --glass-border: rgba(15, 23, 42, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.72);
    --border-active: rgba(124, 58, 237, 0.34);
    --accent-primary: #7c3aed;
    --accent-primary-hover: #6d28d9;
    --accent-primary-active: #5b21b6;
    --accent-primary-glow: rgba(124, 58, 237, 0.1);
    --accent-cyan: #0891b2;
    --accent-cyan-glow: rgba(8, 145, 178, 0.1);
    --accent-emerald: #047857;
    --accent-emerald-glow: rgba(4, 120, 87, 0.1);
    --accent-amber: #b45309;
    --accent-amber-glow: rgba(180, 83, 9, 0.12);
    --accent-rose: #be123c;
    --accent-rose-glow: rgba(190, 18, 60, 0.1);
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-dimmed: #64748b;
    --bg-dark: #ffffff;
}

body {
    background:
        radial-gradient(ellipse at 12% -10%, rgba(124, 58, 237, 0.12), transparent 34%),
        radial-gradient(ellipse at 90% 0%, rgba(8, 145, 178, 0.1), transparent 30%),
        linear-gradient(180deg, #fbfdff 0%, #f4f7fb 45%, #eef3f8 100%);
}

.auth-screen-wrapper,
.onboard-screen-wrapper,
.main-content {
    background: transparent;
}

.sidebar,
.landing-nav-bar {
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(15, 23, 42, 0.09);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04), 0 16px 40px rgba(15, 23, 42, 0.06);
}

.landing-container,
.landing-info-pane,
.landing-action-card,
.feature-detail-card,
.table-card,
.login-modal-content,
.modal-content,
.export-dropdown,
.portal-choice-card,
.selector-container,
.comparison-selectors-bar,
.glass,
.card,
.stats-card,
.auth-card,
.onboard-card,
.visual-card,
.sandbox-widget {
    background: rgba(255, 255, 255, 0.86) !important;
    border-color: rgba(15, 23, 42, 0.09) !important;
    color: var(--text-main);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 14px 36px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255,255,255,0.75);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.landing-info-pane {
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.94), rgba(241, 245, 249, 0.9)) !important;
}

.landing-hero-section {
    background: radial-gradient(ellipse at 50% 0%, rgba(124, 58, 237, 0.12) 0%, transparent 64%);
}

.landing-why-needed-section {
    background: rgba(241, 245, 249, 0.72);
    border-top: 1px solid rgba(15,23,42,0.08);
    border-bottom: 1px solid rgba(15,23,42,0.08);
}

.hero-title,
.hero-main-title {
    background: linear-gradient(135deg, #0f172a 12%, #334155 52%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-icon {
    background: linear-gradient(135deg, #581c87 0%, #7c3aed 48%, #c084fc 100%);
    color: #FFFFFF;
    border: 1px solid rgba(255,255,255,0.34);
    box-shadow: 0 8px 22px rgba(124, 58, 237, 0.3), 0 0 0 1px rgba(46, 16, 101, 0.24), inset 0 1px 0 rgba(255,255,255,0.38);
    text-shadow: 0 2px 5px rgba(46, 16, 101, 0.9), 0 0 1px rgba(46, 16, 101, 0.95);
}

.btn-primary,
.search-tab.active,
.search-action-btn,
.switch-toggle input:checked+.slider-toggle {
    background: linear-gradient(145deg, #7c3aed 0%, #6d28d9 100%);
    color: #FFFFFF;
    box-shadow: 0 1px 2px rgba(15,23,42,0.16), 0 8px 20px rgba(124, 58, 237, 0.22), inset 0 1px 0 rgba(255,255,255,0.2);
    border: 1px solid rgba(109, 40, 217, 0.55);
    text-shadow: none;
}

.btn-primary:hover:not(:disabled),
.search-action-btn:hover {
    background: linear-gradient(145deg, #6d28d9 0%, #5b21b6 100%);
    box-shadow: 0 2px 5px rgba(15,23,42,0.16), 0 12px 28px rgba(124, 58, 237, 0.25), inset 0 1px 0 rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.btn-primary:active:not(:disabled),
.search-action-btn:active {
    background: var(--accent-primary-active);
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2), 0 2px 8px rgba(99, 102, 241, 0.25);
}

.btn-outline,
.tag-btn,
.search-tabs,
.auth-tabs,
.search-input-wrapper,
.autocomplete-dropdown,
.onboard-opt-card,
.profile-avatar,
.platform-filter-bar {
    background: rgba(248, 250, 252, 0.92);
    border-color: rgba(15, 23, 42, 0.1);
    color: var(--text-main);
}

.btn-outline:hover,
.tag-btn:hover,
.portal-choice-card:hover,
.feature-detail-card:hover,
.onboard-opt-card:hover {
    border-color: rgba(124, 58, 237, 0.28) !important;
    background: #ffffff !important;
    color: var(--text-main);
    box-shadow: 0 12px 30px rgba(124, 58, 237, 0.12) !important;
}

.nav-btn:hover:not(:disabled) {
    background: rgba(124, 58, 237, 0.08);
    color: var(--text-main);
}

.nav-btn.active {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(8, 145, 178, 0.08));
    border-color: rgba(124, 58, 237, 0.3);
    color: #5b21b6;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
}

.nav-btn.active i {
    color: #7c3aed;
}

.auth-tab.active,
.onboard-opt-card.selected {
    background: rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.32);
}

input,
select,
textarea,
.form-group input[type="text"],
.form-group select,
.selector-container select {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.14) !important;
    color: var(--text-main) !important;
    box-shadow: inset 0 1px 2px rgba(15,23,42,0.04) !important;
    transition: var(--transition-smooth);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-dimmed) !important;
}

input:focus,
select:focus,
textarea:focus,
.form-group input[type="text"]:focus,
.form-group select:focus,
.selector-container select:focus,
.search-input-wrapper:focus-within {
    border-color: rgba(124, 58, 237, 0.48) !important;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12), inset 0 1px 2px rgba(15,23,42,0.04) !important;
    outline: none;
}

.hero-tag,
.entity-badge,
.header-badge,
.autocomplete-item-type.company {
    background: var(--accent-primary-glow) !important;
    color: #5b21b6 !important;
    border-color: var(--border-active) !important;
}

.autocomplete-item-type.product,
.entity-badge.product {
    background: var(--accent-cyan-glow) !important;
    color: var(--accent-cyan) !important;
    border-color: rgba(34, 211, 238, 0.3) !important;
}

.export-dropdown button {
    color: var(--text-main) !important;
}

.export-dropdown button:hover {
    background: var(--accent-primary-glow) !important;
    color: var(--accent-primary) !important;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.04);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.32);
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(124, 58, 237, 0.48);
}

.search-input-wrapper input,
.autocomplete-item-name,
.onboard-opt-card h3 {
    color: var(--text-main);
}

.search-tabs,
.auth-tabs {
    box-shadow: inset 0 1px 2px rgba(15,23,42,0.04);
}

.autocomplete-dropdown,
.export-dropdown {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16) !important;
}

.autocomplete-item:hover {
    background: rgba(124, 58, 237, 0.06);
}

.tag-btn:hover {
    color: var(--accent-primary);
}

.entity-hierarchy-link:hover {
    color: #0e7490;
    background: rgba(8, 145, 178, 0.14);
}

.plat-pill {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.1);
    color: var(--text-muted);
}

.plat-pill:hover {
    background: rgba(124, 58, 237, 0.08);
    border-color: rgba(124, 58, 237, 0.24);
    color: var(--accent-primary);
}

.console-body,
.code-terminal,
.terminal-code {
    background: #0f172a !important;
    color: #dbeafe !important;
}

.score-badge.pos {
    background: rgba(4, 120, 87, 0.1);
    color: #047857;
}

.score-badge.neu {
    background: rgba(180, 83, 9, 0.12);
    color: #92400e;
}

.score-badge.neg {
    background: rgba(190, 18, 60, 0.1);
    color: #be123c;
}

.head-to-head-table th,
.validation-table th {
    color: #334155;
    background: rgba(248, 250, 252, 0.86);
}

.head-to-head-table td,
.validation-table td {
    color: var(--text-muted);
}

.head-to-head-table tr:hover,
.validation-table tbody tr:hover {
    background: rgba(124, 58, 237, 0.04);
}

/* Brand dashboard inner columns responsive wrapping */
@media (max-width: 900px) {
    .brand-dashboard-inner-layout {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }
}

/* Marketing FAQs Accordion */
.marketing-faq-card {
    background: var(--glass-bg);
}

.marketing-faq-section {
    margin-bottom: 2rem;
}

.marketing-faq-section h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.marketing-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100% !important;
}

.marketing-faq-item {
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
    width: 100% !important;
    align-self: stretch !important;
}

.marketing-faq-item:hover {
    border-color: rgba(124, 58, 237, 0.25);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.marketing-faq-item.open {
    border-color: var(--accent-primary);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.05);
}

.marketing-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    padding: 1.25rem 1.5rem;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    transition: var(--transition-smooth);
    outline: none;
}

.marketing-faq-question:hover {
    color: var(--accent-primary);
}

.marketing-faq-question i {
    width: 18px;
    height: 18px;
    color: var(--text-dimmed);
    transition: transform 0.25s ease, color 0.2s ease;
}

.marketing-faq-item.open .marketing-faq-question i {
    transform: rotate(180deg);
    color: var(--accent-primary);
}

.marketing-faq-answer {
    padding: 0 1.5rem 1.25rem 1.5rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    border-top: 1px dashed transparent;
    transition: var(--transition-smooth);
}

.marketing-faq-item.open .marketing-faq-answer {
    border-top-color: var(--glass-border);
}

/* Styled Table in FAQ Answer */
.faq-table-wrap {
    margin-top: 0.75rem;
    overflow-x: auto;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background: #f8fafc;
}

.faq-table-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    text-align: left;
}

.faq-table-wrap th {
    padding: 0.6rem 0.85rem;
    background: #f1f5f9;
    color: var(--text-main);
    font-weight: 600;
    border-bottom: 1px solid var(--glass-border);
}

.faq-table-wrap td {
    padding: 0.6rem 0.85rem;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-muted);
}

.faq-table-wrap tr:last-child td {
    border-bottom: none;
}

/* Navigation Link Toggle Buttons */
.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.nav-link-item {
    text-decoration: none;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    background: transparent;
    border: 1px solid transparent;
}
.nav-link-item:hover, .nav-link-item:focus {
    background: rgba(124, 58, 237, 0.08);
    color: var(--text-main);
    border-color: var(--glass-border);
}
.nav-link-item:active {
    background: rgba(124, 58, 237, 0.15);
    color: var(--accent-primary);
    border-color: var(--border-active);
}

/* Pipeline Step Visualization */
#pipeline-steps-container {
    max-height: 420px;
    overflow-y: auto;
}

.pipeline-pulse {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-primary);
    animation: pipelinePulse 1.2s ease-in-out infinite;
}

@keyframes pipelinePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}
