:root {
  --bg: #0d0d1a;
  --surface: #16213e;
  --surface2: #0f3460;
  --accent: #e94560;
  --accent-glow: rgba(233, 69, 96, 0.3);
  --text: #eee;
  --muted: #888;
  --success: #2ecc71;
  --locked: #333;
  --radius: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

main { max-width: 960px; margin: 0 auto; padding: 1.5rem 1rem; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.main-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-brand { font-weight: 700; font-size: 1.1rem; color: var(--text); }
.nav-brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 1.2rem; align-items: center; }
.nav-links a { color: var(--muted); font-size: 0.9rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-user { color: var(--muted); font-size: 0.85rem; }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 0.3rem; text-transform: uppercase; }
input[type="text"], input[type="password"], input[type="number"], select, textarea {
  width: 100%; padding: 0.6rem 0.8rem;
  background: var(--surface2); border: 1px solid #333; border-radius: 6px;
  color: var(--text); font-size: 0.95rem;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }

.btn {
  display: inline-block; padding: 0.6rem 1.2rem;
  background: var(--accent); color: white; border: none; border-radius: 6px;
  font-size: 0.9rem; cursor: pointer; font-weight: 600;
}
.btn:hover { background: #c73e54; text-decoration: none; }
.btn-secondary { background: var(--surface2); }
.btn-secondary:hover { background: var(--surface); }
.btn-small { padding: 0.3rem 0.7rem; font-size: 0.8rem; }
.btn-danger { background: #c0392b; }
.btn-danger:hover { background: #a93226; }

.card {
  background: var(--surface); border-radius: var(--radius); padding: 1.2rem;
  margin-bottom: 0.8rem; border: 1px solid rgba(255,255,255,0.05);
}

.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

.alert { padding: 0.8rem 1rem; border-radius: 6px; margin-bottom: 1rem; font-size: 0.9rem; }
.alert-success { background: rgba(46,204,113,0.15); color: var(--success); }
.alert-error { background: rgba(233,69,96,0.15); color: var(--accent); }
