/* ============================================
   VIDUPLOAD – Self-contained stylesheet
   Design language mirrors converter/compry
   (tokens copied from ../css/style.css so this
   file works standalone AND behind the proxy)
   ============================================ */

/* Selbst-gehostete Schrift statt Google-Fonts-Hotlink (/fonts/ = nginx-Root,
   same-origin auch unter /vidupload/). */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin-var.woff2') format('woff2');
}

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

[hidden] { display: none !important; }

:root {
    --primary: #2997ff;
    --primary-dark: #0071e3;
    --accent: #bf5af2;
    --accent-alt: #5e5ce6;
    --bg: #0a0a0f;
    --bg-card: rgba(28, 28, 30, 0.8);
    --bg-input: rgba(255, 255, 255, 0.05);
    --text: #f5f5f7;
    --text-muted: #a1a1a6;
    --border: rgba(255, 255, 255, 0.08);
    --success: #30d158;
    --warn: #ff9f0a;
    --danger: #ff453a;
    --transition: 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-spring: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --nav-bg: rgba(10, 10, 15, 0.72);
    --sidebar-bg: rgba(10, 10, 15, 0.92);
    --radius-full: 980px;
    --glow-primary: rgba(41, 151, 255, 0.15);
    --glow-accent: rgba(191, 90, 242, 0.15);
}

[data-theme="light"] {
    --primary: #0071e3;
    --primary-dark: #0077ed;
    --accent: #bf5af2;
    --bg: #fbfbfd;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-input: rgba(0, 0, 0, 0.03);
    --text: #1d1d1f;
    --text-muted: #515154;
    --border: rgba(0, 0, 0, 0.08);
    --nav-bg: rgba(255, 255, 255, 0.72);
    --sidebar-bg: rgba(255, 255, 255, 0.95);
    --glow-primary: rgba(0, 113, 227, 0.08);
    --glow-accent: rgba(191, 90, 242, 0.08);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    min-height: 100dvh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

button { font-family: inherit; }

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* --- Custom scrollbar --- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 999px;
    border: 2px solid var(--bg);
}
* { scrollbar-width: thin; scrollbar-color: var(--primary) transparent; }

/* --- Page shell + fixed radial glow --- */
.vu-body {
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    z-index: 1;
}
.vu-body::before {
    content: '';
    position: fixed;
    top: -25%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 900px;
    max-width: 130vw;
    background: radial-gradient(circle, rgba(41, 151, 255, 0.07) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    animation: vuGlow 9s ease-in-out infinite alternate;
}
[data-theme="light"] .vu-body::before {
    background: radial-gradient(circle, rgba(0, 113, 227, 0.05) 0%, transparent 70%);
}
@keyframes vuGlow {
    0% { transform: translateX(-50%) scale(1); opacity: 1; }
    100% { transform: translateX(-50%) scale(1.25); opacity: 0.55; }
}

/* --- Floating orbs (site pattern) --- */
.hero-orbs {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: orbFloat 20s ease-in-out infinite;
}
.hero-orb-1 {
    width: 500px; height: 500px;
    background: var(--glow-primary);
    top: -10%; right: -10%;
    animation-duration: 18s;
}
.hero-orb-2 {
    width: 400px; height: 400px;
    background: var(--glow-accent);
    bottom: -10%; left: -10%;
    animation-delay: -5s;
    animation-duration: 22s;
}
.hero-orb-3 {
    width: 300px; height: 300px;
    background: linear-gradient(135deg, var(--glow-primary), var(--glow-accent));
    top: 40%; left: 50%;
    animation-delay: -10s;
    animation-duration: 25s;
}
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(15px, 30px) scale(1.05); }
}

/* --- Top bar --- */
.cv-topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    height: 56px;
    background: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
}
.cv-brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    color: var(--text);
}
.cv-brand-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 0 14px rgba(41, 151, 255, 0.6);
    animation: vuDotPulse 3s ease-in-out infinite;
}
@keyframes vuDotPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 14px rgba(41,151,255,0.6); }
    50% { transform: scale(1.25); box-shadow: 0 0 22px rgba(191,90,242,0.7); }
}

/* --- Theme toggle (site pattern) --- */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: var(--radius-full);
    background: transparent;
    border: none;
    color: var(--text-muted);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.theme-toggle:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}
