:root {

    --bg: #040404;

    --panel: #090909;
    --panel-2: #0d0d0d;

    --text: #bcbcbc;
    --muted: #626262;
    --dim: #3d3d3d;

    --red: #d21f26;
    --red-bright: #f0353b;
    --red-dark: #651114;

    --green: #56a878;

    --border: #292929;

    --mono: "Share Tech Mono", monospace;
    --display: "Special Elite", monospace;
    --thai: "Noto Sans Thai", sans-serif;
}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {

    margin: 0;

    min-height: 100vh;

    overflow-x: hidden;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(130,0,0,.11),
            transparent 34%
        ),
        #040404;

    color: var(--text);

    font-family: var(--mono);

}


body[data-lang="th"] {

    font-family: var(--thai);

}


body::before {

    content: "";

    position: fixed;

    inset: 0;

    pointer-events: none;

    z-index: 80;

    background:
        repeating-linear-gradient(
            to bottom,
            rgba(255,255,255,.015) 0,
            rgba(255,255,255,.015) 1px,
            transparent 1px,
            transparent 4px
        );

    opacity: .38;

}


body::after {

    content: "";

    position: fixed;

    inset: 0;

    pointer-events: none;

    z-index: 81;

    background:
        radial-gradient(
            circle,
            transparent 48%,
            rgba(0,0,0,.84) 100%
        );

}


.noise {

    position: fixed;

    inset: 0;

    pointer-events: none;

    z-index: 79;

    opacity: .10;

    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");

    animation:
        noiseShift 8s steps(8) infinite;

}


@keyframes noiseShift {

    0% {
        transform: translate(0,0);
    }

    25% {
        transform: translate(-1%,1%);
    }

    50% {
        transform: translate(1%,-1%);
    }

    75% {
        transform: translate(-1%,-1%);
    }

    100% {
        transform: translate(0,0);
    }

}


.scanlines {

    position: fixed;

    inset: 0;

    pointer-events: none;

    z-index: 82;

    background:
        repeating-linear-gradient(
            to bottom,
            transparent 0,
            transparent 5px,
            rgba(170,0,0,.018) 6px
        );

}


.screen-flash {

    position: fixed;

    inset: 0;

    pointer-events: none;

    z-index: 95;

    background:
        rgba(150,0,0,.14);

    opacity: 0;

}


.screen-flash.active {

    animation:
        screenFlash .18s ease-out;

}


@keyframes screenFlash {

    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }

}


/* =========================================================
   HEADER
========================================================= */

.site-header {

    min-height: 118px;

    display: grid;

    grid-template-columns:
        360px
        1fr
        360px;

    align-items: center;

    gap: 25px;

    padding: 20px 42px;

    border-bottom:
        1px solid #252525;

    position: relative;

    z-index: 5;

}


.brand {

    display: flex;

    align-items: center;

    gap: 20px;

}


.logo {

    width: 66px;

    height: 66px;

    border:
        1px solid #888;

    transform:
        rotate(45deg);

    display: grid;

    place-items: center;

}


.logo svg {

    width: 34px;

    height: 34px;

    color: #c8c8c8;

    transform:
        rotate(-45deg);

}


.brand h1 {

    margin: 0;

    color: #ddd;

    font-size: 24px;

    letter-spacing: 4px;

}


.brand h2 {

    margin: 3px 0 0;

    color: #909090;

    font-size: 18px;

    letter-spacing: 6px;

}


.brand p {

    margin: 7px 0 0;

    color: var(--red);

    font-size: 9px;

    letter-spacing: 2px;

}


.header-center {

    display: flex;

    justify-content: center;

    gap: 30px;

    color: #555;

    font-size: 11px;

}


.header-center span {

    padding: 12px 0;

    position: relative;

}


.header-center .active {

    color: var(--red-bright);

}


