/* =====================================================
   INSTACOLLECTOR BASE STYLES v3.0
   Design System — Oplium CTI tokens
   ===================================================== */
:root {
    --op-green:        #00b811;
    --op-green-soft:   #00d177;
    --op-green-glow:   rgba(0, 184, 17, .55);
    --op-blue:         #0575d7;
    --op-blue-soft:    #5ea9ff;
    --op-navy-deep:    #0d0d39;

    --surface-0:  #0a0a0a;
    --surface-1:  #0e0f12;
    --surface-2:  #161616;
    --surface-3:  #1e1e1e;
    --surface-4:  #29292b;

    --text-hi:    #f4f5ee;
    --text-mid:   #adadad;
    --text-low:   #8a8a8a;
    --text-faint: #535656;

    --border-soft:   rgba(255,255,255,.06);
    --border-mid:    rgba(255,255,255,.10);
    --border-strong: rgba(255,255,255,.18);

    --sev-critical: #ff3b3b;
    --sev-high:     #ff7849;
    --sev-medium:   #f5b400;
    --sev-low:      #00b811;
    --sev-info:     #5ea9ff;
    --sev-critical-bg: rgba(255, 59, 59, .12);
    --sev-high-bg:     rgba(255,120, 73, .12);
    --sev-medium-bg:   rgba(245,180,  0, .12);
    --sev-low-bg:      rgba(  0,184, 17, .12);
    --sev-info-bg:     rgba( 94,169,255, .12);

    --status-active:   #00b811;
    --status-inactive: #6b7280;
    --status-pending:  #f5b400;
    --status-blocked:  #ff3b3b;

    --grad-brand: linear-gradient(64deg, #0e0f12 0%, #535656 100%);
    --grad-green: linear-gradient(135deg, #00b811 0%, #00d177 100%);
    --grad-card:  linear-gradient(135deg, rgba(20,20,20,.92), rgba(15,15,15,.92));

    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-card: 0 8px 24px rgba(0,0,0,.35);
    --shadow-glow: 0 0 32px rgba(0,184,17,.18);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0a0a0a;
    color: #f4f5ee;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Background Effects */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(0, 184, 17, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(5, 117, 215, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse 40% 60% at 50% 90%, rgba(168, 85, 247, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Grid Background */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* =====================================================
   HEADER
   ===================================================== */
.header {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #00b811, #00d177);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    color: #000;
}

.logo-text {
    font-size: 18px;
    font-weight: 800;
    color: #f4f5ee;
    letter-spacing: -0.3px;
}

.logo-text span {
    color: #00b811;
}

/* Navigation */
.nav-links {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.nav-links a {
    color: #adadad;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-links a:hover {
    color: #f4f5ee;
    background: rgba(255, 255, 255, 0.05);
}

.nav-links a.active {
    color: #00b811;
    background: rgba(0, 184, 17, 0.1);
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}

.user-name {
    color: #f4f5ee;
    font-size: 13px;
    font-weight: 500;
}

.admin-badge {
    padding: 3px 8px;
    background: linear-gradient(135deg, rgba(0, 184, 17, 0.2), rgba(0, 209, 119, 0.1));
    color: #00b811;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: #9CA3AF;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-decoration: none;
    transition: all 0.2s;
}

.logout-btn:hover {
    color: #ff3b3b;
    background: rgba(255, 59, 59, 0.1);
    border-color: rgba(255, 59, 59, 0.3);
}

/* =====================================================
   CONTAINER
   ===================================================== */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 32px;
    position: relative;
    z-index: 1;
}

/* =====================================================
   HERO / PAGE HEADER
   ===================================================== */
.hero-section,
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 24px;
}

.hero-content,
.page-header-content {
    flex: 1;
}

.page-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(0, 184, 17, 0.15), rgba(0, 184, 17, 0.05));
    border: 1px solid rgba(0, 184, 17, 0.2);
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    color: #00b811;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.page-title {
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(135deg, #FFFFFF 0%, #adadad 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.page-subtitle {
    font-size: 13px;
    color: #535656;
    line-height: 1.5;
    max-width: 500px;
}

/* =====================================================
   STAT CARDS
   ===================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.9), rgba(15, 15, 15, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 18px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color, #00b811), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.stat-card.primary { --accent-color: #00b811; }
.stat-card.danger { --accent-color: #ff3b3b; }
.stat-card.success { --accent-color: #00b811; }
.stat-card.warning { --accent-color: #f5b400; }
.stat-card.info { --accent-color: #0575d7; }
.stat-card.purple { --accent-color: #A855F7; }

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.stat-icon-wrapper {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: linear-gradient(135deg, rgba(0, 184, 17, 0.2), rgba(0, 184, 17, 0.05));
}

.stat-card.danger .stat-icon-wrapper {
    background: linear-gradient(135deg, rgba(255, 59, 59, 0.2), rgba(255, 59, 59, 0.05));
}

.stat-card.success .stat-icon-wrapper {
    background: linear-gradient(135deg, rgba(0, 184, 17, 0.2), rgba(0, 184, 17, 0.05));
}

.stat-card.warning .stat-icon-wrapper {
    background: linear-gradient(135deg, rgba(245, 180, 0, 0.2), rgba(245, 180, 0, 0.05));
}

.stat-card.info .stat-icon-wrapper {
    background: linear-gradient(135deg, rgba(5, 117, 215, 0.2), rgba(5, 117, 215, 0.05));
}

.stat-card.purple .stat-icon-wrapper {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(168, 85, 247, 0.05));
}

.stat-card-value {
    font-size: 26px;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 2px;
    letter-spacing: -1px;
}

.stat-card-label {
    font-size: 13px;
    color: #535656;
    font-weight: 500;
}

/* =====================================================
   PANELS / CARDS
   ===================================================== */
.panel {
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.95), rgba(15, 15, 15, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    overflow: hidden;
}

.panel-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(255, 255, 255, 0.02);
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #f4f5ee;
}

