/* =====================================================================
   NovaDrive — premium UI (glassmorphism + gradient)
   ===================================================================== */
:root {
    --nd-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --nd-primary: #6d5dfc;
    --nd-primary-2: #a855f7;
    --nd-accent: #22d3ee;
    --nd-grad: linear-gradient(135deg, #6d5dfc 0%, #a855f7 55%, #ec4899 100%);
    --nd-grad-cool: linear-gradient(135deg, #22d3ee 0%, #6d5dfc 100%);
    --nd-bg: #f3f4fb;
    --nd-surface: rgba(255, 255, 255, .72);
    --nd-surface-solid: #ffffff;
    --nd-surface-2: rgba(255, 255, 255, .5);
    --nd-border: rgba(110, 104, 170, .16);
    --nd-text: #1b1d36;
    --nd-muted: #6b6f8e;
    --nd-shadow: 0 10px 40px -12px rgba(54, 45, 140, .22);
    --nd-shadow-lg: 0 24px 60px -20px rgba(54, 45, 140, .35);
    --nd-radius: 18px;
    --nd-radius-sm: 12px;
    --nd-sidebar-w: 272px;
    --bs-body-font-family: var(--nd-font);
    --bs-primary: #6d5dfc;
    --bs-primary-rgb: 109, 93, 252;
    --bs-link-color: #6d5dfc;
    --bs-link-color-rgb: 109, 93, 252;
}

[data-bs-theme="dark"] {
    --nd-bg: #0a0b16;
    --nd-surface: rgba(24, 26, 46, .66);
    --nd-surface-solid: #161829;
    --nd-surface-2: rgba(36, 38, 64, .55);
    --nd-border: rgba(150, 140, 255, .14);
    --nd-text: #eceeff;
    --nd-muted: #9a9dc0;
    --nd-shadow: 0 10px 40px -12px rgba(0, 0, 0, .6);
    --nd-shadow-lg: 0 24px 60px -18px rgba(0, 0, 0, .7);
    --bs-body-bg: #0a0b16;
    --bs-body-color: #eceeff;
    --bs-link-color: #a99fff;
    --bs-link-color-rgb: 169, 159, 255;
}

* { -webkit-tap-highlight-color: transparent; }
html, body { min-height: 100%; }
html { overflow-x: hidden; }
body {
    font-family: var(--nd-font);
    background: var(--nd-bg);
    color: var(--nd-text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { text-decoration: none; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { color: inherit; }
::selection { background: rgba(109, 93, 252, .25); }

/* ---------- Background orbs ---------- */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-orbs span {
    position: absolute; border-radius: 50%; filter: blur(80px); opacity: .45;
    animation: orb 22s ease-in-out infinite alternate;
}
.bg-orbs span:nth-child(1) { width: 520px; height: 520px; background: #8b7bff; top: -160px; left: -120px; }
.bg-orbs span:nth-child(2) { width: 460px; height: 460px; background: #f472b6; bottom: -180px; right: -100px; animation-delay: -6s; opacity: .3; }
.bg-orbs span:nth-child(3) { width: 380px; height: 380px; background: #22d3ee; top: 40%; left: 45%; animation-delay: -12s; opacity: .22; }
[data-bs-theme="dark"] .bg-orbs span { opacity: .22; }
@keyframes orb { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(60px, 40px) scale(1.15); } }

/* ---------- Glass surfaces ---------- */
.glass, .card-glass {
    background: var(--nd-surface);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid var(--nd-border);
    border-radius: var(--nd-radius);
    box-shadow: var(--nd-shadow);
}
.card-glass { padding: 1.4rem; }
.card-glass.hover-lift { transition: transform .25s ease, box-shadow .25s ease; }
.card-glass.hover-lift:hover { transform: translateY(-3px); box-shadow: var(--nd-shadow-lg); }
.section-title { font-weight: 700; font-size: 1.05rem; margin: 0; display: flex; align-items: center; gap: .5rem; }
.text-muted, .text-body-secondary { color: var(--nd-muted) !important; }

/* ---------- Buttons ---------- */
.btn { border-radius: 12px; font-weight: 600; }
.btn-gradient {
    background: var(--nd-grad); color: #fff; border: 0;
    box-shadow: 0 8px 24px -8px rgba(109, 93, 252, .65);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s;
}
.btn-gradient:hover, .btn-gradient:focus { color: #fff; transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 12px 28px -8px rgba(109, 93, 252, .75); }
.btn-gradient:disabled { opacity: .6; color: #fff; }
.btn-ghost { background: var(--nd-surface-2); border: 1px solid var(--nd-border); color: var(--nd-text); }
.btn-ghost:hover { background: var(--nd-surface); color: var(--nd-text); border-color: rgba(109, 93, 252, .4); }
.btn-soft-danger { background: rgba(239, 68, 68, .1); color: #ef4444; border: 1px solid rgba(239, 68, 68, .2); }
.btn-soft-danger:hover { background: #ef4444; color: #fff; }
.icon-btn {
    width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--nd-border);
    background: var(--nd-surface-2); color: var(--nd-text); display: inline-grid; place-items: center;
    font-size: 1.1rem; transition: all .2s; flex-shrink: 0;
}
.icon-btn:hover { border-color: rgba(109, 93, 252, .45); color: var(--nd-primary); }
.icon-btn.sm { width: 34px; height: 34px; font-size: .95rem; border-radius: 10px; }
[data-bs-theme="dark"] .theme-icon-dark, [data-bs-theme="light"] .theme-icon-light { display: none; }

.form-control, .form-select {
    border-radius: 12px; border-color: var(--nd-border); background-color: var(--nd-surface-2);
    padding: .65rem .9rem; color: var(--nd-text);
}
.form-control:focus, .form-select:focus { border-color: var(--nd-primary); box-shadow: 0 0 0 .25rem rgba(109, 93, 252, .15); background-color: var(--nd-surface-solid); }
.form-label { font-weight: 600; font-size: .88rem; margin-bottom: .35rem; }
.form-check-input:checked { background-color: var(--nd-primary); border-color: var(--nd-primary); }
.input-group-text { border-radius: 12px; border-color: var(--nd-border); background: var(--nd-surface-2); }

/* ---------- App shell ---------- */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
    width: var(--nd-sidebar-w); flex-shrink: 0; position: fixed; top: 0; bottom: 0; left: 0; z-index: 1040;
    padding: 14px;
    transition: transform .3s ease;
}
.sidebar-inner {
    height: 100%; display: flex; flex-direction: column; padding: 18px 16px;
    background: var(--nd-surface); backdrop-filter: blur(22px) saturate(170%); -webkit-backdrop-filter: blur(22px) saturate(170%);
    border: 1px solid var(--nd-border); border-radius: 22px; box-shadow: var(--nd-shadow); overflow-y: auto;
}
.sidebar-inner::-webkit-scrollbar { width: 4px; }
.sidebar-inner::-webkit-scrollbar-thumb { background: var(--nd-border); border-radius: 4px; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--nd-text); font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.brand:hover { color: var(--nd-text); }
.brand-logo {
    width: 40px; height: 40px; border-radius: 12px; background: var(--nd-grad); color: #fff;
    display: grid; place-items: center; font-size: 1.25rem; box-shadow: 0 8px 20px -6px rgba(109, 93, 252, .7);
}
.side-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.side-title { font-size: .7rem; text-transform: uppercase; letter-spacing: .09em; color: var(--nd-muted); font-weight: 700; margin: 12px 10px 4px; }
.side-link {
    display: flex; align-items: center; gap: .75rem; padding: .5rem .8rem; border-radius: 12px;
    color: var(--nd-muted); font-weight: 600; font-size: .92rem; transition: all .2s; position: relative;
}
.side-link i { font-size: 1.08rem; width: 20px; text-align: center; }
.side-link:hover { color: var(--nd-text); background: var(--nd-surface-2); }
.side-link.active { color: #fff; background: var(--nd-grad); box-shadow: 0 8px 20px -10px rgba(109, 93, 252, .8); }
.side-badge { margin-left: auto; font-style: normal; font-size: .72rem; background: rgba(109, 93, 252, .15); color: var(--nd-primary); padding: 1px 8px; border-radius: 20px; }
.storage-widget { margin-top: 16px; padding: 14px; border-radius: 14px; background: var(--nd-surface-2); border: 1px solid var(--nd-border); }

.nd-progress { height: 8px; border-radius: 10px; background: rgba(109, 93, 252, .12); overflow: hidden; }
.nd-progress-bar { height: 100%; background: var(--nd-grad); border-radius: 10px; transition: width .4s ease; }
.nd-progress-bar.danger { background: linear-gradient(90deg, #f97316, #ef4444); }
.nd-progress.lg { height: 12px; }

.main { flex: 1; margin-left: var(--nd-sidebar-w); min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.topbar {
    position: sticky; top: 0; z-index: 1020; display: flex; align-items: center; gap: 1rem;
    padding: 14px 26px; background: color-mix(in srgb, var(--nd-bg) 70%, transparent);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--nd-border);
}
.page-title { font-size: 1.3rem; font-weight: 800; margin: 0; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-search {
    flex: 1; max-width: 420px; margin-left: auto; align-items: center; gap: .5rem; padding: 0 14px;
    border-radius: 14px; background: var(--nd-surface); border: 1px solid var(--nd-border); height: 42px;
}
.top-search input { border: 0; background: transparent; outline: none; flex: 1; color: var(--nd-text); font-size: .92rem; }
.top-search i { color: var(--nd-muted); }
.top-actions { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
.top-search + .top-actions { margin-left: 0; }
.avatar-btn { display: flex; align-items: center; gap: .5rem; border: 1px solid var(--nd-border); background: var(--nd-surface-2); padding: 4px 12px 4px 4px; border-radius: 14px; color: var(--nd-text); font-weight: 600; font-size: .9rem; }
.avatar { width: 32px; height: 32px; border-radius: 10px; background: var(--nd-grad-cool); color: #fff; display: grid; place-items: center; font-weight: 800; }
.glass-menu { background: var(--nd-surface-solid); border: 1px solid var(--nd-border); border-radius: 14px; box-shadow: var(--nd-shadow-lg); padding: 6px; }
.glass-menu .dropdown-item { border-radius: 9px; padding: .5rem .75rem; font-weight: 500; font-size: .9rem; }
.content { padding: 26px; flex: 1; }
.app-footer { padding: 14px 26px 22px; }

.sidebar-backdrop { display: none; }
@media (max-width: 991.98px) {
    .sidebar { transform: translateX(-105%); }
    body.sidebar-open .sidebar { transform: translateX(0); }
    body.sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(8, 8, 20, .45); z-index: 1035; backdrop-filter: blur(3px); }
    .main { margin-left: 0; }
    .content { padding: 18px 14px 110px; }
    .topbar { padding: 12px 14px; gap: .6rem; }
    .page-title { font-size: 1.12rem; }
    .app-footer { display: none; }
}

/* ---------- Bottom nav (mobile) ---------- */
.bottom-nav {
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 1030;
    display: flex; justify-content: space-around; align-items: center; padding: 8px 6px;
    background: var(--nd-surface); backdrop-filter: blur(20px) saturate(170%); -webkit-backdrop-filter: blur(20px) saturate(170%);
    border: 1px solid var(--nd-border); border-radius: 22px; box-shadow: var(--nd-shadow-lg);
}
.bottom-nav a { display: flex; flex-direction: column; align-items: center; color: var(--nd-muted); font-size: .68rem; font-weight: 600; gap: 1px; min-width: 52px; }
.bottom-nav a i { font-size: 1.25rem; }
.bottom-nav .bottom-fab {
    width: 56px; height: 56px; border-radius: 18px; background: var(--nd-grad); color: #fff; margin-top: -30px;
    justify-content: center; font-size: 1.5rem; box-shadow: 0 10px 26px -6px rgba(109, 93, 252, .8); min-width: 56px;
}
.bottom-nav .bottom-fab i { font-size: 1.6rem; }

/* ---------- Stat cards ---------- */
.stat-card { position: relative; overflow: hidden; }
.stat-card .stat-icon {
    width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; color: #fff;
}
.stat-card .stat-value { font-size: 1.65rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin-top: 14px; }
.stat-card .stat-label { color: var(--nd-muted); font-size: .85rem; font-weight: 600; }
.stat-card::after {
    content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%; right: -50px; top: -50px;
    background: currentColor; opacity: .06;
}
.g-violet { background: linear-gradient(135deg, #6d5dfc, #a855f7); }
.g-pink { background: linear-gradient(135deg, #ec4899, #f97316); }
.g-cyan { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.g-green { background: linear-gradient(135deg, #10b981, #22c55e); }
.g-amber { background: linear-gradient(135deg, #f59e0b, #f97316); }
.g-slate { background: linear-gradient(135deg, #64748b, #334155); }
.c-image { color: #ec4899; } .c-video { color: #6d5dfc; } .c-audio { color: #10b981; }
.c-document { color: #3b82f6; } .c-archive { color: #f59e0b; } .c-other { color: #64748b; }
.bg-image { background: rgba(236, 72, 153, .12); } .bg-video { background: rgba(109, 93, 252, .12); } .bg-audio { background: rgba(16, 185, 129, .12); }
.bg-document { background: rgba(59, 130, 246, .12); } .bg-archive { background: rgba(245, 158, 11, .14); } .bg-other { background: rgba(100, 116, 139, .14); }

.ring {
    --p: 0; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
    background: conic-gradient(#6d5dfc calc(var(--p) * 1%), #a855f7 calc(var(--p) * 1%), rgba(109, 93, 252, .12) 0);
}
.ring > div { width: 104px; height: 104px; border-radius: 50%; background: var(--nd-surface-solid); display: grid; place-items: center; text-align: center; }
.ring strong { font-size: 1.4rem; font-weight: 800; display: block; }

.cat-row { display: flex; align-items: center; gap: .8rem; padding: .55rem 0; }
.cat-row .cat-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 1.05rem; flex-shrink: 0; }

/* ---------- Files ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; font-weight: 600; font-size: .95rem; }
.crumbs a { color: var(--nd-muted); padding: 4px 8px; border-radius: 8px; }
.crumbs a:hover { background: var(--nd-surface-2); color: var(--nd-text); }
.crumbs .current { color: var(--nd-text); padding: 4px 8px; }
.folder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.folder-card {
    display: flex; align-items: center; gap: .75rem; padding: 14px; border-radius: 14px;
    background: var(--nd-surface); border: 1px solid var(--nd-border); color: var(--nd-text); position: relative;
    transition: all .2s ease; backdrop-filter: blur(12px);
}
.folder-card:hover { border-color: rgba(109, 93, 252, .5); transform: translateY(-2px); box-shadow: var(--nd-shadow); color: var(--nd-text); }
.folder-card .folder-icon { font-size: 1.8rem; color: #f5b938; line-height: 1; }
.folder-card .folder-name { font-weight: 700; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder-card .dropdown { margin-left: auto; position: relative; z-index: 2; }
.folder-card .folder-check { position: relative; z-index: 2; margin: 0; flex-shrink: 0; }
.folder-card.selected { border-color: rgba(109, 93, 252, .6); background: rgba(109, 93, 252, .1); }
.bulk-bar.all-mode [data-bulk=share], .bulk-bar.all-mode [data-bulk=move], .bulk-bar.all-mode [data-bulk=delete],
.bulk-bar.has-folders [data-bulk=share], .bulk-bar.has-folders [data-bulk=move],
.bulk-bar.all-mode [data-bulk=send], .bulk-bar.has-folders [data-bulk=send] { display: none; }

.file-table { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.file-table th { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--nd-muted); font-weight: 700; padding: 4px 12px; white-space: nowrap; }
.file-table td { background: var(--nd-surface); padding: 10px 12px; vertical-align: middle; border-top: 1px solid var(--nd-border); border-bottom: 1px solid var(--nd-border); }
.file-table td:first-child { border-left: 1px solid var(--nd-border); border-radius: 14px 0 0 14px; }
.file-table td:last-child { border-right: 1px solid var(--nd-border); border-radius: 0 14px 14px 0; }
.file-table tr { transition: transform .15s; }
.file-table tbody tr:hover td { background: var(--nd-surface-solid); }
.file-table tr.selected td { background: rgba(109, 93, 252, .1); border-color: rgba(109, 93, 252, .35); }
.file-thumb {
    width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; font-size: 1.3rem; flex-shrink: 0;
    overflow: hidden; background-size: cover; background-position: center;
}
.file-name { font-weight: 700; font-size: .92rem; color: var(--nd-text); word-break: break-all; cursor: pointer; }
.file-name:hover { color: var(--nd-primary); }
.file-meta { font-size: .78rem; color: var(--nd-muted); }
.ext-badge { display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .04em; padding: 2px 8px; border-radius: 6px; background: var(--nd-surface-2); border: 1px solid var(--nd-border); text-transform: uppercase; }
.bulk-bar {
    position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 220%); opacity: 0; pointer-events: none; z-index: 1045; transition: transform .3s ease, opacity .3s ease;
    display: flex; align-items: center; gap: .5rem; padding: 10px 12px 10px 18px; border-radius: 18px;
    background: var(--nd-surface-solid); border: 1px solid var(--nd-border); box-shadow: var(--nd-shadow-lg); max-width: calc(100% - 20px); flex-wrap: wrap;
}
.bulk-bar.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
@media (max-width: 991.98px) {
    .bulk-bar { bottom: 96px; left: 10px; right: 10px; max-width: none; transform: translateY(220%); justify-content: center; padding: 10px 12px; }
    .bulk-bar.show { transform: translateY(0); }
    .bulk-bar #bulkLabel { width: 100%; text-align: center; margin: 0 !important; }
    .bulk-bar #bulkSelectEverything { width: 100%; }
}
@media (max-width: 767.98px) {
    .file-table thead { display: none; }
    .file-table .hide-sm { display: none; }
}

.empty-state { text-align: center; padding: 50px 20px; }
.empty-state .empty-icon { width: 90px; height: 90px; margin: 0 auto 18px; border-radius: 28px; display: grid; place-items: center; font-size: 2.6rem; color: #fff; background: var(--nd-grad); box-shadow: var(--nd-shadow-lg); }

.filter-chips { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.filter-chips::-webkit-scrollbar { display: none; }
.chip { white-space: nowrap; padding: .42rem .9rem; border-radius: 30px; border: 1px solid var(--nd-border); background: var(--nd-surface); color: var(--nd-muted); font-weight: 600; font-size: .84rem; }
.chip:hover { color: var(--nd-text); }
.chip.active { background: var(--nd-grad); color: #fff; border-color: transparent; }

/* ---------- Upload ---------- */
.dropzone {
    position: relative; border: 2px dashed rgba(109, 93, 252, .35); border-radius: 24px; padding: 48px 24px; text-align: center;
    background: var(--nd-surface); backdrop-filter: blur(16px); transition: all .25s ease; cursor: pointer;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--nd-primary); background: rgba(109, 93, 252, .08); transform: scale(1.005); }
.dropzone.dragover .dz-icon { transform: translateY(-6px) scale(1.08); }
.dz-icon { width: 86px; height: 86px; margin: 0 auto 16px; border-radius: 26px; display: grid; place-items: center; font-size: 2.4rem; color: #fff; background: var(--nd-grad); box-shadow: 0 16px 34px -10px rgba(109, 93, 252, .7); transition: transform .3s; }
.mobile-pickers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.picker-tile {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .45rem; text-align: center;
    padding: 18px 10px; border-radius: 20px; background: var(--nd-surface); border: 1px solid var(--nd-border);
    color: var(--nd-text); font-weight: 700; font-size: .88rem; position: relative; overflow: hidden; min-height: 112px;
    backdrop-filter: blur(14px); transition: transform .15s;
}
.picker-tile:active { transform: scale(.97); }
.picker-tile i { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; font-size: 1.45rem; color: #fff; }
.picker-tile small { font-weight: 500; color: var(--nd-muted); font-size: .72rem; }
.picker-tile input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.upload-item { display: flex; gap: .9rem; align-items: center; padding: 14px; border-radius: 16px; background: var(--nd-surface); border: 1px solid var(--nd-border); margin-bottom: 10px; animation: slideUp .3s ease; }
.upload-item .ui-body { flex: 1; min-width: 0; }
.upload-item .ui-name { font-weight: 700; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upload-item .ui-stats { font-size: .76rem; color: var(--nd-muted); display: flex; flex-wrap: wrap; gap: .25rem .8rem; margin-top: 6px; }
.upload-item .ui-actions { display: flex; gap: .35rem; }
.upload-item.done .nd-progress-bar { background: linear-gradient(90deg, #10b981, #22c55e); }
.upload-item.error .nd-progress-bar { background: linear-gradient(90deg, #f97316, #ef4444); }
.upload-item.paused .nd-progress-bar { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.ui-pct { font-weight: 800; font-size: .9rem; min-width: 48px; text-align: right; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; }
.net-banner { display: none; }
.net-banner.show { display: flex; }

/* ---------- Toasts ---------- */
.toast-stack { position: fixed; top: 18px; right: 18px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 36px)); }
.nd-toast {
    display: flex; align-items: flex-start; gap: .65rem; padding: 14px 16px; border-radius: 14px; background: var(--nd-surface-solid);
    border: 1px solid var(--nd-border); box-shadow: var(--nd-shadow-lg); font-weight: 600; font-size: .9rem; animation: slideIn .35s ease;
}
.nd-toast i { font-size: 1.15rem; margin-top: 1px; }
.nd-toast span { flex: 1; }
.nd-toast-success i { color: #10b981; } .nd-toast-danger i { color: #ef4444; } .nd-toast-warning i { color: #f59e0b; } .nd-toast-info i { color: var(--nd-primary); }
.nd-toast.hide { opacity: 0; transform: translateX(30px); transition: all .3s; }

/* ---------- Modals ---------- */
.modal-content { background: var(--nd-surface-solid); border: 1px solid var(--nd-border); border-radius: 22px; box-shadow: var(--nd-shadow-lg); }
.modal-header, .modal-footer { border-color: var(--nd-border); }
.modal-header { padding: 18px 22px; }
.modal-body { padding: 22px; }
.modal-title { font-weight: 800; }
.modal-backdrop.show { opacity: .5; }
.preview-box { background: #000; border-radius: 14px; overflow: hidden; display: grid; place-items: center; min-height: 200px; }
.preview-box img, .preview-box video { max-width: 100%; max-height: 70vh; display: block; }
.preview-box iframe { width: 100%; height: 70vh; border: 0; background: #fff; }

/* ---------- Tables (admin) ---------- */
.table-glass { --bs-table-bg: transparent; --bs-table-color: var(--nd-text); margin: 0; }
.table-glass th { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--nd-muted); font-weight: 700; border-bottom-color: var(--nd-border); white-space: nowrap; }
.table-glass td { border-bottom-color: var(--nd-border); vertical-align: middle; font-size: .9rem; }
.table-glass tbody tr:hover td { background: var(--nd-surface-2); }
.badge-soft { padding: .35em .7em; border-radius: 8px; font-weight: 700; font-size: .72rem; }
.badge-soft.success { background: rgba(16, 185, 129, .14); color: #059669; }
.badge-soft.danger { background: rgba(239, 68, 68, .14); color: #dc2626; }
.badge-soft.warning { background: rgba(245, 158, 11, .16); color: #d97706; }
.badge-soft.primary { background: rgba(109, 93, 252, .14); color: var(--nd-primary); }
.badge-soft.secondary { background: rgba(100, 116, 139, .15); color: var(--nd-muted); }
[data-bs-theme="dark"] .badge-soft.success { color: #34d399; }
[data-bs-theme="dark"] .badge-soft.danger { color: #f87171; }
[data-bs-theme="dark"] .badge-soft.warning { color: #fbbf24; }
[data-bs-theme="dark"] .badge-soft.primary { color: #a99fff; }

.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 180px; padding-top: 10px; }
.bar-chart .bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; min-width: 0; }
.bar-chart .bar div { width: 100%; max-width: 34px; border-radius: 8px 8px 4px 4px; background: var(--nd-grad); min-height: 4px; transition: height .6s ease; position: relative; }
.bar-chart .bar div:hover::after { content: attr(data-v); position: absolute; top: -26px; left: 50%; transform: translateX(-50%); font-size: .7rem; background: var(--nd-surface-solid); padding: 2px 6px; border-radius: 6px; white-space: nowrap; box-shadow: var(--nd-shadow); }
.bar-chart .bar span { font-size: .66rem; color: var(--nd-muted); white-space: nowrap; }

/* ---------- Public / auth ---------- */
.public-body { min-height: 100vh; display: flex; flex-direction: column; }
.public-top { display: flex; justify-content: space-between; align-items: center; padding: 18px clamp(16px, 4vw, 48px); }
.auth-wrap { flex: 1; display: grid; place-items: center; padding: 20px 16px 50px; }
.auth-card { width: 100%; max-width: 440px; padding: 34px; }
.auth-card h2 { font-weight: 800; letter-spacing: -.02em; }
.hero { padding: clamp(40px, 8vw, 100px) clamp(16px, 4vw, 48px) 40px; text-align: center; max-width: 1100px; margin: 0 auto; }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.grad-text { background: var(--nd-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: var(--nd-muted); max-width: 640px; margin: 18px auto 30px; font-size: 1.15rem; }
/* Giriş səhifəsi blokları: body flex-column olduğu üçün width: 100% vacibdir,
   əks halda blok məzmuna görə genişlənir və ekrandan çıxır */
.hero, .feature-grid, .ad-wrap { width: 100%; box-sizing: border-box; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; max-width: 1100px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px) 60px; }
.feature-grid .card-glass { height: 100%; }
@media (max-width: 991.98px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) {
    .feature-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .feature-grid .card-glass { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; align-items: start; padding: 1.1rem; }
    .feature-grid .card-glass i { grid-row: span 2; margin-bottom: 0; }
    .feature-grid h3 { margin-bottom: 4px; }
}
.feature-grid .card-glass i { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; color: #fff; margin-bottom: 14px; }
.feature-grid h3 { font-size: 1.05rem; font-weight: 800; }
.feature-grid p { color: var(--nd-muted); margin: 0; font-size: .92rem; }
.hero-mock { max-width: 760px; margin: 40px auto 0; padding: 18px; text-align: left; }
.hero-mock .min-w-0 .fw-bold { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 575.98px) { .hero { padding-top: 28px; } .hero p.lead { font-size: 1rem; } .hero-mock { margin-top: 28px; padding: 14px; } }
.share-card { width: 100%; max-width: 760px; }
.pw-toggle { cursor: pointer; color: var(--nd-muted); border-left: 0; padding: 0 .85rem; transition: color .15s; }
.pw-toggle:hover, .pw-toggle[aria-pressed="true"] { color: var(--nd-primary); }
.pw-toggle svg { display: block; }
.input-group > .form-control:has(+ .pw-toggle) { border-right: 0; }
.input-group:focus-within .pw-toggle { border-color: var(--nd-primary); }

/* ---------- Animations ---------- */
.fade-in > *:not(.bulk-bar):not(.modal) { animation: slideUp .45s ease backwards; }
.fade-in > *:nth-child(2) { animation-delay: .05s; }
.fade-in > *:nth-child(3) { animation-delay: .1s; }
.fade-in > *:nth-child(4) { animation-delay: .15s; }
@keyframes slideUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.pulse { animation: pulse 1.4s infinite; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.copy-input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; }
.min-w-0 { min-width: 0; }
.cursor-pointer { cursor: pointer; }
.pagination .page-link { border-radius: 10px !important; margin: 0 3px; border-color: var(--nd-border); background: var(--nd-surface); color: var(--nd-text); }
.pagination .active .page-link { background: var(--nd-grad); border-color: transparent; color: #fff; }

/* ---------- VIP / Yaddaş satışı ---------- */
.vip-badge { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 8px; font-size: .68rem; font-weight: 800; letter-spacing: .04em;
    color: #7a4a00; background: linear-gradient(135deg, #fde68a, #f59e0b); box-shadow: 0 4px 12px -4px rgba(245, 158, 11, .6); white-space: nowrap; }
.side-link .side-badge { min-width: 22px; text-align: center; }
.side-link.active .side-badge { background: rgba(255, 255, 255, .25); color: #fff; }
.storage-hero { background: linear-gradient(135deg, rgba(109, 93, 252, .12), rgba(236, 72, 153, .08)), var(--nd-surface); }
.steps-mini { display: grid; gap: 8px; }
.steps-mini div { display: flex; align-items: center; gap: .7rem; font-weight: 600; font-size: .9rem; padding: 8px 12px; border-radius: 12px; background: var(--nd-surface-2); border: 1px solid var(--nd-border); }
.steps-mini span { width: 26px; height: 26px; border-radius: 8px; background: var(--nd-grad); color: #fff; display: grid; place-items: center; font-size: .8rem; flex-shrink: 0; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.plan-card { position: relative; padding: 24px 20px; border-radius: 20px; background: var(--nd-surface); border: 1px solid var(--nd-border); text-align: center;
    backdrop-filter: blur(14px); transition: transform .2s, box-shadow .2s, border-color .2s; overflow: hidden; }
.plan-card:hover { transform: translateY(-3px); box-shadow: var(--nd-shadow-lg); }
.plan-card.featured { border-color: rgba(109, 93, 252, .45); }
.plan-card.selected { border: 2px solid var(--nd-primary); box-shadow: 0 0 0 4px rgba(109, 93, 252, .15); }
.plan-ribbon { position: absolute; top: 14px; right: -34px; transform: rotate(45deg); background: var(--nd-grad); color: #fff; font-size: .68rem; font-weight: 800; padding: 3px 40px; }
.plan-name { font-weight: 700; color: var(--nd-muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.plan-gb { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; margin: 6px 0; }
.plan-price { display: inline-block; font-size: 1.25rem; font-weight: 800; padding: 4px 16px; border-radius: 12px; background: var(--nd-grad); color: #fff; margin-bottom: 10px; }
.plan-desc { font-size: .82rem; color: var(--nd-muted); }
.checkout-amount { font-size: 1.6rem; font-weight: 800; background: var(--nd-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pay-card { display: block; cursor: pointer; margin: 0; }
.pay-card input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.pay-card-inner { position: relative; padding: 20px; border-radius: 18px; color: #fff; min-height: 170px; display: flex; flex-direction: column; justify-content: space-between;
    background: linear-gradient(135deg, #1e1b4b, #4c1d95 55%, #be185d); box-shadow: 0 16px 34px -14px rgba(76, 29, 149, .7); border: 3px solid transparent; transition: border-color .2s, transform .2s; }
.pay-card input:checked + .pay-card-inner { border-color: #fbbf24; }
.pay-card:hover .pay-card-inner { transform: translateY(-2px); }
.pay-bank { font-weight: 800; font-size: 1rem; }
.pay-number { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: clamp(1.05rem, 3.4vw, 1.35rem); letter-spacing: .08em; margin: 18px 0 12px; word-break: break-all; }
.pay-holder { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; opacity: .9; }
.pay-note { font-size: .74rem; opacity: .75; }
.receipt-drop { position: relative; display: block; border: 2px dashed rgba(109, 93, 252, .4); border-radius: 18px; padding: 24px; text-align: center; cursor: pointer; background: var(--nd-surface-2); transition: border-color .2s; }
.receipt-drop:hover { border-color: var(--nd-primary); }
.receipt-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.receipt-empty i { font-size: 2.2rem; color: var(--nd-primary); }
.receipt-preview img { max-height: 220px; max-width: 100%; border-radius: 12px; box-shadow: var(--nd-shadow); }
.receipt-thumb { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; border: 1px solid var(--nd-border); background: var(--nd-surface-2); display: grid; place-items: center; }

/* ---------- E-poçt təsdiqi ---------- */
.otp-input { text-align: center; font-size: 1.9rem; font-weight: 800; letter-spacing: .55em; padding: .55rem .4rem .55rem .95rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.otp-input::placeholder { color: var(--nd-muted); opacity: .45; }

/* ---------- Hədiyyə kampaniyası ---------- */
.promo-banner { position: relative; display: flex; align-items: center; gap: 18px; text-align: left; margin: 0 auto 28px; max-width: 760px; padding: 20px 22px;
    border-radius: 22px; color: #fff; background: linear-gradient(135deg, #f59e0b 0%, #ec4899 55%, #8b5cf6 100%); box-shadow: 0 18px 40px -16px rgba(236, 72, 153, .7); overflow: hidden; }
.promo-banner::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; right: -60px; top: -90px; background: rgba(255, 255, 255, .15); }
.promo-gift { width: 58px; height: 58px; border-radius: 18px; background: rgba(255, 255, 255, .22); display: grid; place-items: center; font-size: 1.8rem; flex-shrink: 0; animation: promoPulse 2.2s ease-in-out infinite; }
@keyframes promoPulse { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.08) rotate(-6deg); } }
.promo-body { flex: 1; min-width: 0; position: relative; z-index: 1; }
.promo-title { font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; }
.promo-text { font-size: .9rem; opacity: .95; margin-top: 2px; }
.promo-meter { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: .82rem; }
.promo-meter .nd-progress { flex: 1; max-width: 260px; background: rgba(255, 255, 255, .3); }
.promo-meter .nd-progress-bar { background: #fff; }
.promo-cta { position: relative; z-index: 1; color: #be185d !important; white-space: nowrap; }
.promo-banner.compact { margin-bottom: 14px; padding: 14px 16px; border-radius: 18px; }
.promo-banner.compact .promo-gift { width: 44px; height: 44px; font-size: 1.3rem; border-radius: 14px; }
.promo-banner.compact .promo-title { font-size: 1rem; }
@media (max-width: 575.98px) { .promo-banner { flex-wrap: wrap; } .promo-cta { width: 100%; } }

/* ---------- Reklamlar ---------- */
.ad-wrap { max-width: 1100px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.ad-zone { display: grid; gap: 14px; margin: 0 0 22px; }
.ad-home_top, .ad-home_bottom { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.ad-item { display: flex; min-width: 0; }
.ad-item > .ad-banner, .ad-item > .ad-html { flex: 1; min-width: 0; }
.ad-item { position: relative; }
.ad-label { position: absolute; top: 8px; right: 10px; z-index: 2; font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
    padding: 2px 7px; border-radius: 6px; background: rgba(0, 0, 0, .45); color: #fff; }
.ad-banner { display: flex; align-items: stretch; gap: 0; border-radius: 18px; overflow: hidden; background: var(--nd-surface); border: 1px solid var(--nd-border);
    color: var(--nd-text); backdrop-filter: blur(14px); transition: transform .2s, box-shadow .2s; min-height: 90px; }
a.ad-banner:hover { transform: translateY(-2px); box-shadow: var(--nd-shadow-lg); color: var(--nd-text); }
.ad-img { width: 100%; max-height: 260px; object-fit: cover; display: block; }
.ad-banner .ad-img + .ad-content { border-top: 1px solid var(--nd-border); }
.ad-banner:has(.ad-img) { flex-direction: column; }
.ad-banner:not(:has(.ad-img)) { align-items: center; }
.ad-content { padding: 14px 16px; }
.ad-title { font-weight: 800; }
.ad-text { font-size: .86rem; color: var(--nd-muted); margin-top: 2px; }
.ad-sidebar { margin: 14px 0 0; }
.ad-sidebar .ad-img { max-height: 160px; }
.ad-sidebar .ad-content { padding: 10px 12px; font-size: .85rem; }
.ad-html { overflow: hidden; border-radius: 14px; }

/* ---------- İnsanlar / profil / fayl göndərmə ---------- */
.user-card { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--nd-border); }
.user-card:last-child { border-bottom: 0; }
.user-avatar { width: 44px; height: 44px; border-radius: 14px; font-size: 1.1rem; flex-shrink: 0; color: #fff; }
.user-avatar:hover { color: #fff; filter: brightness(1.08); }
.profile-hero { background: linear-gradient(135deg, rgba(109, 93, 252, .12), rgba(34, 211, 238, .08)), var(--nd-surface); }
.profile-avatar { width: 92px; height: 92px; border-radius: 28px; font-size: 2.4rem; flex-shrink: 0; }
.profile-actions { min-width: 180px; }
@media (max-width: 575.98px) { .profile-actions { width: 100%; } .profile-actions .btn { width: 100%; } }
.privacy-option { padding: 14px 16px; border-radius: 14px; background: var(--nd-surface-2); border: 1px solid var(--nd-border); }
.recipient-list { max-height: 280px; overflow-y: auto; border: 1px solid var(--nd-border); border-radius: 14px; padding: 4px; }
.recipient { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; margin: 0; }
.recipient:hover { background: var(--nd-surface-2); }
.recipient input { flex-shrink: 0; }
.recipient:has(input:checked) { background: rgba(109, 93, 252, .12); }
.recipient .avatar { width: 36px; height: 36px; border-radius: 11px; font-size: .95rem; }
.transfer-card.is-new { border-color: rgba(109, 93, 252, .55); box-shadow: 0 0 0 3px rgba(109, 93, 252, .1), var(--nd-shadow); }
.transfer-msg { padding: 10px 14px; border-radius: 12px; background: var(--nd-surface-2); border: 1px solid var(--nd-border); font-size: .92rem; }
.transfer-item + .transfer-item { border-top: 1px solid var(--nd-border); }
.bn-dot { position: absolute; top: -4px; right: 8px; font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ef4444; color: #fff; font-size: .65rem; font-weight: 800; display: grid; place-items: center; }

/* ---------- Profil şəkli ---------- */
.avatar.has-img { padding: 0; overflow: hidden; background: var(--nd-surface-2); }
.avatar.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-edit { position: relative; width: 120px; height: 120px; margin: 0 auto 14px; }
.avatar-edit .avatar { width: 120px; height: 120px; border-radius: 34px; font-size: 3rem; }
.avatar-edit .avatar-cam { position: absolute; right: -6px; bottom: -6px; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center;
    background: var(--nd-grad); color: #fff; border: 3px solid var(--nd-surface-solid); cursor: pointer; box-shadow: var(--nd-shadow); }
.avatar-edit .avatar-cam input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.avatar-edit.loading .avatar { opacity: .5; }
/* ---------- Şikayət ---------- */
.report-link { font-size: .82rem; text-decoration: none; }
.report-link:hover { color: #ef4444 !important; }
.report-reasons { display: grid; gap: 6px; }
.report-reason { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--nd-border); cursor: pointer; margin: 0; font-weight: 500; }
.report-reason:hover { background: var(--nd-surface-2); }
.report-reason:has(input:checked) { border-color: #ef4444; background: rgba(239, 68, 68, .08); }

/* Admin şikayətlər */
.report-card { padding: 1.1rem 1.25rem; }
.report-avatar { width: 42px; height: 42px; font-size: 1rem; flex-shrink: 0; }
.report-actions { width: 230px; flex-shrink: 0; }
@media (max-width: 767.98px) { .report-actions { width: 100%; } }

/* Göndəriş qoruma ayarları */
.tr-options-toggle { display: inline-flex; align-items: center; gap: .15rem; background: none; border: 1px dashed var(--nd-border, rgba(120,120,160,.35)); border-radius: 10px; padding: .45rem .8rem; font-size: .85rem; font-weight: 600; color: var(--nd-primary, #6d5dfc); width: 100%; justify-content: center; }
.tr-options-toggle:hover { background: rgba(109, 93, 252, .06); }
.tr-options-toggle[aria-expanded="true"] .tr-chev { transform: rotate(180deg); }
.tr-chev { transition: transform .2s; }
.tr-options { background: rgba(109, 93, 252, .05); border-radius: 12px; padding: .85rem; }
.tr-options .form-switch { padding-left: 2.6em; }
.tr-unlock { display: flex; gap: 1rem; align-items: flex-start; background: rgba(109, 93, 252, .06); border: 1px solid rgba(109, 93, 252, .18); border-radius: 14px; padding: 1rem; }
.tr-lock-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; color: #fff; background: linear-gradient(135deg, #6d5dfc, #e0479e); font-size: 1.2rem; }
.transfer-card.is-revoked { opacity: .75; border-style: dashed; }

/* Şifrəli qovluqlar */
.folder-icon-wrap { position: relative; display: inline-flex; }
.folder-lock-badge { position: absolute; right: -4px; bottom: -2px; font-size: .75rem; color: #fff; background: linear-gradient(135deg, #6d5dfc, #e0479e); border-radius: 50%; width: 18px; height: 18px; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.folder-card.is-locked .folder-icon { opacity: .55; }
.folder-unlock-card { max-width: 520px; margin: 1rem auto; text-align: center; padding: 2rem 1.5rem; }
.folder-unlock-card .tr-lock-icon { margin: 0 auto; width: 64px; height: 64px; font-size: 1.7rem; border-radius: 18px; }
.folder-unlock-form { max-width: 380px; margin: 0 auto; }

/* Moderasiya */
.mod-row { padding: .85rem 1rem; }
.mod-avatar { width: 44px; height: 44px; font-size: 1.05rem; flex-shrink: 0; }

/* ===== Ehtiyat nüsxə ===== */
.g-blue { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.backup-tabs { display: flex; gap: .5rem; flex-wrap: wrap; }
.backup-tab { display: inline-flex; align-items: center; padding: .6rem 1.1rem; border-radius: 14px; font-weight: 600; color: var(--nd-muted); background: var(--nd-surface); border: 1px solid var(--nd-border); text-decoration: none; transition: .15s; }
.backup-tab:hover { color: var(--nd-text); }
.backup-tab.active { color: #fff; background: linear-gradient(135deg, #6d5dfc, #a855f7); border-color: transparent; }
.stat-tile { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; }
.stat-tile .stat-ic { width: 46px; height: 46px; flex-shrink: 0; border-radius: 13px; display: grid; place-items: center; color: #fff; font-size: 1.25rem; }
.stat-tile .stat-val { font-weight: 800; font-size: 1.25rem; line-height: 1.1; }
.stat-tile .stat-lbl { font-size: .8rem; color: var(--nd-muted); }
.contact-row { display: flex; align-items: center; gap: .9rem; padding: .7rem .9rem; }
.contact-ava { width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, #6d5dfc, #e0479e); text-transform: uppercase; }

/* ===== Yeniliklər (zəng) ===== */
.news-bell { position: relative; }
.news-badge { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ef4444; color: #fff; font-size: .68rem; font-weight: 800; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--nd-bg, #fff); }
.news-menu { width: 340px; max-width: 92vw; padding: 0; overflow: hidden; }
.news-head { padding: .8rem 1rem; font-weight: 700; border-bottom: 1px solid var(--nd-border); }
.news-list { max-height: 60vh; overflow-y: auto; }
.news-item { padding: .75rem 1rem; border-bottom: 1px solid var(--nd-border); }
.news-item:last-child { border-bottom: 0; }
.news-item.is-new { background: rgba(109, 93, 252, .06); }
.news-title { font-weight: 700; font-size: .9rem; display: flex; align-items: center; gap: .4rem; }
.news-dot { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; flex-shrink: 0; }
.news-body { font-size: .82rem; color: var(--nd-muted); margin-top: .25rem; white-space: pre-line; }
.news-date { font-size: .72rem; color: var(--nd-muted); margin-top: .35rem; }
.news-empty { padding: 2rem 1rem; text-align: center; color: var(--nd-muted); }
.news-empty i { font-size: 1.8rem; display: block; margin-bottom: .4rem; opacity: .6; }
.news-admin-row { padding: .85rem 1rem; }
.news-admin-row.is-hidden { opacity: .6; }

/* ===== Giriş tarixçəsi (cihaz) ===== */
.login-row { display: flex; align-items: center; gap: .9rem; padding: .8rem 1rem; }
.login-ic { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; color: #fff; background: linear-gradient(135deg, #6d5dfc, #a855f7); }
.login-ua { font-size: .7rem; color: var(--nd-muted); margin-top: .3rem; word-break: break-all; opacity: .7; }

/* ===== Online texniki dəstək ===== */
.support-widget { position: fixed; right: 20px; bottom: 20px; z-index: 1045; }
@media (max-width: 991.98px) { .support-widget { bottom: 78px; right: 14px; } } /* bottom-nav üstündə */
.support-bubble { width: 58px; height: 58px; border-radius: 50%; border: none; color: #fff; background: linear-gradient(135deg, #6d5dfc, #a855f7, #ec4899); box-shadow: 0 10px 28px -6px rgba(109,93,252,.6); font-size: 1.5rem; display: grid; place-items: center; cursor: pointer; position: relative; transition: transform .18s; }
.support-bubble:hover { transform: scale(1.07); }
.support-bubble.active { transform: scale(.92); }
.support-badge { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #ef4444; color: #fff; font-size: .72rem; font-weight: 800; line-height: 20px; text-align: center; box-shadow: 0 0 0 2px var(--nd-bg, #fff); }
.support-panel { position: absolute; right: 0; bottom: 72px; width: 350px; max-width: calc(100vw - 32px); height: 460px; max-height: calc(100vh - 140px); background: var(--nd-surface, #fff); border: 1px solid var(--nd-border); border-radius: 20px; box-shadow: 0 24px 60px -12px rgba(30,20,80,.35); display: none; flex-direction: column; overflow: hidden; transform-origin: bottom right; }
.support-panel.show { display: flex; animation: supPop .18s ease; }
@keyframes supPop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
.support-head { padding: .85rem 1rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, #6d5dfc, #a855f7); display: flex; align-items: center; justify-content: space-between; }
.support-close { background: rgba(255,255,255,.2); border: none; color: #fff; width: 28px; height: 28px; border-radius: 8px; cursor: pointer; }
.support-body { flex: 1; overflow-y: auto; padding: 1rem .9rem; display: flex; flex-direction: column; gap: .5rem; background: var(--nd-bg, #f6f7fb); }
.support-greet { text-align: center; color: var(--nd-muted); font-size: .85rem; padding: 1.2rem .5rem; }
.support-greet i { font-size: 1.8rem; display: block; margin-bottom: .5rem; color: #a855f7; }
.sup-msg { display: flex; flex-direction: column; max-width: 82%; }
.sup-msg.me { align-self: flex-end; align-items: flex-end; }
.sup-msg.them { align-self: flex-start; align-items: flex-start; }
.sup-bubble { padding: .5rem .8rem; border-radius: 14px; font-size: .88rem; line-height: 1.4; word-break: break-word; }
.sup-msg.me .sup-bubble { background: linear-gradient(135deg, #6d5dfc, #a855f7); color: #fff; border-bottom-right-radius: 4px; }
.sup-msg.them .sup-bubble { background: var(--nd-surface, #fff); border: 1px solid var(--nd-border); border-bottom-left-radius: 4px; }
.sup-time { font-size: .66rem; color: var(--nd-muted); margin-top: 2px; }
.sup-del { border: none; background: none; color: var(--nd-muted); cursor: pointer; padding: 0 2px; font-size: .72rem; opacity: 0; transition: opacity .15s, color .15s; }
.sup-msg:hover .sup-del { opacity: .75; }
.sup-del:hover { color: #ef4444; opacity: 1; }
.support-input { display: flex; gap: .4rem; padding: .6rem; border-top: 1px solid var(--nd-border); background: var(--nd-surface, #fff); }
.support-input .form-control { border-radius: 12px; }
.support-input .btn { border-radius: 12px; padding: .4rem .8rem; }

/* QR kod */
.qr-holder { background: #fff; border-radius: 14px; padding: 12px; display: inline-block; line-height: 0; }
.qr-holder img { display: block; }

/* Media bölməsi (YouTube/TikTok embed) */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.media-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.media-embed { position: relative; width: 100%; background: #000; }
.media-embed::before { content: ""; display: block; padding-top: 56.25%; }
.media-embed.media-tiktok::before { padding-top: 150%; }
.media-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media-foot { display: flex; align-items: center; gap: .5rem; padding: .6rem .75rem; }
.media-title { flex: 1; min-width: 0; font-size: .85rem; font-weight: 600; }
.media-badge { display: inline-flex; align-items: center; font-size: .72rem; font-weight: 700; padding: .2rem .5rem; border-radius: 7px; color: #fff; white-space: nowrap; }
.media-badge-youtube { background: #ff0000; }
.media-badge-tiktok { background: #000; }
.media-del { color: var(--nd-muted); padding: .2rem .45rem; }
.media-del:hover { color: #ef4444; }

/* Sayt baxış statistikası */
.badge-live { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .8rem; border-radius: 999px; background: rgba(34,197,94,.12); color: #16a34a; font-weight: 600; font-size: .82rem; white-space: nowrap; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.5); animation: supPulse 1.8s infinite; }
.border-bottom-soft { border-bottom: 1px solid var(--nd-border); }
.border-bottom-soft:last-child { border-bottom: none; }

/* Dəstək online/yazır göstəricisi */
.support-head-info { display: flex; flex-direction: column; gap: 1px; }
.support-head-title { font-weight: 700; }
.support-status { display: flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 500; opacity: .92; }
.support-chat-head .support-status { color: var(--nd-muted); }
.sup-dot { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; display: inline-block; flex: 0 0 auto; }
.sup-dot.off { background: #94a3b8; }
.sup-dot.on { background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.5); animation: supPulse 1.8s infinite; }
.sup-dot.typing { background: #22c55e; animation: supPulse 1s infinite; }
@keyframes supPulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); } 70% { box-shadow: 0 0 0 6px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.sup-bubble.sup-typing { display: inline-flex; gap: 4px; align-items: center; padding: .6rem .8rem; }
.sup-bubble.sup-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--nd-muted, #94a3b8); display: inline-block; animation: supType 1.3s infinite; }
.sup-bubble.sup-typing span:nth-child(2) { animation-delay: .2s; }
.sup-bubble.sup-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes supType { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }

/* Admin dəstək paneli */
.support-state-ic { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; color: #fff; font-size: 1.35rem; }
.support-state-ic.on { background: linear-gradient(135deg, #22c55e, #16a34a); }
.support-state-ic.off { background: linear-gradient(135deg, #94a3b8, #64748b); }
.support-threads { max-height: 70vh; overflow-y: auto; }
.support-thread { display: flex; align-items: center; gap: .7rem; padding: .6rem; border-radius: 12px; text-decoration: none; color: inherit; }
.support-thread:hover { background: rgba(109,93,252,.06); }
.support-thread.active { background: rgba(109,93,252,.12); }
.support-chat { display: flex; flex-direction: column; height: 70vh; padding: 0; overflow: hidden; }
.support-chat-head { display: flex; align-items: center; gap: .7rem; padding: .85rem 1rem; border-bottom: 1px solid var(--nd-border); }
.support-chat-body { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .5rem; background: var(--nd-bg, #f6f7fb); }
.support-chat-input { display: flex; gap: .5rem; padding: .7rem; border-top: 1px solid var(--nd-border); }
