/* same as v8 */
:root {
    --bg: #0b0b10;
    --card: #14141b;
    --text: #e8e8ef;
    --muted: #a0a1b3;
    --accent: #7c5cff;
    --live: #ff3b3b;
    --border: #242434;
    /*--ok: #22c55e;*/
    --ok:#1b9d4b;
    --danger: #ef4444;
    --white: #ffffff;

    --blue: #2563eb;
    --green: #22c55e;
    --purple: #8b5cf6;
    --brown: #8B4513;
    --red: #ef4444;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter-Regular.woff2') format('woff2');
    font-style: normal;
}

@font-face {
    font-family: 'Inter-Medium';
    src: url('/fonts/Inter-Medium.woff2') format('woff2');
    font-style: normal;
}

@font-face {
    font-family: 'Inter-Light';
    src: url('/fonts/Inter-Light.woff2') format('woff2');
    font-style: normal;
}

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

html, body {
    margin: 0;
    padding: 0;
    background: url(img/bg-1920.jpg) no-repeat;
    background-size: cover;
    color: var(--text);
    font-family: Inter, sans-serif;
    line-height: 1.5;
}

.container {
    width: 100%;
    max-width: 1440px;
    padding: 0 20px;
    margin: 0 auto;
}

.site-header {

    position: sticky;
    top: 0;
    backdrop-filter: blur(8px);
    box-shadow: 0px 4px 19px 1px rgba(255, 255, 255, 0.43);
    background: rgba(5, 20, 137, 1);
    z-index: 110;

}

.qa-section {
    max-width: 564px;
    margin: 0 auto;
    padding: 60px 76px;
    border-radius: 16px;
    box-shadow: 0px 4px 6.3px 0px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(19px);
    background: rgba(216, 233, 255, 0.62);
    margin-bottom: 100px;
}

.qa-section > h2 {
    font-family: "Inter-Medium", sans-serif;
    font-size: 36px;
    font-weight: 500;
    line-height: 105%;
    letter-spacing: 0%;
    text-align: center;
    margin: 0;
    margin-bottom: 36px;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: .2px;
    font-size: 18px;
}

.brand .dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #a48bff);
    box-shadow: 0 0 20px #7c5cff88;
}

.brand-text {
    color: var(--text);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.badge-live {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #191923;
}

.badge-live::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--live);
    box-shadow: 0 0 10px var(--live);
    vertical-align: middle;
}

.status-badge {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--white);
    user-select: none;
    transition: filter .2s ease;
}

.status-badge.on {
    background: var(--ok);
}

.status-badge.off {
    background: var(--danger);
}

.status-badge:hover {
    filter: brightness(1.05);
}

.points-btn, .submit-btn {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #20202a;
    color: var(--white);
    cursor: pointer;
    margin-bottom: 35px;
}

.points-btn.disabled, .points-btn:disabled, .submit-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.hero {
    padding: 40px 0 20px;
}

h1 {
    margin: 0 0 8px 0;
    font-size: clamp(24px, 3.5vw, 40px);
}

.sub {
    margin: 0 0 20px 0;
    color: var(--muted);
}

.video-wrap {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 16px auto;
    background: var(--card);
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 1);
    box-shadow: 0px 0px 41px 4px rgba(0, 0, 0, 0.25);
    aspect-ratio: 16/9;
    margin-bottom: 100px;
}

.video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

/* Banner overlay */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 120;
}

.overlay.hidden {
    display: none;
}

.banner {
    width: 300px;
    height: 200px;
    position: relative;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    color: var(--white);
    font-size: 40px;
    font-weight: 700;
}

.banner-v1 {
    background: var(--blue);
}

.banner-v2 {
    background: var(--green);
}

.banner-v3 {
    background: var(--purple);
}

.banner-v4 {
    background: var(--brown);
}

.banner-v5 {
    background: var(--red);
}

.banner-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: rgba(255, 255, 255, .2);
    color: var(--white);
    font-size: 20px;
    line-height: 26px;
    cursor: pointer;
}

.banner-close:hover {
    background: rgba(255, 255, 255, .3);
}

.banner-title {
    transform: translateY(-6px);
}

.alt-link {
    text-align: center;
    color: var(--muted);
}

.alt-link a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-footer {
    /*border-top: 1px solid var(--border);*/
    margin-top: 40px;
}

