:root {
  --bg-base: #0d1117;
  --surface: #161b22;
  --surface-el: #1c2230;
  --border: #2d3748;

  --accent: #7c3aed;
  --accent-hover: #6d28d9;
  --accent-muted: rgba(124, 58, 237, 0.1);

  --text-primary: #f0f6fc;
  --text-secondary: #8b949e;
  --text-muted: #484f58;

  --rating: #f59e0b;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;

  --font-display: "DM Serif Display", serif;
  --font-ui: "Inter", sans-serif;
}

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-primary);
}

h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

h1::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 0.5rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
}

h2 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-hover));
}

h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
  margin-left: 0.5rem;
}

/* ══════════════════════════════════════
   Toast
══════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--r-md);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  max-width: 360px;
}

.toast--visible {
  opacity: 1;
  transform: translateY(0);
}

.toast--hiding {
  opacity: 0;
  transform: translateY(12px);
}

.toast--success {
  background: var(--accent-muted);
  color: var(--accent);
  border: 1px solid var(--accent);
}

.toast--error {
  background: #450a0a;
  color: #fca5a5;
  border: 1px solid #7f1d1d;
}

main {
  flex: 1;
}