[data-theme="light"] .theme-toggle:hover { background: rgba(0, 0, 0, 0.05); }
.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    position: absolute;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.theme-toggle .icon-sun { opacity: 0; transform: scale(0.5) rotate(-90deg); }
.theme-toggle .icon-moon { opacity: 1; transform: scale(1) rotate(0deg); }
[data-theme="light"] .theme-toggle .icon-sun { opacity: 1; transform: scale(1) rotate(0deg); }
[data-theme="light"] .theme-toggle .icon-moon { opacity: 0; transform: scale(0.5) rotate(90deg); }
[data-theme="light"] .theme-toggle { color: #f59e0b; }

/* --- Main layout --- */
.cv-main {
    max-width: 880px;
    margin: 0 auto;
    padding: 8.5rem 1.5rem 4.5rem;
    position: relative;
    z-index: 1;
}

/* --- Hero --- */
.cv-hero {
    text-align: center;
    margin-bottom: 3rem;
    animation: vuHeroReveal 1.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes vuHeroReveal {
    from { opacity: 0; transform: translateY(34px) scale(0.98); filter: blur(8px); }
    to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
.cv-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-full);
    background: rgba(41, 151, 255, 0.1);
    border: 1px solid rgba(41, 151, 255, 0.22);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}
.cv-eyebrow .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--primary);
    animation: livePulseDot 1.6s ease-in-out infinite;
}
@keyframes livePulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}
.cv-title {
    font-family: var(--font-heading);
    font-size: clamp(2.6rem, 8vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.04;
    margin-bottom: 1rem;
    background: linear-gradient(135deg,
        var(--text) 0%, var(--primary) 28%, var(--accent) 52%, var(--primary) 76%, var(--text) 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 8s ease-in-out infinite;
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.cv-sub {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- Buttons (site pattern) --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
    position: relative;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
    overflow: hidden;
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 100%);
    pointer-events: none;
    border-radius: var(--radius-full) var(--radius-full) 0 0;
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: scale(1.04);
    box-shadow: 0 4px 20px rgba(41, 151, 255, 0.3);
}
.btn-glow { position: relative; }
.btn-glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--primary));
    background-size: 200% 200%;
    z-index: -1;
    opacity: 0;
    filter: blur(12px);
    transition: opacity 0.4s ease;
    animation: gradientShift 4s ease-in-out infinite;
}
.btn-glow:hover::after { opacity: 0.6; }
.btn-outline {
    background: transparent;
    color: var(--primary);
    position: relative;
}
.btn-outline:hover { color: var(--primary-dark); }
.btn-outline::after {
    content: '';
    position: absolute;
    bottom: 8px; left: 50%;
    width: 0; height: 1px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.btn-outline:hover::after { width: 55%; }

.cv-btn-big {
    font-size: 1.05rem;
    padding: 0.95rem 2.2rem;
    overflow: hidden;
    position: relative;
}
.cv-btn-big:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}
/* shine sweep */
.cv-btn-big::after {
    content: '';
    position: absolute;
    top: 0; left: -120%;
    width: 80%; height: 100%;
    background: linear-gradient(110deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-20deg);
    transition: none;
}
.cv-btn-big:not(:disabled):hover::after { animation: vuShine 0.9s ease; }
@keyframes vuShine {
    from { transform: translateX(0) skewX(-20deg); }
    to { transform: translateX(310%) skewX(-20deg); }
}
.btn-full { width: 100%; }

/* Small round icon buttons (list actions, remove) */
.vu-icon-btn {
    flex-shrink: 0;
    width: 34px; height: 34px;
    border: none;
    background: rgba(255,255,255,0.06);
    color: var(--text-muted);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
[data-theme="light"] .vu-icon-btn { background: rgba(0,0,0,0.05); }
.vu-icon-btn:hover {
    background: rgba(41,151,255,0.15);
    color: var(--primary);
    transform: translateY(-2px);
}
.vu-icon-btn.vu-danger:hover {
    background: rgba(255,69,58,0.15);
    color: var(--danger);
    transform: rotate(8deg) scale(1.08);
}
.vu-icon-btn svg { width: 16px; height: 16px; }
.vu-icon-btn.copied {
    background: rgba(48,209,88,0.16);
    color: var(--success);
}

/* --- Glass card (site pattern) --- */
.cv-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 2.25rem;
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
    transform-style: preserve-3d;
    will-change: transform;
    animation: vuCardIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}
