:root {
    --bg-deep: #020202;
    --bg-panel: rgba(9, 9, 9, 0.74);
    --bg-panel-strong: rgba(14, 14, 14, 0.9);
    --graphite: #111111;
    --graphite-soft: #191919;
    --line: rgba(255, 255, 255, 0.075);
    --line-strong: rgba(255, 255, 255, 0.13);
    --text-main: #c7cbd0;
    --text-soft: #8f949a;
    --text-muted: #555b62;
    --text-dim: #363b40;
    --red: #8b0000;
    --red-dark: #4a0000;
    --red-soft: rgba(139, 0, 0, 0.22);
    --red-line: rgba(139, 0, 0, 0.5);
    --shadow: rgba(0, 0, 0, 0.72);
    --font-tech: "Space Mono", "IBM Plex Mono", "Cascadia Mono", "Consolas", monospace;
    --motion-smooth: cubic-bezier(0.22, 1, 0.36, 1);
    --motion-precise: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    background:
        radial-gradient(circle at 50% 38%, rgba(40, 40, 40, 0.16), transparent 34%),
        linear-gradient(180deg, #050505 0%, #000 100%);
    color: var(--text-main);
    font-family: var(--font-tech);
    letter-spacing: 1px;
    user-select: none;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.hidden {
    display: none !important;
}

#global-map,
.noise-layer,
.scan-layer,
.interference-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    transform: translateZ(0);
    backface-visibility: hidden;
}

#global-map {
    z-index: 0;
    opacity: 0.74;
}

.noise-layer {
    z-index: 1;
    opacity: 0.035;
    mix-blend-mode: screen;
    background-image:
        repeating-radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.22) 0 1px, transparent 1px 3px),
        repeating-linear-gradient(90deg, transparent 0 2px, rgba(255, 255, 255, 0.18) 2px 3px);
    animation: noiseShift 18s linear infinite;
    will-change: transform;
}

.scan-layer {
    z-index: 2;
    background:
        linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.035) 50%, transparent 100%),
        repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 7px);
    background-size: 100% 220px, 100% 8px;
    animation: scanMove 18s linear infinite;
    opacity: 0.36;
    will-change: background-position;
}

.interference-layer {
    z-index: 3;
}

.interference-layer::before,
.interference-layer::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(139, 0, 0, 0.34);
    opacity: 0;
}

.interference-layer::before {
    top: 31%;
    animation: interference 13s infinite;
}

.interference-layer::after {
    top: 68%;
    animation: interference 19s 3s infinite;
}

.boot-screen {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    padding: 24px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 34%, rgba(42, 242, 125, 0.08), transparent 22%),
        radial-gradient(circle at 50% 42%, rgba(139, 0, 0, 0.12), transparent 38%),
        #000;
    transition: opacity 0.92s var(--motion-smooth), visibility 0.92s var(--motion-smooth);
}

.boot-screen::before,
.boot-screen::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.boot-screen::before {
    background:
        linear-gradient(90deg, transparent 0 8%, rgba(42, 242, 125, 0.18) 8% 8.08%, transparent 8.08% 92%, rgba(139, 0, 0, 0.28) 92% 92.08%, transparent 92.08%),
        repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 5px);
    opacity: 0.4;
    z-index: 0;
}

.boot-screen::after {
    width: 220px;
    height: 220px;
    inset: 50% auto auto 50%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0) 0 28%, rgba(139, 0, 0, 0.22) 44%, #000 74%);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
    transition: opacity 0.24s var(--motion-precise), transform 1s var(--motion-precise);
    z-index: 2;
}

.boot-screen.is-consuming::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(12);
}

.boot-screen.is-released {
    opacity: 0;
    visibility: hidden;
}

