/* =======================================
   RESET
======================================= */

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

:root {
    --bg: #08090c;
    --panel: rgba(15, 17, 22, 0.94);
    --panel-2: #111319;
    --panel-3: #171a21;

    --red: #ff2438;
    --red-bright: #ff4052;
    --red-dark: #9d111f;

    --white: #f5f7fa;
    --muted: #838894;
    --muted-2: #555b66;

    --border: rgba(255, 255, 255, 0.08);
    --red-border: rgba(255, 36, 56, 0.35);

    --green: #38e68b;
    --green-bright: #58ff9c;
}


/* =======================================
   BODY
======================================= */

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

body {
    min-height: 100vh;

    font-family:
        "Inter",
        sans-serif;

    background:
        var(--bg);

    color:
        var(--white);

    overflow-x:
        hidden;
}


/* =======================================
   BACKGROUND
======================================= */

.background {
    position: fixed;
    inset: 0;

    overflow: hidden;

    pointer-events: none;

    z-index: 0;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(255, 36, 56, 0.11),
            transparent 30%
        ),

        radial-gradient(
            circle at 90% 80%,
            rgba(255, 36, 56, 0.14),
            transparent 34%
        ),

        #08090c;
}

.grid-overlay {
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.018) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.018) 1px,
            transparent 1px
        );

    background-size:
        42px 42px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent 90%
        );
}

.scanline {
    position: absolute;

    width: 100%;
    height: 180px;

    background:
        linear-gradient(
            to bottom,
            transparent,
            rgba(255, 36, 56, 0.035),
            transparent
        );

    animation:
        scan
        9s linear infinite;
}

@keyframes scan {

    from {
        transform:
            translateY(-250px);
    }

    to {
        transform:
            translateY(120vh);
    }
}

.glow {
    position: absolute;

    border-radius: 50%;

    filter:
        blur(140px);
}

.glow1 {
    width: 520px;
    height: 520px;

    left: -220px;
    top: 20%;

    background:
        rgba(255, 20, 42, 0.20);
}

.glow2 {
    width: 420px;
    height: 420px;

    right: -170px;
    bottom: -120px;

    background:
        rgba(255, 36, 56, 0.15);
}


/* =======================================
   PARTICLES
======================================= */

#particles {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100%;

    pointer-events: none;

    z-index: 1;
}


/* =======================================
   MAIN LAYOUT
======================================= */

.portal-shell {
    position: relative;

    z-index: 2;

    min-height: 100vh;

    display: grid;

    grid-template-columns:
        42% 58%;
}


/* =======================================
   LEFT PANEL
======================================= */

.mission-panel {
    position: relative;

    min-height: 100vh;

    padding:
        36px
        34px
        28px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    border-right:
        1px solid
        var(--border);

    background:
        linear-gradient(
            145deg,
            rgba(15, 17, 22, 0.92),
            rgba(7, 8, 11, 0.90)
        );

    overflow: hidden;
}

.mission-panel::after {
    content: "";

    position: absolute;

    width: 280px;
    height: 2px;

    top: 0;
    left: 0;

    background:
        linear-gradient(
            90deg,
            var(--red),
            transparent
        );
}


/* =======================================
   SYSTEM BADGE
======================================= */

.system-badge {
    width: fit-content;

    display: flex;

    align-items: center;

    gap: 9px;

    padding:
        8px 11px;

    border:
        1px solid
        var(--border);

    color:
        #8f949d;

    font-family:
        "Rajdhani",
        sans-serif;

    font-size: 11px;

    letter-spacing: 1.8px;
}

.status-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background:
        var(--green);

    box-shadow:
        0 0 10px
        rgba(56, 230, 139, 0.8);
}


/* =======================================
   LOGO
======================================= */

.hero-logo {
    width:
        min(190px, 45%);

    display: block;

    margin:
        55px 0 35px;

    filter:
        drop-shadow(
            0 0 18px
            rgba(255, 36, 56, 0.24)
        );

    animation:
        logoFloat
        5s ease-in-out infinite;
}

@keyframes logoFloat {

    0%,
    100% {
        transform:
            translateY(0);
    }

    50% {
        transform:
            translateY(-6px);
    }
}


/* =======================================
   LEFT TITLE
======================================= */

.mission-kicker {
    margin-bottom: 12px;

    color:
        var(--red);

    font-family:
        "Rajdhani",
        sans-serif;

    font-weight: 700;

    letter-spacing: 3px;

    font-size: 12px;
}

.mission-panel h1 {
    max-width: 600px;

    font-family:
        "Rajdhani",
        sans-serif;

    font-size:
        clamp(43px, 5.6vw, 76px);

    line-height: 0.90;

    letter-spacing: -1.5px;

    text-transform: uppercase;
}

.mission-panel h1 span {
    color:
        var(--red);
}

.mission-description {
    max-width: 540px;

    margin-top: 24px;

    color:
        var(--muted);

    line-height: 1.9;

    font-size: 14px;

    direction: rtl;

    text-align: right;

    font-family:
        "Vazirmatn",
        sans-serif;
}

.lty-en {
    direction: ltr;

    unicode-bidi: isolate;

    display: inline-block;

    font-family:
        "Rajdhani",
        sans-serif;

    font-weight: 700;
}


/* =======================================
   STEPS
======================================= */

.steps {
    display: grid;

    gap: 10px;

    margin:
        55px 0 35px;
}

.step {
    min-height: 68px;

    display: flex;

    align-items: center;

    gap: 18px;

    padding:
        14px 16px;

    border:
        1px solid
        var(--border);

    background:
        rgba(255, 255, 255, 0.018);

    opacity: 0.42;

    transition:
        0.3s ease;
}

.step.active {
    opacity: 1;

    border-color:
        rgba(255, 36, 56, 0.32);

    background:
        linear-gradient(
            90deg,
            rgba(255, 36, 56, 0.09),
            transparent
        );

    box-shadow:
        inset 3px 0 0
        var(--red);
}

.step.completed {
    opacity: 0.78;
}

.step-number {
    min-width: 40px;

    font-family:
        "Rajdhani",
        sans-serif;

    color:
        var(--red);

    font-size: 22px;

    font-weight: 700;
}

.step strong {
    display: block;

    font-family:
        "Rajdhani",
        sans-serif;

    font-size: 15px;

    letter-spacing: 1px;

    text-transform: uppercase;
}

.step span {
    display: block;

    margin-top: 3px;

    color:
        var(--muted);

    font-size: 11px;
}

/* =======================================
   SURVIVOR AREA
======================================= */

.operator-zone {
    display: block;

    width: 100%;

    max-width: 460px;

    height: 610px;

    margin-top: 10px;

    position: relative;
}

.character-panel {
    position: relative;

    width: 100%;
    height: 100%;

    min-height: 0;

    border: none;

    background:
        transparent;

    overflow: visible;
}

