/* ============================================================
   DropVault — Stylesheet
   ============================================================ */

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

:root {
    --black:      #0a0a0a;
    --off-black:  #111111;
    --card-bg:    #151515;
    --border:     rgba(255,255,255,0.08);
    --border-md:  rgba(255,255,255,0.14);
    --accent:     #d4f244;
    --accent-dim: rgba(212,242,68,0.12);
    --accent-glow:rgba(212,242,68,0.35);
    --white:      #f0f0f0;
    --muted:      #888;
    --danger:     #ff5a5a;
    --success:    #4ade80;
    --radius:     14px;
    --radius-sm:  8px;
}

html { font-size: 16px; }

body {
    font-family: 'Manrope', sans-serif;
    background: var(--black);
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

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

.noise {
    position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 150px;
}

/* ── Header ── */
.header {
    position: relative; z-index: 10;
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 40px;
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex; align-items: center; gap: 12px;
    font-family: 'Manrope', sans-serif;
    letter-spacing: -0.02em; color: var(--white);
    flex-wrap: wrap;
}

.logo-link {
    text-decoration: none; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: inherit;
}

.logo-mark {
    width: 38px; height: 38px;
    position: relative;
    z-index: 2;
    isolation: isolate;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    background: var(--accent);
    color: var(--black);
    font-size: 13px; font-weight: 800;
    letter-spacing: 0.08em;
    border-radius: 8px;
    line-height: 1;
    box-shadow:
        0 0 22px rgba(212, 242, 68, 0.55),
        0 0 48px rgba(212, 242, 68, 0.28),
        0 4px 14px rgba(0, 0, 0, 0.45);
}

.logo-text { font-size: 20px; font-weight: 700; flex-shrink: 0; }

.logo-tagline {
    margin-left: 32px;
    padding-left: 32px;
    font-size: 13px; font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
    letter-spacing: 0.04em;
    white-space: nowrap;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.logo-tagline--compact {
    margin-left: 28px;
    padding-left: 28px;
    font-size: 12px;
}

.nav { display: flex; align-items: center; gap: 16px; }

.nav-link {
    font-size: 13px; color: var(--muted); text-decoration: none;
    transition: color 0.2s;
}
.nav-link:hover { color: var(--white); }

.btn-nav {
    font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 600;
    padding: 8px 18px; border-radius: 100px;
    background: var(--accent); color: var(--black);
    text-decoration: none; transition: opacity 0.2s;
}
.btn-nav:hover { opacity: 0.85; }
.btn-nav--ghost {
    background: transparent; color: var(--muted);
    border: 1px solid var(--border-md);
}
.btn-nav--ghost:hover { color: var(--white); border-color: var(--border-md); }

/* ── Main ── */
.main {
    position: relative; z-index: 1;
    max-width: 900px; margin: 0 auto;
    padding: 60px 24px 80px;
}

.main--download, .main--dashboard { max-width: 900px; }
.main--dashboard { max-width: 1100px; }

/* ── Hero ── */
.hero { text-align: center; margin-bottom: 40px; }

.hero-tag {
    font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
    color: rgba(255,255,255,0.75); margin-bottom: 18px;
}

.hero-title {
    font-family: 'Manrope', sans-serif; font-size: clamp(32px, 5vw, 54px);
    font-weight: 800; line-height: 1.12; letter-spacing: -0.03em;
    margin-bottom: 16px;
    max-width: 100%;
}

.hero-title-line {
    display: inline;
    color: var(--white);
    text-shadow:
        0 0 18px rgba(255, 255, 255, 0.22),
        0 0 36px rgba(255, 255, 255, 0.06);
}

.hero-title-line--accent {
    color: var(--accent);
    text-shadow:
        0 0 14px rgba(212, 242, 68, 0.7),
        0 0 32px rgba(212, 242, 68, 0.5),
        0 0 56px rgba(212, 242, 68, 0.3),
        0 0 90px rgba(212, 242, 68, 0.12);
}

.hero-features {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 16px 26px;
    margin: 28px auto 10px;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 6px 12px 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.hero-features::-webkit-scrollbar { display: none; }

.hero-feature {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    text-shadow:
        0 0 8px rgba(212, 242, 68, 0.45),
        0 0 16px rgba(212, 242, 68, 0.22);
    white-space: nowrap;
    flex-shrink: 0;
}

.hero-feature-icon {
    display: flex; flex-shrink: 0;
    color: var(--accent);
    filter: drop-shadow(0 0 6px rgba(212, 242, 68, 0.55));
}

.hero-sub {
    font-size: 15px; color: var(--muted); line-height: 1.6;
    max-width: 420px; margin: 0 auto;
}

/* ── Upload Card ── */
.upload-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    animation: fadeUp 0.4s ease;
}

.upload-card--glow {
    border: 1px solid rgba(212, 242, 68, 0.35);
    box-shadow:
        0 0 0 1px rgba(212, 242, 68, 0.08),
        0 0 32px rgba(212, 242, 68, 0.12),
        0 0 64px rgba(212, 242, 68, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

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

/* ── Drop Zone ── */
.drop-zone {
    position: relative;
    border: 1.5px dashed var(--border-md);
    border-radius: var(--radius-sm);
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    margin-bottom: 24px;
}

.drop-zone:hover, .drop-zone.dragging {
    border-color: var(--accent);
    background: var(--accent-glow);
}

.file-input {
    position: absolute; inset: 0; opacity: 0;
    width: 100%; height: 100%; cursor: pointer;
}

.drop-inner { pointer-events: none; }

.drop-icon-wrap {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    margin-bottom: 14px;
}

.drop-icon {
    display: flex; justify-content: center;
    color: var(--accent);
    filter: drop-shadow(0 0 12px rgba(212, 242, 68, 0.5));
}

.drop-icon-line {
    display: block; width: 48px; height: 2px;
    background: var(--accent);
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(212, 242, 68, 0.6);
}

.drop-text {
    font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 600;
    color: var(--white); margin-bottom: 6px;
}

.drop-sub { font-size: 13px; color: var(--muted); margin-bottom: 8px; }

.file-label {
    color: var(--accent); cursor: pointer; pointer-events: all;
    text-decoration: underline; text-underline-offset: 2px;
}

.drop-limit {
    font-size: 12px; color: #666; text-align: center;
    margin: -12px 0 24px;
}

/* ── File Preview ── */
.file-preview {
    display: flex; align-items: center; gap: 12px;
    background: rgba(212,242,68,0.06);
    border: 1px solid rgba(212,242,68,0.2);
    border-radius: var(--radius-sm);
    padding: 12px 16px; margin-bottom: 24px;
    animation: fadeUp 0.2s ease;
}

.preview-icon { flex-shrink: 0; }
.preview-icon img { width: 24px; height: 24px; opacity: 0.8; filter: invert(1); }
.preview-info { flex: 1; min-width: 0; }
.preview-name { display: block; font-size: 13px; font-weight: 500; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview-size { font-size: 11px; color: var(--muted); }

.preview-remove {
    background: none; border: none; color: var(--muted); font-size: 20px;
    cursor: pointer; padding: 0 4px; transition: color 0.2s;
}
.preview-remove:hover { color: var(--danger); }

/* ── Options Grid ── */
.options-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 16px; margin-bottom: 28px;
}

.option-field { display: flex; flex-direction: column; gap: 8px; }

.option-label {
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--muted); display: flex; align-items: center; gap: 6px;
}

.option-icon { width: 16px; height: 16px; display: inline-block; vertical-align: middle; margin-right: 6px; opacity: 0.85; filter: invert(1); }

.option-input {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-md);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    padding: 10px 14px;
    width: 100%;
    transition: border-color 0.2s, background 0.2s;
    outline: none;
}

.option-input:focus {
    border-color: var(--accent);
    background: rgba(212,242,68,0.04);
}

.option-input::placeholder { color: #444; }

input[type="date"].option-input::-webkit-calendar-picker-indicator { filter: invert(0.4); }

/* ── Upload progress queue ── */
.upload-progress-panel {
    margin-bottom: 20px;
}

.upload-queue { display: flex; flex-direction: column; gap: 20px; }

.upload-queue-row {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}
.upload-queue-row:last-child { border-bottom: none; }

.queue-row-top {
    display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px;
}

.queue-thumb {
    width: 36px; height: 36px; flex-shrink: 0; object-fit: contain;
    opacity: 0.85; filter: invert(1);
    border-radius: 6px;
    background: rgba(255,255,255,0.04);
    padding: 6px;
}

.queue-row-meta {
    flex: 1; min-width: 0;
    display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}

.queue-name {
    font-size: 14px; font-weight: 600; color: var(--white);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.queue-row-actions {
    display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}

.queue-pct {
    font-size: 13px; font-weight: 600; color: var(--white);
    min-width: 40px; text-align: right;
    font-variant-numeric: tabular-nums;
}

.queue-ctrl {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px;
    padding: 0; border: none; border-radius: 6px;
    background: rgba(255,255,255,0.06); color: var(--white);
    cursor: pointer; transition: background 0.15s, color 0.15s;
}
.queue-ctrl:hover { background: rgba(212,242,68,0.15); color: var(--accent); }

.queue-progress-track {
    height: 5px;
    background: rgba(255,255,255,0.08);
    border-radius: 100px; overflow: hidden;
}

.queue-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), #e8ff6a);
    border-radius: 100px;
    box-shadow:
        0 0 12px rgba(212, 242, 68, 0.85),
        0 0 24px rgba(212, 242, 68, 0.45);
    transition: width 0.08s linear;
}

/* ── Upload Button ── */
.btn-upload {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 16px 22px;
    background: var(--accent); color: var(--black);
    border: none; border-radius: var(--radius-sm);
    font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 700;
    cursor: pointer; text-decoration: none;
    transition: opacity 0.2s, transform 0.1s;
}

.btn-upload:hover { opacity: 0.9; }
.btn-upload:active { transform: scale(0.99); }

.btn-upload.btn-sm { width: auto; padding: 10px 18px; font-size: 13px; }

.btn-arrow { font-size: 18px; }
.btn-arrow-icon { width: 20px; height: 20px; filter: invert(1); opacity: 0.9; }

/* ── Alerts ── */
.alert-error {
    background: rgba(255,90,90,0.1);
    border: 1px solid rgba(255,90,90,0.3);
    border-radius: var(--radius-sm);
    color: #ff8080; font-size: 13px; padding: 12px 16px;
    margin-bottom: 20px;
}

/* ── Success View ── */
.success-view, .pw-view, .dl-view, .error-view {
    text-align: center; padding: 16px 0;
}

.success-icon {
    width: 52px; height: 52px; border-radius: 50%;
    background: rgba(74,222,128,0.12);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
}
.success-icon img { width: 28px; height: 28px; filter: invert(1) sepia(1) saturate(5) hue-rotate(100deg); }

.success-title, .pw-title, .dl-title {
    font-family: 'Manrope', sans-serif; font-size: 22px; font-weight: 700;
    color: var(--white); margin-bottom: 6px;
}

.success-sub { color: var(--muted); font-size: 13px; margin-bottom: 24px; }

.link-box {
    display: flex; gap: 8px; margin-bottom: 24px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-md);
    border-radius: var(--radius-sm); padding: 4px 4px 4px 14px;
    align-items: center;
}

.link-input {
    flex: 1; background: none; border: none; outline: none;
    color: var(--accent); font-family: 'JetBrains Mono', monospace;
    font-size: 12px; overflow: hidden; text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-btn {
    background: var(--accent); color: var(--black);
    border: none; border-radius: 6px; padding: 8px 16px;
    font-family: 'Manrope', sans-serif; font-size: 12px; font-weight: 700;
    cursor: pointer; flex-shrink: 0; transition: opacity 0.2s;
}
.copy-btn:hover { opacity: 0.85; }

/* ── File Meta ── */
.file-meta {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
    margin-bottom: 24px;
}

.meta-item {
    font-size: 12px; color: var(--muted);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    padding: 5px 12px; border-radius: 100px;
}

.meta-icon { width: 14px; height: 14px; flex-shrink: 0; opacity: 0.8; filter: invert(1); }
.meta-item { display: flex; align-items: center; gap: 6px; }

/* ── Buttons secondary ── */
.btn-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 22px;
    background: transparent;
    border: 1px solid var(--border-md); border-radius: var(--radius-sm);
    color: var(--muted); font-family: 'Manrope', sans-serif;
    font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }


/* ── Password / Error views ── */
.pw-icon, .dl-icon, .error-icon {
    margin-bottom: 16px; display: flex; justify-content: center;
}
.pw-icon img, .dl-icon img { width: 48px; height: 48px; opacity: 0.9; filter: invert(1); }
.error-icon img { width: 48px; height: 48px; filter: invert(1) sepia(1) saturate(5) hue-rotate(320deg); }

.pw-sub, .dl-note { color: var(--muted); font-size: 13px; margin-bottom: 24px; line-height: 1.5; }

.pw-form { display: flex; flex-direction: column; gap: 12px; max-width: 320px; margin: 0 auto; }
.pw-input { text-align: center; font-size: 15px; padding: 14px; }

.dl-footer { font-size: 12px; color: #444; margin-top: 20px; }
.dl-footer-link { color: var(--accent); text-decoration: none; }
.dl-footer-link:hover { text-decoration: underline; }

.btn-download { max-width: 280px; margin: 0 auto; }

.error-title { font-family: 'Manrope', sans-serif; font-size: 18px; color: var(--white); margin-bottom: 20px; }

.download-card { max-width: 440px; margin: 0 auto; }

/* ── Dashboard ── */
.dash-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 28px;
}

.dash-title {
    font-family: 'Manrope', sans-serif; font-size: 28px; font-weight: 800;
    letter-spacing: -0.02em;
}

.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 14px; margin-bottom: 28px;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px; text-align: center;
}

