/* ═══════════════════════════════════════════════════
   COMPONENTS - InvisHosting Shared Components
   ═══════════════════════════════════════════════════ */

/* ─── Header ─── */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 15, 26, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(55, 65, 81, 0.5);
    padding: 0 24px;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-ghost {
    width: 36px;
    height: 36px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.logo-text span:first-child { color: var(--blue-500); }
.logo-text span:last-child { color: var(--text-primary); }

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

.nav a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: var(--radius-xs);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
}
.nav a:hover,
.nav a.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}
.nav a.active {
    color: var(--blue-400);
}

.nav .nav-security {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-security-icon {
    width: 14px;
    height: 14px;
    stroke: var(--blue-400);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.nav .nav-security:hover .nav-security-icon {
    transform: scale(1.12);
}

.nav .nav-security.active .nav-security-icon {
    stroke: var(--text-primary);
}

.auth-btns {
    display: flex;
    gap: 8px;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}
.user-info span {
    font-weight: 500;
    color: var(--text-primary);
}
.user-info a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: var(--radius-xs);
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.user-info a:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-xs);
}
.mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
}
.mobile-toggle svg {
    width: 24px;
    height: 24px;
}

/* ─── Footer ─── */
.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 32px 24px;
    background: rgba(17, 24, 39, 0.5);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copy {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-links a {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
}
.footer-links a:hover {
    color: var(--text-primary);
}

/* ─── Cards ─── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--blue-500), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    background: var(--bg-card-hover);
}
.card:hover::before {
    opacity: 1;
}

/* ─── Buttons ─── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-xs);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    line-height: 1.4;
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
    box-shadow: 0 4px 20px var(--blue-glow);
    transform: translateY(-1px);
    color: #fff;
}
.btn-primary:active {
    transform: translateY(0);
}

.btn-primary-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: var(--radius-xs);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--blue-600);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}
.btn-primary-sm:hover {
    background: var(--blue-500);
    box-shadow: 0 0 20px var(--blue-glow);
    color: #fff;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-xs);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.4;
}
.btn-ghost:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-xs);
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    background: var(--danger);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}
.btn-danger:hover {
    background: #dc2626;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.25);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: var(--radius-sm);
}

/* ─── Forms ─── */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font-family);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
.form-input:focus,
.form-select:focus {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.form-input::placeholder {
    color: var(--text-muted);
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239ca3af' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
}
.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--blue-600);
    cursor: pointer;
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

/* ─── Data Tables ─── */
.data-table {
    width: 100%;
    border-collapse: collapse;
}
.data-table th,
.data-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.data-table th {
    background: rgba(10, 15, 26, 0.5);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.data-table td {
    color: var(--text-secondary);
    font-size: 14px;
}
.data-table tr:hover td {
    background: rgba(59, 130, 246, 0.04);
}
.data-table tr:last-child td {
    border-bottom: none;
}

/* ─── Modals ─── */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 24px;
}
.modal-overlay.active,
.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.modal-content h2 {
    margin-bottom: 16px;
}
.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.modal-close {
    position: absolute;
    top: 16px; right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    transition: color var(--transition);
}
.modal-close:hover {
    color: var(--text-primary);
}

/* Contact modals (footer) */
.contact-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 24px;
}

.contact-modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.contact-modal-content h2 {
    color: var(--text-primary);
    margin-bottom: 16px;
}
.contact-modal-content p {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.contact-close {
    position: absolute;
    top: 16px; right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    transition: color var(--transition);
}
.contact-close:hover {
    color: var(--text-primary);
}

.contact-email {
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    padding: 12px 16px;
    color: var(--blue-400);
    font-weight: 500;
    margin: 16px 0;
    font-size: 15px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius-xs);
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    background: var(--blue-600);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    margin-right: 8px;
}
.contact-btn:hover {
    background: var(--blue-500);
}
.contact-btn-secondary {
    background: var(--border);
    color: var(--text-secondary);
}
.contact-btn-secondary:hover {
    background: var(--bg-elevated);
}

/* ─── Feature Pills ─── */
.features-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(31, 41, 55, 0.6);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 13px;
    color: var(--text-secondary);
}
.feature-pill svg {
    width: 16px; height: 16px;
    color: var(--blue-400);
    flex-shrink: 0;
}

/* ─── Hero ─── */
.hero {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 80px 24px 40px;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--blue-400);
    margin-bottom: 24px;
}
.hero-badge svg {
    width: 14px; height: 14px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 16px;
}
.hero h1 .gradient {
    background: linear-gradient(135deg, var(--blue-400), var(--blue-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 16px;
}

/* ─── Upload Card ─── */
.upload-section {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

.upload-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    position: relative;
    overflow: hidden;
}
.upload-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--blue-500), transparent);
}