.header-center .active::after {

    content: "";

    position: absolute;

    left: 0;

    right: 0;

    bottom: 1px;

    height: 1px;

    background: var(--red);

    box-shadow:
        0 0 10px var(--red);

}


.system-status {

    padding: 14px 17px;

    border:
        1px solid #292929;

    background:
        rgba(10,10,10,.75);

    color: #555;

    font-size: 9px;

    line-height: 1.9;

}


.system-status strong {

    color: var(--green);

}


.status-dot {

    display: inline-block;

    width: 7px;

    height: 7px;

    margin-right: 7px;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 10px
        rgba(86,168,120,.8);

    animation:
        blink 1.5s infinite;

}


@keyframes blink {

    0%,50% {
        opacity: 1;
    }

    51%,100% {
        opacity: .25;
    }

}


/* =========================================================
   TOPBAR
========================================================= */

.topbar {

    max-width: 1550px;

    margin: 0 auto;

    padding:
        18px 30px 8px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    position: relative;

    z-index: 5;

}


.form-code strong {

    display: block;

    color: #bbb;

    font-size: 14px;

    letter-spacing: 3px;

}


.form-code span {

    display: block;

    margin-top: 5px;

    color: #505050;

    font-size: 9px;

    letter-spacing: 2px;

}


.top-actions {

    display: flex;

    align-items: center;

    gap: 10px;

}


.rules-link {

    min-height: 34px;

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 7px 12px;

    border:
        1px solid #292929;

    background:
        #080808;

    color: #686868;

    text-decoration: none;

    font-size: 8px;

    letter-spacing: 1.2px;

    transition: .2s;

}


.rules-link svg {

    width: 14px;

    height: 14px;

}


.rules-link:hover {

    color: #d13a40;

    border-color: #632126;

    background:
        rgba(100,0,0,.08);

}


.lang-toggle {

    min-height: 34px;

    display: flex;

    align-items: center;

    padding: 5px;

    border:
        1px solid #292929;

    background:
        #080808;

    color: #666;

    cursor: pointer;

}


.lang-toggle svg {

    width: 14px;

    height: 14px;

    margin: 0 7px;

}


.lang {

    padding: 6px 8px;

    color: #555;

    font-size: 8px;

}


.lang.active {

    color: #ef363d;

    border:
        1px solid #501b1f;

    background:
        rgba(120,0,0,.12);

}


/* =========================================================
   PAGE
========================================================= */

.page {

    max-width: 1550px;

    margin: 0 auto;

    padding:
        10px 30px 30px;

    display: grid;

    grid-template-columns:
        270px
        minmax(550px,1fr)
        300px;

    gap: 10px;

}


/* =========================================================
   GENERIC PANEL
========================================================= */

.panel {

    border:
        1px solid #292929;

    background:
        linear-gradient(
            180deg,
            rgba(17,17,17,.78),
            rgba(5,5,5,.97)
        );

}


/* =========================================================
   LEFT
========================================================= */

.left-panel {

    min-height: 850px;

    overflow: hidden;

}


.panel-head {

    padding: 20px;

    border-bottom:
        1px solid #232323;

    display: flex;

    align-items: center;

    gap: 13px;

}


.panel-head svg {

    width: 28px;

    height: 28px;

    color: #888;

}


.panel-head strong {

    display: block;

    color: #aaa;

    font-size: 12px;

    letter-spacing: 1px;

}


.panel-head small {

    display: block;

    margin-top: 4px;

    color: #4c4c4c;

    font-size: 8px;

    letter-spacing: 1px;

}


/* =========================================================
   JOB
========================================================= */

.job-card {

    padding: 20px;

    border-bottom:
        1px solid #232323;

}


.job-label {

    color: #505050;

    font-size: 8px;

    letter-spacing: 2px;

}


.job-title {

    margin-top: 7px;

    color: #c4c4c4;

    font-family: var(--display);

    font-size: 17px;

}


