/* ══════════════════════════════════════════════════════════════
   BEAKONR SURFACE — Design System
   Based on mockup-v3.html with Surface=blue/cyan accent
   ══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
    /* Background layers */
    --bg: #0a0e17;
    --bg2: #111827;
    --bg3: #1a2234;
    --bg3h: #1f2a40;
    --bgs: #0d1321;

    /* Borders */
    --bd: #1e2d45;
    --bdl: #2a3a55;

    /* Text */
    --t1: #e8ecf4;
    --t2: #8899b4;
    --t3: #556680;

    /* Accent — Surface Beakon = blue/cyan */
    --ac: #3b82f6;
    --acg: rgba(59, 130, 246, 0.15);
    --ach: #5b9cf7;

    /* Semantic colors */
    --g: #22c55e;
    --gb: rgba(34, 197, 94, 0.1);
    --gbd: rgba(34, 197, 94, 0.3);
    --y: #eab308;
    --yb: rgba(234, 179, 8, 0.1);
    --ybd: rgba(234, 179, 8, 0.3);
    --o: #f97316;
    --ob: rgba(249, 115, 22, 0.1);
    --obd: rgba(249, 115, 22, 0.3);
    --r: #ef4444;
    --rb: rgba(239, 68, 68, 0.1);
    --rbd: rgba(239, 68, 68, 0.3);
    --p: #a855f7;
    --pb: rgba(168, 85, 247, 0.1);
    --c: #06b6d4;
    --cb: rgba(6, 182, 212, 0.1);

    /* Spacing */
    --sw: 256px;
    --rd: 8px;
    --rl: 12px;
}

/* ── Reset ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'DM Sans', sans-serif; background: var(--bg); color: var(--t1); min-height: 100vh; }
.app-container { display: flex; min-height: 100vh; }

/* ══════════════════════════════════════════════════════════════
   SIDEBAR
   ══════════════════════════════════════════════════════════════ */

.sidebar {
    width: var(--sw);
    background: var(--bgs);
    border-right: 1px solid var(--bd);
    position: fixed;
    top: 0; left: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    z-index: 100;
    overflow-y: auto;
}

.sidebar-logo {
    padding: 22px 18px;
    border-bottom: 1px solid var(--bd);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.sidebar-logo-icon {
    width: 34px; height: 34px;
    background: linear-gradient(135deg, var(--ac), var(--c));
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700; font-size: 15px; color: #fff;
}

.sidebar-logo-text {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700; font-size: 17px; letter-spacing: -0.5px;
}

.sidebar-version {
    font-size: 10px; color: var(--t3);
    font-family: 'JetBrains Mono', monospace;
    margin-left: auto;
}

.sidebar-section { padding: 14px 10px 6px; }

.sidebar-label {
    font-size: 10px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--t3); padding: 0 8px; margin-bottom: 6px;
}

.sidebar-item {
    display: flex; align-items: center; gap: 9px;
    padding: 9px 12px; border-radius: var(--rd);
    cursor: pointer; transition: all .15s;
    color: var(--t2); font-size: 13px; font-weight: 500;
    position: relative; text-decoration: none;
}

.sidebar-item:hover { background: rgba(59, 130, 246, .08); color: var(--t1); }

.sidebar-item.active {
    background: var(--acg); color: var(--ac);
}

.sidebar-item.active::before {
    content: '';
    position: absolute; left: 0; top: 4px; bottom: 4px;
    width: 3px; background: var(--ac);
    border-radius: 0 3px 3px 0;
}

.sidebar-item .icon {
    width: 18px; text-align: center; font-size: 14px; flex-shrink: 0;
}

.sidebar-badge {
    margin-left: auto;
    font-size: 10px; font-weight: 700;
    padding: 2px 7px; border-radius: 10px;
    font-family: 'JetBrains Mono', monospace;
    background: var(--o); color: #fff;
}

.sidebar-beakon-header {
    display: flex; align-items: center; gap: 9px;
    padding: 9px 12px; border-radius: var(--rd);
    cursor: pointer; transition: all .15s;
    color: var(--t2); font-size: 13px; font-weight: 600;
}

.sidebar-beakon-header:hover { background: rgba(59, 130, 246, .08); color: var(--t1); }

.sidebar-dot {
    width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}

.sidebar-dot-active { background: var(--y); box-shadow: 0 0 6px var(--y); }
.sidebar-dot-off { background: var(--bd); }

