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

:root {
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  --glass-blur: blur(24px);
  --accent: #ffffff;
  --accent-light: rgba(255, 255, 255, 0.85);
  --accent-glow: rgba(255, 255, 255, 0.12);
  --danger: #ff4757;
  --success: #2ed573;
  --warning: #ffa502;
  --text: #f0f0f0;
  --text-secondary: rgba(255, 255, 255, 0.45);
  --bg-gradient: linear-gradient(160deg, #000000 0%, #050505 40%, #0a0a0a 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-gradient);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 60%),
    radial-gradient(ellipse at 85% 15%, rgba(255, 255, 255, 0.015) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
  position: relative;
  z-index: 1;
}

/* ═══ Glass ═══ */
.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.glass:hover { border-color: rgba(255, 255, 255, 0.14); }

.glass-sm {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

/* ═══ Header ═══ */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  margin-bottom: 24px;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.logo span { font-weight: 300; opacity: 0.4; }

.nav-links { display: flex; gap: 4px; align-items: center; }

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

/* ═══ Language Toggle ═══ */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 2px;
  margin-left: 8px;
}

.lang-btn {
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-family: inherit;
  letter-spacing: 0.5px;
}

.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: 400px;
  padding: 36px;
  text-align: center;
}

.login-card h2 { font-size: 22px; font-weight: 600; margin-bottom: 6px; color: #fff; }
.login-card p { color: var(--text-secondary); font-size: 13px; margin-bottom: 28px; }

/* ═══ Forms ═══ */
input, select, textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: all 0.3s ease;
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.06);
}

input::placeholder { color: rgba(255, 255, 255, 0.2); }

label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.form-group { margin-bottom: 18px; }

/* ═══ Buttons ═══ */
.btn {
  padding: 11px 22px;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary {
  background: #fff;
  color: #000;
  box-shadow: 0 2px 16px rgba(255, 255, 255, 0.12);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.18);
}

.btn-primary:active { transform: translateY(0); }

.btn-danger {
  background: rgba(255, 71, 87, 0.12);
  color: var(--danger);
  border: 1px solid rgba(255, 71, 87, 0.2);
}

.btn-danger:hover { background: rgba(255, 71, 87, 0.2); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255,255,255,0.15); }

.btn-sm { padding: 6px 12px; font-size: 11px; border-radius: 8px; }
.btn-block { width: 100%; }

/* ═══ Stats ═══ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.stat-card { padding: 20px; text-align: center; }

.stat-card .stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.stat-card .stat-value { font-size: 24px; font-weight: 700; color: #fff; }
.stat-card .stat-sub { font-size: 11px; color: var(--text-secondary); margin-top: 4px; }

/* ═══ Tables ═══ */
.table-container { padding: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }

table { width: 100%; border-collapse: collapse; min-width: 600px; }

thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-weight: 600;
  white-space: nowrap;
}

tbody td {
  padding: 12px 16px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.025);
  transition: background 0.2s;
}

tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
tbody tr:last-child td { border-bottom: none; }

/* ═══ Badges ═══ */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 10px; font-weight: 600; letter-spacing: 0.3px; }
.badge-active { background: rgba(46, 213, 115, 0.1); color: var(--success); border: 1px solid rgba(46, 213, 115, 0.2); }
.badge-inactive { background: rgba(255, 71, 87, 0.1); color: var(--danger); border: 1px solid rgba(255, 71, 87, 0.2); }

/* ═══ Key Display ═══ */
.key-display {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.03);
  padding: 5px 10px;
  border-radius: 6px;
  display: inline-block;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ═══ Modals ═══ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-overlay.active { display: flex; }