.survivor-character {
    position: absolute;

    left: 50%;
    bottom: 150px;

    transform:
        translateX(-50%);

    height: 610px;

    width: auto;

    max-width: none;

    object-fit: contain;

    filter:
        drop-shadow(
            0 0 30px
            rgba(255, 36, 56, 0.22)
        );

    transition:
        transform 0.35s ease,
        filter 0.35s ease,
        opacity 0.35s ease;
}

.character-info {
    position: absolute;

    left: 14px;
    bottom: 10px;

    z-index: 3;

    padding:
        9px 12px;

    border-left:
        2px solid
        var(--red);

    background:
        rgba(5, 6, 9, 0.74);

    backdrop-filter:
        blur(6px);
}

.character-info span {
    display: block;

    color:
        var(--muted);

    font-size: 9px;

    letter-spacing: 1.4px;
}

.character-info strong {
    display: block;

    margin-top: 3px;

    color:
        var(--red);

    font-family:
        "Rajdhani",
        sans-serif;

    font-size: 15px;

    letter-spacing: 1.4px;
}


.character-info strong {
    display: block;

    margin-top: 3px;

    color:
        var(--red);

    font-family:
        "Rajdhani",
        sans-serif;

    font-size: 15px;

    letter-spacing: 1.4px;
}


/* =======================================
   LEFT FOOTER
======================================= */

.mission-footer {
    display: flex;

    justify-content: space-between;

    margin-top: 35px;

    padding-top: 16px;

    border-top:
        1px solid
        var(--border);

    color:
        #515660;

    font-family:
        "Rajdhani",
        sans-serif;

    font-size: 9px;

    letter-spacing: 1.5px;
}


/* =======================================
   RIGHT PANEL
======================================= */

.interface-panel {
    min-width: 0;

    min-height: 100vh;

    padding:
        40px
        45px
        40px
        20px;

    display: flex;

    justify-content: flex-start;

    align-items: center;
}

.interface-frame {
    position: relative;

    width: 82%;

    max-width: 820px;

    margin: 0;

    padding:
        48px
        52px;

    background:
        rgba(13, 15, 20, 0.94);

    border:
        1px solid
        rgba(255, 255, 255, 0.07);

    box-shadow:
        0 35px 90px
        rgba(0, 0, 0, 0.40);

    backdrop-filter:
        blur(18px);

    overflow: hidden;
}


/* =======================================
   FRAME CORNERS
======================================= */

.corner {
    position: absolute;

    width: 17px;
    height: 17px;

    pointer-events: none;

    z-index: 5;
}

.corner-tl {
    top: -1px;
    left: -1px;

    border-top:
        2px solid var(--red);

    border-left:
        2px solid var(--red);
}

.corner-tr {
    top: -1px;
    right: -1px;

    border-top:
        2px solid var(--red);

    border-right:
        2px solid var(--red);
}

.corner-bl {
    bottom: -1px;
    left: -1px;

    border-bottom:
        2px solid var(--red);

    border-left:
        2px solid var(--red);
}

.corner-br {
    right: -1px;
    bottom: -1px;

    border-right:
        2px solid var(--red);

    border-bottom:
        2px solid var(--red);
}


/* =======================================
   INTERFACE HEADER
======================================= */

.interface-header {
    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 20px;

    padding-bottom: 23px;

    margin-bottom: 25px;

    border-bottom:
        1px solid
        var(--border);
}

.interface-label {
    display: block;

    margin-bottom: 7px;

    color:
        var(--red);

    font-family:
        "Rajdhani",
        sans-serif;

    font-weight: 700;

    font-size: 11px;

    letter-spacing: 2.3px;
}

.interface-header h2 {
    font-family:
        "Rajdhani",
        sans-serif;

    font-size: 38px;

    letter-spacing: -0.2px;
}

.secure-chip {
    display: flex;

    align-items: center;

    gap: 7px;

    padding:
        7px 10px;

    color:
        var(--muted);

    border:
        1px solid
        var(--border);

    font-family:
        "Rajdhani",
        sans-serif;

    font-size: 10px;

    letter-spacing: 1.4px;
}

.secure-chip span {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background:
        var(--green);
}


/* =======================================
   FORM
======================================= */

.portal-form {
    width: 100%;

    animation:
        screenEnter
        0.35s ease;
}

@keyframes screenEnter {

    from {
        opacity: 0;

        transform:
            translateY(10px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}

.form-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap:
        26px 30px;
}

.input-group {
    width: 100%;

    margin-bottom: 24px;
}

label {
    display: block;

    margin-bottom: 7px;

    color:
        #c3c7cf;

    font-family:
        "Rajdhani",
        sans-serif;

    font-size: 13px;

    font-weight: 600;

    letter-spacing: 0.7px;

    text-transform: uppercase;
}

.input-wrap {
    position: relative;
}

.input-index {
    position: absolute;

    top: 50%;
    left: 15px;

    transform:
        translateY(-50%);

    color:
        #4c515a;

    font-family:
        "Rajdhani",
        sans-serif;

    font-size: 10px;

    z-index: 2;
}


/* =======================================
   NORMAL INPUTS
======================================= */

input,
textarea {
    width: 100%;

    border:
        1px solid
        rgba(255, 255, 255, 0.08);

    border-radius: 2px;

    outline: none;

    background:
        #111319;

    color:
        var(--white);

    font-family:
        "Inter",
        sans-serif;

    transition:
        0.22s ease;
}

input {
    height: 60px;

    padding:
        0 15px;

    font-size: 15px;
}

.input-wrap input {
    padding-left: 47px;
}

input::placeholder {
    color:
        #575c66;
}

input:hover {
    border-color:
        rgba(255, 255, 255, 0.14);
}

input:focus {
    border-color:
        rgba(255, 36, 56, 0.74);

    background:
        #15171d;

    box-shadow:
        0 0 0 3px
        rgba(255, 36, 56, 0.07);
}


/* =======================================
   FIELD MESSAGES
======================================= */

small {
    display: block;

    min-height: 16px;

    margin-top: 6px;

    color:
        #ff6573;

    font-size: 10px;
}

.field-message:empty {
    min-height: 0;

    margin: 0;
}


/* =========================================================
   LTY COMM LINK / PHONE TERMINAL
========================================================= */

.phone-terminal-group {
    position: relative;

    width: 100%;

    margin-top: 2px;
}

.phone-terminal-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 16px;

    margin-bottom: 8px;
}

.phone-terminal-header label {
    margin: 0;
}

.phone-terminal-node {
    font-family:
        "Rajdhani",
        sans-serif;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 1.8px;

    color:
        rgba(255, 255, 255, 0.26);

    white-space: nowrap;
}


/* MAIN PHONE MODULE */

