:root {
    --text-main: #edf4ff;
    --text-soft: #9fb0ce;
    --line: rgba(196, 215, 255, 0.28);
    --glass: rgba(8, 13, 24, 0.92);
    --panel: rgba(9, 14, 24, 0.94);
    --gold: #f2c66b;
    --gold-deep: #c88719;
    --blue: #79b9ff;
    --blue-deep: #2e6bc2;
    --fb: #5aa0ff;
    --zalo: #62dcb0;
    --shadow-lg: 0 16px 38px rgba(0, 0, 0, 0.36);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: calc(var(--app-vh, 1vh) * 100);
    display: grid;
    grid-template-rows: auto 1fr auto;
    color: var(--text-main);
    font-family: "Manrope", sans-serif;
    background: #04070f;
    overflow-x: hidden;
}

.shell {
    width: min(1200px, calc(100% - 36px));
    margin: 0 auto;
}

.page-header {
    position: relative;
    z-index: 5;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background:
        linear-gradient(180deg, rgba(10, 15, 28, 0.98), rgba(7, 12, 22, 0.98));
}

.header-inner {
    min-height: 90px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 18px;
    padding: 10px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
}

.brand img {
    width: 170px;
    height: auto;
    object-fit: contain;
}

.brand-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.brand-meta strong {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.brand-meta span {
    font-size: 11px;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
}

.header-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.primary-actions,
.secondary-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--glass);
    box-shadow: var(--shadow-lg);
}

.btn,
.chip {
    position: relative;
    min-height: 42px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 14px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 12px;
    font-weight: 800;
    transition: transform 0.2s ease, filter 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    overflow: hidden;
}

.btn::after,
.chip::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.16) 50%, transparent 65%);
    transform: translateX(-120%);
    transition: transform 0.45s ease;
}

.btn:hover,
.chip:hover {
    transform: translateY(-2px);
}

.btn:hover::after,
.chip:hover::after {
    transform: translateX(120%);
}

.btn-download {
    color: #241200;
    border: 1px solid rgba(242, 198, 107, 0.9);
    background: linear-gradient(135deg, #f7d486, var(--gold-deep));
    box-shadow: 0 10px 20px rgba(200, 132, 24, 0.32);
}

.btn-register {
    color: #dce9ff;
    border: 1px solid rgba(121, 185, 255, 0.5);
    background: linear-gradient(135deg, rgba(121, 185, 255, 0.28), rgba(46, 107, 194, 0.34));
}

.chip {
    min-height: 38px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.chip-fb {
    color: var(--fb);
}

.chip-zalo {
    color: var(--zalo);
}

.video-stage {
    position: relative;
    min-height: 0;
    overflow: hidden;
    background: #03060c;
}

.intro-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, var(--panel), rgba(6, 10, 18, 0.98));
    box-shadow: 0 -12px 28px rgba(0, 0, 0, 0.26);
}

.footer-inner {
    padding: 10px 0 13px;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
}

.footer-inner p {
    margin: 3px 0;
    font-size: 12px;
    color: #a7b4ca;
}

.footer-inner span {
    color: var(--gold);
    font-weight: 700;
}

.footer-inner .warning {
    color: #d88679;
}

.support-float {
    position: fixed;
    right: max(14px, env(safe-area-inset-right));
    bottom: max(16px, calc(env(safe-area-inset-bottom) + 8px));
    z-index: 40;
    display: grid;
    gap: 10px;
}

.support-item {
    position: relative;
    min-height: 52px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.32);
    animation: support-enter 420ms ease both;
}

.support-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.2) 52%, transparent 67%);
    transform: translateX(-120%);
    transition: transform 0.45s ease;
}

.support-item:hover {
    transform: translateY(-2px);
}

.support-item:hover::after {
    transform: translateX(120%);
}

.support-item i {
    font-size: 16px;
}

.support-fb {
    background: linear-gradient(135deg, #2570d8, #123f91);
}

.support-zalo {
    background: linear-gradient(135deg, #18b57e, #0b7e58);
    animation-delay: 110ms;
}

@keyframes support-enter {
    from {
        opacity: 0;
        transform: translateX(22px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 1060px) {
    .header-inner {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .brand {
        justify-content: space-between;
    }

    .header-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .shell {
        width: calc(100% - 20px);
    }

    .brand img {
        width: 148px;
    }

    .brand-meta strong {
        font-size: 12px;
    }

    .brand-meta span {
        font-size: 10px;
        letter-spacing: 0.09em;
    }

    .header-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .primary-actions,
    .secondary-actions {
        width: 100%;
        box-shadow: none;
    }

    .primary-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .secondary-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .btn,
    .chip {
        width: 100%;
        min-height: 40px;
        font-size: 11px;
        padding: 0 8px;
        justify-content: center;
    }

    .support-float {
        right: max(10px, env(safe-area-inset-right));
        bottom: max(12px, calc(env(safe-area-inset-bottom) + 8px));
        gap: 8px;
    }

    .support-item {
        width: 46px;
        min-height: 46px;
        padding: 0;
        justify-content: center;
        border-radius: 12px;
    }

    .support-item span {
        display: none;
    }
}