.modal {
  width: 100%;
  max-width: 460px;
  padding: 28px;
  animation: modalIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalIn {
  from { transform: translateY(20px) scale(0.96); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal h3 { font-size: 18px; margin-bottom: 18px; color: #fff; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

/* ═══ Period Tabs ═══ */
.period-tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }

.period-tab {
  padding: 7px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.period-tab.active, .period-tab:hover { background: #fff; color: #000; border-color: #fff; }

/* ═══ Pagination ═══ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px;
}

.pagination button {
  padding: 7px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease;
}

.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-secondary); }

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

/* ═══ Section Headers ═══ */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-header h2 { font-size: 18px; font-weight: 600; }

/* ═══ Back Link ═══ */
.back-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  transition: color 0.3s ease;
}

.back-link:hover { color: #fff; }

/* ═══ Toast ═══ */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  left: 20px;
  max-width: 380px;
  margin-left: auto;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 13px;
  z-index: 2000;
  animation: toastIn 0.35s ease;
  display: none;
}

.toast.show { display: block; }
.toast-success { background: rgba(46, 213, 115, 0.12); border: 1px solid rgba(46, 213, 115, 0.25); color: var(--success); backdrop-filter: blur(12px); }
.toast-error { background: rgba(255, 71, 87, 0.12); border: 1px solid rgba(255, 71, 87, 0.25); color: var(--danger); backdrop-filter: blur(12px); }

@keyframes toastIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ═══ Copy Button ═══ */
.copy-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  transition: all 0.2s;
}

.copy-btn:hover { color: #fff; background: rgba(255,255,255,0.06); }

/* ═══ Scrollbar ═══ */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.08); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.15); }

/* ═══ No Results ═══ */
.no-results { text-align: center; padding: 48px 20px; color: var(--text-secondary); }
.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: 12px; color: var(--text-secondary); margin-bottom: 0; text-transform: none; letter-spacing: 0; }
.rows-selector select { width: auto; padding: 6px 10px; font-size: 12px; }

/* ═══ Password Toggle ═══ */
.password-container { position: relative; }
.password-container input { padding-right: 50px; }

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 12px;
  transition: color 0.2s;
}

