﻿/* ==========================================================
   FILEIVO — app.css  (SINGLE SOURCE OF TRUTH)
   Dark hero landing + Auth + Account + Uploads + Legal
   ========================================================== */

/* =========================
   0) RESET + TOKENS
   ========================= */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Hicbir element gorsel focus outline almamali (tabindex="-1" body ile birlikte calisir) */
* {
    outline: none !important;
    box-shadow: none !important;
}
    /* Yalnizca klavye kullanicilari icin */
    *:focus-visible {
        outline: 2px solid rgba(165,180,252,.4) !important;
        outline-offset: 2px !important;
        box-shadow: none !important;
    }

fieldset {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

legend {
    display: none !important;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

html, body {
    font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0f0a28; /* dark default — landing ile aynı */
}

:root {
    /* Brand */
    --brand: #4F46E5;
    --brand2: #7C3AED;
    /* Dark alpha whites */
    --w60: rgba(255,255,255,.60);
    --w40: rgba(255,255,255,.40);
    --w20: rgba(255,255,255,.20);
    --w12: rgba(255,255,255,.12);
    --w08: rgba(255,255,255,.08);
    /* Light theme */
    --text: #0f172a;
    --muted: #64748b;
    --muted2: #94a3b8;
    --border: rgba(226,232,240,.90);
    --bg: #ffffff;
    /* Radius */
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 20px;
    --r-pill: 999px;
    /* Container */
    --container-max: 1100px;
    --gutter: 18px;
    /* Ease */
    --ease: .18s ease;
}

/* =========================
   1) TOPBAR  (dark — LandingLayout)
   ========================= */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 60px;
    background: rgba(10,7,32,.70);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--w08);
}

.topbar-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.topbar-logo {
    height: 34px;
    width: 34px;
    border-radius: 10px;
}

.topbar-brandtext {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.topbar-name {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .08em;
    color: #fff;
}

.topbar-tagline {
    font-size: 10px;
    color: var(--w40);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-lang {
    display: flex;
    gap: 2px;
    background: var(--w08);
    border: 1px solid var(--w12);
    border-radius: 8px;
    padding: 3px;
}

.lang-btn {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 5px;
    border: none;
    background: transparent;
    color: var(--w40);
    cursor: pointer;
    letter-spacing: .05em;
    transition: var(--ease);
    font-family: inherit;
}

    .lang-btn.active {
        background: var(--w20);
        color: #fff;
    }

    .lang-btn:hover:not(.active) {
        color: var(--w60);
    }

.nav-link {
    font-size: 13px;
    color: var(--w60);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: var(--r-sm);
    transition: var(--ease);
    font-weight: 500;
}

    .nav-link:hover, .nav-link.active {
        color: #fff;
    }

    .nav-link:hover {
        background: var(--w08);
    }

.btn-primary-sm {
    font-size: 13px;
    font-weight: 700;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: var(--r-sm);
    padding: 8px 18px;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--ease);
    display: inline-flex;
    align-items: center;
}

    .btn-primary-sm:hover {
        background: var(--brand2);
    }

.btn-ghost {
    font-size: 13px;
    color: var(--w60);
    background: transparent;
    border: 1px solid var(--w20);
    border-radius: var(--r-sm);
    padding: 7px 16px;
    cursor: pointer;
    transition: var(--ease);
    font-family: inherit;
}

    .btn-ghost:hover {
        background: var(--w08);
        color: #fff;
        border-color: var(--w40);
    }

.user-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 4px 12px 4px 4px;
    border-radius: var(--r-pill);
    background: var(--w08);
    border: 1px solid var(--w12);
    text-decoration: none;
    transition: background var(--ease);
}

    .user-pill:hover {
        background: var(--w12);
    }

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-name {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* layout-main: topbar yüksekliği kadar itmek YOK,
   landing-wrapper kendi padding-top'unu yönetiyor */
.layout-main {
    padding-top: 0;
    min-height: 100vh;
}

/* =========================
   2) TOPBAR2  (glass light — LandingLayout2/diğer sayfalar)
   ========================= */
.topbar2 {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,.72);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.topbar2-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 10px var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.topbar2-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
}

.topbar2-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.topbar2-brandtext {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.topbar2-name {
    font-size: .9rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text);
    font-weight: 900;
}

.topbar2-tagline {
    font-size: .78rem;
    color: var(--muted);
}

.topbar2-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar2-lang {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border-radius: var(--r-pill);
    background: rgba(248,250,252,.95);
    border: 1px solid var(--border);
}

    .topbar2-lang a {
        text-decoration: none;
        font-weight: 800;
        font-size: 12px;
        padding: 6px 10px;
        border-radius: var(--r-pill);
        color: var(--muted);
    }

        .topbar2-lang a.active {
            background: var(--text);
            color: #fff;
        }

.user-pill2 {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: var(--r-pill);
    text-decoration: none;
    background: rgba(248,250,252,.95);
    border: 1px solid var(--border);
    color: var(--text);
    max-width: 260px;
}

.user-avatar2 {
    width: 22px;
    height: 22px;
    border-radius: var(--r-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
    color: #fff;
    background: var(--text);
}

.user-name2 {
    font-weight: 900;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-link2 {
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
    color: var(--text);
    padding: 8px 10px;
    border-radius: 12px;
}

    .nav-link2:hover {
        background: rgba(15,23,42,.06);
    }

.btn-ghost2 {
    background: transparent;
    border: 1px solid rgba(148,163,184,.6);
    color: var(--text);
    padding: 8px 12px;
    border-radius: 12px;
    font-weight: 900;
    cursor: pointer;
}

    .btn-ghost2:hover {
        background: rgba(15,23,42,.06);
    }

.btn-primary-sm2 {
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    color: #fff;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 12px;
    font-weight: 900;
}

.layout-main2 {
    padding-top: 18px;
}

/* =========================
   3) LANDING / HOME (dark hero tam ekran)
   ========================= */

/* Tüm sayfa kaplayan wrapper */
.landing-wrapper {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(145deg, #0f0a28 0%, #1a0f45 25%, #0e2054 58%, #071530 100%);
    position: relative;
    overflow: hidden;
    /* fixed topbar için üst padding */
    padding-top: 60px;
}

/* Noktalı arka plan */
.bg-dots {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 30px 30px;
}

.bg-glow1 {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(79,70,229,.18) 0%, transparent 65%);
    top: -200px;
    right: -160px;
}

.bg-glow2 {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(59,130,246,.12) 0%, transparent 65%);
    bottom: 80px;
    left: -140px;
}

/* HERO */
.hero-section {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 2rem 0;
    width: 100%;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #a5b4fc;
    background: rgba(165,180,252,.10);
    border: 1px solid rgba(165,180,252,.25);
    border-radius: 20px;
    padding: 5px 14px;
    margin-bottom: 22px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

    .hero-eyebrow::before {
        content: '';
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #a5b4fc;
        animation: blink 2.2s ease-in-out infinite;
    }

@keyframes blink {
    0%,100% {
        opacity: 1;
        transform: scale(1)
    }

    50% {
        opacity: .4;
        transform: scale(.65)
    }
}

.hero-h1 {
    font-size: clamp(28px, 4.5vw, 52px);
    font-weight: 800;
    color: #fff;
    line-height: 1.12;
    letter-spacing: -.03em;
    margin-bottom: 14px;
    white-space: pre-line;
}

    .hero-h1 em {
        color: #a5b4fc;
        font-style: normal;
    }

.hero-p {
    font-size: 16px;
    color: var(--w60);
    max-width: 430px;
    line-height: 1.65;
    margin-bottom: 48px;
}

/* UPLOAD ORBİT */
.upload-orbit-wrap {
    position: relative;
    width: 340px;
    height: 340px;
    margin: 0 auto 28px;
}

.orbit-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px dashed rgba(165,180,252,.18);
    animation: orb-spin 24s linear infinite;
}

.orbit-ring-2 {
    position: absolute;
    inset: 22px;
    border-radius: 50%;
    border: 1px dashed rgba(255,255,255,.07);
    animation: orb-spin 15s linear infinite reverse;
}

@keyframes orb-spin {
    to {
        transform: rotate(360deg);
    }
}

.upload-circle {
    position: absolute;
    inset: 46px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    border: 2px solid rgba(255,255,255,.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--ease), border-color var(--ease), transform .22s ease;
    backdrop-filter: blur(6px);
}

    .upload-circle:hover {
        background: rgba(255,255,255,.10);
        border-color: rgba(165,180,252,.55);
        transform: scale(1.025);
    }

    .upload-circle.drag-over {
        background: rgba(79,70,229,.22);
        border-color: #a5b4fc;
    }

.upload-plus-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--brand);
    border: 3px solid rgba(255,255,255,.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    box-shadow: 0 0 36px rgba(79,70,229,.55);
    transition: background var(--ease), transform .22s ease;
}