@keyframes vuCardIn {
    from { opacity: 0; transform: translateY(40px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
[data-theme="light"] .cv-card { box-shadow: 0 40px 90px rgba(0, 0, 0, 0.08); }
.cv-card-shine {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%),
        rgba(41, 151, 255, 0.12), transparent 60%);
    z-index: 0;
}
.cv-card:hover .cv-card-shine { opacity: 1; }
.cv-card > *:not(.cv-card-shine) { position: relative; z-index: 1; }

/* --- Alert --- */
.vu-alert {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.9rem 1.2rem;
    border-radius: 14px;
    background: rgba(255, 69, 58, 0.08);
    border: 1px solid rgba(255, 69, 58, 0.25);
    color: var(--danger);
    font-size: 0.92rem;
    margin-bottom: 1.5rem;
    animation: vuStageIn 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.vu-alert svg { flex-shrink: 0; width: 20px; height: 20px; }

/* --- Success box --- */
.vu-success { margin-bottom: 2rem; }
.cv-result { text-align: center; padding: 0.5rem 0; }
.cv-check {
    width: 92px; height: 92px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: rgba(48,209,88,0.12);
    display: flex; align-items: center; justify-content: center;
    animation: vuPop 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes vuPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}
.cv-check svg { width: 48px; height: 48px; }
.cv-check circle {
    stroke: var(--success); stroke-width: 3; fill: none;
    stroke-dasharray: 166; stroke-dashoffset: 166;
    animation: vuCheckCircle 0.6s cubic-bezier(0.65,0,0.45,1) forwards;
}
.cv-check path {
    stroke: var(--success); stroke-width: 4; fill: none;
    stroke-linecap: round; stroke-linejoin: round;
    stroke-dasharray: 48; stroke-dashoffset: 48;
    animation: vuCheckMark 0.4s cubic-bezier(0.65,0,0.45,1) 0.45s forwards;
}
@keyframes vuCheckCircle { to { stroke-dashoffset: 0; } }
@keyframes vuCheckMark { to { stroke-dashoffset: 0; } }
.cv-result h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.35rem;
}
.cv-result-name {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    word-break: break-all;
}

/* --- Link box (share link + copy) --- */
.vu-linkbox {
    display: flex;
    gap: 0.6rem;
    align-items: stretch;
    max-width: 560px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.vu-linkbox input {
    flex: 1;
    min-width: 220px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.65rem 0.9rem;
    border-radius: 14px;
    font-family: ui-monospace, 'SF Mono', Menlo, monospace;
    font-size: 0.84rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}
.vu-linkbox input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(41,151,255,0.14);
}
.vu-copy-btn {
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
}
.vu-copy-btn svg { width: 15px; height: 15px; }

/* --- Dropzone (cv-drop pattern) --- */
.cv-drop {
    position: relative;
    border-radius: 22px;
    padding: 3.5rem 2rem;
    text-align: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.025);
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    margin-bottom: 1.5rem;
}
[data-theme="light"] .cv-drop { background: rgba(0,0,0,0.015); }
.cv-drop::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background:
        repeating-linear-gradient(90deg, var(--primary) 0 14px, transparent 14px 28px);
    background-size: 200% 2px;
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0.35;
    transition: opacity 0.35s ease;
    pointer-events: none;
}
/* Wie im Converter: der Lauf des gestrichelten Rahmens verschiebt
   background-position über die ganze Fläche – ein Neuzeichnen pro Bild.
   Läuft deshalb nur noch beim Überfahren und beim Ziehen. */
