:root {
  --bg: #0f172a;
  --panel: #111827;
  --card: #1f2933;
  --primary: #38bdf8;
  --accent: #22c55e;
  --danger: #ef4444;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --border: #334155;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.4);
  --font: 'Inter', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
}

body {
  font-family: var(--font);
  background: radial-gradient(circle at top, #020617, #020617 40%, #000);
  color: var(--text);
  min-height: 100vh;
}

a {
  color: var(--primary);
  text-decoration: none;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 2rem;
}

.card {
  background: linear-gradient(180deg, #0b1220, #020617);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}

h1,h2,h3 {
  font-weight: 600;
  letter-spacing: .3px;
}

h1 { font-size: 2rem; margin-bottom: 1rem; }
h2 { font-size: 1.5rem; margin-bottom: .75rem; }

input, textarea, select {
  width: 100%;
  background: #020617;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .7rem .8rem;
  color: var(--text);
  margin-bottom: .8rem;
}

input::placeholder, textarea::placeholder {
  color: var(--muted);
}

button {
  background: linear-gradient(135deg, var(--primary), #0ea5e9);
  border: none;
  padding: .7rem 1.4rem;
  border-radius: 999px;
  color: #020617;
  font-weight: 600;
  cursor: pointer;
  transition: .2s;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 20px rgba(56,189,248,.4);
}

button.secondary {
  background: #020617;
  color: var(--text);
  border: 1px solid var(--border);
}

.badge {
  display: inline-block;
  padding: .25rem .7rem;
  border-radius: 999px;
  background: #020617;
  border: 1px solid var(--border);
  font-size: .75rem;
  color: var(--muted);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.nav .logo {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.nav .user {
  color: var(--muted);
  font-size: .9rem;
}

/* Admin dashboard extras */
.sidebar {
  background: linear-gradient(180deg, #020617, #000);
}

.sidebar a {
  transition: all .2s ease;
  font-weight: 500;
}

.sidebar a:hover {
  background: linear-gradient(135deg, #1e293b, #020617);
  transform: translateX(4px);
}

.card {
  position: relative;
  overflow: hidden;
}

.card::after {
  content:'';
  position:absolute;
  inset:0;
  background: linear-gradient(120deg, rgba(56,189,248,.15), transparent 40%);
  opacity:0;
  transition:.3s;
  pointer-events:none;
  z-index:0;
}

.card > * {
  position:relative;
  z-index:1;
}

.card:hover::after {
  opacity:1;
}

.card h3 {
  font-size:1.1rem;
  margin-bottom:.3rem;
}

.card a {
  display:inline-block;
  margin-top:.5rem;
  font-weight:600;
}

.stat {
  font-size:2rem;
  font-weight:700;
  background: linear-gradient(135deg, #38bdf8, #22c55e);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}

