:root {
  --bg: #030816;
  --text: #eff4ff;
  --muted: #8ea3c7;
  --primary: #0e5eff;
  --border: rgba(255, 255, 255, 0.12);
  --radius-lg: 24px;
  --radius-sm: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #03060D, #08111E, #05070D);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 100px 1.25rem 3rem; }

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  padding: 10px 15px;
  background: rgba(8, 17, 30, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.site-header .container { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: auto; gap: 1rem; }
.brand { font-weight: bold; font-size: 20px; line-height: 1; }
.site-nav { display: flex; gap: 1rem; }
.site-nav a { color: white; transition: 0.3s ease; font-size: 0.95rem; }
.site-nav a:hover { color: #2A8BFF; }

.card {
  width: 100%; max-width: 440px;
  padding: 35px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 0 35px rgba(14,94,255,0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.card h1 { margin: 0 0 0.3rem; font-size: 2rem; letter-spacing: -0.02em; }
.card p { color: var(--muted); margin: 0 0 1.4rem; }

label { display: block; margin: 1rem 0 0.35rem; font-size: 0.9rem; color: var(--muted); }
input {
  width: 100%; padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: var(--text); font-size: 1rem; font-family: inherit;
  transition: 0.3s ease;
}
input:focus { outline: none; border-color: #2A8BFF; box-shadow: 0 0 20px rgba(42,139,255,0.25); }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; margin-top: 1.5rem;
  padding: 16px 34px; border-radius: 40px; border: 1px solid transparent;
  cursor: pointer; transition: 0.3s ease; font-weight: bold; font-size: 1rem; font-family: inherit;
}
.button:hover { transform: translateY(-4px); }
.button:disabled { opacity: 0.6; cursor: wait; transform: none; }
.button-primary { background: #0E5EFF; color: white; box-shadow: 0 0 25px rgba(14,94,255,0.34); }
.button-ghost { color: var(--primary); background: rgba(14, 94, 255, 0.1); }

.error { color: #ff8a8a; min-height: 1.4rem; margin: 1rem 0 0 !important; font-size: 0.95rem; }
.switch { text-align: center; margin: 1.4rem 0 0 !important; font-size: 0.95rem; }
.switch a { color: #2A8BFF; font-weight: 600; }
.badge { display: inline-block; padding: 0.3rem 0.65rem; border-radius: 999px; background: rgba(14, 94, 255, 0.14); color: #8ec5ff; font-size: 0.8rem; margin-bottom: 0.7rem; }
.detail { display: flex; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; border-top: 1px solid var(--border); }
.detail span:first-child { color: var(--muted); }

.site-footer { padding: 30px 20px; color: #888; text-align: center; font-size: 0.9rem; }
@media (max-width: 600px) { .card { padding: 22px; } }

[hidden] { display: none !important; }
.danger-zone { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--border); }
.danger-zone h2 { margin: 0 0 0.3rem; font-size: 1.2rem; }
.button-danger { background: #c62828; color: white; box-shadow: 0 0 25px rgba(198,40,40,0.34); }

.card.wide { max-width: 860px; }
.stat-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.stat { padding: 18px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.05); }
.stat-number { font-size: 2rem; font-weight: 700; color: var(--primary); }
.stat-label { color: var(--muted); font-size: 0.9rem; }
.section-title { font-size: 1.2rem; margin: 2rem 0 1rem; }
.chart { display: flex; align-items: flex-end; gap: 8px; height: 160px; color: var(--muted); }
.bar-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; font-size: 0.7rem; }
.bar { width: 100%; border-radius: 8px 8px 0 0; background: #0E5EFF; box-shadow: 0 0 18px rgba(14,94,255,0.34); }
