body {
    margin: 0;
    background: #0a0c0f;
    color: #e5e7eb;
    font-family: Consolas, monospace;
}

/* =========================
   TOP BAR
========================= */

.topbar {
    background: #0b0e12;
    border-bottom: 1px solid #1c222b;
    padding: 12px 0;
}

.container {
    width: 1100px;
    margin: 0 auto;
}

.flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 13px;
    letter-spacing: 2px;
    color: #9ca3af;
}

.menu a {
    color: #9ca3af;
    margin-left: 15px;
    text-decoration: none;
    font-size: 12px;
}

.menu a:hover {
    color: #e5e7eb;
}

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

.layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.section-title {
    font-size: 11px;
    letter-spacing: 3px;
    color: #6b7280;
    margin: 20px 0 10px;
}

/* =========================
   CARDS
========================= */

.card {
    background: #0f1318;
    border: 1px solid #1c222b;
    padding: 14px;
    margin-bottom: 12px;
    border-radius: 6px;
}

/* =========================
   GRID
========================= */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

/* =========================
   ROWS
========================= */

.row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #1c222b;
    font-size: 12px;
    align-items: center;
}

.row:last-child {
    border-bottom: none;
}

/* =========================
   XP BAR
========================= */

.xp-bar {
    margin-top: 8px;
    height: 5px;
    background: #0b0e12;
    border: 1px solid #1c222b;
    border-radius: 4px;
    overflow: hidden;
}

.xp-fill {
    height: 100%;
    background: #cbd5e1;
}

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

.map-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.map-buttons button {
    background: #0b0e12;
    border: 1px solid #1c222b;
    color: #9ca3af;
    padding: 10px;
    font-size: 11px;
    cursor: pointer;
}

.map-buttons button:hover {
    border-color: #e5e7eb;
    color: #e5e7eb;
}

/* =========================
   LOGIN / REGISTER MODAL (FIXED SYMMETRY)
========================= */

.login-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.login-panel {
    width: 360px;
    background: #11151b;
    border: 1px solid #1f2937;
    padding: 28px;
    position: relative;
    box-sizing: border-box;
}

/* CLOSE */
.login-close {
    position: absolute;
    top: 10px;
    right: 12px;
    color: #6b7280;
    text-decoration: none;
    font-size: 18px;
}

.login-close:hover {
    color: #e5e7eb;
}

/* TEXT */
.login-title {
    text-align: center;
    font-size: 14px;
    letter-spacing: 3px;
}

.login-sub {
    text-align: center;
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 20px;
}

/* FORM */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 🔥 FIXED INPUT (THIS WAS THE BUG) */
.login-input {
    width: 100%;
    padding: 12px;
    background: #0b0f14;
    border: 1px solid #1f2937;
    color: #fff;
    text-align: center;
    box-sizing: border-box;
}

/* INPUT FOCUS */
.login-input:focus {
    border-color: #2e8f4a;
    outline: none;
}

/* 🔥 FIXED BUTTON */
.login-btn {
    width: 100%;
    padding: 12px;
    background: #2e8f4a;
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.login-btn:hover {
    background: #36b35a;
}

/* ERROR */
.login-error {
    text-align: center;
    color: #ff4d4d;
    font-size: 12px;
    margin-bottom: 10px;
}

/* =========================
   OPERATOR SYSTEM
========================= */

.op-first {
    animation: opGlow 1.8s infinite ease-in-out;
    box-shadow: 0 0 10px rgba(251,191,36,0.25);
}

@keyframes opGlow {
    0% { box-shadow: 0 0 8px rgba(251,191,36,0.25); }
    50% { box-shadow: 0 0 22px rgba(251,191,36,0.85); }
    100% { box-shadow: 0 0 8px rgba(251,191,36,0.25); }
}

/* =========================
   AVATAR FIX
========================= */

.op-avatar {
    width: 28px;
    height: 28px;
    border: 1px solid #1f2937;
    overflow: hidden;
}

.op-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================
   MENU COLORS
========================= */

.menu a.logout {
    color: #ef4444;
}

.menu a.logout:hover {
    color: #ff6b6b;
}

.menu a.register {
    color: #ef4444;
}

.menu a.register:hover {
    color: #ff6b6b;
}

/* =========================
   CLEAN GLITCH (ONLY ONCE)
========================= */

.glitch-in {
    animation: glitchFadeIn 0.6s ease-out;
}

@keyframes glitchFadeIn {
    0% { opacity: 0; transform: translateY(10px); filter: blur(6px); }
    100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.inspect-overlay {
    position: fixed;
    inset: 0;
    background: #05070a;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.inspect-text {
    font-size: 11px;
    letter-spacing: 4px;
    color: #9ca3af;
    animation: flicker 1s infinite;
}

.inspect-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: #22c55e;
    animation: scan 1.2s linear;
}

@keyframes scan {
    0% { top: 0; opacity: 0; }
    20% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.file-upload {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* 🔴 TARKOV RED SELECT BUTTON */
.file-btn {
    display: inline-block;
    padding: 10px;
    background: #0b0f14;
    border: 1px solid #7f1d1d;
    color: #ef4444;
    font-size: 11px;
    letter-spacing: 2px;
    cursor: pointer;
    text-align: center;
    transition: 0.2s;
    animation: raidPulse 2.5s infinite;
}

/* hover state */
.file-btn:hover {
    border-color: #ef4444;
    color: #ffffff;
    background: #1a0f0f;
}

/* hide native input */
.file-btn input {
    display: none;
}

/* filename text */
.file-name {
    font-size: 10px;
    color: #6b7280;
    letter-spacing: 1px;
}

/* 💀 RAID PULSE EFFECT (OPTIONAL UPGRADE) */
@keyframes raidPulse {
    0% { box-shadow: 0 0 0 rgba(239,68,68,0.0); }
    50% { box-shadow: 0 0 12px rgba(239,68,68,0.45); }
    100% { box-shadow: 0 0 0 rgba(239,68,68,0.0); }
}

.live-intel-active {
    border: 1px solid rgba(34,197,94,0.35);
    box-shadow: 0 0 10px rgba(34,197,94,0.20);
}