/* ═══════════════════════════════════════════════════════════
   FileCrater — Premium permanent file hosting
   Near-black · glass · cyan/violet glow · crater amber accents
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg-0: #03050c;
  --bg-1: #070b16;
  --bg-2: #0b1020;
  --bg-3: #10182c;
  --glass: rgba(14, 20, 40, 0.55);
  --glass-strong: rgba(16, 24, 48, 0.82);
  --glass-border: rgba(120, 160, 255, 0.14);
  --glass-border-hot: rgba(140, 120, 255, 0.45);
  --text: #eef2ff;
  --text-dim: #9aa6c4;
  --text-mute: #6b7896;
  --blue: #3b82f6;
  --blue-bright: #60a5fa;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --purple: #a855f7;
  --pink: #c084fc;
  --crater: #f59e0b;
  --crater-hot: #fbbf24;
  --green: #34d399;
  --danger: #f87171;
  --grad: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #a855f7 100%);
  --grad-soft: linear-gradient(135deg, rgba(59,130,246,.25), rgba(139,92,246,.25));
  --glow-blue: 0 0 40px rgba(59, 130, 246, 0.35);
  --glow-violet: 0 0 50px rgba(139, 92, 246, 0.4);
  --glow-combo: 0 0 30px rgba(59,130,246,.25), 0 0 60px rgba(139,92,246,.2);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --nav-h: 68px;
  --font: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-0);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(88, 60, 200, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 20%, rgba(37, 99, 235, 0.12), transparent 50%),
    radial-gradient(ellipse 40% 30% at 10% 80%, rgba(139, 92, 246, 0.1), transparent 50%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 40%, #02040a 100%);
  pointer-events: none;
}

/* Subtle grid */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(100, 140, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 140, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  pointer-events: none;
}

a { color: var(--blue-bright); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--cyan); }

img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; }

/* ── Particles canvas ── */
#particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
}

/* ── Layout ── */
.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}
.container-wide {
  width: min(1280px, calc(100% - 2rem));
  margin-inline: auto;
}
.container-narrow {
  width: min(720px, calc(100% - 2rem));
  margin-inline: auto;
}

/* ── Glass ── */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 8px 32px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.04);
}

.glass-strong {
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  box-shadow: 0 12px 40px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.05);
}

.glow-border {
  position: relative;
}
.glow-border::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(59,130,246,.6), rgba(139,92,246,.5), rgba(34,211,238,.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
}

/* ── Typography ── */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.gradient-text {
  background: linear-gradient(135deg, #fff 0%, #c4b5fd 40%, #60a5fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.muted { color: var(--text-dim); }
.mute { color: var(--text-mute); }
.mono { font-family: var(--mono); font-size: 0.9em; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.925rem;
  cursor: pointer;
  transition: all .25s var(--ease);
  white-space: nowrap;
  text-decoration: none;
  color: var(--text);
  background: transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--grad);
  box-shadow: var(--glow-combo), inset 0 1px 0 rgba(255,255,255,.2);
  color: #fff;
}
.btn-primary:hover {
  box-shadow: 0 0 40px rgba(99,102,241,.55), 0 8px 24px rgba(59,130,246,.3);
  color: #fff;
  filter: brightness(1.08);
}

.btn-ghost {
  background: rgba(255,255,255,.04);
  border-color: var(--glass-border);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(140,160,255,.35);
  color: #fff;
}

.btn-outline {
  border-color: rgba(99, 130, 255, 0.4);
  background: rgba(59, 130, 246, 0.08);
}
.btn-outline:hover {
  border-color: var(--blue-bright);
  background: rgba(59, 130, 246, 0.16);
  box-shadow: var(--glow-blue);
  color: #fff;
}

.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.825rem; }
.btn-lg { padding: 0.9rem 1.6rem; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 12px;
}

