:root {
    --bg: #000000;
    --panel: rgba(5, 5, 5, 0.92);
    --panel-strong: rgba(5, 5, 5, 0.98);
    --line: rgba(255, 0, 0, 0.2);
    --line-strong: rgba(255, 0, 0, 0.4);
    --accent: #ff2121;
    --accent-soft: #ff4545;
    --accent-wash: rgba(255, 33, 33, 0.1);
    --accent-faint: rgba(255, 33, 33, 0.2);
    --text: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.66);
    --glow: 0 0 30px rgba(255, 33, 33, 0.22);
    --radius: 0px;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
    border-radius: 0 !important;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 15%, rgba(255, 33, 33, 0.18), transparent 32%),
        radial-gradient(circle at 85% 25%, rgba(255, 33, 33, 0.12), transparent 28%),
        linear-gradient(180deg, #030303 0%, #000000 100%);
    color: var(--text);
    font-family: "Chakra Petch", monospace;
    overflow-x: hidden;
}

body.is-nav-open {
    overflow: hidden;
}

.error-body {
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 100%),
        linear-gradient(rgba(255, 255, 255, 0.01) 0 1px, transparent 1px 100%);
    background-size: 72px 72px;
    opacity: 0.18;
    pointer-events: none;
    z-index: -1;
}

@keyframes glitchShiftA {
    0%, 100% { transform: translate(2px, 0); opacity: 0.22; }
    20% { transform: translate(3px, -1px); opacity: 0.32; }
    42% { transform: translate(1px, 1px); opacity: 0.18; }
    64% { transform: translate(4px, 0); opacity: 0.3; }
}

@keyframes glitchShiftB {
    0%, 100% { transform: translate(-2px, 0); opacity: 0.18; }
    18% { transform: translate(-4px, 1px); opacity: 0.28; }
    45% { transform: translate(-1px, -1px); opacity: 0.14; }
    72% { transform: translate(-3px, 0); opacity: 0.25; }
}

@keyframes glitchGhostPulse {
    0%, 100% { opacity: 0.5; transform: translateX(0); }
    18% { opacity: 0.78; transform: translateX(2px); }
    19% { opacity: 0.28; transform: translateX(-3px); }
    40% { opacity: 0.62; transform: translateX(0); }
    58% { opacity: 0.74; transform: translateX(1px); }
    59% { opacity: 0.34; transform: translateX(-2px); }
    100% { opacity: 0.5; transform: translateX(0); }
}

@keyframes glitchTitlePulse {
    0%, 100% { transform: translate3d(0, 0, 0); text-shadow: 0 0 24px rgba(255, 33, 33, 0.18); }
    14% { transform: translate3d(1px, 0, 0); text-shadow: -2px 0 rgba(255, 255, 255, 0.12), 2px 0 rgba(255, 33, 33, 0.3), 0 0 30px rgba(255, 33, 33, 0.18); }
    15% { transform: translate3d(-2px, 0, 0); text-shadow: 2px 0 rgba(255, 69, 69, 0.3), -2px 0 rgba(255, 255, 255, 0.1), 0 0 28px rgba(255, 33, 33, 0.22); }
    16% { transform: translate3d(0, 0, 0); text-shadow: 0 0 24px rgba(255, 33, 33, 0.18); }
    61% { transform: translate3d(1px, -1px, 0); text-shadow: -1px 0 rgba(255, 255, 255, 0.1), 2px 0 rgba(255, 33, 33, 0.28), 0 0 26px rgba(255, 33, 33, 0.2); }
    62% { transform: translate3d(-1px, 1px, 0); text-shadow: 2px 0 rgba(255, 69, 69, 0.24), -2px 0 rgba(255, 255, 255, 0.1), 0 0 28px rgba(255, 33, 33, 0.24); }
    63% { transform: translate3d(0, 0, 0); text-shadow: 0 0 24px rgba(255, 33, 33, 0.18); }
}

@keyframes sweepLine {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(120%); }
}

@keyframes pulseLine {
    0%, 100% { box-shadow: 0 0 0 rgba(255, 33, 33, 0); border-color: var(--line); }
    50% { box-shadow: 0 0 28px rgba(255, 33, 33, 0.16); border-color: var(--line-strong); }
}

@keyframes floatPanel {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

code {
    font-family: "Chakra Petch", monospace;
}

.site-shell {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(0px);
    background: rgba(0, 0, 0, 0);
    border-bottom: 1px solid transparent;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transition:
        background 180ms ease,
        border-color 180ms ease,
        backdrop-filter 180ms ease,
        box-shadow 180ms ease;
}

.site-shell:hover,
.site-shell:focus-within,
.site-shell.is-scrolled,
.site-shell.is-nav-open {
    backdrop-filter: blur(18px);
    background: rgba(0, 0, 0, 0.84);
    border-bottom-color: var(--line-strong);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.26);
}

.nav-bar,
.page-shell {
    width: min(1180px, calc(100vw - 32px));
    margin: 0 auto;
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}

.nav-primary {
    display: flex;
    align-items: center;
    gap: 24px;
    min-width: 0;
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: "Chakra Petch", sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.nav-brand__mark {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    background: url("/assets/yd-mark.svg") center / contain no-repeat;
}

.nav-brand__line {
    display: block;
}

.nav-brand__copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-brand__line:last-child {
    color: var(--accent-soft);
}

.nav-brand--menu {
    display: none;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
}

.nav-links__head {
    display: none;
}

.nav-toggle {
    display: none;
}

.nav-toggle__line {
    display: block;
}

.nav-search-trigger {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-dim);
    font: inherit;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    position: relative;
    cursor: pointer;
}

.nav-qr-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid var(--line-strong);
    background: linear-gradient(135deg, rgba(255, 33, 33, 0.22), rgba(255, 33, 33, 0.08));
    color: var(--text);
    font: inherit;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.nav-links a,
.nav-user {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-dim);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    position: relative;
}

.nav-links a::after,
.nav-user::after,
.nav-search-trigger::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 160ms ease;
}

.nav-links a:hover,
.nav-user:hover,
.nav-search-trigger:hover {
    color: var(--text);
}