.sidebar-chevron {
    margin-left: auto; font-size: 9px;
    transition: transform .2s;
}

.sidebar-beakon-header.expanded .sidebar-chevron { transform: rotate(90deg); }

.sidebar-children { display: none; padding-left: 18px; }
.sidebar-children.expanded { display: block; }
.sidebar-children .sidebar-item { font-size: 12.5px; padding: 7px 12px; }

.sidebar-soon {
    margin-left: auto; font-size: 9px;
    color: var(--t3); letter-spacing: 1px;
}

.sidebar-footer {
    margin-top: auto;
    padding: 14px 10px;
    border-top: 1px solid var(--bd);
}

.sidebar-user {
    display: flex; align-items: center; gap: 9px;
    padding: 8px; border-radius: var(--rd); cursor: pointer;
}

.sidebar-user:hover { background: rgba(255, 255, 255, .04); }

.sidebar-avatar {
    width: 30px; height: 30px; border-radius: 7px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 11px; color: #fff;
}

.sidebar-user-name { font-size: 12.5px; font-weight: 600; }
.sidebar-user-role { font-size: 10.5px; color: var(--t3); }

/* ══════════════════════════════════════════════════════════════
   MAIN CONTENT
   ══════════════════════════════════════════════════════════════ */

.main-content {
    margin-left: var(--sw);
    flex: 1;
    min-height: 100vh;
}

.page-header {
    padding: 24px 28px 18px;
    border-bottom: 1px solid var(--bd);
    background: var(--bg);
    position: sticky; top: 0; z-index: 50;
}

.page-breadcrumb {
    font-size: 11.5px; color: var(--t3);
    margin-bottom: 6px;
    font-family: 'JetBrains Mono', monospace;
}

.page-breadcrumb span { color: var(--t2); }

.page-header-row {
    display: flex; align-items: center; justify-content: space-between;
}

.page-title { font-size: 20px; font-weight: 700; letter-spacing: -.3px; }
.page-subtitle { font-size: 12.5px; color: var(--t2); margin-top: 3px; }

.page-actions { display: flex; gap: 8px; }
.page-body { padding: 22px 28px; }

/* ══════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════ */

.btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 14px; border-radius: var(--rd);
    font-size: 12.5px; font-weight: 600;
    cursor: pointer; border: none; transition: all .15s;
    font-family: 'DM Sans', sans-serif;
    text-decoration: none;
}

.btn-primary { background: var(--ac); color: #fff; }
.btn-primary:hover { background: var(--ach); }
.btn-secondary { background: transparent; color: var(--t2); border: 1px solid var(--bd); }
.btn-secondary:hover { border-color: var(--bdl); color: var(--t1); }
.btn-ghost { background: transparent; color: var(--t2); }
.btn-ghost:hover { color: var(--t1); background: rgba(255, 255, 255, .04); }
.btn-sm { padding: 5px 10px; font-size: 11.5px; }
.btn-approve { color: var(--g); }
.btn-approve:hover { background: var(--gb); }
.btn-dismiss { color: var(--t3); }
.btn-dismiss:hover { background: rgba(255, 255, 255, .05); }
.btn-flag { color: var(--r); }
.btn-flag:hover { background: var(--rb); }

/* ══════════════════════════════════════════════════════════════
   STATS GRID
   ══════════════════════════════════════════════════════════════ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--bg3);
    border: 1px solid var(--bd);
    border-radius: var(--rl);
    padding: 18px;
    transition: all .15s;
}

.stat-card:hover { border-color: var(--bdl); background: var(--bg3h); }
.stat-label { font-size: 11px; font-weight: 500; color: var(--t3); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.stat-value { font-family: 'JetBrains Mono', monospace; font-size: 26px; font-weight: 700; line-height: 1; }
.stat-detail { font-size: 11.5px; color: var(--t2); margin-top: 7px; display: flex; align-items: center; gap: 5px; }
.stat-dot { width: 6px; height: 6px; border-radius: 50%; }

/* ══════════════════════════════════════════════════════════════
   BADGES & TAGS
   ══════════════════════════════════════════════════════════════ */

.badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 9px; border-radius: 18px;
    font-size: 10.5px; font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.badge-green { background: var(--gb); color: var(--g); border: 1px solid var(--gbd); }
.badge-yellow { background: var(--yb); color: var(--y); border: 1px solid var(--ybd); }
.badge-orange { background: var(--ob); color: var(--o); border: 1px solid var(--obd); }
.badge-red { background: var(--rb); color: var(--r); border: 1px solid var(--rbd); }
.badge-purple { background: var(--pb); color: var(--p); border: 1px solid rgba(168, 85, 247, .3); }
.badge-cyan { background: var(--cb); color: var(--c); border: 1px solid rgba(6, 182, 212, .3); }

.tag {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 2px 7px; border-radius: 4px;
    font-size: 10.5px; font-weight: 500;
    background: rgba(255, 255, 255, .05);
    color: var(--t3); border: 1px solid var(--bd);
}

.tag-ct { background: var(--cb); color: var(--c); border-color: rgba(6, 182, 212, .3); }
.tag-shodan { background: var(--pb); color: var(--p); border-color: rgba(168, 85, 247, .3); }
.tag-manual { background: rgba(255, 255, 255, .05); color: var(--t2); }
.tag-cdn { background: var(--ob); color: var(--o); border-color: var(--obd); }

/* ══════════════════════════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════════════════════════ */

.card {
    background: var(--bg3);
    border: 1px solid var(--bd);
    border-radius: var(--rl);
    overflow: hidden;
}

.card-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--bd);
    display: flex; align-items: center; justify-content: space-between;
}

