:root {
    --mclaren-gold: #f3b21b;
    --mclaren-gold-soft: rgba(243, 178, 27, 0.14);
    --bg-main: #08090c;
    --bg-panel: rgba(15, 17, 23, 0.84);
    --bg-panel-strong: rgba(9, 11, 16, 0.94);
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(243, 178, 27, 0.3);
    --text-main: #f5f7fa;
    --text-muted: #98a2b3;
    --success: #24d18f;
    --shadow-main: 0 24px 80px rgba(0, 0, 0, 0.42);
}

body.dashboard-shell {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text-main);
    background:
        radial-gradient(circle at top right, rgba(243, 178, 27, 0.14), transparent 32%),
        radial-gradient(circle at bottom left, rgba(243, 178, 27, 0.1), transparent 24%),
        linear-gradient(140deg, #040507 0%, #0a0d13 45%, #06070a 100%);
    font-family: "Barlow", sans-serif;
}

.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at center, black 45%, transparent 100%);
    pointer-events: none;
}

.bg-glow {
    position: fixed;
    width: 38rem;
    height: 38rem;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    opacity: 0.22;
}

.bg-glow-top {
    top: -12rem;
    right: -10rem;
    background: var(--mclaren-gold);
}

.bg-glow-bottom {
    bottom: -16rem;
    left: -10rem;
    background: #5e697d;
}

.dashboard-nav,
.glass-panel {
    background: linear-gradient(180deg, rgba(17, 20, 28, 0.9), rgba(8, 10, 14, 0.92));
    border: 1px solid var(--line);
    border-radius: 1.35rem;
    box-shadow: var(--shadow-main);
    backdrop-filter: blur(18px);
}

.dashboard-nav {
    padding: 0.85rem 1rem;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 6rem;
    height: 6rem;
    padding: 0;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-eyebrow,
.section-kicker,
.metric-label,
.control-tag {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mclaren-gold);
}

.brand-title,
.hero-title,
.section-title,
.metric-value,
.table-title {
    font-family: "Rajdhani", sans-serif;
    letter-spacing: 0.03em;
}

.brand-title {
    display: block;
    color: var(--text-main);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.nav-cta {
    border-radius: 999px;
    min-width: 8.5rem;
    border-color: rgba(255, 255, 255, 0.16);
}

.nav-cta-primary {
    color: #161616;
    background: var(--mclaren-gold);
    border-color: var(--mclaren-gold);
}

.hero-panel {
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.hero-panel::after {
    content: "";
    position: absolute;
    inset: auto -10% -30% 30%;
    height: 14rem;
    background: linear-gradient(90deg, transparent, rgba(243, 178, 27, 0.22), transparent);
    transform: rotate(-12deg);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5.3rem);
    font-weight: 700;
    line-height: 0.9;
    margin: 0 0 1rem;
}

.hero-copy,
.section-copy,
.control-copy,
.table-copy {
    color: var(--text-muted);
    max-width: 42rem;
}

.hero-copy {
    font-size: 1.02rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.btn-dashboard-primary,
.btn-dashboard-secondary {
    border-radius: 999px;
    padding: 0.8rem 1.35rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.btn-dashboard-primary {
    background: var(--mclaren-gold);
    border: 1px solid var(--mclaren-gold);
    color: #171717;
}

.btn-dashboard-secondary {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-main);
}

.hero-status {
    height: 100%;
    padding: 1.5rem;
}

.status-ring {
    width: 11rem;
    height: 11rem;
    margin: 0 auto 1.25rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, rgba(10, 12, 17, 0.95) 52%, transparent 53%),
        conic-gradient(var(--mclaren-gold) 0 280deg, rgba(255, 255, 255, 0.12) 280deg 360deg);
    box-shadow: inset 0 0 30px rgba(243, 178, 27, 0.08);
}

.status-ring span {
    font-family: "Rajdhani", sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
}

.status-list {
    display: grid;
    gap: 0.9rem;
}

.status-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.status-list-item strong {
    font-size: 1.1rem;
}

.metric-card,
.control-card,
.table-panel {
    position: relative;
    overflow: hidden;
    padding: 1.35rem;
}

.metric-card::before,
.control-card::before,
.table-panel::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--mclaren-gold), transparent);
}

.metric-value {
    font-size: clamp(2.1rem, 4vw, 3.4rem);
    font-weight: 700;
    line-height: 1;
}

