/* ================================================== */
/* LSFD EMS MDT V5.1 RC - BASE DESIGN SYSTEM          */
/* ================================================== */

:root {
    --bg-0: #020713;
    --bg-1: #061124;
    --bg-2: #0a1a33;
    --panel: rgba(8, 23, 44, 0.78);
    --panel-strong: rgba(10, 27, 52, 0.92);
    --panel-soft: rgba(12, 34, 65, 0.72);

    --blue: #178bff;
    --blue-2: #0d5fd8;
    --cyan: #35d7ff;
    --red: #ef3340;
    --red-2: #a20f1b;
    --green: #16d276;
    --orange: #ff9b21;
    --purple: #a855f7;

    --text: #f5f9ff;
    --text-soft: #d8e5f7;
    --muted: #95a9c4;
    --line: rgba(100, 165, 255, 0.22);
    --line-red: rgba(239, 51, 64, 0.36);

    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 26px;

    --shadow-blue: 0 0 28px rgba(23, 139, 255, 0.20);
    --shadow-red: 0 0 28px rgba(239, 51, 64, 0.18);
    --shadow-deep: 0 22px 70px rgba(0, 0, 0, 0.44);

    --font-main: Inter, Segoe UI, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: var(--font-main);
    color: var(--text);
    background: var(--bg-0);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 10% 6%, rgba(239, 51, 64, 0.18), transparent 24%),
        radial-gradient(circle at 88% 14%, rgba(23, 139, 255, 0.22), transparent 30%),
        radial-gradient(circle at 62% 98%, rgba(53, 215, 255, 0.10), transparent 32%),
        linear-gradient(145deg, #020713 0%, #061124 42%, #081a33 72%, #030812 100%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.8), rgba(0,0,0,.25));
}

.hidden {
    display: none !important;
}

button,
input,
textarea,
select {
    font: inherit;
}

label {
    display: block;
    margin: 11px 0 6px;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 800;
}

input,
textarea,
select {
    width: 100%;
    padding: 12px 14px;
    color: var(--text);
    background:
        linear-gradient(180deg, rgba(10, 24, 48, 0.94), rgba(6, 16, 33, 0.96));
    border: 1px solid rgba(120, 178, 255, 0.24);
    border-radius: 15px;
    outline: none;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -10px 22px rgba(0, 0, 0, 0.16),
        0 0 0 1px rgba(0, 0, 0, 0.20);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

input::placeholder,
textarea::placeholder {
    color: rgba(216, 229, 247, 0.55);
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(53, 215, 255, 0.70);
    box-shadow:
        0 0 0 4px rgba(23, 139, 255, 0.12),
        0 0 22px rgba(23, 139, 255, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

textarea {
    min-height: 100px;
    resize: vertical;
}

.muted {
    color: var(--muted);
}

.error {
    margin-top: 10px;
    color: #ff6875;
    font-weight: 800;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.16);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(23,139,255,.65), rgba(239,51,64,.45));
    border-radius: 999px;
    border: 2px solid rgba(2,7,19,.8);
}