.card-header h3 { font-size: 13.5px; font-weight: 600; }
.card-body { padding: 18px; }

/* ══════════════════════════════════════════════════════════════
   TABLES
   ══════════════════════════════════════════════════════════════ */

table { width: 100%; border-collapse: collapse; }

th {
    text-align: left; padding: 10px 14px;
    font-size: 10.5px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .5px;
    color: var(--t3);
    border-bottom: 1px solid var(--bd);
    background: rgba(0, 0, 0, .2);
    white-space: nowrap;
}

td {
    padding: 12px 14px; font-size: 12.5px;
    color: var(--t2);
    border-bottom: 1px solid var(--bd);
    white-space: nowrap;
}

tr { cursor: pointer; transition: background .1s; }
tr:hover td { background: rgba(59, 130, 246, .04); }
td:first-child { color: var(--t1); font-weight: 500; }

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

/* ══════════════════════════════════════════════════════════════
   ACTION BANNER
   ══════════════════════════════════════════════════════════════ */

.action-banner {
    border-radius: var(--rl);
    padding: 20px 24px;
    margin-bottom: 20px;
    display: flex; align-items: center; gap: 18px;
}

.action-banner-critical {
    background: linear-gradient(135deg, rgba(239, 68, 68, .08), rgba(249, 115, 22, .06));
    border: 1px solid rgba(239, 68, 68, .2);
}

.action-banner-ok {
    background: linear-gradient(135deg, rgba(34, 197, 94, .06), rgba(6, 182, 212, .04));
    border: 1px solid rgba(34, 197, 94, .2);
}

.action-banner-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; flex-shrink: 0;
}

.action-banner-critical .action-banner-icon { background: rgba(239, 68, 68, .15); }
.action-banner-ok .action-banner-icon { background: rgba(34, 197, 94, .15); }

.action-banner-content { flex: 1; }
.action-banner-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.action-banner-desc { font-size: 12.5px; color: var(--t2); line-height: 1.5; }
.action-banner-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════════
   INBOX ITEMS
   ══════════════════════════════════════════════════════════════ */

.inbox-section { margin-bottom: 16px; }

.inbox-section-header {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 0; margin-bottom: 4px;
}

.inbox-section-dot { width: 8px; height: 8px; border-radius: 50%; }

.inbox-section-label {
    font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .5px;
}

.inbox-section-count {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px; color: var(--t3);
}

.inbox-item {
    display: flex; align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--bd);
    transition: background .15s;
    gap: 14px;
}

.inbox-item:hover { background: rgba(59, 130, 246, .03); }
.inbox-item:last-child { border-bottom: none; }

.inbox-item-critical { border-left: 3px solid var(--r); }
.inbox-item-attention { border-left: 3px solid var(--o); }
.inbox-item-routine { border-left: 3px solid var(--bdl); }

.inbox-item-content { flex: 1; min-width: 0; }

