/* ZIPGO Images — built on the zipgo.ai space theme */
:root {
  --primary: #00f0ff; --primary-dark: #00a8b3; --secondary: #8b5cf6; --accent: #f0f;
  --bg-dark: #000; --bg-darker: #050508; --bg-card: rgba(255,255,255,0.02);
  --text-primary: #fff; --text-secondary: rgba(255,255,255,0.7); --text-muted: rgba(255,255,255,0.4);
  --border: rgba(255,255,255,0.1); --glow: 0 0 20px rgba(0,240,255,0.3);
  --cut: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
  --cut-lg: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Rajdhani', sans-serif; background: var(--bg-dark); color: var(--text-primary);
  overflow-x: hidden; line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column;
}
body::before { /* deep-space glow behind everything */
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(139,92,246,0.14), transparent 60%),
    radial-gradient(800px 500px at 85% 30%, rgba(0,240,255,0.10), transparent 60%),
    radial-gradient(700px 600px at 50% 110%, rgba(255,0,255,0.06), transparent 60%);
}
#particles { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
a { color: var(--primary); }
::selection { background: rgba(0,240,255,0.3); }

/* ---------- Navigation ---------- */
.navbar {
  position: sticky; top: 0; z-index: 1000; padding: 0.9rem 2rem;
  background: rgba(0,0,0,0.9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-container { max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.nav-logo { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; }
.nav-logo img { height: 40px; width: auto; background: transparent; display: block; transition: transform 0.3s ease; }
.nav-logo:hover img { transform: scale(1.05); }
.nav-badge {
  font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.35em;
  padding: 0.3rem 0.4rem 0.3rem 0.75rem; color: var(--primary);
  border: 1px solid rgba(0,240,255,0.35); background: rgba(0,240,255,0.06);
}
.nav-menu { display: flex; list-style: none; gap: 2.2rem; }
.nav-link {
  color: var(--text-secondary); text-decoration: none; font-size: 1rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; position: relative; padding: 0.4rem 0; transition: color 0.3s ease;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px;
  background: var(--primary); box-shadow: var(--glow); transition: width 0.3s ease;
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* ---------- Layout ---------- */
main { position: relative; z-index: 2; flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 4rem 1.5rem 5rem; }
.hero { text-align: center; margin-bottom: 2.75rem; animation: rise 0.8s ease both; }
.section-tag {
  display: inline-block; font-family: 'Orbitron', sans-serif; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.3em;
  color: var(--primary); margin-bottom: 1.25rem; padding: 0.5rem 1.5rem;
  border: 1px solid rgba(0,240,255,0.3); background: rgba(0,240,255,0.05);
}
.hero h1 { font-family: 'Orbitron', sans-serif; font-weight: 800; line-height: 1.1; letter-spacing: 0.06em; font-size: clamp(2.1rem, 6vw, 4.2rem); }
.hero h1 .title-line { display: block; font-size: 0.42em; font-weight: 500; letter-spacing: 0.4em; color: var(--text-secondary); margin-bottom: 0.6rem; }
.highlight { background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { color: var(--text-secondary); font-size: 1.2rem; max-width: 620px; margin: 1.1rem auto 0; }

/* ---------- Drop zone ---------- */
.uploader { position: relative; max-width: 820px; margin: 0 auto; animation: rise 0.8s 0.12s ease both; }
.dropzone {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  min-height: 330px; padding: 3rem 2rem; cursor: pointer; outline: none; isolation: isolate;
  background: rgba(0,240,255,0.22); clip-path: var(--cut-lg); transition: transform 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}
.dropzone::before { /* inset panel so the cyan edge follows the clipped corners */
  content: ''; position: absolute; inset: 1px; z-index: -1; clip-path: var(--cut-lg);
  background:
    linear-gradient(180deg, rgba(5,5,8,0.92), rgba(5,5,8,0.97)),
    repeating-linear-gradient(90deg, rgba(0,240,255,0.04) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(0deg, rgba(0,240,255,0.04) 0 1px, transparent 1px 48px);
  background-blend-mode: normal;
  transition: background 0.35s ease;
}
.dropzone::after { /* sweeping scan line */
  content: ''; position: absolute; left: 0; right: 0; top: -40%; height: 40%; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(0,240,255,0.07), transparent);
  animation: scan 5s linear infinite;
}
.dropzone:hover, .dropzone:focus-visible { background: rgba(0,240,255,0.55); transform: translateY(-3px); }
.dropzone.dragover { background: var(--primary); transform: scale(1.015); }
.dropzone.dragover::before { background: linear-gradient(180deg, rgba(0,30,40,0.92), rgba(5,5,8,0.95)); }
.dz-icon { width: 88px; height: 88px; margin-bottom: 1.4rem; position: relative; color: var(--primary); }
.dz-icon svg { width: 100%; height: 100%; filter: drop-shadow(0 0 14px rgba(0,240,255,0.55)); transition: transform 0.4s ease; }
.dz-icon .ring { position: absolute; inset: -14px; border: 1px solid rgba(0,240,255,0.35); border-radius: 50%; animation: pulse 2.6s ease-out infinite; }
.dz-icon .ring.r2 { animation-delay: 1.3s; }
.dropzone:hover .dz-icon svg, .dropzone.dragover .dz-icon svg { transform: translateY(-6px); }
.dropzone.dragover .dz-icon svg { animation: bob 0.9s ease-in-out infinite; }
.dz-title { font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: clamp(1.15rem, 3vw, 1.55rem); letter-spacing: 0.06em; }
.dz-title .dz-drop { display: none; }
.dropzone.dragover .dz-title .dz-idle { display: none; }
.dropzone.dragover .dz-title .dz-drop { display: inline; color: var(--primary); }
.dz-sub { color: var(--text-secondary); font-size: 1.1rem; margin-top: 0.4rem; }
.dz-sub kbd {
  font-family: 'Orbitron', sans-serif; font-size: 0.72rem; padding: 0.15rem 0.45rem; margin: 0 0.1rem;
  border: 1px solid rgba(0,240,255,0.35); color: var(--primary); background: rgba(0,240,255,0.06);
}
.dz-browse { margin-top: 1.6rem; pointer-events: none; }
.dz-limits { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-top: 1.6rem; }
.chip {
  font-family: 'Orbitron', sans-serif; font-size: 0.66rem; letter-spacing: 0.18em; color: var(--text-muted);
  padding: 0.3rem 0.7rem; border: 1px solid var(--border); background: rgba(255,255,255,0.02);
}
.dropzone .ripple {
  position: absolute; width: 20px; height: 20px; border-radius: 50%; pointer-events: none; z-index: -1;
  border: 2px solid var(--primary); transform: translate(-50%,-50%); animation: ripple 0.9s ease-out forwards;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; padding: 0.95rem 2.1rem;
  font-family: 'Orbitron', sans-serif; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; border: none; border-radius: 0; cursor: pointer; position: relative; overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease; white-space: nowrap; isolation: isolate;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #000; clip-path: var(--cut); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 40px rgba(0,240,255,0.4); }
.btn-secondary { background: var(--border); color: var(--text-primary); clip-path: var(--cut); }
.btn-secondary::before {
  content: ''; position: absolute; inset: 1px; z-index: -1; background: #050508;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px)); transition: background 0.3s ease;
}
.btn-secondary:hover { background: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn-danger { background: rgba(255,70,110,0.45); color: #ff8aa5; clip-path: var(--cut); }
.btn-danger::before {
  content: ''; position: absolute; inset: 1px; z-index: -1; background: #0b0508;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.btn-danger:hover { background: #ff466e; color: #ffb3c4; transform: translateY(-2px); }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.7rem; }
.btn-icon { padding: 0.55rem 0.7rem; }
.btn:disabled { opacity: 0.5; cursor: default; transform: none; box-shadow: none; }
.btn.copied { background: linear-gradient(135deg, #3dffb0, #00c48c); color: #000; }

/* ---------- Progress ---------- */
.progress-card, .result-card, .panel {
  position: relative; background: rgba(255,255,255,0.1); clip-path: var(--cut-lg); isolation: isolate;
}
.progress-card::before, .result-card::before, .panel::before {
  content: ''; position: absolute; inset: 1px; z-index: -1; clip-path: var(--cut-lg);
  background: linear-gradient(160deg, rgba(10,12,20,0.96), rgba(5,5,8,0.98));
}
.progress-card { padding: 2.5rem 2rem; display: grid; grid-template-columns: 120px 1fr; gap: 1.75rem; align-items: center; animation: pop 0.4s ease both; }
.progress-thumb { width: 120px; height: 120px; object-fit: cover; border: 1px solid rgba(0,240,255,0.3); background: #050508; }
.progress-name { font-family: 'Orbitron', sans-serif; font-size: 1rem; letter-spacing: 0.04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.progress-meta { color: var(--text-secondary); font-size: 1rem; margin: 0.2rem 0 1rem; display: flex; justify-content: space-between; gap: 1rem; }
.progress-meta b { color: var(--primary); font-family: 'Orbitron', sans-serif; font-weight: 600; }
.bar { height: 10px; background: rgba(255,255,255,0.06); border: 1px solid var(--border); position: relative; overflow: hidden; }
.bar-fill {
  height: 100%; width: 0; background: linear-gradient(90deg, var(--secondary), var(--primary)); box-shadow: 0 0 18px rgba(0,240,255,0.6);
  transition: width 0.2s ease; position: relative;
}
.bar-fill::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(-45deg, rgba(255,255,255,0.22) 0 8px, transparent 8px 16px); animation: stripes 0.8s linear infinite;
}
.bar.processing .bar-fill { width: 100% !important; }

/* ---------- Result ---------- */
.result-card { padding: 2.25rem; display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 2.25rem; animation: pop 0.5s cubic-bezier(.2,1.3,.4,1) both; }
.result-preview { align-self: start; position: relative; display: flex; align-items: center; justify-content: center; min-height: 220px;
  background: repeating-conic-gradient(rgba(255,255,255,0.04) 0 25%, transparent 0 50%) 50% / 22px 22px; border: 1px solid rgba(0,240,255,0.25); }
.result-preview img { max-width: 100%; max-height: 320px; display: block; }
.result-preview .ok-badge {
  position: absolute; top: 10px; left: 10px; font-family: 'Orbitron', sans-serif; font-size: 0.62rem; letter-spacing: 0.2em;
  background: rgba(0,0,0,0.75); color: #3dffb0; border: 1px solid rgba(61,255,176,0.5); padding: 0.25rem 0.55rem;
}
.result-body { min-width: 0; }
.result-body h2 { font-family: 'Orbitron', sans-serif; font-size: 1.5rem; letter-spacing: 0.05em; margin-bottom: 0.25rem; }
.result-body .muted { color: var(--text-secondary); margin-bottom: 1.25rem; }
.field-label { font-family: 'Orbitron', sans-serif; font-size: 0.68rem; letter-spacing: 0.25em; color: var(--text-muted); margin: 1rem 0 0.45rem; display: flex; align-items: center; gap: 0.5rem; }
.field-label .lock { color: #ffb86b; }
.link-row { display: flex; gap: 0.6rem; align-items: stretch; }
.link-input {
  flex: 1; min-width: 0; font-family: 'Rajdhani', monospace; font-size: 1.08rem; font-weight: 600; color: var(--primary);
  background: rgba(0,240,255,0.05); border: 1px solid rgba(0,240,255,0.3); padding: 0.7rem 0.9rem; outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.link-input:focus { border-color: var(--primary); box-shadow: var(--glow); }
.link-input.secondary { color: var(--text-secondary); border-color: var(--border); background: rgba(255,255,255,0.03); font-size: 0.98rem; }
.link-input.private { color: #ffcf99; border-color: rgba(255,184,107,0.3); background: rgba(255,184,107,0.04); font-size: 0.95rem; }
.hint { color: var(--text-muted); font-size: 0.92rem; margin-top: 0.4rem; }
.result-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }

.error-card {
  margin-top: 1.25rem; padding: 1rem 1.25rem; border: 1px solid rgba(255,70,110,0.45); background: rgba(255,70,110,0.08);
  color: #ffb3c4; display: flex; gap: 0.75rem; align-items: center; animation: shake 0.45s ease;
}
.error-card svg { width: 22px; height: 22px; flex: none; color: #ff466e; }

/* ---------- Recent uploads ---------- */
.recent { margin-top: 4.5rem; animation: rise 0.8s 0.24s ease both; }
.recent-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.recent-head h2 { font-family: 'Orbitron', sans-serif; font-size: clamp(1.3rem, 3vw, 1.8rem); letter-spacing: 0.05em; }
.recent-head p { color: var(--text-muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.1rem; }
.tile {
  position: relative; background: var(--bg-card); border: 1px solid var(--border); overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease; animation: pop 0.4s ease both;
}
.tile::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 3;
  background: linear-gradient(90deg, transparent, var(--primary), transparent); transform: scaleX(0); transition: transform 0.4s ease;
}
.tile:hover { transform: translateY(-5px); border-color: rgba(0,240,255,0.35); box-shadow: 0 14px 40px rgba(0,0,0,0.6), 0 0 30px rgba(0,240,255,0.08); }
.tile:hover::before { transform: scaleX(1); }
.tile-img { display: block; aspect-ratio: 4 / 3; background: repeating-conic-gradient(rgba(255,255,255,0.04) 0 25%, transparent 0 50%) 50% / 18px 18px; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.tile:hover .tile-img img { transform: scale(1.06); }
.tile-body { padding: 0.75rem 0.85rem 0.85rem; }
.tile-name { font-weight: 600; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-meta { color: var(--text-muted); font-size: 0.85rem; }
.tile-actions { display: flex; gap: 0.45rem; margin-top: 0.6rem; }
.tile-actions .btn { flex: 1; }
.tile.gone { opacity: 0.45; }
.empty { color: var(--text-muted); text-align: center; padding: 2.5rem 1rem; border: 1px dashed var(--border); font-size: 1.05rem; }

/* ---------- Features strip ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 4.5rem; }
.feature { background: var(--bg-card); border: 1px solid var(--border); padding: 1.6rem; position: relative; overflow: hidden; transition: all 0.4s ease; }
.feature::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--primary), transparent); transform: scaleX(0); transition: transform 0.4s ease; }
.feature:hover { border-color: rgba(0,240,255,0.3); transform: translateY(-5px); }
.feature:hover::before { transform: scaleX(1); }
.feature svg { width: 34px; height: 34px; color: var(--primary); margin-bottom: 0.8rem; }
.feature h3 { font-family: 'Orbitron', sans-serif; font-size: 1rem; letter-spacing: 0.05em; margin-bottom: 0.35rem; }
.feature p { color: var(--text-secondary); font-size: 0.98rem; }

/* ---------- Share page ---------- */
.viewer { animation: rise 0.7s ease both; }
.viewer-frame {
  position: relative; padding: 1px; background: linear-gradient(135deg, rgba(0,240,255,0.55), rgba(139,92,246,0.45)); clip-path: var(--cut-lg);
  box-shadow: 0 30px 80px rgba(0,0,0,0.7);
}
.viewer-inner {
  clip-path: var(--cut-lg); display: flex; align-items: center; justify-content: center; min-height: 260px; padding: 1.25rem;
  background: #050508 repeating-conic-gradient(rgba(255,255,255,0.035) 0 25%, transparent 0 50%) 50% / 26px 26px;
}
.viewer-inner a { display: block; cursor: zoom-in; }
.viewer-inner img { display: block; max-width: 100%; max-height: 72vh; width: auto; height: auto; animation: fadein 0.6s ease both; }
.viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap; margin-top: 1.5rem; }
.viewer-title { font-family: 'Orbitron', sans-serif; font-size: clamp(1.05rem, 2.6vw, 1.4rem); letter-spacing: 0.04em; overflow-wrap: anywhere; }
.viewer-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.45rem; }
.viewer-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.share-links { margin-top: 1.75rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.owner-panel { margin-top: 1.75rem; padding: 1.4rem 1.6rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; animation: pop 0.4s ease both; }
.owner-panel p { color: #ffcf99; }
.cta { text-align: center; margin-top: 3.5rem; color: var(--text-secondary); font-size: 1.1rem; }
.cta .btn { margin-top: 1rem; }
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,0.94); display: none; align-items: center; justify-content: center; padding: 2rem; cursor: zoom-out; }
.lightbox.open { display: flex; animation: fadein 0.25s ease; }
.lightbox img { max-width: 100%; max-height: 100%; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 3rem 0; }
.notfound .big { font-family: 'Orbitron', sans-serif; font-size: clamp(4rem, 16vw, 9rem); font-weight: 900; line-height: 1; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 2rem; z-index: 3000; transform: translate(-50%, 140%); opacity: 0;
  display: flex; align-items: center; gap: 0.7rem; padding: 0.9rem 1.4rem;
  font-family: 'Orbitron', sans-serif; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: #000; background: linear-gradient(135deg, var(--primary), #3dffb0); clip-path: var(--cut);
  box-shadow: 0 10px 40px rgba(0,240,255,0.45); white-space: nowrap; max-width: 92vw; transition: transform 0.45s cubic-bezier(.2,1.3,.4,1), opacity 0.3s ease; pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.err { background: linear-gradient(135deg, #ff466e, #ff8aa5); }
.toast svg { width: 18px; height: 18px; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-darker); padding: 3.5rem 2rem; text-align: center; border-top: 1px solid var(--border); position: relative; z-index: 10; }
.footer-logo img { height: 40px; width: auto; max-width: 100%; object-fit: contain; margin-bottom: 1rem; opacity: 0.8; }
.footer-text { color: var(--text-muted); margin-bottom: 1.5rem; }
.footer-links { display: flex; justify-content: center; gap: 2rem; margin-bottom: 2rem; flex-wrap: wrap; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--primary); }
.copyright { color: var(--text-muted); font-size: 0.85rem; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- Animations ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(0.96) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0% { transform: scale(0.75); opacity: 0.9; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes bob { 0%,100% { transform: translateY(-6px); } 50% { transform: translateY(4px); } }
@keyframes scan { from { top: -40%; } to { top: 100%; } }
@keyframes stripes { from { background-position: 0 0; } to { background-position: 22px 0; } }
@keyframes ripple { from { width: 20px; height: 20px; opacity: 1; } to { width: 900px; height: 900px; opacity: 0; } }
@keyframes shake { 0%,100% { transform: none; } 20% { transform: translateX(-8px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .result-card { grid-template-columns: minmax(0, 1fr); }
  .features { grid-template-columns: 1fr; }
  .share-links { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .navbar { padding: 0.75rem 1rem; }
  .nav-logo img { height: 25px; }
  .nav-badge { font-size: 0.62rem; letter-spacing: 0.25em; padding: 0.2rem 0.3rem 0.2rem 0.5rem; }
  .nav-menu { gap: 1.1rem; }
  .nav-link { font-size: 0.85rem; }
  .nav-menu .hide-sm { display: none; }
  main { padding: 2.5rem 1rem 3.5rem; }
  .hero p { font-size: 1.05rem; }
  .dropzone { min-height: 280px; padding: 2.25rem 1.25rem; }
  .dz-icon { width: 70px; height: 70px; }
  .progress-card { grid-template-columns: 72px 1fr; gap: 1rem; padding: 1.6rem 1.25rem; }
  .progress-thumb { width: 72px; height: 72px; }
  .result-card { padding: 1.4rem; gap: 1.4rem; }
  .link-row { flex-direction: row; }
  .result-actions .btn, .viewer-actions .btn { flex: 1 1 auto; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .tile-actions .btn { padding: 0.5rem 0.4rem; font-size: 0.62rem; letter-spacing: 0.06em; gap: 0.35rem; }
  .tile-actions .btn svg { width: 14px; height: 14px; }
  .tile-actions .btn-icon { flex: 0 0 40px; }
  .result-preview { min-height: 160px; }
  .link-row .btn { padding: 0.6rem 0.85rem; font-size: 0.7rem; }
  .link-row .btn svg { display: none; }
  .link-input { font-size: 0.98rem; padding: 0.6rem 0.7rem; }
  .viewer-inner { padding: 0.6rem; }
  .footer { padding: 2.5rem 1.25rem; }
  .footer-links { gap: 1.25rem; }
}
@media (max-width: 420px) { .dz-sub .paste-hint { display: none; } .tile-meta { font-size: 0.78rem; } }