/* ── Nav ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(3, 5, 12, 0.72);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(100, 140, 255, 0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1280px, calc(100% - 2rem));
  margin-inline: auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: #fff;
  text-decoration: none;
}
.logo:hover { color: #fff; }
.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--grad);
  display: grid;
  place-items: center;
  box-shadow: var(--glow-combo);
  position: relative;
}
.logo-mark svg { width: 18px; height: 18px; }
.logo span.dot { color: var(--cyan); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  color: var(--text-dim);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
}
.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,.06);
}
.nav-links a.active {
  color: var(--cyan);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.credit-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.55rem 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #e9d5ff;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all .2s var(--ease);
}
.credit-pill:hover {
  background: rgba(139, 92, 246, 0.22);
  box-shadow: var(--glow-violet);
  color: #fff;
}
.credit-pill .plus {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--grad);
  display: grid;
  place-items: center;
  font-size: 1rem;
  line-height: 1;
  color: #fff;
  box-shadow: var(--glow-blue);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--glass-border);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
}

/* ── Hero / Home ── */
.hero {
  padding: 3.5rem 0 2rem;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-bottom: 0.75rem;
}
.hero .sub {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin-bottom: 2.25rem;
}

/* Drop zone */
.dropzone {
  position: relative;
  border-radius: 24px;
  padding: 3.5rem 2rem;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background:
    radial-gradient(ellipse at center, rgba(88, 50, 200, 0.18) 0%, transparent 65%),
    rgba(8, 12, 28, 0.7);
  border: 1.5px dashed rgba(120, 140, 255, 0.35);
  overflow: hidden;
  transition: all .35s var(--ease);
  cursor: pointer;
}
.dropzone::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  background: linear-gradient(135deg, #7c3aed, #3b82f6, #22d3ee, #8b5cf6);
  background-size: 300% 300%;
  opacity: 0.55;
  z-index: -1;
  animation: borderFlow 8s ease infinite;
  filter: blur(0.5px);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 2px;
}
.dropzone:hover,
.dropzone.dragover {
  border-color: transparent;
  background:
    radial-gradient(ellipse at center, rgba(99, 60, 255, 0.3) 0%, transparent 60%),
    rgba(12, 16, 40, 0.85);
  box-shadow: var(--glow-combo), 0 0 80px rgba(99, 102, 241, 0.25);
  transform: scale(1.005);
}
.dropzone.dragover {
  border-style: solid;
}

@keyframes borderFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.cloud-icon {
  width: 88px;
  height: 88px;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 24px rgba(96, 165, 250, 0.7));
  animation: floatY 4s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.dropzone h2 {
  font-size: 1.5rem;
  font-weight: 700;
}
.dropzone .or {
  color: var(--text-mute);
  font-size: 0.9rem;
}
.dropzone .secure-note {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-mute);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.feature-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin: 1.5rem 0 2rem;
  color: var(--text-dim);
  font-size: 0.85rem;
}
.feature-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.feature-row strong { color: var(--text); font-weight: 600; display: block; font-size: 0.88rem; }
.feature-item { text-align: left; }
.feature-item small { color: var(--text-mute); font-size: 0.75rem; }

/* Upload result card */
.upload-card {
  display: none;
  margin-top: 1.5rem;
  padding: 1.25rem;
  text-align: left;
  animation: riseIn .45s var(--ease);
}
.upload-card.show { display: block; }

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

.upload-card-inner {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 640px) {
  .upload-card-inner { grid-template-columns: 1fr; }
}

.file-preview {
  width: 120px;
  height: 120px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--glass-border);
  display: grid;
  place-items: center;
  font-size: 2rem;
}
.file-preview img { width: 100%; height: 100%; object-fit: cover; }

.upload-meta h3 {
  font-size: 1.05rem;
  margin: 0.35rem 0 0.15rem;
}
.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.status-ok {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--green);
  font-weight: 600;
  font-size: 0.95rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid transparent;
}
.badge-perm {
  background: rgba(52, 211, 153, 0.12);
  color: var(--green);
  border-color: rgba(52, 211, 153, 0.3);
}
.badge-popular {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--glow-blue);
}