.panel-title-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, rgba(0, 184, 17, 0.2), rgba(0, 184, 17, 0.05));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.panel-content {
    padding: 24px;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #00b811, #00d177);
    border: none;
    border-radius: 12px;
    color: #000;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 184, 17, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 184, 17, 0.4);
}

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

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #f4f5ee;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 59, 59, 0.1);
    border: 1px solid rgba(255, 59, 59, 0.2);
    border-radius: 12px;
    color: #ff3b3b;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-danger:hover {
    background: rgba(255, 59, 59, 0.2);
    border-color: rgba(255, 59, 59, 0.3);
}

.btn-success {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(0, 184, 17, 0.1);
    border: 1px solid rgba(0, 184, 17, 0.2);
    border-radius: 12px;
    color: #00b811;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-success:hover {
    background: rgba(0, 184, 17, 0.2);
    border-color: rgba(0, 184, 17, 0.3);
}

.btn-warning {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(245, 180, 0, 0.1);
    border: 1px solid rgba(245, 180, 0, 0.2);
    border-radius: 12px;
    color: #f5b400;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-warning:hover {
    background: rgba(245, 180, 0, 0.2);
    border-color: rgba(245, 180, 0, 0.3);
}

.btn-sm {
    padding: 8px 14px;
    font-size: 12px;
    border-radius: 8px;
}

/* =====================================================
   FORM ELEMENTS
   ===================================================== */
.form-group {
    margin-bottom: 20px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #f4f5ee;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: rgba(0, 184, 17, 0.4);
    background: rgba(255, 255, 255, 0.06);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #535656;
}

.form-select option {
    background: #161616;
    color: #f4f5ee;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #adadad;
    margin-bottom: 8px;
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

/* =====================================================
   TABLES
   ===================================================== */
.data-table-wrapper {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

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

.data-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.data-table th {
    text-align: left;
    padding: 16px 20px;
    background: rgba(20, 20, 20, 0.98);
    color: #adadad;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    white-space: nowrap;
}

.data-table td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: #f4f5ee;
    font-size: 14px;
    transition: background 0.2s ease;
}

.data-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* =====================================================
   BADGES
   ===================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: linear-gradient(135deg, rgba(0, 184, 17, 0.15), rgba(0, 184, 17, 0.05));
    color: #00b811;
}

