*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', sans-serif; background: #0f1117; color: #e2e8f0; }

/* Auth */
.auth-page { display:flex; align-items:center; justify-content:center; min-height:100vh; }
.auth-box { background:#1a1d27; padding:2rem; border-radius:12px; width:100%; max-width:380px; box-shadow:0 8px 32px rgba(0,0,0,.4); }
.auth-box h1 { text-align:center; margin-bottom:1.5rem; font-size:1.4rem; color:#63b3ed; }
.auth-box input { display:block; width:100%; padding:.75rem 1rem; margin-bottom:1rem; background:#252836; border:1px solid #2d3148; border-radius:8px; color:#e2e8f0; font-size:1rem; }
.auth-box button { width:100%; padding:.8rem; background:#3b82f6; color:#fff; border:none; border-radius:8px; font-size:1rem; cursor:pointer; }
.auth-box button:hover { background:#2563eb; }
.error { background:#3b1a1a; color:#fc8181; padding:.6rem 1rem; border-radius:6px; margin-bottom:1rem; font-size:.9rem; }

/* Nav */
nav { display:flex; justify-content:space-between; align-items:center; padding:.8rem 1.5rem; background:#1a1d27; border-bottom:1px solid #2d3148; }
nav span { font-weight:600; color:#63b3ed; }
nav a { color:#a0aec0; text-decoration:none; margin-left:1rem; font-size:.9rem; }
nav a:hover { color:#e2e8f0; }

/* Layout */
.container { max-width:1200px; margin:0 auto; padding:1.5rem; }

/* KPI */
.kpi-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:1rem; margin-bottom:1.5rem; }
.kpi-card { background:#1a1d27; border-radius:12px; padding:1.2rem 1.5rem; border:1px solid #2d3148; }
.kpi-card h3 { font-size:.75rem; color:#718096; text-transform:uppercase; letter-spacing:.05em; margin-bottom:.5rem; }
.kpi-value { font-size:2rem; font-weight:700; color:#63b3ed; }
.kpi-sub { font-size:.85rem; color:#a0aec0; margin-top:.3rem; }

/* Grafer */
.chart-box { background:#1a1d27; border-radius:12px; padding:1.5rem; margin-bottom:1.5rem; border:1px solid #2d3148; }
.chart-box h2 { font-size:.95rem; color:#a0aec0; margin-bottom:1rem; }
canvas { max-height:300px; width:100% !important; }
#heatmapCanvas { max-height:none !important; }

/* Admin */
.admin-form { display:flex; gap:.8rem; flex-wrap:wrap; align-items:center; margin-bottom:2rem; }
.admin-form input[type=email],
.admin-form input[type=password] { padding:.6rem .9rem; background:#252836; border:1px solid #2d3148; border-radius:8px; color:#e2e8f0; }
.admin-form button { padding:.6rem 1.2rem; background:#3b82f6; color:#fff; border:none; border-radius:8px; cursor:pointer; }
h2 { margin:1.5rem 0 .8rem; font-size:1.1rem; color:#a0aec0; }
.user-table { width:100%; border-collapse:collapse; }
.user-table th, .user-table td { padding:.7rem 1rem; text-align:left; border-bottom:1px solid #2d3148; font-size:.9rem; }
.user-table th { font-size:.75rem; text-transform:uppercase; color:#718096; }
.user-table button { padding:.3rem .8rem; border:none; border-radius:6px; cursor:pointer; background:#2d3148; color:#a0aec0; }
.user-table input { padding:.3rem .5rem; background:#252836; border:1px solid #2d3148; border-radius:6px; color:#e2e8f0; font-size:.85rem; }
.last-updated { font-size: .8rem; color: #718096; margin-bottom: 1rem; }