.boot-frame {
    width: min(860px, 100%);
    min-height: min(740px, 100svh);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(20px, 4vw, 44px);
    position: relative;
    z-index: 1;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.boot-frame::before,
.boot-frame::after {
    content: none;
}

.boot-classification,
.kicker,
.panel-title,
.reader-meta {
    color: var(--text-muted);
    font-size: 10px;
    line-height: 1.6;
    letter-spacing: 2.4px;
    text-transform: uppercase;
}

.boot-classification {
    margin-bottom: clamp(18px, 3vh, 34px);
    opacity: 0.62;
}

.boot-logo-shell {
    width: clamp(220px, 26vw, 330px);
    height: clamp(220px, 26vw, 330px);
    display: grid;
    place-items: center;
    margin-bottom: clamp(20px, 3vh, 34px);
    border: 0;
    background:
        radial-gradient(circle, rgba(42, 242, 125, 0.08), transparent 44%),
        radial-gradient(circle, rgba(139, 0, 0, 0.18), transparent 68%);
    position: relative;
    transform: translateZ(0);
    transition: transform 1s var(--motion-precise), opacity 0.42s var(--motion-smooth), filter 0.42s var(--motion-smooth);
    will-change: transform, opacity, filter;
}

.boot-logo-shell::before,
.boot-logo-shell::after {
    content: "";
    position: absolute;
    inset: 20px;
    background: url("oraculo_logo_transparente.png") center / contain no-repeat;
    mix-blend-mode: screen;
    opacity: 0;
    pointer-events: none;
}

.boot-logo-shell::before {
    filter: invert(1) sepia(1) saturate(8) hue-rotate(75deg) brightness(1.2);
    transform: translateX(-3px);
    animation: logoHackGreen 4.2s infinite steps(1, end);
}

.boot-logo-shell::after {
    filter: invert(13%) sepia(99%) saturate(4172%) hue-rotate(354deg) brightness(0.86);
    transform: translateX(3px);
    animation: logoHackRed 5.1s infinite steps(1, end);
}

.boot-screen.is-consuming .boot-logo-shell {
    transform: scale(18);
    opacity: 1;
    filter: blur(2px) brightness(1.4);
    z-index: 3;
}

.boot-screen.is-consuming .boot-logo-shell::before,
.boot-screen.is-consuming .boot-logo-shell::after {
    opacity: 0.25;
    animation: none;
    clip-path: inset(0 0 0 0);
}

.brand-logo,
.header-logo {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.9));
}

.boot-logo-shell .brand-logo {
    width: 82%;
    height: 82%;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    filter:
        invert(1)
        contrast(1.2)
        drop-shadow(0 0 16px rgba(255, 255, 255, 0.12))
        drop-shadow(0 0 30px rgba(42, 242, 125, 0.09));
    animation: logoGlitch 6s infinite steps(1, end);
}

.boot-word {
    color: #e7eaed;
    font-size: clamp(30px, 5vw, 58px);
    font-weight: 400;
    letter-spacing: clamp(9px, 1.9vw, 22px);
    margin-bottom: clamp(26px, 4vh, 44px);
    transform: translateX(7px);
    position: relative;
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.06);
}

.boot-word::before,
.boot-word::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.boot-word::before {
    color: #2af27d;
    transform: translateX(-2px);
    animation: bootGlitchGreen 5.2s infinite steps(1, end);
}

.boot-word::after {
    color: var(--red);
    transform: translateX(2px);
    animation: bootGlitchRed 6.1s infinite steps(1, end);
}

.boot-log {
    width: min(640px, 100%);
    min-height: 168px;
    padding: 6px 0;
    margin-bottom: 26px;
}

.boot-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 88px;
    gap: 18px;
    color: var(--text-soft);
    font-size: clamp(10px, 1.3vw, 13px);
    line-height: 2.25;
    opacity: 0;
    transform: translate3d(0, 7px, 0);
    animation: lineReveal 0.42s var(--motion-smooth) forwards;
    will-change: opacity, transform;
}

.boot-line span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.boot-line strong {
    color: var(--text-dim);
    font-weight: 400;
    text-align: right;
    opacity: 0;
    transform: translateX(-6px);
    transition: color 0.28s var(--motion-smooth), opacity 0.28s var(--motion-smooth), transform 0.28s var(--motion-smooth);
}

.boot-line.is-complete strong {
    color: #2af27d;
    opacity: 1;
    transform: translateX(0);
    text-shadow: 0 0 12px rgba(42, 242, 125, 0.2);
}

.boot-line.is-final strong {
    color: #2af27d;
    text-shadow: 0 0 14px rgba(42, 242, 125, 0.28);
}

