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

:root {
  --bg:       #0a0a0c;
  --bg2:      #0e0e11;
  --surface:  #141418;
  --surface2: #1a1a20;
  --surface3: #202028;
  --border:   rgba(255,255,255,0.06);
  --border2:  rgba(255,255,255,0.1);
  --accent:   #e03535;
  --accent2:  #ff5555;
  --accent3:  #ff8888;
  --glow:     rgba(224,53,53,0.2);
  --text:     #eeeef5;
  --text2:    #a0a0b8;
  --muted:    #52526a;
  --green:    #34d399;
  --gold:     #f59e0b;
  --blue:     #60a5fa;
  --purple:   #a78bfa;
  --sw:       60px;
  --content-max: 960px;
}

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

html { font-size: 14px; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  line-height: 1.5;
}

/* ── SIDEBAR ── */
.sidebar {
  width: var(--sw);
  min-height: 100vh;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 0 18px;
  gap: 3px;
  position: fixed;
  left: 0; top: 0;
  z-index: 100;
}

.s-logo {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 15px; color: #fff;
  box-shadow: 0 0 20px var(--glow);
  margin-bottom: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: box-shadow .2s;
  flex-shrink: 0;
}
.s-logo:hover { box-shadow: 0 0 30px rgba(224,53,53,.4); }

.s-divider { width: 28px; height: 1px; background: var(--border); margin: 4px 0; }

.s-avatar {
  margin-top: auto;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a0a0a, #3e1010);
  border: 2px solid rgba(224,53,53,.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--accent2);
  text-decoration: none;
  flex-shrink: 0;
}

.ni {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  text-decoration: none;
  transition: background .15s, color .15s;
  position: relative;
  flex-shrink: 0;
}
.ni:hover { background: var(--surface); color: var(--text2); }
.ni.active { background: rgba(224,53,53,.12); color: var(--accent2); }
.ni svg { width: 18px; height: 18px; }
.ni .dot {
  position: absolute; top: 8px; right: 8px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg2);
}

/* ── MAIN WRAP ── */
.main {
  margin-left: var(--sw);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── PAGE LAYOUT ── */
.page-inner {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 40px;
}

/* ── PAGE HEADER ── */
.page-header {
  padding: 40px 0 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.page-header h1 {
  font-family: 'Syne', sans-serif;
  font-size: 22px; font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 4px;
}
.page-header p { font-size: 13px; color: var(--muted); }
.ph-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px;
  border-radius: 9px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 600;
  cursor: pointer; border: none;
  transition: all .18s;
  white-space: nowrap;
  line-height: 1;
}
.btn svg { width: 13px; height: 13px; flex-shrink: 0; }

.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 3px 14px var(--glow); }
.btn-primary:hover { background: #c82c2c; transform: translateY(-1px); box-shadow: 0 5px 20px rgba(224,53,53,.38); }

.btn-ghost { background: var(--surface2); color: var(--text2); border: 1px solid var(--border2); }
.btn-ghost:hover { background: var(--surface3); color: var(--text); }

.btn-danger { background: rgba(224,53,53,.1); color: var(--accent2); border: 1px solid rgba(224,53,53,.18); }
.btn-danger:hover { background: rgba(224,53,53,.18); }

.btn-sm { padding: 7px 13px; font-size: 12px; }

/* ── CARDS ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.card-hover { transition: border-color .2s, box-shadow .2s; }
.card-hover:hover { border-color: var(--border2); box-shadow: 0 6px 24px rgba(0,0,0,.25); }

/* ── TYPOGRAPHY ── */
.section-label {
  font-family: 'Syne', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

/* ── TAGS ── */
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px; font-weight: 700;
}
.tag-red    { background: rgba(224,53,53,.1);  color: var(--accent2); }
.tag-green  { background: rgba(52,211,153,.1); color: var(--green); }
.tag-gold   { background: rgba(245,158,11,.1); color: var(--gold); }
.tag-blue   { background: rgba(96,165,250,.1); color: var(--blue); }
.tag-purple { background: rgba(167,139,250,.1);color: var(--purple); }

/* ── VBADGE ── */
.vbadge {
  display: inline-flex; align-items: center; gap: 3px;
  background: rgba(224,53,53,.1);
  border: 1px solid rgba(224,53,53,.18);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 10px; font-weight: 700;
  color: var(--accent2);
}

/* ── EMPTY STATE ── */
.empty {
  text-align: center;
  padding: 60px 20px;
}
.empty-ico { font-size: 36px; opacity: .28; margin-bottom: 12px; }
.empty-t {
  font-family: 'Syne', sans-serif;
  font-size: 16px; font-weight: 700;
  margin-bottom: 6px;
}
.empty-s { font-size: 12px; color: var(--muted); margin-bottom: 18px; }

/* ── FORM ── */
.form-group { margin-bottom: 14px; }
.form-label {
  display: block;
  font-size: 10px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.form-input {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 9px;
  padding: 10px 13px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  outline: none;
  transition: border .2s, box-shadow .2s;
  line-height: 1.4;
}
.form-input::placeholder { color: var(--muted); }
.form-input:focus {
  border-color: rgba(224,53,53,.38);
  box-shadow: 0 0 0 3px rgba(224,53,53,.06);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── TOGGLE ── */
.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.toggle-row:last-child { border-bottom: none; }
.toggle-info .toggle-title { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.toggle-info .toggle-desc  { font-size: 11px; color: var(--muted); }
.toggle {
  width: 38px; height: 21px;
  border-radius: 99px;
  background: var(--surface3);
  position: relative; cursor: pointer;
  transition: background .2s;
  flex-shrink: 0;
}
.toggle.on { background: var(--accent); }
.toggle-knob {
  width: 15px; height: 15px;
  border-radius: 50%; background: #fff;
  position: absolute; top: 3px; left: 3px;
  transition: left .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.toggle.on .toggle-knob { left: 20px; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface3); border-radius: 99px; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .35s ease both; }
.fade-up-1 { animation: fadeUp .35s .05s ease both; }
.fade-up-2 { animation: fadeUp .35s .1s  ease both; }
.fade-up-3 { animation: fadeUp .35s .15s ease both; }
.fade-up-4 { animation: fadeUp .35s .2s  ease both; }
