:root {
  --bg: #09090b;
  --zinc-900: #18181b;
  --zinc-800: #27272a;
  --zinc-700: #3f3f46;
  --zinc-600: #52525b;
  --zinc-500: #71717a;
  --zinc-400: #a1a1aa;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --green: #22c55e;
  --red: #ef4444;
  --blue: #3b82f6;
  --white: #ffffff;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-sans);
}

body.lock-scroll { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }

/* ---------- Loader ---------- */
.loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}
.loader-overlay.hide { opacity: 0; pointer-events: none; }
.loader-inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; user-select: none; }
.loader-cloud { width: 48px; height: 48px; color: var(--orange); animation: pulse 2s infinite; }
.loader-bar-track { width: 200px; height: 4px; background: var(--zinc-800); border-radius: 999px; overflow: hidden; }
.loader-bar { height: 100%; width: 0; background: var(--orange); border-radius: 999px; transition: width 1.5s ease-in-out; }
.loader-label { font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.2em; color: var(--zinc-500); }
.loader-hint { font-size: 10px; color: var(--zinc-600); margin-top: 2rem; opacity: 0.5; animation: pulse 2s infinite; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ---------- Fade-in entrance utils ---------- */
.fade-in-x { opacity: 0; transform: translateX(-20px); animation: fadeInX 0.6s ease forwards; }
.fade-in-y { opacity: 0; transform: translateY(30px); animation: fadeInY 0.6s ease forwards; }
.fade-in { opacity: 0; animation: fadeIn 0.6s ease forwards; }
.fade-in-scale { opacity: 0; transform: scale(0.8); animation: fadeInScale 0.5s ease forwards; }
.delay-2 { animation-delay: 0.2s; }
.delay-4 { animation-delay: 0.4s; }
.delay-6 { animation-delay: 0.6s; }
.delay-8 { animation-delay: 0.8s; }
@keyframes fadeInX { to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInY { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes fadeInScale { to { opacity: 1; transform: scale(1); } }

/* ---------- Page shell ---------- */
.page { position: relative; min-height: 100vh; }
.bg-glow { position: fixed; pointer-events: none; border-radius: 999px; filter: blur(120px); }
.bg-glow-1 { top: -10%; left: -10%; width: 40%; height: 40%; background: rgba(249, 115, 22, 0.1); }
.bg-glow-2 { bottom: -10%; right: -10%; width: 40%; height: 40%; background: rgba(59, 130, 246, 0.05); }

.grid-shell { position: relative; display: grid; grid-template-columns: 1fr; min-height: 100vh; }
@media (min-width: 1024px) { .grid-shell { grid-template-columns: 1fr 1fr; } }

.pane { padding: 2rem; display: flex; flex-direction: column; justify-content: space-between; }
@media (min-width: 1024px) { .pane { padding: 5rem; } }
.pane-left {
  border-bottom: 1px solid rgba(255,255,255,0.05);
  backdrop-filter: blur(60px);
}
@media (min-width: 1024px) {
  .pane-left { border-bottom: none; border-right: 1px solid rgba(255,255,255,0.05); }
}
.pane-right { background: rgba(0,0,0,0.2); overflow-y: auto; align-items: center; }

/* ---------- Brand ---------- */
.brand-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 4rem; }
.brand-mark {
  width: 48px; height: 48px; background: var(--white); border-radius: 1rem;
  display: flex; align-items: center; justify-content: center; color: #000;
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
}
.brand-mark i { width: 24px; height: 24px; stroke-width: 2.5; }
.brand-name { font-size: 1.5rem; font-weight: 900; letter-spacing: -0.05em; text-transform: uppercase; font-style: italic; }

.hero-title {
  font-size: clamp(3.5rem, 9vw, 10rem);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.05em;
  margin: 0 0 3rem;
}
.hero-accent {
  background: linear-gradient(to right, #fb923c, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy { max-width: 28rem; display: flex; flex-direction: column; gap: 1.5rem; }
.hero-lead { font-size: 1.25rem; color: var(--zinc-400); line-height: 1.6; margin: 0; }

.status-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.status-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.375rem 1rem; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 999px;
  font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.2em;
}
.status-dot { width: 6px; height: 6px; border-radius: 999px; animation: pulse 2s infinite; }
.status-checking { background: #eab308; }
.status-online { background: var(--green); }
.status-offline { background: var(--red); }

.stats-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  background: rgba(255,255,255,0.05); padding: 1.5rem; border-radius: 1.5rem;
  border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(12px);
}
.stats-divider { border-left: 1px solid rgba(255,255,255,0.1); padding-left: 1.5rem; }
.stats-label {
  font-size: 10px; color: var(--zinc-500); font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.1em; margin: 0 0 0.25rem; display: flex; align-items: center; gap: 0.5rem;
}
.stats-label i { width: 10px; height: 10px; }
.ic-orange { color: var(--orange); }
.ic-blue { color: var(--blue); }
.stats-value { font-size: 1.875rem; font-weight: 900; letter-spacing: -0.05em; margin: 0; font-variant-numeric: tabular-nums; }

.donate-card {
  display: flex; align-items: center; gap: 1rem; padding: 1rem; border-radius: 1rem;
  background: linear-gradient(to right, rgba(249,115,22,0.1), transparent);
  border: 1px solid rgba(249,115,22,0.2); transition: border-color 0.3s;
}
.donate-card:hover { border-color: var(--orange); }
.donate-icon {
  width: 40px; height: 40px; border-radius: 0.75rem; background: var(--orange);
  display: flex; align-items: center; justify-content: center; color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3); flex-shrink: 0;
}
.donate-icon i { width: 20px; height: 20px; }
.donate-title { font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; margin: 0; }
.donate-sub { font-size: 10px; color: var(--zinc-500); font-weight: 700; margin: 0; }

.left-footer {
  margin-top: 3rem; display: flex; align-items: center; justify-content: space-between;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em; font-weight: 700; color: var(--zinc-600);
}
.left-footer-links { display: flex; gap: 1rem; }
.left-footer-links span:hover { color: var(--white); }

/* ---------- Right pane ---------- */
.right-inner { width: 100%; max-width: 36rem; padding: 5rem 0; margin: 0 auto; }

.tabs {
  display: flex; gap: 0.5rem; margin-bottom: 2rem;
  background: rgba(24,24,27,0.5); padding: 0.375rem; border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.05); backdrop-filter: blur(12px);
}
.tab-btn {
  flex: 1; padding: 0.75rem; border-radius: 0.75rem; border: none; background: transparent;
  color: var(--zinc-500); font-size: 10px; font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.2em; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  transition: all 0.2s;
}
.tab-btn i { width: 14px; height: 14px; }
.tab-btn:hover { color: var(--white); }
.tab-btn.active { background: var(--white); color: #000; box-shadow: 0 4px 12px rgba(0,0,0,0.3); }

.tab-panel { display: none; animation: fadeInY 0.35s ease; }
.tab-panel.active { display: block; }

.card {
  background: rgba(24,24,27,0.5); border-radius: 2.5rem; padding: 2.5rem;
  box-shadow: 0 25px 50px rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.05);
  backdrop-filter: blur(12px); margin-bottom: 3rem;
}
.card-title { font-size: 1.25rem; font-weight: 900; letter-spacing: -0.02em; margin: 0 0 1.5rem; text-transform: uppercase; }

/* ---------- Dropzone / upload ---------- */
.dropzone {
  border: 2px dashed var(--zinc-800); border-radius: 2rem; padding: 4rem;
  cursor: pointer; position: relative; overflow: hidden; margin-bottom: 2rem;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.dropzone:hover { border-color: rgba(249,115,22,0.5); background: rgba(249,115,22,0.02); }
.dropzone:active { transform: scale(0.99); }
.hidden-input { display: none; }
.dropzone-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.dropzone-icon {
  width: 80px; height: 80px; border-radius: 1.5rem; background: var(--zinc-800);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem;
  box-shadow: 0 20px 25px rgba(0,0,0,0.3); transition: all 0.2s;
}
.dropzone:hover .dropzone-icon { background: var(--orange); color: #fff; }
.dropzone-icon i { width: 32px; height: 32px; stroke-width: 2.5; }
.dropzone-title { font-size: 1.25rem; font-weight: 700; margin: 0 0 0.5rem; text-transform: uppercase; letter-spacing: -0.02em; }
.dropzone-sub { font-size: 0.875rem; color: var(--zinc-500); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 500; margin: 0; }

.file-preview {
  position: relative; width: 100%; max-height: 70vh; min-height: 300px;
  display: flex; align-items: center; justify-content: center; border-radius: 1.5rem;
  overflow: hidden; margin-bottom: 2rem; background: var(--zinc-900); border: 1px solid rgba(255,255,255,0.05);
  animation: fadeInScale 0.3s ease;
}
.file-preview.hidden { display: none; }
.preview-media img, .preview-media video { width: 100%; height: 100%; max-height: 70vh; object-fit: contain; display: block; }
.preview-media .preview-file-icon { display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--zinc-500); padding: 3rem; }
.preview-media .preview-file-icon i { width: 64px; height: 64px; margin-bottom: 1rem; }
.preview-media .preview-file-icon span { font-weight: 700; font-size: 1.125rem; color: var(--white); }
.preview-overlay {
  position: absolute; inset-inline: 0; bottom: 0; padding: 1.5rem 1.5rem 4rem;
  background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.5), transparent);
  pointer-events: none;
}
.preview-name { font-size: 0.875rem; font-weight: 700; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview-size { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.5); margin: 0.25rem 0 0; }
.preview-remove {
  position: absolute; top: 1rem; right: 1rem; padding: 0.5rem; background: rgba(0,0,0,0.5);
  backdrop-filter: blur(12px); border-radius: 999px; border: none; color: #fff; transition: background 0.2s;
}
.preview-remove:hover { background: #000; }
.preview-remove i { width: 16px; height: 16px; }

.error-box {
  margin-bottom: 1.5rem; padding: 1.25rem; border-radius: 1rem; background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.2); color: #f87171; display: flex; align-items: center; gap: 1rem;
  font-size: 0.875rem; animation: fadeInY 0.3s ease;
}
.error-box.hidden { display: none; }
.error-box i { width: 20px; height: 20px; flex-shrink: 0; }
.error-box span { font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; }

