/* RareAmateur – Dark Glass Design */
:root {
    --bg-deep: #050505;
    --bg-dark: #0d0d0d;
    --bg-mid: #161616;
    --bg-light: #222222;
    --glass-bg: rgba(24, 24, 24, 0.75);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    --blur: blur(24px);
    --accent: #e0e0e0;
    --accent-hover: #ffffff;
    --accent-muted: #888888;
    --text: rgba(255, 255, 255, 0.92);
    --text-muted: rgba(255, 255, 255, 0.45);
    --danger: #c0392b;
    --success: #27ae60;
    --warning: #d68910;
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --scrollbar-track: rgba(255, 255, 255, 0.04);
    --scrollbar-thumb-a: rgba(160, 160, 170, 0.35);
    --scrollbar-thumb-b: rgba(110, 110, 125, 0.28);
    --scrollbar-thumb-hover: rgba(200, 200, 210, 0.5);
    --header-fade-bg: #050505;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    user-select: none;
    -webkit-user-select: none;
}

body.site-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
}

input, textarea, [contenteditable="true"] {
    user-select: text;
    -webkit-user-select: text;
}

/* Background */
.bg-gradient {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(40, 40, 40, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(30, 30, 30, 0.3) 0%, transparent 50%),
        linear-gradient(160deg, #050505 0%, #0a0a0a 40%, #111111 70%, #080808 100%);
    z-index: -2;
}

.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: float 20s ease-in-out infinite;
}

.orb-1 { width: 500px; height: 500px; background: rgba(60, 60, 60, 0.15); top: -15%; left: -10%; }
.orb-2 { width: 400px; height: 400px; background: rgba(45, 45, 45, 0.12); bottom: 5%; right: -8%; animation-delay: -7s; }
.orb-3 { width: 350px; height: 350px; background: rgba(80, 80, 80, 0.08); top: 45%; left: 35%; animation-delay: -14s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

.main-content.container {
    max-width: min(1680px, 98vw);
    width: 100%;
    padding-left: max(1rem, 1.5vw);
    padding-right: max(1rem, 1.5vw);
}

/* Glass components */
.glass-card, .glass-nav {
    background: var(--glass-bg);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--glass-shadow);
}

.glass-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