.stat-num {
    display: block;
    font-family: 'Manrope', sans-serif; font-size: 26px; font-weight: 800;
    color: var(--accent); margin-bottom: 4px;
}

.stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }

/* ── Files Table ── */
.files-table-wrap {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: var(--radius); overflow-x: auto;
}

.files-table {
    width: 100%; border-collapse: collapse; font-size: 13px;
}

.files-table th {
    padding: 12px 16px; text-align: left;
    font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em;
    color: #555; border-bottom: 1px solid var(--border);
    font-weight: 500; white-space: nowrap;
}

.files-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.files-table tr:last-child td { border-bottom: none; }
.files-table tr:hover td { background: rgba(255,255,255,0.02); }
.row--inactive td { opacity: 0.5; }

.td-file { display: flex; align-items: center; gap: 12px; }
.td-icon { flex-shrink: 0; }
.td-icon img { width: 20px; height: 20px; display: block; opacity: 0.8; filter: invert(1); }
.td-info { min-width: 0; }

.td-name {
    display: block; color: var(--white); font-size: 13px;
    text-decoration: none; white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis; max-width: 200px;
}
.td-name:hover { color: var(--accent); }

.td-id { font-size: 10px; color: #444; }
.td-mono { font-family: 'JetBrains Mono', monospace; color: var(--muted); }
.td-date { white-space: nowrap; }

.badge-row { display: flex; gap: 4px; flex-wrap: wrap; }
.badge {
    font-size: 10px; padding: 2px 7px; border-radius: 100px;
    white-space: nowrap;
}
.badge--lock { background: rgba(212,242,68,0.1); color: var(--accent); }
.badge--time { background: rgba(100,180,255,0.1); color: #64b4ff; }
.badge--dl   { background: rgba(160,100,255,0.1); color: #c09fff; }

.status {
    font-size: 11px; padding: 3px 10px; border-radius: 100px;
    font-weight: 500;
}
.status--active { background: rgba(74,222,128,0.1); color: var(--success); }
.status--inactive { background: rgba(255,90,90,0.1); color: #ff8080; }

.action-row { display: flex; gap: 6px; }
.action-btn {
    background: rgba(255,255,255,0.05); border: 1px solid var(--border);
    color: var(--muted); border-radius: 6px; padding: 5px 9px;
    cursor: pointer; transition: all 0.15s; display: inline-flex; align-items: center; justify-content: center;
}
.action-btn img { width: 16px; height: 16px; filter: invert(1); opacity: 0.8; }
.action-btn:hover { border-color: var(--border-md); color: var(--white); }
.action-btn--delete:hover { background: rgba(255,90,90,0.1); border-color: rgba(255,90,90,0.3); color: var(--danger); }

.inline-form { display: inline; }

/* ── Empty / Login ── */
.empty-state {
    text-align: center; padding: 60px 24px;
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: var(--radius);
}
.empty-icon { display: block; margin-bottom: 12px; }
.empty-icon img { width: 48px; height: 48px; opacity: 0.35; filter: invert(1); }
.empty-text { color: var(--muted); font-size: 14px; margin-bottom: 20px; }

.login-card { max-width: 400px; margin: 0 auto; }

/* ── Upload dashboard (two columns) ── */
.upload-dashboard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: 28px;
    align-items: start;
    max-width: 1180px;
    margin: 0 auto;
}

.upload-dashboard__col--main {
    min-width: 0;
}

.upload-dashboard__col--side {
    min-width: 0;
}

.recent-panel {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 20px;
    position: sticky;
    top: 24px;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.03);
}

.recent-panel-head {
    margin-bottom: 18px;
}

.recent-panel-title {
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 4px 0;
}

.recent-panel-desc {
    font-size: 12px;
    color: var(--muted);
    margin: 0;
}

.recent-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: min(70vh, 640px);
    overflow-y: auto;
    padding-right: 4px;
}

.recent-empty {
    font-size: 13px;
    color: var(--muted);
    margin: 8px 0 0;
    line-height: 1.5;
}

.recent-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    transition: border-color 0.15s;
}

