* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

:root {
    --bg-dark: #070707;
    --bg-card: rgba(20, 20, 20, 0.92);
    --bg-inner: #101010;

    --green: #00ffaa;
    --green-dark: #00a86b;
    --red: #b82828;
    --blue: #2575d9;
    --gray: #333;

    --text-main: #f1f1f1;
    --text-muted: #aaa;
    --border-green: rgba(0, 255, 170, 0.25);
    --shadow: 0 0 18px rgba(0, 0, 0, 0.35);
}

/* =========================
   BASE
========================= */

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top, rgba(0, 255, 170, 0.14), transparent 35%),
        linear-gradient(135deg, var(--bg-dark), #121212);
    color: var(--text-main);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 42px 42px;
    pointer-events: none;
    z-index: -1;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at center, transparent, rgba(0, 0, 0, 0.45));
    pointer-events: none;
    z-index: -1;
}

.game {
    min-height: 100vh;
    width: 100%;
    padding: 20px;
    position: relative;
}

/* =========================
   STATUS / HUD
========================= */

.top-status {
    position: absolute;
    top: 20px;
    right: 20px;

    width: 270px;
    display: flex;
    flex-direction: column;
    gap: 10px;

    background: rgba(20, 20, 20, 0.82);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 170, 0.25);
    border-radius: 16px;
    box-shadow: 0 0 22px rgba(0, 255, 170, 0.08);
    padding: 14px;
    z-index: 5;
}

.status-card {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(0, 255, 170, 0.08);
    border-radius: 12px;
    padding: 10px 12px;
}

.status-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 0.9rem;
}

.status-label i {
    color: #fff;
    font-size: 1.8rem;
}

.status-card strong {
    color: var(--green);
    font-size: 1.35rem;
    font-weight: bold;
    text-align: right;
    text-shadow: 0 0 12px rgba(0, 255, 170, 0.3);
}

/* =========================
   POLÍCIA
========================= */

.policia-box {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 16px;

    background: var(--bg-card);
    border: 1px solid var(--border-green);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.policia-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.barra {
    height: 14px;
    background: #292929;
    border-radius: 999px;
    overflow: hidden;
}

.barra-risco {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--green), #ffcc00, #ff3333);
    transition: width 0.3s ease;
}

/* =========================
   TELAS
========================= */

.tela {
    min-height: calc(100vh - 150px);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 90px 70px 35px;
}

.tela.ativa {
    display: flex;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-green);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 24px;
}

.card h2 {
    margin-bottom: 15px;
    color: var(--green);
    text-align: center;
}

.oferta-card {
    width: 100%;
    max-width: 540px;
    animation: aparecer 0.35s ease;
}

.estoque-card {
    width: 100%;
    max-width: 760px;
    animation: aparecer 0.35s ease;
}

@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   OFERTA
========================= */

.oferta {
    background: var(--bg-inner);
    border: 1px solid #242424;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 16px;
}

.oferta p {
    margin-bottom: 10px;
    color: #ddd;
}

.oferta strong {
    color: #fff;
}

.tag {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 0.85rem;
    margin-top: 5px;
}

.tag.baixo {
    background: rgba(0, 255, 170, 0.15);
    color: var(--green);
}

.tag.medio {
    background: rgba(255, 204, 0, 0.15);
    color: #ffcc00;
}

.tag.alto {
    background: rgba(255, 51, 51, 0.15);
    color: #ff5555;
}

/* =========================
   BOTÕES
========================= */

.actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn {
    border: none;
    padding: 12px 15px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    color: #fff;
    transition: 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.15);
}

.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.primary {
    background: var(--green-dark);
}

.danger {
    background: var(--red);
}

.success {
    background: var(--blue);
}

.secondary {
    background: var(--gray);
}

.btn-full {
    width: 100%;
}

.btn-small {
    padding: 9px 12px;
    font-size: 0.85rem;
    white-space: nowrap;
}

.side-menu {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);

    display: flex;
    flex-direction: column;
    gap: 12px;

    z-index: 9;
}

.side-menu-btn {
    width: 165px;
    height: 58px;
    transform: translateX(-122px);

    background: transparent;
    color: #fff;
    border: 2px solid rgba(0, 255, 170, 0.585);
    border-left: none;
    border-radius: 0 16px 16px 0;

    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;

    padding-left: 130px;
    font-weight: bold;
    cursor: pointer;

    box-shadow: 0 0 18px rgba(0, 255, 170, 0.25);
    transition: 0.25s ease;
    overflow: hidden;
}