.glass-input:focus {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.glass-input::placeholder { color: var(--text-muted); }

textarea.glass-input { resize: vertical; min-height: 80px; }

select.glass-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(180deg, #3a3a3a 0%, #222222 100%);
    color: var(--accent-hover);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(180deg, #4a4a4a 0%, #2a2a2a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    transform: translateY(-2px);
}

.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { filter: brightness(1.1); transform: translateY(-1px); }

.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

.btn-animated:active { transform: scale(0.96); }

.btn-animated::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-animated:hover::after { opacity: 1; }

/* Header */
.site-header {
    flex-shrink: 0;
    position: relative;
    z-index: 100;
    margin: 0;
    max-height: 15vh;
    overflow: hidden;
    border-radius: 0;
    border: none;
    isolation: isolate;
    background: linear-gradient(
        125deg,
        var(--header-c1, rgba(14, 14, 18, 0.96)) 0%,
        var(--header-c2, rgba(28, 28, 34, 0.94)) 42%,
        var(--header-c3, rgba(16, 16, 22, 0.96)) 78%,
        var(--header-c1, rgba(14, 14, 18, 0.96)) 100%
    );
    background-size: 260% 260%;
    animation: headerGradientFlow 16s ease-in-out infinite;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 140% at 15% 50%, var(--header-glow1, rgba(255, 255, 255, 0.04)) 0%, transparent 68%),
        radial-gradient(ellipse 80% 120% at 85% 50%, var(--header-glow2, rgba(255, 255, 255, 0.03)) 0%, transparent 62%);
    opacity: 0.9;
    animation: headerGlowPulse 11s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

.site-header::after {
    content: '';
    position: absolute;
    inset: -40% -20%;
    background: linear-gradient(
        105deg,
        transparent 42%,
        var(--header-shimmer, rgba(255, 255, 255, 0.07)) 50%,
        transparent 58%
    );
    animation: headerShimmer 9s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.site-header.header-themed {
    box-shadow: 0 12px 40px var(--header-shadow, rgba(0, 0, 0, 0.35));
}

.header-edge-blend {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: clamp(2rem, 5vh, 3.5rem);
    background: linear-gradient(
        to bottom,
        transparent 0%,
        color-mix(in srgb, var(--header-fade-bg, #050505) 25%, transparent) 45%,
        color-mix(in srgb, var(--header-fade-bg, #050505) 72%, transparent) 72%,
        var(--header-fade-bg, #050505) 100%
    );
    pointer-events: none;
    z-index: 2;
}

@keyframes headerGradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes headerGlowPulse {
    0% { opacity: 0.55; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.03); }
}

@keyframes headerShimmer {
    0%, 100% { transform: translateX(-35%) rotate(0.001deg); opacity: 0.35; }
    50% { transform: translateX(35%); opacity: 0.75; }
}

@media (prefers-reduced-motion: reduce) {
    .site-header,
    .site-header::before,
    .site-header::after {
        animation: none;
    }
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.header-inner {
    width: 100%;
    max-height: 15vh;
    padding: 0.5rem 1rem;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.header-brand {
    width: auto;
    flex: 1;
    max-height: 15vh;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    position: relative;
    z-index: 1;
}

.lang-switcher {
    display: flex;
    align-items: flex-end;
    gap: 0.3rem;
    flex-shrink: 0;
}

.lang-flag {
    position: relative;
    display: inline-flex;
    align-items: flex-end;
    width: 2.1rem;
    height: 1.65rem;
    text-decoration: none;
    border-radius: 6px;
    border: 2px solid transparent;
    padding: 0.1rem 0.15rem 0.1rem 0.35rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.lang-flag:hover {
    transform: translateY(-1px);
}

.lang-flag.is-active {
    border-color: rgba(212, 175, 55, 0.9);
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.35);
    background: rgba(212, 175, 55, 0.08);
}

.lang-flag__pole {
    position: absolute;
    left: 0.12rem;
    top: 0.15rem;
    bottom: 0.15rem;
    width: 2px;
    border-radius: 1px;
    background: linear-gradient(180deg, #c0c0c0, #707070);
    z-index: 0;
}

.lang-flag__cloth {
    display: block;
    line-height: 0;
    transform-origin: left center;
    animation: flag-wave 2.6s ease-in-out infinite;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
    z-index: 1;
    user-select: none;
}

.lang-flag__cloth img {
    display: block;
    width: 1.75rem;
    height: auto;
    border-radius: 2px;
    pointer-events: none;
}

.lang-flag:nth-child(2) .lang-flag__cloth { animation-delay: 0.15s; }
.lang-flag:nth-child(3) .lang-flag__cloth { animation-delay: 0.3s; }
.lang-flag:nth-child(4) .lang-flag__cloth { animation-delay: 0.45s; }
.lang-flag:nth-child(5) .lang-flag__cloth { animation-delay: 0.6s; }

@keyframes flag-wave {
    0%, 100% { transform: perspective(40px) rotateY(0deg) skewY(0deg); }
    25% { transform: perspective(40px) rotateY(8deg) skewY(2deg); }
    50% { transform: perspective(40px) rotateY(-4deg) skewY(-1deg); }
    75% { transform: perspective(40px) rotateY(6deg) skewY(1.5deg); }
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}

.nav-link-btn {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    font: inherit;
    cursor: pointer;
}

.nav-link-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

/* Contact nav button – golden stars */
.contact-nav-btn {
    --gold-a: #d4b56a;
    --gold-b: #c9a24e;
    --gold-c: #a8842f;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    padding: 0.55rem 1.15rem 0.55rem 1rem;
    border-radius: 999px;
    overflow: hidden;
    isolation: isolate;
    font: inherit;
    min-height: 2.5rem;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
    box-shadow:
        0 0 0 1px rgba(180, 140, 60, 0.28),
        0 8px 28px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.contact-nav-btn__bg {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(145deg, rgba(18, 16, 12, 0.96) 0%, rgba(10, 10, 10, 0.98) 55%, rgba(6, 6, 6, 1) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 0;
}

.contact-nav-btn__ring {
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        120deg,
        rgba(120, 95, 45, 0.35),
        rgba(180, 140, 60, 0.55) 35%,
        rgba(140, 110, 45, 0.42) 55%,
        rgba(100, 80, 35, 0.3) 75%,
        rgba(160, 125, 55, 0.5)
    );
    background-size: 220% 220%;
    animation: contactNavRingFlow 5s ease-in-out infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 0;
    pointer-events: none;
}

.contact-nav-btn__stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.contact-nav-star {
    position: absolute;
    line-height: 1;
    color: var(--gold-b);
    text-shadow: 0 0 6px rgba(180, 140, 60, 0.35);
    opacity: 0.72;
    transform-origin: center;
    will-change: transform, opacity;
}

.contact-nav-star--a {
    left: 0.55rem;
    top: 50%;
    font-size: 0.72rem;
    margin-top: -0.55rem;
    animation: contactStarFloatA 3.2s ease-in-out infinite;
}

.contact-nav-star--b {
    left: 1.05rem;
    top: 0.28rem;
    font-size: 0.52rem;
    color: var(--gold-a);
    animation: contactStarTwinkle 2.1s ease-in-out infinite;
}

.contact-nav-star--c {
    right: 0.65rem;
    top: 50%;
    font-size: 0.78rem;
    margin-top: -0.5rem;
    animation: contactStarFloatB 3.6s ease-in-out infinite 0.4s;
}

.contact-nav-star--d {
    right: 1.15rem;
    bottom: 0.22rem;
    font-size: 0.48rem;
    color: var(--gold-c);
    animation: contactStarTwinkle 2.5s ease-in-out infinite 0.8s;
}

.contact-nav-btn__content {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    padding: 0 0.85rem 0 1.35rem;
}

.contact-nav-btn__label {
    font-size: 0.92rem;
    font-weight: 650;
    letter-spacing: 0.02em;
    background: linear-gradient(180deg, #c9b07a 0%, var(--gold-a) 48%, var(--gold-c) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55));
    white-space: nowrap;
}

.contact-nav-btn__shine {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        105deg,
        transparent 35%,
        rgba(255, 255, 255, 0.04) 48%,
        rgba(180, 140, 60, 0.12) 50%,
        rgba(255, 255, 255, 0.03) 52%,
        transparent 65%
    );
    transform: translateX(-130%);
    animation: contactNavShine 4.5s ease-in-out infinite;
    z-index: 3;
    pointer-events: none;
}

.contact-nav-btn__ripple {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0.5rem;
    height: 0.5rem;
    margin: -0.25rem 0 0 -0.25rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 224, 138, 0.55) 0%, transparent 70%);
    opacity: 0;
    transform: scale(0.2);
    z-index: 1;
    pointer-events: none;
}

.contact-nav-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 0 0 1px rgba(180, 140, 60, 0.42),
        0 12px 34px rgba(0, 0, 0, 0.55),
        0 0 18px rgba(140, 110, 45, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.contact-nav-btn:hover .contact-nav-star {
    opacity: 0.88;
}

.contact-nav-btn:active,
.contact-nav-btn.is-pressed {
    transform: translateY(0) scale(0.97);
}

.contact-nav-btn.is-opening {
    animation: contactNavOpenPulse 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.contact-nav-btn.is-opening .contact-nav-btn__ripple {
    animation: contactNavRipple 0.55s ease-out forwards;
}

.contact-nav-btn.is-opening .contact-nav-star {
    animation: contactStarBurst 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.contact-nav-btn.is-opening .contact-nav-btn__shine {
    animation: none;
    transform: translateX(130%);
    opacity: 0.9;
    transition: transform 0.45s ease, opacity 0.45s ease;
}

@keyframes contactNavRingFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes contactStarTwinkle {
    0%, 100% { opacity: 0.45; transform: scale(0.85) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.15) rotate(18deg); }
}

@keyframes contactStarFloatA {
    0%, 100% { transform: translate(0, 0) rotate(-8deg) scale(1); }
    50% { transform: translate(2px, -3px) rotate(10deg) scale(1.12); }
}

@keyframes contactStarFloatB {
    0%, 100% { transform: translate(0, 0) rotate(8deg) scale(1); }
    50% { transform: translate(-2px, -2px) rotate(-12deg) scale(1.1); }
}

@keyframes contactNavShine {
    0%, 18% { transform: translateX(-130%); opacity: 0; }
    28% { opacity: 1; }
    45%, 100% { transform: translateX(130%); opacity: 0; }
}

@keyframes contactNavOpenPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(180, 140, 60, 0.35); }
    35% { transform: scale(0.94); box-shadow: 0 0 0 10px rgba(140, 110, 45, 0.14); }
    100% { transform: scale(1); box-shadow: 0 0 0 18px rgba(140, 110, 45, 0); }
}

@keyframes contactNavRipple {
    0% { opacity: 0.75; transform: scale(0.2); }
    100% { opacity: 0; transform: scale(14); }
}

@keyframes contactStarBurst {
    0% { opacity: 1; filter: blur(0); }
    100% { opacity: 0; filter: blur(1px); }
}

.contact-nav-btn.is-opening .contact-nav-star--a { transform: translate(-8px, -10px) scale(1.35) rotate(-25deg); }
.contact-nav-btn.is-opening .contact-nav-star--b { transform: translate(-4px, -14px) scale(1.5) rotate(20deg); }
.contact-nav-btn.is-opening .contact-nav-star--c { transform: translate(8px, -10px) scale(1.35) rotate(25deg); }
.contact-nav-btn.is-opening .contact-nav-star--d { transform: translate(6px, 12px) scale(1.45) rotate(-15deg); }

@media (prefers-reduced-motion: reduce) {
    .contact-nav-btn__ring,
    .contact-nav-btn__shine,
    .contact-nav-star {
        animation: none !important;
    }
    .contact-nav-btn.is-opening {
        animation: none;
    }
}

@media (max-width: 720px) {
    .contact-nav-btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
}

/* Contact modal */
.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.contact-modal.hidden {
    display: none;
}

.contact-panel {
    position: relative;
    width: min(100%, 640px);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    padding: 1.75rem 1.75rem 1.5rem;
    z-index: 1;
    opacity: 0;
    transform: scale(0.94) translateY(12px);
    transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-panel .modal-close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    z-index: 3;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition);
}

.contact-panel .modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
}

.contact-modal-header {
    padding-right: 2.5rem;
}

.contact-modal.is-entering .contact-panel {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.contact-modal.is-entering .modal-backdrop {
    animation: contactBackdropIn 0.35s ease forwards;
}

@keyframes contactBackdropIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.contact-modal-header h2 {
    margin: 0 0 1rem;
    font-size: 1.45rem;
}

.contact-modal .contact-intro {
    margin: 0 0 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.contact-modal .contact-form-actions {
    margin-top: 0.25rem;
}

.label-optional {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.85em;
}

.contact-file-drop {
    border: 1px dashed rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-md, 12px);
    padding: 1.1rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    background: rgba(255, 255, 255, 0.03);
}

.contact-file-drop:hover,
.contact-file-drop.is-dragover {
    border-color: rgba(212, 175, 55, 0.55);
    background: rgba(212, 175, 55, 0.06);
}

.contact-file-drop p {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
}

.contact-file-drop .dropzone-hint {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.contact-file-list {
    list-style: none;
    margin: 0.65rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.contact-file-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.45rem 0.65rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.88rem;
}

.contact-file-list .file-remove {
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0.15rem 0.35rem;
}

.contact-file-list .file-remove:hover {
    color: #fff;
}

body.modal-open {
    overflow: hidden;
}

.contact-section {
    padding: 2rem;
    max-width: 760px;
    margin: 0 auto 2rem;
}

.contact-section h1 {
    margin: 0 0 0.75rem;
    font-size: 1.6rem;
}

.contact-intro {
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 1.5rem;
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 140px;
    gap: 1rem;
}

.contact-form .form-group {
    margin-bottom: 1rem;
}

.contact-form .form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.contact-form-actions {
    margin-top: 0.5rem;
    justify-content: flex-start;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 720px) {
    .header-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
        padding-bottom: 0.65rem;
    }

    .header-brand {
        justify-content: center;
    }

    .main-nav {
        justify-content: center;
    }

    .contact-form-row {
        grid-template-columns: 1fr;
    }

    .contact-section {
        padding: 1.25rem;
    }
}

.logo.logo-image {
    display: block;
    line-height: 0;
    width: 100%;
    max-height: 15vh;
    position: relative;
}

.logo.logo-image::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 55%;
    width: min(92%, calc(15vh * 3.6));
    height: min(130%, 15vh);
    transform: translate(-50%, -50%);
    background: radial-gradient(
        ellipse 72% 68% at 50% 48%,
        var(--header-logo-halo, rgba(255, 255, 255, 0.08)) 0%,
        var(--header-logo-halo-mid, rgba(255, 255, 255, 0.03)) 42%,
        transparent 72%
    );
    pointer-events: none;
    z-index: 0;
    filter: blur(10px);
}

.site-logo-img {
    display: block;
    width: min(100%, calc(15vh * 4));
    max-height: 15vh;
    height: auto;
    aspect-ratio: 4 / 1;
    object-fit: contain;
    object-position: center;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 10px 28px var(--header-logo-shadow, rgba(0, 0, 0, 0.35)));
    -webkit-mask-image: linear-gradient(
        to bottom,
        #000 0%,
        #000 78%,
        rgba(0, 0, 0, 0.55) 92%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to bottom,
        #000 0%,
        #000 78%,
        rgba(0, 0, 0, 0.55) 92%,
        transparent 100%
    );
}

.logo-text {
    display: block;
    padding: 0.85rem 1.5rem;
}


.nav-link {
    padding: 0.5rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-weight: 500;
}

.nav-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}

/* Hero */
.main-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2rem 0 2rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb-b) transparent;
}

.main-content::-webkit-scrollbar {
    width: 12px;
}

.main-content::-webkit-scrollbar-track {
    background: linear-gradient(
        180deg,
        var(--scrollbar-track-header, rgba(255, 255, 255, 0.06)) 0%,
        var(--scrollbar-track, rgba(255, 255, 255, 0.03)) 18%,
        transparent 100%
    );
    border-left: 1px solid rgba(255, 255, 255, 0.04);
    margin: 2px 0;
}

.main-content::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        var(--scrollbar-thumb-a) 0%,
        var(--scrollbar-thumb-b) 55%,
        color-mix(in srgb, var(--scrollbar-thumb-b) 70%, #050505) 100%
    );
    border-radius: 999px;
    border: 3px solid transparent;
    background-clip: padding-box;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 0 12px color-mix(in srgb, var(--scrollbar-thumb-a) 35%, transparent);
    min-height: 48px;
}

.main-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        180deg,
        var(--scrollbar-thumb-hover) 0%,
        var(--scrollbar-thumb-a) 100%
    );
}

