/* CSS TVM CALCULATOR - NEO BRUTALISM STYLE (Tối ưu khoảng cách + Chữ đen tuyền) */
.tvm-neo-wrapper {
    /* Biến CSS Độc Lập */
    --neo-border: 3px solid #111111;
    --neo-shadow: 5px 5px 0px #111111;
    --neo-shadow-sm: 3px 3px 0px #111111;
    
    --bg-main: #f0f4f8;
    --clr-yellow: #fee440;
    --clr-cyan: #00f5d4;
    --clr-red: #ff006e;
    --clr-white: #ffffff;
    --clr-green: #06d6a0;
    --clr-text: #000000; /* Đổi text tổng thể thành đen tuyền */

    max-width: 950px; 
    margin: 20px auto;
    font-family: system-ui, -apple-system, sans-serif;
    color: var(--clr-text);
    background: var(--bg-main);
    padding: 15px 20px;
    border: var(--neo-border);
    border-radius: 16px;
    box-shadow: 6px 6px 0px #111111;
    box-sizing: border-box;
}

.tvm-neo-wrapper * { box-sizing: border-box; }

.tvm-neo-header {
    background: #000000; padding: 15px; color: #fff;
    border: var(--neo-border); border-radius: 12px;
    text-align: center; margin-bottom: 15px; box-shadow: var(--neo-shadow);
}
.tvm-neo-header h2 { margin: 0 0 5px 0; font-size: 1.6rem; font-weight: 900; color: var(--clr-yellow); text-transform: uppercase;}
.tvm-neo-header p { margin: 0; font-weight: 600; font-size: 0.9rem; color: #e0e0e0;}

/* BỐ CỤC 2 CỘT */
.tvm-neo-layout { display: flex; flex-direction: column; gap: 15px; }
.tvm-neo-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 15px;}
@media (min-width: 768px) { .tvm-neo-layout { flex-direction: row; align-items: stretch; } }

/* CARDS */
.tvm-neo-card {
    padding: 15px 20px; 
    border: var(--neo-border); 
    border-radius: 12px; box-shadow: var(--neo-shadow); display: flex; flex-direction: column; height: 100%;
}
.tvm-bg-yellow { background: var(--clr-yellow); }
.tvm-bg-white { background: var(--clr-white); }
.tvm-card-title { margin: 0 0 12px 0; font-size: 1.15rem; font-weight: 900; color: #000000; border-bottom: 2px dashed #000000; padding-bottom: 8px; }

/* INPUTS */
.tvm-group { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
/* FIX: Text label đen tuyền và to ra một xíu cho nét */
.tvm-label { font-weight: 900; font-size: 0.95rem; color: #000000; }
.tvm-flex-between { display: flex; justify-content: space-between; align-items: center; }

.tvm-neo-input {
    width: 100%; padding: 10px; border: var(--neo-border); border-radius: 6px; 
    font-weight: 800; font-size: 0.95rem; 
    color: #000000; /* Text trong ô input đen tuyền */
    background: #fff;
    outline: none; box-shadow: inset 3px 3px 0px rgba(0,0,0,0.05);
    font-family: monospace; transition: 0.1s;
}
.tvm-neo-input:focus { border-color: var(--clr-red); box-shadow: inset 3px 3px 0px rgba(255,0,110,0.1); }
.tvm-neo-input:disabled { background: #e0e0e0; color: #333333; cursor: not-allowed; box-shadow: none; font-style: italic; }

.tvm-money-words { font-size: 0.8rem; font-weight: 800; color: var(--clr-red); font-style: italic; min-height: 16px; margin-top: -2px; }
.tvm-divider { border: 0; border-top: 2px dashed #000000; margin: 8px 0 12px 0; opacity: 0.4; }

/* BUTTONS */
.tvm-actions { margin-top: 10px; display: flex; gap: 12px; }
.tvm-neo-btn {
    padding: 12px; border: var(--neo-border); border-radius: 8px; font-size: 1.05rem; font-weight: 900;
    cursor: pointer; transition: 0.1s; text-transform: uppercase; text-align: center; color: #000000;
}
.tvm-btn-calc {
    flex: 2; background: #000000; color: var(--clr-cyan); box-shadow: 4px 4px 0px var(--clr-cyan);
}
.tvm-btn-calc:active { transform: translate(4px, 4px); box-shadow: 0px 0px 0px var(--clr-cyan); }

.tvm-btn-clear {
    flex: 1; background: var(--clr-red); color: #fff; box-shadow: 4px 4px 0px #000000;
}
.tvm-btn-clear:active { transform: translate(4px, 4px); box-shadow: 0px 0px 0px #000000; }

/* OUTPUT & STATUS */
.tvm-badge { background: #eee; padding: 4px 10px; border: var(--neo-border); border-radius: 6px; font-weight: 900; font-size: 0.8rem; box-shadow: 2px 2px 0px #000000; color: #000000; }
.tvm-badge.active { background: var(--clr-green); color: #000000; animation: tvmPulse 1s infinite; }
.tvm-badge.error { background: var(--clr-red); color: #fff; }
@keyframes tvmPulse { 0% { opacity: 1; } 50% { opacity: 0.6; } 100% { opacity: 1; } }

.tvm-result-box {
    background: var(--clr-cyan); padding: 20px; border: var(--neo-border); 
    border-radius: 12px; box-shadow: inset 4px 4px 0px rgba(0,0,0,0.05); text-align: center;
}
.tvm-result-label { font-weight: 900; font-size: 1.05rem; margin-bottom: 10px; color: #000000; }
.tvm-output { font-family: 'Montserrat', monospace, sans-serif; font-weight: 900; font-size: 2rem; color: #000000; word-break: break-word; line-height: 1.2; text-shadow: 1px 1px 0px #fff; }
.tvm-output .empty-text { font-family: system-ui, sans-serif; font-size: 1.1rem; color: #444444; font-weight: 800; text-shadow: none; }
.tvm-detail { margin-top: 12px; font-weight: 700; color: #000000; font-size: 0.9rem; line-height: 1.4; }

.tvm-factor {
    margin-top: 15px; padding: 12px; background: #fff; border: 2px dashed #000000; border-radius: 8px;
    font-size: 0.9rem; font-weight: 800; color: var(--clr-red); line-height: 1.5;
}
.tvm-factor:empty { display: none; }

.tvm-history-box { margin-top: 15px; padding: 12px; background: #f9f9f9; border: var(--neo-border); border-radius: 8px; box-shadow: var(--neo-shadow-sm); }
.tvm-history-box h4 { margin: 0 0 8px 0; font-size: 0.95rem; font-weight: 900; color: #000000; }
.tvm-history-box ul { list-style: none; padding: 0; margin: 0; max-height: 150px; overflow-y: auto; }
.tvm-history-box li { font-size: 0.85rem; padding: 6px 0; border-bottom: 2px dashed #999; font-weight: 700; color: #000000; }
.tvm-history-box li:last-child { border-bottom: none; }
.highlight { color: var(--clr-red); font-weight: 900; }