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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, #ff5cc0 0, #190018 40%, #05010a 100%);
    color: #f6f3ff;
}

/* LOGIN */

.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.login-container {
    max-width: 420px;
    width: 100%;
    padding: 16px;
}

.login-card {
    background: rgba(12, 6, 24, 0.95);
    border-radius: 16px;
    padding: 24px 28px 28px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.08);
}

.logo {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    color: #ff77ea;
}

.subtitle {
    text-align: center;
    color: #bfaee8;
    margin-bottom: 20px;
    font-size: 14px;
}

h2 {
    font-size: 20px;
    margin-bottom: 12px;
}

label {
    font-size: 13px;
    color: #d1c7ff;
    margin-top: 10px;
    display: block;
}

input[type="text"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 9px 10px;
    margin-top: 4px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(15,7,35,0.9);
    color: #f4eeff;
    font-size: 14px;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #ff77ea;
    box-shadow: 0 0 0 1px rgba(255,119,234,0.3);
}

.btn-primary,
.btn-secondary {
    margin-top: 16px;
    border: none;
    width: 100%;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, #ff5cc0, #ff9a5c);
    color: #12061e;
}

.btn-primary:hover {
    filter: brightness(1.05);
}

.btn-secondary {
    background: rgba(255,255,255,0.06);
    color: #f6f3ff;
    border: 1px solid rgba(255,255,255,0.18);
}

.alert {
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 10px;
}

.alert-error {
    background: rgba(255, 91, 91, 0.12);
    border: 1px solid rgba(255, 91, 91, 0.5);
    color: #ffbaba;
}

/* LAYOUT PRINCIPAL */

.app-body {
    height: 100vh;
    overflow: hidden;
}

.app-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr) 320px;
    height: 100vh;
}