.upload-circle:hover .upload-plus-btn {
    background: var(--brand2);
    transform: scale(1.1);
}

.upload-plus-icon {
    color: #fff;
    font-size: 30px;
    line-height: 1;
    margin-top: -2px;
    font-weight: 300;
    user-select: none;
}

.upload-circle-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.upload-circle-or {
    font-size: 12px;
    color: var(--w40);
    margin-bottom: 2px;
}

.upload-circle-hint {
    font-size: 11px;
    color: var(--w40);
}



.orbit-badge {
    position: absolute;
    z-index: 2;
    background: rgba(255,255,255,.10);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,.88);
    white-space: nowrap;
}

.badge-enc {
    top: 14px;
    right: 6px;
}

.badge-eu {
    bottom: 38px;
    left: -2px;
}

.badge-gdpr {
    top: 116px;
    right: -16px;
}

/* ALERTS */
.alert {
    border-radius: var(--r-md);
    padding: 12px 16px;
    font-size: 13px;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto 16px;
    position: relative;
    z-index: 1;
}

    .alert.success {
        background: rgba(22,163,74,.15);
        border: 1px solid rgba(22,163,74,.3);
        color: #86efac;
    }

    .alert.error {
        background: rgba(220,38,38,.15);
        border: 1px solid rgba(220,38,38,.3);
        color: #fca5a5;
    }

/* PENDING FILES */
.pending-panel {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto 28px;
}

.pending-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.pending-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--w60);
}

.pending-badge {
    font-size: 11px;
    font-weight: 700;
    background: rgba(165,180,252,.15);
    color: #a5b4fc;
    border: 1px solid rgba(165,180,252,.25);
    border-radius: 20px;
    padding: 2px 10px;
}

.pending-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
}

    .pending-list li {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: rgba(255,255,255,.06);
        border: 1px solid rgba(255,255,255,.10);
        border-radius: var(--r-sm);
        padding: 9px 12px;
    }

.pending-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

    .pending-info .name {
        font-size: 13px;
        color: rgba(255,255,255,.85);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .pending-info .size {
        font-size: 11px;
        color: var(--w40);
        flex-shrink: 0;
    }

.pending-remove-btn {
    background: none;
    border: none;
    color: var(--w40);
    cursor: pointer;
    font-size: 14px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color var(--ease), background var(--ease);
}

    .pending-remove-btn:hover {
        color: #f87171;
        background: rgba(248,113,113,.12);
    }

.pending-empty {
    font-size: 13px;
    color: var(--w40);
    text-align: center;
    padding: 4px 0;
}

.clear-btn-inline {
    font-size: 12px;
    color: var(--w40);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--ease);
}

    .clear-btn-inline:hover {
        color: #f87171;
    }

/* SETTINGS BAR */
.upload-settings-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--r-lg);
    padding: 14px 22px;
    max-width: 600px;
    margin: 0 auto 28px;
    position: relative;
    z-index: 1;
}

.setting-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.setting-lbl {
    font-size: 11px;
    font-weight: 700;
    color: var(--w40);
    text-transform: uppercase;
    letter-spacing: .05em;
    white-space: nowrap;
}

.expiry-select {
    font-size: 13px;
    color: #fff;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: var(--r-sm);
    padding: 6px 10px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: border-color var(--ease);
}

    .expiry-select:hover {
        border-color: rgba(255,255,255,.35);
    }

    .expiry-select:focus {
        outline: none;
        border-color: #a5b4fc;
    }

    .expiry-select option {
        background: #1a1145;
        color: #fff;
    }

.bar-divider {
    width: 1px;
    height: 26px;
    background: rgba(255,255,255,.12);
    flex-shrink: 0;
}

/* Upload button */
.btn-primary,
.pending-upload-btn {
    background: linear-gradient(135deg, var(--brand), var(--brand2));
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 24px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(79,70,229,.4);
    transition: opacity var(--ease), transform var(--ease);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .btn-primary:hover:not(:disabled),
    .pending-upload-btn:hover:not(:disabled) {
        opacity: .88;
        transform: translateY(-1px);
    }

    .btn-primary:disabled,
    .pending-upload-btn:disabled {
        opacity: .3;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

/* SHARE CARD */
.share-card {
    background: rgba(79,70,229,.12);
    border: 1px solid rgba(165,180,252,.3);
    border-radius: var(--r-lg);
    padding: 20px 24px;
    max-width: 600px;
    margin: 0 auto 28px;
    position: relative;
    z-index: 1;
}

    .share-card h4 {
        font-size: 14px;
        font-weight: 700;
        color: #a5b4fc;
        margin-bottom: 4px;
    }

.share-desc {
    font-size: 12px;
    color: var(--w60);
    margin-bottom: 14px;
}

.share-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 10px;
    padding: 4px 4px 4px 14px;
}

.share-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 13px;
    color: #fff;
    font-family: inherit;
    outline: none;
    min-width: 0;
}

.share-copy-btn {
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
}

    .share-copy-btn:hover {
        background: var(--brand2);
    }

.share-meta {
    font-size: 11px;
    color: var(--w40);
    margin-top: 10px;
}

/* PASSWORD MODAL */
.password-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.72);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    padding: 1.5rem;
    backdrop-filter: blur(4px);
}

.password-modal {
    background: #1a1145;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--r-xl);
    padding: 28px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 24px 64px rgba(0,0,0,.55);
}

    .password-modal h4 {
        font-size: 17px;
        font-weight: 800;
        color: #fff;
        margin-bottom: 8px;
    }

.password-modal-text {
    font-size: 13px;
    color: var(--w60);
    margin-bottom: 18px;
    line-height: 1.55;
}

.password-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.08);
    border-radius: 9px;
    font-size: 14px;
    color: #fff;
    font-family: inherit;
    outline: none;
    margin-bottom: 8px;
    transition: border-color var(--ease);
}

    .password-input::placeholder {
        color: var(--w40);
    }

    .password-input:focus {
        border-color: #a5b4fc;
    }

    .password-input.full {
        width: 100%;
    }

.password-modal-hint {
    font-size: 11px;
    color: var(--w40);
    display: block;
    margin-bottom: 20px;
}

.password-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

    .password-modal-actions .link-btn {
        font-size: 13px;
        color: var(--w60);
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px 10px;
        font-family: inherit;
        transition: color var(--ease);
    }

        .password-modal-actions .link-btn:hover {
            color: #fff;
        }

    .password-modal-actions .btn-primary {
        padding: 9px 20px;
        font-size: 13px;
        font-weight: 700;
        border-radius: 9px;
    }