.nav-qr-trigger:hover,
.nav-qr-trigger:focus-visible {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(255, 33, 33, 0.42), rgba(255, 33, 33, 0.14));
    color: var(--text);
    box-shadow: 0 0 18px rgba(255, 33, 33, 0.14);
    transform: translateY(-1px);
    outline: none;
}

.nav-links a:hover::after,
.nav-user:hover::after,
.nav-search-trigger:hover::after {
    transform: scaleX(1);
}

.nav-user--desktop::after,
.nav-user--mobile::after {
    display: none;
}

.page-shell--error {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.error-screen {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 48px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.error-screen__shell {
    position: relative;
    width: min(760px, 100%);
    padding: 36px;
    border: 1px solid var(--line-strong);
    background:
        linear-gradient(180deg, rgba(255, 33, 33, 0.08), rgba(0, 0, 0, 0)),
        var(--panel-strong);
    box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 33, 33, 0.08);
    animation: pulseLine 4s ease-in-out infinite;
}

.error-screen__head h1 {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 4.4rem);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.error-screen__code-strip {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin: 22px 0 14px;
    padding: 14px 16px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 33, 33, 0.08);
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.error-screen__code-strip span {
    color: var(--text-dim);
    font-size: 0.82rem;
}

.error-screen__code-strip strong {
    color: var(--accent-soft);
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1;
}

.error-screen__lead {
    margin-bottom: 14px;
    color: var(--accent-soft);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.92rem;
}

.error-screen__message {
    padding: 18px 18px 20px;
    border: 1px solid var(--line);
    background: rgba(255, 33, 33, 0.04);
    color: var(--text);
    line-height: 1.7;
}

.error-screen__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
}

.signal-count-banner {
    margin-top: 12px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 33, 33, 0.26);
    background:
        linear-gradient(180deg, rgba(255, 33, 33, 0.08), rgba(0, 0, 0, 0)),
        rgba(0, 0, 0, 0.88);
}

.signal-count-banner h2 {
    margin: 10px 0 0;
    font-size: clamp(1.15rem, 2vw, 1.8rem);
    line-height: 1.15;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-soft);
}

.signal-count-banner--home {
    margin-top: 18px;
}

.nav-links a.is-active {
    color: var(--text);
}

.nav-links a.is-active::after {
    transform: scaleX(1);
    background: linear-gradient(90deg, rgba(255, 33, 33, 0.2), var(--accent), rgba(255, 33, 33, 0.2));
}

.nav-user {
    color: var(--text);
}

.nav-user--desktop {
    display: inline-flex;
    align-items: center;
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-user--mobile {
    display: none;
}

.page-shell {
    padding: 28px 0 72px;
}

.hero,
.login-page,
.support-hero,
.content-panel,
.info-panel,
.support-form-card,
.faq-search-card,
.faq-item,
.cta-card,
.news-card,
.admin-login-card {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.cyber-grid::before,
.content-panel::before,
.info-panel::before,
.support-form-card::before,
.faq-search-card::before,
.news-card::before,
.admin-login-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(transparent 96%, rgba(255, 33, 33, 0.08) 100%),
        linear-gradient(90deg, transparent 96%, rgba(255, 33, 33, 0.06) 100%);
    background-size: 100% 24px, 24px 100%;
    opacity: 0.22;
    pointer-events: none;
}

.login-page {
    padding: 32px;
}

.hero-gate,
.split-panels,
.cta-row,
.gate-panels,
.support-layout,
.faq-layout,
.admin-grid {
    display: grid;
    gap: 24px;
}

.hero-gate {
    grid-template-columns: 1.1fr 1fr;
    min-height: 420px;
}

.hero-split {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    min-height: 100%;
}

.hero-gate__copy,
.hero-gate__scan,
.hero-copy,
.content-panel,
.info-panel,
.support-form-card,
.faq-search-card,
.admin-login-card {
    padding: 28px;
}

.hero-gate__copy,
.hero-copy {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 16px;
}

.hero-gate__copy::before,
.hero-copy::before,
.section-head::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: min(436px, calc(100% - 8px));
    height: 168px;
    border: 1px solid rgba(255, 33, 33, 0.18);
    background:
        linear-gradient(transparent 95%, rgba(255, 33, 33, 0.08) 100%),
        linear-gradient(90deg, transparent 95%, rgba(255, 33, 33, 0.06) 100%),
        linear-gradient(135deg, rgba(255, 33, 33, 0.16), rgba(255, 33, 33, 0.01) 54%);
    background-size: 100% 18px, 18px 100%, 100% 100%;
    opacity: 0.42;
    pointer-events: none;
    z-index: 0;
}

.hero-gate__copy > *,
.hero-copy > *,
.section-head > * {
    position: relative;
    z-index: 1;
}

.hero-gate__copy h1,
.hero-copy h1,
.section-head h1 {
    margin: 0;
    font-family: "Chakra Petch", sans-serif;
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    line-height: 0.92;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-title-stack {
    position: relative;
    display: grid;
    gap: 6px;
}

.hero-title-stack__ghost {
    font-family: "Chakra Petch", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 0.74rem;
    color: rgba(255, 69, 69, 0.55);
    animation: glitchGhostPulse 3.4s infinite steps(2, end);
}

.glitch-title {
    position: relative;
    display: inline-block;
    text-shadow: 0 0 24px rgba(255, 33, 33, 0.18);
    animation: glitchTitlePulse 4.2s infinite steps(2, end);
    will-change: transform, opacity, text-shadow;
}

.glitch-title--stacked {
    white-space: pre-line;
}

.glitch-title::before,
.glitch-title::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.25;
}

.glitch-title--stacked::before,
.glitch-title--stacked::after {
    white-space: pre-line;
}

.glitch-title::before {
    color: rgba(255, 69, 69, 0.8);
    clip-path: polygon(0 8%, 100% 0, 100% 38%, 0 46%);
    animation: glitchShiftA 2.8s infinite steps(2, end);
    opacity: 0.52;
}

.glitch-title::after {
    color: rgba(255, 33, 33, 0.75);
    clip-path: polygon(0 58%, 100% 49%, 100% 100%, 0 92%);
    animation: glitchShiftB 3.2s infinite steps(2, end);
    opacity: 0.58;
}

