* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(37,99,235,0.06), transparent 28%),
              radial-gradient(circle at 80% 10%, rgba(14,165,233,0.06), transparent 26%),
              #0b0f17;
  color: #e5e7eb;
  min-height: 100vh;
  padding-bottom: 70px;
}
a { color: #8ab4ff; text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.3rem;
  background: #0f172a;
  border-bottom: 1px solid #1f2937;
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg,#2563eb,#0ea5e9);
  display: grid; place-items: center;
  font-weight: 700;
}
.brand-name { font-weight: 700; letter-spacing: 0.02em; }
.brand-sub { font-size: 0.78rem; color: #9ca3af; }
.nav-links { display: flex; align-items: center; gap: 1rem; }
.nav-links a { font-size: 0.92rem; }
.lang-switch { position: relative; }
.lang-btn { background: #1f2937; border: 1px solid #334155; cursor: pointer; }
.lang-menu { position: absolute; top: 110%; right: 0; background: #0f172a; border:1px solid #1f2937; border-radius:8px; display:none; flex-direction: column; min-width: 80px; }
.lang-menu a { padding: 0.4rem 0.6rem; }
.lang-switch:hover .lang-menu { display:flex; }

.main-wrapper { padding: 1.5rem; max-width: 1200px; margin: 0 auto; }
.flash-list { list-style: none; padding: 0; margin: 0 0 1rem 0; }
.flash { padding: 0.65rem 0.8rem; border-radius: 0.5rem; background: rgba(59,130,246,0.08); border: 1px solid #1d4ed8; }
.flash-error { background: rgba(239,68,68,0.12); border-color: #dc2626; }
.flash-success { background: rgba(52,211,153,0.12); border-color: #10b981; }

.hero {
  padding: 1.1rem 1.25rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(14,165,233,0.05));
  border: 1px solid #1f2937;
  box-shadow: 0 18px 36px rgba(0,0,0,0.35);
  margin-bottom: 1rem;
}
.hero h1 { margin: 0.2rem 0 0.35rem 0; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; color: #9ca3af; font-size: 0.78rem; }
.badge-inline { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.badge {
  display: inline-flex;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid #334155;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(360px,1fr)); gap: 1rem; }
.grid.two { grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); }
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1rem; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } }

.card {
  background: #0f172a;
  border: 1px solid #1f2937;
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.4rem; }
.card h3 { margin: 0 0 0.25rem 0; font-size: 1.05rem; }
.muted { color: #9ca3af; font-size: 0.95rem; }
.muted.small { font-size: 0.82rem; }
.pill { display: inline-flex; align-items: center; gap: 0.35rem; border: 1px solid #334155; border-radius: 999px; padding: 0.25rem 0.7rem; background: #0b1224; }
.pill.danger { border-color: #dc2626; color: #fca5a5; }
.pill.danger:hover { background: rgba(220,38,38,0.12); }
.pill-list { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0 0 0.6rem 0; list-style: none; }
.bullet-list { margin: 0.2rem 0 0 1.1rem; padding: 0; }
.bullet-list li { margin: 0.12rem 0; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); gap: 0.7rem; margin-top: 0.8rem; }
.stat-block { background: #0b1224; border: 1px solid #1f2937; border-radius: 10px; padding: 0.8rem 0.9rem; }
.stat-block .label { font-size: 0.85rem; color: #9ca3af; }
.stat-block .value { font-size: 1.4rem; font-weight: 700; }
.stat-block .value.good { color: #22c55e; }
.stat-block .value.warn { color: #f97316; }

table { width: 100%; border-collapse: collapse; margin-top: 0.6rem; font-size: 0.9rem; }
th, td { padding: 0.45rem 0.55rem; border-bottom: 1px solid #1f2937; text-align: left; }
th { color: #9ca3af; background: #111827; }
tr:nth-child(even) td { background: #0b1224; }
.mini-table th, .mini-table td { font-size: 0.85rem; }

input, select, button, textarea {
  border-radius: 10px;
  border: 1px solid #334155;
  background: #0b1224;
  color: #e5e7eb;
  padding: 0.55rem 0.65rem;
  font-size: 0.95rem;
}
input:focus, select:focus, textarea:focus { outline: 2px solid #2563eb; }
button {
  background: linear-gradient(135deg,#2563eb,#0ea5e9);
  border: none;
  cursor: pointer;
  font-weight: 600;
}
button:hover { filter: brightness(1.05); }
button.pill { background: #0b1224; border: 1px solid #334155; }
button.pill:hover { filter: none; background: #111827; }
textarea { min-height: 120px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 0.8rem; }
.field { display: flex; flex-direction: column; gap: 0.25rem; }
.field.full { grid-column: 1 / -1; }
label { font-size: 0.85rem; color: #9ca3af; }
.switch { position: relative; display: inline-block; width: 46px; height: 24px; }
.switch input { display: none; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
  background-color: #1f2937; transition: .2s; border-radius: 24px; border:1px solid #334155;}
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px;
  background-color: white; transition: .2s; border-radius: 50%;}
.switch input:checked + .slider { background: linear-gradient(135deg,#2563eb,#0ea5e9); }
.switch input:checked + .slider:before { transform: translateX(22px); }

.login-card {
  max-width: 420px;
  margin: 6vh auto;
  padding: 1.25rem 1.4rem;
  border: 1px solid #1f2937;
  border-radius: 14px;
  background: #0f172a;
  box-shadow: 0 16px 36px rgba(0,0,0,0.35);
}

.site-footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  padding: 0.45rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #94a3b8;
  border-top: 1px solid #1f2937;
  background: rgba(15,23,42,0.95);
  backdrop-filter: blur(6px);
  z-index: 20;
}
.footer-cell { white-space: nowrap; flex: 1; display: flex; align-items: center; gap: 0.35rem; }
.footer-cell.center { justify-content: center; }
.footer-cell.version { justify-content: flex-end; text-align: right; color: #cbd5e1; }
.footer-logo { display: inline-flex; align-items: center; }
.footer-logo img { height: 22px; width: auto; display: block; margin: 0; vertical-align: middle; }