.phone-terminal {
    position: relative;

    display: flex;

    flex-direction: row;

    align-items: stretch;

    width: 100%;

    min-height: 74px;

    overflow: hidden;

    border:
        1px solid
        rgba(255, 255, 255, 0.08);

    border-radius: 2px;

    background:
        linear-gradient(
            90deg,
            rgba(255, 36, 56, 0.035),
            rgba(17, 19, 25, 0.94) 30%,
            #111319
        );

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.phone-terminal::before {
    content: "";

    position: absolute;

    top: -1px;
    right: -1px;

    width: 19px;
    height: 19px;

    border-top:
        1px solid
        rgba(255, 36, 56, 0.75);

    border-right:
        1px solid
        rgba(255, 36, 56, 0.75);

    z-index: 5;

    pointer-events: none;
}


/* SCANNER */

.phone-terminal::after {
    content: "";

    position: absolute;

    top: 0;
    bottom: 0;

    left: 0;

    width: 60px;

    opacity: 0;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 36, 56, 0.055),
            transparent
        );

    transform:
        translateX(-80px);
}


/* +98 NODE */

.phone-country-chip {
    position: relative;

    flex:
        0 0 96px;

    width: 96px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    background:
        linear-gradient(
            135deg,
            rgba(255, 36, 56, 0.15),
            rgba(255, 36, 56, 0.025)
        );

    border-right:
        1px solid
        rgba(255, 36, 56, 0.24);
}

.phone-country-chip::before {
    content: "";

    position: absolute;

    left: 0;
    top: 12px;
    bottom: 12px;

    width: 2px;

    background:
        var(--red);

    box-shadow:
        0 0 12px
        rgba(255, 36, 56, 0.8);
}

.phone-country-top {
    display: flex;

    flex-direction: row;

    align-items: center;

    gap: 6px;

    margin-bottom: 4px;

    color:
        rgba(255, 255, 255, 0.43);

    font-family:
        "Rajdhani",
        sans-serif;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 1.5px;
}

.phone-signal-dot {
    width: 5px;
    height: 5px;

    flex:
        0 0 5px;

    border-radius: 50%;

    background:
        var(--red);

    box-shadow:
        0 0 8px
        rgba(255, 36, 56, 0.85);
}

.phone-country-chip strong {
    color:
        rgba(255, 255, 255, 0.95);

    font-family:
        "Rajdhani",
        sans-serif;

    font-size: 23px;

    line-height: 1;

    font-weight: 700;

    letter-spacing: 1px;
}


/* RIGHT SIDE */

.phone-terminal-main {
    min-width: 0;

    flex:
        1 1 auto;

    display: flex;

    flex-direction: column;
}

.phone-terminal-input {
    flex:
        1 1 auto;

    min-height: 47px;

    display: flex;

    flex-direction: row;

    align-items: center;
}

.phone-prefix {
    flex:
        0 0 auto;

    margin-left: 17px;

    margin-right: 10px;

    color:
        rgba(255, 36, 56, 0.60);

    font-family:
        "Rajdhani",
        sans-serif;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1px;
}


/* IMPORTANT:
   overrides normal input styling
*/

.phone-terminal-input input,
.phone-terminal-input input[type="tel"] {
    flex:
        1 1 auto;

    min-width: 0;

    width: 100%;

    height: 47px;

    margin: 0;

    padding:
        0 16px 0 0;

    border: 0;

    border-radius: 0;

    outline: 0;

    background:
        transparent;

    box-shadow: none;

    color:
        #ffffff;

    font-family:
        "Rajdhani",
        sans-serif;

    font-size: 17px;

    font-weight: 600;

    letter-spacing: 2px;
}

.phone-terminal-input input:hover,
.phone-terminal-input input:focus {
    border: 0;

    background:
        transparent;

    box-shadow: none;
}

.phone-terminal-input input::placeholder {
    color:
        rgba(255, 255, 255, 0.20);

    letter-spacing: 2px;
}


/* PHONE STATUS BAR */

.phone-channel-status {
    width: 100%;

    min-height: 26px;

    display: flex;

    flex-direction: row;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    padding:
        0 14px 0 17px;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.045);

    background:
        rgba(0, 0, 0, 0.18);

    color:
        rgba(255, 255, 255, 0.28);

    font-family:
        "Rajdhani",
        sans-serif;

    font-size: 8px;

    font-weight: 700;

    letter-spacing: 1.3px;
}

.phone-status-left {
    display: flex;

    flex-direction: row;

    align-items: center;

    gap: 7px;
}

.phone-status-dot {
    width: 5px;
    height: 5px;

    flex:
        0 0 5px;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.22);

    transition:
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.phone-encryption {
    color:
        rgba(255, 255, 255, 0.15);

    white-space: nowrap;
}


/* PHONE ACTIVE */

.phone-terminal-group.phone-active
.phone-terminal {
    border-color:
        rgba(255, 36, 56, 0.42);

    box-shadow:
        0 0 0 3px
        rgba(255, 36, 56, 0.035),

        0 0 22px
        rgba(255, 36, 56, 0.045);
}

.phone-terminal-group.phone-active
.phone-terminal::after {
    opacity: 1;

    animation:
        phoneTerminalScan
        1.7s linear infinite;
}

@keyframes phoneTerminalScan {

    from {
        transform:
            translateX(-80px);
    }

    to {
        transform:
            translateX(700px);
    }
}


/* PHONE VALID */

.phone-terminal-group.phone-valid
.phone-terminal {
    border-color:
        rgba(56, 230, 139, 0.32);

    box-shadow:
        0 0 18px
        rgba(56, 230, 139, 0.035);
}

.phone-terminal-group.phone-valid
.phone-status-dot {
    background:
        var(--green);

    box-shadow:
        0 0 8px
        rgba(56, 230, 139, 0.8);
}

.phone-terminal-group.phone-valid
#phoneStatusText {
    color:
        var(--green);
}

.phone-terminal-group.phone-valid
.phone-country-chip {
    border-right-color:
        rgba(56, 230, 139, 0.20);
}


/* PHONE INVALID */

.phone-terminal-group.phone-invalid
.phone-terminal {
    border-color:
        rgba(255, 36, 56, 0.48);
}

.phone-terminal-group.phone-invalid
.phone-status-dot {
    background:
        var(--red);

    box-shadow:
        0 0 8px
        rgba(255, 36, 56, 0.72);
}

.phone-terminal-group.phone-invalid
#phoneStatusText {
    color:
        #ff6573;
}


/* =======================================
   BUTTONS
======================================= */

button {
    font-family:
        "Rajdhani",
        sans-serif;
}

.primary-button {
    position: relative;

    width: 100%;

    min-height: 62px;

    margin-top: 10px;

    padding:
        0 20px;

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 10px;

    border:
        1px solid
        rgba(255, 72, 88, 0.5);

    border-radius: 2px;

    background:
        linear-gradient(
            90deg,
            #c9182a,
            #ff263b
        );

    color:
        white;

    font-size: 15px;

    font-weight: 700;

    letter-spacing: 1px;

    text-transform: uppercase;

    cursor: pointer;

    overflow: hidden;

    transition:
        0.25s ease;
}