.job-code {

    margin-top: 5px;

    color: #662a2e;

    font-size: 8px;

}


.salary-card {

    margin-top: 23px;

    padding: 15px;

    border:
        1px solid #38181b;

    background:
        rgba(120,0,0,.07);

}


.salary-label {

    color: #515151;

    font-size: 8px;

    letter-spacing: 2px;

}


.salary-value {

    margin-top: 4px;

    color: var(--red-bright);

    font-size: 27px;

    letter-spacing: 1px;

}


.salary-range-small {

    margin-top: 2px;

    color: #555;

    font-size: 8px;

}


.job-status {

    margin-top: 14px;

    color: var(--green);

    font-size: 8px;

}


.job-status .dot {

    display: inline-block;

    width: 6px;

    height: 6px;

    margin-right: 6px;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 7px
        rgba(86,168,120,.8);

}


/* =========================================================
   WARNING
========================================================= */

.warning-box {

    margin: 16px;

    padding: 15px;

    border:
        1px solid #38181b;

    background:
        rgba(80,0,0,.07);

}


.warning-title {

    display: flex;

    align-items: center;

    gap: 8px;

    color: var(--red);

    font-size: 10px;

    letter-spacing: 2px;

}


.warning-title svg {

    width: 15px;

    height: 15px;

}


.warning-text {

    margin-top: 12px;

    color: #626262;

    font-size: 8px;

    line-height: 1.8;

}


.barcode {

    margin-top: 13px;

    color: #51151a;

    font-size: 10px;

    letter-spacing: 2px;

    white-space: nowrap;

    overflow: hidden;

}


/* =========================================================
   RULES PREVIEW
========================================================= */

.rules {

    padding: 18px;

}


.rules-title {

    margin-bottom: 10px;

    color: #813036;

    font-size: 8px;

    letter-spacing: 2px;

}


.rule {

    display: grid;

    grid-template-columns:
        23px 1fr;

    gap: 6px;

    padding: 9px 0;

    border-bottom:
        1px solid #181818;

}


.rule-number {

    color: #5d2428;

    font-size: 8px;

}


.rule-text {

    color: #555;

    font-size: 8px;

    line-height: 1.65;

}


.read-rules {

    display: block;

    margin-top: 13px;

    color: #7e3035;

    text-decoration: none;

    font-size: 8px;

    letter-spacing: 1px;

}


.read-rules:hover {

    color: #c14349;

}


/* =========================================================
   FORM
========================================================= */

.form-container {

    padding: 25px;

    border:
        1px solid #2a2a2a;

    background:
        radial-gradient(
            circle at 80% 10%,
            rgba(120,0,0,.07),
            transparent 30%
        ),
        #080808;

    animation:
        formFlicker 8s infinite;

}


@keyframes formFlicker {

    0%,95%,100% {
        opacity: 1;
    }

    96% {
        opacity: .94;
    }

    98% {
        opacity: .91;
    }

}


.form-header {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    padding:
        4px 10px 23px;

    margin-bottom: 24px;

    border-bottom:
        1px solid #252525;

}


.form-symbol svg {

    width: 32px;

    height: 32px;

    color: #898989;

    margin-bottom: 7px;

}


.page-title {

    position: relative;

    margin: 0;

    color: #c5c5c5;

    font-family: var(--display);

    font-size: 27px;

    letter-spacing: 3px;

}


.glitch-title {

    position: absolute;

    inset: 0;

    color: var(--red);

    opacity: 0;

}


.glitch-title.active {

    animation:
        titleGlitch .34s steps(2);

}


@keyframes titleGlitch {

    0% {
        opacity: .85;
        clip-path: inset(10% 0 65% 0);
        transform: translateX(-2px);
    }

    35% {
        opacity: .65;
        clip-path: inset(55% 0 15% 0);
        transform: translateX(2px);
    }

    70% {
        opacity: .7;
        clip-path: inset(30% 0 35% 0);
        transform: translateX(-1px);
    }

    100% {
        opacity: 0;
    }

}