.recent-item:hover {
    border-color: var(--border-md);
}

.recent-item-top {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.recent-item-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    opacity: 0.85;
    filter: invert(1);
}

.recent-item-meta {
    min-width: 0;
    flex: 1;
}

.recent-item-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--white);
}

.recent-item-size {
    display: block;
    font-size: 11px;
    font-family: 'JetBrains Mono', monospace;
    color: var(--muted);
    margin-top: 2px;
}

.recent-item-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}

.recent-badge {
    font-size: 9px;
    padding: 2px 7px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.recent-badge--lock {
    background: rgba(212,242,68,0.12);
    color: var(--accent);
}

.recent-badge--dl {
    background: rgba(160,100,255,0.12);
    color: #c09fff;
}

.recent-badge--note {
    background: rgba(100,180,255,0.12);
    color: #7ec8ff;
}

.recent-item-done {
    flex-shrink: 0;
    opacity: 0.9;
}

.recent-item-done img {
    width: 20px;
    height: 20px;
    display: block;
    filter: invert(1);
}

.recent-item-progress {
    height: 4px;
    background: rgba(255,255,255,0.06);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 10px;
}

.recent-item-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #9ae68a);
    border-radius: 2px;
    transition: width 0.2s ease;
}

.recent-item-link-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.recent-item-url {
    flex: 1;
    min-width: 0;
    font-size: 11px;
    font-family: 'JetBrains Mono', monospace;
    padding: 8px 10px;
    background: rgba(0,0,0,0.25);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--muted);
}

