:root {
    --bg: #1E262C;
    --bg-card: #263038;
    --bg-hover: #2E3A42;
    --border: #3A4750;
    --text: #ffffff;
    --text-secondary: #8899A6;
    --accent: #81F0E5;
    --accent-hover: #5ED8CC;
    --accent-text: #1E262C;
    --secondary: #F0F757;
    --success: #81F0E5;
    --error: #ef4444;
    --warning: #F0F757;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
}

.container {
    max-width: 640px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.logo {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-top: 2rem;
}

.logo a {
    display: inline-block;
    text-decoration: none;
}

.logo img {
    height: 48px;
    width: auto;
}

.logo p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Dropzone */
.dropzone-wrap {
    position: relative;
    width: 248px;
    height: 248px;
    margin: 0 auto;
}

.capacity-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s;
}

.dropzone-wrap.has-files .capacity-ring {
    opacity: 1;
}

.capacity-ring-progress {
    transition: stroke-dashoffset 0.4s ease-out;
}

.dropzone {
    width: 240px;
    height: 240px;
    border: 2px dashed rgba(129, 240, 229, 0.35);
    border-radius: 50%;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: radial-gradient(circle at center, rgba(38, 48, 56, 0.9) 0%, rgba(30, 38, 44, 0.95) 100%);
    margin: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    box-sizing: border-box;
    box-shadow:
        0 0 15px rgba(240, 247, 87, 0.15),
        0 0 30px rgba(240, 247, 87, 0.08),
        inset 0 0 30px rgba(129, 240, 229, 0.06),
        inset 0 0 60px rgba(129, 240, 229, 0.03);
    position: relative;
}

.dropzone::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0%, rgba(240, 247, 87, 0.12) 25%, transparent 50%, rgba(129, 240, 229, 0.12) 75%, transparent 100%);
    z-index: -1;
    animation: dropzoneRotateGlow 6s linear infinite;
    filter: blur(8px);
}

@keyframes dropzoneRotateGlow {
    to { transform: rotate(360deg); }
}

.dropzone:hover,
.dropzone.dragover {
    border-color: rgba(129, 240, 229, 0.6);
    box-shadow:
        0 0 20px rgba(240, 247, 87, 0.25),
        0 0 40px rgba(240, 247, 87, 0.12),
        inset 0 0 40px rgba(129, 240, 229, 0.1),
        inset 0 0 80px rgba(129, 240, 229, 0.05);
}

.dropzone.ready {
    border-style: solid;
    border-color: rgba(129, 240, 229, 0.5);
}

.dropzone-icon {
    margin-bottom: 0.75rem;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.dropzone:hover .dropzone-icon {
    opacity: 0.7;
}

.dropzone.preparing .dropzone-icon {
    animation: preparePulse 1.5s ease-in-out infinite;
}

.dropzone.preparing h2::after {
    content: 'Forbereder fil...';
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--accent);
    margin-top: 0.4rem;
    animation: preparePulse 1.5s ease-in-out infinite;
}