.password-toggle:hover { color: #fff; }

/* ═══ Tabs ═══ */
.tabs { display: flex; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }

.tab {
  padding: 12px 22px;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.tab.active { color: #fff; border-bottom-color: #fff; }
.tab:hover { color: rgba(255,255,255,0.7); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ═══ Toggle Switch ═══ */
.toggle-switch { position: relative; display: inline-block; width: 42px; height: 22px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  transition: 0.3s;
}

.toggle-slider:before {
  content: '';
  position: absolute;
  height: 16px; width: 16px;
  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 solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 14px;
  margin: 14px 0;
  font-family: 'SF Mono', 'Fira Code', monospace;
  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: 32px; line-height: 1.8; }
.docs-content h1 { font-size: 28px; margin-bottom: 8px; color: #fff; }

.docs-content h2 {
  font-size: 20px;
  margin-top: 36px;
  margin-bottom: 14px;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 8px;
}

.docs-content h3 { font-size: 16px; margin-top: 28px; margin-bottom: 10px; color: rgba(255,255,255,0.9); }
.docs-content p { color: var(--text-secondary); margin-bottom: 14px; font-size: 14px; }

.docs-content code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 12px;
  color: #fff;
}

.docs-content pre {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 18px;
  overflow-x: auto;
  margin-bottom: 18px;
  -webkit-overflow-scrolling: touch;
}

.docs-content pre code { background: none; padding: 0; color: rgba(255,255,255,0.75); font-size: 12px; }
.docs-content ul, .docs-content ol { margin-left: 20px; margin-bottom: 14px; color: var(--text-secondary); }
.docs-content li { margin-bottom: 6px; font-size: 14px; }
.docs-content table { margin-bottom: 18px; }

.docs-content .endpoint {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 14px;
}

.docs-content .method {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  margin-right: 8px;
}

.docs-content .method-post { background: rgba(46, 213, 115, 0.12); color: var(--success); }
.docs-content .method-get { background: rgba(255, 255, 255, 0.08); color: #fff; }
.docs-content .method-delete { background: rgba(255, 71, 87, 0.12); color: var(--danger); }

/* ═══ Landing / Hero ═══ */
.hero { text-align: center; padding: 30px 20px 20px; }

.hero h1 {
  font-size: 44px;
  font-weight: 800;
  margin-bottom: 16px;
  color: #fff;
  letter-spacing: -1.5px;
  line-height: 1.1;
}

.hero p {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-buttons { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ═══ Features ═══ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 40px;
}

.feature-card {
  padding: 28px 24px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s ease;
}

.feature-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.16); }

.feature-card h3 { font-size: 15px; margin-bottom: 8px; color: #fff; font-weight: 600; }
.feature-card p { color: var(--text-secondary); font-size: 13px; line-height: 1.65; }

/* ═══ CSS Icons ═══ */
.css-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.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;
}

/* ═══ 3D Cube — Black & White ═══ */
.cube-scene {
  perspective: 800px;
  width: 160px;
  height: 160px;
  margin: 0 auto 10px;
  position: relative;
}

.cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: cubeFloat 16s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.cube-face {
  position: absolute;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.06) 50%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(4px);
  box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.cube-face--front  { transform: rotateY(0deg) translateZ(80px); }
.cube-face--back   { transform: rotateY(180deg) translateZ(80px); }
.cube-face--right  { transform: rotateY(90deg) translateZ(80px); }
.cube-face--left   { transform: rotateY(-90deg) translateZ(80px); }
.cube-face--top    { transform: rotateX(90deg) translateZ(80px); }
.cube-face--bottom { transform: rotateX(-90deg) translateZ(80px); }

@keyframes cubeFloat {
  0%   { transform: rotateX(-22deg) rotateY(0deg); }
  25%  { transform: rotateX(-28deg) rotateY(90deg) translateY(-4px); }
  50%  { transform: rotateX(-18deg) rotateY(180deg); }
  75%  { transform: rotateX(-26deg) rotateY(270deg) translateY(-4px); }
  100% { transform: rotateX(-22deg) rotateY(360deg); }
}

/* Cube Reflection */
.cube-reflection {
  width: 160px;
  height: 100px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  opacity: 0.35;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 40%, transparent 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 40%, transparent 100%);
  filter: blur(0.5px);
}

.cube-reflection .cube {
  transform-style: preserve-3d;
  animation: cubeFloatReflect 16s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.cube-reflection .cube-face {
  border-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.04));
  color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

@keyframes cubeFloatReflect {
  0%   { transform: rotateX(22deg) rotateY(0deg) scaleY(-1); }
  25%  { transform: rotateX(28deg) rotateY(90deg) scaleY(-1) translateY(4px); }
  50%  { transform: rotateX(18deg) rotateY(180deg) scaleY(-1); }
  75%  { transform: rotateX(26deg) rotateY(270deg) scaleY(-1) translateY(4px); }
  100% { transform: rotateX(22deg) rotateY(360deg) scaleY(-1); }
}

/* Cube floor shadow */
.cube-shadow {
  width: 120px;
  height: 20px;
  margin: -6px auto 0;
  background: radial-gradient(ellipse, rgba(255,255,255,0.06) 0%, transparent 70%);
  filter: blur(8px);
}

/* Glow */
.cube-glow {
  position: absolute;
  width: 220px;
  height: 220px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.03) 40%, transparent 70%);
  border-radius: 50%;
  filter: blur(25px);
  z-index: -1;
  animation: glowPulse 5s ease-in-out infinite;
  transition: transform 0.15s ease-out, opacity 0.15s ease-out, background 0.15s ease-out;
  pointer-events: none;
}
.cube-face {
  transition: border-color 0.2s ease-out;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.2); }
}

/* ═══ Base URL Block ═══ */
.base-url-block {
  text-align: center;
  padding: 36px 0 28px;
}

.base-url-inner {
  display: inline-block;
  padding: 16px 32px;
}

