@import url('https://fonts.googleapis.com/css2?family=Bungee&display=swap');

.hidden { display: none !important; }

.dso-neo-wrapper {
    font-family: system-ui, -apple-system, sans-serif;
    max-width: 850px; margin: 30px auto; background: #fff;
    border: 3px solid #000; border-radius: 16px; box-shadow: 10px 10px 0px #000;
    padding: 25px; box-sizing: border-box; color: #000;
}
.dso-neo-wrapper * { box-sizing: border-box; }

.dso-header {
    background: #ffc6ff; padding: 20px; border-radius: 12px;
    border: 3px solid #000; box-shadow: 4px 4px 0px #000; margin-bottom: 25px; text-align: center;
}
.dso-header h2 { margin: 0 0 10px 0; font-size: 1.8rem; font-weight: 900; text-transform: uppercase; color: #111;}
.dso-header p { margin: 0; font-weight: 700; font-size: 1rem; color: #333; }

/* BỐ CỤC 2 CỘT MIX MÀU MỚI */
.dso-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 25px;}
.dso-card { border: 3px solid #000; padding: 20px; border-radius: 12px; box-shadow: 4px 4px 0px #000;}
.card-title { margin: 0 0 20px 0; font-size: 1.25rem; font-weight: 900; text-transform: uppercase; border-bottom: 3px dashed #000; padding-bottom: 10px;}

/* Bảng màu pastel mới */
.bg-lavender { background: #cdb4db; } /* Tím nhạt */
.bg-cyan { background: #9bf6ff; }     /* Xanh dương sáng */

/* MASTER RULE: NHÃN ĐEN TUYỀN ĐẬM */
.dso-neo-wrapper label { display: block; color: #000 !important; font-weight: 900; font-size: 1.05rem; margin-bottom: 8px; text-transform: uppercase;}

/* INPUT STYLES */
.dso-group { margin-bottom: 15px; }
.dso-group:last-child { margin-bottom: 0; }
.dso-input-wrap { position: relative; }

.dso-input {
    width: 100%; padding: 12px 15px; font-size: 1.2rem; font-weight: 900; font-family: 'Courier New', monospace;
    border: 3px dashed #000; border-radius: 8px; outline: none; background: #fff; transition: 0.1s;
}
.dso-input:focus { border-style: solid; border-color: #111; box-shadow: 4px 4px 0px #111; transform: translateY(-2px); }

.dso-suffix {
    position: absolute; right: 15px; top: 50%; transform: translateY(-50%);
    font-weight: 900; font-size: 1rem; color: #555; pointer-events: none;
}

.hint-text { font-weight: 700; font-size: 0.85rem; color: #444; margin-top: 5px; display: block;}
.dso-live-text { color: #d00000; font-weight: 800; font-size: 0.9rem; margin-top: 6px; min-height: 16px; font-style: italic;}

/* NÚT BẤM CHÍNH & LỖI */
.dso-btn-calc {
    width: 100%; padding: 18px; font-size: 1.4rem; font-weight: 900; text-transform: uppercase;
    background: #111; color: #fff; border: 3px solid #000; border-radius: 12px;
    box-shadow: 6px 6px 0px #555; cursor: pointer; transition: 0.1s; letter-spacing: 1px;
}
.dso-btn-calc:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0px #555; }

.dso-error-box {
    margin-top: 20px; background: #ffadad; color: #900000; border: 3px solid #000;
    padding: 15px; border-radius: 8px; font-weight: 900; font-size: 1.1rem;
    box-shadow: 4px 4px 0px #000; text-align: center; animation: shake 0.4s ease-in-out;
}
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* KẾT QUẢ */
.dso-result-section { margin-top: 30px; border-top: 4px dashed #000; padding-top: 30px; animation: fadeUp 0.4s ease-out forwards;}
.res-dso-box { text-align: center; border: 4px solid #000; border-radius: 12px; padding: 25px; box-shadow: 6px 6px 0px #000; margin-bottom: 20px;}
.res-label { font-size: 1.2rem; font-weight: 900; text-transform: uppercase; margin-bottom: 5px;}
.res-value { font-family: 'Bungee', cursive; font-size: 4.5rem; line-height: 1; text-shadow: 3px 3px 0px rgba(0,0,0,0.1); }

.res-message-box { padding: 20px; border: 3px solid #000; border-radius: 12px; box-shadow: 4px 4px 0px #000;}
.res-message-box h4 { margin: 0 0 10px 0; font-size: 1.3rem; font-weight: 900; text-transform: uppercase;}
.res-message-box p { margin: 0; font-size: 1.05rem; font-weight: 700; line-height: 1.5; color: #222;}

.status-good { background-color: #baffc9; }
.status-good .res-value { color: #2d6a4f; }
.status-danger { background-color: #ffadad; }
.status-danger .res-value { color: #d00000; }
.status-neutral { background-color: #fdfd96; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 768px) {
    .dso-grid { grid-template-columns: 1fr; }
}