/* LINK BTN  (global) */
.link-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* STATS */
.stats-section {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,.10);
    padding: 40px 0 80px;
    display: grid;
    grid-template-columns: repeat(3,1fr);
}

.stat-item {
    text-align: center;
    padding: 0 28px;
}

    .stat-item + .stat-item {
        border-left: 1px solid rgba(255,255,255,.10);
    }

.stat-number {
    display: block;
    font-size: 34px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.04em;
    margin-bottom: 6px;
    min-height: 44px;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 12px;
    color: rgba(255,255,255,.45);
    font-weight: 500;
    letter-spacing: .02em;
}

/* HOW IT WORKS */
.info-section-wrap {
    background: #fff;
    padding: 72px 2rem 80px;
    position: relative;
    z-index: 1;
}

.info-section-inner {
    max-width: 900px;
    margin: 0 auto;
}

.info-section-title {
    font-size: 28px;
    font-weight: 800;
    color: #0f0a28;
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: -.02em;
}

.info-section-sub {
    font-size: 15px;
    color: #666;
    text-align: center;
    margin-bottom: 44px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
}

.info-card {
    background: #F8F7FF;
    border: 1px solid #E8E4FF;
    border-radius: var(--r-lg);
    padding: 24px 22px;
    position: relative;
    overflow: hidden;
}

    .info-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--brand), var(--brand2));
    }

.info-step-num {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand), var(--brand2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 14px;
}

.info-card h4 {
    font-size: 15px;
    font-weight: 800;
    color: #0f0a28;
    margin-bottom: 8px;
}

.info-card p {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}

/* FOOTER */
.landing-footer {
    background: #070413;
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 20px 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.footer-copy {
    font-size: 12px;
    color: var(--w40);
}

.footer-links {
    display: flex;
    gap: 20px;
}

    .footer-links a {
        font-size: 12px;
        color: var(--w40);
        text-decoration: none;
        transition: color var(--ease);
    }

        .footer-links a:hover {
            color: #fff;
        }

/* =========================
   4) AUTH PAGES
   ========================= */
.auth-page-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
    background: radial-gradient(circle at top, #e0f2fe 0, #f8fafc 45%, #e5e7eb 100%);
}

.auth-card {
    width: 100%;
    max-width: 960px;
    display: grid;
    grid-template-columns: minmax(0,1.05fr) minmax(0,1fr);
    border-radius: 22px;
    border: 1px solid rgba(15,23,42,.10);
    background: rgba(255,255,255,.88);
    box-shadow: 0 22px 55px rgba(15,23,42,.10);
    overflow: hidden;
}

.auth-card-narrow {
    max-width: 720px;
    grid-template-columns: 1fr;
}

.auth-left {
    padding: 26px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(248,250,252,.85));
    border-right: 1px solid rgba(15,23,42,.08);
}

.auth-right {
    padding: 26px;
    background: rgba(255,255,255,.92);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .auth-right.only {
        padding: 28px 26px;
    }

.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.auth-logo-circle {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    box-shadow: 0 14px 30px rgba(37,99,235,.22);
}

.auth-logo-img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    border-radius: 14px;
    border: 1px solid rgba(15,23,42,.08);
    background: rgba(255,255,255,.9);
    box-shadow: 0 14px 30px rgba(15,23,42,.08);
    padding: 6px;
}

.auth-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.auth-brand-name {
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #0f172a;
}

.auth-brand-tagline {
    font-size: .86rem;
    font-weight: 700;
    color: rgba(15,23,42,.60);
}

.auth-title {
    font-size: 1.55rem;
    font-weight: 900;
    color: #0f172a;
    margin: 6px 0 8px;
}

.auth-subtitle {
    color: rgba(15,23,42,.65);
    font-weight: 650;
    line-height: 1.45;
    margin: 0 0 14px;
}

.auth-bullets {
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    gap: .35rem;
    color: rgba(15,23,42,.72);
    font-weight: 700;
}

.auth-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 14px;
}

    .auth-trust-row span {
        display: inline-flex;
        align-items: center;
        gap: .35rem;
        padding: .35rem .6rem;
        border-radius: var(--r-pill);
        border: 1px solid rgba(226,232,240,.95);
        background: rgba(248,250,252,.75);
        color: rgba(15,23,42,.72);
        font-weight: 800;
        font-size: .82rem;
    }

.auth-alert {
    padding: .7rem .85rem;
    border-radius: 14px;
    font-weight: 800;
    border: 1px solid rgba(15,23,42,.10);
    margin-bottom: .75rem;
}

    .auth-alert.error {
        color: #991b1b;
        background: rgba(248,113,113,.12);
        border-color: rgba(248,113,113,.25);
    }

    .auth-alert.success {
        color: #065f46;
        background: rgba(52,211,153,.12);
        border-color: rgba(52,211,153,.25);
    }

.form-grid {
    display: grid;
    gap: .75rem;
    margin-top: .35rem;
}

    .form-grid.single {
        gap: .65rem;
    }

.form-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

    .form-field.full {
        grid-column: 1/-1;
    }

    .form-field label {
        font-weight: 900;
        color: rgba(15,23,42,.78);
        margin-bottom: .35rem;
    }

.text-input {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(226,232,240,.95);
    background: rgba(248,250,252,.75);
    padding: .62rem .8rem;
    font-weight: 750;
    color: #0f172a;
    font-family: inherit;
}

    .text-input:focus {
        outline: none;
        border-color: rgba(14,165,233,.75);
        box-shadow: 0 0 0 3px rgba(14,165,233,.14);
    }

.auth-submit {
    width: 100%;
    margin-top: .9rem;
    border-radius: 14px;
    padding: .7rem .9rem;
    font-weight: 900;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: #fff;
    box-shadow: 0 16px 34px rgba(37,99,235,.18);
    transition: transform .1s ease, box-shadow .1s ease, opacity .1s ease;
    font-family: inherit;
}

    .auth-submit:hover {
        transform: translateY(-1px);
        box-shadow: 0 20px 44px rgba(37,99,235,.22);
    }

    .auth-submit:disabled {
        opacity: .7;
        cursor: not-allowed;
        transform: none;
    }

.small-btn {
    width: auto;
    padding: .55rem .85rem;
    border-radius: 12px;
    margin-top: .6rem;
}

.auth-footer-text {
    margin-top: .85rem;
    text-align: center;
    font-weight: 750;
    color: rgba(15,23,42,.68);
}

    .auth-footer-text a {
        color: rgba(37,99,235,.95);
        text-decoration: none;
        font-weight: 900;
    }

        .auth-footer-text a:hover {
            text-decoration: underline;
        }

    .auth-footer-text.small {
        margin-top: .65rem;
        font-size: .92rem;
    }