.progress-wrap {
  margin: 0.85rem 0;
}
.progress-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #22d3ee, #3b82f6, #8b5cf6);
  box-shadow: 0 0 12px rgba(59,130,246,.6);
  transition: width .2s linear;
}
.progress-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-mute);
}

.link-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}
.link-input {
  flex: 1;
  min-width: 180px;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(0,0,0,.35);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.85rem;
}
.never-expire {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--green);
  font-size: 0.85rem;
  margin-top: 0.65rem;
}

/* Credits section */
.section {
  padding: 2.5rem 0;
}
.section-head {
  text-align: center;
  margin-bottom: 1.75rem;
}
.section-head h2 {
  font-size: 1.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.section-head p { color: var(--text-dim); margin-top: 0.35rem; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
@media (max-width: 860px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 380px; margin-inline: auto; }
}

.price-card {
  position: relative;
  padding: 1.75rem 1.4rem;
  text-align: center;
  transition: all .3s var(--ease);
  overflow: hidden;
}
.price-card:hover {
  transform: translateY(-4px);
  border-color: rgba(140, 120, 255, 0.4);
  box-shadow: var(--glow-combo);
}
.price-card.popular {
  border-color: rgba(139, 92, 246, 0.55);
  background:
    radial-gradient(ellipse at top, rgba(139,92,246,.2), transparent 60%),
    var(--glass-strong);
  box-shadow: var(--glow-violet);
  transform: scale(1.03);
}
.price-card.popular:hover { transform: scale(1.04) translateY(-2px); }
.price-card .coins {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 12px rgba(96,165,250,.5));
}
.price-card .credits-num {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.price-card .credits-label { color: var(--text-dim); font-size: 0.9rem; margin: 0.25rem 0 0.75rem; }
.price-card .price {
  font-size: 1.35rem;
  font-weight: 700;
}
.price-card .per { color: var(--text-mute); font-size: 0.8rem; margin: 0.25rem 0 1.25rem; }
.popular-tag {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  white-space: nowrap;
  box-shadow: var(--glow-blue);
}

/* Cost estimator */
.estimator {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.9fr;
  gap: 1rem;
  padding: 1.25rem;
  margin-top: 1.5rem;
  align-items: center;
}
@media (max-width: 800px) {
  .estimator { grid-template-columns: 1fr; }
}
.estimator-info h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.estimator-info p { color: var(--text-dim); font-size: 0.9rem; }
.estimator-result {
  text-align: center;
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: rgba(0,0,0,.25);
}
.estimator-result .big {
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.estimator-drop {
  border: 1.5px dashed rgba(168, 85, 247, 0.45);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: all .25s var(--ease);
  color: var(--text-dim);
  font-size: 0.85rem;
}
.estimator-drop:hover, .estimator-drop.dragover {
  border-color: var(--purple);
  background: rgba(139, 92, 246, 0.1);
  box-shadow: var(--glow-violet);
  color: #fff;
}

/* Trust strip */
.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2.5rem 0 1rem;
}
@media (max-width: 800px) {
  .trust-row { grid-template-columns: 1fr 1fr; }
}
.trust-item {
  padding: 1.1rem;
  text-align: left;
}
.trust-item .icon { font-size: 1.25rem; margin-bottom: 0.4rem; }
.trust-item h4 { font-size: 0.95rem; margin-bottom: 0.2rem; }
.trust-item p { color: var(--text-mute); font-size: 0.8rem; }

/* ── Footer ── */
.site-footer {
  margin-top: 4rem;
  padding: 2.5rem 0 2rem;
  border-top: 1px solid rgba(100, 140, 255, 0.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-brand p { color: var(--text-mute); font-size: 0.9rem; margin-top: 0.75rem; max-width: 280px; }
.footer-col h5 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-mute);
  margin-bottom: 0.85rem;
}
.footer-col a {
  display: block;
  color: var(--text-dim);
  font-size: 0.9rem;
  padding: 0.25rem 0;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(100,140,255,.06);
  color: var(--text-mute);
  font-size: 0.85rem;
}
.footer-bottom nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-bottom a { color: var(--text-mute); }
.footer-bottom a:hover { color: var(--text-dim); }

/* ── Page headers ── */
.page-hero {
  padding: 2.5rem 0 1.5rem;
}
.page-hero h1 { font-size: clamp(1.75rem, 3vw, 2.4rem); margin-bottom: 0.5rem; }
.page-hero p { color: var(--text-dim); max-width: 560px; }

/* ── My Files ── */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(0,0,0,.3);
  min-width: min(320px, 100%);
  flex: 1;
}
.search-box input {
  background: none;
  border: none;
  outline: none;
  width: 100%;
  color: var(--text);
}
.filters {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.filter-chip {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--text-dim);
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
}
.filter-chip:hover, .filter-chip.active {
  background: rgba(59,130,246,.15);
  border-color: rgba(59,130,246,.4);
  color: #fff;
}

