/* تیلنویی‌ها — استایل فرم OTP */
.tlnv-form {
    font-family: Tahoma, 'Vazir', 'IRANSans', sans-serif;
    direction: rtl;
    max-width: 360px;
    margin: 0 auto;
    padding: 16px 0;
}

.tlnv-label {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
    font-weight: bold;
}

.tlnv-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.tlnv-input {
    flex: 1;
    height: 42px;
    border: 1.5px solid #ccc;
    border-radius: 6px;
    padding: 0 12px;
    font-size: 16px;
    outline: none;
    transition: border-color .2s;
    font-family: inherit;
    direction: ltr;
}
.tlnv-input:focus { border-color: #0073aa; }

.tlnv-btn {
    height: 42px;
    padding: 0 18px;
    border: none;
    border-radius: 6px;
    background: #0073aa;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background .2s, opacity .2s;
    white-space: nowrap;
    font-family: inherit;
}
.tlnv-btn:hover  { background: #005d8b; }
.tlnv-btn:disabled { opacity: .6; cursor: not-allowed; }

/* پیام خطا/موفقیت */
.tlnv-msg {
    margin-top: 8px;
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 4px;
    display: none;
}
.tlnv-msg-error { background: #fff0f0; color: #c0392b; border: 1px solid #f5c6cb; display: block; }
.tlnv-msg-ok    { background: #f0fff4; color: #27ae60; border: 1px solid #b2dfdb; display: block; }

/* سر صفحه شماره */
.tlnv-phone-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    background: #f5f5f5;
    border-radius: 6px;
    padding: 8px 12px;
}
.tlnv-phone-val  { font-size: 16px; font-weight: bold; direction: ltr; }
.tlnv-change-phone { font-size: 12px; color: #0073aa; text-decoration: none; }
.tlnv-change-phone:hover { text-decoration: underline; }

/* ارسال مجدد */
.tlnv-resend-wrap { margin-top: 12px; text-align: center; }
.tlnv-resend {
    background: none;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 6px 16px;
    font-size: 13px;
    cursor: pointer;
    color: #555;
    font-family: inherit;
    transition: all .2s;
}
.tlnv-resend:not(:disabled):hover { border-color: #0073aa; color: #0073aa; }
.tlnv-resend:disabled { opacity: .5; cursor: not-allowed; }

/* نوار تایمر */
.tlnv-timer-bar {
    height: 3px;
    background: #eee;
    border-radius: 3px;
    margin-top: 10px;
    overflow: hidden;
}
.tlnv-timer-fill {
    height: 100%;
    background: linear-gradient(to left, #0073aa, #00b4d8);
    width: 100%;
    transition: width 1s linear;
}

/* لینک رمز عبور */
.tlnv-pw-link { margin-top: 10px; text-align: center; }
.tlnv-toggle-pw { font-size: 13px; color: #888; text-decoration: none; }
.tlnv-toggle-pw:hover { color: #0073aa; }

/* لرزش */
@keyframes tlnv-shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}
.tlnv-shake { animation: tlnv-shake .5s ease; }

/* ━━ wp-login.php ━━ */
body.login #tilnoviha-login-wrap { margin-bottom: 16px; }
body.login .tlnv-form { max-width: 100%; }

/* ━━ WooCommerce ━━ */
.woocommerce .tlnv-form { max-width: 100%; }

/* ━━ Checkout Notice ━━ */
.tilnoviha-checkout-notice {
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}
.tilnoviha-checkout-notice .tlnv-form {
    max-width: 100%;
}
.tilnoviha-checkout-notice::before {
    content: '🔐 برای ادامه خرید، ابتدا با شماره موبایل وارد شوید';
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #333;
    direction: rtl;
}

/* ━━ WC Login Form ━━ */
.tilnoviha-wc-login { width: 100%; }
