@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Smart Stack — professional black + neon blue */
    --background: #050508;
    --foreground: #f0f2f5;
    --card: #0a0a0f;
    --card-elevated: #0e0e14;
    --muted: #12121a;
    --muted-foreground: #8b92a5;
    --border: rgba(0, 212, 255, 0.1);
    --input: #12121a;
    --primary: #00d4ff;
    --primary-foreground: #050508;
    --blue: #0088ff;
    --blue-light: #33ddff;
    --blue-dark: #0066cc;
    --electric: #00d4ff;
    --emerald: #10b981;
    --destructive: #ef4444;
    --brand-cyan: #00d4ff;
    --brand-blue: #0088ff;

    --bg-primary: var(--background);
    --bg-secondary: var(--card);
    --bg-card: var(--card-elevated);
    --bg-hover: var(--muted);
    --text-primary: var(--foreground);
    --text-secondary: #d1d5db;
    --text-muted: var(--muted-foreground);
    --accent: var(--primary);
    --accent-hover: var(--blue-light);
    --success: var(--emerald);
    --warning: var(--primary);
    --danger: var(--destructive);
    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 4px 24px rgba(0, 212, 255, 0.08);
    --shadow-brand: 0 0 24px rgba(0, 212, 255, 0.2);
    --font: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --brand-gradient: linear-gradient(135deg, #00d4ff 0%, #0088ff 100%);
    --brand-text-gradient: linear-gradient(90deg, #ffffff 0%, #00d4ff 100%);
    --blue-glow: rgba(0, 212, 255, 0.1);
    --blue-glow-strong: rgba(0, 212, 255, 0.22);
    --blue-border: rgba(0, 212, 255, 0.2);
    --neon-glow: 0 0 20px rgba(0, 212, 255, 0.15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

::selection {
    background: rgba(59, 130, 246, 0.25);
    color: var(--foreground);
}

body {
    font-family: var(--font);
    background: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Login */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--background);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(0, 212, 255, 0.08) 0%, transparent 55%);
    pointer-events: none;
}

.login-container { width: 100%; max-width: 420px; padding: 20px; position: relative; z-index: 1; }

.login-card {
    background: #0a0a0f;
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 12px;
    padding: 48px 40px;
    box-shadow: 0 0 24px rgba(0, 212, 255, 0.12);
}

.login-logo { text-align: center; margin-bottom: 32px; }
.login-logo h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 14px;
    letter-spacing: -0.02em;
}
.login-logo p {
    color: var(--muted-foreground);
    font-size: 0.85rem;
    margin-top: 6px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.logo-icon {
    width: 56px; height: 56px;
    background: var(--brand-gradient);
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    color: var(--primary-foreground);
    box-shadow: var(--shadow-brand);
    letter-spacing: 0.05em;
}
.logo-icon.sm { width: 40px; height: 40px; font-size: 0.8rem; border-radius: 10px; }

.brand-logo {
    display: block;
    width: auto;
    height: auto;
    object-fit: contain;
}
.brand-logo-full {
    max-width: min(320px, 88vw);
    max-height: 88px;
    margin: 0 auto;
}
.brand-logo-sidebar {
    max-width: 100%;
    max-height: 52px;
}
.brand-logo-header {
    max-height: 40px;
    max-width: 220px;
}
.login-logo .brand-logo-full { margin-bottom: 8px; }
.sidebar-header--brand {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 20px 16px;
}
.sidebar-header--brand .brand-logo-sidebar { margin: 0 auto; }

.brand-tagline {
    display: block;
    font-size: 0.7rem;
    color: var(--muted-foreground);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-text, .gold-text {
    background: var(--brand-text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.75rem;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}
.login-form input {
    width: 100%;
    padding: 12px 16px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--foreground);
    font-size: 0.95rem;
    font-family: var(--font);
    margin-bottom: 20px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.login-form input:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

.sidebar {
    width: 260px;
    background: #0a0a0f;
    border-right: 1px solid rgba(0, 212, 255, 0.1);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    transition: transform 0.25s ease, width 0.25s ease;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.sidebar-brand {
    min-width: 0;
    flex: 1;
}
.sidebar-header h2 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.subtitle {
    display: block;
    font-size: 0.68rem;
    color: var(--muted-foreground);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sidebar-nav { flex: 1; padding: 14px 10px; overflow-y: auto; overflow-x: hidden; }

.nav-group { margin-bottom: 16px; }
.nav-group-label {
    display: block;
    padding: 0 14px 8px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted-foreground);
    opacity: 0.7;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.15s;
    margin-bottom: 2px;
    border: 1px solid transparent;
    white-space: nowrap;
}
.nav-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nav-item:hover {
    background: var(--muted);
    color: var(--foreground);
}
.nav-item.active {
    background: rgba(0, 212, 255, 0.08);
    color: var(--primary);
    border-color: rgba(0, 212, 255, 0.25);
    box-shadow: inset 3px 0 0 var(--primary);
}
.nav-icon { font-size: 1rem; width: 22px; text-align: center; opacity: 0.85; flex-shrink: 0; }

.sidebar-footer { padding: 16px 20px; border-top: 1px solid var(--border); flex-shrink: 0; }

.sidebar-toggle {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 101;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--foreground);
    font-size: 1.2rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(6, 7, 9, 0.6);
    z-index: 99;
}

.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 28px 36px;
    width: calc(100% - 260px);
    min-height: 100vh;
    background: #050508;
}

/* Sections */
.section { display: none; }
.section.active { display: block; }

.section-header { margin-bottom: 28px; }
.section-header h1 {
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}
.section-header p {
    color: var(--muted-foreground);
    margin-top: 6px;
    font-size: 0.9rem;
}
.section-header { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.section-header h1, .section-header p { flex: 1 1 100%; }
.section-header .btn { margin-left: auto; }

.section-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--primary);
    margin-bottom: 8px;
}

/* Agent Cards */
.agent-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.agent-card {
    background: #0e0e14;
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.agent-card:hover {
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: var(--neon-glow);
}

.agent-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}
.agent-icon { font-size: 1.4rem; }
.agent-card-header h3 { font-size: 0.95rem; font-weight: 600; }
.agent-desc { font-size: 0.75rem; color: var(--muted-foreground); }

.agent-card-body { padding: 16px 20px; }
.agent-card-body p { font-size: 0.85rem; color: var(--muted-foreground); margin-bottom: 12px; line-height: 1.55; }
.agent-meta { display: flex; align-items: center; gap: 10px; }
.phone-number { font-size: 0.78rem; color: var(--muted-foreground); font-family: monospace; }

/* Toggle */
.toggle { position: relative; display: inline-block; width: 44px; height: 24px; margin-left: auto; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute; cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--muted);
    border-radius: 24px;
    transition: 0.3s;
    border: 1px solid var(--border);
}
.toggle-slider::before {
    content: "";
    position: absolute;
    height: 16px; width: 16px;
    left: 3px; bottom: 3px;
    background: var(--muted-foreground);
    border-radius: 50%;
    transition: 0.3s;
}
.toggle input:checked + .toggle-slider {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
}
.toggle input:checked + .toggle-slider::before {
    transform: translateX(20px);
    background: var(--primary);
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: #0e0e14;
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: var(--radius);
    padding: 22px 20px;
    transition: border-color 0.2s;
}
.stat-card:hover { border-color: rgba(0, 212, 255, 0.25); }
.stat-label {
    display: block;
    font-size: 0.7rem;
    color: var(--muted-foreground);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}
