:root {
    --xxx-bg: #05080a;
    --xxx-surface: #081015;
    --xxx-line: rgba(102, 178, 212, .16);
    --xxx-text: #f4f8fa;
    --xxx-muted: #83939d;
    --xxx-cyan: #2bbcff;
    --xxx-green: #56d56b;
    --xxx-amber: #f2b84b;
    --xxx-red: #ff5e68;
    --xxx-ui-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    --xxx-data-font: "DIN Alternate", "Arial Narrow", "Roboto Condensed", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.xxx-access-page[hidden],
.xxx-entry-cover[hidden],
.xxx-access-card[hidden],
.access-result[hidden] { display: none !important; }

.xxx-waiting-x[hidden] { display: none !important; }
.xxx-waiting-x {
    align-items: center;
    display: flex;
    height: 88px;
    justify-content: center;
    margin: 12px auto 18px;
    position: relative;
    width: 88px;
}
.xxx-waiting-x::before,
.xxx-waiting-x::after {
    border: 1px solid rgba(43, 188, 255, .32);
    border-radius: 50%;
    content: "";
    inset: 4px;
    position: absolute;
}
.xxx-waiting-x::before {
    border-left-color: transparent;
    border-right-color: transparent;
    animation: xxx-waiting-x-spin 2.4s linear infinite;
}
.xxx-waiting-x::after {
    border-bottom-color: transparent;
    inset: 13px;
    animation: xxx-waiting-x-spin 3.2s linear infinite reverse;
}
.xxx-waiting-x span {
    color: var(--xxx-cyan);
    filter: drop-shadow(0 0 9px rgba(43, 188, 255, .55));
    font: 800 30px/1 var(--xxx-data-font);
    position: relative;
    z-index: 1;
}
@keyframes xxx-waiting-x-spin { to { transform: rotate(360deg); } }

.xxx-access-page,
.xxx-access-page * { box-sizing: border-box; }

.xxx-access-page {
    align-items: center;
    background-color: var(--xxx-bg);
    background-image:
        radial-gradient(circle at 50% 48%, rgba(29, 151, 210, .13) 0, rgba(5, 12, 16, .04) 28%, transparent 54%),
        linear-gradient(135deg, rgba(3, 7, 10, .92), rgba(5, 14, 19, .72)),
        url("/static/xxx-assets/Brand/tactical-grid.png");
    background-position: center;
    background-size: auto, auto, cover;
    display: flex;
    inset: 0;
    justify-content: center;
    min-height: 100vh;
    overflow: auto;
    padding: 24px;
    position: fixed;
    width: 100%;
    z-index: 20000;
}

.xxx-access-page::before {
    background:
        linear-gradient(90deg, transparent 49.92%, rgba(43, 188, 255, .055) 50%, transparent 50.08%),
        linear-gradient(transparent 49.92%, rgba(43, 188, 255, .045) 50%, transparent 50.08%),
        radial-gradient(circle at center, transparent 0 34%, rgba(0, 0, 0, .34) 70%, rgba(0, 0, 0, .72) 100%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: fixed;
}

.xxx-access-page::after {
    background: linear-gradient(90deg, transparent, rgba(43, 188, 255, .2), transparent);
    content: "";
    height: 1px;
    left: 12%;
    opacity: .38;
    pointer-events: none;
    position: fixed;
    right: 12%;
    top: 50%;
}

.xxx-access-card {
    background: rgba(5, 10, 14, .94);
    border: 1px solid rgba(76, 144, 174, .32);
    border-radius: 4px;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .5);
    color: var(--xxx-text);
    font-family: var(--xxx-ui-font);
    max-width: calc(100vw - 40px);
    padding: 34px;
    position: relative;
    width: 480px;
    z-index: 2;
}

.xxx-entry-cover {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: calc(100vh - 48px);
    position: relative;
    width: 100%;
    z-index: 2;
}

.xxx-entry-stage {
    align-items: center;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    max-width: 560px;
    position: relative;
    width: min(48vw, 560px);
}

.xxx-entry-stage::before,
.xxx-entry-stage::after {
    content: "";
    pointer-events: none;
    position: absolute;
}

.xxx-entry-stage::before {
    border: 1px solid rgba(77, 178, 221, .14);
    border-radius: 50%;
    inset: 5%;
    box-shadow: inset 0 0 80px rgba(25, 145, 196, .035), 0 0 80px rgba(0, 0, 0, .55);
}

.xxx-entry-stage::after {
    border: 1px solid rgba(62, 151, 190, .12);
    inset: 19%;
    transform: rotate(45deg);
}

.xxx-entry-halo {
    background: radial-gradient(circle, rgba(51, 188, 245, .17) 0, rgba(17, 93, 126, .08) 36%, transparent 68%);
    border-radius: 50%;
    inset: 13%;
    pointer-events: none;
    position: absolute;
    animation: xxx-entry-breathe 5.8s ease-in-out infinite;
}

.xxx-entry-frame {
    background:
        linear-gradient(90deg, rgba(52, 168, 217, .22), transparent) left top / 28% 1px no-repeat,
        linear-gradient(180deg, rgba(52, 168, 217, .22), transparent) left top / 1px 28% no-repeat,
        linear-gradient(270deg, rgba(52, 168, 217, .22), transparent) right top / 28% 1px no-repeat,
        linear-gradient(180deg, rgba(52, 168, 217, .22), transparent) right top / 1px 28% no-repeat,
        linear-gradient(90deg, rgba(52, 168, 217, .22), transparent) left bottom / 28% 1px no-repeat,
        linear-gradient(0deg, rgba(52, 168, 217, .22), transparent) left bottom / 1px 28% no-repeat,
        linear-gradient(270deg, rgba(52, 168, 217, .22), transparent) right bottom / 28% 1px no-repeat,
        linear-gradient(0deg, rgba(52, 168, 217, .22), transparent) right bottom / 1px 28% no-repeat;
    inset: 11%;
    pointer-events: none;
    position: absolute;
}

.xxx-entry-scan {
    background: linear-gradient(180deg, transparent, rgba(61, 198, 255, .15), transparent);
    height: 22%;
    left: 16%;
    pointer-events: none;
    position: absolute;
    right: 16%;
    top: 14%;
    animation: xxx-entry-scan 6.5s cubic-bezier(.45, 0, .55, 1) infinite;
}

.xxx-entry-mark {
    align-items: center;
    background: transparent;
    border: 0;
    cursor: default;
    display: inline-flex;
    justify-content: center;
    margin: 0;
    outline: none;
    padding: 24px;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    z-index: 3;
}

.xxx-entry-mark img {
    clip-path: polygon(7% 0, 50% 38%, 93% 0, 100% 7%, 62% 50%, 100% 93%, 93% 100%, 50% 62%, 7% 100%, 0 93%, 38% 50%, 0 7%);
    display: block;
    filter: drop-shadow(0 18px 42px rgba(0, 0, 0, .72)) drop-shadow(0 0 26px rgba(43, 188, 255, .22));
    height: 220px;
    mix-blend-mode: screen;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    width: 220px;
    animation: xxx-entry-float 6s ease-in-out infinite;
}

@keyframes xxx-entry-breathe {
    0%, 100% { opacity: .58; transform: scale(.96); }
    50% { opacity: 1; transform: scale(1.04); }
}

@keyframes xxx-entry-scan {
    0%, 8% { opacity: 0; transform: translateY(0); }
    20% { opacity: .7; }
    72% { opacity: .3; transform: translateY(280%); }
    82%, 100% { opacity: 0; transform: translateY(320%); }
}

@keyframes xxx-entry-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.xxx-access-brand {
    align-items: center;
    border-bottom: 1px solid rgba(43, 188, 255, .2);
    display: flex;
    gap: 15px;
    margin-bottom: 24px;
    padding-bottom: 23px;
}

.xxx-access-mark {
    filter: drop-shadow(0 0 11px rgba(43, 188, 255, .22));
    height: 48px;
    mix-blend-mode: screen;
    object-fit: contain;
    width: 48px;
}

.xxx-access-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.xxx-access-brand-copy span {
    color: var(--xxx-cyan);
    font-family: var(--xxx-data-font);
    font-size: 8px;
    letter-spacing: .17em;
}

.xxx-access-brand-copy strong {
    color: #f2f7f9;
    font-size: 15px;
    font-weight: 680;
    letter-spacing: .05em;
}

.xxx-access-heading { margin-bottom: 20px; }

.xxx-access-heading h1 {
    color: #f3f8fa;
    font-family: var(--xxx-ui-font);
    font-size: 25px;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.25;
    margin: 0;
}

.xxx-access-heading p {
    color: #71838d;
    font-family: var(--xxx-data-font);
    font-size: 10px;
    letter-spacing: .08em;
    line-height: 1.6;
    margin: 9px 0 0;
    text-transform: uppercase;
}

.xxx-license-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    width: 100%;
}