.same-device-entry {
    margin-top: 28px;
    padding: 18px 18px 16px;
    border: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(255, 33, 33, 0.08), rgba(255, 33, 33, 0)),
        rgba(11, 7, 9, 0.82);
    position: relative;
    overflow: hidden;
}

.same-device-entry::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 0, rgba(255, 69, 69, 0.1) 48%, transparent 100%);
    opacity: 0.35;
    pointer-events: none;
    animation: sweepLine 4.8s linear infinite;
}

.same-device-entry > * {
    position: relative;
    z-index: 1;
}

.same-device-entry__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.same-device-entry__button {
    min-width: 180px;
}

.section-head {
    position: relative;
    isolation: isolate;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
    margin-bottom: 24px;
}

.section-head::before {
    top: -6px;
    width: min(420px, calc(100% - 24px));
    height: 104px;
    opacity: 0.32;
}

.section-head__text {
    max-width: 520px;
    color: var(--text-dim);
}

.eyebrow,
.panel-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    border: 1px solid var(--line);
    background: rgba(255, 33, 33, 0.06);
    color: var(--accent-soft);
    font-size: 0.72rem;
    font-family: "Chakra Petch", sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.status-strip,
.panel-heading,
.news-meta,
.support-log__meta,
.scan-card__head {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.status-strip {
    margin-top: 12px;
    color: var(--text-dim);
}

.status-strip strong,
.scan-card__head strong {
    color: var(--text);
}

.hero-gate__scan {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-content: stretch;
}

.scan-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 33, 33, 0.04), rgba(255, 33, 33, 0.015));
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.scan-card__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.qr-frame {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 290px;
    border: 1px dashed var(--line-strong);
    background: rgba(255, 33, 33, 0.03);
    overflow: hidden;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.scan-card__badge,
.scan-card__footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    background: rgba(255, 33, 33, 0.04);
    color: var(--text-dim);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scan-card__badge {
    align-self: flex-start;
    justify-content: center;
    color: var(--accent-soft);
}

.qr-visibility-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    background: rgba(255, 33, 33, 0.04);
    color: var(--text-dim);
    font: inherit;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.qr-visibility-button:hover,
.qr-visibility-button:focus-visible {
    border-color: var(--line-strong);
    background: rgba(255, 33, 33, 0.1);
    color: var(--text);
    box-shadow: 0 0 18px rgba(255, 33, 33, 0.12);
    outline: none;
}

.qr-visibility-button__icon {
    position: relative;
    width: 18px;
    height: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.qr-visibility-button__icon::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid currentColor;
    border-radius: 999px;
}

.qr-visibility-button__icon-eye {
    width: 4px;
    height: 4px;
    background: currentColor;
    clip-path: circle(50% at 50% 50%);
    box-shadow: 0 0 10px rgba(255, 33, 33, 0.2);
}

.qr-visibility-button__icon-slash {
    position: absolute;
    width: 22px;
    height: 2px;
    background: currentColor;
    transform: rotate(-28deg);
    box-shadow: 0 0 12px rgba(255, 33, 33, 0.16);
    transition: opacity 160ms ease, transform 160ms ease;
}

.qr-visibility-button__text {
    line-height: 1;
}

.qr-visibility-button__icon--veil {
    width: 40px;
    height: 24px;
    margin-bottom: 4px;
}

.qr-visibility-button__icon--veil::before {
    border-width: 2px;
    box-shadow: 0 0 18px rgba(255, 33, 33, 0.16);
}

.qr-visibility-button__icon--veil .qr-visibility-button__icon-eye {
    width: 8px;
    height: 8px;
}

.qr-visibility-button__icon--veil .qr-visibility-button__icon-slash {
    width: 48px;
    height: 2px;
}

.qr-frame__veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 12px;
    padding: 24px;
    text-align: center;
    color: var(--text);
    cursor: pointer;
    background:
        linear-gradient(180deg, rgba(255, 33, 33, 0.08), rgba(255, 33, 33, 0.02)),
        rgba(5, 5, 5, 0.94);
    transition: opacity 180ms ease, visibility 180ms ease, background 160ms ease, box-shadow 160ms ease;
}

.qr-frame__veil:hover {
    background:
        linear-gradient(180deg, rgba(255, 33, 33, 0.12), rgba(255, 33, 33, 0.03)),
        rgba(5, 5, 5, 0.96);
    box-shadow: inset 0 0 0 1px rgba(255, 33, 33, 0.14);
}

.qr-frame__veil:focus-visible {
    outline: none;
    background:
        linear-gradient(180deg, rgba(255, 33, 33, 0.12), rgba(255, 33, 33, 0.03)),
        rgba(5, 5, 5, 0.96);
    box-shadow:
        inset 0 0 0 1px rgba(255, 33, 33, 0.18),
        0 0 0 1px rgba(255, 33, 33, 0.22);
}

.qr-frame__veil::before,
.qr-frame__veil::after {
    content: "";
    position: absolute;
    width: 34px;
    height: 34px;
    border-color: rgba(255, 33, 33, 0.48);
    border-style: solid;
}

.qr-frame__veil::before {
    top: 12px;
    left: 12px;
    border-width: 2px 0 0 2px;
}

.qr-frame__veil::after {
    right: 12px;
    bottom: 12px;
    border-width: 0 2px 2px 0;
}

.qr-frame__veil-title {
    display: block;
    font-family: "Chakra Petch", sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text);
}

.qr-frame__veil-note {
    display: block;
    max-width: 22ch;
    color: var(--text-dim);
    font-size: 0.82rem;
    line-height: 1.5;
}

.qr-frame .js-qr {
    opacity: 0;
    transform: scale(0.94);
    transition: opacity 180ms ease, transform 180ms ease;
}

.scan-card.is-qr-open .qr-frame {
    border-color: var(--line-strong);
    background: rgba(255, 33, 33, 0.06);
    box-shadow: 0 0 26px rgba(255, 33, 33, 0.14);
}