.auth-back-home {
    display: inline-flex;
    justify-content: center;
    color: rgba(15,23,42,.55);
    font-size: .88rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-actions-row {
    display: grid;
    gap: .55rem;
    margin-top: 1rem;
}

.auth-mini-hint {
    margin-top: 6px;
    font-size: .86rem;
    color: rgba(15,23,42,.58);
    font-weight: 700;
    line-height: 1.25;
}

.password-hint {
    margin-top: 10px;
    color: rgba(15,23,42,.55);
    font-weight: 750;
    font-size: .88rem;
}

.validation-errors, .auth-validation-summary {
    margin: .6rem 0 .2rem;
    padding: .65rem .75rem;
    border-radius: 14px;
    border: 1px solid rgba(248,113,113,.30);
    background: rgba(248,113,113,.10);
    color: #991b1b;
    font-weight: 800;
    font-size: .92rem;
}

/* KVKK */
.kvkk-card {
    border-radius: 16px;
    border: 1px solid rgba(15,23,42,.10);
    background: rgba(248,250,252,.70);
    padding: 12px;
}

.kvkk-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.kvkk-box {
    margin-top: 4px;
    width: 18px;
    height: 18px;
}

.kvkk-text {
    color: rgba(15,23,42,.78);
    font-weight: 750;
    line-height: 1.35;
    font-size: .92rem;
}

.kvkk-link {
    margin-left: 6px;
    font-weight: 900;
    text-decoration: underline;
    color: #1d4ed8;
}

.kvkk-error {
    margin-top: 8px;
    color: #b91c1c;
    font-weight: 850;
    font-size: .9rem;
}

.consent-box {
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #555;
    cursor: pointer;
}

    .checkbox-row input {
        margin-top: 2px;
    }

/* Social buttons */
.social-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1.5px solid #E0E0EC;
    border-radius: var(--r-sm);
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    color: #333;
    transition: background var(--ease), border-color var(--ease);
}

    .social-btn:hover {
        background: #F8F8FC;
        border-color: #C0C0D0;
    }

.social-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

    .social-divider::before, .social-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: #E8E8F0;
    }

    .social-divider span {
        font-size: 12px;
        color: #aaa;
        white-space: nowrap;
    }

/* =========================
   5) ACCOUNT PAGE
   ========================= */
.account-page .auth-card:not(.auth-card-narrow) {
    max-width: 1280px;
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
}

.account-right {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.account-section {
    border-radius: 18px;
    border: 1px solid rgba(15,23,42,.10);
    background: rgba(255,255,255,.78);
    backdrop-filter: blur(12px);
    box-shadow: 0 14px 34px rgba(15,23,42,.06);
    padding: 16px;
    margin-bottom: 0;
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

    .account-section:hover {
        transform: translateY(-1px);
        box-shadow: 0 18px 44px rgba(15,23,42,.09);
        border-color: rgba(14,165,233,.22);
    }

.account-section-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

    .account-section-header.small {
        flex-direction: column;
        gap: 4px;
    }

.account-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 950;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    box-shadow: 0 14px 30px rgba(37,99,235,.18);
}

.account-section-title {
    font-size: 1.08rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0;
}

.account-section-subtitle {
    margin: 2px 0 0;
    color: rgba(15,23,42,.62);
    font-weight: 700;
    line-height: 1.35;
    font-size: .92rem;
}

.account-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

.summary-item {
    border-radius: 16px;
    border: 1px solid rgba(15,23,42,.08);
    background: rgba(248,250,252,.72);
    padding: 12px;
}

.summary-label {
    display: block;
    font-size: .78rem;
    font-weight: 900;
    color: rgba(15,23,42,.55);
    margin-bottom: 4px;
}

.summary-value {
    font-weight: 950;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =========================
   6) UPLOADS PAGE
   ========================= */
.uploads-page .auth-card:not(.auth-card-narrow) {
    max-width: 1280px;
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
}

.uploads-toolbar {
    margin-bottom: 16px;
}

.uploads-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.uploads-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: .55rem .75rem;
    border-radius: var(--r-pill);
    border: 1px solid rgba(15,23,42,.10);
    background: rgba(255,255,255,.78);
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(15,23,42,.06);
    min-width: 130px;
}

.uploads-pill-muted {
    background: rgba(248,250,252,.65);
    border-color: rgba(15,23,42,.08);
}

.uploads-pill-e2ee {
    border-color: rgba(37,99,235,.22);
    background: rgba(37,99,235,.07);
}

.pill-label {
    color: rgba(15,23,42,.55);
    font-size: .78rem;
    letter-spacing: .02em;
}

.pill-value {
    color: #0f172a;
    font-size: .95rem;
}

.uploads-list {
    display: grid;
    gap: 12px;
}

.upload-item {
    border-radius: 18px;
    border: 1px solid rgba(15,23,42,.10);
    background: rgba(255,255,255,.82);
    padding: 14px;
    box-shadow: 0 14px 32px rgba(15,23,42,.06);
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

    .upload-item:hover {
        transform: translateY(-1px);
        box-shadow: 0 18px 44px rgba(15,23,42,.09);
        border-color: rgba(14,165,233,.25);
    }

.upload-item-expired {
    opacity: .85;
    border-color: rgba(248,113,113,.35);
    background: rgba(248,113,113,.07);
}

.upload-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.upload-main {
    min-width: 0;
}

.upload-name {
    font-weight: 950;
    color: #0f172a;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 6px;
}

.upload-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: rgba(15,23,42,.62);
    font-weight: 700;
    font-size: .86rem;
}

.upload-expired-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: var(--r-pill);
    border: 1px solid rgba(248,113,113,.35);
    background: rgba(248,113,113,.14);
    color: #991b1b;
    font-weight: 900;
    font-size: .78rem;
}

.upload-encrypted-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: var(--r-pill);
    border: 1px solid rgba(37,99,235,.22);
    background: rgba(37,99,235,.10);
    color: #1d4ed8;
    font-weight: 900;
    font-size: .78rem;
}

.upload-stats-inline {
    display: grid;
    gap: 3px;
    text-align: right;
    white-space: nowrap;
}

.upload-downloads-label {
    font-size: .72rem;
    letter-spacing: .08em;
    font-weight: 950;
    color: rgba(15,23,42,.55);
}

.upload-downloads-value {
    font-size: 1.05rem;
    font-weight: 950;
    color: #0f172a;
}

.upload-downloads-max {
    font-size: .9rem;
    font-weight: 900;
    color: rgba(15,23,42,.55);
}

.upload-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.upload-link-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 100%;
    min-width: 0;
    border-radius: 14px;
    border: 1px solid rgba(226,232,240,.95);
    background: rgba(248,250,252,.75);
    padding: 4px 4px 4px 10px;
}

.upload-share-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 12px;
    color: rgba(15,23,42,.82);
    font-family: monospace;
    outline: none;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-actions .link-btn {
    padding: .55rem .75rem;
    border-radius: 14px;
    border: 1px solid rgba(15,23,42,.10);
    background: rgba(255,255,255,.70);
    color: rgba(15,23,42,.92);
    font-weight: 900;
    text-decoration: none;
    transition: background var(--ease), transform var(--ease);
}

    .upload-actions .link-btn:hover {
        background: rgba(248,250,252,.95);
        transform: translateY(-1px);
    }

.danger-link {
    border-color: rgba(248,113,113,.30) !important;
    background: rgba(248,113,113,.08) !important;
    color: #b91c1c !important;
}

/* =========================
   7) SECURE DOWNLOAD  /f-secure
   ========================= */
.secure-download-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
    background: radial-gradient(circle at top, #e0f2fe 0, #f8fafc 45%, #e5e7eb 100%);
}

.secure-download-card {
    width: 100%;
    max-width: 980px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 18px;
    box-shadow: 0 22px 55px rgba(15,23,42,.10);
    padding: 22px;
}

.secure-header {
    padding: 6px 6px 14px;
    border-bottom: 1px solid rgba(15,23,42,.08);
    margin-bottom: 18px;
}

.secure-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.secure-logo-img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(15,23,42,.10);
    background: #fff;
}

.secure-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-name {
    font-weight: 950;
    letter-spacing: .5px;
    color: #0f172a;
    font-size: 1.06rem;
}

.brand-tagline {
    font-weight: 700;
    font-size: .86rem;
    color: rgba(15,23,42,.55);
}