.files-table-wrap { overflow-x: auto; }
.files-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.files-table th {
  text-align: left;
  padding: 0.85rem 1rem;
  color: var(--text-mute);
  font-weight: 500;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--glass-border);
}
.files-table td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid rgba(100,140,255,.06);
  vertical-align: middle;
}
.files-table tr:hover td {
  background: rgba(59, 130, 246, 0.04);
}
.file-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.file-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg-3);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.file-thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-name { font-weight: 600; color: #fff; }
.file-slug { font-size: 0.75rem; color: var(--text-mute); font-family: var(--mono); }
.actions-cell {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

/* File cards grid (mobile-friendly alt) */
.files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.file-card {
  padding: 1rem;
  transition: all .25s var(--ease);
}
.file-card:hover {
  border-color: rgba(120,140,255,.35);
  box-shadow: var(--glow-blue);
  transform: translateY(-2px);
}
.file-card-preview {
  aspect-ratio: 16/10;
  border-radius: 12px;
  background: var(--bg-3);
  margin-bottom: 0.85rem;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-size: 2rem;
  border: 1px solid var(--glass-border);
}
.file-card-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ── Account ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 800px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
.stat-card {
  padding: 1.25rem;
}
.stat-card .label { color: var(--text-mute); font-size: 0.8rem; margin-bottom: 0.35rem; }
.stat-card .value { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; }
.stat-card .hint { color: var(--text-dim); font-size: 0.8rem; margin-top: 0.25rem; }

.panel {
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.panel h3 { margin-bottom: 1rem; font-size: 1.1rem; }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; }
}

.form-row { margin-bottom: 1rem; }
.form-row label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(0,0,0,.35);
  outline: none;
  transition: border-color .2s;
}
.form-input:focus {
  border-color: rgba(99, 130, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}

/* ── Blog ── */
.blog-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
  padding: 0;
  overflow: hidden;
  margin-bottom: 2rem;
}
@media (max-width: 800px) {
  .blog-featured { grid-template-columns: 1fr; }
}
.blog-featured-img {
  min-height: 280px;
  background-size: cover;
  background-position: center;
}
.blog-featured-body { padding: 1.75rem; display: flex; flex-direction: column; justify-content: center; }
.blog-featured-body .cat {
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}
.blog-featured-body h2 { font-size: 1.6rem; margin-bottom: 0.75rem; }
.blog-featured-body h2 a { color: #fff; }
.blog-featured-body h2 a:hover { color: var(--cyan); }
.blog-meta { color: var(--text-mute); font-size: 0.85rem; margin-top: 1rem; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
}
.blog-card {
  overflow: hidden;
  transition: all .3s var(--ease);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow-combo);
  border-color: rgba(120,140,255,.35);
}
.blog-card-img {
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-3);
}
.blog-card-body { padding: 1.15rem; flex: 1; display: flex; flex-direction: column; }
.blog-card-body .cat {
  color: var(--violet);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}