.boot-start {
    border: 0;
    background: transparent;
    color: var(--text-dim);
    min-height: 0;
    padding: 8px 18px;
    font-size: clamp(12px, 1.55vw, 16px);
    letter-spacing: 5px;
    text-transform: uppercase;
    position: relative;
    opacity: 0;
    transform: translate3d(0, 10px, 0);
    pointer-events: none;
    transition: color 0.28s var(--motion-smooth), opacity 0.38s var(--motion-smooth), transform 0.38s var(--motion-smooth), letter-spacing 0.28s var(--motion-smooth);
}

.boot-start.is-ready {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
    color: #dce0e4;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.boot-start::before,
.boot-start::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
}

.boot-start::before {
    color: #2af27d;
    transform: translateX(-2px);
}

.boot-start::after {
    color: var(--red);
    transform: translateX(2px);
}

.boot-start.is-ready:hover {
    color: transparent;
    letter-spacing: 7px;
}

.boot-start.is-ready:hover::before,
.boot-start.is-ready:hover::after {
    opacity: 1;
    animation: startGlitch 0.42s steps(2, end) infinite;
}

.boot-start:disabled {
    cursor: default;
}

.system-button {
    min-height: 44px;
    border: 1px solid var(--red-line);
    background: rgba(8, 8, 8, 0.7);
    color: #c9cdd1;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 18px;
    font-size: 10px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    transition: border-color 0.28s var(--motion-smooth), background 0.28s var(--motion-smooth), color 0.28s var(--motion-smooth), transform 0.28s var(--motion-smooth);
}

.system-button:disabled {
    color: var(--text-dim);
    border-color: rgba(255, 255, 255, 0.06);
    cursor: default;
}

.system-button:not(:disabled):hover {
    background: rgba(139, 0, 0, 0.12);
    border-color: rgba(139, 0, 0, 0.84);
    color: #fff;
}
.system-shell {
    position: relative;
    z-index: 5;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    padding: clamp(14px, 2.2vw, 34px) clamp(14px, 2.8vw, 34px) 22px;
    animation: systemReveal 0.9s var(--motion-smooth) both;
    will-change: opacity, transform;
}

.system-header,
.system-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--line);
    background: rgba(4, 4, 4, 0.62);
    backdrop-filter: blur(10px);
}

.system-header {
    min-height: 76px;
    padding: 14px 18px;
}

.header-block {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-logo {
    width: 42px;
    height: 42px;
}

.header-block strong,
.header-status strong {
    display: block;
    color: #d6d9dc;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 4px;
}

.header-block span,
.header-status {
    color: var(--text-muted);
    font-size: 9px;
    line-height: 1.7;
    text-transform: uppercase;
}

.header-status {
    text-align: right;
}

#clock {
    color: var(--red);
    font-size: 15px;
}

.command-grid {
    flex: none;
    min-height: auto;
    display: grid;
    grid-template-columns: minmax(210px, 270px) minmax(420px, 1fr) minmax(210px, 270px);
    gap: 18px;
    padding: 18px 0;
    align-items: start;
}

.telemetry-column,
.audit-column,
.operations-core {
    min-height: auto;
}

.telemetry-column,
.audit-column {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.panel,
.operations-core,
.module-panel,
.content-reader,
.content-card,
.auth-panel {
    border: 1px solid var(--line);
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.panel {
    padding: 18px;
    position: relative;
    overflow: hidden;
}

.panel::before,
.operations-core::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.08), transparent 34%);
    opacity: 0.68;
}

.panel-title {
    margin-bottom: 16px;
    color: #a9adb1;
}

.metric-row,
.audit-entry,
.event-feed li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-soft);
    font-size: 10px;
    line-height: 1.7;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.metric-row strong,
.compact-panel strong,
.audit-entry strong {
    color: #d7dadd;
    font-weight: 400;
}

.signal-bars {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    margin-top: 18px;
    height: 34px;
    align-items: end;
}

.signal-bars i {
    display: block;
    background: linear-gradient(180deg, rgba(139, 0, 0, 0.7), rgba(139, 0, 0, 0.12));
    border: 1px solid rgba(139, 0, 0, 0.24);
    animation: barPulse 6s infinite var(--motion-smooth);
    will-change: opacity;
}