@media (hover: hover) and (pointer: fine) {
    .cv-drop:hover { background: rgba(41, 151, 255, 0.05); transform: translateY(-2px); }
    .cv-drop:hover::before { opacity: 0.6; animation: vuBorderDance 18s linear infinite; }
}
.cv-drop.dragover {
    background: rgba(41, 151, 255, 0.1);
    transform: scale(1.015);
    box-shadow: 0 0 0 1px rgba(41,151,255,0.4), 0 24px 60px rgba(41,151,255,0.18);
}
.cv-drop.dragover::before { opacity: 1; animation: vuBorderDance 4s linear infinite; }
@keyframes vuBorderDance {
    to { background-position: 200% 0; }
}
.cv-drop-icon {
    width: 76px; height: 76px;
    margin: 0 auto 1.25rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(41,151,255,0.18), rgba(191,90,242,0.18));
    color: var(--primary);
    animation: vuFloat 4.5s ease-in-out infinite;
}
.cv-drop-icon svg { width: 38px; height: 38px; }
.cv-drop.dragover .cv-drop-icon { animation: vuBounce 0.7s ease infinite; }
@keyframes vuFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}
@keyframes vuBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-7px) scale(1.08); }
}
.cv-drop h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.4rem;
}
.cv-drop p { color: var(--text-muted); font-size: 0.95rem; }
.cv-drop .cv-browse { color: var(--primary); font-weight: 600; }
.cv-drop .vu-hint {
    display: block;
    margin-top: 0.6rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    opacity: 0.75;
}

/* --- File info card --- */
.cv-file {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 18px;
    margin-bottom: 1.5rem;
    animation: vuStageIn 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-theme="light"] .cv-file { background: rgba(0,0,0,0.025); }
@keyframes vuStageIn {
    from { opacity: 0; transform: translateY(18px) scale(0.98); filter: blur(6px); }
    to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
.cv-file-icon {
    flex-shrink: 0;
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, rgba(41,151,255,0.2), rgba(191,90,242,0.2));
    color: var(--primary);
}
.cv-file-info { flex: 1; min-width: 0; }
.cv-file-name {
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.98rem;
}
.cv-file-meta { color: var(--text-muted); font-size: 0.82rem; margin-top: 0.15rem; }