.scan-card.is-qr-open .qr-frame__veil {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.scan-card.is-qr-open .qr-frame .js-qr {
    opacity: 1;
    transform: scale(1);
}

.scan-card.is-qr-open .qr-visibility-button {
    border-color: var(--line-strong);
    background: rgba(255, 33, 33, 0.14);
    color: var(--text);
}

.scan-card.is-qr-open .qr-visibility-button__icon-slash {
    opacity: 0;
    transform: rotate(-28deg) scaleX(0.6);
}

.scan-note,
.hero-subtitle,
.hero-user,
.support-note,
.token-meta,
.auth-indicator,
.news-summary,
.panel-heading + p,
.content-panel p,
.faq-item__excerpt,
.support-log p {
    color: var(--text-dim);
}

.scan-note--warning {
    margin-top: -4px;
    color: var(--accent-soft);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    line-height: 1.45;
}

.auth-indicator {
    margin-top: 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    background: rgba(255, 33, 33, 0.05);
    font-family: "Chakra Petch", sans-serif;
    animation: pulseLine 3s infinite ease-in-out;
}

.auth-indicator.is-confirmed {
    color: #fff;
    border-color: var(--line-strong);
    box-shadow: 0 0 24px rgba(255, 33, 33, 0.18);
}

.auth-indicator.is-expired {
    border-color: var(--line-strong);
    opacity: 0.82;
}

.feature-points,
.news-rich-text ul {
    display: grid;
    gap: 10px;
    padding-left: 18px;
}

.mini-feature-grid,
.hero-console,
.signal-list,
.overview-ribbon,
.hero-sidecard__grid {
    display: grid;
    gap: 12px;
}

.hero-console {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 6px;
}

.hero-console--compact {
    margin-top: 18px;
}

.hero-console__item,
.mini-feature-grid__item,
.hero-sidecard__tile,
.overview-ribbon__card {
    padding: 14px 16px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255,33,33,0.08), rgba(255,33,33,0.02));
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.hero-console__item span,
.mini-feature-grid__item span,
.hero-sidecard__tile span,
.overview-ribbon__card span {
    display: block;
    color: var(--text-dim);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 8px;
}

.hero-console__item strong,
.mini-feature-grid__item strong,
.hero-sidecard__tile strong,
.overview-ribbon__card strong {
    display: block;
    font-family: "Chakra Petch", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.signal-list {
    margin-top: 4px;
}

.signal-list div {
    position: relative;
    padding-left: 18px;
    color: var(--text-dim);
}

.signal-list div::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(255, 33, 33, 0.4);
    transform: rotate(45deg);
}

.dev-panel {
    margin-top: 24px;
    padding: 28px;
    background: var(--panel-strong);
    border: 1px dashed var(--line-strong);
}

.dev-form,
.support-form,
.admin-form {
    display: grid;
    gap: 16px;
}

label {
    display: grid;
    gap: 8px;
}

label span {
    color: var(--text-dim);
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--line);
    background: rgba(5, 5, 5, 0.96);
    color: var(--text);
    padding: 14px 16px;
    font: inherit;
    resize: vertical;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}

input[type="search"]::-ms-clear,
input[type="search"]::-ms-reveal {
    display: none;
    width: 0;
    height: 0;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--line-strong);
    box-shadow: 0 0 0 4px rgba(255, 33, 33, 0.12);
}

.action-button,
.mini-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border: 1px solid var(--line-strong);
    background:
        linear-gradient(135deg, rgba(255, 33, 33, 0.94), rgba(122, 0, 0, 0.92));
    color: white;
    font-family: "Chakra Petch", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
    box-shadow: var(--glow);
}

.action-button--ghost,
.mini-button {
    background: transparent;
    color: var(--text);
}

.split-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 24px;
}

.overview-ribbon {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel-heading {
    justify-content: space-between;
}

.panel-heading h2 {
    margin: 0;
    font-family: "Chakra Petch", sans-serif;
    text-transform: uppercase;
}

.micro-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 33, 33, 0.7), transparent);
    margin: 10px 0 6px;
}

.cta-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 24px;
}

.cta-card {
    padding: 28px;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 10px;
    min-height: 200px;
}

.cta-card__label {
    color: var(--accent-soft);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.75rem;
}

.cta-card strong {
    font-size: 1.35rem;
    line-height: 1.15;
}

.cta-card > span:not(.cta-card__label):not(.cta-card__link) {
    color: var(--text-dim);
    max-width: 42ch;
}

.cta-card__link {
    justify-self: end;
    align-self: end;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 8px 0 0 18px;
    color: var(--accent-soft);
    font-family: "Chakra Petch", sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    position: relative;
}

.cta-card__link::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 64px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

.news-stream {
    display: grid;
    gap: 28px;
}

.news-card {
    display: grid;
    grid-template-columns: minmax(240px, 320px) 1fr;
}

.news-card__visual {
    border-right: 1px solid var(--line);
    background: rgba(255, 33, 33, 0.02);
}

.news-card__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card__body {
    padding: 26px;
}

.news-card__body h2 {
    margin: 16px 0 10px;
    font-family: "Chakra Petch", sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    text-transform: uppercase;
}

.news-rich-text h3 {
    margin-top: 22px;
    font-family: "Chakra Petch", sans-serif;
    color: var(--accent-soft);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.news-rich-text a {
    color: var(--accent-soft);
    text-decoration: underline;
}

.news-footer {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}

.news-footer__qr {
    display: flex;
    gap: 12px;
    align-items: center;
    color: var(--text-dim);
}

.news-inline-qr {
    width: 84px;
    height: 84px;
}

.support-hero {
    min-height: 260px;
    margin-bottom: 24px;
}

.hero-sidecard {
    position: relative;
    z-index: 1;
    align-self: end;
    margin: 32px 32px 32px 0;
    padding: 22px;
    border: 1px solid var(--line);
    background: rgba(5, 5, 5, 0.9);
    box-shadow: var(--shadow);
    clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}

.hero-sidecard .panel-heading {
    align-items: start;
}

.hero-sidecard__head {
    justify-content: space-between;
    gap: 18px;
}

.hero-sidecard .panel-heading h2 {
    font-size: 1.15rem;
}

.hero-qr-cta {
    align-self: start;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--accent);
    background: linear-gradient(135deg, rgba(255, 33, 33, 0.96), rgba(150, 0, 0, 0.92));
    color: #fff;
    font: inherit;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
    box-shadow: 0 0 22px rgba(255, 33, 33, 0.22);
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.hero-qr-cta span {
    line-height: 1;
}

.hero-qr-cta strong {
    font-size: 1rem;
    line-height: 1;
}

.hero-qr-cta:hover,
.hero-qr-cta:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 0 26px rgba(255, 33, 33, 0.28);
    filter: brightness(1.06);
    outline: none;
}