.inbox-item-name {
    font-size: 13.5px; font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.inbox-item-details {
    font-size: 11.5px; color: var(--t3);
    margin-top: 3px;
    display: flex; align-items: center; gap: 10px;
    flex-wrap: wrap;
}

.inbox-item-actions { display: flex; gap: 5px; flex-shrink: 0; }

.inbox-checkbox {
    width: 16px; height: 16px;
    border: 2px solid var(--bdl);
    border-radius: 3px;
    cursor: pointer; flex-shrink: 0;
    transition: all .15s;
    display: flex; align-items: center; justify-content: center;
}

.inbox-checkbox:hover { border-color: var(--ac); }
.inbox-checkbox.checked { background: var(--ac); border-color: var(--ac); }

/* ══════════════════════════════════════════════════════════════
   DOMAIN CARDS
   ══════════════════════════════════════════════════════════════ */

.domain-card-compact {
    background: var(--bg3);
    border: 1px solid var(--bd);
    border-radius: var(--rl);
    padding: 14px 18px;
    margin-bottom: 8px;
    display: flex; align-items: center; gap: 16px;
    cursor: pointer; transition: all .15s;
}

.domain-card-compact:hover { border-color: var(--bdl); background: var(--bg3h); }

.domain-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px; font-weight: 700;
    min-width: 180px;
}

.domain-stats {
    display: flex; align-items: center; gap: 16px; flex: 1;
}

.domain-stat-item {
    font-size: 12px; color: var(--t2);
    display: flex; align-items: center; gap: 5px;
}

.domain-stat-dot { width: 6px; height: 6px; border-radius: 50%; }

.domain-card-expanded {
    background: var(--bg3);
    border: 1px solid var(--bdl);
    border-radius: var(--rl);
    padding: 18px;
    margin-bottom: 8px;
}

.domain-expanded-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px; cursor: pointer;
}

.domain-expanded-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 15px; font-weight: 700;
}

.domain-expanded-metrics { display: flex; gap: 20px; }

.domain-metric { text-align: center; }
.domain-metric-label { font-size: 9.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--t3); margin-bottom: 3px; }
.domain-metric-value { font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 600; }

.domain-indicators { display: flex; gap: 10px; }

.domain-indicator {
    flex: 1;
    background: rgba(0, 0, 0, .2);
    border-radius: var(--rd);
    padding: 10px 14px;
    display: flex; align-items: center; gap: 10px;
}

.domain-indicator-icon { font-size: 18px; }
.domain-indicator-label { font-size: 10.5px; color: var(--t3); }
.domain-indicator-value { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 600; margin-top: 2px; }

/* ══════════════════════════════════════════════════════════════
   SIGNAL DETAIL DRAWER
   ══════════════════════════════════════════════════════════════ */

.drawer-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: flex; justify-content: flex-end;
}

.drawer {
    width: 560px;
    background: var(--bg2);
    border-left: 1px solid var(--bd);
    height: 100vh; overflow-y: auto;
    animation: slideIn .25s ease;
}

@keyframes slideIn {
    from { transform: translateX(40px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

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

.drawer-close {
    cursor: pointer; color: var(--t3);
    font-size: 18px; padding: 4px;
    border-radius: 4px;
    transition: all .15s;
}

.drawer-close:hover { color: var(--t1); background: rgba(255, 255, 255, .05); }

.drawer-section { padding: 20px 24px; border-bottom: 1px solid var(--bd); }
.drawer-section-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--t3); margin-bottom: 14px; }

.drawer-field { margin-bottom: 10px; }
.drawer-field-label { font-size: 10.5px; color: var(--t3); margin-bottom: 2px; }
.drawer-field-value { font-family: 'JetBrains Mono', monospace; font-size: 12px; }

/* Timeline */
.timeline-item {
    display: flex; gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--bd);
}

.timeline-item:last-child { border-bottom: none; }

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

.timeline-content { flex: 1; }
.timeline-event { font-size: 12.5px; font-weight: 500; }
.timeline-detail { font-size: 11px; color: var(--t3); margin-top: 2px; }
.timeline-time { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--t3); margin-top: 2px; }
.timeline-verb { font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }

/* ══════════════════════════════════════════════════════════════
   WIZARD / ONBOARDING
   ══════════════════════════════════════════════════════════════ */

.wizard-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(6px);
    z-index: 300;
    display: flex; align-items: center; justify-content: center;
}

.wizard-panel {
    width: 520px;
    background: var(--bg2);
    border: 1px solid var(--bd);
    border-radius: 16px;
    overflow: hidden;
    animation: fadeScaleIn .3s ease;
}

@keyframes fadeScaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.wizard-header { padding: 28px 28px 18px; }