.dropzone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(17, 24, 39, 0.4);
    margin-bottom: 24px;
}
.dropzone:hover,
.dropzone.dragover {
    border-color: var(--blue-500);
    background: rgba(59, 130, 246, 0.04);
}

.dropzone-icon {
    width: 56px; height: 56px;
    margin: 0 auto 16px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dropzone-icon svg {
    width: 28px; height: 28px;
    color: var(--blue-400);
}

.dropzone h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.dropzone h3 span {
    color: var(--blue-400);
}
.dropzone p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* File info card (shown after file selected) */
.file-info-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}
.file-info-card .file-icon {
    width: 40px; height: 40px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.file-info-card .file-icon svg {
    width: 20px; height: 20px;
    color: var(--blue-400);
}
.file-info-card .file-text {
    flex: 1;
    min-width: 0;
}
.file-info-card .file-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.file-info-card .file-size {
    font-size: 12px;
    color: var(--text-muted);
}
.file-info-card .file-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
}
.file-info-card .file-remove:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* ─── Toggle Switch ─── */
.toggle-track {
    width: 36px; height: 20px;
    background: var(--border);
    border-radius: 100px;
    position: relative;
    transition: all var(--transition);
    cursor: pointer;
    flex-shrink: 0;
}
.toggle-track::after {
    content: '';
    position: absolute;
    top: 2px; left: 2px;
    width: 16px; height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: all var(--transition);
}

.toggle-track.active,
.temp-toggle.active .toggle-track {
    background: var(--blue-600);
}
.toggle-track.active::after,
.temp-toggle.active .toggle-track::after {
    left: 18px;
}

.temp-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
}

/* ─── Upload Options ─── */
.upload-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.duration-select {
    padding: 8px 12px;
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text-secondary);
    font-size: 13px;
    outline: none;
    font-family: var(--font-family);
}
.duration-select:focus {
    border-color: var(--blue-500);
}

/* ─── Upload Button ─── */
.btn-upload {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    font-family: var(--font-family);
}
.btn-upload:hover {
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
    box-shadow: 0 4px 24px var(--blue-glow);
    transform: translateY(-1px);
}
.btn-upload:active {
    transform: translateY(0);
}
.btn-upload:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ─── Progress Bar ─── */
.progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--blue-600), var(--blue-400));
    border-radius: 100px;
    transition: width 0.3s;
}

/* Indeterminate progress bar */
.progress-bar-indeterminate {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    overflow: hidden;
    position: relative;
}
.progress-bar-indeterminate::after {
    content: '';
    position: absolute;
    top: 0; left: -50%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, var(--blue-500), transparent);
    animation: indeterminate 1.5s ease-in-out infinite;
}
@keyframes indeterminate {
    0% { left: -50%; }
    100% { left: 100%; }
}

/* ─── Announcement Banner ─── */
.announcement-banner {
    background: rgba(59, 130, 246, 0.1);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    padding: 10px 24px;
    font-size: 14px;
    color: var(--blue-400);
    position: relative;
    z-index: 1;
}
.announcement-banner .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.announcement-icon {
    font-size: 16px;
}