.support-layout {
    grid-template-columns: 1fr;
    gap: 28px;
}

.support-form-card {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
    align-items: start;
    gap: 26px;
}

.support-form-card__intro,
.support-form-card__form {
    position: relative;
    z-index: 1;
}

.support-form-card__lead {
    max-width: 42ch;
    color: var(--text-dim);
}

.support-form__row {
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(220px, 1.1fr);
    gap: 16px;
}

.support-signal-grid {
    margin-top: 18px;
}

.message-field {
    gap: 10px;
}

.message-editor {
    position: relative;
    min-height: 244px;
    border: 1px solid var(--line);
    background: rgba(5, 5, 5, 0.96);
    overflow: hidden;
}

.message-editor::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(transparent 96%, rgba(255, 33, 33, 0.08) 100%),
        linear-gradient(90deg, transparent 96%, rgba(255, 33, 33, 0.05) 100%);
    background-size: 100% 22px, 22px 100%;
    opacity: 0.16;
    pointer-events: none;
}

.message-editor__highlight,
.message-editor__input {
    width: 100%;
    min-height: 244px;
    margin: 0;
    padding: 16px 18px;
    font: inherit;
    line-height: 1.55;
    letter-spacing: 0.01em;
    white-space: pre-wrap;
    word-break: break-word;
    tab-size: 4;
}

.message-editor__highlight {
    position: absolute;
    inset: 0;
    overflow: hidden;
    color: var(--text);
    pointer-events: none;
    z-index: 1;
}

.message-editor__input {
    position: relative;
    z-index: 2;
    border: 0;
    background: transparent;
    resize: vertical;
}

.message-editor.is-live .message-editor__input {
    color: transparent;
    caret-color: var(--text);
}

.message-editor.is-live .message-editor__input::placeholder {
    color: transparent;
}

.message-editor.is-empty::after {
    content: attr(data-placeholder);
    position: absolute;
    left: 18px;
    right: 18px;
    top: 16px;
    color: rgba(255, 255, 255, 0.3);
    line-height: 1.55;
    pointer-events: none;
    z-index: 1;
}

.message-invalid {
    padding: 0 1px;
    background: linear-gradient(180deg, rgba(255, 33, 33, 0.1), rgba(255, 33, 33, 0.34));
    color: #fff2f2;
    box-shadow: inset 0 -1px 0 rgba(255, 69, 69, 0.8);
}

.message-invalid--phone {
    background: linear-gradient(180deg, rgba(255, 33, 33, 0.14), rgba(255, 33, 33, 0.42));
}

.message-invalid--email {
    background: linear-gradient(180deg, rgba(255, 69, 69, 0.16), rgba(255, 33, 33, 0.44));
}

.message-invalid--code,
.message-invalid--mixed {
    background: linear-gradient(180deg, rgba(255, 33, 33, 0.2), rgba(255, 69, 69, 0.5));
}

.message-editor.has-invalid {
    border-color: var(--line-strong);
    box-shadow: 0 0 0 1px rgba(255, 33, 33, 0.26), 0 0 26px rgba(255, 33, 33, 0.08);
}

.message-validation {
    min-height: 1.15rem;
    color: var(--text-dim);
    font-size: 0.78rem;
    line-height: 1.4;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.message-validation.is-invalid {
    color: var(--accent-soft);
}

.message-editor__endcap {
    display: inline-block;
    width: 0;
}

.faq-zone {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 24px 24px 28px;
    clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
    box-shadow: var(--shadow);
}

.faq-zone::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(transparent 96%, rgba(255, 33, 33, 0.08) 100%),
        linear-gradient(90deg, transparent 96%, rgba(255, 33, 33, 0.06) 100%);
    background-size: 100% 24px, 24px 100%;
    opacity: 0.22;
    pointer-events: none;
}

.faq-zone__head {
    position: relative;
    z-index: 1;
    margin-bottom: 18px;
}

.faq-layout {
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    align-items: start;
    gap: 20px;
}

.search-control {
    position: relative;
}

.search-control input {
    padding-right: 88px;
}

.field-clear {
    position: absolute;
    top: 50%;
    right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 62px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--line);
    background: rgba(255, 33, 33, 0.08);
    color: var(--accent-soft);
    font: inherit;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    cursor: pointer;
    transform: translateY(-50%);
    transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.field-clear:hover,
.field-clear:focus-visible {
    border-color: var(--line-strong);
    background: rgba(255, 33, 33, 0.18);
    color: var(--text);
    outline: none;
}

.field-clear__glyph {
    position: relative;
    width: 12px;
    height: 10px;
    display: inline-block;
}

.field-clear__glyph::before,
.field-clear__glyph::after {
    content: "";
    position: absolute;
    left: 0;
    height: 2px;
    background: currentColor;
    box-shadow: 0 0 12px rgba(255, 33, 33, 0.22);
    transform: skewX(-38deg);
}

.field-clear__glyph::before {
    top: 1px;
    width: 12px;
}

.field-clear__glyph::after {
    top: 6px;
    width: 8px;
}

.field-clear__label {
    line-height: 1;
}

.faq-hints {
    display: grid;
    gap: 8px;
    margin-top: 14px;
    color: var(--text-dim);
    font-size: 0.92rem;
}

.faq-hints div {
    padding: 8px 10px;
    background: rgba(255, 33, 33, 0.04);
}

.faq-hint-button {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    background: rgba(255, 33, 33, 0.07);
    color: var(--text-dim);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}

.faq-hint-button:hover {
    color: var(--text);
    border-color: var(--line-strong);
    background: rgba(255, 33, 33, 0.12);
}