.form-subtitle {

    margin-top: 7px;

    color: var(--red);

    font-size: 8px;

    letter-spacing: 3px;

}


.classified {

    color: #4b4b4b;

    text-align: right;

    font-size: 8px;

    line-height: 1.8;

}


.classified strong {

    color: var(--red);

    font-size: 13px;

}


/* =========================================================
   FIELDS
========================================================= */

.field {

    margin-bottom: 21px;

    position: relative;

}


.field-title {

    display: block;

    margin-bottom: 8px;

    color: #9f9f9f;

    font-size: 10px;

    letter-spacing: 1px;

}


.field-title .number {

    margin-right: 8px;

    color: #555;

}


input,
select,
textarea {

    width: 100%;

    padding: 13px;

    border:
        1px solid #292929;

    outline: none;

    background:
        #0b0b0b;

    color: #aaa;

    font-family: inherit;

    font-size: 11px;

    transition:
        .2s;

}


input:hover,
select:hover,
textarea:hover {

    border-color:
        #373737;

}


input:focus,
select:focus,
textarea:focus {

    border-color:
        #681e22;

    background:
        #0e0e0e;

    box-shadow:
        0 0 16px
        rgba(160,0,0,.08);

}


input::placeholder,
textarea::placeholder {

    color: #414141;

}


textarea {

    min-height: 105px;

    resize: vertical;

}


.character-counter {

    position: absolute;

    right: 9px;

    bottom: -14px;

    color: #414141;

    font-size: 8px;

}


.two-column {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 15px;

}


/* =========================================================
   DATE
========================================================= */

.date-note {

    margin-top: 7px;

    display: flex;

    align-items: center;

    gap: 6px;

    color: #63282c;

    font-size: 7px;

}


.date-note svg {

    width: 12px;

    height: 12px;

}


/* =========================================================
   RADIO
========================================================= */

.radio-grid {

    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    border:
        1px solid #292929;

}


.radio-option {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    min-height: 46px;

    color: #606060;

    border-right:
        1px solid #222;

    cursor: pointer;

    font-size: 8px;

}


.radio-option:last-child {

    border-right:
        none;

}


.radio-option input {

    display: none;

}


.radio-symbol {

    width: 11px;

    height: 11px;

    border:
        1px solid #555;

    border-radius: 50%;

}


.radio-option input:checked
+ .radio-symbol {

    background:
        var(--red);

    border-color:
        var(--red);

    box-shadow:
        0 0 9px
        rgba(210,31,38,.6);

}


/* =========================================================
   RANGE
========================================================= */

.range-top {

    display: flex;

    justify-content: space-between;

    margin-bottom: 7px;

    color: #4d4d4d;

    font-size: 8px;

}


input[type="range"] {

    height: 4px;

    padding: 0;

    border: none;

    appearance: none;

    background:
        #252525;

}


input[type="range"]::-webkit-slider-thumb {

    appearance: none;

    width: 12px;

    height: 12px;

    border-radius: 50%;

    border:
        1px solid var(--red);

    background:
        var(--red);

    box-shadow:
        0 0 8px
        rgba(210,31,38,.6);

}


.range-value {

    margin-top: 6px;

    color: #67272c;

    font-size: 8px;

    text-align: right;

}


/* =========================================================
   SALARY INPUT
========================================================= */

.salary-input-wrapper {

    display: flex;

    align-items: center;

    border:
        1px solid #292929;

    background:
        #0b0b0b;

    transition:
        .2s;

}


.salary-input-wrapper:focus-within {

    border-color:
        #681e22;

    box-shadow:
        0 0 16px
        rgba(160,0,0,.08);

}


.currency {

    padding-left: 14px;

    color: var(--red-bright);

    font-size: 20px;

}


