/* ════════════════════════════════════════════════════════════
   OrProject — Monochrome Design System (v4)
   Pure black & white. Holographic. Editorial typography.
   ════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg: #000000;
  --bg-1: #050505;
  --bg-2: #0a0a0c;
  --bg-3: #14141a;
  --line: rgba(255, 255, 255, 0.06);
  --line-2: rgba(255, 255, 255, 0.10);
  --line-3: rgba(255, 255, 255, 0.18);
  --text: #f5f5f7;
  --text-2: rgba(255, 255, 255, 0.65);
  --text-3: rgba(255, 255, 255, 0.45);
  --text-4: rgba(255, 255, 255, 0.28);
  --accent: #ffffff;
  --accent-glow: rgba(255, 255, 255, 0.12);
  --danger: #ff5b6e;
  --success: #4ade80;
  --warning: #f5c451;

  --glass-bg: rgba(255, 255, 255, 0.025);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 18px 60px rgba(0, 0, 0, 0.6);
  --glass-blur: blur(22px);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', ui-monospace, monospace;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --easing: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
*::selection { background: #fff; color: #000; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  letter-spacing: -0.005em;
}

/* Animated dotted grid backdrop, present site-wide */
body::before {
  content: '';
  position: fixed;
  inset: -10vh -10vw;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1.4px);
  background-size: 28px 28px;
  background-position: 0 0;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
  animation: dotsDrift 60s linear infinite;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 12% 8%, rgba(255, 255, 255, 0.055) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 100%, rgba(255, 255, 255, 0.04) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
@keyframes dotsDrift {
  from { background-position: 0 0; }
  to   { background-position: 280px 280px; }
}

/* ─── Container ─── */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px;
  position: relative;
  z-index: 1;
}

/* ═══ Glass surfaces ═══ */
.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  transition: border-color 0.5s var(--easing), box-shadow 0.5s var(--easing), transform 0.5s var(--easing);
  position: relative;
}
.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(255,255,255,0.18), rgba(255,255,255,0.02) 35%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.65;
}
.glass:hover { border-color: rgba(255, 255, 255, 0.16); }
.glass-sm {
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 12px;
}

/* ═══ Top Navigation ═══ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: saturate(160%) blur(22px);
  -webkit-backdrop-filter: saturate(160%) blur(22px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
}
.nav-brand {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700; color: #fff;
  text-decoration: none; letter-spacing: -0.02em;
  display: inline-flex; align-items: center; gap: 10px;
}
.nav-brand::before {
  content: ''; width: 22px; height: 22px; border-radius: 6px;
  background:
    conic-gradient(from 220deg, #fff, #888 20%, #fff 50%, #555 75%, #fff 100%);
  box-shadow: 0 0 18px rgba(255,255,255,0.45), inset 0 0 10px rgba(0,0,0,0.5);
  animation: brandSpin 9s linear infinite;
}
@keyframes brandSpin { to { transform: rotate(360deg); } }

.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-link {
  color: var(--text-3); text-decoration: none;
  font-size: 13.5px; font-weight: 500; padding: 8px 14px;
  border-radius: 9px; transition: all .3s var(--easing);
  position: relative;
}
.nav-link:hover { color: #fff; }
.nav-link.active { color: #fff; }
.nav-link.active::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 1px; background: linear-gradient(90deg, transparent, #fff, transparent);
}
.nav-actions { display: flex; gap: 8px; align-items: center; }

/* ═══ Legacy Header (admin/docs/usage) ═══ */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  margin-bottom: 24px;
}
.logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  display: inline-flex; align-items: center; gap: 10px;
}
.logo::before {
  content: ''; width: 22px; height: 22px; border-radius: 6px;
  background: conic-gradient(from 220deg, #fff, #888 20%, #fff 50%, #555 75%, #fff 100%);
  box-shadow: 0 0 18px rgba(255,255,255,0.4), inset 0 0 10px rgba(0,0,0,0.5);
  animation: brandSpin 9s linear infinite;
}
.logo span { font-weight: 300; opacity: 0.4; }

.header .nav-links { display: flex; gap: 4px; align-items: center; }
.header .nav-links a {
  color: var(--text-3); text-decoration: none;
  font-size: 13.5px; font-weight: 500; padding: 8px 14px;
  border-radius: 9px; transition: color .25s, background .25s;
}
.header .nav-links a:hover { color: #fff; background: rgba(255,255,255,0.04); }
.header .nav-links a.active { color: #000; background: #fff; }

/* ═══ Language toggle ═══ */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 2px;
  margin-left: 10px;
}
.lang-btn {
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  border-radius: 7px;
  transition: all .25s var(--easing);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}
.lang-btn:hover { color: #fff; }
.lang-btn.active { background: #fff; color: #000; }

/* ═══ Login ═══ */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
}
.login-card {
  width: 100%;
  max-width: 420px;
  padding: 40px;
  text-align: center;
}
.login-card h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
  letter-spacing: -0.02em;
}
.login-card p { color: var(--text-3); font-size: 13px; margin-bottom: 30px; }

/* ═══ Forms ═══ */
input, select, textarea {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: all .3s var(--easing);
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.05);
}
input::placeholder { color: rgba(255, 255, 255, 0.22); }

label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-3);
  margin-bottom: 8px;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.form-group { margin-bottom: 20px; }

