/* --- YOUR PROVIDED CSS (UNCHANGED) --- */
:root {
    --brand-red: #E50914;
    --brand-red-hover: #b81d24;
    --bg-black: #050505;
    --bg-dark-panel: #101010;
    --text-main: #ffffff;
    --text-muted: #a3a3a3;
    --glass-bg: rgba(20, 20, 20, 0.85);
    --border-color: #333;
    --modal-bg: rgba(0, 0, 0, 0.85);
    --font-heading: 'Bebas Neue', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-black);
    color: var(--text-main);
    font-family: var(--font-body);
    margin: 0;
}

.modal-backdrop {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
    z-index: 2000; display: none; align-items: center; justify-content: center;
}
.modal-backdrop.active { display: flex; animation: fadeIn 0.3s ease; }

.modal-window {
    background: rgba(0,0,0,0.85); width: 100%; max-width: 450px;
    padding: 50px; border-radius: 8px; border: 1px solid #333;
    position: relative; box-shadow: 0 15px 40px rgba(0,0,0,0.8);
    /* Ensure content stays inside for the light beam clipping */
    overflow: hidden; 
}

.content-window { max-width: 800px; padding: 0; overflow: hidden; display: flex; }
.content-body { display: flex; width: 100%; flex-direction: row; }
.content-preview { flex: 1; background-size: cover; background-position: center; min-height: 400px; }
.content-details { flex: 1; padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.meta-tags { margin: 10px 0 20px; color: var(--text-muted); font-size: 0.9rem; font-weight: bold; }
#cm-desc { margin-bottom: 30px; color: #ddd; }

.modal-close {
    position: absolute; top: 15px; right: 20px; background: none; border: none;
    color: white; font-size: 1.5rem; cursor: pointer; z-index: 5;
}

.modal-body h2 { 
    margin-bottom: 30px; 
    font-size: 2rem; 
    font-family: var(--font-heading); /* Applied Font Heading */
    letter-spacing: 1px;
}

.custom-input {
    width: 100%; background: #333; border: none; border-radius: 4px;
    height: 50px; color: white; padding: 18px 15px 5px; font-size: 1rem;
    outline: none; transition: background 0.2s;
}
.custom-input:focus { background: #454545; }

.input-wrap { position: relative; margin-bottom: 15px; }
.input-wrap label {
    position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
    color: #8c8c8c; pointer-events: none; transition: all 0.2s; font-size: 1rem;
}
.custom-input:focus ~ label, .custom-input:not(:placeholder-shown) ~ label {
    top: 12px; font-size: 11px;
}
.static-label { top: 12px !important; font-size: 11px !important; }

.form-row { display: flex; gap: 10px; }
.half { flex: 1; }

.submit-btn {
    width: 100%; padding: 15px; background: var(--brand-red); color: white;
    border: none; border-radius: 4px; font-weight: bold; font-size: 1rem;
    cursor: pointer; margin-top: 20px; transition: background 0.2s;
    display: flex; justify-content: center; align-items: center;
}
.submit-btn:hover { background: var(--brand-red-hover); }

.loader {
    width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid white; border-radius: 50%; display: none;
    animation: spin 1s linear infinite;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- NEW INTEGRATION: LIGHT BEAM & TINT --- */

/* 1. Tint the modal red without removing existing bg */
.lang-check-window {
    background: linear-gradient(180deg, rgba(20,0,0,0.95) 0%, rgba(50,0,0,0.6) 100%);
    border: 1px solid rgba(229, 9, 20, 0.3); /* Subtle brand red border */
}

/* 2. Container for the light beam (behind text, inside modal) */
.light-beam-layer {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1; /* Behind text (z-index 2) */
    pointer-events: none;
    overflow: hidden;
}

/* 3. The Light Orb/Beam */
.light-orb {
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    /* Gradient from Brand Red to transparent */
    background: radial-gradient(circle, rgba(229, 9, 20, 0.4) 0%, transparent 60%);
    opacity: 0.6;
    animation: beamRotate 12s infinite linear;
}

@keyframes beamRotate {
    0% { transform: translate(-20%, -20%) rotate(0deg); }
    25% { transform: translate(10%, -20%) rotate(90deg); }
    50% { transform: translate(10%, 10%) rotate(180deg); }
    75% { transform: translate(-20%, 10%) rotate(270deg); }
    100% { transform: translate(-20%, -20%) rotate(360deg); }
}