:root {
    --bg-dark: #0a0a0f;
    --bg-panel: #12121a;
    --text-main: #f0f0f5;
    --text-muted: #9494a0;
    --accent-primary: #8a2be2;
    --accent-secondary: #00d2ff;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    line-height: 1.6;
    max-width: 100vw;
}

/* Custom Cursor Glow */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.15) 0%, rgba(0, 210, 255, 0.05) 40%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
    transition: transform 0.1s ease-out;
}

/* Utilities */
.mt-4 { margin-top: 4rem; }
.mb-4 { margin-bottom: 4rem; }

/* Glassmorphism Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 10002;
    box-sizing: border-box;
}

.logo { 
    display: flex; 
    align-items: center; 
    text-decoration: none; 
    flex-shrink: 0;
}
.logo img { 
    height: 32px; 
    width: auto; 
    display: block; 
    transition: var(--transition-smooth);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover { color: var(--text-main); }

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white !important;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    border: none;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 210, 255, 0.4);
}

.btn-primary.large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    margin-top: 2rem;
}

/* Panels */
.panel {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 8rem 4rem 4rem 4rem;
    display: flex;
    align-items: center;
    position: relative;
}

.dark-panel { background-color: var(--bg-panel); }

.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

.content-wrapper.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.content-wrapper.split.reverse { direction: rtl; }
.content-wrapper.split.reverse > * { direction: ltr; }
.content-wrapper.centered {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.max-w { max-width: 800px; margin: 0 auto; }

/* Typography */
h1 {
    font-family: var(--font-heading);
    font-size: 6rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

h2.section-label {
    font-family: var(--font-body);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--accent-secondary);
    margin-bottom: 1rem;
}

h2.section-label.accent { color: var(--accent-primary); }

h3.section-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.body-text {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Cover Section */
.cover-panel {
    background-image: url('/media/AAISENSE_Main_Background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}

.bg-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(10, 10, 15, 0.95) 0%, rgba(10, 10, 15, 0.6) 50%, rgba(10, 10, 15, 0.4) 100%);
    z-index: 1;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.4);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.subtitle {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.85);
    max-width: 600px;
    margin-bottom: 4rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.scroll-down-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}
.scroll-down-btn:hover { color: var(--accent-secondary); }

/* Stats List */
.stats-list {
    list-style: none;
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}
.stats-list li { display: flex; flex-direction: column; }
.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-desc { color: var(--text-muted); font-size: 1rem; }

/* Glass Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    transition: var(--transition-smooth);
}
.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Gallery */
.masonry-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 250px;
    gap: 1.5rem;
    margin-top: 2rem;
}
.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.gallery-item:nth-child(1) { grid-row: span 2; }
.gallery-item:nth-child(2) { grid-row: span 1; }
.gallery-item:nth-child(3) { grid-row: span 2; }
.gallery-item:nth-child(4) { grid-row: span 1; }

/* Form */
.assessment-form-container {
    max-width: 800px;
    margin: 4rem auto 0;
    text-align: left;
}
.assessment-form-container h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
}
.risk-form .form-group {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
}
.risk-form label {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}
.radio-group {
    display: flex;
    gap: 2rem;
}
.radio-group input[type="radio"] {
    display: none;
}
.radio-group label {
    padding: 0.8rem 2rem;
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-weight: 400;
    margin-bottom: 0;
}
.radio-group input[type="radio"]:checked + label {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}
.risk-result {
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid var(--accent-secondary);
    border-radius: 16px;
    animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Videos */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
}
.video-container iframe, .video-container video {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border: none;
    object-fit: cover;
}
.video-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    cursor: pointer;
    backdrop-filter: blur(2px);
}
.video-overlay span {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}
.video-overlay:hover {
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(0px);
}
.video-overlay:hover span {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}
.large-video { max-width: 1000px; margin: 0 auto; }
.vertical-video { padding-bottom: 120%; }