.secure-title {
    margin: 10px 0 6px;
    font-size: 1.55rem;
    font-weight: 950;
    color: #0f172a;
}

.secure-subtitle {
    margin: 0 0 14px;
    color: rgba(15,23,42,.75);
    font-weight: 700;
    line-height: 1.35;
}

.badge-lock {
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    border: 1px solid rgba(15,23,42,.10);
    background: rgba(255,255,255,.78);
    font-weight: 900;
    font-size: .85rem;
    color: #0f172a;
}

.secure-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.summary-chip {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(15,23,42,.10);
    background: rgba(248,250,252,.75);
    min-width: 170px;
}

.summary-chip-lock {
    border-color: rgba(29,78,216,.18);
    background: rgba(219,234,254,.55);
}

.secure-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
    font-weight: 800;
    color: rgba(15,23,42,.62);
    font-size: .92rem;
}

.secure-loading {
    padding: 28px 12px;
    text-align: center;
    color: rgba(15,23,42,.70);
    font-weight: 800;
}

.loading-spinner {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 4px solid rgba(15,23,42,.12);
    border-top-color: rgba(29,78,216,.70);
    margin: 0 auto 12px;
    animation: fileivoSpin .9s linear infinite;
}

@keyframes fileivoSpin {
    to {
        transform: rotate(360deg);
    }
}

.secure-error-panel {
    margin: 10px 0 8px;
    padding: 18px 16px;
    border-radius: 18px;
    border: 1px solid rgba(185,28,28,.20);
    background: rgba(254,226,226,.55);
    color: #7f1d1d;
}

.secure-error-expired {
    border-color: rgba(234,179,8,.22);
    background: rgba(254,249,195,.60);
    color: #713f12;
}

.secure-error-icon {
    font-size: 1.55rem;
    margin-bottom: 8px;
}

.secure-error-title {
    margin: 0 0 6px;
    font-weight: 950;
    color: inherit;
    font-size: 1.18rem;
}

.secure-error-text {
    margin: 0 0 14px;
    font-weight: 750;
    line-height: 1.45;
    opacity: .95;
}

.secure-error-btn {
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 900;
}

.password-gate {
    padding: 8px 6px;
}

.password-gate-text {
    margin: 0 0 14px;
    color: rgba(15,23,42,.75);
    font-weight: 800;
    line-height: 1.45;
}

.password-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

    .password-row label {
        font-weight: 900;
        color: rgba(15,23,42,.80);
    }

    .password-row small {
        color: rgba(15,23,42,.55);
        font-weight: 700;
        line-height: 1.25;
    }

.file-list-panel {
    padding: 6px;
}

.file-list-modern {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.file-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(15,23,42,.10);
    background: rgba(248,250,252,.75);
}

.file-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.file-name {
    font-weight: 950;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-meta {
    font-weight: 800;
    color: rgba(15,23,42,.58);
    font-size: .90rem;
}

.icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(15,23,42,.12);
    background: rgba(255,255,255,.90);
    cursor: pointer;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: .12s ease;
}

    .icon-btn:hover {
        transform: translateY(-1px);
    }