.faq-item.is-highlighted {
    border-color: var(--line-strong);
    box-shadow: 0 0 0 1px rgba(255, 33, 33, 0.35), 0 0 28px rgba(255, 33, 33, 0.14);
}

.cyber-select-field {
    position: relative;
}

.cyber-select {
    position: relative;
}

.cyber-select__trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--line-strong);
    background: rgba(5, 5, 5, 0.98);
    color: var(--text);
    font: inherit;
    cursor: pointer;
    text-align: left;
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.cyber-select__value {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cyber-select__arrow {
    color: var(--accent-soft);
    font-size: 1rem;
    line-height: 1;
    transition: transform 160ms ease;
}

.cyber-select__menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    display: none;
    z-index: 25;
    border: 1px solid var(--line-strong);
    background: rgba(5, 5, 5, 0.99);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.5), 0 0 18px rgba(255, 33, 33, 0.08);
    max-height: 320px;
    overflow-y: auto;
}

.cyber-select__menu,
.site-search-results {
    scrollbar-width: thin;
    scrollbar-color: var(--accent) rgba(255, 33, 33, 0.08);
}

.cyber-select__menu::-webkit-scrollbar,
.site-search-results::-webkit-scrollbar {
    width: 12px;
}

.cyber-select__menu::-webkit-scrollbar-track,
.site-search-results::-webkit-scrollbar-track {
    background: rgba(255, 33, 33, 0.05);
    border-left: 1px solid rgba(255, 33, 33, 0.18);
}

.cyber-select__menu::-webkit-scrollbar-thumb,
.site-search-results::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 69, 69, 0.9), rgba(255, 33, 33, 0.56));
    border: 2px solid rgba(5, 5, 5, 0.98);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 0 14px rgba(255, 33, 33, 0.18);
}

.cyber-select__menu::-webkit-scrollbar-thumb:hover,
.site-search-results::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(255, 69, 69, 1), rgba(255, 33, 33, 0.72));
}

.cyber-select__menu::-webkit-scrollbar-corner,
.site-search-results::-webkit-scrollbar-corner {
    background: rgba(5, 5, 5, 0.98);
}

.cyber-select.is-open .cyber-select__menu {
    display: block;
}

.cyber-select.is-open .cyber-select__arrow {
    transform: rotate(45deg);
}

.cyber-select__option {
    width: 100%;
    display: block;
    padding: 12px 16px;
    border: 0;
    border-bottom: 1px solid rgba(255, 33, 33, 0.08);
    background: transparent;
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.cyber-select__option:last-child {
    border-bottom: 0;
}

.cyber-select__option:hover,
.cyber-select__option.is-selected {
    background: rgba(255, 33, 33, 0.16);
}

.site-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
}

.site-qr-overlay {
    position: fixed;
    inset: 0;
    z-index: 102;
}

.site-search-overlay__scrim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(14px);
}

.site-qr-overlay__scrim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.74);
    backdrop-filter: blur(14px);
}

.site-search-shell {
    position: relative;
    z-index: 1;
    width: min(840px, calc(100vw - 28px));
    margin: 92px auto 0;
    padding: 24px;
    border: 1px solid var(--line-strong);
    background: rgba(5, 5, 5, 0.96);
    box-shadow: var(--shadow), 0 0 30px rgba(255, 33, 33, 0.12);
    clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}

.site-qr-shell {
    position: relative;
    z-index: 1;
    width: min(620px, calc(100vw - 28px));
    margin: 92px auto 0;
    padding: 24px;
    border: 1px solid var(--line-strong);
    background: rgba(5, 5, 5, 0.96);
    box-shadow: var(--shadow), 0 0 30px rgba(255, 33, 33, 0.14);
    clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}

.site-qr-head {
    align-items: start;
    gap: 16px;
}

.site-qr-head__copy {
    display: grid;
    gap: 10px;
}

.site-qr-shell__body {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    margin-top: 18px;
}

.site-qr-shell__code {
    display: grid;
    place-items: center;
    min-height: 280px;
    border: 1px solid var(--line);
    background: rgba(255, 33, 33, 0.05);
}

.site-qr-code {
    width: 240px;
    height: 240px;
}

.site-qr-shell__copy {
    display: grid;
    gap: 12px;
}

.site-qr-shell__copy strong {
    font-family: "Chakra Petch", sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.site-qr-shell__copy p {
    margin: 0;
    color: var(--text-dim);
}

.site-search-shell__controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-top: 14px;
}

.site-search-input {
    border: 1px solid var(--line-strong);
    background: rgba(255, 33, 33, 0.04);
}

.site-search-head {
    align-items: start;
    gap: 16px;
}

.site-search-head__copy {
    display: grid;
    gap: 10px;
}

.site-search-close {
    align-self: start;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text-dim);
    font: inherit;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    cursor: pointer;
    transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
}

.site-search-close:hover,
.site-search-close:focus-visible {
    border-color: var(--line-strong);
    color: var(--text);
    background: rgba(255, 33, 33, 0.08);
    transform: translateY(-1px);
    outline: none;
}

.site-search-meta {
    margin-top: 14px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.72rem;
}

.site-search-results {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    max-height: min(60vh, 620px);
    overflow-y: auto;
}

.site-search-result,
.site-search-empty {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    background: rgba(255, 33, 33, 0.04);
}

.site-search-result {
    transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.site-search-result:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
    background: rgba(255, 33, 33, 0.09);
}

.site-search-result__kind,
.site-search-result__meta {
    color: var(--accent-soft);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
}

.site-search-result__subtitle,
.site-search-empty {
    color: var(--text-dim);
}

body.is-searching .site-shell,
body.is-searching .page-shell,
body.is-qr-viewing .site-shell,
body.is-qr-viewing .page-shell {
    filter: blur(8px) brightness(0.42);
    transition: filter 180ms ease;
}

.faq-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
}

.faq-item summary {
    list-style: none;
    display: grid;
    gap: 10px;
    padding: 20px 22px;
    cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item__category {
    color: var(--accent-soft);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
}

.faq-item__answer {
    padding: 0 22px 22px;
    color: var(--text-dim);
}

.faq-item.is-hidden {
    display: none;
}

.admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 24px;
}