.wizard-steps {
    display: flex; gap: 8px; margin-bottom: 18px;
}

.wizard-step {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--bd); transition: all .2s;
}

.wizard-step.done { background: var(--g); }
.wizard-step.active { background: var(--ac); box-shadow: 0 0 8px var(--ac); }

.wizard-title { font-size: 18px; font-weight: 700; }
.wizard-subtitle { font-size: 12.5px; color: var(--t2); margin-top: 4px; }

.wizard-body { padding: 0 28px 20px; }

.wizard-footer {
    padding: 16px 28px;
    border-top: 1px solid var(--bd);
    display: flex; justify-content: space-between;
}

.wizard-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg);
    border: 1px solid var(--bd);
    border-radius: var(--rd);
    color: var(--t1);
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    outline: none;
    transition: border-color .15s;
}

.wizard-input:focus { border-color: var(--ac); }
.wizard-input::placeholder { color: var(--t3); }

.wizard-select {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg);
    border: 1px solid var(--bd);
    border-radius: var(--rd);
    color: var(--t1);
    font-size: 13px;
    outline: none;
    margin-top: 8px;
    appearance: none;
    cursor: pointer;
}

.wizard-label {
    font-size: 11px; font-weight: 600;
    color: var(--t3); margin-bottom: 6px;
    text-transform: uppercase; letter-spacing: .5px;
}

/* Discovery steps animation */
.discovery-step {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 0;
}

.discovery-step-icon {
    width: 24px; height: 24px;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; flex-shrink: 0;
}

.discovery-step-icon.done { background: rgba(34, 197, 94, .15); color: var(--g); }
.discovery-step-icon.loading { background: rgba(59, 130, 246, .15); color: var(--ac); }
.discovery-step-icon.pending { background: rgba(255, 255, 255, .05); color: var(--t3); }

.discovery-step-name { font-size: 12.5px; }
.discovery-step-count { margin-left: auto; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--t3); }

/* Spinner */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
    width: 14px; height: 14px;
    border: 2px solid var(--bd);
    border-top-color: var(--ac);
    border-radius: 50%;
    animation: spin .6s linear infinite;
}

/* ══════════════════════════════════════════════════════════════
   FILTER BAR
   ══════════════════════════════════════════════════════════════ */

.filter-bar {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 16px; flex-wrap: wrap;
}

.filter-chip {
    padding: 5px 12px;
    border-radius: 18px;
    font-size: 11.5px; font-weight: 500;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--bd);
    color: var(--t2);
    cursor: pointer; transition: all .15s;
}

.filter-chip:hover { border-color: var(--bdl); color: var(--t1); }
.filter-chip.active { background: var(--acg); border-color: var(--ac); color: var(--ac); }

.search-input {
    padding: 6px 12px 6px 32px;
    background: var(--bg);
    border: 1px solid var(--bd);
    border-radius: var(--rd);
    color: var(--t1);
    font-size: 12px;
    outline: none;
    width: 220px;
}

.search-input::placeholder { color: var(--t3); }
.search-input:focus { border-color: var(--ac); }

/* ══════════════════════════════════════════════════════════════
   VERB FLOW
   ══════════════════════════════════════════════════════════════ */

.verb-flow { display: flex; gap: 0; margin-bottom: 20px; }

.verb-step {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 18px;
    background: var(--bg3);
    border: 1px solid var(--bd);
    font-size: 12px; font-weight: 600;
    color: var(--t3);
    cursor: pointer; transition: all .15s;
    flex: 1; justify-content: center;
}

.verb-step:first-child { border-radius: var(--rd) 0 0 var(--rd); }
.verb-step:last-child { border-radius: 0 var(--rd) var(--rd) 0; }
.verb-step:not(:last-child) { border-right: none; }
.verb-step:hover { background: var(--bg3h); color: var(--t1); }
.verb-step.selected { border-color: var(--ac); background: var(--acg); color: var(--ac); }

.verb-count {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px; font-weight: 700;
    padding: 1px 6px; border-radius: 10px;
}

/* ══════════════════════════════════════════════════════════════
   BEAKON CARDS (Suite level)
   ══════════════════════════════════════════════════════════════ */

.beakon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px; margin-bottom: 20px;
}

.beakon-card {
    background: var(--bg3);
    border: 1px solid var(--bd);
    border-radius: var(--rl);
    padding: 22px;
    cursor: pointer; transition: all .2s;
    position: relative; overflow: hidden;
}