.stat-value {
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: var(--brand-text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Panels */
.panel {
    background: #0e0e14;
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
}
.panel h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.badge.active, .badge.confirmed {
    background: rgba(34, 197, 94, 0.12);
    color: hsl(158 75% 55%);
    border: 1px solid rgba(34, 197, 94, 0.2);
}
.badge.inactive, .badge.cancelled {
    background: rgba(239, 68, 68, 0.1);
    color: var(--destructive);
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.badge.new {
    background: rgba(59, 130, 246, 0.12);
    color: var(--primary);
    border: 1px solid rgba(59, 130, 246, 0.25);
}
.badge.contacted {
    background: rgba(59, 130, 246, 0.08);
    color: var(--blue-light);
    border: 1px solid rgba(59, 130, 246, 0.15);
}
.badge-muted {
    background: rgba(148, 163, 184, 0.12);
    color: var(--muted-foreground);
    border: 1px solid rgba(148, 163, 184, 0.2);
    font-size: 11px;
}
.badge.converted {
    background: rgba(34, 197, 94, 0.12);
    color: hsl(158 75% 55%);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    letter-spacing: 0.01em;
}
.btn-primary {
    background: var(--brand-gradient);
    color: var(--primary-foreground);
    box-shadow: var(--shadow-brand);
}
.btn-primary:hover {
    box-shadow: 0 8px 40px rgba(0, 229, 255, 0.32), inset 0 1px rgba(0, 229, 255, 0.12);
    filter: brightness(1.05);
    transform: translateY(-1px);
}
.btn-ghost {
    background: transparent;
    color: var(--muted-foreground);
    border: 1px solid var(--border);
}
.btn-ghost:hover {
    background: var(--muted);
    color: var(--foreground);
    border-color: rgba(59, 130, 246, 0.2);
}
.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--destructive);
    border: 1px solid rgba(239, 68, 68, 0.25);
}
.btn-danger:hover { background: rgba(239, 68, 68, 0.25); }
.btn-sm { padding: 6px 14px; font-size: 0.78rem; }
.btn-full { width: 100%; justify-content: center; }

/* Tables */
.table-container { overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
th {
    text-align: left;
    padding: 10px 14px;
    color: var(--muted-foreground);
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--muted-foreground);
}
tr:hover td { background: rgba(59, 130, 246, 0.03); }
td.actions { white-space: nowrap; }
td.actions .btn { margin-right: 4px; }

/* Activity */
.activity-list { max-height: 400px; overflow-y: auto; }

.activity-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}
.activity-item:last-child { border-bottom: none; }
.activity-time {
    color: var(--muted-foreground);
    font-size: 0.72rem;
    white-space: nowrap;
    min-width: 130px;
    font-variant-numeric: tabular-nums;
}
.activity-agent {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border: 1px solid rgba(59, 130, 246, 0.15);
    height: fit-content;
}
.activity-desc { color: var(--text-secondary); flex: 1; }

