:root {
  --bg: #07070f;
  --text: #f2f3ff;
  --muted: #8b90b8;
  --pink: #ff2d78;
  --purple: #8b5cf6;
  --cyan: #22d3ee;
  --green: #34d399;
  --yellow: #fbbf24;
  --grad: linear-gradient(135deg, #ff2d78, #8b5cf6 50%, #22d3ee);
  --grad2: linear-gradient(90deg, #ff2d78, #ff8a3d, #fbbf24, #34d399, #22d3ee, #8b5cf6, #ff2d78);
  --radius: 18px;
  --glass: rgba(255, 255, 255, 0.05);
  --glass-brd: rgba(255, 255, 255, 0.1);
}

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

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  position: relative;
}

/* Animated vivid background */
body::before, body::after {
  content: "";
  position: fixed;
  width: 900px; height: 900px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}
body::before {
  background: var(--pink);
  top: -300px; left: -200px;
  animation: drift1 16s ease-in-out infinite alternate;
}
body::after {
  background: var(--cyan);
  bottom: -300px; right: -200px;
  animation: drift2 20s ease-in-out infinite alternate;
}
@keyframes drift1 { to { transform: translate(140px, 120px); } }
@keyframes drift2 { to { transform: translate(-120px, -100px); } }

.wrap { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 0 20px 90px; }

/* ---------- Top navbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 7, 15, 0.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-brd);
}
.tb-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
  padding: 14px 20px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-orb {
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  box-shadow: 0 0 22px rgba(255, 45, 120, 0.5);
  animation: pulseGlow 2.5s ease-in-out infinite;
}
@keyframes pulseGlow { 0%,100%{box-shadow:0 0 18px rgba(255,45,120,.4)} 50%{box-shadow:0 0 30px rgba(34,211,238,.6)} }
.brand-name { font-size: 21px; font-weight: 800; color: var(--text); text-decoration: none; letter-spacing: .3px; }
.brand-name b { background: var(--grad2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tb-nav { display: flex; gap: 4px; margin-left: 8px; }
.tb-nav a {
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14.5px;
  padding: 9px 14px; border-radius: 10px; transition: .2s;
}
.tb-nav a:hover, .tb-nav a.active {
  background: var(--glass); color: var(--text);
}
.tb-cta { margin-left: auto; }

/* ---------- Hero ---------- */
.hero { padding: clamp(36px, 8vw, 90px) 0 40px; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  color: var(--cyan);
  margin-bottom: 22px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.hero h2 {
  font-size: clamp(32px, 6vw, 58px);
  line-height: 1.08; font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.grad-multi {
  background: var(--grad2);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: hue 6s linear infinite;
}
@keyframes hue { to { background-position: 300% 0; } }
.hero p { color: var(--muted); font-size: clamp(15px, 2.5vw, 18px); max-width: 560px; margin: 0 auto 30px; }

/* ---------- Dropzone ---------- */
.dropzone {
  position: relative;
  max-width: 680px; margin: 0 auto;
  border: 2px dashed rgba(139, 92, 246, 0.6);
  border-radius: 22px;
  background: var(--glass);
  backdrop-filter: blur(8px);
  padding: clamp(30px, 6vw, 54px);
  text-align: center;
  cursor: pointer;
  transition: .25s;
  overflow: hidden;
}
.dropzone::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(300px 200px at 30% 20%, rgba(255,45,120,.15), transparent 60%),
    radial-gradient(300px 200px at 75% 80%, rgba(34,211,238,.15), transparent 60%);
  z-index: -1;
}
.dropzone:hover { border-color: var(--pink); transform: translateY(-2px); }
.dropzone.dragover { border-color: var(--cyan); background: rgba(34,211,238,.08); border-style: solid; }
.dz-icon {
  width: 76px; height: 76px; margin: 0 auto 16px;
  border-radius: 20px; font-size: 36px;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 30px rgba(139, 92, 246, .5);
  animation: bob 3s ease-in-out infinite;
}
@keyframes bob { 0%,100%{ transform: translateY(0)} 50%{ transform: translateY(-8px)} }
.dz-text { font-size: 19px; font-weight: 600; }
.dz-text b { color: var(--cyan); }
.dz-hint { color: var(--muted); font-size: 13.5px; margin-top: 8px; }
.dropzone.uploading { opacity: .55; pointer-events: none; }
.dropzone.uploading .dz-icon { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Features (cards) ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.feature {
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  transition: .25s;
}
.feature:hover { transform: translateY(-4px); border-color: var(--purple); }
.feature .f-icon { font-size: 34px; margin-bottom: 10px; }
.feature h3 { font-size: 16px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 13.5px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 12px 20px; border-radius: 12px;
  border: none; cursor: pointer; text-decoration: none;
  font-weight: 700; font-size: 14px; color: #fff;
  background: var(--grad);
  background-size: 200% 100%;
  box-shadow: 0 4px 22px rgba(139, 92, 246, .4);
  transition: .2s;
}
.btn:hover { transform: translateY(-2px); background-position: 100% 0; filter: brightness(1.08); }
.btn-sm { padding: 9px 15px; font-size: 13px; border-radius: 10px; }
.btn-ghost { background: var(--glass); color: var(--text); box-shadow: none; border: 1px solid var(--glass-brd); }
.btn-block { width: 100%; }
.btn .ic { flex-shrink: 0; }
.empty { color: var(--muted); font-size: 16px; padding: 24px 8px; }

/* Result success icon */
.result-icon { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: linear-gradient(135deg, rgba(52,211,153,.3), rgba(34,211,238,.3)); display: flex; align-items: center; justify-content: center; color: var(--green); box-shadow: 0 0 30px rgba(52,211,153,.4); }

/* SVG sizing in icon containers */
.dz-icon svg, .f-icon svg, .p-icon svg, .four04 svg { flex-shrink: 0; }
.four04 { display: flex; justify-content: center; margin-bottom: 12px; }
.four04 svg { width: 56px; height: 56px; color: var(--muted); }

/* ---------- Result ---------- */
.hidden { display: none; }
.result { max-width: 620px; margin: 0 auto; }
.result-card {
  background: linear-gradient(135deg, rgba(255,45,120,.12), rgba(34,211,238,.1));
  border: 1px solid var(--glass-brd);
  border-radius: 22px;
  padding: 28px;
  backdrop-filter: blur(10px);
}
.result-icon { margin-bottom: 8px; }
.result-card h3 { font-size: 24px; margin-bottom: 14px; }
.result-file { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.result-file #rname { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rpill { background: linear-gradient(135deg, var(--pink), var(--purple)); padding: 3px 11px; border-radius: 999px; font-size: 12px; flex-shrink: 0; }
.result-card label { display: block; color: var(--muted); font-size: 12.5px; margin: 12px 0 6px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.linkrow { display: flex; gap: 8px; }
.linkrow input {
  flex: 1; min-width: 0;
  padding: 12px 13px;
  background: rgba(7,7,15,.6); color: var(--text);
  border: 1px solid var(--glass-brd); border-radius: 11px;
  font-size: 13px; outline: none;
}
.linkrow input:focus { border-color: var(--purple); }
.result-card .btn-block { margin-top: 16px; }

/* ---------- Preview ---------- */
.main-pv {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 90px 20px 60px;
  position: relative; z-index: 1;
}
.preview-card {
  background: var(--glass); backdrop-filter: blur(12px);
  border: 1px solid var(--glass-brd); border-radius: 22px;
  padding: 28px; max-width: 680px; width: 100%;
}
.preview-head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.p-icon { font-size: 42px; }
.p-meta { color: var(--muted); font-size: 13px; margin-top: 2px; }
.preview-head h3 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-img { max-width: 100%; max-height: 60vh; border-radius: 12px; display: block; margin: 0 auto 18px; }
.p-noimg { text-align: center; color: var(--muted); padding: 34px; border: 1px dashed var(--glass-brd); border-radius: 12px; margin-bottom: 14px; }
.preview-card .linkrow { margin-bottom: 14px; }

/* ---------- Footer ---------- */
.footer {
  position: relative; z-index: 1;
  max-width: 1080px; margin: 40px auto 0;
  padding: 22px 20px;
  color: var(--muted); font-size: 13px;
  border-top: 1px solid var(--glass-brd);
  text-align: center;
}

/* ---------- Background music player ---------- */
.now-playing {
  position: fixed;
  left: 18px; bottom: 18px;
  z-index: 100;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 6px 28px rgba(139, 92, 246, 0.6);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  animation: npFlip 0.5s ease-in-out infinite alternate;
  transition: transform 0.2s;
}
.now-playing:hover { transform: scale(1.1); }
.now-playing.paused { animation: none; filter: grayscale(0.7); opacity: 0.8; }
.np-icon { color: #fff; display: flex; }
.np-icon svg { width: 30px; height: 30px; }
@keyframes npFlip {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-10px) scale(1.08); }
}
/* Equalizer bars when playing */
.now-playing:not(.paused)::after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 -4px 0 var(--cyan), 0 -8px 0 var(--pink);
  animation: npPulse 0.6s ease-in-out infinite;
}
@keyframes npPulse {
  0% { opacity: 0.3; } 50% { opacity: 1; } 100% { opacity: 0.3; }
}

/* ---------- Upload options (#1 expiry, #9 password) ---------- */
.upload-opts {
  max-width: 680px; margin: 16px auto 0;
  display: flex; gap: 12px; flex-wrap: wrap;
  justify-content: center;
}
.opt { display: flex; flex-direction: column; gap: 6px; }
.opt label { color: var(--muted); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.opt select, .opt input {
  padding: 11px 12px; border-radius: 10px;
  background: var(--glass); color: var(--text);
  border: 1px solid var(--glass-brd); font-size: 14px; outline: none;
  min-width: 150px;
}
.opt select:focus, .opt input:focus { border-color: var(--purple); }

/* ---------- Progress bar (#6) ---------- */
.progress { max-width: 680px; margin: 18px auto 0; }
.progress-inner {
  height: 10px; border-radius: 999px; overflow: hidden;
  background: var(--glass); border: 1px solid var(--glass-brd);
}
.progress-bar {
  height: 100%; width: 0%;
  background: var(--grad2); background-size: 200% 100%;
  animation: hue 2s linear infinite;
  transition: width .2s;
}
.progress-txt { display: block; text-align: center; color: var(--muted); font-size: 13px; margin-top: 6px; }

/* ---------- Result cards (#2 delete, #3 copy) ---------- */
.result { max-width: 680px; margin: 0 auto; }
.result-card {
  background: linear-gradient(135deg, rgba(255,45,120,.12), rgba(34,211,238,.1));
  border: 1px solid var(--glass-brd);
  border-radius: 22px;
  padding: 24px;
  backdrop-filter: blur(10px);
  margin-bottom: 16px;
}
.result-icon { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: linear-gradient(135deg, rgba(52,211,153,.3), rgba(34,211,238,.3)); display: flex; align-items: center; justify-content: center; color: var(--green); box-shadow: 0 0 30px rgba(52,211,153,.4); }
.result-card h3 { text-align: center; font-size: 24px; margin-bottom: 8px; }
.result-file { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 6px; }
.result-file #rname { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rpill { background: linear-gradient(135deg, var(--pink), var(--purple)); padding: 3px 11px; border-radius: 999px; font-size: 12px; flex-shrink: 0; }
.r-meta { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.result-card label { display: block; color: var(--muted); font-size: 12.5px; margin: 12px 0 6px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.linkrow { display: flex; gap: 8px; }
.linkrow input {
  flex: 1; min-width: 0;
  padding: 12px 13px;
  background: rgba(7,7,15,.6); color: var(--text);
  border: 1px solid var(--glass-brd); border-radius: 11px;
  font-size: 13px; outline: none;
}
.linkrow input:focus { border-color: var(--purple); }
.r-actions { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.btn-delete {
  background: transparent; border: 1px dashed rgba(255,45,120,.5);
  color: #ff5c8a; padding: 11px; border-radius: 11px;
  cursor: pointer; font-weight: 700; font-size: 13.5px;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  text-decoration: none; transition: .2s;
}
.btn-delete:hover { background: rgba(255,45,120,.1); }

/* ---------- Preview media (#4) ---------- */
.preview-media, .preview-iframe {
  width: 100%; max-height: 62vh; border-radius: 12px;
  margin: 0 auto 18px; display: block; border: none;
}
.preview-iframe { height: 480px; }
.p-review { font-size: 12px; }

/* ---------- QR + share (#3, #8) ---------- */
.qrbox { display: flex; justify-content: center; margin: 16px 0; }
.qr-img { width: 150px; height: 150px; border-radius: 12px; background: #fff; padding: 8px; }
.share-row { display: flex; gap: 8px; margin: 14px 0; }
.share {
  flex: 1; text-align: center; padding: 10px; border-radius: 10px;
  font-weight: 700; font-size: 13px; text-decoration: none; color: #fff;
}
.s-wa { background: #25d366; }
.s-tg { background: #229ed9; }
.s-x { background: #0f1419; }

/* ---------- Password gate (#9) ---------- */
.pw-form { margin-top: 6px; }
.pw-form .pw-input {
  width: 100%; padding: 13px; border-radius: 11px; margin-bottom: 12px;
  background: rgba(7,7,15,.6); color: var(--text);
  border: 1px solid var(--glass-brd); font-size: 15px; outline: none;
}
.pw-input:focus { border-color: var(--purple); }
.pw-err { color: #ff5c8a; font-size: 13.5px; margin-top: 12px; text-align: center; }

/* ---------- Donate banner (#13) ---------- */
.donate-banner {
  max-width: 680px; margin: 10px auto 0;
  text-align: center;
}
.donate-banner a {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--pink); text-decoration: none; font-weight: 700; font-size: 14px;
  padding: 10px 18px; border: 1px solid rgba(255,45,120,.4); border-radius: 999px;
  background: rgba(255,45,120,.06);
}
.donate-banner a:hover { background: rgba(255,45,120,.14); }

/* Preview page stats */
.p-stats { color: var(--muted); font-size: 12.5px; margin-top: 4px; display: flex; align-items: center; gap: 6px; }
.p-stats svg { width: 14px; height: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .tb-nav { display: none; }            /* collapse nav links on small screens */
  .tb-inner { padding: 12px 16px; }
  .wrap { padding: 0 14px 70px; }
  .features { grid-template-columns: 1fr 1fr; }
  .tb-cta { display: none; }             /* Upload handled by big dropzone */
}
@media (max-width: 420px) {
  .features { grid-template-columns: 1fr; }
  .brand-name { font-size: 19px; }
  .dropzone { padding: 24px 16px; }
}
