:root {
  color-scheme: dark;
  --bg: #030712;
  --panel: rgba(15, 23, 42, .72);
  --line: rgba(148, 163, 184, .18);
  --blue: #38bdf8;
  --pink: #f472b6;
  --green: #34d399;
  --purple: #a78bfa;
  --muted: #94a3b8;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { min-height: 100vh; margin: 0; background: var(--bg); color: #f8fafc; font-family: 'Space Grotesk', system-ui, sans-serif; overflow-x: hidden; }
::selection { background: var(--pink); color: #fff; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-thumb { background: rgba(56,189,248,.3); border-radius: 20px; }
.cyber-grid { position: fixed; inset: -50%; z-index: 0; pointer-events: none; opacity: .45; background-image: linear-gradient(rgba(56,189,248,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(56,189,248,.055) 1px, transparent 1px); background-size: 42px 42px; animation: gridMove 24s linear infinite; }
@keyframes gridMove { to { transform: translateY(42px); } }
.ambient-orb { position: fixed; width: 42vw; height: 42vw; border-radius: 50%; filter: blur(110px); opacity: .17; pointer-events: none; z-index: 0; }
.orb-blue { top: -18vw; left: -15vw; background: #0284c7; }
.orb-pink { bottom: -20vw; right: -15vw; background: #be185d; }
.site-content { position: relative; z-index: 1; }
.font-cyber { font-family: 'Syncopate', sans-serif; }
.font-mono { font-family: 'Share Tech Mono', monospace; }
.glass { background: rgba(15,23,42,.66); border: 1px solid var(--line); border-top-color: rgba(255,255,255,.14); backdrop-filter: blur(16px); box-shadow: 0 18px 48px rgba(0,0,0,.25); }
.glass-hover { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.glass-hover:hover { transform: translateY(-4px); border-color: rgba(56,189,248,.45); box-shadow: 0 18px 44px rgba(14,165,233,.12); }
.gradient-text { background: linear-gradient(90deg, var(--blue), var(--purple), var(--pink)); color: transparent; background-clip: text; -webkit-background-clip: text; }
.cyber-button { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; border: 1px solid rgba(56,189,248,.5); border-radius: .75rem; padding: .8rem 1.15rem; color: #e0f2fe; font: 700 .75rem 'Share Tech Mono', monospace; letter-spacing: .04em; text-transform: uppercase; transition: .2s ease; background: rgba(14,165,233,.1); }
.cyber-button:hover { background: rgba(14,165,233,.22); border-color: var(--blue); box-shadow: 0 0 22px rgba(14,165,233,.18); }
.cyber-button.secondary { border-color: var(--line); color: #cbd5e1; background: rgba(255,255,255,.04); }
.cyber-button.danger { border-color: rgba(248,113,113,.4); color: #fecaca; background: rgba(127,29,29,.2); }
.section-kicker { color: var(--blue); font: .72rem 'Share Tech Mono', monospace; letter-spacing: .18em; text-transform: uppercase; }
.section-title { font: 700 clamp(1.45rem, 4vw, 2.55rem) 'Syncopate', sans-serif; letter-spacing: -.04em; }
.section-rule { height: 1px; background: linear-gradient(90deg, transparent, rgba(56,189,248,.35), rgba(244,114,182,.22), transparent); }
.empty-state { border: 1px dashed rgba(148,163,184,.28); background: rgba(15,23,42,.32); border-radius: 1.1rem; padding: 2rem 1rem; text-align: center; color: #94a3b8; }
.empty-state i { color: rgba(56,189,248,.7); font-size: 1.5rem; margin-bottom: .8rem; }
.data-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .32rem .65rem; border: 1px solid rgba(148,163,184,.2); background: rgba(15,23,42,.6); border-radius: 999px; color: #cbd5e1; font: .7rem 'Share Tech Mono', monospace; }
.public-card { background: rgba(15,23,42,.62); border: 1px solid rgba(148,163,184,.15); border-radius: 1.1rem; overflow: hidden; }
.public-card:hover { border-color: rgba(56,189,248,.38); }
.public-card-image { width: 100%; height: 190px; object-fit: cover; background: rgba(2,6,23,.8); }
.public-link { color: #7dd3fc; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.public-link:hover { color: #f9a8d4; }
.admin-shell { min-height: 100vh; }
.admin-sidebar { background: rgba(2,6,23,.94); border-right: 1px solid var(--line); }
.admin-nav-button { display: flex; width: 100%; align-items: center; gap: .75rem; border: 1px solid transparent; border-radius: .8rem; padding: .75rem .85rem; text-align: left; color: #94a3b8; transition: .18s ease; }
.admin-nav-button:hover { color: white; background: rgba(255,255,255,.05); }
.admin-nav-button.active { color: #e0f2fe; border-color: rgba(56,189,248,.28); background: rgba(14,165,233,.12); }
.admin-input { width: 100%; border: 1px solid rgba(148,163,184,.24); background: rgba(2,6,23,.65); color: #f8fafc; border-radius: .7rem; padding: .75rem .85rem; outline: none; min-height: 44px; }
.admin-input:focus { border-color: rgba(56,189,248,.8); box-shadow: 0 0 0 3px rgba(56,189,248,.12); }
.admin-input::placeholder { color: #64748b; }
.admin-label { display: block; margin-bottom: .4rem; color: #cbd5e1; font: .78rem 'Share Tech Mono', monospace; }
.admin-help { display: block; margin-top: .35rem; color: #64748b; font-size: .72rem; line-height: 1.45; }
.admin-field { min-width: 0; }
.admin-stat { border: 1px solid var(--line); background: rgba(15,23,42,.6); border-radius: 1rem; padding: 1rem; }
.status-pill { display: inline-flex; border-radius: 999px; padding: .25rem .55rem; font: .68rem 'Share Tech Mono', monospace; }
.status-published { color: #a7f3d0; border: 1px solid rgba(52,211,153,.28); background: rgba(6,95,70,.2); }
.status-draft { color: #fde68a; border: 1px solid rgba(251,191,36,.25); background: rgba(120,53,15,.2); }
.toast { position: fixed; z-index: 1000; bottom: 1.25rem; right: 1.25rem; max-width: min(92vw, 420px); padding: .9rem 1.1rem; border: 1px solid rgba(56,189,248,.35); border-radius: .9rem; background: #0f172a; color: #e2e8f0; box-shadow: 0 16px 40px rgba(0,0,0,.45); }
.toast.error { border-color: rgba(248,113,113,.5); }
.file-preview { display: flex; align-items: center; gap: .7rem; margin-top: .55rem; padding: .6rem; border: 1px solid var(--line); border-radius: .65rem; color: #cbd5e1; font-size: .75rem; overflow-wrap: anywhere; }
.mobile-menu { display: none; }
@media (max-width: 767px) {
  .admin-sidebar { position: fixed; inset: 0 auto 0 0; width: min(86vw, 310px); z-index: 60; transform: translateX(-105%); transition: transform .25s ease; }
  .admin-sidebar.open { transform: translateX(0); }
  .mobile-menu { display: inline-flex; }
  .ambient-orb { width: 75vw; height: 75vw; filter: blur(80px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