.upload-btn {
  width: 100%; padding: 1.25rem; border-radius: 1rem; border: none; font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.2em; font-size: 11px; position: relative;
  overflow: hidden; box-shadow: 0 25px 50px rgba(0,0,0,0.4);
  background: var(--zinc-800); color: var(--zinc-600); border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.2s;
}
.upload-btn.ready { background: var(--white); color: #000; cursor: pointer; }
.upload-btn.ready:hover { background: var(--orange); color: #fff; }
.upload-btn:disabled { cursor: not-allowed; }
.upload-btn-progress { position: absolute; inset: 0; background: rgba(249,115,22,0.2); width: 0; transition: width 0.2s ease; z-index: 0; }
#upload-btn-label { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- History ---------- */
.history-section.hidden { display: none; }
.history-section { display: flex; flex-direction: column; gap: 1.5rem; animation: fadeInY 0.3s ease; }
.history-header { display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; padding: 0 0.5rem; }
@media (min-width: 640px) { .history-header { flex-direction: row; align-items: center; } }
.history-title { font-size: 10px; text-transform: uppercase; letter-spacing: 0.3em; font-weight: 900; color: var(--zinc-600); margin: 0; }
.history-controls { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.history-filter {
  background: var(--zinc-900); border: 1px solid rgba(255,255,255,0.1); border-radius: 0.5rem;
  padding: 0.375rem 0.75rem; font-size: 10px; font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--zinc-400);
}
.clear-log-btn {
  padding: 0.375rem 0.75rem; border: 1px solid rgba(239,68,68,0.2); background: rgba(239,68,68,0.1);
  border-radius: 0.5rem; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--red); box-shadow: 0 20px 25px rgba(0,0,0,0.3); transition: all 0.2s;
}
.clear-log-btn:hover { background: var(--red); color: #fff; }

.history-list { display: flex; flex-direction: column; gap: 1rem; }
.history-item {
  background: var(--zinc-900); border: 1px solid rgba(255,255,255,0.05); border-radius: 1.5rem;
  padding: 1.25rem; display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 10px 15px rgba(0,0,0,0.3); position: relative; transition: border-color 0.2s;
  animation: fadeInY 0.3s ease;
}
.history-item:hover { border-color: var(--zinc-700); }
.history-item-left { display: flex; align-items: center; gap: 1.25rem; min-width: 0; }
.history-thumb {
  width: 56px; height: 56px; background: var(--zinc-800); border-radius: 1rem; overflow: hidden;
  outline: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: outline-color 0.3s;
}
.history-item:hover .history-thumb { outline-color: rgba(249,115,22,0.5); }
.history-thumb img { width: 100%; height: 100%; object-fit: cover; }
.history-info { display: flex; flex-direction: column; min-width: 0; }
.history-name { font-size: 0.875rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
@media (min-width: 768px) { .history-name { max-width: 20rem; } }
.history-meta { font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; color: var(--zinc-600); }

.history-item-actions { display: flex; align-items: center; gap: 0.5rem; }
.icon-btn {
  padding: 0.75rem; border-radius: 0.75rem; border: none; background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.4); transition: all 0.15s; display: inline-flex;
}
.icon-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.icon-btn i { width: 18px; height: 18px; }
.icon-btn.copied { background: var(--orange); color: #fff; }
.icon-btn.desktop-only { display: none; }
@media (min-width: 640px) { .icon-btn.desktop-only { display: inline-flex; } }

.share-wrap { position: relative; }
.share-popover {
  position: absolute; bottom: 100%; right: 0; margin-bottom: 0.75rem; width: 300px;
  background: var(--zinc-800); border: 1px solid rgba(255,255,255,0.1); border-radius: 1rem;
  padding: 1rem; box-shadow: 0 25px 50px rgba(0,0,0,0.5); z-index: 50;
  animation: fadeInScale 0.15s ease;
}
.share-popover.hidden { display: none; }
.share-popover-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.share-popover-head span { font-size: 0.75rem; font-weight: 700; }
.share-popover-close { background: none; border: none; color: var(--zinc-400); }
.share-popover-close:hover { color: #fff; }
.share-popover-close i { width: 14px; height: 14px; }
.share-url-box {
  display: flex; background: var(--zinc-900); border: 1px solid rgba(255,255,255,0.05); border-radius: 0.5rem;
  padding: 0.5rem; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; overflow: hidden;
}
.share-url-box span { font-size: 10px; color: var(--zinc-400); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.share-copy-btn {
  width: 100%; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.2em;
  background: var(--white); color: #000; border: none; padding: 0.5rem; border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem; transition: all 0.2s;
}
.share-copy-btn:hover { background: var(--orange); color: #fff; }
.share-copy-btn i { width: 14px; height: 14px; }

/* ---------- Docs tab ---------- */
.lang-switch { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; }
.lang-btn {
  padding: 0.5rem 1rem; border-radius: 0.5rem; border: none; font-size: 10px; font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.1em; background: rgba(255,255,255,0.05); color: var(--zinc-500);
  transition: all 0.2s;
}
.lang-btn:hover { background: rgba(255,255,255,0.1); }
.lang-btn.active { background: var(--orange); color: #fff; }

.code-block { position: relative; overflow: hidden; border-radius: 1rem; border: 1px solid rgba(255,255,255,0.05); background: rgba(0,0,0,0.4); margin-bottom: 2rem; }
.code-block pre { margin: 0; padding: 1.5rem; background: transparent !important; font-size: 11px; }
.code-copy-btn {
  position: absolute; top: 1rem; right: 1rem; padding: 0.5rem; background: rgba(255,255,255,0.1);
  border-radius: 0.5rem; border: none; color: #fff; opacity: 0; transition: opacity 0.2s; z-index: 2;
}
.code-block:hover .code-copy-btn { opacity: 1; }
.code-copy-btn i { width: 14px; height: 14px; }

.api-meta { display: flex; flex-direction: column; gap: 1rem; }
.api-meta-row {
  padding: 1rem; border-radius: 0.75rem; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: space-between;
}
.api-meta-row span:first-child { font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; color: var(--zinc-500); }
.api-meta-accent { font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; color: var(--orange); }
.api-meta-mono { font-size: 10px; font-weight: 900; font-family: var(--font-mono); letter-spacing: 0.1em; }

/* ---------- About tab ---------- */
.about-block { margin-bottom: 2rem; }
.about-block:last-child { margin-bottom: 0; }
.about-highlight {
  position: relative; overflow: hidden; border-radius: 1.5rem; border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(to bottom right, rgba(249,115,22,0.1), transparent); padding: 2rem;
}
.about-highlight-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.about-highlight-icon {
  width: 48px; height: 48px; background: var(--white); border-radius: 1rem; display: flex;
  align-items: center; justify-content: center; color: #000; box-shadow: 0 10px 15px rgba(0,0,0,0.3); flex-shrink: 0;
}
.about-eyebrow { font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; color: var(--zinc-500); margin: 0; }
.about-heading { font-size: 1.125rem; font-weight: 900; letter-spacing: -0.02em; margin: 0; }
.about-text { font-size: 0.875rem; color: var(--zinc-400); line-height: 1.6; font-weight: 500; margin: 0; }
.about-highlight-name { color: #fff; font-weight: 700; font-style: italic; text-decoration: underline; text-decoration-color: var(--orange); }

.about-thanks-label { font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.3em; color: var(--zinc-600); margin: 0 0 1.5rem; display: flex; align-items: center; gap: 0.75rem; }
.about-thanks-line { width: 32px; height: 1px; background: var(--zinc-800); display: inline-block; }
.about-thanks-tags { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.about-thanks-tags span {
  padding: 0.5rem 1rem; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.75rem; font-size: 10px; font-weight: 900; letter-spacing: -0.01em; color: var(--zinc-400);
  transition: all 0.2s;
}
.about-thanks-tags span:hover { color: #fff; border-color: rgba(255,255,255,0.2); }

.about-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-mini-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 1.5rem; border-radius: 1rem; }
.about-mini-label { font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; color: var(--zinc-500); margin: 0 0 0.5rem; }
.about-mini-value { font-size: 1rem; font-weight: 700; letter-spacing: -0.02em; color: #fff; margin: 0; display: flex; align-items: center; gap: 0.5rem; }
.ic-red-fill { width: 14px; height: 14px; color: var(--red); fill: var(--red); }

.about-note { padding: 1.5rem; border-radius: 1rem; border: 1px solid rgba(249,115,22,0.2); background: rgba(249,115,22,0.05); }
.about-note p { font-size: 0.75rem; color: var(--zinc-400); line-height: 1.6; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { position: relative; border-top: 1px solid rgba(255,255,255,0.05); background: rgba(0,0,0,0.4); backdrop-filter: blur(24px); padding: 3rem 0; }
.footer-top { max-width: 80rem; margin: 0 auto; padding: 0 2rem; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 2rem; }
@media (min-width: 768px) { .footer-top { flex-direction: row; align-items: flex-start; } }
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
@media (min-width: 768px) { .footer-brand { align-items: flex-start; } }
.footer-brand-row { display: flex; align-items: center; gap: 0.75rem; }
.footer-brand-mark { width: 32px; height: 32px; background: var(--white); border-radius: 0.5rem; display: flex; align-items: center; justify-content: center; color: #000; }
.footer-brand-mark i { width: 16px; height: 16px; }
.footer-brand-name { font-size: 1.125rem; font-weight: 900; letter-spacing: -0.05em; text-transform: uppercase; font-style: italic; }
.footer-tagline { color: var(--zinc-500); font-size: 0.75rem; font-weight: 500; max-width: 20rem; text-align: center; margin: 0; }
@media (min-width: 768px) { .footer-tagline { text-align: left; } }

.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem; text-align: center; }
@media (min-width: 640px) { .footer-cols { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .footer-cols { text-align: left; } }
.footer-cols h4 { font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.3em; color: var(--zinc-400); margin: 0 0 1rem; }
.footer-cols li { margin-bottom: 0.5rem; }
.footer-cols a, .footer-link { font-size: 0.75rem; font-weight: 700; color: var(--zinc-600); background: none; border: none; padding: 0; }
.footer-cols a:hover, .footer-link:hover { color: var(--orange); }
.footer-status {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0.75rem; background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.2); border-radius: 999px; font-size: 8px; font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--green);
}
.footer-status-dot { width: 4px; height: 4px; border-radius: 999px; background: var(--green); animation: pulse 2s infinite; }
.footer-quote { font-size: 10px; color: var(--zinc-700); font-weight: 700; font-style: italic; margin: 0.75rem 0 0; }

.footer-bottom {
  max-width: 80rem; margin: 3rem auto 0; padding: 2rem 2rem 0; border-top: 1px solid rgba(255,255,255,0.05);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem;
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; } }
.footer-bottom p { font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.3em; color: var(--zinc-700); margin: 0; }
.footer-bottom p span { color: var(--zinc-500); }
.footer-italic { font-style: italic; }
.footer-legal { display: flex; gap: 1.5rem; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; color: var(--zinc-700); }
.footer-legal span:hover { color: #fff; cursor: pointer; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(4px); padding: 1rem; animation: fadeIn 0.2s ease;
}
.modal-overlay.hidden { display: none; }
.modal-box {
  background: var(--zinc-900); border: 1px solid rgba(255,255,255,0.1); border-radius: 2rem; padding: 2rem;
  max-width: 24rem; width: 100%; box-shadow: 0 25px 50px rgba(0,0,0,0.6); position: relative; overflow: hidden;
  animation: fadeInScale 0.2s ease;
}
.modal-accent-bar { position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(to right, var(--red), var(--orange)); }
.modal-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.modal-icon { width: 48px; height: 48px; border-radius: 1rem; background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2); display: flex; align-items: center; justify-content: center; color: var(--red); flex-shrink: 0; }
.modal-icon i { width: 24px; height: 24px; }
.modal-title { font-size: 1.125rem; font-weight: 900; letter-spacing: -0.02em; margin: 0; }
.modal-sub { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--zinc-500); margin: 0.25rem 0 0; }
.modal-body { font-size: 0.875rem; color: var(--zinc-400); font-weight: 500; margin: 0 0 2rem; }
.modal-actions { display: flex; align-items: center; gap: 0.75rem; }
.modal-btn { flex: 1; padding: 1rem; border-radius: 0.75rem; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; border: none; transition: all 0.2s; }
.modal-btn-ghost { border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.05); color: #fff; }
.modal-btn-ghost:hover { background: rgba(255,255,255,0.1); }
.modal-btn-danger { border: 1px solid var(--red); background: rgba(239,68,68,0.8); color: #fff; }
.modal-btn-danger:hover { background: var(--red); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