.primary-button:hover {
    transform:
        translateY(-2px);

    box-shadow:
        0 12px 30px
        rgba(255, 36, 56, 0.22);

    background:
        linear-gradient(
            90deg,
            #dc1a2f,
            #ff4052
        );
}

.primary-button:disabled {
    cursor: wait;

    opacity: 0.72;
}

.button-grid {
    position: absolute;

    inset: 0;

    opacity: 0.08;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.5) 1px,
            transparent 1px
        );

    background-size:
        100% 7px;

    pointer-events: none;
}

.button-arrow {
    position: absolute;

    right: 20px;

    font-size: 20px;
}

.secondary-button {
    width: 100%;

    min-height: 48px;

    margin-top: 11px;

    border:
        1px solid
        var(--border);

    border-radius: 2px;

    background:
        transparent;

    color:
        #a4a8b0;

    font-size: 12px;

    font-weight: 600;

    letter-spacing: 0.7px;

    cursor: pointer;

    transition:
        0.2s ease;
}

.secondary-button:hover {
    color:
        white;

    border-color:
        rgba(255, 255, 255, 0.18);
}

.privacy-note {
    margin-top: 15px;

    text-align: center;

    color:
        #555b65;

    font-size: 9px;

    letter-spacing: 0.3px;
}


/* =======================================
   SPINNER
======================================= */

.spinner {
    width: 17px;
    height: 17px;

    display: none;

    border:
        2px solid
        rgba(255, 255, 255, 0.30);

    border-top-color:
        white;

    border-radius: 50%;

    animation:
        spin
        0.75s linear infinite;
}

@keyframes spin {

    to {
        transform:
            rotate(360deg);
    }
}


/* =======================================
   OTP SCREEN
======================================= */

.otp-form {
    text-align: center;
}

.otp-icon {
    width: 80px;
    height: 80px;

    margin:
        10px auto 24px;

    display: grid;

    place-items: center;

    border:
        1px solid
        rgba(255, 36, 56, 0.30);

    transform:
        rotate(45deg);

    background:
        rgba(255, 36, 56, 0.06);
}

.otp-icon div {
    transform:
        rotate(-45deg);

    font-family:
        "Rajdhani",
        sans-serif;

    font-size: 28px;

    font-weight: 700;

    color:
        var(--red);
}

.otp-heading span {
    color:
        var(--red);

    font-family:
        "Rajdhani",
        sans-serif;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 2px;
}

.otp-heading h3 {
    margin:
        7px 0 10px;

    font-family:
        "Rajdhani",
        sans-serif;

    font-size: 28px;
}

.otp-heading p {
    color:
        var(--muted);

    font-size: 12px;

    line-height: 1.7;
}

.otp-input-group {
    margin-top: 28px;
}

#otpInput {
    height: 64px;

    text-align: center;

    font-family:
        "Rajdhani",
        sans-serif;

    font-size: 30px;

    font-weight: 700;

    letter-spacing: 12px;

    padding-left: 12px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}


/* OTP ENTRY */

.otp-form.otp-enter {
    animation:
        otpScreenEnter
        0.55s
        cubic-bezier(.22, 1, .36, 1);
}

@keyframes otpScreenEnter {

    0% {
        opacity: 0;

        transform:
            translateY(18px)
            scale(.98);

        filter:
            blur(6px);
    }

    100% {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);

        filter:
            blur(0);
    }
}


/* OTP DIAMOND */

.otp-icon.otp-pulse {
    animation:
        otpDiamondPulse
        0.8s ease;
}

@keyframes otpDiamondPulse {

    0% {
        transform:
            rotate(45deg)
            scale(.75);

        opacity: 0;

        box-shadow:
            0 0 0
            rgba(255, 36, 56, 0);
    }

    55% {
        transform:
            rotate(45deg)
            scale(1.08);

        opacity: 1;

        box-shadow:
            0 0 40px
            rgba(255, 36, 56, .22);
    }

    100% {
        transform:
            rotate(45deg)
            scale(1);

        box-shadow:
            0 0 15px
            rgba(255, 36, 56, .08);
    }
}


/* OTP TYPING */

#otpInput.otp-typing {
    border-color:
        rgba(255, 36, 56, 0.70);

    box-shadow:
        0 0 0 3px
        rgba(255, 36, 56, .05),

        0 0 18px
        rgba(255, 36, 56, .12);
}


/* WRONG OTP */

#otpInput.otp-error {
    animation:
        otpErrorShake
        0.4s ease;

    border-color:
        #ff4052;

    box-shadow:
        0 0 0 3px
        rgba(255, 36, 56, .08),

        0 0 28px
        rgba(255, 36, 56, .22);
}

@keyframes otpErrorShake {

    0%,
    100% {
        transform:
            translateX(0);
    }

    20% {
        transform:
            translateX(-7px);
    }

    40% {
        transform:
            translateX(7px);
    }

    60% {
        transform:
            translateX(-4px);
    }

    80% {
        transform:
            translateX(4px);
    }
}


/* CORRECT OTP */

#otpInput.otp-success {
    animation:
        otpSuccessPulse
        0.65s ease;

    border-color:
        var(--green);
}

@keyframes otpSuccessPulse {

    0% {
        box-shadow:
            0 0 0
            rgba(56, 230, 139, 0);
    }

    50% {
        box-shadow:
            0 0 0 4px
            rgba(56, 230, 139, .08),

            0 0 35px
            rgba(56, 230, 139, .28);
    }

    100% {
        box-shadow:
            0 0 0
            rgba(56, 230, 139, 0);
    }
}


/* =======================================
   SUCCESS SCREEN
======================================= */

.success-screen {
    text-align: center;

    animation:
        screenEnter
        0.45s ease;
}

.verified-mark {
    display: flex;

    justify-content: center;

    margin:
        8px 0 23px;
}

.verified-ring {
    width: 82px;
    height: 82px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    border:
        1px solid
        rgba(56, 230, 139, 0.35);

    background:
        rgba(56, 230, 139, 0.05);

    box-shadow:
        0 0 38px
        rgba(56, 230, 139, 0.09);
}

.verified-ring span {
    color:
        var(--green);

    font-size: 34px;
}

.success-overline {
    color:
        var(--green);

    font-family:
        "Rajdhani",
        sans-serif;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 2.4px;
}

.success-screen h3 {
    margin-top: 7px;

    font-family:
        "Rajdhani",
        sans-serif;

    font-size: 34px;
}

.success-description {
    max-width: 440px;

    margin:
        10px auto 27px;

    color:
        var(--muted);

    font-size: 12px;

    line-height: 1.8;
}


/* =======================================
   CODE CARD
======================================= */

.code-card {
    position: relative;

    padding: 25px;

    margin-bottom: 13px;

    border:
        1px solid
        rgba(255, 36, 56, 0.28);

    background:
        linear-gradient(
            135deg,
            rgba(255, 36, 56, 0.08),
            rgba(255, 255, 255, 0.015)
        );

    overflow: hidden;
}