.signal-bars i:nth-child(1) { height: 38%; animation-delay: 0s; }
.signal-bars i:nth-child(2) { height: 66%; animation-delay: 0.9s; }
.signal-bars i:nth-child(3) { height: 48%; animation-delay: 1.8s; }
.signal-bars i:nth-child(4) { height: 84%; animation-delay: 2.7s; }
.signal-bars i:nth-child(5) { height: 58%; animation-delay: 3.6s; }

.event-feed {
    list-style: none;
    min-height: 198px;
}

.event-feed li {
    opacity: 0;
    animation: lineReveal 0.44s var(--motion-smooth) forwards;
    will-change: opacity, transform;
}

.event-feed span {
    color: var(--text-muted);
}

.compact-panel p {
    color: var(--text-soft);
    font-size: 10px;
    line-height: 2;
}

.operations-core {
    position: relative;
    min-height: auto;
    display: flex;
    flex-direction: column;
    padding: 18px;
    overflow: visible;
}

.core-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.core-head h2 {
    color: #e7eaed;
    font-size: 30px;
    font-weight: 400;
    letter-spacing: 11px;
    margin-top: 7px;
}

.core-state {
    border: 1px solid rgba(139, 0, 0, 0.32);
    color: var(--red);
    padding: 9px 12px;
    font-size: 9px;
    text-transform: uppercase;
    background: rgba(139, 0, 0, 0.08);
}

.module-switcher {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 14px 0;
}

.module-button,
.filter-button {
    min-height: 42px;
    border: 1px solid var(--line);
    background: rgba(3, 3, 3, 0.68);
    color: var(--text-muted);
    font-size: 10px;
    letter-spacing: 2px;
    transition: color 0.3s var(--motion-smooth), border-color 0.3s var(--motion-smooth), background 0.3s var(--motion-smooth), transform 0.3s var(--motion-smooth);
}

.module-button:hover,
.module-button.active,
.filter-button:hover,
.filter-button.active {
    color: #eef0f2;
    border-color: var(--red-line);
    background: rgba(139, 0, 0, 0.12);
}

.transition-veil {
    position: absolute;
    inset: 103px 18px 18px;
    z-index: 4;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.84);
    border: 1px solid var(--red-line);
    color: var(--red);
    font-size: 11px;
    letter-spacing: 3px;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, 6px, 0) scaleY(0.985);
    will-change: opacity, transform;
    transition: opacity 0.28s var(--motion-precise), transform 0.28s var(--motion-precise);
}

.transition-veil.active {
    opacity: 1;
    transform: translate3d(0, 0, 0) scaleY(1);
}

.module-panel {
    position: relative;
    z-index: 1;
    flex: none;
    min-height: auto;
    display: none;
    padding: 20px;
    overflow: visible;
}

.module-panel.active {
    display: block;
    animation: moduleReveal 0.52s var(--motion-smooth) both;
    will-change: opacity, transform;
}