.site-footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    font-size: 14px;
    color: var(--muted);
}

.sp-link {
    color: var(--text);
    border: 1px solid var(--border);
    padding: 6px 10px;
    border-radius: 8px;
    text-decoration: none;
}

/* Login gate */
.login-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, .25);
    backdrop-filter: blur(10px);
    z-index: 200;
}

.login-overlay.hidden {
    display: none;
}

.login-card {
    width: min(420px, 92%);
    background: #0f1220;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}

.login-card h2 {
    margin: 0 0 6px;
}

.login-sub {
    margin: 0 0 14px;
    color: var(--muted);
}

.login-form {
    display: flex;
    gap: 10px;
}

.login-form input {
    flex: 1;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #171a2a;
    color: var(--text);
    outline: none;
}

.login-btn {
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--blue);
    color: var(--white);
    cursor: pointer;
}

.login-msg {
    margin: 40px 0 0;
    color: red;
    text-align: center;
    font-size: 14px;
    font-family: "Inter", sans-serif;
}

.login-msg-alert {
    color: var(--danger);
    text-align: left;
    font-size: 14px;
}

.input-wrap {
    display: flex;
    flex-direction: column;
}


label {
    color: rgba(255, 255, 255, 1);

    font-family: "Inter", sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 105%;
    letter-spacing: 0;
    text-align: left;
    margin-bottom: 14px;
}


.input-wrap > textarea {
    width: 100%;
}

.input-wrap > input,
.input-wrap > textarea {
    border: none;
    padding-top: 24px;
    padding-bottom: 24px;
    padding-left: 20px;
    border-radius: 14px;
    box-shadow: 0px 0px 19px 0px rgba(131, 148, 194, 0.25);
    background: rgba(255, 255, 255, 1);
    color: rgba(138, 152, 215, 1);

    font-family: "Inter-Light", sans-serif;
    font-size: 20px;
    font-weight: 300;
    line-height: 105%;
    letter-spacing: 0;
    margin-bottom: 26px;
}

input::placeholder,
textarea::placeholder {
    font-family: "Inter-Light", sans-serif;
    font-size: 20px;
    font-weight: 100;
    line-height: 105%;
    letter-spacing: 0;
    color: rgba(138, 152, 215, 1);
}

input:focus,
textarea:focus {
    border: none;
    outline: none;
}

.input-wrap > textarea {
    margin-bottom: 52px;
}

.btn {
    border-radius: 14px;
    background: rgba(5, 20, 137, 1);
    color: rgba(255, 255, 255, 1);
    border: none;

    font-family: "Inter-Medium", sans-serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 105%;
    letter-spacing: 0;
    text-align: center;
    padding-top: 30px;
    padding-bottom: 30px;
    cursor: pointer;
}

@media (max-width: 640px) {
    .site-footer .container {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 1920px) {
    .video-wrap {
        max-width: 998px;
    }
}


@media (max-width: 1440px) {
    .video-wrap {
        position: relative;
        width: 100%;
        max-width: 998px;
        margin: 16px auto;
        background: var(--card);
        border-radius: 16px;
        overflow: hidden;
        aspect-ratio: 16/9;
    }
}

@media (max-width: 508px) {
    .video-wrap {
        height: 264px;
    }
}

@media (max-width: 409px) {
    .video-wrap {
        height: 300px;
    }
}

@media (max-width: 480px) {
    body {
        margin: 0;
        padding: 0;
        background: url(img/bg-480.jpg) no-repeat;
        background-size: cover;

    }

    .qa-section {
        padding: 40px 20px;
    }

    .qa-section > h2 {
        font-size: 26px;
    }

    .input-wrap > input, .input-wrap > textarea {

        padding-top: 20px;
        padding-bottom: 20px;
        padding-left: 17px;
        font-size: 16px;
        margin-bottom: 22px;
    }

    label {
        font-size: 19px;
    }

    .btn {
        padding-top: 16px;
        padding-bottom: 16px;
        font-size: 19px;
    }

    input::placeholder,
    textarea::placeholder {
        font-family: "Inter-Light", sans-serif;
        font-size: 16px;
        font-weight: 100;
    }

    .login-msg {
        margin: 42px 0 0;
        font-size: 20px;
    }

    .site-footer {
        /*border-top: 1px solid var(--border);*/
        margin-top: 40px;
        height: 500px;
    }

}