/* ═══════════════════════════════════════════════════
   navbar.css — shared navbar + login modal styles
   استفاده در index.php و shop.php
   ═══════════════════════════════════════════════════ */

.sh-nav-actions {
    display: flex; align-items: center; gap: 8px;
    flex-shrink: 0;
    margin-right: auto;
}

.sh-nav-shop-btn {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--sh-primary);
    color: #fff; text-decoration: none;
    padding: 9px 18px; border-radius: 50px;
    font-size: .88rem; font-weight: 700; font-family: inherit;
    white-space: nowrap; transition: all .2s;
    box-shadow: 0 3px 12px rgba(123,58,237,.3);
    border: none; outline: none; cursor: pointer;
}
.sh-nav-shop-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.sh-nav-shop-btn:hover {
    background: var(--sh-primary-d); transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(123,58,237,.38);
}

.sh-wallet-nav-btn {
    background: #fff !important; color: var(--sh-primary) !important;
    border: 1.5px solid rgba(123,58,237,.3) !important;
    box-shadow: 0 2px 8px rgba(123,58,237,.1) !important;
}
.sh-wallet-nav-btn:hover { background: rgba(123,58,237,.06) !important; transform: translateY(-1px); }
.sh-wallet-nav-btn svg { stroke: var(--sh-primary); }
.sh-wallet-nav-bal { font-weight: 700; color: #16a34a; }
.sh-wallet-nav-bal.neg { color: #dc2626; }

.sh-nav-login-btn {
    display: inline-flex; align-items: center; gap: 7px;
    background: transparent; color: var(--sh-primary);
    border: 1.5px solid rgba(123,58,237,.35);
    padding: 8px 16px; border-radius: 50px;
    font-size: .88rem; font-weight: 700; font-family: inherit;
    cursor: pointer; white-space: nowrap; transition: all .2s; outline: none;
}
.sh-nav-login-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.sh-nav-login-btn:hover { background: rgba(123,58,237,.07); border-color: var(--sh-primary); }

/* Login Modal */
.sh-login-modal-bg {
    position: fixed; inset: 0; background: rgba(0,0,0,.55);
    z-index: 2000; display: flex; align-items: center; justify-content: center;
    padding: 20px; opacity: 0; pointer-events: none; transition: opacity .3s;
}
.sh-login-modal-bg.open { opacity: 1; pointer-events: auto; }
.sh-login-modal {
    background: #fff; border-radius: 20px; width: 100%; max-width: 400px;
    padding: 28px 24px 24px; position: relative;
    transform: translateY(20px) scale(.97); transition: transform .3s;
    box-shadow: 0 24px 80px rgba(0,0,0,.2);
}
.sh-login-modal-bg.open .sh-login-modal { transform: none; }
.sh-login-modal-close {
    position: absolute; top: 14px; left: 14px;
    width: 30px; height: 30px; border-radius: 50%;
    background: #f0eef8; border: none; cursor: pointer;
    font-size: .9rem; color: #555;
    display: flex; align-items: center; justify-content: center;
}
.sh-lm-header { text-align: center; margin-bottom: 22px; }
.sh-lm-header img { height: 36px; margin-bottom: 10px; }
.sh-lm-header h3 { font-size: 1.05rem; font-weight: 800; color: #1a1a2e; margin-bottom: 4px; font-family: 'YekanBakh', Tahoma, sans-serif; }
.sh-lm-header p  { font-size: .82rem; color: #888; font-family: 'YekanBakh', Tahoma, sans-serif; }
.sh-lm-step { display: none; }
.sh-lm-step.active { display: block; }
.sh-lm-step-lbl { font-size: .72rem; font-weight: 700; color: #7b3aed; background: rgba(123,58,237,.1); padding: 3px 12px; border-radius: 20px; display: inline-block; margin-bottom: 12px; font-family: 'YekanBakh', Tahoma, sans-serif; }
.sh-lm-desc { font-size: .85rem; color: #888; margin-bottom: 14px; font-family: 'YekanBakh', Tahoma, sans-serif; }
.sh-lm-field { margin-bottom: 14px; }
.sh-lm-field label { display: block; font-size: .82rem; font-weight: 600; color: #555; margin-bottom: 7px; font-family: 'YekanBakh', Tahoma, sans-serif; }
.sh-lm-field input { width: 100%; padding: 13px 16px; border: 2px solid #e0ddf0; border-radius: 10px; font-size: 1rem; font-family: 'YekanBakh', Tahoma, sans-serif; color: #1a1a2e; background: #faf9fc; direction: ltr; text-align: right; letter-spacing: 1.5px; outline: none; transition: all .2s; }
.sh-lm-field input:focus { border-color: #7b3aed; background: #fff; box-shadow: 0 0 0 3px rgba(123,58,237,.1); }
.sh-lm-btn { width: 100%; padding: 13px; background: #7b3aed; color: #fff; border: none; border-radius: 50px; font-size: .95rem; font-weight: 700; font-family: 'YekanBakh', Tahoma, sans-serif; cursor: pointer; transition: all .2s; }
.sh-lm-btn:hover:not(:disabled) { background: #5b21b6; transform: translateY(-1px); }
.sh-lm-btn:disabled { opacity: .5; cursor: not-allowed; }
.sh-lm-otp-wrap { display: flex; gap: 10px; justify-content: center; margin-bottom: 12px; direction: ltr; }
.sh-lm-otp { width: 54px; height: 58px; border: 2px solid #e0ddf0; border-radius: 10px; text-align: center; font-size: 1.5rem; font-weight: 800; color: #7b3aed; background: #faf9fc; font-family: 'YekanBakh', Tahoma, sans-serif; outline: none; transition: all .2s; caret-color: transparent; }
.sh-lm-otp:focus { border-color: #7b3aed; background: #fff; box-shadow: 0 0 0 3px rgba(123,58,237,.1); }
.sh-lm-otp.filled { border-color: #7b3aed; background: #f5f0ff; }
.sh-lm-timer { text-align: center; font-size: .8rem; color: #aaa; margin-bottom: 12px; font-family: 'YekanBakh', Tahoma, sans-serif; }
.sh-lm-err { background: #fef2f2; border: 1px solid #fca5a5; color: #dc2626; border-radius: 8px; padding: 9px 12px; font-size: .82rem; margin-top: 10px; display: none; font-family: 'YekanBakh', Tahoma, sans-serif; }
.sh-lm-err.show { display: block; }
.sh-lm-success { text-align: center; padding: 12px 0; }
.sh-lm-success-icon { font-size: 3rem; margin-bottom: 10px; }
.sh-lm-success h4 { font-size: 1.1rem; font-weight: 800; color: #1a1a2e; margin-bottom: 4px; font-family: 'YekanBakh', Tahoma, sans-serif; }
.sh-lm-success p  { font-size: .85rem; color: #888; margin-bottom: 0; font-family: 'YekanBakh', Tahoma, sans-serif; }

/* Responsive */
@media (max-width: 768px) {
    .sh-nav-actions { gap: 6px; margin-right: 0; }
    .sh-nav-shop-btn span, .sh-nav-login-btn span, .sh-wallet-nav-bal { display: none; }
    .sh-nav-shop-btn, .sh-nav-login-btn, .sh-wallet-nav-btn {
        width: 38px; height: 38px; padding: 0 !important;
        border-radius: 10px !important; justify-content: center; gap: 0;
    }
    .sh-nav-shop-btn svg, .sh-nav-login-btn svg, .sh-wallet-nav-btn svg { width: 18px; height: 18px; }
}
@media (max-width: 480px) {
    .sh-nav-actions { gap: 4px; }
    .sh-lm-otp { width: 46px; height: 50px; font-size: 1.2rem; }
}
