@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;700&family=Manrope:wght@400;500;600;700&display=swap");

:root {
  --accent: #b4232c;
  --accent-deep: #7a141b;
  --accent-glow: rgba(180, 35, 44, 0.35);
  --gold: #c9a227;
  --ink: #0b0c0f;
  --ink-2: #1a1d24;
  --muted: #667084;
  --line: #e4e7ee;
  --paper: #eef1f6;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body {
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 90% -10%, rgba(180, 35, 44, 0.12), transparent 55%),
    linear-gradient(180deg, #eef1f6 0%, #e7ebf2 100%);
  -webkit-font-smoothing: antialiased;
}

.font-display { font-family: "Fraunces", Georgia, serif; }

.pro-mesh {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.45) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 85%);
}

.btn-pro {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.2rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 10px 24px var(--accent-glow);
  width: 100%;
}

.btn-pro:hover { filter: brightness(1.05); }

.login-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}

.login-bg { position: absolute; inset: 0; }
.login-bg .orb1 {
  position: absolute;
  left: -8rem;
  top: 0;
  width: 34rem;
  height: 34rem;
  border-radius: 999px;
  background: rgba(180, 35, 44, 0.3);
  filter: blur(110px);
}
.login-bg .orb2 {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 28rem;
  height: 28rem;
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.2);
  filter: blur(100px);
}

.login-grid {
  position: relative;
  max-width: 72rem;
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  gap: 3rem;
  align-items: center;
  padding: 3.5rem 1.5rem;
}

@media (min-width: 1024px) {
  .login-grid { grid-template-columns: 1.15fr 0.85fr; }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  padding: 0.4rem 0.75rem;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.badge-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--gold); }

.login-card {
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  padding: 1.75rem;
  box-shadow: 0 25px 50px rgba(0,0,0,0.35);
  backdrop-filter: blur(16px);
}

.login-card label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1rem;
}
.login-card input {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.35);
  padding: 0.75rem 1rem;
  color: #fff;
  outline: none;
}
.login-card input:focus { border-color: var(--accent); }

.demo-note {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
}

.admin-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 19rem;
  flex-shrink: 0;
  background:
    radial-gradient(800px 400px at 0% 0%, rgba(180, 35, 44, 0.35), transparent 55%),
    linear-gradient(180deg, #12141a 0%, #0b0c10 100%);
  color: #fff;
  padding: 1rem 0.75rem 1.25rem;
  overflow-y: auto;
}
.sidebar-brand { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0.75rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 0.75rem; }
.sidebar-logo {
  width: 3rem; height: 3rem; border-radius: 1rem;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em;
  box-shadow: 0 12px 30px rgba(180,35,44,0.45);
}
.sidebar-kicker { margin: 0; font-size: 10px; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(255,255,255,0.35); }
.sidebar-title { margin: 0.15rem 0 0; font-family: "Fraunces", serif; font-size: 1.45rem; line-height: 1; }
.sidebar-user { margin: 0 0.75rem 1rem; padding: 0.85rem; border-radius: 1rem; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.04); font-size: 0.85rem; }
.sidebar-user p { margin: 0; }
.sidebar-role { margin-top: 0.35rem !important; font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(255,255,255,0.4); }
.sidebar-logout { display: block; margin: 1rem 0.75rem 0; font-size: 0.8rem; color: rgba(255,255,255,0.55); text-decoration: none; }
.sidebar-logout:hover { color: #fff; }
.nav-group { margin-bottom: 1rem; }
.nav-title { font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin: 0 0 0.5rem; padding: 0 0.5rem; }
.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  color: rgba(255,255,255,0.72);
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
  text-decoration: none;
}
.nav-link:hover { background: rgba(255,255,255,0.05); color: #fff; }
.nav-link.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  box-shadow: 0 10px 24px rgba(180,35,44,0.35);
}
.nav-mark { font-size: 10px; color: rgba(255,255,255,0.35); margin-right: 0.35rem; font-family: ui-monospace, monospace; }
.nav-link.active .nav-mark { color: rgba(255,255,255,0.7); }
.nav-dot { width: 6px; height: 6px; border-radius: 999px; background: #fff; }

.main { flex: 1; padding: 1.5rem 2rem; overflow-x: auto; }
.page-kicker { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin: 0; }
.page-title { margin: 0.25rem 0 0.5rem; font-size: 2rem; }
.page-desc { margin: 0 0 1.5rem; color: var(--muted); max-width: 42rem; line-height: 1.6; }
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 10px 40px rgba(10, 12, 18, 0.08);
  overflow: hidden;
}
.panel-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--line);
}
.panel-count { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th, .data-table td { padding: 0.85rem 1.25rem; text-align: left; border-bottom: 1px solid var(--line); }
.data-table th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); background: #f8f9fc; }
.data-table tr:last-child td { border-bottom: 0; }
.btn-secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: not-allowed;
  opacity: 0.75;
}
.pill { display: inline-flex; padding: 0.2rem 0.55rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.pill-success { background: rgba(16,185,129,0.12); color: #047857; }
.pill-neutral { background: rgba(102,112,132,0.12); color: #475467; }
.form-panel { padding: 1.25rem; display: grid; gap: 1rem; max-width: 36rem; }
.field span { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.35rem; }
.field input {
  width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 0.7rem 0.9rem; background: #f8f9fc;
}
.chip {
  border-radius: 999px; background: rgba(255,255,255,0.1); padding: 0.25rem 0.75rem;
  font-size: 11px; font-weight: 700; color: #fff;
}

@media (max-width: 900px) {
  .admin-layout { flex-direction: column; }
  .sidebar { width: 100%; max-height: none; }
}
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.7);
  background: linear-gradient(135deg, #1a1d24 0%, #2a1014 48%, #1a1d24 100%);
  color: #fff;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
}
.hero h2 { font-family: "Fraunces", serif; font-size: 2rem; margin: 0.5rem 0; }
.stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stat {
  background: #fff;
  border-radius: 22px;
  border: 1px solid var(--line);
  padding: 1.25rem;
  box-shadow: 0 10px 40px rgba(10, 12, 18, 0.08);
}
.stat span { display: block; font-size: 0.75rem; color: var(--muted); font-weight: 600; }
.stat strong { display: block; font-size: 2rem; margin-top: 0.35rem; }
.demo-banner {
  margin-bottom: 1rem;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  background: rgba(201, 162, 39, 0.15);
  border: 1px solid rgba(201, 162, 39, 0.35);
  color: #7a5d00;
  font-size: 0.85rem;
}