.secure-actions-bottom {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.secure-footer {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(15,23,42,.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.secure-footer-copy {
    font-weight: 850;
    color: rgba(15,23,42,.55);
}

.secure-footer-home {
    font-weight: 950;
}

/* =========================
   8) LEGAL PAGES
   ========================= */
.legal-page {
    padding: 32px 16px;
    display: flex;
    justify-content: center;
    background: radial-gradient(900px 420px at 50% -120px, rgba(14,165,233,.12), transparent 60%), linear-gradient(#ffffff, #f8fafc);
}

.legal-card {
    max-width: 920px;
    width: 100%;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 10px 28px rgba(15,23,42,.08);
}

    .legal-card h1 {
        margin: 0 0 12px;
        font-weight: 900;
    }

    .legal-card h2 {
        margin: 20px 0 8px;
        font-size: 1.05rem;
        font-weight: 900;
    }

    .legal-card p, .legal-card li {
        line-height: 1.65;
        color: #334155;
    }

    .legal-card a {
        color: #0ea5e9;
        text-decoration: underline;
        font-weight: 800;
    }

/* =========================
   9) UTILS
   ========================= */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.mt-2 {
    margin-top: .5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.text-danger {
    color: #b91c1c;
    font-weight: 850;
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
    border-radius: 14px;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

#main-content:focus {
    outline: none;
}

/* =========================
   10) RESPONSIVE
   ========================= */
@media (max-width: 820px) {
    .topbar2-inner {
        flex-wrap: wrap;
        justify-content: center;
    }

    .topbar2-right {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 680px) {
    .hero-section {
        padding: 64px 1.5rem 0;
    }

    .upload-orbit-wrap {
        width: 280px;
        height: 280px;
    }

    .stats-section {
        grid-template-columns: 1fr;
        padding: 24px 2rem 48px;
    }

    .stat-item + .stat-item {
        border-left: none;
        border-top: 1px solid rgba(255,255,255,.08);
        padding-top: 16px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .auth-card {
        grid-template-columns: 1fr;
    }

    .auth-left {
        border-right: none;
        border-bottom: 1px solid rgba(15,23,42,.08);
    }

    .badge-enc, .badge-eu, .badge-gdpr {
        display: none;
    }

    .upload-settings-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .bar-divider {
        width: 100%;
        height: 1px;
    }

    .topbar-tagline {
        display: none;
    }

    .account-page .auth-card, .uploads-page .auth-card {
        grid-template-columns: 1fr;
    }

    .account-summary-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   SECURE DOWNLOAD PAGE — dark hero
   ========================= */
.dl-wrapper {
    min-height: 100vh;
    background: linear-gradient(145deg,#0f0a28 0%,#1a0f45 25%,#0e2054 58%,#071530 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 1.5rem 60px;
}

    .dl-wrapper .bg-dots {
        position: absolute;
        inset: 0;
        pointer-events: none;
        z-index: 0;
        background-image: radial-gradient(rgba(255,255,255,.04) 1px,transparent 1px);
        background-size: 30px 30px;
    }

    .dl-wrapper .bg-glow1 {
        position: absolute;
        width: 600px;
        height: 600px;
        border-radius: 50%;
        pointer-events: none;
        background: radial-gradient(circle,rgba(79,70,229,.18) 0%,transparent 65%);
        top: -180px;
        right: -120px;
    }

    .dl-wrapper .bg-glow2 {
        position: absolute;
        width: 400px;
        height: 400px;
        border-radius: 50%;
        pointer-events: none;
        background: radial-gradient(circle,rgba(59,130,246,.12) 0%,transparent 65%);
        bottom: 60px;
        left: -100px;
    }

.dl-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 680px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 20px;
    overflow: hidden;
}

/* Header */
.dl-card-header {
    padding: 28px 28px 22px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.dl-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.dl-brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: contain;
}

.dl-brand-name {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    letter-spacing: .08em;
}

.dl-brand-tag {
    font-size: 10px;
    color: rgba(255,255,255,.4);
}

.dl-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}

.dl-subtitle {
    font-size: 13px;
    color: rgba(255,255,255,.55);
    margin-bottom: 16px;
    line-height: 1.5;
}

    .dl-subtitle strong {
        color: #fff;
    }

.dl-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dl-chip {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,.7);
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 20px;
    padding: 4px 12px;
}

.dl-chip-lock {
    background: rgba(79,70,229,.2);
    border-color: rgba(165,180,252,.3);
    color: #a5b4fc;
}

/* Body */
.dl-card-body {
    padding: 24px 28px;
}

/* Loading */
.dl-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 0;
    color: rgba(255,255,255,.6);
    font-size: 14px;
}

.dl-spinner {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,.12);
    border-top-color: rgba(79,70,229,.8);
    animation: dl-spin .9s linear infinite;
}

@keyframes dl-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Error */
.dl-error {
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(220,38,38,.3);
    background: rgba(220,38,38,.1);
    text-align: center;
}

.dl-error-expired {
    border-color: rgba(234,179,8,.3);
    background: rgba(234,179,8,.1);
}

.dl-error-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.dl-error-title {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.dl-error-text {
    font-size: 13px;
    color: rgba(255,255,255,.6);
    line-height: 1.5;
    margin-bottom: 18px;
}

/* Password gate */
.dl-pw-gate {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px 0;
}

.dl-pw-icon {
    font-size: 40px;
    margin-bottom: 14px;
}

.dl-pw-text {
    font-size: 14px;
    color: rgba(255,255,255,.65);
    line-height: 1.55;
    margin-bottom: 20px;
    max-width: 440px;
}

    .dl-pw-text strong {
        color: #fff;
    }

.dl-pw-field {
    width: 100%;
    max-width: 420px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .dl-pw-field label {
        font-size: 12px;
        font-weight: 600;
        color: rgba(255,255,255,.5);
        text-align: left;
    }

.dl-pw-input {
    width: 100%;
    padding: 11px 14px;
    background: rgba(255,255,255,.08);
    border: 1.5px solid rgba(255,255,255,.18);
    border-radius: 10px;
    font-size: 14px;
    color: #fff;
    font-family: inherit;
    outline: none;
    transition: .15s ease;
}

    .dl-pw-input::placeholder {
        color: rgba(255,255,255,.35);
    }

    .dl-pw-input:focus {
        border-color: #a5b4fc;
    }

.dl-pw-hint {
    font-size: 11px;
    color: rgba(255,255,255,.35);
    text-align: left;
}

.dl-pw-field.inline {
    margin-top: 16px;
    max-width: 100%;
}

/* File list */
.dl-file-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.dl-file-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    padding: 12px 14px;
    transition: background .15s ease, border-color .15s ease;
}

    .dl-file-row:hover {
        background: rgba(255,255,255,.08);
        border-color: rgba(165,180,252,.25);
    }

.dl-file-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.dl-file-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    flex-shrink: 0;
    background: rgba(79,70,229,.2);
    border: 1px solid rgba(165,180,252,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.dl-file-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dl-file-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dl-file-size {
    font-size: 11px;
    color: rgba(255,255,255,.4);
}

.dl-file-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    flex-shrink: 0;
    background: rgba(79,70,229,.25);
    border: 1px solid rgba(165,180,252,.25);
    color: #a5b4fc;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, transform .15s ease;
}

    .dl-file-btn:hover {
        background: rgba(79,70,229,.45);
        transform: translateY(-1px);
    }

/* Action bar */
.dl-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    padding: 14px 16px;
}

.dl-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

    .dl-trust span {
        font-size: 11px;
        color: rgba(255,255,255,.4);
    }

/* Primary button */
.dl-btn-primary {
    background: linear-gradient(135deg,#4F46E5,#7C3AED);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(79,70,229,.4);
    transition: opacity .15s ease, transform .15s ease;
}

    .dl-btn-primary:hover:not(:disabled) {
        opacity: .88;
        transform: translateY(-1px);
    }

    .dl-btn-primary:disabled {
        opacity: .35;
        cursor: not-allowed;
        transform: none;
    }

/* Alert */
.dl-alert-error {
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    background: rgba(220,38,38,.15);
    border: 1px solid rgba(220,38,38,.3);
    color: #fca5a5;
    margin-bottom: 14px;
}

/* Footer */
.dl-card-footer {
    padding: 16px 28px;
    border-top: 1px solid rgba(255,255,255,.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dl-footer-copy {
    font-size: 12px;
    color: rgba(255,255,255,.3);
}

.dl-footer-home {
    font-size: 12px;
    color: rgba(165,180,252,.7);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: color .15s ease;
}

    .dl-footer-home:hover {
        color: #a5b4fc;
    }

@media (max-width:640px) {
    .dl-wrapper {
        padding: 70px 1rem 40px;
    }

    .dl-card-header, .dl-card-body {
        padding: 20px 18px;
    }

    .dl-card-footer {
        padding: 14px 18px;
    }

    .dl-action-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .dl-btn-primary {
        width: 100%;
        text-align: center;
    }
}

/* =========================
   REGISTER PAGE — dark hero
   ========================= */
.reg-wrapper {
    min-height: 100vh;
    background: linear-gradient(145deg,#0f0a28 0%,#1a0f45 25%,#0e2054 58%,#071530 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 1.5rem 60px;
}

    .reg-wrapper .bg-dots {
        position: absolute;
        inset: 0;
        pointer-events: none;
        z-index: 0;
        background-image: radial-gradient(rgba(255,255,255,.04) 1px,transparent 1px);
        background-size: 30px 30px;
    }

    .reg-wrapper .bg-glow1 {
        position: absolute;
        width: 600px;
        height: 600px;
        border-radius: 50%;
        pointer-events: none;
        background: radial-gradient(circle,rgba(79,70,229,.18) 0%,transparent 65%);
        top: -200px;
        right: -150px;
    }

    .reg-wrapper .bg-glow2 {
        position: absolute;
        width: 400px;
        height: 400px;
        border-radius: 50%;
        pointer-events: none;
        background: radial-gradient(circle,rgba(59,130,246,.10) 0%,transparent 65%);
        bottom: 60px;
        left: -120px;
    }

.reg-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 900px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 22px;
    overflow: hidden;
}

/* Left */
.reg-left {
    padding: 36px 32px;
    border-right: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.03);
    display: flex;
    flex-direction: column;
}

.reg-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.reg-brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    object-fit: contain;
}

.reg-brand-name {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    letter-spacing: .08em;
}

.reg-brand-tag {
    font-size: 10px;
    color: rgba(255,255,255,.38);
}

.reg-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: -.02em;
}

.reg-sub {
    font-size: 13px;
    color: rgba(255,255,255,.5);
    line-height: 1.6;
    margin-bottom: 24px;
}

.reg-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .reg-bullets li {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        font-size: 13px;
        color: rgba(255,255,255,.65);
        line-height: 1.45;
    }

.reg-bullet-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    flex-shrink: 0;
    margin-top: 1px;
    background: rgba(165,180,252,.12);
    border: 1px solid rgba(165,180,252,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

/* Right */
.reg-right {
    padding: 32px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.reg-alert {
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 14px;
}

.reg-alert-error {
    background: rgba(220,38,38,.15);
    border: 1px solid rgba(220,38,38,.3);
    color: #fca5a5;
}

.reg-alert-success {
    background: rgba(22,163,74,.15);
    border: 1px solid rgba(22,163,74,.3);
    color: #86efac;
}

.reg-social-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.reg-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 12px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 10px;
    color: rgba(255,255,255,.75);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s ease;
}

    .reg-social-btn:hover {
        background: rgba(255,255,255,.12);
    }

.reg-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

    .reg-divider::before, .reg-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: rgba(255,255,255,.1);
    }

    .reg-divider span {
        font-size: 11px;
        color: rgba(255,255,255,.35);
        white-space: nowrap;
    }

.reg-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.reg-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

    .reg-field label {
        font-size: 10px;
        font-weight: 700;
        color: rgba(255,255,255,.4);
        letter-spacing: .04em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.reg-input {
    width: 100%;
    padding: 9px 12px;
    background: rgba(255,255,255,.07);
    border: 1.5px solid rgba(255,255,255,.14);
    border-radius: 9px;
    font-size: 13px;
    color: #fff;
    font-family: inherit;
    outline: none;
    transition: border-color .15s ease;
}

    .reg-input::placeholder {
        color: rgba(255,255,255,.28);
    }

    .reg-input:focus {
        border-color: #a5b4fc;
    }

.reg-consent {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.reg-check-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}

    .reg-check-row input {
        margin-top: 3px;
        flex-shrink: 0;
        accent-color: #a5b4fc;
    }

    .reg-check-row span {
        font-size: 11px;
        color: rgba(255,255,255,.45);
        line-height: 1.45;
    }

.reg-submit {
    width: 100%;
    padding: 11px;
    background: linear-gradient(135deg,#4F46E5,#7C3AED);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 4px 20px rgba(79,70,229,.4);
    margin-bottom: 14px;
    transition: opacity .15s ease, transform .15s ease;
}

    .reg-submit:hover:not(:disabled) {
        opacity: .88;
        transform: translateY(-1px);
    }

    .reg-submit:disabled {
        opacity: .35;
        cursor: not-allowed;
        transform: none;
    }

.reg-footer-text {
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,.38);
}

    .reg-footer-text a {
        color: #a5b4fc;
        text-decoration: none;
        font-weight: 600;
    }

        .reg-footer-text a:hover {
            text-decoration: underline;
        }

@media (max-width:700px) {
    .reg-card {
        grid-template-columns: 1fr;
    }

    .reg-left {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }

    .reg-form-grid {
        grid-template-columns: 1fr;
    }

    .reg-wrapper {
        padding: 70px 1rem 40px;
    }
}

/* Register — ValidationMessage */
.reg-field .validation-message {
    font-size: 11px;
    color: #fca5a5;
    margin-top: 3px;
}

/* =========================
   ACCOUNT PAGE — dark hero
   ========================= */
.acc-wrapper {
    min-height: 100vh;
    background: linear-gradient(145deg,#0f0a28 0%,#1a0f45 25%,#0e2054 58%,#071530 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 1.5rem 60px;
}

    .acc-wrapper .bg-dots {
        position: absolute;
        inset: 0;
        pointer-events: none;
        z-index: 0;
        background-image: radial-gradient(rgba(255,255,255,.04) 1px,transparent 1px);
        background-size: 30px 30px;
    }

    .acc-wrapper .bg-glow1 {
        position: absolute;
        width: 600px;
        height: 600px;
        border-radius: 50%;
        pointer-events: none;
        background: radial-gradient(circle,rgba(79,70,229,.18) 0%,transparent 65%);
        top: -200px;
        right: -150px;
    }

    .acc-wrapper .bg-glow2 {
        position: absolute;
        width: 400px;
        height: 400px;
        border-radius: 50%;
        pointer-events: none;
        background: radial-gradient(circle,rgba(59,130,246,.10) 0%,transparent 65%);
        bottom: 60px;
        left: -120px;
    }

.acc-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 940px;
    display: grid;
    grid-template-columns: 260px 1fr;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 22px;
    overflow: hidden;
}

.acc-card-narrow {
    max-width: 480px;
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
    border-radius: 22px;
}

/* Left */
.acc-left {
    padding: 32px 28px;
    border-right: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.03);
    display: flex;
    flex-direction: column;
}

.acc-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.acc-brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: contain;
}

.acc-brand-name {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    letter-spacing: .08em;
}

.acc-brand-tag {
    font-size: 10px;
    color: rgba(255,255,255,.38);
}

.acc-avatar {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg,#4F46E5,#7C3AED);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 20px;
    margin-bottom: 10px;
    box-shadow: 0 0 24px rgba(79,70,229,.4);
}

.acc-user-name {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 3px;
}

.acc-user-email {
    font-size: 12px;
    color: rgba(255,255,255,.4);
    margin-bottom: 20px;
}

.acc-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

    .acc-bullets li {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 12px;
        color: rgba(255,255,255,.55);
    }

.acc-bullet-icon {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    flex-shrink: 0;
    background: rgba(165,180,252,.12);
    border: 1px solid rgba(165,180,252,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.acc-home-btn {
    margin-top: auto;
    font-size: 12px;
    color: rgba(255,255,255,.3);
    text-align: left;
    padding: 0;
    transition: color .15s ease;
}

    .acc-home-btn:hover {
        color: rgba(255,255,255,.6);
    }

/* Right */
.acc-right {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
}

/* Alerts */
.acc-alert {
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
}

.acc-alert-error {
    background: rgba(220,38,38,.15);
    border: 1px solid rgba(220,38,38,.3);
    color: #fca5a5;
}

.acc-alert-success {
    background: rgba(22,163,74,.15);
    border: 1px solid rgba(22,163,74,.3);
    color: #86efac;
}

/* Sections */
.acc-section {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 14px;
    padding: 18px;
}

.acc-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.acc-section-sub {
    font-size: 12px;
    color: rgba(255,255,255,.4);
    margin-bottom: 14px;
}

/* Summary */
.acc-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.acc-summary-item {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 9px;
    padding: 10px 12px;
}

.acc-summary-label {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,.38);
    letter-spacing: .04em;
    display: block;
    margin-bottom: 3px;
}

.acc-summary-val {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

/* Fields */
.acc-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
}

    .acc-field label {
        font-size: 10px;
        font-weight: 700;
        color: rgba(255,255,255,.38);
        letter-spacing: .04em;
    }

    .acc-field .validation-message {
        font-size: 11px;
        color: #fca5a5;
        margin-top: 2px;
    }

.acc-input {
    width: 100%;
    padding: 9px 12px;
    background: rgba(255,255,255,.07);
    border: 1.5px solid rgba(255,255,255,.12);
    border-radius: 9px;
    font-size: 13px;
    color: #fff;
    font-family: inherit;
    outline: none;
    transition: border-color .15s ease;
}

    .acc-input::placeholder {
        color: rgba(255,255,255,.25);
    }

    .acc-input:focus {
        border-color: #a5b4fc;
    }

/* Button */
.acc-btn-primary {
    background: linear-gradient(135deg,#4F46E5,#7C3AED);
    color: #fff;
    border: none;
    border-radius: 9px;
    padding: 9px 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 4px 16px rgba(79,70,229,.35);
    transition: opacity .15s ease, transform .15s ease;
}

    .acc-btn-primary:hover:not(:disabled) {
        opacity: .88;
        transform: translateY(-1px);
    }

    .acc-btn-primary:disabled {
        opacity: .35;
        cursor: not-allowed;
        transform: none;
    }

/* Hint */
.acc-hint {
    font-size: 11px;
    color: rgba(255,255,255,.3);
    margin-top: 10px;
}

/* Spinner */
.acc-spinner {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,.1);
    border-top-color: rgba(79,70,229,.8);
    animation: dl-spin .9s linear infinite;
    margin: 0 auto;
}

@media (max-width:720px) {
    .acc-card {
        grid-template-columns: 1fr;
    }

    .acc-left {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }

    .acc-summary-grid {
        grid-template-columns: 1fr;
    }

    .acc-wrapper {
        padding: 70px 1rem 40px;
    }
}

/* =========================
   UPLOADS PAGE — dark hero
   ========================= */
.upl-wrapper {
    min-height: 100vh;
    background: linear-gradient(145deg,#0f0a28 0%,#1a0f45 25%,#0e2054 58%,#071530 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 1.5rem 60px;
}

    .upl-wrapper .bg-dots {
        position: absolute;
        inset: 0;
        pointer-events: none;
        z-index: 0;
        background-image: radial-gradient(rgba(255,255,255,.04) 1px,transparent 1px);
        background-size: 30px 30px;
    }

    .upl-wrapper .bg-glow1 {
        position: absolute;
        width: 600px;
        height: 600px;
        border-radius: 50%;
        pointer-events: none;
        background: radial-gradient(circle,rgba(79,70,229,.18) 0%,transparent 65%);
        top: -200px;
        right: -150px;
    }

    .upl-wrapper .bg-glow2 {
        position: absolute;
        width: 400px;
        height: 400px;
        border-radius: 50%;
        pointer-events: none;
        background: radial-gradient(circle,rgba(59,130,246,.10) 0%,transparent 65%);
        bottom: 60px;
        left: -120px;
    }

.upl-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 980px;
    display: grid;
    grid-template-columns: 240px 1fr;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 22px;
    overflow: hidden;
}

.upl-card-narrow {
    max-width: 460px;
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
}

/* Left */
.upl-left {
    padding: 32px 24px;
    border-right: 1px solid rgba(255,255,255,.08);
    background: transparent;
    display: flex;
    flex-direction: column;
}

/* Right */
.upl-right {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
}

/* Empty state */
.upl-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 24px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 14px;
}

/* Stats pills */
.upl-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.upl-pill {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    min-width: 80px;
}

.upl-pill-muted {
    opacity: .65;
}

.upl-pill-e2ee {
    background: rgba(79,70,229,.12);
    border-color: rgba(165,180,252,.2);
}

.upl-pill-lbl {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,.38);
    letter-spacing: .04em;
}

.upl-pill-val {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
}

/* Upload list */
.upl-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.upl-item {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    padding: 14px;
    transition: border-color .15s ease, background .15s ease;
}

    .upl-item:hover {
        background: rgba(255,255,255,.06);
        border-color: rgba(255,255,255,.14);
    }

.upl-item-expired {
    border-color: rgba(248,113,113,.2);
    background: rgba(248,113,113,.05);
}

.upl-item-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.upl-item-main {
    min-width: 0;
    flex: 1;
}

.upl-item-name {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 5px;
}

.upl-item-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: rgba(255,255,255,.4);
}

.upl-dot {
    color: rgba(255,255,255,.2);
}

.upl-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
}

