:root {
    --bg-color: #030303;
    --surface-color: #0d0d0d;
    --surface-hover: #1a1a1a;
    --card-bg: #0a0a0a;
    --primary-color: #00ff9d;
    --primary-dim: #00cc7d;
    --primary-glow: rgba(0, 255, 157, 0.15);
    --text-primary: #f0f0f0;
    --text-secondary: #666;
    --danger-color: #ff3b3b;
    --warning-color: #ffaa00;
    --border-color: #1a1a1a;
    --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

* {
    box-sizing: border-box;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-stack);
    background-color: var(--bg-color);
    color: var(--text-primary);
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ── Scrollbar ─────────────────────────────────── */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 2px;
}

/* ── Utils ─────────────────────────────────────── */
.hidden {
    display: none !important;
}

/* ── Layout ────────────────────────────────────── */
#app {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-y: auto;
}

/* ── Brand ─────────────────────────────────────── */
.vtxr-brand {
    font-family: var(--font-mono);
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--primary-color);
    text-transform: uppercase;
    text-shadow: 0 0 20px var(--primary-glow), 0 0 40px rgba(0, 255, 157, 0.08);
}

/* ── Views ─────────────────────────────────────── */
.view {
    padding: 20px;
    opacity: 0;
    animation: fadeIn 0.4s ease forwards;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ── Auth Container ────────────────────────────── */
.auth-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 380px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 35px 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px var(--primary-glow);
}

.auth-header {
    margin-bottom: 28px;
}

.auth-header h1 {
    font-size: 1.6rem;
    margin: 0 0 6px;
}

.subtle-text {
    color: var(--text-secondary);
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin: 0;
}

/* ── Inputs ────────────────────────────────────── */
.input-group {
    margin-bottom: 16px;
    width: 100%;
    text-align: left;
}

.input-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

input {
    width: 100%;
    padding: 14px 16px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    color: white;
    border-radius: 10px;
    font-size: 15px;
    font-family: var(--font-stack);
    outline: none;
    transition: border 0.3s, box-shadow 0.3s;
}

input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

input::placeholder {
    color: #444;
}

/* ── Buttons ───────────────────────────────────── */
.btn-primary {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dim));
    color: #000;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: transform 0.15s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    margin-top: 8px;
    font-family: var(--font-stack);
}

.btn-primary:hover {
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:active {
    transform: scale(0.97);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-loader {
    display: inline-block;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Auth Links ────────────────────────────────── */
.auth-link {
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.auth-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.auth-link a:hover {
    opacity: 0.8;
}

/* ── Warning Box ───────────────────────────────── */
.warning-box {
    background: rgba(255, 59, 59, 0.08);
    border: 1px solid rgba(255, 59, 59, 0.2);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 22px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    text-align: left;
}

.warning-box p {
    margin: 0;
    font-size: 0.78rem;
    color: #ccc;
    line-height: 1.5;
}

.warning-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* ── Verification Code Input ───────────────────── */
.verify-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.verify-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0 0 20px;
}

.code-input-container {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.code-input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 1.4rem;
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--primary-color);
    background: var(--surface-color);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 0;
    text-transform: uppercase;
    transition: border 0.3s, box-shadow 0.3s;
    caret-color: var(--primary-color);
}

.code-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-glow), 0 0 15px var(--primary-glow);
}

/* ── Loading Bar (Intro) ───────────────────────── */
.loading-bar {
    width: 140px;
    height: 3px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}

.loading-fill {
    width: 0%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 2px;
    animation: loadFill 1.5s ease forwards;
    box-shadow: 0 0 8px var(--primary-glow);
}

@keyframes loadFill {
    0% {
        width: 0%;
    }

    80% {
        width: 85%;
    }

    100% {
        width: 100%;
    }
}

.logo-glow {
    animation: subtleGlow 3s ease-in-out infinite alternate;
}

@keyframes subtleGlow {
    from {
        filter: drop-shadow(0 0 10px var(--primary-glow));
    }

    to {
        filter: drop-shadow(0 0 25px rgba(0, 255, 157, 0.25));
    }
}