.badge-danger {
    background: linear-gradient(135deg, rgba(255, 59, 59, 0.15), rgba(255, 59, 59, 0.05));
    color: #F87171;
}

.badge-warning {
    background: linear-gradient(135deg, rgba(245, 180, 0, 0.15), rgba(245, 180, 0, 0.05));
    color: #f5b400;
}

.badge-info {
    background: linear-gradient(135deg, rgba(5, 117, 215, 0.15), rgba(5, 117, 215, 0.05));
    color: #5ea9ff;
}

.badge-purple {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(168, 85, 247, 0.05));
    color: #C084FC;
}

/* =====================================================
   TOAST NOTIFICATIONS
   ===================================================== */
.toast {
    position: fixed;
    bottom: 32px;
    right: 32px;
    padding: 16px 24px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    border-color: rgba(0, 184, 17, 0.3);
}

.toast.error {
    border-color: rgba(255, 59, 59, 0.3);
}

.toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.toast.success .toast-icon {
    background: rgba(0, 184, 17, 0.15);
}

.toast.error .toast-icon {
    background: rgba(255, 59, 59, 0.15);
}

.toast-message {
    font-size: 14px;
    font-weight: 500;
    color: #f4f5ee;
}

/* =====================================================
   EMPTY STATES
   ===================================================== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    text-align: center;
}

.empty-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin-bottom: 24px;
}

.empty-title {
    font-size: 20px;
    font-weight: 700;
    color: #f4f5ee;
    margin-bottom: 8px;
}

.empty-text {
    font-size: 14px;
    color: #535656;
    max-width: 300px;
    line-height: 1.6;
}

/* =====================================================
   LOADING STATES
   ===================================================== */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    gap: 16px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 184, 17, 0.1);
    border-top-color: #00b811;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-text {
    font-size: 14px;
    color: #535656;
}

/* =====================================================
   FILTER BAR
   ===================================================== */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-bar .form-select,
.filter-bar .form-input {
    width: auto;
    min-width: 200px;
}

/* =====================================================
   SCROLLBAR
   ===================================================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1200px) {
    .container {
        padding: 24px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-section,
    .page-header {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 0 16px;
    }

    .nav-links {
        display: none;
    }

    .container {
        padding: 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 28px;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-bar .form-select,
    .filter-bar .form-input {
        width: 100%;
        min-width: unset;
    }
}

/* =====================================================
   CONTENT WRAPPER (centered narrow layout)
   ===================================================== */
.content-wrapper {
    max-width: 960px;
    margin: 0 auto;
}

/* =====================================================
   MODAL OVERLAY
   ===================================================== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active { display: flex; }

.modal {
    background: #141414;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title { font-size: 18px; font-weight: 700; color: #f4f5ee; }
.modal-close { background: none; border: none; color: #535656; font-size: 24px; cursor: pointer; }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid rgba(255,255,255,0.06); display: flex; gap: 12px; justify-content: flex-end; }

/* =====================================================
   PROGRESS BAR
   ===================================================== */
.progress-bar {
    height: 8px;
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #00b811, #00d177);
    transition: width 0.3s ease;
}