.main-content::-webkit-scrollbar-corner {
    background: transparent;
}

.hero {
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.hero-text { font-size: 1.15rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* Sections */
.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.section-desc { color: var(--text-muted); margin-bottom: 1.5rem; }

.group-section { margin-bottom: 3rem; }

/* Hero */
.hero { padding: 0; overflow: hidden; }

.hero-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    min-height: auto;
}

.hero-with-showcase .hero-inner {
    grid-template-columns: 1fr 1fr;
    min-height: 280px;
}

.hero-text-block {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-text-block h1 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
}

.hero-showcase {
    position: relative;
    min-height: 280px;
    background: #0a0a0a;
}

.hero-slideshow-wrap {
    position: absolute;
    inset: 0;
}

/* Crossfade slideshow */
.crossfade-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    --cf-duration: 1400ms;
}

.crossfade-slideshow.crossfade-single img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.crossfade-layer {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.04);
    transition:
        opacity var(--cf-duration) cubic-bezier(0.4, 0, 0.2, 1),
        transform calc(var(--cf-duration) * 1.4) cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: opacity, transform;
}

.crossfade-layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.crossfade-layer.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.crossfade-layer.is-animating.is-active {
    animation: kenBurns calc(var(--cf-duration) * 4) cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

@keyframes kenBurns {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
    .crossfade-layer {
        transition: opacity 0.3s ease;
        transform: none !important;
        animation: none !important;
    }
}

/* Product grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.75rem;
}

.product-card {
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.product-card:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.35);
    outline-offset: 2px;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.12);
}

.product-thumb {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #0a0a0a;
}

.image-placeholder,
.crossfade-slideshow.is-loading {
    background: linear-gradient(110deg, #101010 8%, #1c1c1c 18%, #101010 33%);
    background-size: 200% 100%;
    animation: image-shimmer 1.15s ease-in-out infinite;
}

@keyframes image-shimmer {
    to { background-position-x: -200%; }
}

.product-slideshow {
    position: absolute;
    inset: 0;
}

.product-open-hint {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    opacity: 0;
    padding: 0.3rem 0.75rem;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: var(--transition);
    pointer-events: none;
    z-index: 2;
}

.product-card:hover .product-open-hint {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem 0.6rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 3;
}

.product-type.badge {
    pointer-events: none;
}

.badge-owned { background: var(--success); right: auto; left: 0.75rem; }

.product-body { padding: 1rem 1.15rem 1.15rem; }

.product-title {
    font-size: 1.05rem;
    margin-bottom: 0.85rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-author {
    margin: -0.5rem 0 0.75rem;
    font-size: 0.85rem;
    opacity: 0.75;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.product-action-btn { flex-shrink: 0; }

.price { font-size: 1.2rem; font-weight: 700; color: var(--accent); white-space: nowrap; }

/* Product detail modal */
body.modal-open { overflow: hidden; }

body.modal-open .main-content { overflow: hidden; }

.product-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.product-modal.hidden { display: none; }

.product-modal .modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
}