.code-card::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 100%;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--red),
            transparent
        );
}

.code-label {
    color:
        #7e838d;

    font-family:
        "Rajdhani",
        sans-serif;

    font-size: 10px;

    font-weight: 600;

    letter-spacing: 2px;
}

.subscription-code {
    margin:
        13px 0;

    color:
        white;

    font-family:
        "Rajdhani",
        sans-serif;

    font-size:
        clamp(28px, 5vw, 43px);

    font-weight: 700;

    letter-spacing: 3px;

    text-shadow:
        0 0 20px
        rgba(255, 36, 56, 0.28);
}

.code-meta {
    display: flex;

    justify-content: space-between;

    padding-top: 12px;

    border-top:
        1px solid
        var(--border);

    color:
        #666c76;

    font-family:
        "Rajdhani",
        sans-serif;

    font-size: 9px;

    letter-spacing: 1.3px;
}

.copy-message {
    color:
        var(--green);

    text-align: center;
}

.success-warning {
    margin-top: 22px;

    padding: 13px;

    display: flex;

    align-items: flex-start;

    gap: 11px;

    text-align: left;

    border:
        1px solid
        var(--border);

    color:
        #777d87;

    font-size: 10px;

    line-height: 1.6;
}

.success-warning > span {
    color:
        var(--red);

    font-family:
        "Rajdhani",
        sans-serif;

    font-size: 18px;

    font-weight: 700;
}


/* =======================================
   ACCESS GRANTED
======================================= */

.access-granted-overlay {
    position: absolute;

    inset: 0;

    z-index: 100;

    overflow: hidden;

    background:
        rgba(2, 8, 5, 0.98);

    align-items: center;

    justify-content: center;

    animation:
        accessFadeIn
        0.25s ease;
}

#matrixCanvas {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    opacity: 0.42;
}

.access-scan {
    position: absolute;

    left: 0;

    width: 100%;
    height: 3px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #58ff9c,
            transparent
        );

    box-shadow:
        0 0 20px
        #58ff9c;

    animation:
        accessScanner
        1.2s linear infinite;
}

@keyframes accessScanner {

    from {
        top: 0;
    }

    to {
        top: 100%;
    }
}

.access-content {
    position: relative;

    z-index: 2;

    width: 85%;

    text-align: center;
}

.access-small {
    color:
        var(--green);

    font-family:
        "Rajdhani",
        sans-serif;

    font-size: 11px;

    letter-spacing: 3px;

    font-weight: 700;

    margin-bottom: 20px;
}

.access-terminal {
    max-width: 410px;

    margin:
        0 auto 28px;

    display: flex;

    flex-direction: column;

    gap: 8px;

    text-align: left;

    color:
        rgba(103, 255, 168, 0.72);

    font-family:
        monospace;

    font-size: 11px;
}

.access-terminal span {
    opacity: 0;

    animation:
        terminalLine
        0.3s forwards;
}

.access-terminal span:nth-child(1) {
    animation-delay: 0.15s;
}

.access-terminal span:nth-child(2) {
    animation-delay: 0.42s;
}

.access-terminal span:nth-child(3) {
    animation-delay: 0.68s;
}

@keyframes terminalLine {

    from {
        opacity: 0;

        transform:
            translateX(-10px);
    }

    to {
        opacity: 1;

        transform:
            translateX(0);
    }
}

.access-content h2 {
    color:
        var(--green-bright);

    font-family:
        "Rajdhani",
        sans-serif;

    font-size:
        clamp(38px, 7vw, 72px);

    letter-spacing: 4px;

    text-shadow:
        0 0 8px
        rgba(56, 230, 139, 0.7),

        0 0 30px
        rgba(56, 230, 139, 0.28);

    animation:
        accessGlitch
        0.45s ease-in-out
        infinite alternate;
}

.access-progress {
    width:
        min(350px, 80%);

    height: 3px;

    margin:
        25px auto 0;

    background:
        rgba(56, 230, 139, 0.12);

    overflow: hidden;
}

.access-progress div {
    width: 0;

    height: 100%;

    background:
        var(--green-bright);

    box-shadow:
        0 0 14px
        var(--green);

    animation:
        accessProgress
        1.25s ease forwards;
}

@keyframes accessProgress {

    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

.access-granted-overlay.access-exit {
    animation:
        accessFadeOut
        0.35s ease forwards;
}

@keyframes accessFadeIn {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes accessFadeOut {

    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes accessGlitch {

    0% {
        transform:
            translateX(0);

        filter:
            brightness(1);
    }

    35% {
        transform:
            translateX(-2px);

        filter:
            brightness(1.35);
    }

    70% {
        transform:
            translateX(2px);
    }

    100% {
        transform:
            translateX(0);

        filter:
            brightness(1);
    }
}


/* =======================================
   ACCESS DENIED
======================================= */

.access-denied-overlay {
    position: absolute;

    inset: 0;

    z-index: 110;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    background:
        radial-gradient(
            circle at center,
            rgba(120, 0, 10, 0.18),
            transparent 48%
        ),

        rgba(5, 0, 2, 0.985);

    animation:
        deniedEnter
        0.18s ease;
}

.access-denied-overlay::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        rgba(255, 0, 25, 0.13);

    opacity: 0;

    pointer-events: none;

    animation:
        deniedFlash
        0.55s steps(2) 2;
}

.access-denied-overlay::after {
    content: "";

    position: absolute;

    inset: 0;

    box-shadow:
        inset 0 0 120px 35px
        rgba(0, 0, 0, 0.95);

    pointer-events: none;
}

.denied-noise {
    position: absolute;

    inset: -20%;

    opacity: 0.12;

    background-image:
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 2px,
            rgba(255, 25, 45, 0.45) 3px,
            transparent 4px
        );

    animation:
        deniedNoise
        0.09s steps(2)
        infinite;
}

.denied-scanline {
    position: absolute;

    left: 0;

    width: 100%;
    height: 3px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #ff2438,
            transparent
        );

    box-shadow:
        0 0 18px
        rgba(255, 36, 56, 0.8);

    animation:
        deniedScan
        0.65s linear infinite;
}

.denied-code {
    position: absolute;

    color:
        rgba(255, 36, 56, 0.18);

    font-family:
        monospace;

    font-size: 9px;

    line-height: 1.8;

    letter-spacing: 1px;
}

.denied-code-left {
    left: 25px;
    bottom: 25px;
}

.denied-code-right {
    right: 25px;
    top: 35px;

    text-align: right;
}

.denied-content {
    position: relative;

    z-index: 5;

    width: 88%;

    text-align: center;

    animation:
        deniedContentShake
        0.35s ease;
}

.denied-system {
    margin-bottom: 18px;

    color:
        rgba(255, 80, 95, 0.6);

    font-family:
        "Rajdhani",
        sans-serif;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 3px;
}

