/**
 * Kommuniti Command Center v1.1 — HUD Dashboard Styles (6-Agent Model)
 * 
 * Design System:
 * - Background: #0a0f0d (near-black)
 * - Card bg: #141b18 (dark green-grey)
 * - Primary accent: #00d4aa (teal glow)
 * - Secondary accent: #4ecdc4 (cyan)
 * - Critical: #ff4757 (red glow)
 * - Attention: #ffa502 (amber)
 * - Text primary: #e8f5f1 (off-white)
 * - Text secondary: #6b8a7a (muted sage)
 * 
 * v1.1 Changes (2026-05-20):
 * - Expanded desktop max-width to 1400px
 * - Added Club Snapshot section styling
 * - Attention Inbox collapsed/expandable styling
 * - Metric-first agent cards with status pills
 * - 2×3 grid on desktop, 3×2 on tablet, 2-col on mobile
 * - Reduced word-heavy styling, increased scannability
 * 
 * v1 Changes (2026-05-20):
 * - 6-agent grid support (2×3 layout)
 * - Revenue & Utilization agent styles
 * - Business impact metric display
 * - Enhanced approval indicator styling
 * - Preserved all v3 interactions
 */

/* Reset and base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #0a0f0d;
    color: #e8f5f1;
    line-height: 1.5;
    min-height: 100vh;
    /* Subtle grid pattern */
    background-image: 
        linear-gradient(rgba(0, 212, 170, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 170, 0.02) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Container - expanded for desktop */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px 32px;
}

@media (max-width: 768px) {
    .container {
        max-width: 600px;
        padding: 0 12px 32px;
    }
}

/* ========== TOP STATUS BAR ========== */
.top-status-bar {
    background: rgba(10, 15, 13, 0.98);
    border-bottom: 1px solid rgba(0, 212, 170, 0.15);
    padding: 8px 16px;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.status-bar-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .status-bar-inner {
        max-width: 600px;
    }
}

.status-bar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.club-label {
    font-size: 12px;
    font-weight: 600;
    color: #e8f5f1;
    letter-spacing: 0.3px;
}