.product-modal .modal-panel {
    position: relative;
    width: min(960px, 100%);
    max-height: min(90vh, 900px);
    overflow: auto;
    padding: 0;
    z-index: 1;
}

.product-modal .modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 5;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition);
}

.product-modal .modal-close:hover { background: rgba(255, 255, 255, 0.15); }

.modal-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 0;
}

.modal-gallery {
    background: #080808;
    border-right: 1px solid var(--glass-border);
}

.modal-gallery img {
    user-select: none;
    -webkit-user-drag: none;
}

.modal-gallery-main {
    position: relative;
    aspect-ratio: 4/3;
}

.modal-slideshow-wrap {
    position: absolute;
    inset: 0;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-nav:hover { background: rgba(255, 255, 255, 0.15); }
.gallery-nav.hidden { display: none; }
.gallery-prev { left: 0.75rem; }
.gallery-next { right: 0.75rem; }

.modal-gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    overflow-x: auto;
}

.modal-gallery-thumbs.hidden { display: none; }

.modal-thumb {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: none;
    opacity: 0.55;
    transition: var(--transition);
}

.modal-thumb.is-active {
    border-color: var(--accent);
    opacity: 1;
}

.modal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-details {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
}

.modal-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.modal-type,
.modal-group.badge {
    position: static;
    display: inline-block;
    margin-bottom: 0;
}