.admin-list,
.support-log {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.admin-list__item,
.support-log__item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    padding: 14px 16px;
    background: rgba(255, 33, 33, 0.03);
    border: 1px solid var(--line);
}

.admin-list__item strong,
.support-log__meta strong {
    display: block;
}

.support-log__item {
    display: grid;
    justify-content: stretch;
}

.support-log__meta {
    justify-content: flex-start;
    color: var(--text-dim);
}

.flash {
    margin-bottom: 18px;
    padding: 14px 18px;
    border: 1px solid var(--line);
    background: rgba(255, 33, 33, 0.04);
}

.flash--success {
    border-color: var(--line-strong);
}

.flash--error {
    border-color: var(--line-strong);
}

.admin-login-card {
    width: min(640px, 100%);
    margin: 60px auto 0;
    padding: 28px;
}

.parallax-stack,
.layer {
    position: absolute;
    inset: 0;
}

.layer {
    pointer-events: none;
}

.layer--grid {
    background:
        linear-gradient(transparent 95%, rgba(255, 33, 33, 0.08) 100%),
        linear-gradient(90deg, transparent 95%, rgba(255, 33, 33, 0.06) 100%);
    background-size: 100% 28px, 28px 100%;
}

.layer--glow {
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 33, 33, 0.28), transparent 22%),
        radial-gradient(circle at 82% 24%, rgba(255, 33, 33, 0.2), transparent 20%),
        radial-gradient(circle at 50% 86%, rgba(255, 33, 33, 0.14), transparent 28%);
}

.layer--bars {
    background:
        linear-gradient(90deg, transparent 8%, rgba(255, 255, 255, 0.02) 8%, rgba(255, 255, 255, 0.02) 10%, transparent 10%),
        linear-gradient(180deg, transparent 55%, rgba(255, 33, 33, 0.1) 56%, transparent 57%);
    mix-blend-mode: screen;
}

.layer--matrix {
    background:
        radial-gradient(circle at 22% 20%, rgba(255, 33, 33, 0.24), transparent 20%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0, transparent 18%),
        repeating-linear-gradient(90deg, transparent 0 16px, rgba(255, 33, 33, 0.08) 16px 18px);
    opacity: 0.55;
}

.hero,
.support-hero {
    min-height: 460px;
}

.hero-copy {
    position: relative;
    z-index: 1;
}

.content-panel,
.info-panel,
.cta-card,
.support-form-card,
.faq-search-card,
.faq-item,
.news-card,
.admin-login-card {
    clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}

.cta-card {
    position: relative;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.cta-card::before,
.content-panel::after,
.info-panel::after {
    content: "";
    position: absolute;
    inset: auto 18px 18px auto;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0;
    transition: width 180ms ease, opacity 180ms ease;
}

.cta-card::after {
    content: "";
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 42px;
    height: 42px;
    border-right: 2px solid rgba(255, 33, 33, 0.8);
    border-bottom: 2px solid rgba(255, 33, 33, 0.8);
    opacity: 0.8;
}

.news-card__body,
.content-panel,
.support-form-card,
.faq-search-card,
.info-panel {
    backdrop-filter: blur(10px);
}

.scan-card:hover,
.cta-card:hover,
.content-panel:hover,
.info-panel:hover,
.hero-sidecard:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
    box-shadow: 0 36px 90px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 33, 33, 0.14);
}

.hero-console__item:hover,
.mini-feature-grid__item:hover,
.hero-sidecard__tile:hover,
.overview-ribbon__card:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
    background: linear-gradient(180deg, rgba(255,33,33,0.12), rgba(255,33,33,0.03));
}

.cta-card:hover::before,
.content-panel:hover::after,
.info-panel:hover::after {
    width: 104px;
    opacity: 1;
}

.cta-card:hover .cta-card__link {
    color: var(--text);
    text-shadow: 0 0 16px rgba(255, 33, 33, 0.2);
}

.cta-card:hover .cta-card__link span[aria-hidden="true"] {
    transform: translateX(3px);
}

.cta-card__link span[aria-hidden="true"] {
    transition: transform 160ms ease;
}

.action-button:hover,
.mini-button:hover {
    filter: brightness(1.05);
    box-shadow: 0 0 32px rgba(255, 33, 33, 0.24);
}

.action-button:active,
.mini-button:active {
    transform: translateY(1px);
}

.page-shell > * + * {
    margin-top: 24px;
}

@media (min-width: 1600px) {
    .nav-bar,
    .page-shell {
        width: min(1520px, calc(100vw - 72px));
    }

    .hero-gate,
    .hero-split {
        min-height: 520px;
    }

    .hero-gate__copy h1,
    .hero-copy h1,
    .section-head h1 {
        font-size: clamp(3.6rem, 5vw, 6rem);
    }

    .support-form-card {
        grid-template-columns: minmax(320px, 0.66fr) minmax(0, 1.34fr);
    }

    .faq-layout {
        grid-template-columns: 320px minmax(0, 1fr);
    }
}

@media (max-width: 1180px) {
    .nav-bar,
    .page-shell {
        width: min(100vw - 28px, 1180px);
    }

    .support-form-card {
        grid-template-columns: 1fr;
    }

    .support-form__row {
        grid-template-columns: 1fr 1fr;
    }

    .faq-layout {
        grid-template-columns: 280px minmax(0, 1fr);
    }
}

@media (max-width: 980px) {
    .hero-split,
    .hero-gate,
    .split-panels,
    .cta-row,
    .faq-layout,
    .admin-grid,
    .news-card,
    .overview-ribbon {
        grid-template-columns: 1fr;
    }

    .hero-gate__scan {
        grid-template-columns: 1fr;
    }

    .scan-card__controls {
        align-items: stretch;
        flex-direction: column;
    }

    .qr-visibility-button,
    .scan-card__badge {
        width: 100%;
        justify-content: center;
    }

    .hero-console {
        grid-template-columns: 1fr;
    }

    .hero-sidecard {
        margin: 0 28px 28px;
    }

    .support-form__row {
        grid-template-columns: 1fr;
    }

    .faq-zone {
        padding: 22px;
    }

    .site-search-shell {
        width: min(100vw - 22px, 840px);
        margin-top: 78px;
    }

    .news-card__visual {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 95, 95, 0.18);
    }

    .search-control input {
        padding-right: 82px;
    }
}