.recent-item-copy {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid var(--border-md);
    background: rgba(255,255,255,0.06);
    color: var(--white);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.recent-item-copy:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--accent);
}

.recent-item-expiry {
    font-size: 11px;
    color: #7ec8ff;
    margin: 10px 0 0;
    min-height: 1.2em;
}

.recent-item-expiry--none {
    color: var(--muted);
}

.drop-type-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px;
}

.type-chip {
    font-size: 10px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.04em;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    color: var(--muted);
    background: rgba(255,255,255,0.04);
}

.type-chip--psd { color: #7ec8ff; border-color: rgba(126,200,255,0.25); }
.type-chip--mp4 { color: #ff9ec7; border-color: rgba(255,158,199,0.25); }
.type-chip--zip { color: #c8b5ff; border-color: rgba(200,181,255,0.25); }
.type-chip--pdf { color: #ff9a6b; border-color: rgba(255,154,107,0.25); }

/* ── Responsive ── */
@media (max-width: 900px) {
    .logo-tagline {
        margin-left: 20px;
        padding-left: 20px;
    }
    .upload-dashboard {
        grid-template-columns: 1fr;
        max-width: 640px;
    }
    .recent-panel {
        position: static;
        max-height: none;
    }
    .recent-list {
        max-height: 420px;
    }
}

@media (max-width: 700px) {
    .header { padding: 16px 20px; flex-wrap: wrap; gap: 12px; }
    .logo-tagline {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        width: 100%;
        flex-basis: 100%;
    }
    .hero-features {
        flex-wrap: wrap;
        justify-content: center;
        overflow-x: visible;
    }
    .hero-feature { font-size: 11px; }
    .options-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .hero-title { font-size: 32px; }
    .main { padding: 40px 16px 60px; }
    .upload-card { padding: 22px 18px; }
    td:nth-child(4), th:nth-child(4),
    td:nth-child(5), th:nth-child(5) { display: none; }
}