.modal-group.badge.hidden { display: none; }

.modal-details h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.modal-specs {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.35rem 1rem;
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
}

.modal-specs.hidden { display: none; }

.modal-specs dt {
    color: var(--text-muted);
    font-weight: 500;
}

.modal-specs dd {
    color: var(--text);
    font-weight: 600;
    margin: 0;
}

.modal-specs.is-loading dd {
    font-weight: 400;
}

.spec-skeleton {
    display: inline-block;
    width: 4.5rem;
    height: 0.85rem;
    border-radius: 4px;
    background: linear-gradient(110deg, rgba(255,255,255,0.06) 8%, rgba(255,255,255,0.14) 18%, rgba(255,255,255,0.06) 33%);
    background-size: 200% 100%;
    animation: image-shimmer 1.1s ease-in-out infinite;
}

.modal-desc {
    flex: 1;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    white-space: pre-wrap;
    overflow-y: auto;
    max-height: 240px;
}

.modal-purchase {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.modal-purchase .price { font-size: 1.5rem; }

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-sm);
}

.alert-success { background: rgba(52, 199, 89, 0.2); border: 1px solid rgba(52, 199, 89, 0.4); }
.alert-warning { background: rgba(255, 149, 0, 0.2); border: 1px solid rgba(255, 149, 0, 0.4); }
.alert-error { background: rgba(255, 59, 48, 0.2); border: 1px solid rgba(255, 59, 48, 0.4); }