.denied-warning {
    width: 72px;
    height: 64px;

    margin:
        0 auto 15px;

    display: grid;

    place-items: center;

    position: relative;

    color:
        #ff2438;
}

.denied-warning::before {
    content: "";

    position: absolute;

    width: 48px;
    height: 48px;

    border:
        2px solid
        #ff2438;

    transform:
        rotate(45deg);

    box-shadow:
        0 0 20px
        rgba(255, 36, 56, 0.4);
}

.denied-warning span {
    position: relative;

    z-index: 2;

    font-family:
        "Rajdhani",
        sans-serif;

    font-size: 35px;

    font-weight: 700;

    animation:
        warningPulse
        0.3s ease infinite alternate;
}

.denied-title {
    position: relative;

    display: inline-block;

    color:
        #ff263b;

    font-family:
        "Rajdhani",
        sans-serif;

    font-size:
        clamp(38px, 7vw, 70px);

    font-weight: 700;

    line-height: 1;

    letter-spacing: 4px;

    text-shadow:
        0 0 8px
        rgba(255, 36, 56, 0.8),

        0 0 35px
        rgba(255, 36, 56, 0.35);

    animation:
        deniedTitleGlitch
        0.14s steps(2)
        infinite;
}

.denied-title::before {
    content:
        attr(data-text);

    position: absolute;

    left: 2px;
    top: 0;

    width: 100%;

    color:
        #ff5967;

    opacity: 0.45;

    clip-path:
        inset(0 0 55% 0);

    animation:
        deniedGhost1
        0.2s steps(2)
        infinite;
}

.denied-title::after {
    content:
        attr(data-text);

    position: absolute;

    left: -2px;
    top: 0;

    width: 100%;

    color:
        #8b0010;

    opacity: 0.7;

    clip-path:
        inset(55% 0 0 0);

    animation:
        deniedGhost2
        0.16s steps(2)
        infinite;
}

.denied-subtitle {
    margin-top: 10px;

    color:
        #e6e6e6;

    font-family:
        "Rajdhani",
        sans-serif;

    font-size: 13px;

    font-weight: 600;

    letter-spacing: 1.5px;
}

.denied-diagnostics {
    max-width: 470px;

    margin:
        27px auto 0;

    padding: 14px;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 10px;

    border:
        1px solid
        rgba(255, 36, 56, 0.28);

    background:
        rgba(255, 0, 20, 0.025);
}

.denied-diagnostics div {
    padding:
        8px 5px;

    border-right:
        1px solid
        rgba(255, 36, 56, 0.12);
}

.denied-diagnostics div:last-child {
    border-right: none;
}

.denied-diagnostics span {
    display: block;

    margin-bottom: 5px;

    color:
        #7e4147;

    font-family:
        "Rajdhani",
        sans-serif;

    font-size: 8px;

    letter-spacing: 1px;
}

.denied-diagnostics strong {
    display: block;

    color:
        #ff3548;

    font-family:
        "Rajdhani",
        sans-serif;

    font-size: 11px;
}

.denied-retry {
    margin-top: 22px;

    color:
        rgba(255, 65, 82, 0.8);

    font-family:
        "Rajdhani",
        sans-serif;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 3px;

    animation:
        retryBlink
        0.55s steps(1)
        infinite;
}

.access-denied-overlay.denied-exit {
    animation:
        deniedExit
        0.25s steps(2)
        forwards;
}


/* =======================================
   ACCESS DENIED ANIMATIONS
======================================= */

@keyframes deniedEnter {

    0% {
        opacity: 0;

        transform:
            scale(1.04);
    }

    45% {
        opacity: 1;

        transform:
            scale(0.99);
    }

    100% {
        transform:
            scale(1);
    }
}

@keyframes deniedExit {

    0% {
        opacity: 1;

        filter:
            brightness(1);
    }

    40% {
        transform:
            translateX(-7px);

        filter:
            brightness(2);
    }

    60% {
        transform:
            translateX(8px);
    }

    100% {
        opacity: 0;

        transform:
            scale(1.03);
    }
}

@keyframes deniedFlash {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

@keyframes deniedNoise {

    0% {
        transform:
            translate(0, 0);
    }

    25% {
        transform:
            translate(-5px, 3px);
    }

    50% {
        transform:
            translate(4px, -2px);
    }

    75% {
        transform:
            translate(-2px, -4px);
    }

    100% {
        transform:
            translate(3px, 2px);
    }
}

@keyframes deniedScan {

    from {
        top: 0;
    }

    to {
        top: 100%;
    }
}

@keyframes deniedContentShake {

    0% {
        transform:
            translateX(-10px);
    }

    25% {
        transform:
            translateX(8px);
    }

    50% {
        transform:
            translateX(-5px);
    }

    75% {
        transform:
            translateX(3px);
    }

    100% {
        transform:
            translateX(0);
    }
}

@keyframes warningPulse {

    from {
        opacity: 0.55;

        transform:
            scale(0.9);
    }

    to {
        opacity: 1;

        transform:
            scale(1.08);
    }
}

@keyframes deniedTitleGlitch {

    0% {
        transform:
            translate(0);
    }

    30% {
        transform:
            translate(-2px, 1px);
    }

    60% {
        transform:
            translate(2px, -1px);
    }

    100% {
        transform:
            translate(0);
    }
}

@keyframes deniedGhost1 {

    0% {
        transform:
            translateX(-4px);
    }

    100% {
        transform:
            translateX(4px);
    }
}

@keyframes deniedGhost2 {

    0% {
        transform:
            translateX(4px);
    }

    100% {
        transform:
            translateX(-3px);
    }
}

@keyframes retryBlink {

    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.25;
    }
}


/* =======================================
   SURVIVOR DIALOG
======================================= */

