:root {
    --bg: #05070b;
    --bg-soft: #0a0f16;
    --card: #0d131c;
    --card-2: #111a26;
    --border: #1b2634;
    --text: #e8eef6;
    --muted: #8b97a8;
    --accent: #1ea7ff;
    --accent-soft: rgba(30, 167, 255, 0.14);
    --danger: #ff5c6c;
    --radius: 16px;
    --radius-sm: 10px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: radial-gradient(1200px 600px at 50% -10%, rgba(30, 167, 255, 0.08), transparent 70%), var(--bg);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.mono { font-family: "JetBrains Mono", "Cascadia Code", Consolas, monospace; font-size: 0.85em; }
.label { display: block; color: var(--muted); font-size: 0.82rem; margin-bottom: 6px; }

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 32px;
    border-bottom: 1px solid var(--border);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: 0.01em;
}
.brand:hover { text-decoration: none; }

.nav { display: flex; gap: 28px; }
.nav a { color: var(--muted); font-weight: 500; }
.nav a:hover { color: var(--text); text-decoration: none; }

.page {
    flex: 1;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 40px 24px 64px;
}

.hero { text-align: center; margin: 24px 0 36px; }
.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
}
.hero-sub { color: var(--muted); font-size: 1.15rem; margin: 10px 0 0; }

.dropzone-card {
    border: 2px solid var(--accent);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(30, 167, 255, 0.06), rgba(13, 19, 28, 0.6));
    padding: 44px 24px;
    text-align: center;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    max-width: 760px;
    margin: 0 auto;
}
.dropzone-card.dragover { background: var(--accent-soft); border-color: #57baff; }
.dropzone-title { font-size: 1.5rem; font-weight: 700; margin: 14px 0 4px; }
.dropzone-hint { margin: 0; color: var(--muted); }
.dropzone-limits { margin: 16px 0 4px; color: var(--muted); font-size: 0.92rem; }
.dropzone-note { margin: 0; color: #63718a; font-size: 0.85rem; }

.linklike {
    background: none;
    border: 0;
    color: var(--accent);
    font: inherit;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
}

.upload-panel {
    max-width: 760px;
    margin: 22px auto 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
}
.upload-panel[hidden] { display: none; }
.upload-link { margin-bottom: 18px; }
.link-row { display: flex; gap: 8px; }
.link-row input {
    flex: 1;
    min-width: 0;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    padding: 11px 12px;
    font-size: 0.95rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--card-2);
    color: var(--text);
    padding: 12px 18px;
    font-size: 0.98rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; background: #16202d; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #041018; }
.btn-primary:hover { background: #4bb8ff; }
.btn-ghost { background: transparent; }
.btn-copy { padding: 10px 12px; background: var(--accent); border-color: var(--accent); color: #041018; }
.btn-copy:hover { background: #4bb8ff; }

.progress-head { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.92rem; }
.progress {
    height: 10px;
    background: #1a2331;
    border-radius: 999px;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    width: 0;
    background: var(--accent);
    border-radius: 999px;
    transition: width 0.12s linear;
}
.progress-meta { color: var(--muted); margin-top: 8px; min-height: 18px; }

.error { color: var(--danger); margin: 12px 0 0; }

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin: 40px auto 0;
    max-width: 820px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}
.feature { display: flex; align-items: center; gap: 12px; }
.feature div { display: flex; flex-direction: column; }
.feature strong { font-size: 0.98rem; }
.feature span { color: var(--muted); font-size: 0.82rem; }

.support {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 48px auto 0;
    max-width: 820px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
}
.support p { margin: 6px 0 0; }
.support-receiver { min-width: 260px; }

.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 32px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.9rem;
}
.footer-links { display: flex; gap: 10px; align-items: center; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-note { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #32d583; display: inline-block; }

.viewer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 22px;
    align-items: start;
}

.viewer-media {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.viewer-media video { width: 100%; height: auto; display: block; background: #000; }

.side-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.side-block { border-top: 1px solid var(--border); padding-top: 16px; }
.side-block:first-of-type { border-top: 0; padding-top: 0; }
.side-block.narrow { border: 0; padding: 0; margin: 22px auto 0; width: 100%; max-width: 420px; }

.file-head { display: flex; gap: 12px; align-items: flex-start; }
.file-icon {
    width: 46px; height: 46px; flex: none;
    border-radius: 12px;
    background: var(--accent-soft);
    display: flex; align-items: center; justify-content: center;
}
.file-name { font-weight: 700; word-break: break-word; }

.expiry { display: flex; gap: 10px; align-items: center; }
.expiry strong { display: block; font-size: 1.05rem; }

.report summary {
    cursor: pointer;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}
.report summary::-webkit-details-marker { display: none; }
.report-body { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.report select, .report textarea {
    width: 100%;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    padding: 10px;
    font: inherit;
}
.honeypot { position: absolute; left: -5000px; opacity: 0; }

.pending, .unavailable {
    max-width: 640px;
    margin: 40px auto 0;
    text-align: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 44px 28px;
}
.pending-icon {
    width: 82px; height: 82px; margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--accent-soft);
    display: flex; align-items: center; justify-content: center;
}
.pending h1, .unavailable h1 { margin: 0 0 8px; font-size: 1.6rem; }

.gallery-media { position: relative; display: block; background: #000; }
.gallery-media > img { width: 100%; height: auto; max-height: 70vh; object-fit: contain; display: block; }
.gallery-media > img.zoomed { max-height: none; transform: scale(1.6); transform-origin: center; cursor: zoom-out; }
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(5, 7, 11, 0.65);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}
.gallery-arrow.prev { left: 14px; }
.gallery-arrow.next { right: 14px; }
.gallery-counter {
    position: absolute;
    left: 14px;
    top: 14px;
    background: rgba(5, 7, 11, 0.7);
    border-radius: 999px;
    padding: 4px 10px;
}
.gallery-tools { position: absolute; right: 14px; bottom: 96px; display: flex; gap: 8px; }
.icon-btn {
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(5, 7, 11, 0.65);
    color: #fff;
    cursor: pointer;
}
.gallery-thumbs {
    display: flex;
    gap: 10px;
    padding: 12px;
    overflow-x: auto;
    background: var(--card);
    border-top: 1px solid var(--border);
}
.thumb {
    flex: none;
    width: 104px; height: 64px;
    padding: 0;
    border-radius: 8px;
    border: 2px solid transparent;
    overflow: hidden;
    background: #000;
    cursor: pointer;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.active { border-color: var(--accent); }

.prose { max-width: 760px; margin: 0 auto; }
.prose h1 { font-size: 2rem; margin-top: 0; }
.prose h2 { font-size: 1.2rem; margin-top: 28px; }
.prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; }
.prose p, .prose li { color: #c3cddb; }

@media (max-width: 900px) {
    .viewer { grid-template-columns: 1fr; }
    .support { flex-direction: column; align-items: stretch; }
    .support-receiver { min-width: 0; }
}

@media (max-width: 640px) {
    .topbar { padding: 14px 16px; }
    .nav { gap: 16px; }
    .page { padding: 24px 14px 48px; }
    .dropzone-card { padding: 32px 16px; }
    .features { grid-template-columns: 1fr; gap: 16px; }
    .footer { flex-direction: column; align-items: flex-start; padding: 16px; }
    .side-card { padding: 16px; }
    .gallery-arrow { width: 38px; height: 38px; }
    .thumb { width: 84px; height: 54px; }
}