/* Checkout modal (Stripe Embedded) */
.checkout-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    overflow: hidden;
}

.checkout-modal.hidden { display: none; }

.checkout-modal .modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(10px);
}

.checkout-panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(500px, calc(100vw - 1.5rem));
    max-height: calc(100dvh - 1.5rem);
    overflow: hidden;
    padding: 1rem 1rem 0.75rem;
}

.checkout-panel .modal-close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    z-index: 3;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition);
}

.checkout-panel .modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
}

.checkout-header {
    flex-shrink: 0;
    margin-bottom: 0.65rem;
    padding-right: 2.25rem;
}

.checkout-header h2 {
    font-size: 1.1rem;
    margin-bottom: 0.15rem;
}

.checkout-subtitle {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.checkout-loading {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
}

.checkout-loading.hidden { display: none; }

.checkout-embedded-container {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: var(--radius-sm);
    margin: 0 -0.25rem -0.25rem;
    padding: 0 0.15rem 0.15rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.22) rgba(255, 255, 255, 0.06);
}

.checkout-embedded-container::-webkit-scrollbar {
    width: 7px;
}

.checkout-embedded-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin: 4px 0;
}

.checkout-embedded-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.checkout-embedded-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.32);
}

.checkout-embedded-container iframe {
    display: block;
    width: 100% !important;
    border: none;
    border-radius: var(--radius-sm);
}