.sidebar {
    background: rgba(8, 2, 20, 0.96);
    border-right: 1px solid rgba(255,255,255,0.06);
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-header {
    text-align: center;
}

.user-info {
    background: linear-gradient(135deg, rgba(255,119,234,0.08), rgba(144,101,255,0.08));
    border-radius: 14px;
    padding: 12px 10px;
    font-size: 13px;
}

.user-name {
    font-weight: 600;
}

.user-role {
    color: #ff77ea;
    font-size: 12px;
}

.user-ig {
    font-size: 12px;
    color: #cfc2ff;
}

.nav {
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-title {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 11px;
    color: #7f70b2;
    margin-top: 10px;
    margin-bottom: 4px;
}

.nav-link {
    text-decoration: none;
    color: #e3ddff;
    padding: 6px 10px;
    border-radius: 8px;
    display: block;
    transition: background .15s, transform .05s;
}

.nav-link:hover {
    background: rgba(255,255,255,0.06);
    transform: translateX(1px);
}

.nav-link.danger {
    color: #ffb3b3;
}

.online-box {
    margin-top: auto;
    background: rgba(16, 7, 40, 0.95);
    border-radius: 12px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    max-height: 40vh;
    overflow: auto;
}

.online-box h3 {
    font-size: 13px;
    margin-bottom: 6px;
    color: #d7cfff;
}

.online-list {
    list-style: none;
}

.online-item {
    display: flex;
    align-items: center;
    font-size: 12px;
    padding: 4px 0;
    gap: 6px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    display: inline-block;
    background: #555;
}

.status-dot.online {
    background: #16ff94;
    box-shadow: 0 0 4px #16ff94;
}

.status-dot.offline {
    background: #444;
}

.online-item .name {
    flex: 1;
}

.online-item .role {
    font-size: 11px;
    color: #b5a9ff;
}

.main-content {
    padding: 16px 18px;
    overflow-y: auto;
}

/* Sections */

.section {
    display: none;
}

.section.active {
    display: block;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    margin-top: 10px;
}

.card {
    background: rgba(12, 5, 30, 0.96);
    border-radius: 14px;
    padding: 12px 14px 14px;
    border: 1px solid rgba(255,255,255,0.08);
}

.card.tight {
    margin-bottom: 10px;
}

.card h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.card h4 {
    font-size: 14px;
    margin-bottom: 4px;
}

.mt {
    margin-top: 12px;
}

.text-muted {
    color: #a395d8;
    font-size: 13px;
}

.small {
    font-size: 12px;
}

/* Tabelas */

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin-top: 4px;
}

.table thead {
    background: rgba(255,255,255,0.03);
}

.table th,
.table td {
    padding: 5px 6px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.table th {
    text-align: left;
    color: #cfc2ff;
    font-weight: 500;
}

.status.pending {
    background: rgba(251, 191, 36, 0.12);  /* amarelo suave */
    color: #facc15;
}

.status.approved {
    background: rgba(34, 197, 94, 0.12);   /* verde suave */
    color: #4ade80;
}

.status.rejected {
    background: rgba(248, 113, 113, 0.12); /* vermelho suave */
    color: #fca5a5;
}

.farm-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.farm-item {
    background: rgba(18, 8, 40, 0.9);
    border-radius: 10px;
    padding: 8px;
    border: 1px solid rgba(255,255,255,0.06);
}

.farm-img-placeholder {
    width: 100%;
    height: 60px;
    border-radius: 9px;
    background: radial-gradient(circle at top, rgba(255,119,234,0.4), rgba(0,0,0,0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    overflow: hidden;
}

.farm-img-placeholder img {
    max-width: 100%;
    max-height: 100%;
}

/* Right panel */

.right-panel {
    background: rgba(10, 2, 30, 0.98);
    border-left: 1px solid rgba(255,255,255,0.06);
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.right-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
}

.right-tab {
    flex: 1;
    border-radius: 999px;
    padding: 5px 8px;
    border: none;
    font-size: 13px;
    cursor: pointer;
    background: rgba(255,255,255,0.05);
    color: #f3eaff;
}

.right-tab.active {
    background: linear-gradient(135deg, #ff5cc0, #ff9a5c);
    color: #12061e;
    font-weight: 600;
}

.right-content {
    display: none;
    flex: 1;
    overflow-y: auto;
}

.right-content.active {
    display: block;
}

/* Anúncios */

.ann-list {
    max-height: 45vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ann-item {
    background: rgba(18, 8, 40, 0.9);
    border-radius: 10px;
    padding: 8px 9px;
    border: 1px solid rgba(255,255,255,0.05);
    font-size: 12px;
}

.ann-title {
    font-weight: 600;
    color: #ffd0ff;
}

.ann-meta {
    font-size: 11px;
    color: #a695ff;
    margin-bottom: 4px;
}

.ann-text {
    white-space: pre-wrap;
}

/* Chat */

.chat-list {
    max-height: 40vh;
    overflow-y: auto;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 6px;
}

.chat-item {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.chat-item .author {
    font-weight: 600;
    color: #ff9af0;
}

.chat-item .time {
    margin-left: auto;
    opacity: 0.7;
    font-size: 11px;
}

.chat-form {
    display: flex;
    gap: 4px;
    margin-top: 4px;
}

.chat-form input {
    flex: 1;
}

.btn-icon {
    border-radius: 999px;
    border: none;
    padding: 0 10px;
    background: linear-gradient(135deg, #ff5cc0, #ff9a5c);
    color: #12061e;
    cursor: pointer;
    font-weight: 600;
}

/* Mensagens diretas */

.dm-list {
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
    font-size: 12px;
}

.dm-item {
    border-radius: 10px;
    padding: 6px 8px;
    background: rgba(18, 8, 40, 0.95);
}

.dm-item.mine {
    background: rgba(255,119,234,0.10);
    border: 1px solid rgba(255,119,234,0.5);
}

.dm-item.theirs {
    border: 1px solid rgba(255,255,255,0.04);
}

.dm-header {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #cfc2ff;
    margin-bottom: 2px;
}

.dm-text {
    white-space: pre-wrap;
}

/* Ranking */

.ranking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.rank-list {
    list-style: none;
    font-size: 13px;
    margin-top: 4px;
}

.rank-list li {
    padding: 3px 0;
}

/* Botões e mensagens pequenas */

.full {
    width: 100%;
}

.btn-mini {
    border-radius: 999px;
    border: none;
    padding: 3px 8px;
    font-size: 11px;
    cursor: pointer;
    margin: 1px;
}

.btn-mini.approve {
    background: rgba(68, 255, 185, 0.1);
    color: #8dffd0;
}

.btn-mini.reject {
    background: rgba(255, 118, 118, 0.1);
    color: #ffb3b3;
}

.small-msg {
    margin-top: 6px;
    font-size: 12px;
}

.small-msg.success {
    color: #7bffcc;
}

.small-msg.error {
    color: #ff9b9b;
}

/* Modal */

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.modal {
    width: 360px;
    max-width: 90vw;
    background: rgba(12, 5, 30, 0.98);
    border-radius: 16px;
    padding: 18px 18px 20px;
    border: 1px solid rgba(255,255,255,0.12);
}

/* Responsivo */

@media (max-width: 1024px) {
    .app-layout {
        grid-template-columns: 230px minmax(0,1fr);
    }
    .right-panel {
        display: none;
    }
}

@media (max-width: 768px) {
    .app-layout {
        grid-template-columns: 1fr;
    }
    .sidebar {
        display: none;
    }
    .main-content {
        padding: 10px;
    }
}

.hidden {
    display: none !important;
}

.profile-modal {
    max-width: 700px;
}

.modal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.modal-sep {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin: 8px 0;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    font-size: 13px;
}

.tag-pill {
    display: inline-block;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 2px 8px;
    font-size: 11px;
    margin: 2px 2px 0 0;
}

.crew-pill {
    border-color: #ff9af0;
    color: #ff9af0;
}

.login-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.login-column {
    flex: 1 1 260px;
}

.alert {
    padding: 8px 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 13px;
}

.alert-error {
    background: rgba(255, 80, 80, 0.08);
    border: 1px solid rgba(255, 80, 80, 0.6);
    color: #ffc0c0;
}

.alert-success {
    background: rgba(80, 255, 150, 0.08);
    border: 1px solid rgba(80, 255, 150, 0.7);
    color: #c4ffdf;
}


.role-badge {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

/* 1 Don, 2 Underboss, 3 Conselheiro, 4 Caporegime, 5 Membro pleno, 6 Associado */
.role-1 {
    background: #fbbf24;
    color: #1f2937;
}
.role-2 {
    background: #c4b5fd;
    color: #111827;
}
.role-3 {
    background: #60a5fa;
    color: #0b1120;
}
.role-4 {
    background: #d005f0;
    color: #230345;
}
.role-5 {
    background: #fc58e1;
    color: #230345;
}
.role-6 {
    background: #fc95eb;
    color: #230345;
}
.role-7 {
    background: #150e1c;
    color: #6c5187;
}

.force-update-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
}
.force-update-box label {
    display: flex;
    align-items: center;
    gap: 4px;
}

.small-msg {
    margin-bottom: 10px;
    font-size: 13px;
}
.small-msg.success {
    color: #bbf7d0;
}
.small-msg.error {
    color: #fecaca;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #4b5563;
    margin-right: 4px;
}
.status-dot.online {
    background: #22c55e;
}

.force-update-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 6px 8px;
    background: rgba(15, 23, 42, 0.7);
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    font-size: 11px;
}

.fu-summary {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #e5e7eb;
}

.fu-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #4b5563; /* cinza */
}
.fu-status-dot.has-fields {
    background: #f97316; /* laranja quando tem algo marcado */
}

.fu-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 190px;
}

.fu-select-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fu-select {
    flex: 1 1 auto;
    background: #020617;
    border: 1px solid rgba(148, 163, 184, 0.7);
    border-radius: 6px;
    padding: 3px 6px;
    font-size: 11px;
    color: #e5e7eb;
}

.fu-select:focus {
    outline: none;
    border-color: #f97316;
}

.fu-actions .fu-save,
.fu-select-row .fu-save {
    white-space: nowrap;
}

.ranking-card {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
}

.ranking-card h3 {
    margin-bottom: 10px;
}

.ranking-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ranking-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    border-radius: 10px;
    margin-bottom: 4px;
    font-size: 14px;
}

/* Destaque rosa para top 3 */
.ranking-list li.rank-1 {
    background: rgba(236, 72, 153, 0.35);
    border: 1px solid rgba(236, 72, 153, 0.8);
}
.ranking-list li.rank-2 {
    background: rgba(244, 114, 182, 0.25);
    border: 1px solid rgba(244, 114, 182, 0.7);
}
.ranking-list li.rank-3 {
    background: rgba(251, 113, 133, 0.2);
    border: 1px solid rgba(251, 113, 133, 0.6);
}

.ranking-pos {
    font-weight: 700;
    margin-right: 6px;
}

/* === Abas tipo pasta (farm_venda.php) === */

.tab-section {
    margin-top: 18px;
}

.tab-strip {
    display: flex;
    gap: 6px;
    padding: 0 8px;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

.tab-button {
    border: 1px solid rgba(248, 113, 181, 0.6);
    border-bottom: none;
    padding: 6px 14px;
    border-radius: 12px 12px 0 0;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    background: rgba(15, 23, 42, 0.85);
    color: #f9a8d4;
    transition: background 0.15s, color 0.15s, transform 0.1s;
}

.tab-button:hover {
    background: rgba(24, 35, 64, 0.95);
    transform: translateY(-1px);
}

.tab-button.active {
    background: radial-gradient(circle at top, rgba(236,72,153,0.3), rgba(15,23,42,0.95));
    color: #fff;
    border-color: rgba(251, 113, 133, 0.9);
}

/* card colado na aba */
.tab-card {
    margin-top: 0;
    border-radius: 0 16px 16px 16px;
    position: relative;
    z-index: 1;
    border-top-left-radius: 0;
}

/* garante que a borda do card grude nas abas */
.tab-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(248, 113, 181, 0.6);
    opacity: 0.6;
}

/* Layout lado a lado para Farme / Venda */
.farm-venda-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 10px;
}

.farm-venda-grid .tab-section {
    flex: 1;
}

/* Em telas maiores, coloca lado a lado */
@media (min-width: 980px) {
    .farm-venda-grid {
        flex-direction: row;
        align-items: flex-start;
    }
}

/* === Layout do Ranking === */
.ranking-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 12px;
}

.ranking-grid .card {
    flex: 1;
}

@media (min-width: 960px) {
    .ranking-grid {
        flex-direction: row;
        align-items: flex-start;
    }
}

/* Header do card com título + botão */
.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

/* Botão "Ver completo" */
.btn-ghost {
    background: transparent;
    border: 1px solid rgba(248, 113, 181, 0.5);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
    color: #f9a8d4;
    transition: background 0.15s, transform 0.1s, border-color 0.15s;
}

.btn-ghost.small {
    font-size: 11px;
    padding: 3px 8px;
}

.btn-ghost:hover {
    background: rgba(248, 113, 181, 0.08);
    border-color: rgba(249, 168, 212, 0.9);
    transform: translateY(-1px);
}

/* Lista top 10 */
.ranking-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Container da tabela expandida */
.ranking-full {
    margin-top: 10px;
    border-top: 1px solid rgba(148, 163, 184, 0.4);
    padding-top: 8px;
    max-height: 260px;
    overflow: auto;
}

/* (caso não tenha ainda) */
.ranking-pos {
    font-weight: 700;
    margin-right: 4px;
}

/* Top 3 com tons de rosa */
.rank-1 {
    background: linear-gradient(to right, rgba(236, 72, 153, 0.18), transparent);
}
.rank-2 {
    background: linear-gradient(to right, rgba(244, 114, 182, 0.14), transparent);
}
.rank-3 {
    background: linear-gradient(to right, rgba(251, 113, 133, 0.12), transparent);
}

/* Badge de status (pendente / aprovado / recusado) */
.status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1;
}

.status-label {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1.2;
}

.status-label.pending {
    background: rgba(251, 191, 36, 0.12);  /* amarelo suave */
    color: #facc15;
}

.status-label.approved {
    background: rgba(34, 197, 94, 0.12);   /* verde suave */
    color: #4ade80;
}

.status-label.rejected {
    background: rgba(248, 113, 113, 0.12); /* vermelho suave */
    color: #fca5a5;
}

/* Botão amarelo de aprovar conta */
.btn-mini.btn-approve,
.btn-approve {
    background: rgba(250, 204, 21, 0.15);
    border: 1px solid #facc15;
    color: #facc15;
    border-radius: 999px;
    font-size: 11px;
    padding: 3px 8px;
    cursor: pointer;
    transition: background 0.15s, transform 0.08s, border-color 0.15s;
}

.btn-mini.btn-approve:hover,
.btn-approve:hover {
    background: rgba(250, 204, 21, 0.25);
    border-color: #fde047;
    transform: translateY(-1px);
}

/* ==== Página Estoque & Oxy ==== */

.estoque-page .page-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.estoque-page .page-subtitle {
    font-size: 13px;
    color: #9ca3af;
    margin-top: 4px;
}

.estoque-page .page-header-extra {
    display: flex;
    align-items: center;
}

.pill-soft {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(236,72,153,0.7);
    color: #f9a8d4;
    background: radial-gradient(circle at top left, rgba(236,72,153,0.2), rgba(15,23,42,0.95));
}

/* Blocos de seção */

.section-block {
    margin-top: 10px;
}

.section-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 8px;
}

