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

.hidden { display: none !important; }

.discount-neo-wrapper {
    font-family: system-ui, -apple-system, sans-serif;
    max-width: 750px; 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;
}
.discount-neo-wrapper * { box-sizing: border-box; }

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

/* BỐ CỤC CARD */
.discount-card { border: 3px solid #000; padding: 20px; border-radius: 12px; box-shadow: 4px 4px 0px #000;}
.bg-yellow { background: #fdfd96; }
.bg-pink { background: #ffb3c6; }
.bg-blue { background: #c6e2ff; }
.bg-green { background: #baffc9; }

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

/* RADIO BUTTONS (TOGGLE CHIẾT KHẤU) */
.radio-neo-group { display: flex; gap: 10px; }
.radio-neo { flex: 1; cursor: pointer; }
.radio-neo input { display: none; }
.neo-content {
    display: block; text-align: center; padding: 12px; font-weight: 800; font-size: 1.05rem; text-transform: none;
    border: 2px solid #000; border-radius: 8px; background: #fff; transition: 0.1s;
}
.radio-neo input:checked + .neo-content { background: #111; color: #fff; box-shadow: 2px 2px 0px #555; transform: translate(2px, 2px); }

/* INPUT STYLES */
.discount-group { margin-bottom: 10px; }

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

.discount-symbol { font-size: 1.4rem; font-weight: 900; background: #111; color: #fff; padding: 13px 20px; border-radius: 8px; border: 2px solid #000; box-shadow: 2px 2px 0px #000;}

/* VĂN BẢN ĐỌC SỐ LIVE */
.discount-live-text { color: #1982c4; font-weight: 800; font-size: 0.9rem; margin-top: 6px; min-height: 18px; font-style: italic;}

/* NÚT BẤM CHÍNH & LỖI */
.discount-btn-calc {
    width: 100%; padding: 18px; font-size: 1.4rem; font-weight: 900; text-transform: uppercase; margin-top: 25px;
    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;
}
.discount-btn-calc:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0px #555; }

.discount-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Ả */
.discount-result-section { margin-top: 30px; border-top: 4px dashed #000; padding-top: 30px; animation: fadeUp 0.4s ease-out forwards;}

.res-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.res-card { text-align: center; border: 3px solid #000; border-radius: 12px; padding: 25px; box-shadow: 6px 6px 0px #000;}
.highlight-card { border-width: 5px; }

.res-title { font-size: 1.2rem; font-weight: 900; text-transform: uppercase; margin: 0 0 10px 0;}
.res-desc { margin: 10px 0 0 0; font-size: 1rem; font-weight: 700; color: #222;}

.res-value { font-family: 'Bungee', cursive; line-height: 1; text-shadow: 2px 2px 0px rgba(0,0,0,0.1); }
.final-price { font-size: 3.5rem; color: #1982c4; }
.saved-price { font-size: 2.5rem; color: #2d6a4f; }

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

@media (max-width: 600px) {
    .final-price { font-size: 2.5rem; }
    .saved-price { font-size: 2rem; }
}