@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #0A0A0B;
  --surface: #141416;
  --surface-2: #0F0F11;
  --border: #1C1C1F;
  --border-2: #2A2A2E;
  --text: #E8E8EA;
  --text-muted: #9B9BA3;
  --text-dim: #55555D;
  --red: #E0272E;
  --green: #3DD98B;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
.mono { font-family: 'JetBrains Mono', monospace; }
::selection { background: var(--red); color: #fff; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 32px; box-sizing: border-box; }

.navbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px; border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.brand .accent { color: var(--red); }

.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; color: var(--text-muted); }
.nav-actions { display: flex; align-items: center; gap: 14px; }

.btn {
  display: inline-block; border: none; border-radius: 8px; font-weight: 600;
  font-size: 14px; cursor: pointer; padding: 11px 20px;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-ghost { background: none; border: 1px solid var(--border-2); color: var(--text); }
.btn-text { background: none; border: none; color: var(--text); }

.hero { padding: 90px 32px 70px; text-align: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border-2);
  border-radius: 999px; padding: 6px 14px; font-size: 12px; color: var(--text-muted); margin-bottom: 26px;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.hero h1 { font-size: 52px; line-height: 1.1; font-weight: 800; letter-spacing: -1.5px; margin: 0 0 20px; }
.hero p.lead { font-size: 17px; color: var(--text-muted); max-width: 620px; margin: 0 auto 34px; }

.section { padding: 70px 32px; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head .eyebrow { color: var(--red); font-size: 12.5px; letter-spacing: 1.5px; margin: 0 0 10px; }
.section-head h2 { font-size: 32px; font-weight: 800; letter-spacing: -0.5px; margin: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 26px; }
.card h3 { font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.card p { font-size: 14px; color: var(--text-muted); margin: 0; }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 40px; }

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 7px; }
.form-field input {
  width: 100%; background: #0E0E10; border: 1px solid var(--border-2); border-radius: 8px;
  padding: 12px 14px; color: var(--text); font-size: 14px;
}
.form-field input:focus { outline: none; border-color: var(--red); }

.alert { border-radius: 10px; padding: 13px 16px; font-size: 13.5px; margin-bottom: 20px; }
.alert-error { background: rgba(224,39,46,0.1); border: 1px solid rgba(224,39,46,0.3); color: #FF8A8E; }
.alert-success { background: rgba(61,217,139,0.1); border: 1px solid rgba(61,217,139,0.3); color: var(--green); }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); }
th { color: var(--text-muted); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.4px; }

.footer { padding: 40px 32px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--text-dim); flex-wrap: wrap; gap: 14px; }
.footer-links { display: flex; gap: 24px; }

.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar { width: 240px; border-right: 1px solid var(--border); padding: 24px 18px; flex-shrink: 0; }
.admin-sidebar a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--text-muted); font-size: 14px; margin-bottom: 4px; }
.admin-sidebar a.active, .admin-sidebar a:hover { background: var(--surface); color: var(--text); }
.admin-main { flex: 1; padding: 36px 40px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.stat-card .value { font-size: 26px; font-weight: 800; }
.stat-card .label { font-size: 12.5px; color: var(--text-muted); }

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero h1 { font-size: 36px; }
  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