/* ── Dashboard Header ──────────────────────────── */
.dash-header {
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    background: rgba(5, 5, 5, 0.97);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-email {
    font-size: 0.7rem;
    color: var(--text-secondary);
    background: var(--surface-color);
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.header-icon {
    font-size: 1.2rem;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.2s;
}

.header-icon:hover {
    background: var(--surface-hover);
}

.breadcrumbs {
    padding: 10px 18px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    border-bottom: 1px solid #0e0e0e;
    font-family: var(--font-mono);
}

/* ── Grid ──────────────────────────────────────── */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    padding-bottom: 100px;
}

.folder-item,
.file-item {
    background: var(--surface-color);
    border-radius: 14px;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.3s;
    border: 1px solid transparent;
}

.folder-item:hover,
.file-item:hover {
    background: var(--surface-hover);
    border-color: var(--border-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.folder-item:active,
.file-item:active {
    transform: scale(0.96);
}

.item-icon {
    font-size: 2rem;
    margin-bottom: 6px;
}

.item-name {
    font-size: 11px;
    text-align: center;
    width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 4px;
    color: var(--text-secondary);
}

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: white;
    background: rgba(0, 0, 0, 0.4);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    backdrop-filter: blur(2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* ── View Modes ────────────────────────────────── */
.grid-container.view-portrait .file-item {
    aspect-ratio: 3/4;
}

.grid-container.view-landscape .file-item {
    aspect-ratio: 16/9;
}

.folder-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.5;
}

.file-thumb {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.file-item:hover .file-thumb {
    opacity: 1;
}

/* ── FAB ───────────────────────────────────────── */
.fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dim));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 300;
    box-shadow: 0 6px 24px rgba(0, 255, 157, 0.3);
    cursor: pointer;
    z-index: 100;
    color: black;
    transition: transform 0.2s, box-shadow 0.3s;
}

.fab:hover {
    box-shadow: 0 8px 30px rgba(0, 255, 157, 0.45);
}

.fab:active {
    transform: scale(0.88);
}

/* ── Modals ─────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-box {
    background: var(--card-bg);
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 30px var(--primary-glow), 0 20px 60px rgba(0, 0, 0, 0.6);
    padding: 28px;
    border-radius: 16px;
    width: 90%;
    max-width: 380px;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
}

.modal-overlay.active .modal-box {
    transform: translateY(0) scale(1);
}

.modal-title {
    font-family: var(--font-mono);
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-box p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.modal-btn {
    flex: 1;
    padding: 13px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: var(--font-stack);
    transition: transform 0.15s, opacity 0.2s;
    letter-spacing: 0.5px;
}

.modal-btn:active {
    transform: scale(0.96);
}

.btn-confirm {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dim));
    color: black;
}

.btn-cancel {
    background: #1a1a1a;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* ── Toast ──────────────────────────────────────── */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 0.85rem;
    color: var(--text-primary);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    animation: toastIn 0.3s ease, toastOut 0.3s ease 3.7s forwards;
    max-width: 320px;
    border-left: 3px solid var(--primary-color);
}

.toast.error {
    border-left-color: var(--danger-color);
}

.toast.success {
    border-left-color: var(--primary-color);
}

@keyframes toastIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* ═══════════════════════════════════════════════════════ */
/* KI STUDIO                                               */
/* ═══════════════════════════════════════════════════════ */

.ki-content {
    padding: 18px;
    overflow-y: auto;
    height: calc(100dvh - 55px);
}

.ki-section {
    margin-bottom: 18px;
}

.ki-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

/* ── AI Dropzone ───────────────────────────────────── */
.ai-dropzone {
    border: 2px dashed #2a2a2a;
    border-radius: 14px;
    padding: 30px;
    text-align: center;
    transition: border-color 0.3s, background 0.3s;
    cursor: pointer;
}

.ai-dropzone.dragover {
    border-color: var(--primary-color);
    background: rgba(0, 255, 157, 0.04);
}

.dropzone-content p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 10px 0 14px;
}

.dropzone-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-small {
    padding: 9px 18px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    color: var(--text-primary);
    font-size: 0.8rem;
    cursor: pointer;
    font-family: var(--font-stack);
    transition: border-color 0.2s, background 0.2s;
}

.btn-small:hover {
    border-color: var(--primary-color);
    background: var(--surface-hover);
}

.btn-small:active {
    transform: scale(0.96);
}

/* ── AI Input Preview ──────────────────────────────── */
.ai-input-preview {
    border-radius: 14px;
    overflow: hidden;
}

