/* ========================================
   Dumpplek.nl - Licht & Fris Design
   ======================================== */

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-bg: #f8f9fc;
    --color-surface: #ffffff;
    --color-surface-hover: #f3f4f8;
    --color-border: #e2e5ed;
    --color-border-light: #eef0f5;
    --color-text: #1a1d2e;
    --color-text-secondary: #4a5068;
    --color-text-muted: #8890a6;
    --color-primary: #6c5ce7;
    --color-primary-light: #a29bfe;
    --color-primary-bg: #f0eeff;
    --color-primary-hover: #5a4bd1;
    --color-success: #00b894;
    --color-success-bg: #e6f9f4;
    --color-danger: #e17055;
    --color-danger-bg: #fdf0ed;
    --color-danger-hover: #d35a3f;
    --color-warning: #fdcb6e;
    --color-gradient-start: #6c5ce7;
    --color-gradient-end: #a29bfe;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.04);
    --shadow-primary: 0 4px 14px rgba(108, 92, 231, 0.25);
    --transition: 0.2s ease;
    --container-width: 720px;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
        Arial, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-primary-hover);
}

img,
video {
    max-width: 100%;
    height: auto;
}

/* --- Layout --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.main {
    flex: 1;
    padding: 2.5rem 0;
}

/* --- Header --- */
.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border-light);
    padding: 0.875rem 0;
    box-shadow: var(--shadow-sm);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-size: 1.2rem;
    font-weight: 800;
    background: linear-gradient(
        135deg,
        var(--color-gradient-start),
        var(--color-gradient-end)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
}

.nav-brand:hover {
    opacity: 0.85;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.nav-links a {
    color: var(--color-text-secondary);
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.nav-links a:hover {
    color: var(--color-primary);
    background: var(--color-primary-bg);
}

.btn-link {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    font: inherit;
    font-size: 0.875rem;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.btn-link:hover {
    color: var(--color-primary);
    background: var(--color-primary-bg);
}

.inline-form {
    display: inline;
}

/* --- Footer --- */
.site-footer {
    border-top: 1px solid var(--color-border-light);
    padding: 2rem 0;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

/* --- Hero --- */
.hero {
    text-align: center;
    padding: 1.5rem 0 2rem;
}

.hero h1 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(
        135deg,
        var(--color-text) 0%,
        var(--color-text-secondary) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    max-width: 440px;
    margin: 0 auto;
    line-height: 1.5;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: var(--radius);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    gap: 0.4rem;
}

.btn-primary {
    background: linear-gradient(
        135deg,
        var(--color-gradient-start),
        var(--color-gradient-end)
    );
    color: #fff;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.35);
    color: #fff;
}

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-primary-light);
    color: var(--color-primary);
}

.btn-danger {
    background: var(--color-danger);
    color: #fff;
}

.btn-danger:hover {
    background: var(--color-danger-hover);
    color: #fff;
}

.btn-full {
    width: 100%;
}

.btn-small {
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--color-primary-bg);
    color: var(--color-primary);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
}

.btn-small:hover {
    background: var(--color-primary);
    color: #fff;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* --- Upload Form --- */
.upload-form {
    max-width: 100%;
}

.drop-zone {
    position: relative;
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-xl);
    padding: 3.5rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--color-surface);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.drop-zone:hover {
    border-color: var(--color-primary-light);
    background: var(--color-primary-bg);
    box-shadow: var(--shadow);
}

.drop-zone.drag-over {
    border-color: var(--color-primary);
    background: var(--color-primary-bg);
    transform: scale(1.01);
    box-shadow:
        var(--shadow-lg),
        0 0 0 4px rgba(108, 92, 231, 0.1);
}

.drop-zone-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: linear-gradient(
        135deg,
        var(--color-gradient-start),
        var(--color-gradient-end)
    );
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: var(--shadow-primary);
}