/* ═══ Buttons ═══ */
.btn {
  padding: 12px 22px;
  border: none;
  border-radius: 11px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s var(--easing);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  letter-spacing: -0.005em;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.18), transparent 60%);
  opacity: 0; transition: opacity .3s;
  pointer-events: none;
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  background: #fff;
  color: #000;
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.15), inset 0 -1px 0 rgba(0,0,0,0.2);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255, 255, 255, 0.22); }
.btn-primary:active { transform: translateY(0); }

.btn-danger {
  background: rgba(255, 91, 110, 0.10);
  color: var(--danger);
  border: 1px solid rgba(255, 91, 110, 0.25);
}
.btn-danger:hover { background: rgba(255, 91, 110, 0.18); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: var(--line-2); }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid var(--line-3);
}
.btn-outline:hover { border-color: rgba(255,255,255,0.55); background: rgba(255,255,255,0.04); }

.btn-sm { padding: 7px 13px; font-size: 11.5px; border-radius: 9px; }
.btn-block { width: 100%; }

/* ═══ Stats grid ═══ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.stat-card {
  padding: 22px;
  text-align: left;
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: ''; position: absolute; right: -30px; top: -30px;
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.06), transparent 70%);
  pointer-events: none;
}
.stat-card .stat-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-3);
  margin-bottom: 10px;
}
.stat-card .stat-value {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-card .stat-sub { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); margin-top: 6px; }

/* ═══ Tables ═══ */
.table-container { padding: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
thead th {
  padding: 14px 18px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-3);
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  white-space: nowrap;
}
tbody td {
  padding: 14px 18px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: background 0.2s;
}
tbody tr { transition: background .25s; }
tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
tbody tr:last-child td { border-bottom: none; }