/* Scrollbar nur wenn nötig – auf kleinen Screens dezentes Modal-Scroll-Fallback */
@media (max-height: 700px) {
    .checkout-modal {
        align-items: flex-start;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
    }

    .checkout-modal::-webkit-scrollbar {
        width: 7px;
    }

    .checkout-modal::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.2);
        border-radius: 4px;
    }

    .checkout-panel {
        margin: 0.5rem auto;
        max-height: none;
    }
}

/* Footer */
.site-footer {
    flex-shrink: 0;
    margin: 0;
    padding: 1.25rem 1.5rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Login */
.login-container, .install-card {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}

.login-card, .install-card {
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
}

.login-card h1, .install-card h1 { text-align: center; margin-bottom: 1.5rem; }

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 0.4rem; font-weight: 500; font-size: 0.9rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Content view */
.content-image, .content-video { max-width: 100%; border-radius: var(--radius-sm); margin-top: 1rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.gallery-item { border-radius: var(--radius-sm); overflow: hidden; transition: var(--transition); }
.gallery-item:hover { transform: scale(1.03); }
.gallery-item img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }

.empty-state { text-align: center; padding: 3rem; color: var(--text-muted); }

/* Animations */
.animate-fade-in { animation: fadeIn 0.6s ease forwards; }
.animate-slide-up { animation: slideUp 0.6s ease forwards; }
.animate-slide-right { animation: slideRight 0.5s ease forwards; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideRight {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .form-row { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: 1fr; }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-showcase { min-height: 220px; }
    .hero-text-block { padding: 1.75rem; }
    .modal-layout { grid-template-columns: 1fr; }
    .modal-gallery { border-right: none; border-bottom: 1px solid var(--glass-border); }
    .modal-details { padding: 1.25rem; }
    .modal-purchase { flex-direction: column; align-items: stretch; }
    .modal-purchase .btn { width: 100%; text-align: center; }
}

/* Toast-Benachrichtigungen */
#toast-container {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 0.6rem;
    pointer-events: none;
    width: min(420px, calc(100vw - 2rem));
}

.toast-item {
    pointer-events: auto;
    width: 100%;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.toast-item.toast-visible {
    opacity: 1;
    transform: translateY(0);
}

.toast-item.toast-error {
    background: rgba(192, 57, 43, 0.92);
    color: #fff;
    border-color: rgba(255, 120, 100, 0.3);
}

.toast-item.toast-success {
    background: rgba(39, 174, 96, 0.92);
    color: #fff;
    border-color: rgba(120, 220, 150, 0.3);
}

.toast-item.toast-info {
    background: rgba(30, 30, 30, 0.92);
    color: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.12);
}