.drop-zone-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.drop-zone-hint {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.preview-image {
    max-height: 200px;
    max-width: 100%;
    border-radius: var(--radius-lg);
    object-fit: contain;
    box-shadow: var(--shadow);
}

.preview-info {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.upload-options {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    background: var(--color-surface);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
}

.upload-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    white-space: nowrap;
}

.upload-select {
    flex: 1;
    padding: 0.5rem 0.75rem;
    background: var(--color-bg);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font: inherit;
    font-size: 0.875rem;
    cursor: pointer;
    transition: border-color var(--transition);
}

.upload-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

/* --- Progress Bar --- */
.progress-container {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.progress-bar {
    flex: 1;
    height: 10px;
    background: var(--color-bg);
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid var(--color-border-light);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(
        90deg,
        var(--color-gradient-start),
        var(--color-gradient-end)
    );
    border-radius: 5px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    min-width: 3rem;
    text-align: right;
}

/* --- Flash Messages --- */
.flash {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.flash-success {
    background: var(--color-success-bg);
    color: #047857;
    border: 1px solid #a7f3d0;
}

.flash-error {
    background: var(--color-danger-bg);
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.flash-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 0.25rem;
    opacity: 0.6;
    transition: opacity var(--transition);
}

.flash-close:hover {
    opacity: 1;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- View Upload Page --- */
.view-upload {
    max-width: 100%;
}

.view-header {
    margin-bottom: 1.5rem;
}

.view-filename {
    font-size: 1.25rem;
    font-weight: 700;
    word-break: break-word;
    margin-bottom: 0.4rem;
    color: var(--color-text);
}

.view-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    color: var(--color-text-muted);
    font-size: 0.825rem;
}

.view-content {
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    box-shadow: var(--shadow);
}

.view-image {
    display: block;
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.view-video {
    display: block;
    width: 100%;
    max-height: 70vh;
}

.view-file-icon {
    padding: 3rem;
    text-align: center;
    color: var(--color-text-muted);
}

.file-icon-large {
    font-size: 3.5rem;
    margin-bottom: 0.75rem;
}

.view-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.delete-token-notice {
    background: var(--color-primary-bg);
    border: 1px solid rgba(108, 92, 231, 0.15);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-top: 1rem;
}

.delete-token-notice p strong {
    color: var(--color-primary);
}

.delete-token-notice code {
    display: block;
    background: var(--color-surface);
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.78rem;
    word-break: break-all;
    margin: 0.5rem 0;
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border-light);
}

.text-muted {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* --- Badges --- */
.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.badge-active {
    background: var(--color-success-bg);
    color: var(--color-success);
}

.badge-expired {
    background: var(--color-danger-bg);
    color: var(--color-danger);
}

/* --- Expired & Error Pages --- */
.expired-page,
.error-page {
    text-align: center;
    padding: 5rem 0;
}

.expired-icon,
.error-icon {
    font-size: 4rem;
    margin-bottom: 1.25rem;
    opacity: 0.8;
}

.expired-page h1,
.error-page h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.expired-page p,
.error-page p {
    color: var(--color-text-muted);
    margin-bottom: 1.75rem;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Auth Pages --- */
.auth-page {
    max-width: 400px;
    margin: 2rem auto;
}

.auth-page h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.auth-subtitle {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.auth-form {
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: 0.35rem;
}

.form-input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    background: var(--color-bg);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font: inherit;
    font-size: 0.9rem;
    transition: all var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
    background: var(--color-surface);
}

.form-hint {
    display: block;
    font-size: 0.78rem;
    color: var(--color-text-muted);
    margin-top: 0.3rem;
}

.auth-switch {
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* --- Profile Page --- */
.profile-page {
    max-width: 100%;
}

.profile-header {
    margin-bottom: 2rem;
}

.profile-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.profile-subtitle {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.upload-card {
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.25s ease;
    text-decoration: none;
    color: var(--color-text);
    box-shadow: var(--shadow-sm);
}

.upload-card:hover {
    border-color: var(--color-primary-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--color-text);
}

.upload-card--expired {
    opacity: 0.55;
}

.upload-card--expired:hover {
    opacity: 0.75;
}

.upload-card-thumb {
    aspect-ratio: 4/3;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.upload-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-card-icon {
    font-size: 2.5rem;
    color: var(--color-text-muted);
    opacity: 0.5;
}

.upload-card-info {
    padding: 0.75rem 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.upload-card-name {
    font-size: 0.825rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-card-meta {
    font-size: 0.725rem;
    color: var(--color-text-muted);
}

/* --- Empty State --- */
.empty-state {
    text-align: center;
    padding: 5rem 0;
    color: var(--color-text-muted);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

/* --- Admin --- */
.admin-page {
    max-width: 100%;
}

.admin-header {
    margin-bottom: 2rem;
}

.admin-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.admin-nav {
    display: flex;
    gap: 0.25rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius);
    padding: 0.25rem;
    width: fit-content;
}

.admin-nav-link {
    padding: 0.4rem 0.85rem;
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: all var(--transition);
}

.admin-nav-link:hover {
    color: var(--color-primary);
    background: var(--color-primary-bg);
}

.admin-nav-link.active {
    background: var(--color-primary);
    color: #fff;
}

.admin-nav-link.active:hover {
    background: var(--color-primary-hover);
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.2rem;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.admin-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.admin-count {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.admin-table-wrap {
    overflow-x: auto;
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.admin-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    border-bottom: 1px solid var(--color-border-light);
    background: var(--color-bg);
    white-space: nowrap;
}

.admin-table td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--color-border-light);
    color: var(--color-text);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background: var(--color-surface-hover);
}

.row-muted td {
    opacity: 0.5;
}

.ip-code {
    font-size: 0.75rem;
    background: var(--color-bg);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    color: var(--color-text-muted);
}

.btn-small-danger {
    background: var(--color-danger-bg);
    color: var(--color-danger);
    border: none;
    padding: 0.3rem 0.6rem;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
}

.btn-small-danger:hover {
    background: var(--color-danger);
    color: #fff;
}

.badge-admin {
    background: var(--color-primary-bg);
    color: var(--color-primary);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.pagination-info {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* --- SEO Content --- */
.seo-content {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border-light);
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.seo-content h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.seo-content h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    margin-top: 1.25rem;
    margin-bottom: 0.35rem;
}

.seo-content p {
    margin-bottom: 0.5rem;
}

.seo-content ol {
    margin: 0.5rem 0 0.5rem 1.25rem;
}

.seo-content li {
    margin-bottom: 0.25rem;
}

/* --- Footer Links --- */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

.footer-links a {
    color: var(--color-text-muted);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--color-primary);
}

/* --- Upload Result Screen --- */
.upload-result {
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.result-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    max-width: 520px;
    margin: 0 auto;
}

.result-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: var(--color-success-bg);
    color: var(--color-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

@keyframes popIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.result-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.result-subtitle {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.result-preview {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.result-link-group {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--color-primary);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
}

.result-link-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    background: var(--color-bg);
    color: var(--color-text);
    font: inherit;
    font-size: 0.9rem;
    outline: none;
    min-width: 0;
}

.result-copy-btn {
    border-radius: 0 !important;
    box-shadow: none !important;
    white-space: nowrap;
    padding: 0.75rem 1.25rem;
}

.result-copy-btn.copied {
    background: var(--color-success);
}

.result-delete-section {
    background: var(--color-bg);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.result-delete-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
}

.result-delete-code {
    display: block;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.5rem 0.75rem;
    font-size: 0.72rem;
    word-break: break-all;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.result-delete-section .btn-small {
    font-size: 0.75rem;
}

.result-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.result-actions .btn {
    flex: 1;
}

/* --- 404 Page --- */
.error-page--404 {
    padding: 3.5rem 0 4rem;
}

.error-illustration {
    margin-bottom: 1.5rem;
}

.error-illustration-circle {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        var(--color-gradient-start),
        var(--color-gradient-end)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-primary);
    animation: float 3s ease-in-out infinite;
}

.error-illustration-text {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.error-page--404 h1 {
    font-size: 1.75rem;
}

.error-page--404 > p {
    margin-bottom: 0;
}

.error-suggestions {
    margin: 2rem auto 2.5rem;
    max-width: 380px;
}

.error-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    font-style: italic;
}

.error-divider::before,
.error-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

.error-cta-text {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.btn-lg {
    padding: 0.8rem 1.75rem;
    font-size: 1rem;
}

.btn-icon {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
}

.error-tips {
    max-width: 380px;
    margin: 0 auto;
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    text-align: left;
    box-shadow: var(--shadow-sm);
}

.error-tips-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
}

.error-tips ul {
    list-style: none;
    padding: 0;
}

.error-tips li {
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.825rem;
    color: var(--color-text-muted);
    margin-bottom: 0.35rem;
    line-height: 1.5;
}

.error-tips li::before {
    content: "\2022";
    position: absolute;
    left: 0;
    color: var(--color-primary-light);
    font-weight: 700;
}

.error-tips li:last-child {
    margin-bottom: 0;
}

/* --- Responsive --- */
@media (max-width: 640px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .drop-zone {
        padding: 2.5rem 1.25rem;
    }

    .drop-zone-icon {
        width: 52px;
        height: 52px;
        font-size: 1.25rem;
    }

    .view-actions {
        flex-direction: column;
    }

    .view-actions .btn,
    .view-actions .inline-form {
        width: 100%;
    }

    .view-actions .inline-form .btn {
        width: 100%;
    }

    .upload-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.75rem;
    }

    .nav-links {
        gap: 0.25rem;
        font-size: 0.825rem;
    }

    .nav-links a,
    .btn-link {
        padding: 0.35rem 0.5rem;
    }

    .auth-form {
        padding: 1.25rem;
    }

    .container {
        padding: 0 1rem;
    }
}
