:root {
    --bg: #0d1117;
    --surface: #161b22;
    --surface2: #1c2330;
    --border: #30363d;
    --green: #00e676;
    --green-dim: #00c85320;
    --red: #ff5370;
    --red-dim: #ff537020;
    --yellow: #ffd740;
    --yellow-dim: #ffd74020;
    --blue: #58a6ff;
    --purple: #ab7df8;
    --purple-dim: #ab7df820;
    --orange: #ff9800;
    --orange-dim: #ff980020;
    --text: #e6edf3;
    --text-muted: #8b949e;
    --bubble-out: #1a3a2a;
    --bubble-in: #1c2330;
    --radius: 18px;
    --font: 'Plus Jakarta Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    width: 100%;
    position: fixed;
    overflow: hidden;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    display: flex;
    flex-direction: column;
}

/* ========================================== */
/* SPLASH SCREEN                              */
/* ========================================== */
.splash-screen {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash-logo {
    font-size: 64px;
    animation: bounceSplash 2s infinite;
}

.splash-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    margin-top: 16px;
    letter-spacing: -0.5px;
}

@keyframes bounceSplash {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* ========================================== */
/* HEADER PRINCIPAL                           */
/* ========================================== */
.header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    flex-wrap: wrap;
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00e676, #00bcd4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px #00e67640;
}

.header-info h1 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.3px;
}

.header-info p {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--yellow);
    animation: pulse 2s infinite;
    transition: all 0.3s;
}

.status-dot.online {
    background: var(--green) !important;
    animation: none;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

.header-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.hbtn {
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.hbtn:hover {
    border-color: var(--green);
    color: var(--green);
}

.hbtn.btn-danger {
    color: var(--red);
    border-color: var(--red-dim);
}

.hbtn.btn-danger:hover {
    border-color: var(--red);
    background: var(--red-dim);
}

.hbtn.btn-vigilante {
    color: var(--purple);
    border-color: var(--purple-dim);
}

.hbtn.btn-vigilante:hover {
    border-color: var(--purple);
    background: var(--purple-dim);
}

/* ========================================== */
/* BARRA DE RESUMO (CARDS)                    */
/* ========================================== */
.summary-bar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 10px 20px;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    flex-shrink: 0;
}

.summary-bar::-webkit-scrollbar {
    height: 3px;
}

.summary-bar::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.card {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 16px;
    min-width: 130px;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-1px);
}

.card label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
    margin-bottom: 4px;
}

.card .amount {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.card.income .amount,
.card.reserve_withdrawal .amount {
    color: var(--green);
}

.card.bico .amount {
    color: var(--yellow);
}

.card.expense .amount {
    color: var(--red);
}

.card.credit .amount {
    color: var(--orange);
}

.card.investment .amount {
    color: var(--purple);
}

.card.balance .amount {
    color: var(--blue);
}

.card .sub {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ========================================== */
/* ÁREA PRINCIPAL (PAINEL + CHAT)             */
/* ========================================== */
.main {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.transactions-panel {
    width: 320px;
    border-right: 1px solid var(--border);
    background: var(--surface);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
}

.panel-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.panel-header>div>span {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.tabs-nav-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
    flex: 1;
    justify-content: flex-end;
}

.filter-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar {
    display: none;
}

.ftab {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    transition: all 0.15s;
    flex-shrink: 0;
}

.ftab.active {
    background: var(--green);
    border-color: var(--green);
    color: #000;
}

.scroll-btn {
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.2s;
    flex-shrink: 0;
    user-select: none;
}

.scroll-btn:hover {
    border-color: var(--green);
    color: var(--green);
    background: var(--green-dim);
}

.tx-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.tx-list::-webkit-scrollbar {
    width: 4px;
}

.tx-list::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.date-group-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    margin: 14px 0 6px 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tx-item {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 6px;
    transition: all 0.15s;
    position: relative;
    overflow: hidden;
}

.tx-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    border-radius: 3px 0 0 3px;
}

.tx-item.income::before {
    background: var(--green);
}

.tx-item.bico::before {
    background: var(--yellow);
}

.tx-item.expense::before {
    background: var(--red);
}

.tx-item.credit::before {
    background: var(--orange);
}

.tx-item.investment::before,
.tx-item.reserve_withdrawal::before {
    background: var(--purple);
}

.tx-item:hover {
    border-color: var(--border);
    transform: translateX(2px);
}

.tx-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: 6px;
}

.tx-desc {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.tx-amount {
    font-size: 14px;
    font-weight: 800;
}

.tx-item.income .tx-amount,
.tx-item.reserve_withdrawal .tx-amount {
    color: var(--green);
}

.tx-item.bico .tx-amount {
    color: var(--yellow);
}

.tx-item.expense .tx-amount {
    color: var(--red);
}

.tx-item.credit .tx-amount {
    color: var(--orange);
}

.tx-item.investment .tx-amount {
    color: var(--purple);
}

.tx-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    margin-left: 6px;
}

.tx-cat {
    font-size: 10px;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 2px 7px;
    border-radius: 8px;
}

/* BOTOES DE ACAO DENTRO DA TRANSAÇÃO */
.tx-actions-inline {
    display: flex;
    gap: 8px; /* Mais espaço para evitar toques acidentais */
    align-items: center;
}

.action-btn-mini {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px; /* Bordas mais suaves e modernas */
    width: 32px; /* Tamanho exato forma quadrados perfeitos */
    height: 32px;
    padding: 0;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Dá um efeito 3D sutil */
}

.action-btn-mini:hover {
    background: var(--surface2);
    transform: translateY(-2px); /* Botão "pula" levemente ao interagir */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.action-btn-mini.edit:hover {
    color: var(--blue);
    border-color: var(--blue);
    background: var(--blue-dim); /* Acende em azul suave */
}

.action-btn-mini.del:hover {
    color: var(--red);
    border-color: var(--red);
    background: var(--red-dim); /* Acende em vermelho suave */
}

.action-btn-mini.del:hover {
    color: var(--red);
    border-color: var(--red);
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-state .icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.empty-state p {
    font-size: 13px;
    line-height: 1.6;
}

/* ========================================== */
/* CHAT E MENSAGENS                           */
/* ========================================== */
.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

.chat-area::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 25% 25%, #00e67606 0%, transparent 50%), radial-gradient(circle at 75% 75%, #ab7df806 0%, transparent 50%);
    pointer-events: none;
}

.messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 1;
}

.messages::-webkit-scrollbar {
    width: 4px;
}

.messages::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.date-divider {
    text-align: center;
    margin: 8px 0;
}

.date-divider span {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--surface2);
    border: 1px solid var(--border);
    padding: 3px 12px;
    border-radius: 12px;
}

