/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0d0d0f;
  --bg2: #141417;
  --bg3: #1c1c21;
  --bg4: #242429;
  --border: rgba(255,255,255,0.08);
  --border2: rgba(255,255,255,0.14);
  --text: #f0f0f2;
  --text2: #9898a8;
  --text3: #5a5a6a;
  --accent: #7c6dfa;
  --accent2: #9b8ffb;
  --accent-bg: rgba(124,109,250,0.12);
  --green: #34d17a;
  --green-bg: rgba(52,209,122,0.10);
  --red: #f06060;
  --red-bg: rgba(240,96,96,0.10);
  --gold: #f5c542;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --font: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html { font-size: 15px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

/* ── LAYOUT ── */
.container { max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 700px; margin: 0 auto; padding: 0 1.5rem; }

/* ── HEADER ── */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(13,13,15,0.92);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  width: 34px; height: 34px;
  background: var(--accent-bg);
  border: 1px solid rgba(124,109,250,0.3);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.logo-name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.logo-sub { font-size: 11px; color: var(--text3); font-family: var(--font-mono); }
.header-nav { display: flex; gap: 6px; }
.nav-link {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text2);
  border: 1px solid transparent;
  transition: all 0.15s;
  cursor: pointer;
  background: none;
}
.nav-link:hover { color: var(--text); background: var(--bg3); }
.nav-link.active { color: var(--text); background: var(--bg3); border-color: var(--border2); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-size: 13px; font-weight: 500;
  border: 1px solid var(--border2);
  background: var(--bg3);
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s;
}
.btn:hover { background: var(--bg4); border-color: rgba(255,255,255,0.2); }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent2); border-color: var(--accent2); }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-danger { border-color: var(--red-bg); color: var(--red); }
.btn-danger:hover { background: var(--red-bg); }

/* ── BADGES ── */
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 600; font-family: var(--font-mono);
}
.badge-accent { background: var(--accent-bg); color: var(--accent2); border: 1px solid rgba(124,109,250,0.2); }
.badge-green { background: var(--green-bg); color: var(--green); }
.badge-gold { background: rgba(245,197,66,0.12); color: var(--gold); }
.badge-muted { background: var(--bg3); color: var(--text3); border: 1px solid var(--border); }

/* ── CARDS ── */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

/* ── INPUTS ── */
input[type=text], input[type=file] {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  padding: 8px 12px;
  width: 100%;
  transition: border-color 0.15s;
}
input[type=text]:focus { outline: none; border-color: var(--accent); }
input[type=text]::placeholder { color: var(--text3); }

/* ── UTILITY ── */
.mono { font-family: var(--font-mono); }
.muted { color: var(--text2); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }

/* ── TOAST ── */
.toast-wrap {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  display: flex; flex-direction: column; gap: 8px;
  z-index: 200;
}
.toast {
  background: var(--bg4);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  animation: toastIn 0.2s ease;
}
.toast.success { border-color: rgba(52,209,122,0.3); color: var(--green); }
.toast.error { border-color: rgba(240,96,96,0.3); color: var(--red); }
@keyframes toastIn { from { opacity:0; transform: translateY(8px); } to { opacity:1; transform:translateY(0); } }

/* ── SECTION TITLE ── */
.section-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text3);
  font-family: var(--font-mono);
  margin-bottom: 1rem;
}

/* ── EMPTY ── */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text3);
  font-size: 14px;
}

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