/* --- Progress ring (cv-ring pattern) --- */
.cv-progress {
    text-align: center;
    padding: 1rem 0;
    animation: vuStageIn 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.cv-ring {
    width: 140px; height: 140px;
    margin: 0 auto 1.5rem;
    position: relative;
}
.cv-ring svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.cv-ring-bg { fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 8; }
[data-theme="light"] .cv-ring-bg { stroke: rgba(0,0,0,0.07); }
.cv-ring-fg {
    fill: none;
    stroke: url(#vuGrad);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 377;
    stroke-dashoffset: 377;
    transition: stroke-dashoffset 0.4s cubic-bezier(0.16,1,0.3,1);
}
.cv-ring-pct {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}
.cv-progress-status {
    color: var(--text);
    font-weight: 600;
    font-size: 1.02rem;
    margin-bottom: 0.35rem;
    font-variant-numeric: tabular-nums;
}
.cv-progress-hint { color: var(--text-muted); font-size: 0.85rem; }

/* --- Upload log --- */
.cv-log {
    margin-bottom: 1.5rem;
    font-family: ui-monospace, 'SF Mono', Menlo, monospace;
    font-size: 0.72rem;
    color: var(--text-muted);
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.6rem 0.8rem;
    text-align: left;
    animation: vuStageIn 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-theme="light"] .cv-log { background: rgba(0,0,0,0.04); }
.vu-log-entries {
    max-height: 160px;
    overflow-y: auto;
    line-height: 1.8;
}
.log-entry {
    padding: 0.1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    word-break: break-word;
}
[data-theme="light"] .log-entry { border-bottom-color: rgba(0,0,0,0.05); }
.log-time { color: var(--text-muted); opacity: 0.6; margin-right: 0.5rem; }
.log-info { color: var(--text-muted); }
.log-progress { color: var(--primary); }
.log-success { color: var(--success); font-weight: 600; }
.log-error { color: var(--danger); font-weight: 600; }

.spinner {
    display: inline-block;
    width: 15px; height: 15px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: vuSpin 0.6s linear infinite;
    vertical-align: middle;
}
@keyframes vuSpin { to { transform: rotate(360deg); } }

/* --- Actions row --- */
.cv-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* --- Section heading --- */
.vu-h2 {
    text-align: center;
    font-family: var(--font-heading);
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.vu-list-section, .vu-features { margin-top: 4.5rem; }
.vu-list-section .cv-sub, .vu-features .cv-sub { margin-bottom: 2rem; }

/* --- File list --- */
.vu-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 2rem;
}
.vu-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem 1.15rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform 0.45s cubic-bezier(0.16,1,0.3,1), border-color 0.45s ease, box-shadow 0.45s ease,
                opacity 1s cubic-bezier(0.16,1,0.3,1);
}
.vu-item:hover {
    transform: translateY(-3px);
    border-color: rgba(41,151,255,0.3);
    box-shadow: 0 18px 44px rgba(0,0,0,0.28);
}
[data-theme="light"] .vu-item:hover { box-shadow: 0 18px 44px rgba(0,0,0,0.07); }
.vu-item-icon {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
    background: linear-gradient(135deg, rgba(41,151,255,0.16), rgba(191,90,242,0.16));
}
.vu-item-info { flex: 1; min-width: 0; }
.vu-item-name {
    color: var(--text);
    font-weight: 600;
    font-size: 0.94rem;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.25s ease;
}
.vu-item-name:hover { color: var(--primary); }
.vu-item-meta {
    font-size: 0.76rem;
    color: var(--text-muted);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.vu-item-actions { display: flex; gap: 0.4rem; flex-shrink: 0; align-items: center; }
.vu-exp-ok { color: var(--success); }
.vu-exp-warn { color: var(--warn); }
.vu-exp-danger { color: var(--danger); }

/* --- Feature cards ("So funktioniert's") --- */
.vu-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}
.vu-feature {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform 0.5s cubic-bezier(0.16,1,0.3,1), border-color 0.5s ease, box-shadow 0.5s ease,
                opacity 1s cubic-bezier(0.16,1,0.3,1), filter 1s cubic-bezier(0.16,1,0.3,1);
}
.vu-feature:hover {
    transform: translateY(-4px);
    border-color: rgba(41,151,255,0.25);
    box-shadow: 0 24px 50px rgba(0,0,0,0.25);
}
[data-theme="light"] .vu-feature:hover { box-shadow: 0 24px 50px rgba(0,0,0,0.07); }
.vu-feature-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    background: linear-gradient(135deg, rgba(41,151,255,0.16), rgba(191,90,242,0.16));
    margin-bottom: 0.9rem;
}
.vu-feature h3 {
    font-family: var(--font-heading);
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.4rem;
}
.vu-feature p {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text-muted);
}

/* --- Footer --- */
.cv-footer {
    text-align: center;
    padding: 2.5rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    position: relative;
    z-index: 1;
}
.cv-footer .priv { display: block; margin-top: 0.35rem; opacity: 0.7; font-size: 0.76rem; }