.beakon-card:hover {
    border-color: var(--ac);
    background: var(--bg3h);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .3);
}

.beakon-card.disabled {
    opacity: .4; cursor: default;
}

.beakon-card.disabled:hover {
    border-color: var(--bd); background: var(--bg3);
    transform: none; box-shadow: none;
}

.beakon-card-header { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }

.beakon-icon {
    width: 38px; height: 38px;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px;
}

.beakon-icon-surface { background: linear-gradient(135deg, rgba(59, 130, 246, .2), rgba(6, 182, 212, .2)); }
.beakon-icon-health { background: linear-gradient(135deg, rgba(34, 197, 94, .2), rgba(16, 185, 129, .2)); }
.beakon-icon-border { background: linear-gradient(135deg, rgba(239, 68, 68, .2), rgba(249, 115, 22, .2)); }
.beakon-icon-perf { background: linear-gradient(135deg, rgba(236, 72, 153, .2), rgba(244, 114, 182, .2)); }

.beakon-card-name { font-weight: 700; font-size: 15px; }
.beakon-card-status { margin-left: auto; }
.beakon-card-desc { font-size: 12.5px; color: var(--t3); margin-bottom: 18px; line-height: 1.5; }

.beakon-card-stats { display: flex; gap: 22px; }
.beakon-stat-value { font-family: 'JetBrains Mono', monospace; font-size: 18px; font-weight: 700; }
.beakon-stat-label { font-size: 10.5px; color: var(--t3); margin-top: 2px; }
.beakon-soon-badge {
    position: absolute; top: 10px; right: 10px;
    font-size: 9.5px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px;
    color: var(--t3);
    background: rgba(255, 255, 255, .05);
    padding: 2px 7px; border-radius: 4px;
    border: 1px solid var(--bd);
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE (P2 — base breakpoints)
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .sidebar { display: none; }
    .main-content { margin-left: 0; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .beakon-grid { grid-template-columns: 1fr; }
    .domain-indicators { flex-direction: column; }
}

/* ══════════════════════════════════════════════════════════════
   MudBlazor OVERRIDES — match Beakonr dark theme
   ══════════════════════════════════════════════════════════════ */

.mud-dialog-content { background: var(--bg2) !important; }
.mud-snackbar { font-family: 'DM Sans', sans-serif !important; }

/* Hide default MudBlazor drawer since we use custom sidebar */
.mud-drawer-overlay { display: none !important; }

/* ─── Search Input ─── */

.search-input {
    background: var(--bg);
    border: 1px solid var(--bd);
    border-radius: var(--rd);
    padding: 7px 12px;
    font-size: 12.5px;
    color: var(--t1);
    font-family: 'DM Sans', sans-serif;
    min-width: 200px;
    outline: none;
    transition: border-color .15s;
}
.search-input::placeholder { color: var(--t3); }
.search-input:focus { border-color: var(--ac); }

/* ─── Pagination ─── */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 16px 0 4px;
}
.pagination-info {
    font-size: 12px;
    color: var(--t3);
    font-family: 'JetBrains Mono', monospace;
}

/* ─── Discovery Progress ─── */

.discovery-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--bd);
}
.discovery-step:last-child { border-bottom: none; }
.discovery-step-icon {
    width: 22px; height: 22px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700;
    flex-shrink: 0;
}
.discovery-step-icon.done { background: var(--g); color: #fff; }
.discovery-step-icon.loading {
    border: 2px solid var(--ac);
    border-top-color: transparent;
    animation: spin .8s linear infinite;
    color: transparent;
}
.discovery-step-icon.pending { color: var(--t3); font-size: 13px; }
@keyframes spin { to { transform: rotate(360deg); } }
.discovery-step-name { font-size: 13px; flex: 1; }
.discovery-step-count {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--ac);
}

/* ─── Domain Card Warn ─── */
.domain-card-warn { border-left: 3px solid var(--o); }

/* ─── Tab Bar ─── */
.tab-bar {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--bd);
    margin-bottom: 16px;
}
.tab-item {
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--t3);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all .15s;
    display: flex;
    align-items: center;
}
.tab-item:hover { color: var(--t1); }
.tab-item.active {
    color: var(--ac);
    border-bottom-color: var(--ac);
}

/* ─── Badge Orange ─── */
.badge-orange { background: rgba(249,115,22,.12); color: var(--o); }