.xxx-license-input {
    background: rgba(17, 26, 31, .88);
    border: 1px solid rgba(38, 187, 255, .38);
    border-radius: 8px;
    color: #ecfffb;
    font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 14px;
    height: 50px;
    letter-spacing: .045em;
    margin: 0;
    outline: none;
    padding: 0 15px;
    text-align: left;
    text-transform: uppercase;
    width: 100%;
}

.xxx-license-input:focus { border-color: #26bbff; box-shadow: 0 0 0 3px rgba(38, 187, 255, .16); }
.xxx-license-input::placeholder { color: rgba(214, 239, 234, .38); letter-spacing: 0; }

.xxx-license-submit {
    background: linear-gradient(135deg, #168ddd, #26bbff);
    border: 0;
    border-radius: 8px;
    color: #04110f;
    cursor: pointer;
    font-family: var(--xxx-ui-font);
    font-size: 14px;
    font-weight: 800;
    height: 48px;
    margin: 0;
    padding: 0 16px;
    transition: opacity .2s ease, transform .2s ease;
    width: 100%;
}

.xxx-license-submit:not(:disabled):hover { transform: translateY(-2px); }
.xxx-license-submit:disabled { cursor: default; opacity: .42; }

.xxx-license-status {
    color: rgba(220, 244, 239, .7);
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
    min-height: 18px;
    text-align: center;
}

.xxx-license-status.is-error { color: #ff7777; }

.xxx-updater-link {
    align-self: center;
    color: rgba(128, 205, 239, .76);
    font-size: 12px;
    line-height: 20px;
    text-decoration: none;
}

.xxx-updater-link:hover { color: #26bbff; }

.access-result {
    background: rgba(8, 16, 21, .82);
    border: 1px solid rgba(43, 188, 255, .24);
    border-radius: 4px;
    margin-top: 18px;
    padding: 15px;
}

.access-result-head,
.access-result-head > div,
.access-result-actions { align-items: center; display: flex; }
.access-result-head { gap: 10px; justify-content: space-between; }
.access-result-head > div { gap: 8px; font-size: 13px; }
.access-status-dot { background: var(--xxx-amber); border-radius: 50%; box-shadow: 0 0 8px rgba(242, 184, 75, .65); height: 8px; width: 8px; }
.access-status-dot.is-online { background: var(--xxx-green); box-shadow: 0 0 8px rgba(86, 213, 107, .65); }
.access-status-pill { color: var(--xxx-muted); font: 10px var(--xxx-data-font); }

.access-details {
    background: var(--xxx-line);
    border: 1px solid var(--xxx-line);
    border-radius: 3px;
    display: grid;
    gap: 1px;
    grid-template-columns: 1fr 1fr;
    margin: 13px 0;
    overflow: hidden;
}

.access-details div { background: rgba(5, 10, 14, .96); padding: 9px 10px; }
.access-details dt { color: var(--xxx-muted); font-size: 10px; }
.access-details dd { color: var(--xxx-text); font-size: 11px; font-weight: 600; margin: 3px 0 0; }
#xxxAccessRoom { color: #8edfff; font-family: var(--xxx-data-font); }
.access-result-actions { gap: 8px; justify-content: flex-end; }
.access-primary, .access-secondary { border-radius: 3px; cursor: pointer; min-height: 38px; padding: 0 13px; }
.access-primary { background: #26bbff; border: 1px solid #26bbff; color: #04110f; font-weight: 800; }
.access-primary:disabled { cursor: wait; opacity: .42; }
.access-secondary { background: transparent; border: 1px solid var(--xxx-line); color: #bdeeff; }

@media (max-width: 560px) {
    .xxx-access-page { padding: 12px; }
    .xxx-access-card { max-width: calc(100vw - 24px); padding: 25px 20px; width: 100%; }
    .xxx-access-heading h1 { font-size: 22px; }
    .xxx-entry-stage { width: min(92vw, 420px); }
    .xxx-entry-mark img { height: 142px; width: 142px; }
    .access-details { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .xxx-entry-halo,
    .xxx-entry-scan,
    .xxx-entry-mark img,
    .xxx-waiting-x::before,
    .xxx-waiting-x::after { animation: none; }
}