.section-title-row .section-title {
    font-size: 16px;
}

.section-title-row .section-hint {
    font-size: 12px;
    color: #9ca3af;
}

/* Grades mais elegantes */

.card-grid-2 {
    display: grid;
    gap: 14px;
}

.card-grid-3 {
    display: grid;
    gap: 14px;
}

@media (min-width: 900px) {
    .card-grid-2 {
        grid-template-columns: 1fr 1fr;
    }
    .card-grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Cards mais "soft" pra combinar com o resto */

.card.card-soft {
    background: radial-gradient(circle at top left, rgba(236,72,153,0.12), rgba(15,23,42,0.98));
    border: 1px solid rgba(148,163,184,0.4);
    box-shadow: 0 12px 30px rgba(15,23,42,0.7);
}

.card-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

/* Listas de stats */

.stat-list {
    list-style: none;
    padding: 0;
    margin: 6px 0;
}

.stat-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    font-size: 13px;
    padding: 3px 0;
    border-bottom: 1px dashed rgba(148,163,184,0.25);
}

.stat-list li:last-child {
    border-bottom: none;
}

.stat-list span {
    color: #9ca3af;
}

.stat-list strong {
    font-weight: 600;
    color: #e5e7eb;
}

/* Formulários mais compactos */

.form-vertical-tight label {
    display: block;
    margin-top: 6px;
    margin-bottom: 2px;
    font-size: 12px;
    color: #cbd5f5;
}