.msg {
    max-width: 72%;
    animation: fadeUp 0.25s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.msg.out {
    align-self: flex-end;
}

.msg.in {
    align-self: flex-start;
}

.bubble {
    padding: 10px 14px;
    border-radius: var(--radius);
    line-height: 1.5;
    font-size: 14px;
    position: relative;
    word-break: break-word;
}

.msg.out .bubble {
    background: var(--bubble-out);
    border: 1px solid #00e67630;
    border-bottom-right-radius: 4px;
    color: var(--text);
}

.msg.in .bubble {
    background: var(--bubble-in);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}

.bubble-time {
    font-size: 10px;
    color: var(--text-muted);
    text-align: right;
    margin-top: 3px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.msg.in .bubble-time {
    justify-content: flex-start;
}

.tx-confirm {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    margin-top: 8px;
    min-width: 220px;
}

.tx-confirm .tc-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.tc-badge {
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
}

.tc-badge.income {
    background: var(--green-dim);
    color: var(--green);
}

.tc-badge.bico {
    background: var(--yellow-dim);
    color: var(--yellow);
}

.tc-badge.expense {
    background: var(--red-dim);
    color: var(--red);
}

.tc-badge.credit {
    background: var(--orange-dim);
    color: var(--orange);
}

.tc-badge.investment,
.tc-badge.reserve_withdrawal {
    background: var(--purple-dim);
    color: var(--purple);
}

.tc-amount {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.income .tc-amount,
.reserve_withdrawal .tc-amount {
    color: var(--green);
}

.bico .tc-amount {
    color: var(--yellow);
}

.expense .tc-amount {
    color: var(--red);
}

.credit .tc-amount {
    color: var(--orange);
}

.investment .tc-amount {
    color: var(--purple);
}

.tc-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    padding: 3px 0;
    border-bottom: 1px solid var(--border);
}

.tc-row:last-child {
    border-bottom: none;
}

.tc-row span:first-child {
    color: var(--text-muted);
}

.tc-row span:last-child {
    font-weight: 600;
}

.typing {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 12px 14px;
    background: var(--bubble-in);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    border-bottom-left-radius: 4px;
    width: fit-content;
}

.typing span {
    width: 7px;
    height: 7px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: bounce 0.8s infinite;
}

.typing span:nth-child(2) {
    animation-delay: 0.15s;
}

.typing span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes bounce {
    0%,
    100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

.input-bar {
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-shrink: 0;
    z-index: 10;
}

.input-wrap {
    flex: 1;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    transition: border-color 0.2s;
}

.input-wrap:focus-within {
    border-color: var(--green);
}

#userInput {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 14px;
    font-family: var(--font);
    resize: none;
    max-height: 100px;
    line-height: 1.5;
}

#userInput::placeholder {
    color: var(--text-muted);
}

.send-btn {
    width: 44px;
    height: 44px;
    background: var(--green);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s;
    flex-shrink: 0;
    color: #000;
}

.send-btn:hover {
    background: #00ff88;
    transform: scale(1.05);
}

.send-btn:active {
    transform: scale(0.95);
}

.send-btn:disabled {
    background: var(--border);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}

/* ========================================== */
/* MODAIS GERAIS (COM Z-INDEX BLINDADO)       */
/* ========================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: #000000cc;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.modal-overlay.open {
    display: flex;
}

.modal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    width: 90%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal h2 {
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

#monthFilter {
    background: var(--surface2);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 8px;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 700;
    outline: none;
    cursor: pointer;
    transition: 0.2s;
}

#monthFilter:hover {
    border-color: var(--green);
}

.chart-wrap {
    margin-top: 16px;
}

.chart-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
}

.bar-chart {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bar-label {
    font-size: 12px;
    width: 100px;
    color: var(--text-muted);
    text-align: right;
    flex-shrink: 0;
}

.bar-track {
    flex: 1;
    height: 8px;
    background: var(--surface2);
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.bar-val {
    font-size: 12px;
    font-weight: 700;
    width: 80px;
    flex-shrink: 0;
}

.close-modal {
    margin-top: 20px;
    width: 100%;
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.close-modal:hover {
    border-color: var(--green);
    color: var(--green);
}

.modal .input-wrap {
    border: 1px solid var(--border);
    padding: 12px 16px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    background: var(--surface2);
}

.modal .input-wrap:focus-within {
    border-color: var(--green);
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: none;
    background: #ffffff;
    color: #000000;
    font-family: var(--font);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
}

.google-btn:hover {
    background: #e6e6e6;
    transform: scale(1.02);
}

.btn-primary {
    background: var(--green);
    color: #000;
    border: none;
    font-weight: 800;
    border-color: var(--green);
}

.btn-primary:hover {
    background: #00ff88;
    border-color: #00ff88;
}

/* ========================================== */
/* MENU LATERAL NATIVO (SIDEBAR)              */
/* ========================================== */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Blinda contra toques fantasmas enquanto oculto */
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.sidebar-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* Devolve o toque quando o menu é aberto */
}
.sidebar {
    position: absolute;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: var(--surface);
    border-right: 1px solid var(--border);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
    box-shadow: 4px 0 20px rgba(0,0,0,0.5);
}