/* --- Toasts --- */
.cv-toasts {
    position: fixed;
    bottom: 1.5rem; right: 1.5rem;
    z-index: 5000;
    display: flex; flex-direction: column; gap: 0.6rem;
    max-width: 360px;
}
.cv-toast {
    display: flex; align-items: center; gap: 0.7rem;
    padding: 0.85rem 1.1rem;
    border-radius: 14px;
    background: var(--sidebar-bg);
    border: 1px solid var(--border);
    backdrop-filter: saturate(180%) blur(30px);
    -webkit-backdrop-filter: saturate(180%) blur(30px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
    color: var(--text);
    font-size: 0.88rem;
    animation: vuToastIn 0.45s cubic-bezier(0.16,1,0.3,1);
}
.cv-toast.out { animation: vuToastOut 0.4s cubic-bezier(0.16,1,0.3,1) forwards; }
@keyframes vuToastIn { from { opacity: 0; transform: translateX(40px) scale(0.95); } to { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes vuToastOut { to { opacity: 0; transform: translateX(40px) scale(0.95); } }
.cv-toast .ic { flex-shrink: 0; width: 20px; display: flex; justify-content: center; }
.cv-toast.ok .ic { color: var(--success); }
.cv-toast.err .ic { color: var(--danger); }
.cv-toast.info .ic { color: var(--primary); }

/* --- Scroll reveals (site pattern + variants) --- */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

.reveal-blur {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(10px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-blur.visible { opacity: 1; transform: translateY(0); filter: blur(0); }

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* --- Entrance helper (download page) --- */
.vu-fade {
    opacity: 0;
    animation: vuFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes vuFadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Download page --- */
.vu-dl-main { max-width: 860px; }
.vu-dl-card { padding: 0; }
.vu-preview {
    background: #000;
    position: relative;
    border-radius: 28px 28px 0 0;
    overflow: hidden;
}
.vu-player { width: 100%; max-height: 480px; display: block; background: #000; }
.vu-preview-img { max-width: 100%; max-height: 480px; border-radius: 12px; }
.vu-preview-pad { padding: 1.25rem; text-align: center; }
.vu-no-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 3.25rem 1rem;
    color: var(--text-muted);
    background: linear-gradient(135deg, rgba(41,151,255,0.06), rgba(191,90,242,0.06));
}
.vu-no-preview .vu-big-icon {
    font-size: 3rem;
    animation: vuFloat 4.5s ease-in-out infinite;
}
.vu-dl-info { padding: 1.75rem 2rem 2rem; }
.vu-dl-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    word-break: break-word;
    margin-bottom: 0.9rem;
}
.vu-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.5rem;
}
.vu-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all 0.3s ease;
}
[data-theme="light"] .vu-chip { background: rgba(0,0,0,0.03); }
.vu-chip:hover {
    color: var(--primary);
    border-color: rgba(41,151,255,0.3);
    background: rgba(41,151,255,0.08);
    transform: translateY(-1px);
}
.vu-dl-btn {
    width: 100%;
    margin-bottom: 1.5rem;
    font-weight: 600;
}
.vu-share-section {
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
}
.vu-share-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.55rem;
}
.vu-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color 0.25s ease, transform 0.25s ease;
}
.vu-back-link:hover { color: var(--primary); transform: translateX(-3px); }
.vu-back-wrap { text-align: center; }

/* --- 404 page --- */
.vu-404 {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.25rem;
    position: relative;
    z-index: 1;
}
.vu-404-code {
    font-family: var(--font-heading);
    font-size: clamp(6rem, 22vw, 11rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--primary));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 8s ease-in-out infinite, vuFloat404 5s ease-in-out infinite;
    filter: drop-shadow(0 0 34px rgba(41, 151, 255, 0.35));
    margin-bottom: 0.75rem;
}
@keyframes vuFloat404 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}
.vu-404 h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
    animation: vuFadeUp 0.8s cubic-bezier(0.16,1,0.3,1) 0.15s both;
}
.vu-404 p {
    color: var(--text-muted);
    font-size: 0.98rem;
    margin-bottom: 1.75rem;
    animation: vuFadeUp 0.8s cubic-bezier(0.16,1,0.3,1) 0.3s both;
}
.vu-404 .btn { animation: vuFadeUp 0.8s cubic-bezier(0.16,1,0.3,1) 0.45s both; }

/* --- Responsive --- */
@media (max-width: 640px) {
    .cv-main { padding: 7rem 1.1rem 3.5rem; }
    .cv-card { padding: 1.4rem; border-radius: 22px; }
    .cv-drop { padding: 2.5rem 1rem; }
    .cv-actions { flex-direction: column; }
    .cv-actions .btn { width: 100%; justify-content: center; }
    .cv-toasts { left: 1rem; right: 1rem; max-width: none; }
    .vu-item { flex-wrap: wrap; }
    .vu-item-info { flex-basis: calc(100% - 60px); }
    .vu-item-actions { margin-left: auto; }
    .vu-dl-info { padding: 1.25rem 1.25rem 1.5rem; }
    .vu-dl-title { font-size: 1.12rem; }
    .vu-linkbox { flex-direction: column; }
    .vu-linkbox input { min-width: 0; }
}

/* --- Reduced motion: disable all heavy animations --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.05ms !important;
    }
    .hero-orb,
    .vu-body::before,
    .cv-brand-dot,
    .cv-drop-icon,
    .cv-drop::before,
    .cv-title,
    .cv-eyebrow .dot,
    .btn-glow::after,
    .vu-404-code,
    .vu-no-preview .vu-big-icon,
    .spinner { animation: none !important; }
    .reveal, .reveal-scale, .reveal-blur, .vu-fade {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
    .cv-card { transform: none !important; }
}
