/* SaveFix — design tokens and primitives shared by the static pages
   (admin console, privacy policy, account deletion).

   Linked before each page's own <style>, so a page overrides any of this
   by redefining it. Only what is identical across every page that uses it
   lives here; each page keeps its own values where they differ. */

:root {
  color-scheme: dark;
  --nv-black: #000000;
  --nv-bg: #050505;
  --nv-panel: #0d0d0d;
  --nv-panel-2: #141414;
  --nv-panel-3: #1c1c1c;
  --nv-green: #76B900;
  --nv-green-bright: #8FD400;
  --nv-green-dim: #5a8f00;
  --nv-green-glow: rgba(118, 185, 0, 0.55);
  --nv-green-soft: rgba(118, 185, 0, 0.10);
  --nv-green-hair: rgba(118, 185, 0, 0.22);
  --nv-text: #ffffff;
  --nv-text-dim: #a8a8a8;
  --nv-text-faint: #5c5c5c;
  --nv-text-ghost: #3a3a3a;
  --nv-border: rgba(255,255,255,0.08);
  --nv-border-2: rgba(255,255,255,0.16);
  --nv-border-hi: rgba(255,255,255,0.24);
  --nv-red: #ff3b30;
  --nv-red-soft: rgba(255, 59, 48, 0.10);
  --nv-amber: #ffb020;
  --nv-amber-soft: rgba(255, 176, 32, 0.10);
  --nv-blue: #4a9eff;
  --nv-blue-soft: rgba(74, 158, 255, 0.10);
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Tahoma, 'Noto Sans Arabic', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  --cut: 14px;
  --cut-sm: 8px;
  --cut-lg: 18px;
  --focus: 0 0 0 3px rgba(118,185,0,.35);
  --focus-danger: 0 0 0 3px rgba(255,59,48,.32);
  --t-fast: 120ms;
  --t-base: 180ms;
  --t-slow: 280ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--nv-bg);
  color: var(--nv-text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(118,185,0,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(118,185,0,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 20%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 20%, transparent 100%);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at top, transparent 40%, rgba(0,0,0,0.65) 100%);
  pointer-events: none;
  z-index: 0;
}

::selection {
  background: var(--nv-green);
  color: #000;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--nv-black);
}

::-webkit-scrollbar-thumb {
  background: var(--nv-panel-3);
  border: 2px solid var(--nv-black);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--nv-green-dim);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border-bottom: 1px solid var(--nv-border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--nv-text);
}

.nav-brand .logo-mark {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  background: var(--nv-green);
  color: #000;
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 13px;
  clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
  box-shadow: 0 0 20px var(--nv-green-glow);
}

.nav-brand .divider {
  color: var(--nv-text-ghost);
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nv-text-faint);
}

.nav-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--nv-green);
  box-shadow: 0 0 10px var(--nv-green-glow);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.82); }
}

.wrap {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  padding: 40px 28px 80px;
}

.hero {
  border-bottom: 1px solid var(--nv-border);
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.hero-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
}

.hero h1 {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero h1 .accent {
  position: relative;
}

.hero h1 .accent::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: -6px;
  height: 3px;
}

.hero p {
  font-size: 15px;
  color: var(--nv-text-dim);
}

.panel {
  position: relative;
  background: var(--nv-panel);
  padding: 28px;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut));
}

.panel::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  width: 72px;
  height: 2px;
  background: var(--nv-green);
  box-shadow: 0 0 14px var(--nv-green-glow);
}

.section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 20px;
  padding-inline-start: 14px;
  border-inline-start: 3px solid var(--nv-green);
}

.section-head h2 {
  font-weight: 700;
  margin: 0;
  color: var(--nv-text);
}

.section-head .tag {
  margin-inline-start: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--nv-text-faint);
  padding: 3px 8px;
  border: 1px solid var(--nv-border);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--nv-border);
}

th {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--nv-text-faint);
  background: var(--nv-panel-2);
  border-bottom: 1px solid var(--nv-green-hair);
}

tr:last-child td {
  border-bottom: none;
}

.note {
  color: var(--nv-text-faint);
  line-height: 1.7;
}

a {
  color: var(--nv-green);
  text-decoration: none;
}

a:hover {
  color: var(--nv-green-bright);
  text-decoration: underline;
}

.nav-brand:hover {
  text-decoration: none;
  color: var(--nv-text);
}

.lang-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--nv-text-faint);
}

.lang-divider::before, .lang-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--nv-border);
}

.lang-divider::before {
  background: linear-gradient(90deg, transparent, var(--nv-border));
}

.lang-divider::after {
  background: linear-gradient(90deg, var(--nv-border), transparent);
}

footer {
  margin-top: 60px;
  padding-top: 28px;
  border-top: 1px solid var(--nv-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--nv-text-faint);
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-align: center;
}

footer .links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

footer a {
  color: var(--nv-text-dim);
}

footer a:hover {
  color: var(--nv-green);
  text-decoration: none;
}

footer a[aria-current="page"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--nv-green);
}

footer a[aria-current="page"]::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--nv-green);
  box-shadow: 0 0 8px var(--nv-green-glow);
}

footer .meta {
  color: var(--nv-text-ghost);
}