.salary-input-wrapper input {

    border: none;

    background: transparent;

    color: var(--red-bright);

    font-size: 20px;

    box-shadow: none;

}


.salary-input-wrapper input:focus {

    border: none;

    box-shadow: none;

}


.salary-unit {

    padding-right: 14px;

    color: #555;

    font-size: 8px;

    white-space: nowrap;

}


.salary-help {

    margin-top: 7px;

    color: #5f2a2d;

    font-size: 7px;

}


/* =========================================================
   AGREEMENT
========================================================= */

.agreement {

    display: flex;

    align-items: flex-start;

    gap: 10px;

    padding: 15px;

    border:
        1px solid #37171a;

    background:
        rgba(70,0,0,.06);

    cursor: pointer;

}


.agreement input {

    width: auto;

    margin-top: 3px;

    accent-color:
        var(--red);

}


.agreement-text {

    color: #5d5d5d;

    font-size: 8px;

    line-height: 1.8;

}


.agreement-text strong {

    display: block;

    margin-bottom: 4px;

    color: #9f3c42;

}


/* =========================================================
   SUBMIT
========================================================= */

.submit-btn {

    width: 100%;

    margin-top: 2px;

    padding: 16px;

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 18px;

    border:
        1px solid #732428;

    background:
        linear-gradient(
            90deg,
            rgba(100,0,0,.25),
            rgba(30,0,0,.32)
        );

    color: #d2aaaa;

    font-family: var(--display);

    font-size: 12px;

    letter-spacing: 3px;

    cursor: pointer;

    transition:
        .2s;

}


.submit-btn svg {

    width: 16px;

    height: 16px;

}


.submit-btn:hover {

    background:
        var(--red);

    color: #fff;

    box-shadow:
        0 0 25px
        rgba(210,31,38,.25);

}


/* =========================================================
   RIGHT PANEL
========================================================= */

.right-panel {

    display: flex;

    flex-direction: column;

    gap: 10px;

}


.right-box {

    padding: 18px;

    border:
        1px solid #282828;

    background:
        #080808;

}


.right-title {

    margin: 0 0 15px;

    padding-bottom: 9px;

    border-bottom:
        1px solid #30171a;

    color: #8e3439;

    font-size: 9px;

    letter-spacing: 2px;

}


.right-box p {

    color: #545454;

    font-size: 8px;

    line-height: 1.8;

}


.protocol-line {

    display: grid;

    grid-template-columns:
        25px 1fr;

    gap: 7px;

    margin-bottom: 11px;

    color: #545454;

    font-size: 8px;

    line-height: 1.7;

}


.protocol-line .index {

    color: #692a2f;

}


.fake-file {

    margin-top: 16px;

    padding: 10px;

    border:
        1px solid #211315;

    color: #474747;

    font-size: 7px;

    line-height: 1.8;

}


.redacted {

    color: #63262b !important;

}


.warning-text {

    color: #753034 !important;

}


.small-muted {

    color: #4b4b4b !important;

}


/* =========================================================
   FOOTER
========================================================= */

footer {

    max-width: 1550px;

    margin: 0 auto;

    padding:
        12px 30px 24px;

    display: flex;

    justify-content: space-between;

    border-top:
        1px solid #202020;

    color: #414141;

    font-size: 7px;

    line-height: 1.8;

}


footer strong {

    color: #7d2e33;

    letter-spacing: 2px;

}


/* =========================================================
   MODAL
========================================================= */

.modal {

    position: fixed;

    inset: 0;

    display: none;

    justify-content: center;

    align-items: center;

    padding: 20px;

    z-index: 100;

    background:
        rgba(0,0,0,.94);

    backdrop-filter:
        blur(3px);

}


.modal.show {

    display: flex;

    animation:
        modalIn .2s ease-out;

}


@keyframes modalIn {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}