.module-intro {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.module-intro span {
    color: #d8dbde;
    font-size: 12px;
    letter-spacing: 3px;
}

.module-intro p {
    max-width: 560px;
    color: var(--text-soft);
    font-size: 11px;
    line-height: 1.8;
}

.content-toolbar {
    display: flex;
    gap: 8px;
    padding: 14px 0;
}

.filter-button {
    flex: 1;
    min-height: 36px;
    font-size: 9px;
}

.public-grid {
    min-height: auto;
    display: grid;
    grid-template-columns: minmax(230px, 330px) 1fr;
    gap: 14px;
    align-items: start;
}

.content-list {
    min-height: 320px;
    max-height: 620px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 2px;
}

.content-card {
    width: 100%;
    text-align: left;
    color: var(--text-soft);
    padding: 14px;
    transition: border-color 0.3s var(--motion-smooth), background 0.3s var(--motion-smooth), transform 0.3s var(--motion-smooth);
}

.content-card:hover,
.content-card.active {
    border-color: var(--red-line);
    background: rgba(139, 0, 0, 0.1);
}

.content-card span {
    display: block;
    color: var(--red);
    font-size: 9px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.content-card strong {
    display: block;
    color: #dfe2e5;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 7px;
}

.content-card small {
    color: var(--text-muted);
    font-size: 9px;
}

.content-reader {
    min-height: 360px;
    overflow: visible;
    padding: 24px;
}

.content-reader h3 {
    color: #f1f3f4;
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 4px;
    margin: 12px 0 18px;
}

.content-reader p,
.content-reader li {
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.9;
    margin-bottom: 13px;
}

.content-reader h4 {
    color: #cfd2d5;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 2px;
    margin: 24px 0 12px;
}

.content-reader ul {
    padding-left: 18px;
}

.auth-panel {
    width: min(540px, 100%);
    margin: auto;
    padding: 38px;
    text-align: center;
}

.auth-panel > span {
    display: block;
    color: var(--red);
    font-size: 11px;
    letter-spacing: 3px;
    margin-bottom: 18px;
}

.auth-panel h3 {
    color: #f2f4f5;
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 5px;
    margin-bottom: 16px;
}

.auth-panel p {
    color: var(--text-soft);
    font-size: 11px;
    line-height: 1.8;
    max-width: 380px;
    margin: 0 auto 24px;
}

.auth-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-bottom: 18px;
}

.auth-form input {
    min-width: 0;
    height: 44px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.62);
    color: #e4e7e9;
    padding: 0 14px;
    outline: none;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.auth-form input:focus {
    border-color: var(--red-line);
}

.auth-status {
    display: block;
    min-height: 18px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 2px;
}

.auth-panel.denied {
    border-color: rgba(139, 0, 0, 0.74);
}

.auth-panel.denied .auth-status {
    color: var(--red);
}

.mini-map {
    position: relative;
    height: 156px;
    border: 1px solid rgba(255, 255, 255, 0.045);
    background:
        linear-gradient(90deg, transparent 49%, rgba(255, 255, 255, 0.04) 50%, transparent 51%),
        linear-gradient(180deg, transparent 49%, rgba(255, 255, 255, 0.04) 50%, transparent 51%),
        radial-gradient(circle at 50% 50%, rgba(139, 0, 0, 0.08), transparent 68%);
}

.mini-map::before {
    content: "";
    position: absolute;
    inset: 28px 18px;
    border: 1px solid rgba(255, 255, 255, 0.045);
    border-radius: 50%;
}

.mini-map i {
    position: absolute;
    width: 5px;
    height: 5px;
    border: 1px solid rgba(139, 0, 0, 0.92);
    background: rgba(139, 0, 0, 0.28);
    animation: pointPulse 5s infinite var(--motion-smooth);
    will-change: opacity, box-shadow, transform;
}

.mini-map i:nth-child(2) { animation-delay: 1.1s; }
.mini-map i:nth-child(3) { animation-delay: 2.2s; }
.mini-map i:nth-child(4) { animation-delay: 3.3s; }
.mini-map i:nth-child(5) { animation-delay: 4.4s; }

.audit-feed {
    min-height: 240px;
}

.audit-entry {
    display: block;
}

.audit-entry span {
    display: block;
    color: var(--text-muted);
    font-size: 9px;
    margin-bottom: 4px;
}

.system-footer {
    min-height: 38px;
    padding: 0 16px;
    color: var(--text-muted);
    font-size: 9px;
    text-transform: uppercase;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.035);
}

::-webkit-scrollbar-thumb {
    background: rgba(139, 0, 0, 0.48);
}

@keyframes logoScan {
    0% { transform: rotate(45deg) scale(0.94); opacity: 0.22; }
    50% { transform: rotate(45deg) scale(1.04); opacity: 0.58; }
    100% { transform: rotate(45deg) scale(0.94); opacity: 0.22; }
}

@keyframes logoHackGreen {
    0%, 82%, 100% { opacity: 0; clip-path: inset(0 0 0 0); }
    83% { opacity: 0.42; clip-path: inset(6% 0 72% 0); }
    84% { opacity: 0; }
    91% { opacity: 0.34; clip-path: inset(58% 0 20% 0); }
    92% { opacity: 0; }
}