.upl-badge-expired {
    background: rgba(248,113,113,.15);
    border: 1px solid rgba(248,113,113,.3);
    color: #fca5a5;
}

.upl-badge-e2ee {
    background: rgba(79,70,229,.15);
    border: 1px solid rgba(165,180,252,.25);
    color: #a5b4fc;
}

.upl-dl-count {
    text-align: right;
    white-space: nowrap;
    flex-shrink: 0;
}

.upl-dl-lbl {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,.35);
    letter-spacing: .04em;
    display: block;
    margin-bottom: 2px;
}

.upl-dl-val {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
}

.upl-dl-max {
    font-size: 13px;
    color: rgba(255,255,255,.4);
}

/* Actions */
.upl-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.upl-link-group {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    padding: 4px 4px 4px 10px;
    min-width: 0;
}

.upl-link-input {
    flex: 1;
    background: none;
    border: none;
    font-size: 11px;
    color: rgba(255,255,255,.5);
    font-family: monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    outline: none;
}

.upl-copy-btn {
    background: rgba(79,70,229,.28);
    border: 1px solid rgba(165,180,252,.25);
    color: #a5b4fc;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .15s ease;
}

    .upl-copy-btn:hover {
        background: rgba(79,70,229,.45);
    }

.upl-action-btn {
    background: none;
    border: none;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,.38);
    cursor: pointer;
    font-family: inherit;
    padding: 5px 8px;
    border-radius: 6px;
    white-space: nowrap;
    transition: color .15s ease, background .15s ease;
}

    .upl-action-btn:hover {
        color: rgba(255,255,255,.7);
        background: rgba(255,255,255,.07);
    }