.metric-meta {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.section-header {
    margin-bottom: 1.25rem;
}

.control-card {
    height: 100%;
}

.control-card .form-label {
    color: #d2d8e0;
    font-weight: 600;
}

.form-control,
.form-check-input,
.input-group-text {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.form-control:focus,
.form-check-input:focus {
    border-color: rgba(243, 178, 27, 0.7);
    box-shadow: 0 0 0 0.25rem rgba(243, 178, 27, 0.15);
    background-color: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
}

.form-control::placeholder {
    color: #7f8897;
}

.form-check-input:checked {
    background-color: var(--mclaren-gold);
    border-color: var(--mclaren-gold);
}

.control-divider {
    height: 1px;
    margin: 1rem 0 1.15rem;
    background: linear-gradient(90deg, rgba(243, 178, 27, 0.28), transparent);
}

.control-list {
    display: grid;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.control-list strong {
    color: var(--text-main);
    font-weight: 600;
}

.ops-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
}

.ops-step {
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ops-step span {
    display: block;
    color: var(--mclaren-gold);
    font-family: "Rajdhani", sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
}

.ops-step p {
    margin: 0.4rem 0 0;
    color: var(--text-muted);
}

.table-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.table-wrap {
    overflow: auto;
}

.lead-local-filter {
    width: min(100%, 22rem);
}

.table-dashboard {
    min-width: 1120px;
    color: var(--text-main);
    vertical-align: middle;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0 0.55rem;
}

.table-dashboard thead th {
    border-bottom: 0;
    border-bottom-color: var(--line-strong);
    color: var(--mclaren-gold);
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding-bottom: 0.4rem;
}

.table-dashboard tbody tr {
    border-color: transparent;
    background: rgba(255, 255, 255, 0.025);
}

.table-dashboard tbody tr:hover {
    background: rgba(243, 178, 27, 0.06);
}

.table-dashboard a {
    color: #ffffff;
    text-decoration: none;
}

.table-dashboard a:hover {
    color: var(--mclaren-gold);
}

.table-dashboard tbody td {
    padding: 1rem 0.9rem;
    vertical-align: middle;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.table-dashboard tbody td:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1rem 0 0 1rem;
}

.table-dashboard tbody td:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0 1rem 1rem 0;
}

.col-website {
    width: 13%;
}

.col-keyword {
    width: 13%;
}

.col-company {
    width: 20%;
}

.col-contact {
    width: 13%;
}

.col-email {
    width: 19%;
}

.col-status {
    width: 9%;
}

.col-consent {
    width: 7%;
}

.col-last-action {
    width: 16%;
}

.site-chip,
.compact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    width: 100%;
}

.site-icon,
.compact-link-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.85rem;
    background: linear-gradient(145deg, rgba(243, 178, 27, 0.18), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(243, 178, 27, 0.18);
    position: relative;
    overflow: hidden;
    color: var(--text-main);
    font-family: "Rajdhani", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
}

.site-initial {
    opacity: 0.65;
}

.site-favicon {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0.38rem;
    object-fit: contain;
    background: rgba(8, 10, 14, 0.88);
}

.site-meta,
.compact-link-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.site-domain,
.compact-link-domain,
.lead-email,
.lead-truncate {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-domain,
.compact-link-title {
    font-weight: 700;
}

.site-url-note,
.compact-link-domain {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.keyword-pill,
.consent-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.keyword-pill {
    color: #f6e1aa;
    font-size: 0.84rem;
    font-weight: 600;
}

.lead-email {
    color: #dce5ef;
}

.lead-truncate {
    color: var(--text-main);
}

.consent-badge {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.consent-yes {
    color: #0a1b12;
    background: rgba(36, 209, 143, 0.92);
    border-color: rgba(36, 209, 143, 0.92);
}

.consent-no {
    color: #f5c2c7;
    background: rgba(220, 53, 69, 0.14);
    border-color: rgba(220, 53, 69, 0.3);
}

.consent-unknown {
    color: var(--text-muted);
}

.lead-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.status-badge.status-sent {
    color: #08150f;
    background: rgba(36, 209, 143, 0.9);
    border-color: rgba(36, 209, 143, 0.9);
}

.status-badge.status-enriched {
    color: #161616;
    background: rgba(243, 178, 27, 0.92);
    border-color: rgba(243, 178, 27, 0.92);
}

.status-badge.status-discovered {
    color: #dce5ef;
}

.mini-note {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.toast {
    min-width: 21rem;
}

.toast-error {
    border: 1px solid rgba(220, 53, 69, 0.4) !important;
}

@media (max-width: 991.98px) {
    .ops-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-panel {
        padding: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .dashboard-nav .container-fluid {
        gap: 1rem;
    }

    .brand-title {
        font-size: 1.2rem;
    }

    .hero-title {
        font-size: 2.35rem;
    }

    .ops-strip {
        grid-template-columns: 1fr;
    }

    .table-tools {
        align-items: stretch;
    }

    .table-tools > * {
        width: 100%;
    }

    .lead-local-filter {
        max-width: none;
        width: 100%;
    }

    .lead-pagination {
        flex-direction: column;
        align-items: stretch;
    }

    .table-dashboard {
        min-width: 980px;
    }
}