/* Setup Steps */
.setup-steps { display: flex; flex-direction: column; gap: 12px; }
.step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--muted-foreground);
    line-height: 1.5;
}
.step-num {
    background: var(--brand-gradient);
    color: var(--primary-foreground);
    width: 24px; height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}
code {
    background: var(--background);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.78rem;
    color: var(--primary);
    border: 1px solid rgba(59, 130, 246, 0.15);
}

/* WhatsApp Layout */
.whatsapp-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    min-height: 500px;
}

.wa-conv-list { max-height: 500px; overflow-y: auto; }

.wa-conv-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.15s;
}
.wa-conv-item:hover, .wa-conv-item.active {
    background: rgba(59, 130, 246, 0.06);
}
.wa-conv-name { font-weight: 600; font-size: 0.875rem; }
.wa-conv-preview {
    font-size: 0.78rem;
    color: var(--muted-foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wa-conv-time { font-size: 0.68rem; color: var(--muted-foreground); }

.wa-chat-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    font-size: 0.9rem;
}
.wa-chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    max-height: 400px;
    min-height: 300px;
}
.wa-msg {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 12px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    line-height: 1.5;
}
.wa-msg.user {
    background: var(--muted);
    margin-right: auto;
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border);
}
.wa-msg.assistant {
    background: rgba(59, 130, 246, 0.1);
    margin-left: auto;
    border-bottom-right-radius: 4px;
    border: 1px solid rgba(59, 130, 246, 0.15);
}
.wa-msg-time { font-size: 0.65rem; color: var(--muted-foreground); margin-top: 4px; }

.wa-chat-input {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
}
.wa-chat-input input {
    flex: 1;
    padding: 10px 14px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--foreground);
    font-size: 0.9rem;
    font-family: var(--font);
}
.wa-chat-input input:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.4);
}

.wa-chat-panel { display: flex; flex-direction: column; }

.conversation-list .conv-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.15s;
}
.conversation-list .conv-item:hover { background: rgba(59, 130, 246, 0.04); }

.outbound-actions { margin-bottom: 20px; }

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(6, 7, 9, 0.8);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.modal-overlay.open { display: flex; }

.modal {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-weight: 600; }
.modal-close {
    background: none; border: none;
    color: var(--muted-foreground);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.15s;
}
.modal-close:hover { color: var(--foreground); }
.modal-body { padding: 24px; }
.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.75rem;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--foreground);
    font-size: 0.9rem;
    font-family: var(--font);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
}

.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 0.85rem; }
.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--destructive);
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.alert-success {
    background: rgba(34, 197, 94, 0.1);
    color: hsl(158 75% 55%);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--muted-foreground);
    font-size: 0.9rem;
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--background); }
::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.3);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(59, 130, 246, 0.5); }