.blog-card-body h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.blog-card-body h3 a { color: #fff; }
.blog-card-body h3 a:hover { color: var(--blue-bright); }
.blog-card-body p { color: var(--text-dim); font-size: 0.875rem; flex: 1; }
.tag-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

/* Blog post article */
.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}
.article-hero-img {
  width: 100%;
  aspect-ratio: 2/1;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 1.5rem 0;
  border: 1px solid var(--glass-border);
}
.article-body {
  font-size: 1.05rem;
  color: #c8d0e8;
  line-height: 1.75;
}
.article-body h2 {
  color: #fff;
  font-size: 1.4rem;
  margin: 2rem 0 0.75rem;
}
.article-body p { margin-bottom: 1.1rem; }
.article-body ul { margin: 0 0 1.1rem 1.25rem; list-style: disc; }
.article-body li { margin-bottom: 0.4rem; }
.article-body pre {
  background: rgba(0,0,0,.45);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--cyan);
}
.article-body code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: rgba(59,130,246,.12);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  color: var(--blue-bright);
}
.article-body pre code { background: none; padding: 0; color: inherit; }

/* ── Auth ── */
.auth-wrap {
  min-height: calc(100vh - var(--nav-h) - 120px);
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}
.auth-card {
  width: min(420px, 100%);
  padding: 2rem;
}
.auth-card h1 { font-size: 1.5rem; margin-bottom: 0.35rem; }
.auth-card .lead { color: var(--text-dim); margin-bottom: 1.5rem; font-size: 0.95rem; }
.auth-card .foot { text-align: center; margin-top: 1.25rem; color: var(--text-mute); font-size: 0.9rem; }

/* ── Payments ── */
.tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 1.5rem;
}
.tabs a {
  padding: 0.75rem 1.1rem;
  color: var(--text-dim);
  font-weight: 500;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tabs a.active, .tabs a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}
.pool-card {
  padding: 1.35rem;
  margin-bottom: 1rem;
}
.pool-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.status-dot.active { background: var(--green); box-shadow: 0 0 8px var(--green); }
.status-dot.warning { background: #fbbf24; box-shadow: 0 0 8px #fbbf24; }
.pool-meta { color: var(--text-dim); font-size: 0.9rem; line-height: 1.7; }
.pool-actions { margin-top: 1rem; text-align: right; }

.exchange-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.exchange-btn {
  width: 100%;
  padding: 0.9rem 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,.03);
  text-align: center;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s var(--ease);
  color: var(--text);
}
.exchange-btn:hover {
  border-color: rgba(99,130,255,.45);
  background: rgba(59,130,246,.1);
  box-shadow: var(--glow-blue);
}

/* ── Plans comparison ── */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 900px) {
  .plans-grid { grid-template-columns: 1fr; }
}
.plan-card {
  padding: 1.75rem 1.4rem;
  display: flex;
  flex-direction: column;
}
.plan-card.popular {
  border-color: rgba(139,92,246,.5);
  box-shadow: var(--glow-violet);
}
.plan-price {
  font-size: 2rem;
  font-weight: 800;
  margin: 0.5rem 0 0.25rem;
}
.plan-price span { font-size: 0.95rem; font-weight: 500; color: var(--text-dim); }
.plan-features {
  margin: 1.25rem 0 1.5rem;
  flex: 1;
}
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.4rem 0;
  color: var(--text-dim);
  font-size: 0.9rem;
}
.plan-features li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

/* ── API docs ── */
.code-block {
  background: rgba(0,0,0,.5);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: #a5f3fc;
  margin: 1rem 0;
  line-height: 1.6;
}
.endpoint {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  margin-bottom: 0.5rem;
  background: rgba(0,0,0,.2);
}
.method {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  background: rgba(52,211,153,.15);
  color: var(--green);
}
.method.post { background: rgba(59,130,246,.15); color: var(--blue-bright); }
.method.delete { background: rgba(248,113,113,.15); color: var(--danger); }

