/* ============================================
   OPENCLAW DASHBOARD IA — GitHub Pages
   Identique au dashboard PC original
   Claude Opus 4.6 — 17/02/2026
   ============================================ */

:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --critical-color: #dc2626;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-hover: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border-color: #334155;
    --purple: #8b5cf6;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 0;
}

/* === TOP MENU BAR === */
.top-menu {
    background: transparent;
    border: none;
    padding: 8px 48px 0;
    position: sticky; top: 0; z-index: 1000;
    max-width: 1800px;
    margin: 0 auto 0;
}
.top-menu-inner {
    max-width: 100%; margin: 0 auto; padding: 12px 32px;
    display: flex; align-items: center; justify-content: space-between;
    background: #1e293b;
    border: 1px solid #334155;
    border-bottom: 1px solid #334155;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}
.menu-left { display: flex; align-items: center; gap: 4px; }
.menu-left a {
    color: #cbd5e1; text-decoration: none; font-size: 14px;
    font-weight: 600; padding: 10px 20px; border-radius: 8px;
    transition: all 0.2s; border: 1px solid transparent;
}
.menu-left a:hover { color: #f1f5f9; background: #1e293b; border-color: #334155; }
.menu-left a.active {
    color: #f1f5f9; background: linear-gradient(135deg, #1e293b, #1e3a5f);
    border-color: #3b82f6;
}
.menu-right { display: flex; align-items: center; gap: 16px; }
.btn-config-nav {
    background: none; border: 1px solid #334155; color: #94a3b8;
    padding: 8px 16px; border-radius: 8px; font-size: 13px;
    cursor: pointer; transition: all 0.2s; font-weight: 500;
}
.btn-config-nav:hover { border-color: var(--primary-color); color: var(--primary-color); background: rgba(59,130,246,0.1); }
.nav-home-link {
    color: #94a3b8; text-decoration: none; font-size: 14px;
    font-weight: 500; padding: 8px 16px; border-radius: 8px;
    transition: all 0.2s;
}
.nav-home-link:hover { color: #f1f5f9; background: #1e293b; }

/* === CONTAINER === */
.container {
    width: 100%; max-width: 1800px; padding: 0 48px; margin: 0 auto;
}

/* === HEADER === */
header {
    display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 20px;
    padding: 16px 32px;
    background-color: #1e293b;
    border-radius: 0 0 16px 16px;
    border: 1px solid #334155;
    border-top: none;
}
header .logo { display: flex; align-items: baseline; gap: 30px; }
header .logo h1 { font-size: 32px; white-space: nowrap; letter-spacing: -0.5px; font-weight: 700; }
header .logo h1 span { color: var(--primary-color); }
.header-alerts-bar { font-size: 24px; font-weight: 700; color: #f1f5f9; }
.ha-count { font-size: 30px; font-weight: 800; color: #ef4444; }

.status-bar { display: flex; align-items: center; gap: 16px; }
.status-dot {
    width: 10px; height: 10px; background-color: var(--success-color);
    border-radius: 50%; animation: pulse 2s infinite;
}
.status-dot.status-warning { background-color: var(--warning-color); animation: none; }
.status-dot.status-danger { background-color: var(--danger-color); animation: none; }
.status-text { font-size: 14px; color: var(--text-primary); font-weight: 600; }
.refresh-btn-small {
    background: var(--primary-color); border: none; color: white;
    padding: 8px 16px; border-radius: 8px; cursor: pointer;
    font-size: 13px; transition: background 0.2s;
}
.refresh-btn-small:hover { background: var(--primary-dark); }

/* === ALERT BANNER === */
.alert-banner {
    display: none; background: linear-gradient(90deg, #ef4444, #f97316);
    color: white; padding: 16px 24px; border-radius: 12px; margin-bottom: 20px;
    animation: pulse-alert 1s infinite;
}
.alert-banner h3 { margin: 0 0 8px 0; font-size: 18px; }
.alert-banner p { margin: 0; font-size: 14px; }
.alert-badge {
    background: #ef4444; color: white; padding: 4px 12px;
    border-radius: 20px; font-size: 12px; font-weight: bold; margin-left: 8px;
}

/* === STATS GRID === */
.stats-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 20px; margin-bottom: 24px; width: 100%;
}

.stat-card {
    background-color: var(--bg-card); border-radius: 16px; padding: 20px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex; align-items: center; gap: 16px;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.stat-content h3 {
    font-size: 14px; color: var(--text-secondary);
    text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px;
}
.stat-value {
    font-size: 28px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px;
}
.stat-subtitle {
    font-size: 12px; color: var(--text-secondary); line-height: 1.4;
}

/* === AGENT STATUS LIGHT === */
.agent-status-light {
    display: inline-block; width: 12px; height: 12px;
    border-radius: 50%; margin-left: 8px; vertical-align: middle;
}
.agent-status-light.active {
    background: #10b981; box-shadow: 0 0 10px #10b981, 0 0 20px #10b981;
    animation: glow-green 1.5s infinite;
}
.agent-status-light.inactive {
    background: #ef4444; box-shadow: 0 0 5px #ef4444;
}
.agent-status-light.working {
    background: #3b82f6; box-shadow: 0 0 10px #3b82f6, 0 0 20px #3b82f6;
    animation: glow-blue 1s infinite;
}

/* === AGENT CALL BUTTON === */
.agent-call-btn {
    background: linear-gradient(90deg, #3b82f6, #10b981); border: none;
    color: white; padding: 8px 16px; border-radius: 20px; cursor: pointer;
    font-size: 12px; font-weight: bold; margin-top: 8px; transition: transform 0.2s;
}
.agent-call-btn:hover { transform: scale(1.05); }
.agent-call-btn:disabled { background: #64748b; cursor: not-allowed; transform: none; }

/* === WATCHDOG CARD === */
.watchdog-machines { display: flex; gap: 12px; margin-top: 8px; }
.wd-machine { flex: 1; background: rgba(0,0,0,0.2); border-radius: 6px; padding: 8px; }
.wd-machine-header { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.wd-machine-name { color: #f1f5f9; font-weight: 700; font-size: 12px; }
.wd-machine-times { font-size: 11px; color: #94a3b8; }
.wd-machine-times span { display: block; margin: 2px 0; }
.wd-machine-times strong { color: #f1f5f9; }

/* === REPAIR AGENT CARD === */
.repair-agent-card { border-left: 4px solid #f59e0b; }
.repair-agent-card .stat-content { display: flex; align-items: flex-start; gap: 16px; width: 100%; }
.repair-agent-card .robot-zone { flex-shrink: 0; }
.repair-agent-card .robot-info { flex: 1; }
.repair-agent-card .robot-info h3 { margin-bottom: 4px; }
.repair-halo { background: radial-gradient(circle, rgba(245,158,11,0.3) 0%, transparent 70%); animation: halo-pulse-amber 2s ease-in-out infinite; }
.repair-live-tag { background: #f59e0b !important; }
.repair-call-btn { background: linear-gradient(90deg, #f59e0b, #d97706) !important; }
.repair-screen { fill: #f59e0b !important; }

.repair-status { margin-top: 8px; padding: 6px 0; border-top: 1px solid rgba(255,255,255,0.1); }
.repair-row { display: flex; align-items: center; gap: 6px; font-size: 11px; padding: 2px 0; }
.repair-label { color: #94a3b8; font-weight: 600; min-width: 30px; }
.repair-val { color: #f1f5f9; }

/* === MINIMAX / ANALYSE AGENT CARD === */
.minimax-card { border-left: 4px solid var(--primary-color); }
.minimax-card .stat-content { display: flex; align-items: flex-start; gap: 16px; width: 100%; }
.minimax-card .robot-zone { flex-shrink: 0; }
.minimax-card .robot-info { flex: 1; }
.minimax-card .robot-info h3 { margin-bottom: 4px; }

/* === ROBOT === */
.robot-wrapper { position: relative; width: 90px; height: 90px; }
.robot-halo {
    position: absolute; top: 50%; left: 50%; width: 80px; height: 80px;
    transform: translate(-50%, -50%); border-radius: 50%;
    background: radial-gradient(circle, rgba(59,130,246,0.3) 0%, transparent 70%);
    animation: halo-pulse 2s ease-in-out infinite;
}
.robot-wrapper.alert-mode .robot-halo {
    background: radial-gradient(circle, rgba(239,68,68,0.4) 0%, transparent 70%);
    animation: halo-pulse-red 0.8s ease-in-out infinite;
}
.robot-svg { position: relative; z-index: 1; width: 90px; height: 90px; }
.robot-eye-pupil { animation: eye-scan 3s ease-in-out infinite; }
.robot-wrapper.alert-mode .robot-eye-pupil { fill: #ef4444; animation: eye-scan-fast 0.8s ease-in-out infinite; }
.robot-eye-glow { animation: eye-glow 2s ease-in-out infinite; }
.robot-wrapper.alert-mode .robot-eye-glow { fill: rgba(239,68,68,0.3); animation: eye-glow-red 0.5s ease-in-out infinite; }
.robot-gyro { transform-origin: 45px 10px; animation: gyro-spin 2s linear infinite; }
.robot-wrapper.alert-mode .robot-gyro { animation: gyro-spin 0.4s linear infinite; }
.robot-body-group { animation: robot-breathe 3s ease-in-out infinite; transform-origin: 45px 50px; }
.robot-wrapper.alert-mode .robot-body-group { animation: robot-shake 0.3s ease-in-out infinite; }
.robot-screen { animation: screen-flicker 4s ease-in-out infinite; }
.robot-wrapper.alert-mode .robot-screen { fill: #ef4444; animation: screen-alert 0.5s ease-in-out infinite; }
.robot-live-tag {
    position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    background: #10b981; color: white; font-size: 8px; font-weight: 900;
    padding: 1px 6px; border-radius: 3px; letter-spacing: 1px; z-index: 2;
    animation: live-blink 1.5s ease-in-out infinite;
}
.robot-wrapper.alert-mode .robot-live-tag { background: #ef4444; animation: live-blink-fast 0.5s ease-in-out infinite; }

.minimax-card.alert-active {
    border-left: 4px solid #ef4444 !important;
    animation: card-pulse-border 1s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(239,68,68,0.3);
}

/* Agent cards top align */
.stat-card.repair-agent-card,
.stat-card.minimax-card { align-items: flex-start; }

/* === PC SURVEILLANCE CARD === */
.pc-card { border-left: 4px solid #3b82f6; }
.pc-card .stat-content { width: 100%; }

/* === MAC SURVEILLANCE CARD === */
.mac-card { border-left: 4px solid #10b981; }
.mac-card .stat-content { width: 100%; }
.mac-services { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 8px; }
.mac-svc { display: flex; align-items: center; gap: 6px; font-size: 11px; padding: 3px 6px; border-radius: 4px; background: rgba(0,0,0,0.2); }
.mac-svc-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.mac-svc-dot.up { background: #10b981; box-shadow: 0 0 6px #10b981; }
.mac-svc-dot.down { background: #ef4444; box-shadow: 0 0 6px #ef4444; }
.mac-svc-name { color: #94a3b8; }
.mac-svc-val { color: #f1f5f9; font-weight: 600; margin-left: auto; }
.mac-stats-row { display: flex; gap: 12px; margin-top: 6px; font-size: 11px; }
.mac-stat-item { color: #94a3b8; }
.mac-stat-item span { color: #f1f5f9; font-weight: 600; }

/* === PLANNING CARD === */
.planning-card { border-left: 4px solid #8b5cf6; }
.schedule-list { max-height: 200px; overflow-y: auto; }
.schedule-item { display: flex; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 12px; }
.schedule-time { font-family: 'Consolas', monospace; color: #8b5cf6; font-weight: 700; min-width: 60px; font-size: 11px; }
.schedule-name { color: #f1f5f9; flex: 1; }
.schedule-desc { color: #64748b; font-size: 10px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.schedule-tab { display: flex; gap: 8px; margin-bottom: 8px; }
.schedule-tab button { background: #334155; border: none; color: #94a3b8; padding: 4px 12px; border-radius: 6px; cursor: pointer; font-size: 11px; font-weight: 600; }
.schedule-tab button.active { background: #8b5cf6; color: white; }

/* === SECTIONS (Graphs, Alerts, Logs) === */
.graphs-section, .alerts-section, .logs-section {
    background-color: var(--bg-card);
    border-radius: 16px; padding: 24px;
    border: 1px solid var(--border-color); margin-bottom: 20px;
}
.section-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px; padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}
.section-header h2 { font-size: 18px; font-weight: 600; }

/* === GRAPHS === */
.graphs-section { overflow: visible; }
.graphs-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; overflow: visible; }
.graph-card { background: var(--bg-hover); border-radius: 12px; padding: 16px; overflow: visible; height: auto; min-height: 0; }
.graph-card h3 { font-size: 14px; color: var(--text-secondary); margin-bottom: 12px; }
.chart-placeholder { background: #1e293b; border-radius: 12px; padding: 20px; text-align: center; color: #94a3b8; max-height: none; height: auto; overflow: visible; }
.chart-bar { background: linear-gradient(90deg, #3b82f6, #10b981); height: 20px; margin: 8px 0; border-radius: 4px; transition: width 0.5s; }

/* === HISTORY ITEMS === */
.history-item { cursor: pointer; padding: 10px; margin: 4px 0; background: rgba(59, 130, 246, 0.2); border-radius: 6px; }
.history-item:hover { background: rgba(59, 130, 246, 0.4); }

/* === ALERTS TABLE === */
.alerts-table-container { overflow-x: auto; }
.alerts-table { width: 100%; border-collapse: collapse; }
.alerts-table thead { background: var(--bg-hover); }
.alerts-table th {
    padding: 12px 16px; text-align: left; font-size: 12px;
    color: var(--text-secondary); font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.alerts-table td { padding: 12px 16px; border-bottom: 1px solid var(--border-color); font-size: 14px; }
.alerts-table tbody tr { cursor: pointer; transition: background 0.2s; }
.alerts-table tbody tr:hover { background: rgba(59,130,246,0.1); }
.alert-row-critical { background: rgba(239, 68, 68, 0.2) !important; border-left: 4px solid #ef4444; }
.alert-row-high { background: rgba(249, 115, 22, 0.2) !important; border-left: 4px solid #f97316; }
.alert-row-medium { background: rgba(234, 179, 8, 0.2) !important; border-left: 4px solid #eab308; }
.alert-level {
    display: inline-block; padding: 4px 10px; border-radius: 6px;
    font-size: 11px; font-weight: 600; text-transform: uppercase;
}
.alert-level.CRITICAL { background: rgba(239,68,68,0.15); color: #ef4444; border: 1px solid #ef4444; }
.alert-level.HIGH { background: rgba(249,115,22,0.15); color: #f97316; border: 1px solid #f97316; }
.alert-level.MEDIUM { background: rgba(234,179,8,0.15); color: #eab308; border: 1px solid #eab308; }
.alert-level.LOW { background: rgba(59,130,246,0.15); color: #3b82f6; border: 1px solid #3b82f6; }

/* === LOGS === */
.live-indicator {
    display: none; background: #ef4444; color: white; padding: 2px 8px;
    border-radius: 4px; font-size: 11px; margin-left: 8px; animation: pulse 1s infinite;
}
.live-indicator.visible { display: inline-block; }
.progress-container { display: none; margin: 16px 0; padding: 16px; background: #1e293b; border-radius: 8px; }
.progress-container.active { display: block; }
.progress-bar-bg { background: #334155; border-radius: 4px; height: 24px; overflow: hidden; }
.progress-bar-fill {
    background: linear-gradient(90deg, #3b82f6, #10b981); height: 100%; width: 0%;
    transition: width 0.3s; display: flex; align-items: center; justify-content: center;
    color: white; font-weight: bold; font-size: 12px;
}
.progress-text { color: #94a3b8; font-size: 12px; margin-top: 8px; text-align: center; }
.logs-container { max-height: 300px; overflow-y: auto; }
.logs-container .no-alerts { text-align: center; padding: 40px; color: var(--text-secondary); font-size: 14px; }
.log-item {
    padding: 12px 16px; margin-bottom: 8px; border-radius: 8px;
    background: rgba(0, 0, 0, 0.2); font-family: 'Consolas', 'Monaco', monospace;
    font-size: 12px; border-left: 3px solid var(--border-color); cursor: pointer;
}
.log-item:hover { background: rgba(0,0,0,0.35); }
.log-item.danger { border-left-color: var(--danger-color); background: rgba(239, 68, 68, 0.1); }
.log-item.safe { border-left-color: #3b82f6; background: rgba(59, 130, 246, 0.1); }

/* === BUTTONS === */
.action-btn {
    background: var(--bg-hover); border: 1px solid var(--border-color);
    color: var(--text-primary); padding: 6px 12px; border-radius: 6px;
    cursor: pointer; font-size: 12px; transition: all 0.2s;
}
.action-btn:hover { background: var(--primary-color); border-color: var(--primary-color); }
.action-btn.export-btn { border-left: 3px solid var(--success-color); }
.action-btn.clear-btn { border-left: 3px solid var(--danger-color); }
.header-actions { display: flex; gap: 8px; }

/* === NO DATA === */
.no-data { text-align: center; color: var(--text-secondary); padding: 40px; }

/* === MODALS === */
.modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.8); z-index: 2000;
    justify-content: center; align-items: center;
}
.modal-overlay.visible { display: flex; }
.modal {
    background: #1e293b; border: 1px solid #334155;
    border-radius: 16px; padding: 24px; max-width: 450px; width: 90%;
}
.modal-large { max-width: 550px; max-height: 80vh; overflow-y: auto; }
.modal h3 { color: var(--primary-color); margin-bottom: 16px; font-size: 16px; }
.modal label { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 4px; }
.modal input {
    width: 100%; padding: 10px 14px; background: var(--bg-dark);
    border: 1px solid var(--border-color); border-radius: 8px;
    color: var(--text-primary); font-size: 14px; margin-bottom: 12px;
}
.modal .btn-connect {
    width: 100%; padding: 12px; background: var(--primary-color); border: none;
    color: white; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 600;
    transition: background 0.2s;
}
.modal .btn-connect:hover { background: var(--primary-dark); }
.modal-note { font-size: 12px; color: var(--text-secondary); text-align: center; margin-top: 12px; }
.modal-close {
    margin-top: 16px; padding: 12px 24px; background: var(--primary-color);
    border: none; color: white; border-radius: 8px; cursor: pointer; width: 100%; font-size: 14px;
}

/* === FOOTER === */
.dash-footer {
    max-width: 1800px; margin: 20px auto; padding: 16px 48px;
    text-align: center; color: var(--text-secondary); font-size: 12px;
    border-top: 1px solid var(--border-color);
}

/* === ANIMATIONS === */
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes pulse-alert { 0%,100% { transform: scale(1); } 50% { transform: scale(1.02); } }
@keyframes halo-pulse { 0%,100% { transform: translate(-50%,-50%) scale(1); opacity: 0.6; } 50% { transform: translate(-50%,-50%) scale(1.15); opacity: 1; } }
@keyframes halo-pulse-amber { 0%,100% { transform: translate(-50%,-50%) scale(1); opacity: 0.6; } 50% { transform: translate(-50%,-50%) scale(1.15); opacity: 1; } }
@keyframes halo-pulse-red { 0%,100% { transform: translate(-50%,-50%) scale(1); opacity: 0.5; } 50% { transform: translate(-50%,-50%) scale(1.3); opacity: 1; } }
@keyframes eye-scan { 0%,100% { transform: translateX(0); } 25% { transform: translateX(2px); } 75% { transform: translateX(-2px); } }
@keyframes eye-scan-fast { 0%,100% { transform: translateX(0); } 25% { transform: translateX(3px); } 75% { transform: translateX(-3px); } }
@keyframes eye-glow { 0%,100% { opacity: 0.3; } 50% { opacity: 0.7; } }
@keyframes eye-glow-red { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }
@keyframes gyro-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes robot-breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.02); } }
@keyframes robot-shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-1px); } 75% { transform: translateX(1px); } }
@keyframes screen-flicker { 0%,100% { opacity: 1; } 50% { opacity: 0.7; } }
@keyframes screen-alert { 0%,100% { opacity: 1; fill: #ef4444; } 50% { opacity: 0.4; fill: #ff6b6b; } }
@keyframes card-pulse-border { 0%,100% { box-shadow: 0 0 10px rgba(239,68,68,0.2); } 50% { box-shadow: 0 0 25px rgba(239,68,68,0.5); } }
@keyframes live-blink { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes live-blink-fast { 0%,100% { opacity: 1; } 50% { opacity: 0.2; } }
@keyframes glow-green { 0%,100% { box-shadow: 0 0 5px #10b981, 0 0 10px #10b981; } 50% { box-shadow: 0 0 15px #10b981, 0 0 25px #10b981; } }
@keyframes glow-blue { 0%,100% { box-shadow: 0 0 5px #3b82f6, 0 0 10px #3b82f6; } 50% { box-shadow: 0 0 15px #3b82f6, 0 0 25px #3b82f6; } }

/* === SCROLLBARS === */
.alerts-table-container::-webkit-scrollbar,
.logs-container::-webkit-scrollbar,
.schedule-list::-webkit-scrollbar { height: 6px; width: 6px; }
.alerts-table-container::-webkit-scrollbar-track,
.logs-container::-webkit-scrollbar-track,
.schedule-list::-webkit-scrollbar-track { background: var(--bg-dark); }
.alerts-table-container::-webkit-scrollbar-thumb,
.logs-container::-webkit-scrollbar-thumb,
.schedule-list::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .container { padding: 0 24px; }
    .top-menu { padding: 8px 24px 0; }
    .graphs-container { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .top-menu { padding: 8px 16px 0; }
    header { flex-direction: column; gap: 16px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-value { font-size: 24px; }
    .section-header { flex-direction: column; gap: 12px; align-items: flex-start; }
    .menu-left { flex-wrap: wrap; }
}
@media (max-width: 480px) {
    .container { padding: 0 12px; }
    .top-menu { padding: 4px 12px 0; }
    .stats-grid { grid-template-columns: 1fr; }
    .stat-card { flex-direction: column; text-align: center; }
    .repair-agent-card .stat-content,
    .minimax-card .stat-content { flex-direction: column; align-items: center; }
    .mac-services { grid-template-columns: 1fr; }
    .watchdog-machines { flex-direction: column; }
}