@media (max-width: 680px) {
    .site-shell,
    .site-shell:hover,
    .site-shell:focus-within,
    .site-shell.is-scrolled,
    .site-shell.is-nav-open {
        backdrop-filter: none;
    }

    .site-shell {
        z-index: 120;
        overflow: visible;
    }

    .nav-bar {
        position: relative;
        align-items: center;
        flex-direction: row;
        gap: 14px;
        min-height: 78px;
    }

    .nav-primary {
        flex: 1 1 auto;
        align-items: flex-start;
    }

    .nav-user--desktop {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
        position: relative;
        z-index: 140;
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
        gap: 6px;
        width: 52px;
        height: 52px;
        margin-left: auto;
        padding: 13px 12px;
        border: 1px solid var(--line);
        background: rgba(255, 33, 33, 0.04);
        cursor: pointer;
        transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
    }

    .nav-toggle:hover,
    .nav-toggle:focus-visible {
        border-color: var(--line-strong);
        background: rgba(255, 33, 33, 0.1);
        box-shadow: 0 0 18px rgba(255, 33, 33, 0.12);
        outline: none;
    }

    .nav-toggle__line {
        width: 100%;
        height: 2px;
        background: var(--text);
        transition: transform 180ms ease, opacity 180ms ease, background 180ms ease;
        transform-origin: center;
    }

    .site-shell.is-nav-open .nav-toggle__line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background: var(--accent-soft);
    }

    .site-shell.is-nav-open .nav-toggle__line:nth-child(2) {
        opacity: 0;
    }

    .site-shell.is-nav-open .nav-toggle__line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background: var(--accent-soft);
    }

    .nav-links {
        position: fixed;
        inset: 0;
        z-index: 130;
        display: grid;
        align-content: start;
        justify-items: stretch;
        gap: 0;
        padding: 104px 20px 28px;
        background:
            radial-gradient(circle at 14% 12%, rgba(255, 33, 33, 0.14), transparent 28%),
            linear-gradient(180deg, rgba(8, 0, 0, 0.98), rgba(0, 0, 0, 0.995));
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
        overflow-y: auto;
    }

    .site-shell.is-nav-open .nav-links {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-links__head {
        display: grid;
        gap: 14px;
        padding-bottom: 22px;
        margin-bottom: 28px;
        border-bottom: 1px solid rgba(255, 33, 33, 0.2);
    }

    .nav-brand--menu {
        display: inline-flex;
        width: fit-content;
        font-size: 1.15rem;
    }

    .nav-user--mobile {
        display: inline-flex;
        align-items: center;
        max-width: 100%;
        color: var(--text);
        font-size: 0.98rem;
        letter-spacing: 0.14em;
        text-transform: uppercase;
    }

    .nav-links a,
    .nav-qr-trigger,
    .nav-search-trigger {
        width: 100%;
        display: block;
        padding: 18px 0;
        min-height: 0;
        border: 0;
        background: transparent;
        border-bottom: 1px solid rgba(255, 33, 33, 0.08);
        text-align: left;
        font-size: 1.68rem;
        line-height: 1.08;
        letter-spacing: 0.18em;
    }

    .nav-links a::after,
    .nav-search-trigger::after {
        bottom: 8px;
        transform-origin: left;
    }

    .nav-search-trigger,
    .nav-qr-trigger {
        color: var(--text-dim);
        box-shadow: none;
        transform: none;
    }

    .nav-qr-trigger:hover,
    .nav-qr-trigger:focus-visible {
        background: transparent;
        box-shadow: none;
    }

    .page-shell,
    .nav-bar {
        width: min(100vw - 20px, 1180px);
    }

    .login-page,
    .hero-gate__copy,
    .hero-gate__scan,
    .hero-copy,
    .content-panel,
    .info-panel,
    .support-form-card,
    .faq-search-card,
    .faq-zone,
    .admin-login-card,
    .news-card__body {
        padding: 22px;
    }

    .hero-gate__copy h1,
    .hero-copy h1,
    .section-head h1 {
        font-size: 2.3rem;
    }

    .hero-sidecard {
        margin: 0 22px 22px;
        padding: 20px;
    }

    .hero-sidecard__head {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-qr-cta {
        width: 100%;
        justify-content: space-between;
    }

    .faq-zone {
        padding: 18px;
    }

    .faq-item summary {
        padding: 16px 18px;
    }

    .faq-item__answer {
        padding: 0 18px 18px;
    }

    .site-search-shell__controls {
        grid-template-columns: 1fr;
    }

    .field-clear {
        right: 8px;
        min-width: 58px;
    }

    .site-search-head {
        align-items: stretch;
    }

    .site-qr-shell {
        width: min(100vw - 22px, 620px);
        margin-top: 78px;
    }

    .site-qr-shell__body {
        grid-template-columns: 1fr;
    }

    .site-qr-shell__code {
        min-height: 236px;
    }
}

@media (max-width: 480px) {
    .page-shell,
    .nav-bar {
        width: min(100vw - 16px, 1180px);
    }

    .login-page,
    .hero-gate__copy,
    .hero-gate__scan,
    .hero-copy,
    .content-panel,
    .info-panel,
    .support-form-card,
    .faq-search-card,
    .faq-zone,
    .admin-login-card,
    .news-card__body {
        padding: 18px;
    }

    .hero-gate__copy h1,
    .hero-copy h1,
    .section-head h1 {
        font-size: 1.9rem;
    }

    .nav-links {
        padding: 96px 16px 24px;
    }

    .nav-links a,
    .nav-qr-trigger,
    .nav-search-trigger {
        padding: 16px 0;
        font-size: 1.34rem;
    }

    .site-qr-code {
        width: 210px;
        height: 210px;
    }

    .qr-frame {
        min-height: 220px;
    }

    .action-button,
    .mini-button {
        width: 100%;
    }
}
