.otpg-soft-wrapper {
    /* Biến CSS độc lập */
    --neo-border: 3px solid #111111;
    --neo-shadow: 5px 5px 0px #111111;
    
    --bg-main: #f4f4f5;
    --clr-yellow: #fde74c;
    --clr-cyan: #00f5d4;
    --clr-red: #ff006e;
    --clr-white: #ffffff;
    --clr-green: #06d6a0;
    --clr-dark: #111111;
    --clr-text: #111111;

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

.otpg-soft-wrapper * { box-sizing: border-box; }

.otpg-soft-header {
    background: #111; padding: 20px; color: #fff;
    border: var(--neo-border); border-radius: 12px;
    text-align: center; margin-bottom: 20px; box-shadow: var(--neo-shadow);
}
.otpg-soft-header h2 { margin: 0 0 10px 0; font-size: 1.8rem; font-weight: 900; color: var(--clr-cyan); text-transform: uppercase;}
.otpg-soft-header p { margin: 0; font-weight: 600; font-size: 0.95rem; color: #ccc;}

/* CẢNH BÁO */
.otpg-alert-box {
    display: flex; align-items: center; gap: 15px; background: #e0fbfc; border: 2px dashed #111; 
    border-radius: 10px; padding: 15px; margin-bottom: 20px; box-shadow: 3px 3px 0px #111;
}
.otpg-alert-icon { font-size: 2rem; }
.otpg-alert-content { font-size: 0.9rem; font-weight: 600; color: #111; line-height: 1.5; }
.otpg-alert-content strong { color: var(--clr-green); font-size: 1rem; display: block; margin-bottom: 3px;}

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

/* CARDS */
.otpg-card {
    padding: 20px; border: var(--neo-border); 
    border-radius: 12px; box-shadow: var(--neo-shadow); display: flex; flex-direction: column; height: 100%; transition: 0.3s;
}
.otpg-bg-yellow { background: var(--clr-yellow); }
.otpg-bg-white { background: var(--clr-white); }
.otpg-card-title { margin: 0 0 15px 0; font-size: 1.2rem; font-weight: 900; border-bottom: 2px dashed #111; padding-bottom: 10px; }

/* INPUTS */
.otpg-group { display: flex; flex-direction: column; gap: 8px; }
.otpg-label { font-weight: 900; font-size: 0.95rem; }
.otpg-hint { font-size: 0.85rem; color: #555; font-weight: 700; font-style: italic;}

.otpg-input {
    width: 100%; padding: 15px; border: 3px solid #111; border-radius: 8px;
    font-size: 1.2rem; font-weight: 900; outline: none; box-shadow: inset 3px 3px 0px rgba(0,0,0,0.05); font-family: monospace; text-transform: uppercase; letter-spacing: 2px;
}
.otpg-input:focus { border-color: var(--clr-cyan); box-shadow: 4px 4px 0px #111; transform: translate(-2px, -2px); transition: 0.2s;}

.otpg-divider { border: 0; border-top: 2px dashed #111; margin: 15px 0; opacity: 0.3; }

/* NÚT PHỤ */
.otpg-btn-secondary {
    padding: 12px; background: #fff; border: 2px solid #111; border-radius: 8px;
    font-weight: 900; font-size: 0.95rem; cursor: pointer; box-shadow: 3px 3px 0px #111; transition: 0.1s;
}
.otpg-btn-secondary:active { transform: translate(3px, 3px); box-shadow: 0px 0px 0px #111; }

/* KHUNG HIỂN THỊ OTP */
.otpg-code-container {
    background: #111; padding: 25px 20px; border-radius: 10px; border: 3px solid #111;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    box-shadow: inset 4px 4px 0px rgba(0,0,0,0.3); margin-bottom: 15px; position: relative; overflow: hidden;
}
.otpg-code-display {
    font-size: 4rem; font-weight: 900; font-family: monospace; color: var(--clr-cyan);
    letter-spacing: 8px; text-shadow: 3px 3px 0px rgba(255,255,255,0.1); margin-bottom: 10px; line-height: 1;
}

/* THANH ĐẾM NGƯỢC (PROGRESS BAR) */
.otpg-timer-wrapper {
    width: 100%; height: 8px; background: #333; border-radius: 4px; overflow: hidden; margin-bottom: 10px;
}
.otpg-timer-bar {
    height: 100%; width: 100%; background: var(--clr-green); border-radius: 4px; transition: width 0.1s linear, background-color 0.3s;
}
.otpg-timer-bar.warning { background: var(--clr-yellow); }
.otpg-timer-bar.danger { background: var(--clr-red); }
.otpg-timer-text { font-size: 0.9rem; font-weight: 800; color: #ccc; }

/* NÚT COPY OTP */
.otpg-action-row { display: flex; gap: 10px; margin-top: auto; }
.otpg-btn-main {
    width: 100%; padding: 15px; background: #fff; color: #111;
    border: 3px solid #111; border-radius: 8px; font-size: 1.1rem; font-weight: 900;
    cursor: pointer; box-shadow: 4px 4px 0px #111; transition: 0.1s; text-transform: uppercase;
}
.otpg-btn-main:active:not(:disabled) { transform: translate(4px, 4px); box-shadow: 0px 0px 0px #111; }
.otpg-btn-main:disabled { background: #eee; color: #aaa; cursor: not-allowed; box-shadow: none; border-color: #aaa;}

/* ERROR BOX */
.otpg-error-msg { margin-top: 15px; padding: 12px; background: var(--clr-red); color: #fff; font-weight: 800; font-size: 0.95rem; border: 2px solid #111; border-radius: 8px; text-align: center; animation: otpgShake 0.4s; }
@keyframes otpgShake { 0% { transform: translateX(0); } 25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-5px); } 100% { transform: translateX(0); } }

/* INFO BOX */
.otpg-info-box { background: rgba(255,255,255,0.6); padding: 15px; border: 2px dashed #111; border-radius: 8px; margin-top: 20px;}
.otpg-info-box h4 { margin: 0 0 5px 0; font-weight: 900; color: #111; font-size: 0.95rem;}
.otpg-info-box p { margin: 0; font-size: 0.85rem; font-weight: 600; line-height: 1.5; color: #333; }
.otpg-info-box code { background: #fff; border: 1px solid #111; padding: 2px 5px; border-radius: 4px; font-weight: bold; }