/* Settings */
.settings-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.settings-tab {
    padding: 8px 16px;
    background: var(--card-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--muted-foreground);
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.15s;
}
.settings-tab:hover { border-color: rgba(59, 130, 246, 0.3); color: var(--foreground); }
.settings-tab.active {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.35);
    color: var(--primary);
}
.settings-panel { display: none; }
.settings-panel.active { display: block; }
.settings-form { max-width: 800px; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-section-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 24px 0 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    color: var(--primary);
}
.form-section-title:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.form-actions { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); }
.panel-desc { font-size: 0.85rem; color: var(--muted-foreground); margin-bottom: 20px; line-height: 1.55; }
.field-hint { display: block; font-size: 0.72rem; color: var(--muted-foreground); margin-top: 4px; }

.hours-grid { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; align-items: center; margin-bottom: 16px; }
.hours-grid label { font-size: 0.8rem; color: var(--muted-foreground); text-transform: capitalize; }
.hours-grid input { padding: 8px 12px; background: var(--background); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--foreground); font-size: 0.85rem; font-family: var(--font); }

.setup-checklist { display: flex; flex-direction: column; gap: 10px; }
.checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}
.checklist-item.done { border-color: rgba(34, 197, 94, 0.3); background: rgba(34, 197, 94, 0.05); }
.checklist-icon { font-size: 1.1rem; width: 24px; text-align: center; }
.checklist-label { flex: 1; }
.checklist-status { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }

.api-guides { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 20px; }
.api-guide-card {
    background: var(--card-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}
.api-guide-card h4 { font-size: 0.9rem; margin-bottom: 8px; }
.api-guide-card p { font-size: 0.8rem; color: var(--muted-foreground); margin-bottom: 12px; line-height: 1.5; }
.api-guide-steps { list-style: none; padding: 0; margin: 0 0 12px; }
.api-guide-steps li { font-size: 0.78rem; color: var(--muted-foreground); padding: 4px 0 4px 16px; position: relative; line-height: 1.45; }
.api-guide-steps li::before { content: '→'; position: absolute; left: 0; color: var(--primary); }
.api-guide-links { display: flex; flex-wrap: wrap; gap: 8px; }
.api-guide-links a { font-size: 0.75rem; color: var(--primary); text-decoration: none; }
.api-guide-links a:hover { text-decoration: underline; }

.service-item, .faq-item {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 12px;
}
.service-item .form-row, .faq-item .form-group { margin-bottom: 8px; }
.item-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.item-header span { font-size: 0.75rem; color: var(--muted-foreground); font-weight: 600; text-transform: uppercase; }

.info-panel { background: rgba(59, 130, 246, 0.04); border-color: rgba(59, 130, 246, 0.15); }
.info-list { list-style: none; padding: 0; }
.info-list li { font-size: 0.85rem; color: var(--muted-foreground); padding: 8px 0; border-bottom: 1px solid var(--border); line-height: 1.5; }
.info-list li:last-child { border-bottom: none; }
.info-list code { font-size: 0.75rem; }

.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 14px 20px;
    background: var(--card);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-sm);
    color: hsl(158 75% 55%);
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 2000;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
    pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* Customers timeline */