/* ═══ Badges ═══ */
.badge {
  display: inline-block; padding: 4px 11px; border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge-active   { background: rgba(74, 222, 128, 0.10); color: var(--success); border: 1px solid rgba(74, 222, 128, 0.25); }
.badge-inactive { background: rgba(255, 91, 110, 0.10); color: var(--danger);  border: 1px solid rgba(255, 91, 110, 0.25); }

/* ═══ Key Display ═══ */
.key-display {
  font-family: var(--font-mono);
  font-size: 11.5px;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 11px;
  border-radius: 7px;
  display: inline-block;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ═══ Modal ═══ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(14px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
  width: 100%;
  max-width: 480px;
  padding: 30px;
  animation: modalIn 0.45s var(--easing);
}
@keyframes modalIn {
  from { transform: translateY(24px) scale(0.96); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.modal h3 {
  font-family: var(--font-display);
  font-size: 20px; margin-bottom: 20px; color: #fff;
  letter-spacing: -0.02em; font-weight: 700;
}
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* ═══ Period Tabs ═══ */
.period-tabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.period-tab {
  padding: 8px 18px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: var(--text-2);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all .3s var(--easing);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.period-tab:hover { color: #fff; border-color: var(--line-2); }
.period-tab.active { background: #fff; color: #000; border-color: #fff; }

/* ═══ Pagination ═══ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 14px;
}
.pagination button {
  padding: 8px 15px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: var(--text-2);
  cursor: pointer;
  font-size: 12px;
  transition: all .3s;
  font-family: var(--font-mono);
}
.pagination button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.08); color: #fff; }
.pagination button:disabled { opacity: 0.25; cursor: not-allowed; }
.pagination .page-info { font-size: 12px; color: var(--text-3); font-family: var(--font-mono); }

/* ═══ Settings ═══ */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ═══ Section header ═══ */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ═══ Back link ═══ */
.back-link {
  color: var(--text-3);
  text-decoration: none;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  transition: color .3s;
  font-family: var(--font-mono);
}
.back-link:hover { color: #fff; }

/* ═══ Toast ═══ */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  left: 24px;
  max-width: 400px;
  margin-left: auto;
  padding: 13px 22px;
  border-radius: 13px;
  font-size: 13px;
  z-index: 2000;
  animation: toastIn 0.4s var(--easing);
  display: none;
}
.toast.show { display: block; }
.toast-success { background: rgba(74, 222, 128, 0.12); border: 1px solid rgba(74, 222, 128, 0.3); color: var(--success); backdrop-filter: blur(14px); }
.toast-error   { background: rgba(255, 91, 110, 0.12); border: 1px solid rgba(255, 91, 110, 0.3); color: var(--danger);  backdrop-filter: blur(14px); }
@keyframes toastIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ═══ Copy button ═══ */
.copy-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: var(--text-2);
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 7px;
  font-size: 11px;
  transition: all .25s;
  font-family: var(--font-mono);
}
.copy-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.10); border-color: var(--line-2); }

/* ═══ Scrollbar ═══ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.10); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.20); }

/* ═══ No results ═══ */
.no-results { text-align: center; padding: 56px 20px; color: var(--text-3); }
.no-results p { font-size: 13px; margin-top: 6px; }

/* ═══ Rows selector ═══ */
.rows-selector { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.rows-selector label { font-size: 11.5px; color: var(--text-3); margin-bottom: 0; text-transform: none; letter-spacing: 0; font-family: var(--font-mono); }
.rows-selector select { width: auto; padding: 6px 12px; font-size: 12px; }

/* ═══ Password toggle ═══ */
.password-container { position: relative; }
.password-container input { padding-right: 64px; }
.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  font-size: 11.5px;
  transition: color .25s;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.password-toggle:hover { color: #fff; }

/* ═══ Tabs ═══ */
.tabs { display: flex; border-bottom: 1px solid var(--line); }
.tab {
  padding: 14px 24px;
  color: var(--text-3);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: all .3s var(--easing);
}
.tab:hover { color: rgba(255,255,255,0.85); }
.tab.active { color: #fff; border-bottom-color: #fff; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ═══ Toggle switch ═══ */
.toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255, 255, 255, 0.10);
  border-radius: 22px;
  transition: 0.3s;
}
.toggle-slider:before {
  content: '';
  position: absolute;
  height: 18px; width: 18px;
  left: 3px; bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
}
input:checked + .toggle-slider { background: #fff; }
input:checked + .toggle-slider:before { transform: translateX(20px); background: #000; }

/* ═══ New key display ═══ */
.new-key-display {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.20);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  word-break: break-all;
  text-align: center;
  color: #fff;
}
.warning-text { color: var(--warning); font-size: 11px; margin-top: 8px; }

/* ═══ Docs ═══ */
.docs-content { padding: 36px; line-height: 1.8; }
.docs-content h1 {
  font-family: var(--font-display);
  font-size: 36px; margin-bottom: 12px; color: #fff;
  letter-spacing: -0.03em; font-weight: 700;
}
.docs-content h2 {
  font-family: var(--font-display);
  font-size: 22px;
  margin-top: 44px;
  margin-bottom: 16px;
  color: #fff;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.docs-content h3 { font-family: var(--font-display); font-size: 17px; margin-top: 30px; margin-bottom: 12px; color: rgba(255,255,255,0.92); font-weight: 600; }
.docs-content p { color: var(--text-2); margin-bottom: 16px; font-size: 14px; }
.docs-content code {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 12px;
  color: #fff;
  border: 1px solid var(--line);
}
.docs-content pre {
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.005));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  overflow-x: auto;
  margin-bottom: 20px;
  -webkit-overflow-scrolling: touch;
  position: relative;
}
.docs-content pre::before {
  content: ''; position: absolute; left: 16px; top: 14px;
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  box-shadow: 14px 0 0 rgba(255,255,255,0.10), 28px 0 0 rgba(255,255,255,0.06);
}
.docs-content pre code { background: none; padding: 24px 0 0; color: rgba(255,255,255,0.85); font-size: 12.5px; border: none; display: block; }
.docs-content ul, .docs-content ol { margin-left: 22px; margin-bottom: 16px; color: var(--text-2); }
.docs-content li { margin-bottom: 6px; font-size: 14px; }
.docs-content table { margin-bottom: 20px; }
.docs-content .endpoint {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 14px 18px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.docs-content .method {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  margin-right: 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.docs-content .method-post   { background: rgba(74, 222, 128, 0.14); color: var(--success); }
.docs-content .method-get    { background: rgba(255, 255, 255, 0.10); color: #fff; }
.docs-content .method-delete { background: rgba(255, 91, 110, 0.14); color: var(--danger); }

/* ═══ Hero (legacy class still used by some pages) ═══ */
.hero { text-align: center; padding: 30px 20px 20px; }
.hero h1 {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 18px;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.hero p {
  font-size: 16px;
  color: var(--text-3);
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-buttons { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ═══ Features grid (legacy) ═══ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 44px;
}
.feature-card {
  padding: 30px 24px;
  transition: transform 0.5s var(--easing), border-color 0.5s var(--easing);
}
.feature-card:hover { transform: translateY(-3px); }
.feature-card h3 { font-family: var(--font-display); font-size: 16px; margin-bottom: 8px; color: #fff; font-weight: 600; letter-spacing: -0.01em; }
.feature-card p { color: var(--text-3); font-size: 13px; line-height: 1.65; }

/* ═══ CSS icons (legacy) ═══ */
.css-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}
.css-icon svg {
  width: 20px;
  height: 20px;
  stroke: rgba(255, 255, 255, 0.7);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ═══ Base URL block (legacy) ═══ */
.base-url-block { text-align: center; padding: 36px 0 28px; }
.base-url-inner { display: inline-block; padding: 16px 32px; }
.base-url-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-3);
  margin-bottom: 8px;
}
.base-url-value { font-family: var(--font-mono); font-size: 16px; color: #fff; }

/* ═══ Footer ═══ */
.footer {
  text-align: center;
  padding: 24px 0 36px;
  color: var(--text-3);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
}

/* ═══ Reveal-on-scroll ═══ */
.fade-up { opacity: 0; transform: translateY(28px); transition: all .8s var(--easing); }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ═══ Aurora text effect (used on hero highlight) ═══ */
.shine {
  background: linear-gradient(110deg, #ffffff 0%, #b8b8c4 35%, #ffffff 50%, #999999 65%, #ffffff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shineMove 6s linear infinite;
}
@keyframes shineMove {
  from { background-position: 0% 50%; }
  to { background-position: 200% 50%; }
}

/* ═══ Responsive ═══ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .settings-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .container { padding: 10px; }
  .header { flex-direction: column; gap: 10px; padding: 12px 16px; text-align: center; }
  .nav-inner { padding: 12px 16px; }
  .nav-links { gap: 3px; flex-wrap: wrap; justify-content: center; }
  .nav-links a, .nav-link { padding: 6px 10px; font-size: 12px; }
  .lang-toggle { margin-left: 0; margin-top: 2px; }

  .hero { padding: 20px 14px 16px; }
  .hero h1 { font-size: 30px; letter-spacing: -0.025em; }
  .hero p { font-size: 14px; margin-bottom: 24px; }

  .features-grid { grid-template-columns: 1fr; gap: 10px; margin-top: 28px; }
  .feature-card { padding: 22px 18px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stat-card { padding: 18px; }
  .stat-card .stat-value { font-size: 24px; }
  .stat-card .stat-label { font-size: 10px; }

  .section-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .section-header .btn { width: 100%; }

  table { min-width: 500px; }
  thead th { padding: 12px 14px; font-size: 9.5px; }
  tbody td { padding: 12px 14px; font-size: 12px; }
  .key-display { max-width: 110px; font-size: 10.5px; }

  .modal { padding: 22px; max-width: 95%; }
  .login-card { padding: 30px 20px; }

  .docs-content { padding: 22px 18px; }
  .docs-content h1 { font-size: 26px; }
  .docs-content h2 { font-size: 18px; }
  .docs-content pre { padding: 16px; }
  .docs-content .endpoint { padding: 12px; }

  .settings-grid { grid-template-columns: 1fr; }
  .period-tabs { gap: 4px; }
  .period-tab { padding: 7px 12px; font-size: 11px; }
}

/* ═══ Utility ═══ */
.spotlight {
  position: relative; overflow: hidden;
}
.spotlight::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.08), transparent 50%);
  opacity: 0; transition: opacity .35s;
  pointer-events: none;
}
.spotlight:hover::before { opacity: 1; }

/* Marquee */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: inline-flex; gap: 56px; animation: marquee 36s linear infinite; padding-right: 56px; white-space: nowrap; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-item { font-family: var(--font-mono); font-size: 13px; color: var(--text-3); display: inline-flex; align-items: center; gap: 10px; }
.marquee-item::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: .35; }

/* Code tabs (used in landing) */
.code-tabs-bar { display: flex; gap: 4px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.code-tab {
  padding: 6px 14px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em;
  background: transparent; border: 1px solid transparent; color: var(--text-3);
  border-radius: 8px; cursor: pointer; transition: all .25s;
}
.code-tab:hover { color: #fff; }
.code-tab.active { background: rgba(255,255,255,0.06); border-color: var(--line); color: #fff; }

/* Accordion */
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item:last-child { border-bottom: none; }
.acc-q {
  width: 100%; text-align: left;
  background: transparent; border: none; color: #fff;
  font-family: var(--font-display); font-size: 17px; font-weight: 600;
  padding: 22px 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  letter-spacing: -0.01em;
}
.acc-q::after {
  content: '+'; font-size: 22px; font-weight: 300; color: var(--text-3);
  transition: transform .35s var(--easing), color .25s;
}
.acc-item.open .acc-q::after { transform: rotate(45deg); color: #fff; }
.acc-a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .4s var(--easing);
  color: var(--text-2); font-size: 14px; line-height: 1.7;
}
.acc-a > div { overflow: hidden; }
.acc-item.open .acc-a { grid-template-rows: 1fr; padding-bottom: 22px; }