@keyframes preparePulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.dropzone h2 {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.dropzone p {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.dropzone-icon img {
    width: 40px;
    height: auto;
}

/* Blocked file warning */
.blocked-warning {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 16px;
    background: rgba(255, 80, 80, 0.12);
    border: 1px solid rgba(255, 80, 80, 0.3);
    border-radius: 8px;
    color: #ff6b6b;
    font-size: 0.9rem;
    animation: warn-in 0.3s ease;
}
.blocked-warning strong { color: #fff; }
@keyframes warn-in {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* File list */
.file-list {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.file-list table {
    border-collapse: collapse;
    font-size: 0.8rem;
    color: var(--text-secondary);
    width: auto;
}

.file-list th {
    padding: 0.25rem 0.4rem;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: left;
    white-space: nowrap;
}

.file-list td {
    padding: 0.25rem 0.4rem;
    white-space: nowrap;
    vertical-align: middle;
}

.file-list td:last-child {
    text-align: right;
}

.file-list .btn-remove-file {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.2rem;
    display: inline-flex;
    align-items: center;
    opacity: 0.6;
    transition: opacity 0.15s;
    position: relative;
}

.file-list .btn-remove-file:hover {
    opacity: 1;
}

.file-list .btn-add-more {
    display: block;
    margin: 0.5rem auto 0;
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.75rem;
    padding: 0.35rem 1rem;
    cursor: pointer;
    transition: all 0.15s;
}

.file-list .btn-add-more:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Remove confirm popover */
.remove-popover {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem 0.65rem;
    white-space: nowrap;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    animation: popoverIn 0.15s ease-out;
}

@keyframes popoverIn {
    from { opacity: 0; transform: translateY(-50%) translateX(4px); }
    to { opacity: 1; transform: translateY(-50%) translateX(0); }
}

.remove-popover span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.remove-popover button {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.remove-popover .btn-confirm-yes {
    background: var(--error);
    color: white;
}

.remove-popover .btn-confirm-no {
    background: var(--bg-hover);
    color: var(--text-secondary);
}

/* Options */
.options {
    display: none;
    margin-top: 0.5rem;
    text-align: left;
}

.option-item {
    margin-bottom: 2rem;
    text-align: center;
}

.option-item label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Range slider */
.range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 340px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    display: block;
    margin: 0 auto;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--secondary);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 6px rgba(240, 247, 87, 0.4);
    margin-top: -13px;
}

.range-slider::-moz-range-thumb {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--secondary);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 6px rgba(240, 247, 87, 0.4);
}

.range-slider::-webkit-slider-runnable-track {
    background: linear-gradient(to right, var(--secondary) 0%, var(--secondary) var(--pct, 0%), var(--border) var(--pct, 0%), var(--border) 100%);
    height: 4px;
    border-radius: 2px;
}

.range-slider::-moz-range-track {
    background: var(--border);
    height: 4px;
    border-radius: 2px;
}

/* Password input */
.password-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    width: 340px;
    margin-left: auto;
    margin-right: auto;
}

.password-input-group input {
    flex: 1;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    color: var(--text);
    font-size: 16px;
    outline: none;
}

.password-input-group input:focus {
    border-color: var(--accent);
}

.btn-icon-lock {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: var(--secondary);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.15s;
    flex-shrink: 0;
}

.btn-icon-lock:hover {
    opacity: 0.85;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--accent-text);
    width: 100%;
    margin-top: 1.5rem;
    font-weight: 700;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-hover);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-danger {
    background: var(--error);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

/* Progress Circle */
.progress-container {
    display: none;
    margin-top: -1.1rem;
    text-align: center;
}

.progress-circle-wrap {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto 1.25rem;
    animation: ringPulseGlow 3s ease-in-out infinite;
}

@keyframes ringPulseGlow {
    0%, 100% {
        filter: drop-shadow(0 0 12px rgba(129, 240, 229, 0.3)) drop-shadow(0 0 24px rgba(129, 240, 229, 0.1));
    }
    33% {
        filter: drop-shadow(0 0 18px rgba(240, 247, 87, 0.35)) drop-shadow(0 0 30px rgba(240, 247, 87, 0.15));
    }
    66% {
        filter: drop-shadow(0 0 15px rgba(129, 240, 229, 0.35)) drop-shadow(0 0 28px rgba(129, 240, 229, 0.12));
    }
}

.progress-ring {
    width: 100%;
    height: 100%;
    transform: scaleX(-1);
}

.ring-progress,
.ring-glow {
    transition: stroke-dashoffset 0.4s ease-out;
}

.progress-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.progress-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
    z-index: 2;
}

.progress-pct {
    font-size: 3.5rem;
    font-weight: 200;
    color: var(--text);
    line-height: 1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.pct-symbol {
    font-size: 1.8rem;
    font-weight: 300;
    opacity: 0.7;
}

.progress-speed {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.progress-detail {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.7;
    margin-top: 0.15rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.btn-cancel {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.5rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-cancel:hover {
    border-color: var(--error);
    color: var(--error);
    background: rgba(239, 68, 68, 0.08);
}

.progress-container.processing .btn-cancel {
    display: none;
}

.progress-container.processing .progress-speed::after {
    content: 'Behandler...';
}

/* Security step indicator (scanning / encrypting) */
.security-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
}

.security-step-icon {
    width: 48px;
    height: 48px;
    animation: step-pulse 2s ease-in-out infinite;
}

.security-step-text {
    font-size: 0.95rem;
    color: #fff;
    font-weight: 400;
    white-space: nowrap;
}

.security-step-progress {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    min-height: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: -10px;
}

.security-step-progress .countdown-icon {
    height: 10px;
    width: auto;
}

@keyframes step-pulse {
    0%, 100% { opacity: 0.7; filter: drop-shadow(0 0 4px rgba(240, 247, 87, 0.3)); transform: scale(1); }
    50% { opacity: 1; filter: drop-shadow(0 0 14px rgba(240, 247, 87, 0.6)); transform: scale(1.06); }
}

/* Result */
.result {
    display: none;
    text-align: center;
    padding: 2rem 0;
}

.result-icon {
    margin-bottom: 0.75rem;
}

.result h2 {
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
}

.result-info {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

.share-link-group {
    display: flex;
    gap: 0;
    margin-bottom: 0.25rem;
    width: 340px;
    margin-left: auto;
    margin-right: auto;
}

.share-link-input-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
}

.share-link-group input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.75rem 2.75rem 0.75rem 0.75rem;
    color: var(--accent);
    font-size: 13px;
    outline: none;
    font-weight: 500;
    box-sizing: border-box;
}

.btn-icon-share {
    display: none;
    width: 50px;
    height: 42px;
    border-radius: 8px;
    background: var(--secondary);
    border: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: opacity 0.15s;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.btn-icon-share:hover {
    opacity: 0.85;
}

@media (pointer: coarse) {
    .btn-icon-share { display: inline-flex; }
}

.btn-icon-copy {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    display: inline-flex;
    align-items: center;
    opacity: 0.7;
    transition: opacity 0.15s;
}

.btn-icon-copy:hover {
    opacity: 1;
}

.copy-status {
    font-size: 0.75rem;
    color: var(--text-secondary);
    min-height: 1.2em;
    margin-bottom: 1rem;
}

/* Download page */
.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
}

.download-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.download-header h2 {
    font-size: 1.2rem;
    margin: 0;
}

.download-uploaded {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.download-table-head {
    display: flex;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.download-table-head span:first-child {
    flex: 1;
}

.download-table-head span:last-child {
    width: 100px;
    text-align: right;
    padding-right: 48px;
}

.download-file {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.download-file:last-child {
    border-bottom: none;
}

.btn-dl-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--secondary);
    flex-shrink: 0;
    transition: opacity 0.15s;
    text-decoration: none;
}

.btn-dl-icon:hover {
    opacity: 0.85;
}

.download-file .file-name {
    flex: 1;
    min-width: 0;
    word-break: break-all;
    font-size: 0.9rem;
}

.download-file .file-size {
    width: 100px;
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.download-expiry {
    text-align: center;
    padding: 1rem 0 0;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Password form */
.password-form {
    text-align: center;
    padding: 2rem 0;
}

.password-form h2 {
    margin-bottom: 0.5rem;
}

.password-form p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.password-input-group {
    display: flex;
    gap: 0.5rem;
    max-width: 360px;
    margin: 0 auto;
}

.password-input-group input {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: var(--text);
    font-size: 0.95rem;
    outline: none;
}

.password-input-group input:focus {
    border-color: var(--accent);
}

/* Error / Status */
.error-page {
    text-align: center;
    padding: 4rem 0;
}

.error-page h2 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.error-page p {
    color: var(--text-secondary);
}

.loading {
    text-align: center;
    padding: 4rem 0;
    color: var(--text-secondary);
}

/* Admin */
.login-form {
    max-width: 360px;
    margin: 2rem auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    color: var(--text);
    font-size: 0.9rem;
    outline: none;
}

.form-group input:focus {
    border-color: var(--accent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.uploads-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.uploads-table th {
    text-align: left;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.8rem;
}

.uploads-table td {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--border);
}

.uploads-table tr:hover td {
    background: var(--bg-hover);
}

.badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-active {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.badge-expired {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.error-msg {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--error);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: none;
}

.success-msg {
    background: rgba(129, 240, 229, 0.1);
    border: 1px solid rgba(129, 240, 229, 0.3);
    color: var(--success);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: none;
}

.admin-container {
    max-width: 900px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-secondary);
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    line-height: 1.4;
}
.footer-logo {
    width: 40px;
    height: auto;
    margin-top: 4px;
    opacity: 0.5;
    transition: opacity 0.2s;
}
.footer-logo:hover { opacity: 0.8; }

.sub-footer {
    text-align: center;
    padding: 0 0 1.5rem;
    color: var(--text-secondary);
    font-size: 0.65rem;
    opacity: 0.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    line-height: 1.4;
}

.sub-footer a {
    color: var(--text-secondary);
    text-decoration: none;
}

.sub-footer a:hover {
    text-decoration: underline;
}

.lang-switcher {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.lang-flag {
    height: 14px;
    width: auto;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.15s;
    border-radius: 2px;
}

.lang-flag:hover,
.lang-flag.active {
    opacity: 1;
}

/* Legal pages */
.legal-page {
    max-width: 700px;
}

.legal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.legal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.15s;
}

.legal-close img {
    height: 30px;
    width: auto;
    opacity: 0.4;
    transition: opacity 0.15s;
}

.legal-close:hover img {
    opacity: 0.8;
}

.legal-content h1 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.legal-content .legal-updated {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.legal-content h2 {
    font-size: 1.05rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--accent);
}

.legal-content h3 {
    font-size: 0.9rem;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.legal-content p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.legal-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0.75rem;
}

.legal-content ul li {
    font-size: 0.88rem;
    color: var(--text-secondary);
    padding: 0.3rem 0 0.3rem 1.25rem;
    position: relative;
    line-height: 1.6;
}

.legal-content ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--accent);
    opacity: 0.5;
}

.legal-content strong {
    color: var(--text);
    font-weight: 600;
}

@media (max-width: 640px) {
    .legal-content { padding: 1.5rem 1.25rem; }
    .legal-content h1 { font-size: 1.25rem; }
}

/* Save status */
.save-status {
    text-align: right;
    font-size: 0.8rem;
    margin-top: 0.75rem;
    min-height: 1.2em;
    transition: color 0.2s;
}

.save-status.saving {
    color: var(--text-secondary);
}

.save-status.saved {
    color: var(--success);
}

.save-status.error {
    color: var(--error);
}

/* Responsive */
@media (max-width: 640px) {
    .share-link-group,
    .range-slider,
    .password-input-group { width: 100%; }
    .container { padding: 1.25rem 1rem; }
    .logo { margin-bottom: 2rem; padding-top: 1.5rem; }
    .logo img { height: 40px; }
    .dropzone { width: 220px; height: 220px; padding: 1.25rem; }
    .dropzone-wrap { width: 228px; height: 228px; }
    .dropzone h2 { font-size: 0.8rem; }
    .result h2 { font-size: 1.1rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .admin-header { flex-direction: column; gap: 1rem; align-items: flex-start; }
    .uploads-table { font-size: 0.75rem; }
    .uploads-table th, .uploads-table td { padding: 0.5rem 0.25rem; }
    .download-card { padding: 1.25rem; }
    .footer { padding: 1.5rem 0; }
    .progress-circle-wrap { width: 240px; height: 240px; }
    .progress-pct { font-size: 2.8rem; }
    .pct-symbol { font-size: 1.4rem; }
    .progress-speed { font-size: 1rem; }
    .progress-detail { font-size: 0.65rem; }
    .file-list .btn-add-more { font-size: 0.85rem; padding: 0.5rem 1.25rem; }
    .file-list .btn-remove-file { padding: 0.4rem; }
    .file-list .btn-remove-file img { width: 14px; height: 14px; }
    .remove-popover { padding: 0.6rem 0.75rem; gap: 0.5rem; }
    .remove-popover span { font-size: 0.85rem; }
    .remove-popover button { font-size: 0.8rem; padding: 0.3rem 0.65rem; }
    .option-item label { font-size: 0.875rem; }
    .result-info { font-size: 1rem; }
    .copy-status { font-size: 0.875rem; }
    .save-status { font-size: 0.875rem; }
}

@media (max-width: 360px) {
    .container { padding: 1rem 0.75rem; }
    .logo img { height: 34px; }
    .dropzone { width: 200px; height: 200px; padding: 1rem; }
    .dropzone-wrap { width: 208px; height: 208px; }
    .option-group input, .option-group select { font-size: 0.85rem; padding: 0.5rem 0.6rem; }
    .progress-detail { font-size: 0.6rem; }
}