.base-url-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.base-url-value {
  font-size: 15px;
  color: #fff;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

/* ═══ Footer ═══ */
.footer {
  text-align: center;
  padding: 16px 0 36px;
  color: var(--text-secondary);
  font-size: 11px;
  letter-spacing: 0.5px;
}

/* ═══ Responsive — Tablet ═══ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .settings-grid { grid-template-columns: 1fr; }
}

/* ═══ Responsive — Mobile ═══ */
@media (max-width: 768px) {
  .container { padding: 10px; }

  .header {
    flex-direction: column;
    gap: 10px;
    padding: 12px 16px;
    text-align: center;
  }

  .nav-links { gap: 3px; flex-wrap: wrap; justify-content: center; }
  .nav-links a { padding: 6px 10px; font-size: 12px; }

  .lang-toggle { margin-left: 0; margin-top: 2px; }

  .hero { padding: 20px 14px 16px; }
  .hero h1 { font-size: 28px; letter-spacing: -0.8px; }
  .hero p { font-size: 13px; margin-bottom: 24px; }

  .cube-scene { width: 120px; height: 120px; }
  .cube-face { width: 120px; height: 120px; font-size: 10px; letter-spacing: 2px; }
  .cube-face--front  { transform: rotateY(0deg) translateZ(60px); }
  .cube-face--back   { transform: rotateY(180deg) translateZ(60px); }
  .cube-face--right  { transform: rotateY(90deg) translateZ(60px); }
  .cube-face--left   { transform: rotateY(-90deg) translateZ(60px); }
  .cube-face--top    { transform: rotateX(90deg) translateZ(60px); }
  .cube-face--bottom { transform: rotateX(-90deg) translateZ(60px); }

  .cube-reflection { width: 120px; height: 60px; }
  .cube-reflection .cube-face { width: 120px; height: 120px; }
  .cube-reflection .cube-face--front  { transform: rotateY(0deg) translateZ(60px); }
  .cube-reflection .cube-face--back   { transform: rotateY(180deg) translateZ(60px); }
  .cube-reflection .cube-face--right  { transform: rotateY(90deg) translateZ(60px); }
  .cube-reflection .cube-face--left   { transform: rotateY(-90deg) translateZ(60px); }
  .cube-reflection .cube-face--top    { transform: rotateX(90deg) translateZ(60px); }
  .cube-reflection .cube-face--bottom { transform: rotateX(-90deg) translateZ(60px); }

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

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

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

  table { min-width: 500px; }
  thead th { padding: 10px 12px; font-size: 9px; }
  tbody td { padding: 10px 12px; font-size: 12px; }
  .key-display { max-width: 100px; font-size: 10px; }

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

  .docs-content { padding: 20px 16px; }
  .docs-content h1 { font-size: 22px; }
  .docs-content h2 { font-size: 17px; }
  .docs-content pre { padding: 14px; }
  .docs-content .endpoint { padding: 12px; }

  .settings-grid { grid-template-columns: 1fr; }
  .period-tabs { gap: 4px; }
  .period-tab { padding: 6px 12px; font-size: 11px; }
  .toast { left: 10px; right: 10px; max-width: none; }

  .base-url-inner { padding: 14px 22px; }
  .base-url-value { font-size: 13px; }
}

/* ═══ Responsive — Small Mobile ═══ */
@media (max-width: 420px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .stat-card .stat-value { font-size: 18px; }

  .hero h1 { font-size: 24px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn { width: 100%; max-width: 240px; }

  .cube-scene { width: 100px; height: 100px; margin-bottom: 16px; }
  .cube-face { width: 100px; height: 100px; font-size: 9px; }
  .cube-face--front  { transform: rotateY(0deg) translateZ(50px); }
  .cube-face--back   { transform: rotateY(180deg) translateZ(50px); }
  .cube-face--right  { transform: rotateY(90deg) translateZ(50px); }
  .cube-face--left   { transform: rotateY(-90deg) translateZ(50px); }
  .cube-face--top    { transform: rotateX(90deg) translateZ(50px); }
  .cube-face--bottom { transform: rotateX(-90deg) translateZ(50px); }

  .cube-reflection { width: 100px; height: 50px; }
  .cube-reflection .cube-face { width: 100px; height: 100px; }
  .cube-reflection .cube-face--front  { transform: rotateY(0deg) translateZ(50px); }
  .cube-reflection .cube-face--back   { transform: rotateY(180deg) translateZ(50px); }
  .cube-reflection .cube-face--right  { transform: rotateY(90deg) translateZ(50px); }
  .cube-reflection .cube-face--left   { transform: rotateY(-90deg) translateZ(50px); }
  .cube-reflection .cube-face--top    { transform: rotateX(90deg) translateZ(50px); }
  .cube-reflection .cube-face--bottom { transform: rotateX(-90deg) translateZ(50px); }
}

/* ═══ Animations ═══ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.fade-in-1 { animation-delay: 0.1s; opacity: 0; }
.fade-in-2 { animation-delay: 0.2s; opacity: 0; }
.fade-in-3 { animation-delay: 0.3s; opacity: 0; }
.fade-in-4 { animation-delay: 0.4s; opacity: 0; }
.fade-in-5 { animation-delay: 0.5s; opacity: 0; }
.fade-in-6 { animation-delay: 0.6s; opacity: 0; }