/* ── Flash / toast ── */
.flash-wrap {
  position: fixed;
  top: calc(var(--nav-h) + 12px);
  right: 16px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 360px;
}
.flash {
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  font-size: 0.9rem;
  animation: riseIn .35s var(--ease);
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
}
.flash.success { border-color: rgba(52,211,153,.4); color: var(--green); }
.flash.info { border-color: rgba(59,130,246,.4); color: var(--blue-bright); }
.flash.error { border-color: rgba(248,113,113,.4); color: var(--danger); }

/* ── Modal ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 10, 0.75);
  backdrop-filter: blur(8px);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-backdrop.open { display: flex; }
.modal {
  width: min(480px, 100%);
  padding: 1.75rem;
  position: relative;
  animation: riseIn .3s var(--ease);
}
.modal h2 { margin-bottom: 0.5rem; }
.modal .close-x {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-mute);
  font-size: 1.4rem;
  cursor: pointer;
}
.modal .close-x:hover { color: #fff; }

/* ── Share page ── */
.share-card {
  max-width: 520px;
  margin: 3rem auto;
  padding: 2rem;
  text-align: center;
}

/* ── 404 ── */
.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}
.error-page h1 {
  font-size: 5rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Misc ── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.hidden { display: none !important; }
.divider {
  height: 1px;
  background: var(--glass-border);
  margin: 1.5rem 0;
}
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.gap-1 { gap: 0.5rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* Mobile nav */
@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(6, 10, 22, 0.96);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem;
    gap: 0.25rem;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: grid; place-items: center; }
  .nav-actions .btn-ghost.hide-sm,
  .nav-actions .hide-sm { display: none; }
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-dim);
}
.empty-state .icon { font-size: 3rem; margin-bottom: 0.75rem; opacity: 0.6; }

/* History table */
.history-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.history-table th, .history-table td {
  padding: 0.75rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid rgba(100,140,255,.08);
}
.history-table th { color: var(--text-mute); font-weight: 500; font-size: 0.78rem; text-transform: uppercase; letter-spacing: .04em; }