@keyframes logoHackRed {
    0%, 78%, 100% { opacity: 0; clip-path: inset(0 0 0 0); }
    79% { opacity: 0.34; clip-path: inset(28% 0 46% 0); }
    80% { opacity: 0; }
    88% { opacity: 0.28; clip-path: inset(74% 0 6% 0); }
    89% { opacity: 0; }
}

@keyframes logoGlitch {
    0%, 92%, 100% { transform: translate3d(0, 0, 0); opacity: 0.9; }
    93% { transform: translate3d(-2px, 1px, 0); opacity: 0.74; }
    94% { transform: translate3d(3px, -1px, 0); opacity: 0.94; }
    95% { transform: translate3d(0, 0, 0); opacity: 0.86; }
}

@keyframes bootGlitchGreen {
    0%, 88%, 100% { opacity: 0; clip-path: inset(0 0 0 0); }
    89% { opacity: 0.75; clip-path: inset(12% 0 64% 0); }
    90% { opacity: 0; }
    94% { opacity: 0.55; clip-path: inset(62% 0 18% 0); }
    95% { opacity: 0; }
}

@keyframes bootGlitchRed {
    0%, 84%, 100% { opacity: 0; clip-path: inset(0 0 0 0); }
    85% { opacity: 0.65; clip-path: inset(24% 0 52% 0); }
    86% { opacity: 0; }
    91% { opacity: 0.45; clip-path: inset(72% 0 8% 0); }
    92% { opacity: 0; }
}

@keyframes startGlitch {
    0% { clip-path: inset(0 0 0 0); }
    35% { clip-path: inset(0 0 58% 0); }
    70% { clip-path: inset(48% 0 0 0); }
    100% { clip-path: inset(0 0 0 0); }
}
@keyframes lineReveal {
    from {
        opacity: 0;
        transform: translate3d(0, 7px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes systemReveal {
    from {
        opacity: 0;
        transform: translate3d(0, 14px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes moduleReveal {
    from {
        opacity: 0;
        transform: translate3d(0, 10px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes scanMove {
    from { background-position: 0 -220px, 0 0; }
    to { background-position: 0 100vh, 0 120px; }
}

@keyframes noiseShift {
    0% { transform: translate3d(-8px, -6px, 0); }
    50% { transform: translate3d(8px, 6px, 0); }
    100% { transform: translate3d(-8px, -6px, 0); }
}

@keyframes interference {
    0%, 88%, 100% { opacity: 0; transform: translate3d(0, 0, 0); }
    90% { opacity: 0.36; transform: translate3d(0, 10px, 0); }
    92% { opacity: 0; transform: translate3d(0, -6px, 0); }
}

@keyframes barPulse {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 0.9; }
}

@keyframes pointPulse {
    0%, 100% {
        opacity: 0.28;
        box-shadow: 0 0 0 0 rgba(139, 0, 0, 0);
    }
    50% {
        opacity: 0.9;
        box-shadow: 0 0 0 8px rgba(139, 0, 0, 0.06);
    }
}

@media (max-width: 1180px) {
    body {
        overflow: auto;
    }

    .system-shell {
        min-height: auto;
    }

    .command-grid {
        grid-template-columns: 1fr;
    }

    .telemetry-column,
    .audit-column {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .operations-core {
        min-height: 720px;
    }
}

@media (max-width: 760px) {
    .system-shell {
        padding: 12px;
    }

    .system-header,
    .system-footer,
    .module-intro,
    .core-head {
        flex-direction: column;
        align-items: stretch;
    }

    .header-status {
        text-align: left;
    }

    .command-grid {
        padding: 12px 0;
    }

    .telemetry-column,
    .audit-column,
    .module-switcher,
    .public-grid,
    .auth-form {
        grid-template-columns: 1fr;
    }

    .operations-core {
        min-height: 820px;
        padding: 12px;
    }

    .core-head h2 {
        font-size: 22px;
        letter-spacing: 7px;
    }

    .content-toolbar {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .boot-frame {
        min-height: 0;
        padding: 28px 22px;
    }

    .boot-frame h1 {
        font-size: 22px;
        letter-spacing: 9px;
    }
}