.modal-content {

    width:
        min(520px, 95vw);

    padding:
        40px 32px;

    text-align: center;

    border:
        1px solid #74262a;

    background:
        radial-gradient(
            circle at 50% 0,
            rgba(120,0,0,.12),
            transparent 40%
        ),
        #080808;

    box-shadow:
        0 0 90px
        rgba(150,0,0,.2);

}


.modal-icon {

    margin-bottom: 15px;

    color: var(--red);

}


.modal-icon svg {

    width: 43px;

    height: 43px;

}


.modal-content h2 {

    margin: 0;

    color: #c9c9c9;

    font-family: var(--display);

    letter-spacing: 2px;

}


.modal-content p {

    color: #555;

    font-size: 8px;

    line-height: 1.8;

}


/* =========================================================
   APPLICATION ID
========================================================= */

.application-id {

    margin: 20px 0;

    padding: 13px;

    border:
        1px solid #292929;

    color: #505050;

    font-size: 8px;

}


.application-id strong {

    display: block;

    margin-top: 5px;

    color: var(--red);

    font-size: 18px;

}


/* =========================================================
   BUG DISPLAY
========================================================= */

.anomaly-report {

    margin:
        18px 0;

    border:
        1px solid #2a2a2a;

    background:
        #070707;

}


.anomaly-row {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding:
        10px 13px;

    border-bottom:
        1px solid #1c1c1c;

    color: #555;

    font-size: 8px;

}


.anomaly-row:last-child {

    border-bottom:
        none;

}


.anomaly-row strong {

    color: #aaa;

    font-size: 10px;

}


.anomaly-row.corrupted {

    background:
        rgba(120,0,0,.07);

}


.anomaly-row.corrupted strong {

    color: var(--red);

}


.modal-warning {

    color: #842f34 !important;

}


.modal-btn {

    padding:
        11px 26px;

    border:
        1px solid #6e2529;

    background:
        #140405;

    color: #a54046;

    font-family: inherit;

    cursor: pointer;

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 1250px) {

    .site-header {

        grid-template-columns:
            1fr;

        gap: 15px;

    }


    .header-center {

        justify-content:
            flex-start;

    }


    .page {

        grid-template-columns:
            230px
            1fr;

    }


    .right-panel {

        display: none;

    }

}


@media (max-width: 850px) {

    .site-header {

        padding:
            20px;

    }


    .topbar {

        padding:
            15px;

        flex-wrap: wrap;

        gap: 10px;

    }


    .page {

        grid-template-columns:
            1fr;

        padding:
            10px;

    }


    .left-panel {

        min-height: auto;

    }


    .two-column {

        grid-template-columns:
            1fr;

    }


    .radio-grid {

        grid-template-columns:
            1fr;

    }


    .radio-option {

        border-right:
            none;

        border-bottom:
            1px solid #222;

    }


    .radio-option:last-child {

        border-bottom:
            none;

    }


    .form-container {

        padding:
            15px;

    }

}


@media (max-width: 520px) {

    .brand h1 {

        font-size: 18px;

    }


    .brand h2 {

        font-size: 14px;

    }


    .logo {

        width: 52px;

        height: 52px;

    }


    .form-header {

        padding-left: 0;

        padding-right: 0;

    }


    .page-title {

        font-size: 20px;

    }


    .classified {

        display: none;

    }


    footer {

        flex-direction: column;

        gap: 10px;

    }


    .top-actions {

        width: 100%;

        justify-content: space-between;

    }
    .corrupted-input {

    color: #ff3037 !important;

    border-color:
        #8d2026 !important;

    box-shadow:
        0 0 25px
        rgba(210,31,38,.35) !important;

    animation:
        salaryCorruption .12s steps(2) 4;

}


@keyframes salaryCorruption {

    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-3px);
    }

    50% {
        transform: translateX(3px);
    }

    75% {
        transform: translateX(-2px);
    }

    100% {
        transform: translateX(0);
    }

}


    .salary-input-wrapper {

        width: 100%;

    }
    

}