/* ─── Warning / Error Banners ─── */
.banner-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-xs);
    padding: 14px 18px;
    color: var(--warning);
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.banner-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-xs);
    padding: 14px 18px;
    color: var(--danger);
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.banner-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-xs);
    padding: 14px 18px;
    color: var(--success);
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ─── Upload success block (post-upload on homepage) ─── */
.upload-success {
    margin-top: 20px;
    padding: 18px 20px;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius);
    color: var(--text-primary);
}
.upload-success-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}
.upload-success-icon {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.upload-success-header strong { display: block; font-size: 15px; margin-bottom: 2px; }
.upload-success-header p { margin: 0; font-size: 13px; color: var(--text-muted); }
.upload-success-link { color: #60a5fa; font-weight: 600; text-decoration: none; }
.upload-success-link:hover { text-decoration: underline; }

.upload-token-box {
    margin-top: 12px;
    padding: 14px 16px;
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-xs);
}
.upload-token-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fbbf24;
    margin-bottom: 8px;
}
.upload-token-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.upload-token {
    font-family: 'SFMono-Regular', 'Consolas', 'Menlo', monospace;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 6px;
    color: #fde68a;
    user-select: all;
}
.upload-token-copy {
    padding: 8px 14px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 6px;
    color: #fde68a;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.upload-token-copy:hover { background: rgba(245, 158, 11, 0.25); }
.upload-token-copy.is-copied { background: rgba(16, 185, 129, 0.2); border-color: rgba(16, 185, 129, 0.4); color: #6ee7b7; }
.upload-token-hint {
    margin: 10px 0 0;
    font-size: 12px;
    line-height: 1.55;
    color: var(--text-muted);
}
.upload-token-hint strong { color: #fbbf24; }

.upload-share-box {
    margin-top: 12px;
    padding: 14px 16px;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: var(--radius-xs);
}
.upload-share-intro strong { display: block; font-size: 14px; margin-bottom: 4px; }
.upload-share-intro p { margin: 0 0 10px; font-size: 12px; color: var(--text-muted); }
.upload-share-intro a { color: #60a5fa; }
.upload-share-toggle {
    background: transparent;
    border: 1px solid rgba(96, 165, 250, 0.4);
    color: #60a5fa;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.upload-share-toggle:hover { background: rgba(59, 130, 246, 0.1); }
.upload-share-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}
.upload-share-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-muted); }
.upload-share-form label em { color: var(--text-muted); font-style: normal; font-size: 11px; }
.upload-share-form input,
.upload-share-form textarea {
    padding: 8px 10px;
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
}
.upload-share-form input:focus,
.upload-share-form textarea:focus { outline: none; border-color: rgba(96, 165, 250, 0.6); }
.upload-share-actions { display: flex; gap: 8px; }
.btn-share-confirm {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
    border: 0;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.btn-share-cancel {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
}
.upload-share-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    padding: 6px 10px;
    color: #fca5a5;
    font-size: 12px;
}
.upload-share-success {
    margin-top: 12px;
    font-size: 13px;
    color: #34d399;
    font-weight: 600;
}
.upload-share-success a { color: #60a5fa; text-decoration: none; font-weight: 600; }
.upload-share-success a:hover { text-decoration: underline; }

.banner-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-xs);
    padding: 14px 18px;
    color: var(--blue-400);
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ─── Stats Grid ─── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

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

.stat-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}
.stat-number .blue {
    color: var(--blue-400);
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ─── Section Label ─── */
.section-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* ─── Recent Items ─── */
.recent-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.recent-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    cursor: pointer;
    text-decoration: none;
}
.recent-item:hover {
    border-color: rgba(59, 130, 246, 0.3);
    background: var(--bg-card-hover);
}

.recent-icon {
    width: 40px; height: 40px;
    background: rgba(59, 130, 246, 0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.recent-icon svg {
    width: 18px; height: 18px;
    color: var(--blue-400);
}

.recent-meta {
    flex: 1;
    min-width: 0;
}
.recent-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.recent-details {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    gap: 12px;
    margin-top: 2px;
}

.recent-id {
    font-size: 13px;
    color: var(--blue-400);
    font-weight: 500;
    flex-shrink: 0;
}

/* ─── Ad Sections ─── */
.ad-section {
    max-width: 800px;
    margin: 0 auto 48px;
    padding: 0 24px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.ad-placeholder {
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 24px;
    color: var(--text-muted);
    font-size: 13px;
}

/* ─── reCAPTCHA ─── */
.recaptcha-placeholder {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

/* ─── Pagination ─── */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
}
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text-secondary);
    font-size: 14px;
    text-decoration: none;
    transition: all var(--transition);
}
.pagination a:hover {
    border-color: var(--blue-500);
    color: var(--text-primary);
}
.pagination .active {
    background: var(--blue-600);
    border-color: var(--blue-600);
    color: #fff;
}
.pagination .disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* ─── Badges ─── */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-xs);
    font-size: 12px;
    font-weight: 500;
}
.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}
.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}
.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}
.badge-info {
    background: rgba(59, 130, 246, 0.15);
    color: var(--blue-400);
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .header-inner {
        height: 56px;
    }
    .nav a {
        padding: 6px 10px;
        font-size: 13px;
    }
    .auth-btns {
        gap: 6px;
    }
    .hero {
        padding: 48px 16px 24px;
    }
    .hero h1 {
        font-size: 32px;
    }
    .hero p {
        font-size: 16px;
    }
    .upload-card {
        padding: 24px;
    }
    .features-row {
        gap: 8px;
    }
    .feature-pill {
        font-size: 12px;
        padding: 6px 12px;
    }
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .stat-card {
        padding: 16px;
    }
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
    .footer-links {
        justify-content: center;
    }
    .dropzone {
        padding: 32px 16px;
    }
    .mobile-toggle {
        display: block;
    }
}

@media (max-width: 480px) {
    .nav {
        display: none;
    }
    .nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 15, 26, 0.95);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        padding: 12px;
    }
    .hero h1 {
        font-size: 26px;
    }
    .upload-options {
        flex-direction: column;
        align-items: flex-start;
    }
}