.upl-action-danger {
    color: rgba(248,113,113,.6);
}

    .upl-action-danger:hover {
        color: #fca5a5;
        background: rgba(248,113,113,.1);
    }

@media (max-width:720px) {
    .upl-card {
        grid-template-columns: 1fr;
    }

    .upl-left {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }

    .upl-wrapper {
        padding: 70px 1rem 40px;
    }

    .upl-item-top {
        flex-direction: column;
    }

    .upl-dl-count {
        text-align: left;
    }
}

/* =========================
   TOPBAR USER DROPDOWN
   ========================= */
.topbar-user-wrap {
    position: relative;
    cursor: pointer;
}

.user-chevron {
    font-size: 11px;
    color: rgba(255,255,255,.5);
    margin-left: 2px;
    transition: transform .2s ease;
    display: inline-block;
}

    .user-chevron.open {
        transform: rotate(180deg);
    }

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: #1a1145;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 12px;
    padding: 6px;
    z-index: 2000;
    box-shadow: 0 12px 40px rgba(0,0,0,.5);
    animation: dropdown-in .15s ease;
}

@keyframes dropdown-in {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,.8);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: background .15s ease, color .15s ease;
}

    .user-dropdown-item:hover {
        background: rgba(255,255,255,.08);
        color: #fff;
    }

.user-dropdown-divider {
    height: 1px;
    background: rgba(255,255,255,.08);
    margin: 4px 6px;
}

.user-dropdown-logout {
    color: rgba(248,113,113,.8);
}

    .user-dropdown-logout:hover {
        background: rgba(248,113,113,.1);
        color: #fca5a5;
    }

/* Desktop: yan nav linkleri göster, mobilde gizle */
.topbar-desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Backdrop — dropdown dışı tıklama kapatır */
.topbar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1999;
}

@media (max-width: 640px) {
    /* Mobilde yan linkleri gizle, sadece avatar+dropdown kalsın */
    .topbar-desktop-nav {
        display: none;
    }

    .topbar-tagline {
        display: none;
    }

    .user-name {
        display: none;
    }
}

/* =========================
   TOPBAR DROPDOWN FIX — z-index katmanları
   ========================= */
.topbar {
    z-index: 3000;
}

.topbar-inner {
    position: relative;
    z-index: 3002;
}

.topbar-user-wrap {
    position: relative;
    z-index: 3003;
    cursor: pointer;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 3004;
    pointer-events: auto;
}

.topbar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2999;
    background: transparent;
}

.user-pill-button {
    font-family: inherit;
    color: inherit;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 4px 12px 4px 4px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    transition: background .15s ease;
}

    .user-pill-button:hover {
        background: rgba(255,255,255,.12);
    }

/* =========================
   TOPBAR LANG DROPDOWN
   ========================= */
.topbar-lang-wrap {
    position: relative;
    z-index: 3003;
}

.topbar-lang-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 8px;
    padding: 5px 10px;
    color: rgba(255,255,255,.75);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: .05em;
    transition: background .15s ease;
}

    .topbar-lang-btn:hover {
        background: rgba(255,255,255,.12);
    }

.topbar-lang-chevron {
    font-size: 10px;
    color: rgba(255,255,255,.4);
    display: inline-block;
    transition: transform .2s ease;
}

    .topbar-lang-chevron.open {
        transform: rotate(180deg);
    }

.topbar-lang-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #1a1145;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 10px;
    padding: 4px;
    min-width: 90px;
    z-index: 3004;
    box-shadow: 0 8px 24px rgba(0,0,0,.45);
    animation: dropdown-in .15s ease;
}

.topbar-lang-option {
    display: block;
    width: 100%;
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,.7);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    letter-spacing: .05em;
    transition: background .15s ease, color .15s ease;
}

    .topbar-lang-option:hover {
        background: rgba(255,255,255,.08);
        color: #fff;
    }

    .topbar-lang-option.active {
        background: rgba(79,70,229,.25);
        color: #a5b4fc;
    }