.progress-fill.purple { background: linear-gradient(90deg, #A855F7, #C084FC); }

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #adadad;
    margin-top: 6px;
}

/* =====================================================
   FILTER PANEL
   ===================================================== */
.filters-panel {
    background: linear-gradient(180deg, rgba(20,20,20,0.95), rgba(15,15,15,0.98));
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
}

.filters-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-group label {
    font-size: 11px;
    font-weight: 600;
    color: #adadad;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group .form-input,
.filter-group .form-select {
    width: auto;
    min-width: 160px;
    padding: 10px 14px;
    font-size: 13px;
}

.filter-group input[type="date"] { color-scheme: dark; }

.quick-filters {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.quick-filter {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: #adadad;
    transition: all 0.2s ease;
}

.quick-filter:hover { background: rgba(255,255,255,0.08); color: #f4f5ee; }
.quick-filter.active { background: rgba(0, 184, 17,0.15); border-color: rgba(0, 184, 17,0.3); color: #00b811; }

/* =====================================================
   ACTION GRID (classification buttons)
   ===================================================== */
.action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.action-btn {
    padding: 16px 14px;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    position: relative;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.action-btn.danger { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.25); }
.action-btn.danger:hover { background: rgba(239,68,68,0.15); border-color: #ff3b3b; }
.action-btn.safe { background: rgba(0, 184, 17,0.08); border: 1px solid rgba(0, 184, 17,0.25); }
.action-btn.safe:hover { background: rgba(0, 184, 17,0.15); border-color: #00b811; }
.action-btn.warning { background: rgba(245, 180, 0,0.08); border: 1px solid rgba(245, 180, 0,0.25); }
.action-btn.warning:hover { background: rgba(245, 180, 0,0.15); border-color: #f5b400; }
.action-btn.purple { background: rgba(139,92,246,0.08); border: 1px solid rgba(139,92,246,0.25); }
.action-btn.purple:hover { background: rgba(139,92,246,0.15); border-color: #8B5CF6; }

.action-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.action-btn.danger .action-title { color: #ff3b3b; }
.action-btn.safe .action-title { color: #00b811; }
.action-btn.warning .action-title { color: #f5b400; }
.action-btn.purple .action-title { color: #8B5CF6; }

.action-desc { font-size: 11px; color: #adadad; }

.kbd {
    position: absolute; top: 8px; right: 8px;
    padding: 3px 8px;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    font-size: 10px; font-weight: 600; color: #adadad;
    font-family: monospace;
}

/* =====================================================
   NAV BAR (prev/next navigation)
   ===================================================== */
.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    margin-bottom: 20px;
}

.nav-btn {
    padding: 10px 24px;
    min-width: 100px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    color: #adadad;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.nav-btn:hover:not(:disabled) { background: rgba(255,255,255,0.08); color: #f4f5ee; }
.nav-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.nav-info {
    font-size: 14px;
    color: #adadad;
    font-weight: 500;
    text-align: center;
    flex: 1;
}

/* =====================================================
   LOG SECTION
   ===================================================== */
.log-section {
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 12px;
    max-height: 200px;
    overflow-y: auto;
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    font-size: 12px;
    line-height: 1.8;
}

.log-entry { color: #adadad; }
.log-entry.success { color: #00b811; }
.log-entry.error { color: #ff3b3b; }
.log-entry.info { color: #5ea9ff; }

/* =====================================================
   PROFILE CARD (classification view)
   ===================================================== */
.profile-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
}

.profile-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.profile-avatar {
    width: 44px; height: 44px; min-width: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00b811, #00d177);
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 16px; color: #000;
    overflow: hidden;
}

.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }

.profile-avatar-large {
    width: 120px; height: 120px;
    border-radius: 50%;
    margin: 0 auto;
    overflow: hidden;
    border: 3px solid rgba(0, 184, 17,0.3);
    background: linear-gradient(135deg, #00b811, #00d177);
    display: flex; align-items: center; justify-content: center;
}

.profile-avatar-large img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-large span { font-size: 42px; font-weight: 600; color: #000; }

.profile-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
    text-align: center;
}

.metric-value { font-size: 20px; font-weight: 600; color: #f4f5ee; }
.metric-label { font-size: 11px; color: #adadad; }

.profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.badge-tag {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-verified { background: rgba(0,149,246,0.15); color: #0095F6; border: 1px solid rgba(0,149,246,0.3); }
.badge-private { background: rgba(255,193,7,0.15); color: #FFC107; border: 1px solid rgba(255,193,7,0.3); }
.badge-business { background: rgba(0, 184, 17,0.15); color: #00b811; border: 1px solid rgba(0, 184, 17,0.3); }
.badge-category { background: rgba(139,92,246,0.15); color: #A78BFA; border: 1px solid rgba(139,92,246,0.3); }

/* =====================================================
   SECTION DIVIDERS
   ===================================================== */
.card-section {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.card-section.accent { background: rgba(255,255,255,0.02); }
.card-section.purple-accent { background: rgba(139,92,246,0.03); }

.section-title {
    font-size: 13px;
    font-weight: 600;
    color: #adadad;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =====================================================
   LINKS GRID
   ===================================================== */
.links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.link-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    text-decoration: none;
    color: #00b811;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
    text-align: center;
    cursor: pointer;
}

.link-item:hover { background: rgba(0, 184, 17,0.1); border-color: rgba(0, 184, 17,0.3); }
.link-item.danger { color: #ff3b3b; }
.link-item.danger:hover { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.3); }
.link-item.muted { color: #adadad; cursor: default; }
.link-item.muted:hover { background: rgba(255,255,255,0.02); border-color: rgba(255,255,255,0.06); }

.icon { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; flex-shrink: 0; }

/* =====================================================
   CTI SECTION
   ===================================================== */
.cti-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cti-title {
    font-size: 13px; font-weight: 600; color: #A78BFA; margin-bottom: 14px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    text-transform: uppercase; letter-spacing: 0.5px;
}

.cti-btn {
    padding: 14px;
    background: rgba(139,92,246,0.08);
    border: 1px solid rgba(139,92,246,0.25);
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.cti-btn:hover { background: rgba(139,92,246,0.15); border-color: #8B5CF6; }
.cti-btn-title { font-size: 13px; font-weight: 600; color: #A78BFA; margin-bottom: 4px; }
.cti-btn-desc { font-size: 11px; color: #adadad; }
.cti-btn.has-cti { background: rgba(16,185,129,0.15); border-color: #00b811; }
.cti-btn.has-cti .cti-btn-title { color: #00b811; }
.cti-btn.has-cti .cti-btn-desc { color: #00b811; }
.cti-btn.checking { opacity: 0.7; }
.cti-btn.checking .cti-btn-desc { color: #f5b400; }

/* =====================================================
   LINK PREVIEW
   ===================================================== */
.link-preview {
    background: rgba(0, 184, 17,0.05);
    border: 1px solid rgba(0, 184, 17,0.2);
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

.link-preview .link-label { font-size: 11px; color: #adadad; margin-bottom: 4px; text-transform: uppercase; }
.link-preview .link-url { font-size: 12px; color: #00b811; word-break: break-all; font-family: monospace; }

/* =====================================================
   DETAIL GRID (modal)
   ===================================================== */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.detail-item { display: flex; flex-direction: column; gap: 4px; }
.detail-item.full-width { grid-column: 1 / -1; }

.detail-label {
    font-size: 11px; font-weight: 600; color: #535656;
    text-transform: uppercase; letter-spacing: 0.5px;
}

.detail-value { font-size: 14px; color: #f4f5ee; word-break: break-all; }

/* =====================================================
   CLIENT LIST (terms sidebar)
   ===================================================== */
.client-list { max-height: calc(100vh - 420px); min-height: 200px; overflow-y: auto; }

.client-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px;
    background: rgba(255,255,255,0.02);
    border: 1px solid transparent;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    gap: 10px;
}

.client-item:hover { background: rgba(255,255,255,0.04); }
.client-item.active { background: rgba(0, 184, 17,0.1); border-color: rgba(0, 184, 17,0.3); }

.client-avatar {
    width: 36px; height: 36px; min-width: 36px;
    background: linear-gradient(135deg, #00b811, #00d177);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 12px; color: #000;
}

/* =====================================================
   SEARCH BOX
   ===================================================== */
.search-box {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 0 12px;
    margin-bottom: 16px;
}

.search-box input {
    flex: 1;
    background: none;
    border: none;
    color: #f4f5ee;
    padding: 10px 0;
    font-size: 13px;
    outline: none;
    min-width: 0;
}

.search-box input::placeholder { color: #adadad; }

/* =====================================================
   BTN PURPLE
   ===================================================== */
.btn-purple {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(168,85,247,0.15);
    border: 1px solid rgba(168,85,247,0.3);
    border-radius: 12px;
    color: #C084FC;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-purple:hover { background: rgba(168,85,247,0.25); border-color: rgba(168,85,247,0.4); }
.btn-purple:disabled { opacity: 0.5; cursor: not-allowed; }

/* =====================================================
   GRID LAYOUTS
   ===================================================== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-bottom: 20px; }
.grid-sidebar { display: grid; grid-template-columns: 280px 1fr; gap: 20px; }

@media (max-width: 900px) {
    .grid-2, .grid-2-1, .grid-sidebar { grid-template-columns: 1fr; }
    .action-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .action-grid { grid-template-columns: 1fr; }
    .action-btn { flex-direction: row; justify-content: flex-start; gap: 12px; min-height: auto; padding: 14px 16px; text-align: left; }
    .action-btn .action-title { margin-bottom: 0; }
    .action-btn .action-desc { display: none; }
    .kbd { position: static; margin-left: auto; }
    .links-grid { grid-template-columns: 1fr; }
    .cti-grid { grid-template-columns: 1fr; }
    .detail-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: #535656; }
.text-success { color: #00b811; }
.text-danger { color: #ff3b3b; }
.text-warning { color: #f5b400; }
.text-primary { color: #00b811; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }

.grid { display: grid; }

.hidden { display: none !important; }
.visible { display: block !important; }
   CTI COMPONENTS v3.0
   ===================================================== */

/* === Severity chips === */
.sev {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    line-height: 1.4;
    border: 1px solid transparent;
    white-space: nowrap;
}
.sev::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
}
.sev-critical { color: var(--sev-critical); background: var(--sev-critical-bg); border-color: rgba(255,59,59,.25); }
.sev-high     { color: var(--sev-high);     background: var(--sev-high-bg);     border-color: rgba(255,120,73,.25); }
.sev-medium   { color: var(--sev-medium);   background: var(--sev-medium-bg);   border-color: rgba(245,180,0,.25); }
.sev-low      { color: var(--sev-low);      background: var(--sev-low-bg);      border-color: rgba(0,184,17,.25); }
.sev-info     { color: var(--sev-info);     background: var(--sev-info-bg);     border-color: rgba(94,169,255,.25); }

/* === Status pills === */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border-soft);
    color: var(--text-mid);
}
.status-pill::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-faint);
}
.status-pill.active::before    { background: var(--status-active);   box-shadow: 0 0 8px var(--status-active); }
.status-pill.inactive::before  { background: var(--status-inactive); }
.status-pill.pending::before   { background: var(--status-pending);  box-shadow: 0 0 8px var(--status-pending); }
.status-pill.blocked::before   { background: var(--status-blocked);  box-shadow: 0 0 8px var(--status-blocked); }
.status-pill.active   { color: var(--status-active);   border-color: rgba(0,184,17,.25); }
.status-pill.pending  { color: var(--status-pending);  border-color: rgba(245,180,0,.25); }
.status-pill.blocked  { color: var(--status-blocked);  border-color: rgba(255,59,59,.25); }

/* === KPI cards (CTI grade) === */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}
.kpi {
    position: relative;
    background: var(--grad-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    overflow: hidden;
    transition: border-color .2s, transform .2s;
}
.kpi::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: var(--accent, var(--op-green));
    opacity: .7;
}
.kpi:hover { border-color: var(--border-mid); transform: translateY(-2px); }
.kpi.is-clickable { cursor: pointer; }
.kpi.is-clickable:hover { border-color: var(--op-green); box-shadow: 0 6px 20px rgba(0,184,17,.10); }
.kpi.is-clickable:active { transform: translateY(0); }
.kpi-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-low);
    text-transform: uppercase;
    letter-spacing: .6px;
    font-weight: 600;
    margin-bottom: 12px;
}
.kpi-label .icon { width: 14px; height: 14px; opacity: .85; }
.kpi-value {
    font-size: 30px;
    font-weight: 800;
    color: var(--text-hi);
    letter-spacing: -.5px;
    line-height: 1;
    font-feature-settings: 'tnum';
    font-variant-numeric: tabular-nums;
}
.kpi-trend {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    color: var(--text-low);
}
.kpi-trend .delta {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 11px;
}
.kpi-trend .delta.up   { color: var(--op-green); background: rgba(0,184,17,.10); }
.kpi-trend .delta.down { color: var(--sev-critical); background: rgba(255,59,59,.10); }
.kpi-trend .delta.flat { color: var(--text-low); background: rgba(255,255,255,.04); }
.kpi-spark { margin-top: 10px; height: 28px; }
.kpi-spark svg { width: 100%; height: 100%; display: block; }

.kpi.is-critical::before { background: var(--sev-critical); }
.kpi.is-warning::before  { background: var(--sev-medium); }
.kpi.is-good::before     { background: var(--op-green); }
.kpi.is-info::before     { background: var(--op-blue-soft); }

/* === Section card (panel v2) === */
.card {
    background: var(--surface-2);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 18px;
    position: relative;
}
.card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    gap: 12px;
}
.card-head h3 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-hi);
    text-transform: uppercase;
    letter-spacing: .6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.card-head h3 .accent-bar {
    width: 3px;
    height: 14px;
    background: var(--op-green);
    border-radius: 2px;
}
.card-head .head-actions { display: flex; gap: 8px; align-items: center; font-size: 12px; }
.card-head .head-actions a { color: var(--op-green-soft); text-decoration: none; }
.card-head .head-actions a:hover { text-decoration: underline; }

/* === Threat row (rich activity feed) === */
.threat-row {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,.015);
    margin-bottom: 8px;
    cursor: pointer;
    transition: background .15s, border-color .15s, transform .15s;
}
.threat-row:hover { background: rgba(255,255,255,.04); border-color: var(--border-mid); transform: translateX(2px); }
.threat-row .thumb {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-xs);
    background: var(--surface-3) center/cover no-repeat;
    border: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-faint);
    font-size: 22px;
    overflow: hidden;
}
.threat-row .body { min-width: 0; }
.threat-row .body-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}
.threat-row .page {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-hi);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 240px;
}
.threat-row .ad-text {
    font-size: 12px;
    color: var(--text-low);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}
.threat-row .meta {
    display: flex;
    gap: 10px;
    font-size: 11px;
    color: var(--text-faint);
    margin-top: 6px;
    flex-wrap: wrap;
}
.threat-row .meta strong { color: var(--text-low); font-weight: 600; }
.threat-row .right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    font-size: 11px;
    color: var(--text-faint);
}

/* === Donut === */
.donut-wrap { display: flex; gap: 18px; align-items: center; }
.donut { width: 130px; height: 130px; flex-shrink: 0; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut-track { fill: none; stroke: rgba(255,255,255,.05); stroke-width: 14; }
.donut-segment { fill: none; stroke-width: 14; stroke-linecap: butt; transition: stroke-dashoffset .8s ease; }
.donut-center {
    text-anchor: middle;
    dominant-baseline: middle;
    transform: rotate(90deg);
    transform-origin: center;
}
.donut-center .donut-num { font-size: 26px; font-weight: 800; fill: var(--text-hi); font-feature-settings: 'tnum'; }
.donut-center .donut-num.is-medium { font-size: 22px; }
.donut-center .donut-num.is-small  { font-size: 18px; }
.donut-center .donut-cap { font-size: 9px; fill: var(--text-low); text-transform: uppercase; letter-spacing: 1px; }
.donut-legend { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.donut-legend-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-mid); }
.donut-legend-row .lbl { display: flex; align-items: center; gap: 8px; }
.donut-legend-row .swatch { width: 10px; height: 10px; border-radius: 2px; }
.donut-legend-row .num { color: var(--text-hi); font-weight: 700; font-feature-settings: 'tnum'; }

/* === Geo distribution rows === */
.geo-list { display: flex; flex-direction: column; gap: 10px; }
.geo-row { display: grid; grid-template-columns: 28px 1fr 50px; gap: 10px; align-items: center; font-size: 12px; }
.geo-row .flag { font-size: 18px; line-height: 1; text-align: center; }
.geo-row .bar  { height: 6px; background: rgba(255,255,255,.05); border-radius: 999px; overflow: hidden; position: relative; }
.geo-row .bar > span { position: absolute; inset: 0 auto 0 0; background: var(--grad-green); border-radius: 999px; transition: width .6s ease; }
.geo-row .geo-name { display: flex; justify-content: space-between; gap: 8px; color: var(--text-mid); margin-bottom: 4px; font-size: 11.5px; }
.geo-row .geo-name strong { color: var(--text-hi); font-weight: 600; }
.geo-row .num { text-align: right; color: var(--text-hi); font-weight: 700; font-feature-settings: 'tnum'; }
.geo-row .col2 { min-width: 0; }

/* === Health strip === */
.health-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0;
    background: var(--surface-2);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.health-cell {
    padding: 12px 16px;
    border-right: 1px solid var(--border-soft);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.health-cell:last-child { border-right: none; }
.health-cell .h-label {
    font-size: 10.5px;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: .6px;
    font-weight: 600;
}
.health-cell .h-value { font-size: 14px; color: var(--text-hi); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.health-cell .h-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--op-green); box-shadow: 0 0 8px var(--op-green); animation: pulse 2s ease-in-out infinite; }
.health-cell .h-dot.warn { background: var(--sev-medium); box-shadow: 0 0 8px var(--sev-medium); }
.health-cell .h-dot.crit { background: var(--sev-critical); box-shadow: 0 0 8px var(--sev-critical); }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: .35; }
}

/* === Section title === */
.section-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 28px 0 14px;
}
.section-eyebrow h2 {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-low);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}
.section-eyebrow .line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--border-mid), transparent); }

/* === Grid layouts === */
.grid-2  { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2a { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
@media (max-width: 1024px) {
    .grid-2, .grid-3, .grid-2a { grid-template-columns: 1fr; }
}

/* === Empty state v2 === */
.empty-v2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 20px;
    color: var(--text-faint);
    text-align: center;
}
.empty-v2 svg { width: 38px; height: 38px; opacity: .35; margin-bottom: 8px; }
.empty-v2 p { font-size: 12.5px; }

/* === Sparkline === */
.spark-line  { fill: none; stroke: var(--op-green); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.spark-fill  { fill: var(--op-green); opacity: .12; }
.spark-baseline { stroke: rgba(255,255,255,.05); stroke-width: 1; stroke-dasharray: 2 3; }

/* === Page hero updated for CTI === */
.cti-hero {
    background:
        radial-gradient(ellipse 60% 100% at 0% 0%, rgba(0,184,17,.10), transparent 60%),
        var(--surface-2);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 22px 26px;
    margin-bottom: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.cti-hero .left h1 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-hi);
    letter-spacing: -.3px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.cti-hero .left h1::before {
    content: '';
    width: 4px;
    height: 22px;
    background: var(--grad-green);
    border-radius: 2px;
}
.cti-hero .left p { font-size: 13px; color: var(--text-low); }
.cti-hero .right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* === Filter pill bar === */
.pill-filter {
    display: inline-flex;
    background: var(--surface-2);
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    padding: 4px;
    gap: 2px;
}
.pill-filter button {
    background: none;
    border: none;
    color: var(--text-low);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: all .15s;
}
.pill-filter button:hover { color: var(--text-hi); }
.pill-filter button.active { background: var(--op-green); color: #000; }

/* Select inline (for filter bars in v3) */
.select-v3 {
    background: var(--surface-2);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    color: var(--text-hi);
    font-size: 12.5px;
    padding: 8px 14px;
    cursor: pointer;
    min-width: 180px;
}
.select-v3:focus { outline: none; border-color: var(--op-green); }