/* Legal prose */
.legal-body {
  max-width: 720px;
  margin: 0 auto 4rem;
  color: var(--text-dim);
  line-height: 1.7;
}
.legal-body h2 { color: #fff; font-size: 1.25rem; margin: 2rem 0 0.75rem; }
.legal-body p { margin-bottom: 1rem; }
.legal-body ul { margin: 0 0 1rem 1.25rem; list-style: disc; }

/* Toast copy feedback */
.copy-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--glass-strong);
  border: 1px solid rgba(52,211,153,.4);
  color: var(--green);
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: all .3s var(--ease);
  z-index: 400;
  backdrop-filter: blur(12px);
}
.copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* 2026 deploy polish */
.hero { padding-top: clamp(4rem, 9vw, 7.5rem); }
.hero h1 { font-size: clamp(2.7rem, 7vw, 5.6rem); max-width: 980px; margin-inline: auto; }
.hero .sub { font-size: clamp(1rem, 2vw, 1.25rem); }
.dropzone {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 30px 90px rgba(0,0,0,.38), 0 0 80px rgba(99,102,241,.12);
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.dropzone:hover, .dropzone.dragover {
  transform: translateY(-3px);
  border-color: rgba(129,140,248,.55);
  box-shadow: 0 34px 100px rgba(0,0,0,.42), 0 0 90px rgba(99,102,241,.22);
}
.price-card, .trust-item, .upload-card { transition: transform .25s var(--ease), border-color .25s var(--ease); }
.price-card:hover, .trust-item:hover { transform: translateY(-4px); border-color: rgba(129,140,248,.3); }
@media (max-width: 640px) {
  .container, .container-wide, .container-narrow { width: min(100% - 1.1rem, 1120px); }
  .hero { padding-top: 2.75rem; }
  .dropzone { border-radius: 22px; }
}

/* Share/download UX upgrade */
.share-shell { min-height: 72vh; display:grid; place-items:center; padding: clamp(3rem,8vw,7rem) 1rem; }
.share-card-v2 { width:min(680px,100%); margin:auto; padding:clamp(1.5rem,5vw,3rem); text-align:center; border-radius:30px; }
.share-file-icon { width:92px;height:92px;border-radius:26px;margin:0 auto 1.15rem;display:grid;place-items:center;
  font-size:2.6rem;font-weight:800;background:linear-gradient(145deg,rgba(99,102,241,.28),rgba(168,85,247,.13));
  border:1px solid rgba(165,180,252,.24);box-shadow:inset 0 1px rgba(255,255,255,.08),0 18px 50px rgba(79,70,229,.18); }
.share-title { font-size:clamp(1.45rem,4vw,2.15rem);margin:.9rem 0 .35rem;overflow-wrap:anywhere; }
.share-meta { margin-bottom:1.4rem; }
.download-main { width:100%;min-height:58px;display:flex;align-items:center;justify-content:center;font-size:1.08rem;font-weight:800;
  border-radius:16px;box-shadow:0 14px 42px rgba(79,70,229,.28); }
.share-divider {display:flex;align-items:center;gap:12px;margin:1.6rem 0 1rem;color:var(--muted,#8b91a7);font-size:.78rem;text-transform:uppercase;letter-spacing:.15em}
.share-divider:before,.share-divider:after{content:"";height:1px;flex:1;background:rgba(255,255,255,.09)}
.share-link-row {justify-content:center}
.share-link-row .link-input {min-width:0;flex:1}
.share-upload-own {display:inline-block;margin-top:1.15rem;color:inherit;opacity:.78;text-decoration:none}
.share-upload-own:hover{opacity:1}
.post-upload-actions { display:flex; flex-wrap:wrap; gap:0.65rem; margin-top:0.9rem; }
.post-upload-actions .btn { min-height:44px; }
.qr-panel {
  display:none; margin:1rem auto 0; padding:1rem 1.1rem 0.85rem; width:fit-content; max-width:100%;
  border-radius:18px; background:rgba(255,255,255,0.96); border:1px solid rgba(99,102,241,.22);
  box-shadow:0 12px 40px rgba(0,0,0,.18);
}
.qr-panel.open { display:block; }
.qr-panel img {
  display:block; width:200px; height:200px; margin:0 auto; background:#fff; border-radius:8px;
  image-rendering: pixelated;
}
#qrBtn.active, #shareQrBtn.active { border-color: rgba(129,140,248,.7); color:#c7d2fe; }
@media(max-width:600px){
  .share-link-row{flex-direction:column}
  .share-link-row .btn,.share-link-row .link-input{width:100%}
  .post-upload-actions{flex-direction:column}
  .post-upload-actions .btn{width:100%;justify-content:center}
}


/* ── FileCrater brand refinements ── */
.logo {
  letter-spacing: -0.04em;
  font-weight: 800;
  font-size: 1.15rem;
}
.logo .dot {
  color: var(--crater-hot, #fbbf24);
  text-shadow: 0 0 18px rgba(251, 191, 36, 0.55);
}
.logo-mark {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 55%, #f59e0b 120%);
  box-shadow: 0 0 24px rgba(59,130,246,.35), 0 0 18px rgba(245,158,11,.18);
}
.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.35rem);
  letter-spacing: -0.035em;
  max-width: 16ch;
  margin-inline: auto;
}
.hero .sub {
  font-size: 1.08rem;
  color: var(--text-dim);
  max-width: 36rem;
  margin-inline: auto;
}
.dropzone {
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.dropzone:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-combo), 0 20px 50px rgba(0,0,0,.4);
}
.dropzone.dragover {
  border-color: rgba(251, 191, 36, 0.5);
}
.credit-pill {
  border: 1px solid rgba(251, 191, 36, 0.28);
}
.credit-pill .plus {
  color: var(--crater-hot, #fbbf24);
}
.site-footer {
  border-top: 1px solid rgba(120, 160, 255, 0.08);
}
.btn-primary {
  box-shadow: 0 8px 28px rgba(59,130,246,.28), 0 0 0 1px rgba(255,255,255,.06) inset;
}
.feature-row .feature-item {
  backdrop-filter: blur(12px);
}
