/* ===================================================
   TMR OTP Popup — phong cách hiện đại, thân thiện
   =================================================== */

.tmr-otp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.tmr-otp-modal {
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px;
    max-width: 420px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.tmr-otp-close {
    position: absolute;
    top: 14px; right: 14px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    width: 32px; height: 32px;
    font-size: 20px;
    color: #888;
    cursor: pointer;
    line-height: 1;
}
.tmr-otp-close:hover { background: #eee; }

.tmr-otp-logo {
    font-size: 40px;
    text-align: center;
    margin-bottom: 8px;
}

.tmr-otp-modal h2 {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin: 0 0 8px;
}

.tmr-otp-sub {
    text-align: center;
    font-size: 13.5px;
    color: #777;
    margin: 0 0 22px;
    line-height: 1.5;
}

.tmr-otp-field { margin-bottom: 14px; }
.tmr-otp-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #444;
    margin-bottom: 6px;
}
.tmr-otp-optional { font-weight: 400; color: #999; font-size: 12px; }

.tmr-otp-field input,
.tmr-otp-field select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 9px;
    font-size: 15px;
    color: #222;
    box-sizing: border-box;
    transition: border-color .2s;
}
.tmr-otp-field input:focus,
.tmr-otp-field select:focus {
    outline: none;
    border-color: #c0392b;
}
.tmr-otp-field select:disabled { background: #f5f5f5; color: #aaa; }

.tmr-otp-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.tmr-otp-code-input {
    text-align: center;
    font-size: 26px !important;
    letter-spacing: 10px;
    font-weight: 700;
    padding: 14px !important;
}

.tmr-otp-error {
    background: #fde8e8;
    color: #c0392b;
    border-radius: 7px;
    padding: 9px 12px;
    font-size: 13px;
    margin-bottom: 14px;
}

.tmr-otp-btn-primary {
    width: 100%;
    padding: 13px;
    background: #c0392b;
    color: #fff;
    border: none;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.tmr-otp-btn-primary:hover { background: #a93226; }
.tmr-otp-btn-primary:disabled { background: #ccc; cursor: not-allowed; }

.tmr-otp-note {
    text-align: center;
    font-size: 11.5px;
    color: #999;
    margin-top: 14px;
    line-height: 1.4;
}

.tmr-otp-resend {
    text-align: center;
    font-size: 13px;
    color: #777;
    margin-top: 14px;
}

.tmr-otp-link {
    color: #c0392b;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
}
.tmr-otp-link:hover { text-decoration: underline; }

#tmr-otp-back-phone {
    display: block;
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
}

.tmr-otp-spinner {
    width: 36px; height: 36px;
    border: 3px solid #f0f0f0;
    border-top-color: #c0392b;
    border-radius: 50%;
    margin: 20px auto;
    animation: tmr-otp-spin 0.8s linear infinite;
}
@keyframes tmr-otp-spin {
    to { transform: rotate(360deg); }
}
#tmr-otp-screen-loading {
    text-align: center;
    color: #777;
    font-size: 14px;
    padding: 20px 0;
}

@media (max-width: 480px) {
    .tmr-otp-modal { padding: 26px 20px; }
    .tmr-otp-field-row { grid-template-columns: 1fr; }
}

/* ===== Xác nhận độ tuổi 18+ — làm nổi bật ===== */
.tmr-age-badge {
    width: 84px;
    height: 84px;
    margin: 4px auto 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(192, 57, 43, 0.45);
    letter-spacing: -1px;
    border: 3px solid #fff;
    outline: 3px solid #c0392b;
    animation: tmr-age-pulse 1.8s ease-in-out infinite;
}

@keyframes tmr-age-pulse {
    0%, 100% { box-shadow: 0 6px 20px rgba(192, 57, 43, 0.45); }
    50%      { box-shadow: 0 6px 28px rgba(192, 57, 43, 0.75); }
}

.tmr-age-confirm-box {
    background: #fff8f6;
    border: 1.5px solid #f3c9c4;
    border-radius: 12px;
    padding: 16px;
    margin: 18px 0 16px;
}

.tmr-age-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.tmr-age-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0; height: 0;
}

.tmr-age-checkbox__mark {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 2px solid #c0392b;
    border-radius: 6px;
    margin-top: 1px;
    position: relative;
    transition: background .15s, border-color .15s;
}

.tmr-age-checkbox input[type="checkbox"]:checked + .tmr-age-checkbox__mark {
    background: #c0392b;
}
.tmr-age-checkbox input[type="checkbox"]:checked + .tmr-age-checkbox__mark::after {
    content: '';
    position: absolute;
    left: 6px; top: 2px;
    width: 6px; height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.tmr-age-checkbox__text {
    font-size: 13.5px;
    color: #444;
    line-height: 1.5;
}

.tmr-age-decline {
    text-align: center;
    font-size: 12.5px;
    color: #999;
    margin-top: 14px;
}