/* Grid 3 */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; width: 100%; }
.stat-card { padding: 2.5rem; text-align: left; }
.stat-card.highlight-card {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), rgba(0, 210, 255, 0.05));
    border-color: rgba(0, 210, 255, 0.2);
}
.stat-card h4 { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 1rem; color: #fff; }
.stat-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Accordion */
.accordion { margin-top: 3rem; }
.accordion-item { border-bottom: 1px solid var(--glass-border); padding: 1.5rem 0; }
.accordion-item h4 { font-family: var(--font-heading); font-size: 1.25rem; margin-bottom: 0.5rem; color: #fff; }
.accordion-item p { color: var(--text-muted); font-size: 0.95rem; }

/* Timeline */
.timeline {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: left; position: relative; width: 100%; max-width: 1000px; margin: 4rem auto 0;
}
.timeline::before { content: ''; position: absolute; top: 10px; left: 0; width: 100%; height: 1px; background: var(--glass-border); }
.timeline-item { position: relative; padding-top: 2.5rem; }
.timeline-dot {
    width: 20px; height: 20px; background: var(--bg-panel); border: 2px solid var(--accent-secondary); border-radius: 50%; position: absolute; top: 0; left: 0; transition: var(--transition-smooth);
}
.timeline-item:hover .timeline-dot { background: var(--accent-secondary); box-shadow: 0 0 15px var(--accent-secondary); }
.timeline-item h4 { font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 1rem; color: #fff; }
.timeline-item p { color: var(--text-muted); font-size: 0.9rem; }

/* Feature List */
.feature-list { list-style: none; margin-top: 2rem; margin-bottom: 3rem; }
.feature-list li { margin-bottom: 1rem; color: var(--text-muted); position: relative; padding-left: 2rem; }
.feature-list li::before { content: '→'; position: absolute; left: 0; color: var(--accent-secondary); }
.feature-list strong { color: #fff; }

/* Scroll Reveals */
.reveal-text { opacity: 0; transform: translateY(30px); transition: all 1s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-text.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

.section-title, .body-text, .glass-card, .timeline-item, .video-container {
    opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.active .section-title, .active .body-text, .active .glass-card, .active .timeline-item, .active .video-container {
    opacity: 1; transform: translateY(0);
}

/* Footer */
.glass-footer { padding: 2rem; text-align: center; border-top: 1px solid var(--glass-border); color: var(--text-muted); font-size: 0.9rem; }

/* Responsive */
@media (max-width: 1250px) {
    .glass-nav { padding: 1.25rem 2.5rem; }
    .content-wrapper.split { grid-template-columns: 1fr; gap: 3rem; }
    .grid-3 { grid-template-columns: 1fr; }
    .timeline { grid-template-columns: 1fr; gap: 3rem; }
    .timeline::before { left: 9px; top: 0; width: 1px; height: 100%; }
    .timeline-item { padding-top: 0; padding-left: 3rem; }
    h1 { font-size: clamp(2.8rem, 6vw, 4rem); }
    .panel { padding: 6rem 2rem 2rem 2rem; }
    .nav-links { display: none; }
    .vertical-video { padding-bottom: 56.25%; }
    .masonry-gallery { grid-template-columns: 1fr; }
    .gallery-item:nth-child(1), .gallery-item:nth-child(2), .gallery-item:nth-child(3), .gallery-item:nth-child(4) { grid-row: span 1; }
}

/* Emotional Backgrounds */
#crisis {
    background-image: linear-gradient(rgba(10, 10, 15, 0.75), rgba(10, 10, 15, 0.95)), url('/media/AAISENSE_Krise_Hintergrund.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}
#cost {
    background-image: linear-gradient(rgba(18, 18, 26, 0.8), rgba(18, 18, 26, 0.95)), url('/media/AAISENSE_Kosten_Hintergrund.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}
#flaws {
    background-image: linear-gradient(rgba(10, 10, 15, 0.8), rgba(10, 10, 15, 0.95)), url('/media/AAISENSE_Schwachstellen_Hintergrund.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}
#assessment {
    background-image: linear-gradient(rgba(18, 18, 26, 0.8), rgba(18, 18, 26, 0.95)), url('/media/AAISENSE_Assessment_Hintergrund.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}
#strategies {
    background-image: linear-gradient(rgba(10, 10, 15, 0.8), rgba(10, 10, 15, 0.95)), url('/media/AAISENSE_Strategien_Hintergrund.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}
#solution {
    background-image: linear-gradient(rgba(18, 18, 26, 0.75), rgba(18, 18, 26, 0.95)), url('/media/AAISENSE_Loesung_Hintergrund.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}

/* Parallax fixed backgrounds enabled ONLY on desktop devices with hover support (prevents iOS WebKit 1000% zoom bug) */
@media (min-width: 1025px) and (hover: hover) {
    .cover-panel,
    #crisis,
    #cost,
    #flaws,
    #assessment,
    #strategies,
    #solution {
        background-attachment: fixed;
    }
}

/* Floating ROI Button */
.floating-roi-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white !important;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 10px 25px rgba(138, 43, 226, 0.4);
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

.floating-roi-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 210, 255, 0.5);
    animation: none;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

/* Mobile Menu Toggle (Hamburger) */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    flex-shrink: 0;
    margin-left: auto;
    position: relative;
    z-index: 10003;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-toggle .bar {
    width: 28px;
    height: 2.5px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: var(--transition-smooth);
    display: block;
}

.mobile-menu-toggle.open .bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
    background-color: var(--accent-secondary);
}
.mobile-menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.mobile-menu-toggle.open .bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
    background-color: var(--accent-secondary);
}

/* Mobile Overlay Menu */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(10, 10, 15, 0.96);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 5rem 1.5rem 2rem;
    box-sizing: border-box;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    text-align: center;
    width: 100%;
    max-width: 400px;
    margin: auto 0;
}

.mobile-link {
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 5vw, 1.85rem);
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    display: block;
    max-width: 100%;
    word-break: break-word;
    padding: 0.25rem 0.5rem;
}

.mobile-link:hover, .mobile-link:active {
    color: var(--accent-secondary);
    text-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}

.mobile-overlay.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for links */
.mobile-overlay.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-overlay.active .mobile-link:nth-child(2) { transition-delay: 0.2s; }
.mobile-overlay.active .mobile-link:nth-child(3) { transition-delay: 0.3s; }
.mobile-overlay.active .mobile-link:nth-child(4) { transition-delay: 0.4s; }
.mobile-overlay.active .mobile-link:nth-child(5) { transition-delay: 0.5s; }
.mobile-overlay.active .mobile-link:nth-child(6) { transition-delay: 0.6s; }
.mobile-overlay.active .mobile-link:nth-child(7) { transition-delay: 0.7s; }

@media (max-width: 1250px) {
    .mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .glass-nav {
        padding: 0.85rem 1.25rem;
    }
    .logo img {
        height: 28px;
        max-width: 150px;
    }
    .panel {
        padding: 5.5rem 1.25rem 2.5rem 1.25rem;
    }
    h1 {
        font-size: clamp(2.2rem, 7.5vw, 3.2rem);
        line-height: 1.1;
        overflow-wrap: break-word;
    }
    h3.section-title {
        font-size: clamp(1.6rem, 5.5vw, 2.3rem);
        line-height: 1.2;
        overflow-wrap: break-word;
    }
    .subtitle {
        font-size: 1.15rem;
        margin-bottom: 2.5rem;
    }
    .badge {
        max-width: 100%;
        white-space: normal;
        font-size: 0.75rem;
        letter-spacing: 1px;
        text-align: center;
        line-height: 1.4;
    }
    .glass-card {
        padding: 1.75rem 1.25rem;
        border-radius: 18px;
    }
    .stat-card {
        padding: 1.5rem 1rem;
    }
    .floating-roi-btn {
        bottom: 20px;
        right: 20px;
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    .roi-modal-content {
        padding: 2rem 1.25rem;
        width: calc(100% - 2rem);
        max-width: 100%;
    }
}

/* Galaxy Z Fold / Compact Mobile (Cover Screen <= 480px / 374px / 344px) */
@media (max-width: 480px) {
    .glass-nav {
        padding: 0.75rem 1rem;
    }
    .logo img {
        height: 25px;
        max-width: 130px;
    }
    .mobile-menu-toggle {
        padding: 0.35rem;
        min-width: 40px;
        min-height: 40px;
    }
    .mobile-menu-toggle .bar {
        width: 24px;
        height: 2px;
    }
    .panel {
        padding: 4.8rem 1rem 1.5rem 1rem;
    }
    h1 {
        font-size: clamp(1.85rem, 7vw, 2.5rem);
    }
    h3.section-title {
        font-size: clamp(1.35rem, 5vw, 1.8rem);
    }
    .badge {
        font-size: 0.68rem;
        padding: 0.4rem 0.75rem;
    }
    .glass-card {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }
    .radio-group {
        gap: 0.75rem;
    }
    .radio-group label {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }
    .floating-roi-btn {
        bottom: 12px;
        right: 12px;
        padding: 0.65rem 0.95rem;
        font-size: 0.8rem;
        gap: 0.5rem;
    }
    .roi-modal-content {
        padding: 1.5rem 0.9rem;
        width: calc(100% - 1.5rem);
    }
}

/* ROI Modal */
.roi-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 20000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.roi-overlay.active {
    opacity: 1;
    visibility: visible;
}

.roi-modal-content {
    background: rgba(26, 29, 45, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 500px;
    width: 100%;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.roi-overlay.active .roi-modal-content {
    transform: translateY(0) scale(1);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.close-btn:hover {
    color: #fff;
}
