@import url('https://fonts.googleapis.com/css2?family=Sora:wght@600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');
/* ============================================
  VaultDrop — Main Stylesheet
  Design: Deep ocean glassmorphism with neon mint accents
  Fonts: Sora (display) + Plus Jakarta Sans (body)
  ============================================ */

/* ── CSS Variables ── */
:root {
  --bg:          #070a17;
  --bg-card:     #0f1630;
  --bg-input:    #151f3f;
  --border:      #2b3a6a;
  --border-glow: #4f6bc8;
  --text-main:   #f4f7ff;
  --text-sub:    #a7b3d9;
  --text-dim:    #7380ad;
  --accent:      #ff7a45;
  --accent-soft: rgba(255,122,69,0.14);
  --accent-glow: rgba(255,122,69,0.34);
  --success:     #39d98a;
  --error:       #ff6b7a;
  --font-display:'Sora', sans-serif;
  --font-body:   'Plus Jakarta Sans', sans-serif;
  --radius:      18px;
  --radius-sm:   12px;
  --shadow:      0 0 0 1px var(--border), 0 30px 90px rgba(3,8,25,0.62);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  background-image:
    radial-gradient(circle at 12% 12%, rgba(255,122,69,0.14), transparent 35%),
    radial-gradient(circle at 88% 8%, rgba(86,123,255,0.2), transparent 38%),
    radial-gradient(circle at 50% 100%, rgba(56,74,146,0.2), transparent 40%);
}

.is-hidden {
  display: none;
}

.btn-upload-link {
  display: inline-flex;
  margin-top: 1.5rem;
  text-decoration: none;
  width: auto;
}

.sr-only-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ── Animated Background ── */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 38px 38px;
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  top: -8%;
  left: 52%;
  transform: translateX(-50%);
  width: min(1000px, 90vw);
  height: min(560px, 60vh);
  background: radial-gradient(ellipse, rgba(255,122,69,0.25) 0%, transparent 72%);
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
  animation: pulseGlow 10s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: translateX(-50%) scale(1); opacity: 0.7; }
  100% { transform: translateX(-50%) scale(1.1); opacity: 1; }
}

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  background: rgba(8, 12, 28, 0.72);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-main);
}

.logo-icon {
  font-size: 1.5rem;
  color: var(--accent);
  line-height: 1;
  text-shadow: 0 0 22px var(--accent-glow);
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.nav-tag {
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Main Container ── */
.main-container {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) 1.2rem 2rem;
}

/* ── Hero ── */
.hero {
  text-align: center;
  margin-bottom: clamp(1.8rem, 4vw, 2.8rem);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.9rem;
  background: var(--accent-soft);
  border: 1px solid rgba(255,122,69,0.4);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 8vw, 4.1rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero-title .accent {
  color: var(--accent);
  position: relative;
}

.hero-sub {
  color: var(--text-sub);
  font-size: clamp(0.95rem, 2.6vw, 1.06rem);
  font-weight: 500;
  max-width: 620px;
  margin: 0 auto;
}

/* ── Upload Card ── */
.upload-card {
  background: linear-gradient(180deg, rgba(15,22,48,0.7) 0%, rgba(10,16,36,0.85) 100%);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: clamp(1.15rem, 3vw, 2.2rem);
  box-shadow: var(--shadow), 0 10px 40px rgba(0,0,0,0.4);
  margin-bottom: 1.3rem;
  position: relative;
  overflow: hidden;
  max-width: 930px;
  margin-left: auto;
  margin-right: auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.upload-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow), 0 20px 50px rgba(0,0,0,0.5);
}

.upload-card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255,122,69,0.22), transparent 70%);
  pointer-events: none;
}

/* ── Drop Zone ── */
.drop-zone {
  border: 2px dashed var(--border-glow);
  border-radius: var(--radius);
  padding: clamp(2rem, 6vw, 3.5rem) 1.2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  background: var(--bg-input);
}

.drop-zone:hover,
.drop-zone.drag-over {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 4px rgba(255,122,69,0.18), inset 0 0 32px rgba(255,122,69,0.11);
}

.drop-zone.drag-over .drop-icon { color: var(--accent); transform: scale(1.1) translateY(-4px); }