.ai-preview-img-wrap {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.ai-preview-img-wrap img {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    display: block;
}

.ai-remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #444;
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.ai-remove-btn:hover {
    background: var(--danger-color);
}

/* ── AI Prompt ─────────────────────────────────────── */
.ai-prompt {
    width: 100%;
    padding: 14px 16px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    color: white;
    border-radius: 12px;
    font-size: 14px;
    font-family: var(--font-stack);
    outline: none;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.3s, box-shadow 0.3s;
    line-height: 1.5;
}

.ai-prompt:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.ai-prompt::placeholder {
    color: #3a3a3a;
}

/* ── AI Generate Button ────────────────────────────── */
.ai-generate {
    margin-bottom: 18px;
    box-shadow: 0 4px 20px var(--primary-glow);
}

/* ── AI Loader ─────────────────────────────────────── */
.ai-loader {
    text-align: center;
    padding: 30px;
}

.ai-loader p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 14px;
}

.ai-loader-pulse {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    margin: 0 auto;
    animation: pulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 30px var(--primary-glow);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(0.6);
        opacity: 0.3;
    }

    50% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ── AI Result ─────────────────────────────────────── */
.ai-result {
    margin-bottom: 16px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 20px var(--primary-glow);
}

.ai-result-img {
    width: 100%;
    display: block;
    border-radius: 14px;
}

.ai-result-text {
    color: var(--text-secondary);
    font-size: 0.8rem;
    padding: 10px 14px;
    margin: 0;
    background: var(--surface-color);
    border-top: 1px solid var(--border-color);
}

/* ── AI Save Actions ───────────────────────────────── */
.ai-save-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.btn-secondary {
    flex: 0 0 auto;
    padding: 14px 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: var(--font-stack);
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    background: var(--surface-hover);
}

.btn-secondary:active {
    transform: scale(0.96);
}

/* ═══════════════════════════════════════════════════════ */
/* IMAGE SAFE — Secure Viewer                              */
/* ═══════════════════════════════════════════════════════ */

.image-safe {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.image-safe.active {
    opacity: 1;
    pointer-events: all;
}

.safe-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #1a1a1a;
    flex-shrink: 0;
    z-index: 10;
}

.safe-title {
    flex: 1;
    color: var(--text-primary);
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.safe-header-actions {
    display: flex;
    gap: 6px;
}

.safe-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid #2a2a2a;
    background: rgba(255, 255, 255, 0.06);
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
}

.safe-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary-color);
}

.safe-btn:active {
    transform: scale(0.92);
}

.safe-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    padding: 10px;
}

.safe-media {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

/* Folder covers */
.folder-cover {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: 1;
}

.folder-item {
    position: relative;
    overflow: hidden;
}

/* ── PASSKEY STYLES ──────────────────────────────────── */
.passkey-section {
    margin-top: 15px;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 18px 0;
    gap: 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.auth-divider span {
    color: var(--text-secondary, #888);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-passkey {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: var(--radius, 12px);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 165, 0, 0.05));
    color: #ffd700;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    letter-spacing: 0.5px;
}

.btn-passkey:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.1));
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
    transform: translateY(-1px);
}

.btn-passkey:active {
    transform: translateY(0);
}

/* ── SECURITY SCORE WIDGET ───────────────────────────── */
.security-score-widget {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 18px;
    margin: 10px 15px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.score-ring {
    position: relative;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}

.score-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.score-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 3;
}

.score-fill {
    fill: none;
    stroke: #00ff88;
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dasharray 1s ease, stroke 0.5s ease;
    filter: drop-shadow(0 0 4px currentColor);
}

.score-number {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    color: #00ff88;
    transition: color 0.5s ease;
}

.score-info {
    flex: 1;
    min-width: 0;
}

.score-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary, #fff);
}

.score-detail {
    font-size: 0.75rem;
    color: var(--text-secondary, #888);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── BATCH PROGRESS OVERLAY ──────────────────────────── */
.batch-progress-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
}

.batch-progress-card {
    background: linear-gradient(135deg, rgba(30, 30, 40, 0.95), rgba(20, 20, 30, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 35px 30px;
    width: 85%;
    max-width: 380px;
    text-align: center;
}

.batch-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.batch-bar-container {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin-bottom: 15px;
}

.batch-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--primary-color, #6c5ce7), #a855f7);
    transition: width 0.3s ease;
    box-shadow: 0 0 12px rgba(108, 92, 231, 0.5);
    width: 0%;
}

.batch-status {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-color, #6c5ce7);
    margin-bottom: 8px;
}

.batch-file {
    font-size: 0.8rem;
    color: var(--text-secondary, #888);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hidden {
    display: none !important;
}