.form-vertical-tight input,
.form-vertical-tight select,
.form-vertical-tight textarea {
    width: 100%;
    margin-bottom: 4px;
}

.hint-inline {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 400;
}

/* Tabela de retiradas */

.table-wrapper {
    max-height: 260px;
    overflow: auto;
}

#oxyWithdrawTable td:last-child {
    white-space: nowrap;
}

#oxyWithdrawTable .btn-mini {
    margin-right: 4px;
}

/* === AVISO GLOBAL (banner topo) === */
.site-notice-banner {
    display: none; /* só mostra quando tiver texto */
    margin-bottom: 12px;
    border-radius: 999px;
    padding: 6px 14px;
    background: linear-gradient(90deg, #ff66c4, #ff9ad5);
    box-shadow: 0 10px 28px rgba(0,0,0,0.5);
    color: #1c0b1a;
    font-size: 0.85rem;
}

.site-notice-banner.visible {
    display: flex;
}

.site-notice-inner {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px;
}

.site-notice-label {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(0,0,0,0.1);
}

.site-notice-carousel {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

.site-notice-carousel span {
    display: inline-block;
    padding-left: 100%;
    animation: site-notice-marquee 50s linear infinite;
}

/* animação de "carrossel" / marquee */
@keyframes site-notice-marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* === AVISO GLOBAL (dialog Vanilla) === */
.site-notice-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 0, 15, 0.78);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.site-notice-overlay.visible {
    display: flex;
}

.site-notice-dialog {
    background: #1a1024;
    border-radius: 20px;
    padding: 22px 22px 18px;
    max-width: 460px;
    width: 90%;
    box-shadow: 0 18px 45px rgba(0,0,0,0.75);
    border: 1px solid rgba(255, 153, 204, 0.55);
}

.site-notice-dialog h3 {
    margin: 0 0 10px;
    font-size: 1.1rem;
    color: #ffe6ff;
}

.site-notice-dialog p {
    margin: 0 0 16px;
    line-height: 1.5;
    color: #f8e6ff;
    max-height: 220px;
    overflow-y: auto;
}

.site-notice-dialog button.btn-primary {
    width: 100%;
}

.radio-subtitle {
    margin-top: 4px;
    font-size: 0.8rem;
    color: #ffb3ec;
}

.notice-preview {
    background: rgba(10, 0, 20, 0.7);
    border-radius: 18px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.notice-radio {
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffd6ff;
    margin: 4px 0 6px;
}

.notice-divider {
    border: 0;
    border-top: 1px dashed rgba(255, 255, 255, 0.25);
    margin: 10px 0 12px;
}

.notice-message-box {
    padding: 14px 16px;
    border-radius: 16px;
    background: linear-gradient(135deg,
        rgba(255, 105, 180, 0.18),
        rgba(147, 51, 234, 0.35)
    );
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fbe9ff;
    font-size: 0.95rem;
    line-height: 1.6;
    box-shadow: 0 0 22px rgba(255, 105, 180, 0.26);
    max-height: 260px;
    overflow-y: auto;
}

.notice-message-box strong {
    color: #ffe6ff;
}

.notice-message-box em {
    color: #ffd6ff;
    font-style: italic;
}

.modal.notice-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    display: none;
    z-index: 9999;
}

/* sem flex */
.modal.notice-modal.open {
    display: block !important;
    width: 100%;
}

.modal.notice-modal .modal-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #120016;
    border-radius: 20px;
    padding: 20px 22px;
    width: min(420px, 90vw);
    box-shadow: 0 0 30px rgba(255, 105, 180, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Texto do aviso */
.notice-modal-text {
    margin: 10px 0 16px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #fbe9ff;
    white-space: pre-line;
    max-height: 280px;
    overflow-y: auto;
}

.modal.notice-modal .modal-title {
    margin: 0;
    font-size: 1.1rem;
    color: #ffe6ff;
}


.modal-title {
    margin: 0;
    font-size: 1.1rem;
    color: #ffe6ff;
}

/* Barra de aviso no topo (carrossel) */
.top-notice-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 14px;
    margin-bottom: 16px;
    height: 50px;
    background: linear-gradient(90deg, #ff6ac1, #ff9a6a);
    border-radius: 14px;
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.5);

    overflow: hidden;
}

/* "AVISO" pill */
.top-notice-label {
    flex-shrink: 0;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #1a001d;
    background: rgba(255, 255, 255, 0.95);
    padding: 4px 10px;
    border-radius: 999px;
}

/* Área que corta o texto */
.top-notice-marquee {
    flex: 1;
    overflow: hidden;
}

/* Trilha animada */
.top-notice-track {
    display: inline-flex;
    white-space: nowrap;
    animation: notice-marquee 40s linear infinite;
}

/* Cada item repetido na trilha */
.top-notice-item {
    padding-right: 48px;
    font-size: 1rem;
    color: #0e041a;
    font-weight: 700;
}

/* Animação de "correndo" da direita pra esquerda */
@keyframes notice-marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* painel por ciclos */

/* Tabela de ciclos */
.cycle-header-card {
    margin-bottom: 16px;
}

.cycle-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cycle-week-label {
    font-weight: 600;
    font-size: 0.95rem;
}

.cycle-header-right {
    display: flex;
    gap: 8px;
}

/* Legenda */
.legend-box {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    margin-right: 4px;
    vertical-align: middle;
}
.legend-ok {
    background: rgba(0, 200, 120, 0.9);
}
.legend-bad {
    background: rgba(220, 60, 60, 0.9);
}

/* Tabela de membros do ciclo */
.cycle-table tbody tr.cycle-row-hit {
    background: rgba(0, 255, 150, 0.07);
}
.cycle-table tbody tr.cycle-row-hit td {
    border-color: rgba(0, 200, 120, 0.25);
}

.cycle-table tbody tr.cycle-row-late {
    background: rgba(255, 80, 80, 0.08);
}
.cycle-table tbody tr.cycle-row-late td {
    border-color: rgba(255, 80, 80, 0.3);
}

/* Form de metas */
.cycle-goals-form .form-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.cycle-goals-form .form-row > div {
    flex: 1 1 150px;
}

.cycle-weekly-table td:nth-child(1),
.cycle-weekly-table th:nth-child(1) {
    width: 40px;
    text-align: center;
}

.cycle-weekly-table td:nth-child(3),
.cycle-weekly-table td:nth-child(4),
.cycle-weekly-table td:nth-child(5),
.cycle-weekly-table td:nth-child(6),
.cycle-weekly-table td:nth-child(7),
.cycle-weekly-table td:nth-child(8) {
    text-align: right;
    white-space: nowrap;
}

.user-main {
    font-weight: 600;
}

.user-sub {
    color: #aaa;
}

/* já deve existir algo assim, mas se não tiver: */
.row-hit {
    background: rgba(0, 200, 100, 0.08);
}

.row-late {
    background: rgba(255, 60, 60, 0.08);
}