.side-menu-btn i {
    font-size: 1.25rem;
    min-width: 24px;
    text-align: center;
}

.side-menu-btn span {
    opacity: 0;
    white-space: nowrap;
    transition: 0.2s ease;
}

.side-menu-btn:hover,
.side-menu-btn.open {
    transform: translateX(0);
    padding-left: 18px;
}

.side-menu-btn:hover span,
.side-menu-btn.open span {
    opacity: 1;
}

.side-menu-btn.active {
    background: #00a86b;
    box-shadow: 0 0 18px rgba(37, 117, 217, 0.35);
}

/* =========================
   ESTOQUE
========================= */

.estoque-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.estoque-header h2 {
    color: var(--green);
    margin-bottom: 0;
}

.lista-estoque {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 430px;
    overflow-y: auto;
    padding-right: 5px;
}

.lista-estoque li {
    background: var(--bg-inner);
    border: 1px solid #262626;
    padding: 12px;
    border-radius: 10px;
    color: #ddd;
}

.lista-estoque .vazio {
    color: #777;
    text-align: center;
}

.item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.item-info {
    flex: 1;
    line-height: 1.45;
}

/* =========================
   MODAIS
========================= */

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 20;
}

.modal-content {
    width: 100%;
    max-width: 430px;
    background: #151515;
    border: 1px solid rgba(255, 51, 51, 0.5);
    border-radius: 18px;
    padding: 25px;
    text-align: center;
}

.modal-content h2 {
    color: #ff4444;
    margin-bottom: 10px;
}

.modal-content p {
    color: #ccc;
    margin-bottom: 20px;
}

.negociacao-modal {
    max-width: 520px;
    text-align: left;
    border-color: rgba(0, 255, 170, 0.35);
}

.negociacao-modal h2 {
    color: var(--green);
    text-align: center;
}

.negociacao-box {
    background: #0b0b0b;
    border: 1px solid #262626;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 15px;
}

.negociacao-box p {
    color: #ddd;
    margin-bottom: 10px;
}

.cliente-nome {
    color: var(--green);
    font-weight: bold;
}

.oferta-cliente {
    font-size: 1.8rem;
    color: var(--green);
    font-weight: bold;
    margin: 12px 0;
}

.humor {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: bold;
}

.humor.calmo {
    background: rgba(0, 255, 170, 0.15);
    color: var(--green);
}

.humor.desconfiado {
    background: rgba(255, 204, 0, 0.15);
    color: #ffcc00;
}

.humor.irritado {
    background: rgba(255, 80, 80, 0.15);
    color: #ff5555;
}

.fala-cliente {
    background: #111;
    border-left: 3px solid var(--green);
    border-radius: 8px;
    padding: 10px;
    color: #ccc;
    font-style: italic;
}

.negociacao-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

/* =========================
   TOAST
========================= */

.toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    max-width: 360px;
    background: rgba(10, 10, 10, 0.96);
    border: 1px solid rgba(0, 255, 170, 0.35);
    border-left: 4px solid var(--green);
    border-radius: 12px;
    padding: 14px;
    color: #ddd;
    z-index: 30;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.45);
    animation: toastIn 0.25s ease;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hidden {
    display: none;
}

/* =========================
   RESPONSIVO
========================= */

@media (max-width: 800px) {
    .game {
        padding: 14px;
    }

    .top-status {
        position: static;
        width: 100%;
        max-width: 360px;
        margin: 0 auto 16px auto;
    }

    .tela {
        min-height: calc(100vh - 280px);
        padding: 30px 0;
    }

    .actions {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
    }

    .side-menu {
        top: auto;
        bottom: 22px;
        transform: none;
    }

    .side-menu-btn {
        width: 155px;
        height: 54px;
        transform: translateX(-114px);
        padding-left: 122px;
    }

    .side-menu-btn:hover,
    .side-menu-btn.open {
        transform: translateX(0);
        padding-left: 16px;
    }

    .estoque-header {
        flex-direction: column;
        align-items: stretch;
    }

    .item-top {
        flex-direction: column;
        align-items: stretch;
    }

    .negociacao-actions {
        grid-template-columns: 1fr;
    }

    .negociacao-modal {
        max-height: 90vh;
        overflow-y: auto;
    }

    .toast {
        left: 14px;
        right: 14px;
        bottom: 14px;
        max-width: none;
    }
}