/* ============================================================================
   TESOURARIA UNIVERSAL - ESTÉTICA E POSICIONAMENTO
============================================================================ */
#banco-master-container {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 950px; max-height: 85vh;
    background: #0f0a06 url('https://www.transparenttextures.com/patterns/dark-wood.png');
    border: 4px solid #d4af37; border-radius: 8px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.95), inset 0 0 50px #000;
    color: #e0d8c8; font-family: 'Georgia', serif;
    z-index: 10000; display: none; flex-direction: column; overflow: hidden;
}
.banco-header {
    background: linear-gradient(to bottom, #3a2514, #110a05); padding: 15px;
    border-bottom: 2px solid #ffca28; text-align: center; cursor: grab; user-select: none;
}
.banco-header h2 { margin: 0; color: #ffca28; text-shadow: 0 2px 4px #000; font-size: 26px; text-transform: uppercase; letter-spacing: 2px;}
.banco-content { display: flex; flex: 1; overflow-y: auto; padding: 20px; gap: 20px; }

.banco-col { flex: 1; background: rgba(0,0,0,0.5); padding: 15px; border-radius: 6px; border: 1px inset #555; display: flex; flex-direction: column; gap: 10px;}
.banco-col h3 { margin: 0 0 10px 0; color: #4fc3f7; border-bottom: 1px solid #333; padding-bottom: 5px; font-size: 16px;}

.banco-item { display: flex; justify-content: space-between; align-items: center; background: #111; padding: 8px; border-radius: 4px; border: 1px solid #333;}
.banco-item span { font-weight: bold; font-size: 14px;}
.banco-item input { background: #000; color: #fff; border: 1px solid #555; border-radius: 3px; padding: 5px; text-align: right; width: 80px; font-family: monospace; font-size: 14px;}
.banco-item input:focus { border-color: #ffca28; outline: none;}

/* Cores Específicas */
.c-ouro { color: #ffd700; } .c-prata { color: #e0e0e0; } .c-cobre { color: #cd7f32; } .c-platina { color: #e5e4e2; text-shadow: 0 0 5px #fff;} .c-joia { color: #e1bee7; text-shadow: 0 0 5px #9c27b0;}

/* Calculadora Financeira */
.calc-box { background: #1a1a1a; padding: 10px; border: 1px solid #5a3c22; border-radius: 4px; }
.calc-box label { display: block; font-size: 11px; color: #aaa; margin-bottom: 3px; text-transform: uppercase;}
.calc-box input { width: 100%; box-sizing: border-box; margin-bottom: 8px; background: #000; color: #4caf50; border: 1px solid #333; padding: 8px; border-radius: 3px; font-weight: bold;}
.calc-result { background: #050505; border: 1px dashed #ffca28; padding: 10px; margin-top: 10px; border-radius: 4px;}
.calc-result div { display: flex; justify-content: space-between; margin-bottom: 5px; font-size: 12px;}
.calc-val { color: #ffeb3b; font-weight: bold; font-size: 14px; font-family: monospace;}

/* Gráfico */
.banco-chart-container { width: 100%; height: 200px; margin-top: 15px; background: #000; border: 1px solid #333; border-radius: 6px; padding: 10px; box-sizing: border-box;}

/* ============================================================================
   SISTEMA DE ABAS E CÂMBIO (TESOURARIA)
============================================================================ */
.banco-tabs-container {
    display: flex;
    background: #110a05;
    border-bottom: 2px solid #d4af37;
}
.banco-tab-btn {
    flex: 1;
    background: transparent;
    color: #888;
    border: none;
    padding: 12px;
    font-size: 14px;
    font-family: 'Georgia', serif;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.3s;
}
.banco-tab-btn.active {
    color: #ffca28;
    background: #2a1a0a;
    border-bottom: 3px solid #ffca28;
    text-shadow: 0 0 10px rgba(255, 202, 40, 0.5);
}
.banco-tab-btn:hover { color: #fff; }

.cambio-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1a110a;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #5a3c22;
    margin-top: 15px;
}
.cambio-box {
    flex: 1;
    text-align: center;
    background: #0f0a06;
    padding: 15px;
    border-radius: 6px;
    border: 1px dashed #d4af37;
}
.cambio-box label { display: block; color: #aaa; font-size: 11px; text-transform: uppercase; margin-bottom: 5px; }
.cambio-box select, .cambio-box input {
    width: 100%; box-sizing: border-box; background: #000; color: #fff;
    border: 1px solid #555; padding: 8px; border-radius: 4px; font-size: 14px; margin-bottom: 10px;
}
.cambio-box input:read-only { color: #00e676; font-weight: bold; border-color: #00e676; background: rgba(0,230,118,0.1); }
.cambio-seta {
    font-size: 30px;
    color: #ffca28;
    margin: 0 15px;
    text-shadow: 0 0 10px #ffca28;
}
.btn-efetuar-cambio {
    background: linear-gradient(to bottom, #d4af37, #b8860b);
    color: #000; font-weight: bold; font-family: 'Georgia', serif;
    font-size: 16px; padding: 12px; width: 100%; border: none;
    border-radius: 4px; cursor: pointer; text-transform: uppercase; margin-top: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5); transition: 0.2s;
}
.btn-efetuar-cambio:hover { background: linear-gradient(to bottom, #ffd700, #daa520); transform: scale(1.02); }