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

:root {
  --bg:      #060606;
  --fg:      #f5f5f5;
  --muted:   rgba(245, 245, 245, 0.13);
  --dim:     rgba(245, 245, 245, 0.07);
  --bg-rgb:  6, 6, 6;
}

[data-theme="light"] {
  --bg:      #f5f5f5;
  --fg:      #0a0a0a;
  --muted:   rgba(10, 10, 10, 0.25);
  --dim:     rgba(10, 10, 10, 0.08);
  --bg-rgb:  245, 245, 245;
}

[data-theme="light"] .cur-dot { background: #f5f5f5; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  cursor: none;
}

/* ── Noise overlay ── */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9000;
  opacity: .4;
}

/* ── Cursor ── */
.cur-dot {
  width: 5px; height: 5px;
  background: var(--fg);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

/* ── Theme toggle ── */
.theme-toggle {
  position: fixed; top: 24px; right: 28px;
  z-index: 8500;
  background: none; border: none; cursor: none;
  padding: 0; display: flex; align-items: center;
}
.theme-toggle-track {
  width: 36px; height: 20px;
  border-radius: 10px;
  border: 1px solid var(--muted);
  position: relative;
  transition: border-color .3s;
}
.theme-toggle:hover .theme-toggle-track { border-color: var(--fg); }
.theme-toggle-thumb {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--muted);
  position: absolute; top: 3px; left: 3px;
  transition: transform .3s, background .3s;
}
.theme-toggle:hover .theme-toggle-thumb { background: var(--fg); }
[data-theme="light"] .theme-toggle-thumb {
  transform: translateX(16px);
}

/* ── Admin modal ── */
.admin-overlay {
  position: fixed; inset: 0;
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--bg-rgb),.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.admin-overlay.visible {
  opacity: 1;
  pointer-events: all;
}
.admin-box {
  width: 100%;
  max-width: 400px;
  padding: 0 24px;
}
.admin-label {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.admin-input {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid var(--muted);
  color: var(--fg);
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 300;
  padding: 10px 0;
  outline: none;
  letter-spacing: .05em;
  transition: border-color .25s;
  cursor: none;
}
.admin-input:focus { border-color: var(--fg); }
.admin-input-wrap {
  position: relative;
}
.admin-input-wrap .admin-input {
  padding-right: 32px;
}
.admin-eye {
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: var(--muted); cursor: none;
  font-size: 16px; padding: 4px;
  transition: color .2s;
  line-height: 1;
}
.admin-eye:hover { color: var(--fg); }
.admin-error {
  margin-top: 14px;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: .2em;
  color: rgba(245,245,245,.35);
  min-height: 18px;
}