.demo-badge {
    font-size: 9px;
    font-weight: 600;
    color: #00d4aa;
    background: rgba(0, 212, 170, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.overlay-badge-small {
    font-size: 9px;
    color: #6b8a7a;
}

.status-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.system-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    color: #00d4aa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00d4aa;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(0, 212, 170, 0.5);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.last-scan {
    font-size: 9px;
    color: #6b8a7a;
    font-family: 'SF Mono', Monaco, monospace;
}

/* ========== HERO SECTION ========== */
.hero {
    text-align: center;
    padding: 20px 0 16px;
}

.hero-headline {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 24px;
    font-weight: 400;
    color: #e8f5f1;
    line-height: 1.3;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

@media (max-width: 768px) {
    .hero-headline {
        font-size: 20px;
    }
}

.hero-subheadline {
    font-size: 13px;
    color: #6b8a7a;
    line-height: 1.4;
}

/* ========== CLUB SNAPSHOT ========== */
.club-snapshot {
    background: rgba(20, 27, 24, 0.6);
    border: 1px solid rgba(107, 138, 122, 0.15);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.snapshot-header {
    margin-bottom: 12px;
}

.snapshot-title-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.snapshot-title {
    font-size: 14px;
    font-weight: 600;
    color: #e8f5f1;
    letter-spacing: 0.3px;
}

.snapshot-helper {
    font-size: 11px;
    color: #6b8a7a;
    font-style: italic;
}

.snapshot-metrics {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.snapshot-metrics::-webkit-scrollbar {
    display: none;
}

.snapshot-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 14px;
    background: rgba(10, 15, 13, 0.6);
    border: 1px solid rgba(107, 138, 122, 0.15);
    border-radius: 10px;
    min-width: 72px;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.snapshot-chip:hover {
    border-color: rgba(0, 212, 170, 0.3);
    background: rgba(10, 15, 13, 0.8);
}

.snapshot-chip.healthy {
    border-color: rgba(0, 212, 170, 0.25);
}

.snapshot-chip.attention {
    border-color: rgba(255, 165, 2, 0.3);
}

.snapshot-chip.critical {
    border-color: rgba(255, 71, 87, 0.3);
}

.snapshot-chip.attention-clickable {
    border-color: rgba(255, 165, 2, 0.4);
    background: rgba(255, 165, 2, 0.08);
    cursor: pointer;
}

.snapshot-chip.attention-clickable:hover {
    border-color: rgba(255, 165, 2, 0.6);
    background: rgba(255, 165, 2, 0.12);
}

.snapshot-value {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 2px;
}

.snapshot-value.healthy { color: #00d4aa; }
.snapshot-value.attention { color: #ffa502; }
.snapshot-value.critical { color: #ff4757; }

.snapshot-label {
    font-size: 9px;
    color: #6b8a7a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.snapshot-cta {
    font-size: 9px;
    color: #ffa502;
    margin-top: 4px;
    font-weight: 500;
}

.snapshot-trend {
    font-size: 10px;
    margin-top: 2px;
    font-family: 'SF Mono', Monaco, monospace;
}

.snapshot-trend.up { color: #00d4aa; }
.snapshot-trend.down { color: #ff4757; }
.snapshot-trend.stable { color: #6b8a7a; }

/* ========== AGENT DASHBOARD GRID (6 Agents) ========== */
.agents-section {
    margin-bottom: 20px;
}

.agents-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 0 4px;
}

.agents-title {
    font-size: 14px;
    font-weight: 600;
    color: #e8f5f1;
    letter-spacing: 0.3px;
}

/* 6-Agent Grid: 3×2 on desktop, 2×3 on tablet, 2-col on mobile */
.agents-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

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

@media (max-width: 480px) {
    .agents-grid {
        grid-template-columns: 1fr;
    }
}

/* Metric-First Agent Card */
.agent-card {
    background: rgba(20, 27, 24, 0.9);
    border-radius: 14px;
    padding: 14px;
    border: 1px solid rgba(107, 138, 122, 0.15);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.agent-card:hover {
    border-color: rgba(0, 212, 170, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.agent-card.highlight {
    border-color: rgba(0, 212, 170, 0.5);
    box-shadow: 0 0 16px rgba(0, 212, 170, 0.1);
}

.agent-card.healthy {
    border-top: 3px solid #00d4aa;
}

.agent-card.attention {
    border-top: 3px solid #ffa502;
}

.agent-card.critical {
    border-top: 3px solid #ff4757;
}

.agent-status-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 6px;
}

.agent-status-pill {
    font-size: 9px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.agent-status-pill.healthy {
    background: rgba(0, 212, 170, 0.12);
    color: #00d4aa;
}

.agent-status-pill.attention {
    background: rgba(255, 165, 2, 0.12);
    color: #ffa502;
}

.agent-status-pill.critical {
    background: rgba(255, 71, 87, 0.12);
    color: #ff4757;
}

.agent-name {
    font-size: 13px;
    font-weight: 600;
    color: #e8f5f1;
    line-height: 1.3;
    margin-bottom: 10px;
}

.agent-kpi {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 4px;
}

.agent-kpi-value {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 28px;
    font-weight: 700;
    color: #e8f5f1;
    line-height: 1;
}

.agent-kpi-label {
    font-size: 11px;
    color: #6b8a7a;
}

.agent-kpi-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.agent-secondary {
    font-size: 11px;
    color: #6b8a7a;
}

.agent-trend {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 11px;
    font-weight: 600;
}

.agent-recommendation {
    background: rgba(0, 212, 170, 0.06);
    border-left: 2px solid rgba(0, 212, 170, 0.4);
    padding: 8px 10px;
    border-radius: 0 6px 6px 0;
    margin-bottom: 10px;
}

.rec-label {
    font-size: 9px;
    font-weight: 600;
    color: #00d4aa;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-right: 4px;
}

.rec-action {
    font-size: 11px;
    color: #8a9a8a;
    line-height: 1.4;
}

.agent-impact-row {
    margin-bottom: 10px;
}

.impact-value {
    font-size: 10px;
    color: #4ecdc4;
    font-weight: 500;
}

.agent-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid rgba(107, 138, 122, 0.1);
}

.approval-indicator {
    font-size: 9px;
    color: #ffa502;
    display: flex;
    align-items: center;
    gap: 4px;
}

.expand-hint {
    font-size: 12px;
    color: #6b8a7a;
    transition: transform 0.2s ease;
}

.agent-card:hover .expand-hint {
    transform: translateX(3px);
    color: #00d4aa;
}

/* Expanded Agent Content */
.agent-content {
    display: none;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(107, 138, 122, 0.15);
    animation: fadeIn 0.2s ease;
}

.agent-content.expanded {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== ATTENTION INBOX ========== */
.attention-section {
    margin-bottom: 20px;
}

.attention-inbox {
    background: rgba(20, 27, 24, 0.6);
    border: 1px solid rgba(107, 138, 122, 0.15);
    border-radius: 12px;
    overflow: hidden;
}

.inbox-collapsed {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.inbox-collapsed:hover {
    background: rgba(0, 212, 170, 0.04);
}

.inbox-collapsed-icon {
    font-size: 16px;
}

.inbox-collapsed-text {
    font-size: 13px;
    color: #e8f5f1;
    font-weight: 500;
}

.inbox-collapsed-cta {
    margin-left: auto;
    font-size: 11px;
    color: #00d4aa;
    font-weight: 500;
}

.inbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(107, 138, 122, 0.1);
}

.inbox-title {
    font-size: 14px;
    font-weight: 600;
    color: #e8f5f1;
    letter-spacing: 0.3px;
}

.inbox-subtitle {
    font-size: 11px;
    color: #6b8a7a;
    margin-left: 8px;
}

.inbox-close {
    font-size: 18px;
    color: #6b8a7a;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0 4px;
}

.inbox-close:hover {
    color: #e8f5f1;
}

.inbox-list {
    padding: 12px;
}

.inbox-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: rgba(10, 15, 13, 0.4);
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-bottom: 8px;
}

.inbox-item:last-child {
    margin-bottom: 0;
}

.inbox-item:hover {
    border-color: rgba(0, 212, 170, 0.2);
    transform: translateX(2px);
}

.inbox-item.critical {
    border-color: rgba(255, 71, 87, 0.2);
    background: rgba(255, 71, 87, 0.04);
}

.inbox-item.attention {
    border-color: rgba(255, 165, 2, 0.2);
    background: rgba(255, 165, 2, 0.04);
}

.inbox-severity {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 4px;
    flex-shrink: 0;
}

.inbox-severity.critical { background: #ff4757; box-shadow: 0 0 6px rgba(255, 71, 87, 0.4); }
.inbox-severity.attention { background: #ffa502; box-shadow: 0 0 6px rgba(255, 165, 2, 0.4); }
.inbox-severity.insight { background: #4ecdc4; }

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

.inbox-who {
    font-size: 12px;
    font-weight: 600;
    color: #e8f5f1;
    margin-bottom: 2px;
}

.inbox-why {
    font-size: 10px;
    color: #6b8a7a;
    margin-bottom: 3px;
}

.inbox-action {
    font-size: 11px;
    color: #00d4aa;
}

.inbox-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.inbox-time {
    font-size: 9px;
    color: #6b8a7a;
    font-family: 'SF Mono', Monaco, monospace;
}

.inbox-dismiss {
    font-size: 14px;
    color: #6b8a7a;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.inbox-dismiss:hover {
    color: #e8f5f1;
}

/* ========== LEAD CARDS (inside agent) ========== */
.lead-card {
    background: rgba(10, 15, 13, 0.6);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s ease;
}

.lead-card:hover {
    border-color: rgba(0, 212, 170, 0.2);
}

.lead-card.qualified {
    opacity: 0.6;
}

.lead-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px;
}

.lead-name {
    font-weight: 600;
    font-size: 12px;
    color: #e8f5f1;
}

.lead-status {
    font-size: 9px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.lead-meta {
    font-size: 10px;
    color: #6b8a7a;
    margin-bottom: 4px;
}

.lead-interest {
    font-size: 11px;
    color: #8a9a8a;
    line-height: 1.4;
}

.lead-details {
    margin-top: 8px;
}

.lead-details.hidden {
    display: none;
}

.lead-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.memory-timeline {
    margin: 8px 0;
    padding-left: 10px;
    border-left: 2px solid rgba(107, 138, 122, 0.2);
}

.memory-item {
    position: relative;
    padding: 4px 0 4px 10px;
    font-size: 10px;
}

.memory-item::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #00d4aa;
}

.memory-date {
    font-weight: 600;
    color: #6b8a7a;
    font-size: 9px;
    font-family: 'SF Mono', Monaco, monospace;
}

.memory-note {
    color: #8a9a8a;
    margin-top: 1px;
}

/* ========== SESSION & MATCHING (inside agent) ========== */
.session-card {
    background: rgba(10, 15, 13, 0.8);
    border: 1px solid rgba(0, 212, 170, 0.15);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
}

.session-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.session-court {
    font-weight: 600;
    font-size: 12px;
    color: #00d4aa;
}

.session-time {
    font-size: 11px;
    color: #6b8a7a;
    font-family: 'SF Mono', Monaco, monospace;
}

.session-format {
    font-size: 10px;
    color: #4ecdc4;
    margin-bottom: 6px;
}

.session-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #8a9a8a;
}

.status-dots {
    display: flex;
    gap: 2px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00d4aa;
    box-shadow: 0 0 3px rgba(0, 212, 170, 0.3);
}

.status-dot.empty {
    background: #3a4a42;
    box-shadow: none;
}

.member-list {
    margin-top: 8px;
}

.member-item {
    background: rgba(10, 15, 13, 0.5);
    border-radius: 6px;
    padding: 8px;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid transparent;
    transition: all 0.15s ease;
}

.member-item:hover {
    border-color: rgba(0, 212, 170, 0.15);
}

.member-info {
    flex: 1;
}

.member-name {
    font-weight: 600;
    font-size: 12px;
    color: #e8f5f1;
    margin-bottom: 1px;
}

.member-meta {
    font-size: 9px;
    color: #6b8a7a;
}

.member-reason {
    font-size: 9px;
    color: #8a9a8a;
    margin-top: 2px;
    font-style: italic;
}

.member-score {
    text-align: right;
}

.score-value {
    font-size: 14px;
    font-weight: 700;
    color: #00d4aa;
    font-family: 'SF Mono', Monaco, monospace;
}

.score-label {
    font-size: 8px;
    color: #6b8a7a;
    text-transform: uppercase;
}

/* ========== DORMANT MEMBER (inside agent) ========== */
.dormant-card {
    background: rgba(255, 165, 2, 0.06);
    border-radius: 8px;
    padding: 10px;
    border: 1px solid rgba(255, 165, 2, 0.2);
}

.dormant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.dormant-name {
    font-weight: 600;
    font-size: 13px;
    color: #e8f5f1;
}

.dormant-risk {
    font-size: 9px;
    font-weight: 600;
    color: #ffa502;
    background: rgba(255, 165, 2, 0.12);
    padding: 2px 6px;
    border-radius: 12px;
    text-transform: uppercase;
}

.dormant-meta {
    font-size: 11px;
    color: #8a9a8a;
    margin-bottom: 8px;
}

.whatsapp-preview {
    background: rgba(10, 15, 13, 0.8);
    border-radius: 8px;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid rgba(107, 138, 122, 0.15);
}

.whatsapp-header {
    font-size: 9px;
    color: #6b8a7a;
    margin-bottom: 4px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.whatsapp-bubble {
    background: rgba(0, 212, 170, 0.12);
    border-radius: 8px 8px 0 8px;
    padding: 8px;
    max-width: 90%;
    margin-left: auto;
    font-size: 11px;
    line-height: 1.4;
    color: #e8f5f1;
    border: 1px solid rgba(0, 212, 170, 0.15);
}

.whatsapp-bubble.response {
    background: rgba(107, 138, 122, 0.12);
    border-radius: 8px 8px 8px 0;
    margin-left: 0;
    margin-right: auto;
    margin-top: 4px;
    border-color: rgba(107, 138, 122, 0.15);
}

/* ========== REVENUE & UTILIZATION (inside agent) ========== */
.agent-revenue {
    margin-top: 4px;
}

.revenue-card {
    background: rgba(10, 15, 13, 0.6);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
    border: 1px solid rgba(0, 212, 170, 0.15);
}

.revenue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.revenue-title {
    font-weight: 600;
    font-size: 12px;
    color: #e8f5f1;
}

.revenue-badge {
    font-size: 8px;
    font-weight: 600;
    color: #00d4aa;
    background: rgba(0, 212, 170, 0.12);
    padding: 2px 6px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.revenue-meta {
    font-size: 10px;
    color: #6b8a7a;
    margin-bottom: 8px;
}

.revenue-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.revenue-stat {
    text-align: center;
}

.revenue-stat-value {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 14px;
    font-weight: 700;
    color: #00d4aa;
    margin-bottom: 2px;
}

.revenue-stat-label {
    font-size: 8px;
    color: #6b8a7a;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ========== EVENTS (inside agent) ========== */
.event-card {
    background: rgba(10, 15, 13, 0.6);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
    border: 1px solid transparent;
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px;
}

.event-name {
    font-weight: 600;
    font-size: 12px;
    color: #e8f5f1;
}

.event-capacity {
    font-size: 10px;
    color: #ffa502;
    font-weight: 600;
}

.event-meta {
    font-size: 10px;
    color: #6b8a7a;
    margin-bottom: 6px;
}

.event-bar {
    height: 4px;
    background: rgba(107, 138, 122, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.event-bar-fill {
    height: 100%;
    background: #ffa502;
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* ========== EXPERIMENTS (inside agent) ========== */
.experiment-card {
    background: rgba(10, 15, 13, 0.5);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
    border: 1px solid rgba(107, 138, 122, 0.1);
}

.experiment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.experiment-name {
    font-weight: 600;
    font-size: 12px;
    color: #e8f5f1;
}

.experiment-status {
    font-size: 8px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.experiment-status.running {
    background: rgba(0, 212, 170, 0.12);
    color: #00d4aa;
}

.experiment-lift {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 14px;
    font-weight: 700;
    color: #00d4aa;
    margin-bottom: 2px;
}

.experiment-lift-label {
    font-size: 9px;
    color: #6b8a7a;
    text-transform: uppercase;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.15s ease;
    text-decoration: none;
}

.btn-primary {
    background: rgba(0, 212, 170, 0.12);
    color: #00d4aa;
    border: 1px solid rgba(0, 212, 170, 0.3);
}

.btn-primary:hover {
    background: rgba(0, 212, 170, 0.2);
    box-shadow: 0 0 8px rgba(0, 212, 170, 0.15);
}

.btn-primary:disabled {
    background: rgba(0, 212, 170, 0.06);
    color: #5a8a7a;
    border-color: rgba(0, 212, 170, 0.1);
    cursor: not-allowed;
}

.btn-secondary {
    background: transparent;
    color: #00d4aa;
    border: 1px solid rgba(0, 212, 170, 0.3);
}

.btn-secondary:hover {
    background: rgba(0, 212, 170, 0.08);
}

.btn-text {
    background: transparent;
    color: #6b8a7a;
    font-size: 10px;
    padding: 4px 0;
}

.btn-text:hover {
    color: #00d4aa;
}

/* ========== MODAL ========== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 15, 13, 0.92);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(8px);
}

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

.modal {
    background: rgba(20, 27, 24, 0.98);
    border: 1px solid rgba(0, 212, 170, 0.25);
    border-radius: 12px;
    max-width: 400px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalIn 0.2s ease;
}

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

.modal-header {
    padding: 14px 14px 0;
}

.modal-title {
    font-size: 15px;
    font-weight: 600;
    color: #e8f5f1;
}

.modal-body {
    padding: 12px 14px;
}

.modal-footer {
    padding: 0 14px 14px;
    display: flex;
    justify-content: flex-end;
}

.draft-message {
    background: rgba(10, 15, 13, 0.6);
    border-radius: 6px;
    padding: 12px;
    font-size: 11px;
    line-height: 1.5;
    color: #8a9a8a;
    white-space: pre-wrap;
    border: 1px solid rgba(107, 138, 122, 0.15);
}

.draft-subject {
    font-weight: 600;
    color: #e8f5f1;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(107, 138, 122, 0.15);
}

/* ========== TOAST ========== */
.toast-container {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: none;
}

.toast {
    background: rgba(20, 27, 24, 0.98);
    color: #00d4aa;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid rgba(0, 212, 170, 0.3);
    box-shadow: 0 4px 16px rgba(0, 212, 170, 0.1);
    animation: toastIn 0.25s ease;
    pointer-events: auto;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.toast.hiding {
    animation: toastOut 0.25s ease forwards;
}

@keyframes toastOut {
    to { opacity: 0; transform: translateY(16px); }
}

/* ========== FOOTER ========== */
.demo-footer {
    text-align: center;
    padding: 24px 12px;
    margin-top: 16px;
    border-top: 1px solid rgba(107, 138, 122, 0.15);
}

.footer-disclaimer {
    font-size: 9px;
    color: #6b8a7a;
    margin-bottom: 4px;
}

.footer-positioning {
    font-size: 10px;
    color: #00d4aa;
    font-weight: 500;
}

/* ========== UTILITIES ========== */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .hero-headline {
        font-size: 22px;
    }
    
    .agent-kpi-value {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .snapshot-title-row {
        flex-direction: column;
        gap: 6px;
    }
    
    .snapshot-helper {
        font-size: 10px;
    }
    
    .hero-headline {
        font-size: 20px;
    }
    
    .agent-kpi-value {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .snapshot-chip {
        padding: 8px 10px;
        min-width: 64px;
    }
    
    .snapshot-value {
        font-size: 16px;
    }
    
    .snapshot-label {
        font-size: 8px;
    }
    
    .agent-kpi-value {
        font-size: 24px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .status-pulse {
        animation: none;
    }
}