.sidebar-overlay.open .sidebar {
    transform: translateX(280px);
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.sidebar-btn {
    background: transparent;
    border: none;
    color: var(--text);
    text-align: left;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: background 0.2s;
    font-family: var(--font);
}

.sidebar-btn span {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.sidebar-btn:hover, .sidebar-btn:active {
    background: var(--surface2);
    color: var(--green);
}

.menu-icon-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px 4px 0;
    margin-right: 4px;
}

/* ========================================== */
/* RESPONSIVIDADE MOBILE E COMPORTAMENTO NATIVO*/
/* ========================================== */

.hide-desktop {
    display: none;
}

@media (max-width: 640px) {
    .hide-mobile {
        display: none !important;
    }
    
    .hide-desktop {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .transactions-panel {
        display: none !important;
    }

    .msg {
        max-width: 88% !important;
    }

    .header {
        background: var(--bg); /* Fundo igual ao chat para parecer nativo */
        border-bottom: none;
        flex-wrap: nowrap !important;
        padding: 16px 20px !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .header-info {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .header-info h1 {
        font-size: 18px;
    }
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 6px;
}

/* ========================================== */
/* UI MODERNA DE CAMPOS E SELEÇÕES            */
/* ========================================== */
.modern-select {
    width: 100%;
    appearance: none;
    background: var(--surface2) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%238b949e" viewBox="0 0 16 16"><path d="M1.5 5.5l6 6 6-6z"/></svg>') no-repeat right 16px center;
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 600;
    padding: 14px 40px 14px 16px;
    border-radius: 12px;
    font-family: var(--font);
    outline: none;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.modern-select:focus {
    border-color: var(--green);
}

.modern-input {
    width: 100%;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 14px 16px;
    border-radius: 12px;
    font-family: var(--font);
    outline: none;
    font-size: 14px;
    transition: border-color 0.2s;
}

.modern-input:focus {
    border-color: var(--green);
}

.cat-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 8px;
    transition: transform 0.1s;
}

.cat-list-item:active {
    transform: scale(0.98);
}