.survivor-dialog {
    position: absolute;

    top: 20%;
    left: 78%;

    z-index: 50;

    width: 220px;

    max-width: 220px;

    padding:
        12px 15px;

    background:
        rgba(5, 7, 10, 0.92);

    border:
        1px solid
        rgba(255, 255, 255, 0.10);

    border-left:
        2px solid
        var(--red);

    backdrop-filter:
        blur(10px);

    box-shadow:
        0 10px 30px
        rgba(0, 0, 0, 0.45);

    opacity: 0;

    transform:
        translateY(8px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;

    pointer-events: none;
}

.survivor-dialog.show {
    opacity: 1;

    transform:
        translateY(0);
}

.dialog-name {
    display: block;

    margin-bottom: 5px;

    color:
        var(--red);

    font-family:
        "Rajdhani",
        sans-serif;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 1.4px;
}

.survivor-dialog p {
    color:
        #d9dde4;

    font-family:
        "Rajdhani",
        sans-serif;

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 0.8px;

    line-height: 1.4;
}


/* =======================================
   SURVIVOR WRONG OTP
======================================= */

.survivor-panel.survivor-denied
.survivor-character {
    animation:
        survivorDeniedReaction
        0.65s
        cubic-bezier(.36, .07, .19, .97);
}

@keyframes survivorDeniedReaction {

    0% {
        transform:
            translateX(0)
            rotate(0deg);

        filter:
            brightness(1)
            contrast(1);
    }

    15% {
        transform:
            translateX(-7px)
            rotate(-1deg);

        filter:
            brightness(1.35)
            contrast(1.3)
            drop-shadow(
                0 0 12px
                rgba(255, 25, 45, 0.8)
            );
    }

    30% {
        transform:
            translateX(8px)
            rotate(1deg);
    }

    45% {
        transform:
            translateX(-5px)
            rotate(-0.5deg);
    }

    60% {
        transform:
            translateX(4px)
            rotate(0.5deg);

        filter:
            brightness(1.15)
            contrast(1.2)
            drop-shadow(
                0 0 18px
                rgba(255, 25, 45, 0.55)
            );
    }

    100% {
        transform:
            translateX(0)
            rotate(0deg);

        filter:
            brightness(1)
            contrast(1);
    }
}

.survivor-panel.survivor-denied::after {
    content: "";

    position: absolute;

    inset: 0;

    z-index: 0;

    background:
        radial-gradient(
            circle at 50% 45%,
            rgba(255, 20, 40, 0.24),
            transparent 60%
        );

    pointer-events: none;

    animation:
        survivorDeniedFlash
        0.7s ease-out;
}

@keyframes survivorDeniedFlash {

    0% {
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}


/* =======================================
   SURVIVOR SUCCESS
======================================= */

.survivor-panel.survivor-success
.survivor-character {
    animation:
        survivorSuccessReaction
        1.2s
        ease-out
        forwards;
}

@keyframes survivorSuccessReaction {

    0% {
        transform:
            translateY(0)
            scale(1);

        filter:
            brightness(1)
            contrast(1);
    }

    30% {
        transform:
            translateY(-5px)
            scale(1.015);

        filter:
            brightness(1.15)
            contrast(1.05)
            drop-shadow(
                0 0 10px
                rgba(55, 255, 140, 0.45)
            );
    }

    65% {
        transform:
            translateY(-8px)
            scale(1.02);

        filter:
            brightness(1.2)
            contrast(1.08)
            drop-shadow(
                0 0 22px
                rgba(55, 255, 140, 0.75)
            );
    }

    100% {
        transform:
            translateY(-4px)
            scale(1.01);

        filter:
            brightness(1.08)
            contrast(1.04)
            drop-shadow(
                0 0 14px
                rgba(55, 255, 140, 0.4)
            );
    }
}

.survivor-panel.survivor-success::after {
    content: "";

    position: absolute;

    inset: 0;

    z-index: 0;

    pointer-events: none;

    background:
        radial-gradient(
            circle at 50% 45%,
            rgba(55, 255, 140, 0.28),
            transparent 62%
        );

    animation:
        survivorSuccessPulse
        1.4s ease-out;
}

@keyframes survivorSuccessPulse {

    0% {
        opacity: 0;

        transform:
            scale(0.85);
    }

    35% {
        opacity: 1;

        transform:
            scale(1);
    }

    100% {
        opacity: 0;

        transform:
            scale(1.12);
    }
}


/* =======================================
   SURVIVOR IDLE
======================================= */

.survivor-panel:not(.survivor-denied):not(.survivor-success)
.survivor-character {
    animation:
        survivorIdle
        4.5s ease-in-out infinite;
}

@keyframes survivorIdle {

    0%,
    100% {
        transform:
            translateY(0)
            scale(1);
    }

    50% {
        transform:
            translateY(-3px)
            scale(1.006);
    }
}


/* =======================================
   INTERFACE FOOTER
======================================= */

.interface-footer {
    display: flex;

    justify-content: space-between;

    margin-top: 25px;

    padding-top: 14px;

    border-top:
        1px solid
        var(--border);

    color:
        #4d525b;

    font-family:
        "Rajdhani",
        sans-serif;

    font-size: 9px;

    letter-spacing: 1.2px;
}


/* =======================================
   TABLET
======================================= */

@media (max-width: 1050px) {

    .portal-shell {
        grid-template-columns:
            1fr;
    }

    .mission-panel {
        min-height: auto;

        padding:
            34px;

        padding-bottom:
            35px;

        border-right:
            none;

        border-bottom:
            1px solid
            var(--border);
    }

    .hero-logo {
        margin-top:
            35px;
    }

    .mission-description {
        max-width:
            680px;
    }

    .steps {
        grid-template-columns:
            repeat(3, 1fr);
    }


    /* =======================================
       SURVIVOR - TABLET
    ======================================= */

    .operator-zone {
        display:
            block;

        width:
            100%;

        max-width:
            none;

        height:
            500px;

        margin-top:
            25px;

        position:
            relative;
    }

    .character-panel {
        height:
            500px;

        min-height:
            500px;

        position:
            relative;
    }

    .survivor-character {
        left:
            50%;

        right:
            auto;

        bottom:
            0;

        height:
            500px;

        width:
            auto;

        max-width:
            none;
    }


    /* =======================================
       RIGHT PANEL
    ======================================= */

    .interface-panel {
        min-height:
            auto;

        justify-content:
            center;

        padding:
            40px 30px 70px;
    }

    .interface-frame {
        width:
            100%;

        max-width:
            760px;

        padding:
            42px;
    }

}


/* =======================================
   MOBILE
======================================= */

@media (max-width: 700px) {

    .mission-panel {
        padding:
            26px 20px 28px;
    }

    .mission-panel h1 {
        font-size:
            44px;
    }

    .hero-logo {
        width:
            140px;
    }

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

    .step {
        min-height:
            56px;
    }

    .mission-footer {
        display:
            none;
    }


    /* =======================================
       SURVIVOR - MOBILE
    ======================================= */

    .operator-zone {
        position:
            relative;

        right:
            auto;

        bottom:
            auto;

        width:
            100%;

        height:
            430px;

        margin:
            25px auto 0;

        display:
            block;

        z-index:
            5;

        pointer-events:
            none;

        overflow:
            hidden;
    }

    .character-panel {
        position:
            relative;

        width:
            100%;

        height:
            430px;

        min-height:
            430px;

        border:
            none;

        background:
            transparent;

        overflow:
            visible;
    }

    .survivor-character {
        position:
            absolute;

        left:
            50%;

        right:
            auto;

        bottom:
            0;

        width:
            auto;

        height:
            430px;

        max-width:
            none;

        object-fit:
            contain;
    }

    .character-info {
        display:
            none;
    }


    /* =======================================
       RIGHT PANEL
    ======================================= */

    .interface-panel {
        padding:
            18px 14px 40px;
    }

    .interface-frame {
        width:
            100%;

        padding:
            25px 19px;
    }

    .interface-header h2 {
        font-size:
            25px;
    }

    .secure-chip {
        display:
            none;
    }

    .form-grid {
        grid-template-columns:
            1fr;

        gap:
            0;
    }

    input {
        height:
            54px;

        font-size:
            14px;
    }


    /* =======================================
       PHONE MOBILE
    ======================================= */

    .phone-terminal-node {
        display:
            none;
    }

    .phone-terminal {
        min-height:
            70px;
    }

    .phone-country-chip {
        width:
            76px;

        flex-basis:
            76px;
    }

    .phone-country-chip strong {
        font-size:
            20px;
    }

    .phone-prefix {
        margin-left:
            11px;

        margin-right:
            7px;
    }

    .phone-channel-status {
        padding:
            0 10px 0 11px;
    }

    .phone-encryption {
        display:
            none;
    }


    /* =======================================
       SUCCESS
    ======================================= */

    .subscription-code {
        letter-spacing:
            1px;

        font-size:
            29px;
    }


    /* =======================================
       ACCESS SCREENS
    ======================================= */

    .access-terminal {
        font-size:
            9px;
    }

    .access-content h2 {
        font-size:
            38px;
    }

    .denied-diagnostics {
        grid-template-columns:
            1fr;
    }

    .denied-diagnostics div {
        border-right:
            none;

        border-bottom:
            1px solid
            rgba(255, 36, 56, 0.12);
    }

    .denied-diagnostics div:last-child {
        border-bottom:
            none;
    }

    .denied-code {
        display:
            none;
    }

    .denied-title {
        font-size:
            38px;
    }


    /* =======================================
       SURVIVOR DIALOG
    ======================================= */

    .survivor-dialog {
        top:
            16%;

        left:
            50%;

        right:
            auto;

        width:
            180px;

        max-width:
            180px;

        margin-left:
            70px;
    }

}

/* =======================================
   MOBILE - CHARACTER BESIDE FORM
   v2: larger character + logo/workflow restored
   Desktop/tablet remain unchanged
======================================= */

@media (max-width: 700px) {

    /* Two-column mobile layout */
    .portal-shell {
        display: grid;
        grid-template-columns: 40% 60%;
        min-height: 100vh;
        align-items: stretch;
    }

    /* LEFT SIDE */
    .mission-panel {
        position: relative;
        z-index: 2;

        min-width: 0;
        min-height: 100vh;

        padding: 0;

        border-right:
            1px solid
            var(--border);

        border-bottom: none;

        background:
            linear-gradient(
                145deg,
                rgba(15, 17, 22, 0.56),
                rgba(7, 8, 11, 0.34)
            );

        backdrop-filter:
            blur(1.5px);

        overflow: hidden;
    }

    /* Keep non-essential desktop copy hidden */
    .mission-panel .system-badge,
    .mission-panel .mission-kicker,
    .mission-panel h1,
    .mission-panel .mission-description,
    .mission-panel .mission-footer {
        display: none;
    }

    /* Restore logo on mobile */
    .mission-panel .hero-logo {
        position: absolute;

        top: 18px;
        left: 50%;

        z-index: 6;

        display: block;

        width: min(115px, 72%);

        margin: 0;

        transform:
            translateX(-50%);

        animation: none !important;

        filter:
            drop-shadow(
                0 0 14px
                rgba(255, 36, 56, 0.28)
            );
    }

    /* Restore workflow steps on mobile */
    .mission-panel .steps {
        position: absolute;

        top: 112px;
        left: 8px;
        right: 8px;

        z-index: 6;

        display: grid;

        grid-template-columns: 1fr;

        gap: 5px;

        margin: 0;
    }

    .mission-panel .step {
        min-height: 42px;

        gap: 7px;

        padding:
            6px
            7px;

        background:
            rgba(8, 9, 12, 0.68);

        backdrop-filter:
            blur(4px);
    }

    .mission-panel .step-number {
        min-width: 24px;

        font-size: 16px;
    }

    .mission-panel .step strong {
        font-size: 9px;

        letter-spacing: 0.6px;
    }

    .mission-panel .step span {
        display: none;
    }

    /* CHARACTER AREA */
    .operator-zone {
        position: sticky;

        top: 0;

        width: 100%;
        height: 100vh;

        margin: 0;

        display: block;

        z-index: 1;

        pointer-events: none;

        overflow: hidden;
    }

    .character-panel {
        position: relative;

        width: 100%;
        height: 100vh;

        min-height: 100vh;

        border: none;

        background: transparent;

        overflow: hidden;
    }

    /* Much larger character, but still clipped to the left column */
    .survivor-character {
        position: absolute;

        left: 75%;
        bottom: 0;

        width: auto;
        height: 88vh;

        max-width: none;
        max-height: none;

        object-fit: contain;

        transform:
            translateX(-50%);

        z-index: 1;

        animation: none !important;
    }

    .character-info,
    .survivor-dialog {
        display: none;
    }
   .survivor-dialog {
    display: block;
    position: fixed;

    left: 14px;
    top: 58%;

    width: 150px;
    max-width: 150px;

    padding: 10px 12px;
    margin: 0;

    z-index: 120;

    pointer-events: none;
}

    /* RIGHT SIDE - FORM */
    .interface-panel {
        position: relative;
        z-index: 3;

        min-width: 0;
        min-height: 100vh;

        padding:
            18px
            7px
            40px
            7px;

        align-items: flex-start;
        justify-content: flex-start;

        background:
            var(--bg);
    }

    .interface-frame {
        position: relative;

        width: 100%;
        max-width: none;

        margin: 0;

        padding:
            24px
            12px;

        overflow: hidden;
    }

    .interface-header {
        gap: 8px;
    }

    .interface-header h2 {
        font-size: 24px;
    }

    .interface-label {
        letter-spacing: 1.5px;
    }

    .secure-chip {
        display: none;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .input-group {
        min-width: 0;
    }

    label {
        font-size: 12px;
    }

    input {
        height: 54px;
        font-size: 14px;
    }

    /* Keep the phone module usable in the narrower form column */
    .phone-terminal {
        min-width: 0;
    }

    .phone-country-chip {
        flex:
            0 0 66px;

        width: 66px;
    }

    .phone-country-chip strong {
        font-size: 18px;
    }

    .phone-country-top {
        font-size: 8px;
        letter-spacing: 1px;
    }

    .phone-prefix {
        margin-left: 6px;
        margin-right: 5px;
    }

    .phone-terminal-input input,
    .phone-terminal-input input[type="tel"] {
        padding-right: 6px;
        font-size: 14px;
        letter-spacing: 1px;
    }

    .phone-terminal-node,
    .phone-encryption {
        display: none;
    }

    .phone-channel-status {
        padding:
            0 6px;
    }

    .otp-heading h3 {
        font-size: 23px;
    }

    .subscription-code {
        font-size: 24px;
        letter-spacing: 1px;
        overflow-wrap: anywhere;
    }
}