.drop-icon {
  color: var(--text-dim);
  margin-bottom: 1rem;
  transition: all 0.25s ease;
  display: inline-block;
}

.drop-title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 3.4vw, 1.25rem);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.drop-sub {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.btn-browse {
  display: inline-block;
  padding: 0.62rem 1.4rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
}
.btn-browse:hover { background: #ff8e61; transform: translateY(-1px); }

.drop-hint {
  margin-top: 1rem;
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* ── File Options ── */
.file-options { margin-top: 0; }

/* ── Selected Files (Multiple) ── */
.selected-files {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
  max-height: 300px;
  overflow-y: auto;
  padding: 0.5rem 0;
}

.sf-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.sf-row .sf-icon {
  width: 40px; height: 40px;
  background: var(--bg);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.sf-row .sf-icon svg {
  width: 20px;
  height: 20px;
}

.sf-row .sf-info { flex: 1; min-width: 0; }
.sf-row .sf-name {
  font-weight: 500;
  font-size: 0.85rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--text-main);
}
.sf-row .sf-size { font-size: 0.7rem; color: var(--text-sub); margin-top: 0.05rem; }

.sf-row .sf-remove {
  background: none; border: none; cursor: pointer;
  color: var(--text-dim); font-size: 1rem;
  transition: color 0.2s;
  padding: 0.25rem;
  flex-shrink: 0;
}
.sf-row .sf-remove:hover { color: var(--error); }

/* ── Files Summary ── */
.files-summary {
  padding: 0.75rem 1rem;
  background: rgba(86, 123, 255, 0.1);
  border: 1px solid rgba(86, 123, 255, 0.3);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.files-count {
  font-size: 0.85rem;
  color: var(--text-main);
  font-weight: 500;
}

/* ── Legacy single file (for backwards compatibility) ── */
.selected-file {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
}

.selected-file .sf-icon {
  width: 48px; height: 48px;
  background: var(--bg);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.selected-file .sf-icon svg {
  width: 24px;
  height: 24px;
}

.selected-file .sf-info { flex: 1; min-width: 0; }
.selected-file .sf-name {
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.selected-file .sf-size { font-size: 0.75rem; color: var(--text-sub); margin-top: 0.1rem; }

.selected-file .sf-remove {
  background: none; border: none; cursor: pointer;
  color: var(--text-dim); font-size: 1.2rem;
  transition: color 0.2s;
  padding: 0.25rem;
}
.selected-file .sf-remove:hover { color: var(--error); }

/* ── Options Grid ── */
.options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 520px) { .options-grid { grid-template-columns: 1fr; } }

.option-group { display: flex; flex-direction: column; gap: 0.45rem; }

.option-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-sub);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.option-select,
.option-input {
  width: 100%;
  padding: 0.6rem 0.85rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}

.option-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888899' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; padding-right: 2.25rem; }

.option-select:focus,
.option-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }

/* ── Upload Button ── */
.btn-upload {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
}
.btn-upload:hover:not(:disabled) { background: #ff8e61; transform: translateY(-2px); box-shadow: 0 10px 28px var(--accent-glow); }
.btn-upload:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-arrow { transition: transform 0.2s; }
.btn-upload:hover .btn-arrow { transform: translateX(4px); }

/* ── Progress ── */
.progress-wrap { padding: 0.5rem 0; }

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
}
#progressFileName { color: var(--text-sub); font-size: 0.8rem; max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#progressPercent { font-family: var(--font-display); font-weight: 700; color: var(--accent); }

.progress-track {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #ff9f7a);
  border-radius: 100px;
  transition: width 0.3s ease;
}

.progress-status {
  margin-top: 0.6rem;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.progress-batch {
  margin-top: 0.3rem;
  font-size: 0.7rem;
  color: var(--text-sub);
  font-weight: 500;
}

/* ── Success ── */
.success-wrap {
  text-align: center;
  animation: fadeSlide 0.35s ease;
}

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

.success-icon {
  width: 64px; height: 64px;
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  color: var(--success);
  margin: 0 auto 1.2rem;
  font-family: var(--font-display);
  font-weight: 700;
  animation: popIn 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
  box-shadow: 0 0 30px rgba(34,197,94,0.2);
}

@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.success-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.success-sub { color: var(--text-sub); font-size: 0.9rem; margin-bottom: 1.5rem; }

/* ── Uploaded Files List ── */
.uploaded-files-list {
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(15, 22, 48, 0.5);
}

.uploaded-file-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.uploaded-file-item:last-child {
  border-bottom: none;
}

.ufi-icon {
  width: 36px;
  height: 36px;
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.ufi-icon svg {
  width: 18px;
  height: 18px;
}

.ufi-info {
  flex: 1;
  min-width: 0;
}

.ufi-name {
  font-weight: 500;
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-main);
}

.ufi-size {
  font-size: 0.7rem;
  color: var(--text-sub);
  margin-top: 0.05rem;
}

.link-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(180deg, rgba(24,35,71,0.95), rgba(21,31,63,0.9));
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.3rem;
  margin-bottom: 1.5rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}
.link-input {
  flex: 1;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0 0.8rem;
  outline: none;
  cursor: text;
  min-width: 0;
}

.btn-copy {
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
  padding: 0.55rem 0.8rem;
  background: var(--accent-soft);
  border: 1px solid rgba(255,122,69,0.3);
  color: var(--accent);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.btn-copy:hover { background: var(--accent); color: #000; }
.btn-copy.copied { background: var(--success); border-color: var(--success); color: #fff; }

.success-actions {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.qr-wrap {
  text-align: center;
  padding: 0.5rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(17, 27, 56, 0.85);
}
.qr-wrap #qrCode canvas, .qr-wrap #qrCode img {
  border-radius: 8px;
  border: 3px solid var(--border);
}
.qr-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 0.35rem;
  letter-spacing: 0.04em;
}

.btn-new {
  width: 100%;
  min-height: 54px;
  padding: 0.8rem 1rem;
  background: rgba(12, 20, 44, 0.9);
  border: 1px solid #334682;
  border-radius: var(--radius-sm);
  color: #b4c1e5;
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-new:hover {
  border-color: var(--accent);
  color: #fff;
  background: rgba(20, 31, 68, 0.96);
  box-shadow: 0 10px 26px rgba(6, 10, 24, 0.45);
}

/* ── Trust Strip ── */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.trust-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 0.9rem;
  border-radius: 999px;
  background: rgba(14, 21, 44, 0.72);
  border: 1px solid var(--border);
  color: var(--text-sub);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.trust-chip:hover {
  border-color: #3e579e;
  transform: translateY(-1px);
}

.trust-chip strong {
  color: var(--text-main);
  font-weight: 700;
}

/* ── Stats Strip ── */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.6rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  background: rgba(14, 21, 44, 0.72);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.stat-item:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.4rem;
  text-shadow: 0 0 16px var(--accent-glow);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-sub);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Footer ── */
.footer {
  position: relative;
  z-index: 1;
  padding: 2.4rem 1.2rem 1.5rem;
  margin-top: 1.8rem;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.85rem;
  background: linear-gradient(180deg, rgba(8, 12, 28, 0.35), rgba(10, 16, 34, 0.62));
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  text-align: left;
}

.footer-section h3,
.footer-section h4 {
  color: var(--text-main);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.55rem;
}

.footer-section p {
  color: var(--text-sub);
  font-size: 0.82rem;
  line-height: 1.55;
}

.footer-section ul {
  list-style: none;
  display: grid;
  gap: 0.42rem;
}

.footer-section a {
  color: var(--text-sub);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: var(--accent);
}

.footer-bottom {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.76rem;
}

.footer-bottom a {
  color: var(--text-sub);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--accent);
}

.info-card {
  max-width: 640px;
  text-align: left;
}

.info-body {
  margin-top: 1rem;
  color: var(--text-sub);
  line-height: 1.7;
}

.info-body p {
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
}

.info-body a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.info-body a:hover {
  color: #ff8e61;
}

@media (max-width: 1024px) {
  .main-container {
    padding-top: 1.8rem;
  }

  .hero {
    margin-bottom: 1.9rem;
  }

  .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .nav-tag {
    display: none;
  }

  .main-container {
    max-width: 760px;
    padding-top: 1.5rem;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .stats-strip {
    grid-template-columns: 1fr;
  }

  .success-actions {
    grid-template-columns: 1fr;
  }

  .btn-new {
    width: 100%;
  }

  .qr-wrap {
    max-width: 170px;
    margin: 0 auto;
  }

  .footer-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
  }
}

@media (max-width: 620px) {
  .navbar {
    padding: 0.75rem 0.78rem;
  }

  .logo-text {
    font-size: 1rem;
  }

  .main-container {
    padding: 1.1rem 0.72rem 1.5rem;
  }

  .hero-badge {
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    padding: 0.26rem 0.7rem;
    margin-bottom: 1rem;
  }

  .hero-title {
    letter-spacing: -0.02em;
  }

  .hero-sub {
    font-size: 0.9rem;
  }

  .stats-strip {
    gap: 0.85rem;
  }

  .stat-value {
    font-size: 1.8rem;
  }

  .upload-card {
    border-radius: 18px;
    margin-bottom: 1.1rem;
    padding: 0.85rem;
  }

  .success-title {
    font-size: 1.2rem;
  }

  .success-sub {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }

  .selected-file {
    gap: 0.75rem;
    padding: 0.78rem;
  }

  .option-select,
  .option-input {
    min-height: 44px;
  }

  .btn-upload {
    min-height: 48px;
    font-size: 0.95rem;
  }

  .link-box {
    padding: 0.22rem;
    gap: 0.25rem;
  }

  .link-input {
    font-size: 0.76rem;
    padding: 0 0.55rem;
  }

  .btn-copy {
    padding: 0.5rem 0.65rem;
  }

  .toast {
    width: calc(100% - 1.5rem);
    text-align: center;
    white-space: normal;
    border-radius: 14px;
  }

  .footer {
    padding: 2rem 0.9rem 1.25rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 1rem;
  }

  .footer-bottom {
    margin-top: 1rem;
    font-size: 0.72rem;
    line-height: 1.5;
  }
}

@media (max-width: 440px) {
  .drop-zone {
    padding: 1.5rem 0.75rem;
  }

  .drop-icon svg {
    width: 40px;
    height: 40px;
  }

  .drop-hint {
    font-size: 0.68rem;
  }

  .success-actions {
    gap: 0.8rem;
  }

  .btn-new {
    min-height: 46px;
    font-size: 0.9rem;
  }

  .trust-chip {
    font-size: 0.76rem;
    padding: 0.65rem 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.65rem 1.4rem;
  font-size: 0.85rem;
  color: var(--text-main);
  transition: transform 0.3s ease;
  z-index: 1000;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { border-color: rgba(34,197,94,0.4); color: var(--success); }
.toast.error   { border-color: rgba(239,68,68,0.4); color: var(--error); }

/* ── High Load Advisory Popup ── */
.notice-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(4, 7, 18, 0.72);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.notice-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.notice-card {
  position: relative;
  width: min(560px, 100%);
  background: linear-gradient(180deg, rgba(15,22,48,0.98) 0%, rgba(10,16,36,0.98) 100%);
  border: 1px solid #3a4f91;
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  padding: 1.2rem 1.2rem 1rem;
  animation: noticeIn 0.24s ease;
}

@keyframes noticeIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.notice-close {
  position: absolute;
  top: 0.55rem;
  right: 0.7rem;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(22, 31, 62, 0.95);
  color: var(--text-sub);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.18s ease;
}

.notice-close:hover {
  color: var(--text-main);
  border-color: #4f6bc8;
}

.notice-kicker {
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.notice-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.8vw, 1.42rem);
  line-height: 1.25;
  margin-bottom: 0.55rem;
}

.notice-desc {
  color: var(--text-sub);
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 0.95rem;
}

.notice-btn {
  width: 100%;
  min-height: 46px;
  border: none;
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.93rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.notice-btn:hover {
  background: #ff8e61;
  transform: translateY(-1px);
}

@media (max-width: 620px) {
  .notice-card {
    border-radius: 14px;
    padding: 1rem 0.9rem 0.85rem;
  }

  .notice-desc {
    font-size: 0.86rem;
  }
}