.customers-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    min-height: 500px;
}
.customers-list { max-height: 600px; overflow-y: auto; }
.customer-item {
    padding: 12px 14px; border-bottom: 1px solid var(--border);
    cursor: pointer; transition: background 0.15s;
}
.customer-item:hover, .customer-item.active { background: rgba(59, 130, 246, 0.08); }
.customer-item-name { font-weight: 600; font-size: 0.875rem; }
.customer-item-phone { font-size: 0.78rem; color: var(--muted-foreground); }
.customer-item-meta { font-size: 0.7rem; color: var(--muted-foreground); margin-top: 4px; }
.customer-detail-header {
    padding-bottom: 12px; border-bottom: 1px solid var(--border);
    margin-bottom: 16px; font-weight: 600;
}
.customer-summary {
    display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px;
}
.summary-pill {
    padding: 8px 14px; background: var(--background);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 0.78rem;
}
.summary-pill strong { color: var(--primary); display: block; font-size: 1rem; }
.customer-timeline { max-height: 500px; overflow-y: auto; }
.timeline-event {
    display: flex; gap: 12px; padding: 12px 0;
    border-bottom: 1px solid var(--border); position: relative;
}
.timeline-event::before {
    content: ''; width: 8px; height: 8px; border-radius: 50%;
    background: var(--primary); margin-top: 6px; flex-shrink: 0;
}
.timeline-event.booking::before { background: hsl(158 75% 48%); }
.timeline-event.usage::before { background: var(--orange, #f59e0b); }
.timeline-event.outbound_call::before { background: #8b5cf6; }
.timeline-event.lead::before { background: #06b6d4; }
.timeline-body { flex: 1; min-width: 0; }
.timeline-type {
    font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--primary); margin-bottom: 4px;
}
.timeline-content { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.45; }
.timeline-time { font-size: 0.68rem; color: var(--muted-foreground); margin-top: 4px; }
.timeline-actions { margin-top: 8px; }

/* Proof */
.proof-score-panel { text-align: center; padding: 32px; }
.proof-score-big {
    font-size: 3rem; font-weight: 800;
    background: var(--brand-text-gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.proof-checks { display: flex; flex-direction: column; gap: 8px; }
.proof-check-row {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 16px; background: var(--card-elevated);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.proof-check-row.ok { border-color: rgba(34, 197, 94, 0.3); }

/* Dashboard v2 */
.topbar {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 14px 20px;
    margin: -28px -36px 24px;
    background: #0a0a0f;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;
    flex-wrap: wrap;
}
.topbar-left { min-width: 140px; }
.topbar-greeting {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted-foreground);
    font-weight: 600;
}
.topbar-business {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-top: 2px;
}
.topbar-search-wrap {
    flex: 1;
    min-width: 200px;
    max-width: 420px;
    position: relative;
}
.topbar-search {
    width: 100%;
    padding: 10px 16px 10px 38px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--foreground);
    font-family: var(--font);
    font-size: 0.85rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242 1.1a5.5 5.5 0 1 1 0-11 5.5 5.5 0 0 1 0 11z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 14px center;
}
.topbar-search:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}
.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--card-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    max-height: 280px;
    overflow-y: auto;
    z-index: 60;
}
.search-results.hidden { display: none; }
.search-result-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: var(--foreground);
    font-family: var(--font);
    font-size: 0.85rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
}
.search-result-item:hover { background: rgba(59, 130, 246, 0.08); }
.search-result-item small {
    display: block;
    color: var(--muted-foreground);
    font-size: 0.72rem;
    margin-top: 2px;
}
.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-wrap: wrap;
}
.topbar-clock {
    font-size: 0.78rem;
    color: var(--muted-foreground);
    font-variant-numeric: tabular-nums;
    min-width: 70px;
    text-align: right;
}
.system-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted-foreground);
}
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--muted-foreground);
}
.status-dot.live {
    background: var(--emerald);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.dashboard-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 32px;
    margin-bottom: 28px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.06) 0%, transparent 55%), #0e0e14;
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: var(--radius);
    box-shadow: var(--neon-glow);
}
.hero-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-top: 4px;
}
.hero-desc {
    color: var(--muted-foreground);
    font-size: 0.9rem;
    margin-top: 8px;
    max-width: 480px;
}
.setup-bar-wrap { margin-top: 20px; max-width: 360px; }
.setup-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--muted-foreground);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.setup-bar {
    height: 6px;
    background: var(--muted);
    border-radius: 999px;
    overflow: hidden;
}
.setup-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--brand-gradient);
    border-radius: 999px;
    transition: width 0.6s ease;
}
.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-content: flex-start;
}
.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 88px;
    padding: 14px 16px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--foreground);
    font-family: var(--font);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.quick-action:hover {
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.08);
    transform: translateY(-2px);
}
.qa-icon { font-size: 1.25rem; }
.agent-card-v2 { position: relative; cursor: pointer; }
.agent-card-accent { height: 3px; }
.agent-card-accent.receptionist { background: linear-gradient(90deg, #3b82f6, #06b6d4); }
.agent-card-accent.whatsapp { background: linear-gradient(90deg, #22c55e, #16a34a); }
.agent-card-accent.outbound { background: linear-gradient(90deg, #8b5cf6, #6366f1); }
.agent-icon-wrap {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.2rem;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.2);
}
.agent-icon-wrap.whatsapp { background: rgba(34, 197, 94, 0.12); border-color: rgba(34, 197, 94, 0.2); }
.agent-icon-wrap.outbound { background: rgba(139, 92, 246, 0.12); border-color: rgba(139, 92, 246, 0.2); }
.kpi-section-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted-foreground);
    margin-bottom: 14px;
}
.stats-grid-kpi { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.kpi-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}
.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--primary);
    opacity: 0.8;
}
.kpi-card.kpi-green::before { background: #22c55e; }
.kpi-card.kpi-cyan::before { background: #06b6d4; }
.kpi-card.kpi-purple::before { background: #8b5cf6; }
.kpi-card.kpi-emerald::before { background: #10b981; }
.kpi-card.kpi-orange::before { background: #f59e0b; }
.kpi-card.kpi-gold::before { background: #eab308; }
.kpi-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.1);
    font-size: 1rem;
    flex-shrink: 0;
}
.kpi-body { min-width: 0; }
.kpi-body .stat-value { font-size: 1.65rem; }
.panel-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.panel-header-row h3 { margin-bottom: 0; }
.activity-feed { max-height: 420px; overflow-y: auto; padding-left: 4px; }
.activity-feed .activity-item {
    position: relative;
    padding-left: 20px;
    display: grid;
    grid-template-columns: 100px 90px 1fr;
    gap: 12px;
}
.activity-feed .activity-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.activity-feed .activity-item::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 28px;
    bottom: -8px;
    width: 2px;
    background: var(--border);
}
.activity-feed .activity-item:last-child::after { display: none; }
.section-header h1 {
    background: var(--brand-text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.scraper-panel { border-color: rgba(59, 130, 246, 0.2); }
.scraper-form { margin-bottom: 16px; }
.scraper-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}
.scraper-status {
    margin: 12px 0 16px;
    font-size: 0.85rem;
    min-height: 24px;
}
.scraper-loading { color: var(--primary); }
.scraper-success { color: hsl(158 75% 55%); }
.scraper-error { color: var(--destructive); }
.scraper-results { max-height: 480px; overflow: auto; }
.scraper-results table a { color: var(--primary); }
.row-muted td { opacity: 0.55; }
.panel-desc {
    color: var(--muted-foreground);
    font-size: 0.85rem;
    margin: -8px 0 16px;
    line-height: 1.5;
}

/* Charts */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}
.chart-panel { min-height: 280px; }
.chart-panel.chart-wide { grid-column: 1 / -1; }
.chart-panel h3 { margin-bottom: 16px; }
.chart-panel canvas {
    max-height: 260px;
    width: 100% !important;
}

@media (max-width: 900px) {
    .charts-grid { grid-template-columns: 1fr; }
    .chart-panel canvas { max-height: 220px; }
    .sidebar-toggle { display: flex; }

    .topbar {
        margin: -72px -20px 20px;
        padding: 12px 16px;
    }
    .topbar-search-wrap { order: 3; flex: 1 1 100%; max-width: none; }
    .topbar-left { flex: 1; }

    .sidebar {
        width: 270px;
        transform: translateX(-100%);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
    }
    .sidebar.open { transform: translateX(0); }

    .sidebar-backdrop.open { display: block; }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 72px 20px 20px;
    }

    .form-row { grid-template-columns: 1fr; }
    .settings-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
    .whatsapp-layout { grid-template-columns: 1fr; }
    .customers-layout { grid-template-columns: 1fr; }
    .agent-cards { grid-template-columns: 1fr; }
}

.embed-code {
    background: hsl(222 47% 8%);
    border: 1px solid hsl(222 30% 18%);
    border-radius: 10px;
    padding: 16px;
    font-size: 13px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
    color: hsl(210 40% 88%);
}

.agent-card-accent.gmail { background: linear-gradient(135deg, #ea4335, #fbbc04); }
.agent-card-accent.chat { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.agent-card-accent.social { background: linear-gradient(135deg, #ec4899, #8b5cf6); }
.agent-card-accent.sms { background: linear-gradient(135deg, #f59e0b, #eab308); }
.agent-icon-wrap.social { background: rgba(236, 72, 153, 0.15); }
.agent-icon-wrap.sms { background: rgba(245, 158, 11, 0.15); }
.agent-icon-wrap.gmail { background: rgba(234, 67, 53, 0.15); }
.agent-icon-wrap.chat { background: rgba(37, 99, 235, 0.15); }

.onboarding-panel {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 400px;
    max-width: calc(100vw - 32px);
    height: 520px;
    max-height: calc(100vh - 48px);
    background: hsl(222 47% 7%);
    border: 1px solid hsl(222 30% 18%);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    z-index: 10000;
    overflow: hidden;
}

.onboarding-panel.ss-hidden { display: none !important; }

.onboarding-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: linear-gradient(135deg, hsl(221 83% 53%), hsl(199 89% 48%));
    color: #fff;
}

.onboarding-sub {
    display: block;
    font-size: 12px;
    opacity: 0.85;
    font-weight: 400;
}

.onboarding-header button {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
}

.onboarding-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ob-msg {
    max-width: 90%;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
}

.ob-msg-bot {
    background: hsl(222 30% 14%);
    border: 1px solid hsl(222 25% 20%);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.ob-msg-user {
    background: hsl(221 83% 53%);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.ob-msg-action {
    font-size: 11px;
    color: hsl(199 89% 60%);
    margin-top: 4px;
}

.onboarding-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 12px 8px;
}

.ob-suggest {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid hsl(222 25% 22%);
    background: hsl(222 30% 12%);
    color: hsl(210 40% 80%);
    cursor: pointer;
}

.ob-suggest:hover {
    border-color: hsl(221 83% 53%);
    color: #fff;
}

.onboarding-input-row {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid hsl(222 25% 18%);
    align-items: flex-end;
}

.onboarding-input-row textarea {
    flex: 1;
    resize: none;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid hsl(222 25% 22%);
    background: hsl(222 47% 9%);
    color: hsl(210 40% 92%);
    font-family: inherit;
    font-size: 13px;
}

/* System Monitor */
.monitor-pill { cursor: pointer; }
.monitor-dot-ok, .monitor-status-ok .monitor-strip-dot, .monitor-status-ok .monitor-row-dot { background: #22c55e; }
.monitor-dot-warn, .monitor-status-warn .monitor-strip-dot, .monitor-status-warn .monitor-row-dot { background: #f59e0b; }
.monitor-dot-critical, .monitor-status-critical .monitor-strip-dot, .monitor-status-critical .monitor-row-dot { background: #ef4444; }
.monitor-dot-unknown { background: #64748b; }
.monitor-strip { padding: 14px 20px; margin-bottom: 20px; }
.monitor-strip-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.monitor-strip-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.monitor-hero { padding: 24px; margin-bottom: 8px; }
.monitor-hero-inner {
    display: flex;
    align-items: center;
    gap: 24px;
}
.monitor-hero-score {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    min-width: 100px;
}
.monitor-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}
@media (max-width: 900px) {
    .monitor-layout { grid-template-columns: 1fr; }
}
.monitor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
.monitor-category h4 {
    margin: 0 0 8px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: hsl(215 20% 55%);
}
.monitor-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 6px;
    background: hsl(222 30% 10% / 0.6);
    border: 1px solid hsl(222 25% 18%);
}
.monitor-row-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}
.monitor-status-ok .monitor-hero-score { color: #22c55e; }
.monitor-status-warn .monitor-hero-score { color: #f59e0b; }
.monitor-status-critical .monitor-hero-score { color: #ef4444; }

/* Configuration */
.config-hero { margin-bottom: 20px; }
.config-agent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}
.config-agent-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 10px;
    background: hsl(222 30% 10% / 0.6);
    border: 1px solid hsl(222 25% 18%);
    font-size: 14px;
}
.webhook-list { display: flex; flex-direction: column; gap: 8px; }
.webhook-row {
    display: grid;
    grid-template-columns: 180px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    background: hsl(222 30% 8% / 0.8);
    border: 1px solid hsl(222 25% 16%);
}
@media (max-width: 768px) {
    .webhook-row { grid-template-columns: 1fr; }
}
.webhook-label { font-size: 13px; color: hsl(215 20% 65%); }
.webhook-url {
    font-size: 12px;
    word-break: break-all;
    color: hsl(199 89% 68%);
}
.panel-danger {
    border-color: hsl(0 60% 40% / 0.4);
    background: hsl(0 40% 8% / 0.3);
}
.panel-danger h3 { color: hsl(0 70% 65%); }
.config-check { font-size: 14px; color: hsl(215 20% 70%); display: flex; align-items: center; gap: 8px; }
.config-hint { margin: -4px 0 14px; font-size: 13px; }
.field-hint { display: block; font-size: 12px; color: hsl(215 20% 55%); margin-top: 4px; }
.btn-danger {
    background: hsl(0 65% 45%);
    color: #fff;
    border: none;
}
.btn-danger:hover { background: hsl(0 65% 38%); }
