/* ==============================================
   کانتینر اصلی
   ============================================== */
.up-auth-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    direction: rtl;
    background: #f5f7fa;
}

.auth-modal {
    max-width: 460px;
    width: 100%;
    background: #fff;
    border-radius: 20px;
    padding: 35px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    font-family: Tahoma, Arial, sans-serif;
}

.auth-header {
    text-align: center;
    margin-bottom: 25px;
}
.auth-header h2 {
    color: #1a2b4c;
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: bold;
}
.auth-header p {
    color: #888;
    font-size: 14px;
    margin: 0;
}

/* تب واحد بالای فرم */
.auth-single-tab {
    text-align: center;
    color: #D4AF37;
    font-weight: bold;
    font-size: 15px;
    padding: 12px;
    border-bottom: 3px solid #D4AF37;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}

/* پیام‌ها */
.auth-message {
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: none;
    font-weight: bold;
    text-align: center;
    font-size: 13px;
    line-height: 1.6;
}
.success-msg { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.error-msg { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.warning-msg { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }

/* ==============================================
   فرم‌ها
   ============================================== */
.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: #444;
    font-weight: bold;
}
.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    outline: none;
    transition: all 0.25s;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
    background: #fafbfc;
}
.form-control:focus {
    border-color: #D4AF37;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12);
}
.ltr-input { direction: ltr; text-align: left; }

.password-wrap { position: relative; }
.password-wrap .form-control { padding-left: 45px; }
.toggle-password {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    font-size: 18px;
    padding: 4px;
    line-height: 1;
}
.toggle-password:hover { color: #D4AF37; }

.remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 20px;
    color: #555;
    cursor: pointer;
}
.remember-label input { margin: 0; cursor: pointer; }

/* دکمه اصلی */
.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #D4AF37, #b8972f);
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.4);
}
.btn-primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* جداکننده */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0 20px;
    color: #bbb;
    font-size: 13px;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e8e8e8;
}
.auth-divider span {
    padding: 0 15px;
    font-weight: bold;
}

/* دکمه‌های جایگزین */
.auth-alt-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.btn-google,
.btn-otp {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-google {
    background: #fff;
    color: #333;
    border: 1.5px solid #e0e0e0;
}
.btn-google:hover {
    background: #f9f9f9;
    border-color: #ccc;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
}
.btn-otp {
    background: #1a2b4c;
    color: #fff;
    border: none;
}
.btn-otp:hover {
    background: #0f1a2e;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(26, 43, 76, 0.3);
}

/* ==============================================
   فرم OTP
   ============================================== */
.otp-mobile-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f0f2f5;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 15px;
    color: #888;
    font-size: 15px;
    font-weight: bold;
}
.otp-mobile-display span {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    color: #666;
}
.otp-edit-mobile {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #D4AF37;
    padding: 4px 8px;
    border-radius: 6px;
    transition: 0.2s;
}
.otp-edit-mobile:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
}

.otp-timer {
    text-align: center;
    font-size: 13px;
    color: #666;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 18px;
}
.otp-timer strong {
    color: #d9534f;
    font-size: 15px;
    margin: 0 3px;
    font-family: 'Courier New', monospace;
}

.otp-code-input {
    text-align: center !important;
    letter-spacing: 12px;
    font-size: 26px !important;
    font-weight: bold;
    font-family: 'Courier New', monospace !important;
    direction: ltr;
    padding: 18px 16px !important;
}
.otp-code-input::placeholder {
    letter-spacing: 12px;
    color: #ccc;
}

.otp-resend-section {
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
    color: #888;
}
.btn-link {
    background: none;
    border: none;
    color: #D4AF37;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    text-decoration: underline;
    font-family: inherit;
    padding: 4px;
}
.btn-link:hover { color: #b8972f; }

.btn-back {
    display: block;
    width: 100%;
    background: none;
    border: none;
    color: #1a2b4c;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    padding: 12px;
    margin-top: 20px;
    text-align: center;
    font-family: inherit;
    border-top: 1px solid #f0f0f0;
    transition: 0.2s;
}
.btn-back:hover { color: #D4AF37; }

/* ==============================================
   اعلان‌ها
   ============================================== */
.up-notice {
    padding: 15px 20px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: center;
    font-size: 14px;
}
.up-notice.success { background: #d4edda; color: #155724; }
.up-notice.error { background: #f8d7da; color: #721c24; }
.up-notice.info { background: #d1ecf1; color: #0c5460; }

/* ==============================================
   داشبورد کاربر (بدون تغییر)
   ============================================== */
.dashboard-full-wrapper {
    display: flex;
    direction: rtl;
    background: #f5f7fa;
    min-height: 70vh;
    padding: 20px;
    gap: 20px;
}
.dashboard-sidebar {
    width: 270px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 90px;
}
.user-info-top {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}
.user-info-top strong { display: block; font-size: 16px; color: #1a2b4c; margin-bottom: 5px; }
.user-info-top span { color: #888; font-size: 13px; font-family: 'Courier New', monospace; }

.dashboard-menu { list-style: none; padding: 0; margin: 0; }
.dashboard-menu .menu-item {
    display: flex; align-items: center; padding: 12px 15px;
    color: #333; text-decoration: none; border-radius: 8px;
    margin-bottom: 5px; transition: all 0.3s ease; font-size: 14px;
    font-family: Tahoma, Arial, sans-serif;
}
.dashboard-menu .menu-item:hover { background: #f8f9fa; color: #D4AF37; }
.dashboard-menu .menu-item.active {
    background: #1a2b4c; color: #fff;
    box-shadow: 0 4px 10px rgba(26, 43, 76, 0.2);
}
.dashboard-menu .submenu { list-style: none; padding-right: 15px; margin: 0; }
.dashboard-menu .submenu-item {
    display: block; padding: 10px 15px; color: #666;
    text-decoration: none; border-radius: 6px;
    margin-bottom: 5px; font-size: 13px;
}
.dashboard-menu .submenu-item:hover { color: #D4AF37; }
.dashboard-menu .submenu-item.active { color: #D4AF37; font-weight: bold; }
.dashboard-menu .logout-link { color: #d9534f !important; }

.dashboard-content {
    flex: 1; background: #fff; border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 30px; min-height: 500px;
}
.dashboard-content-inner { max-width: 900px; margin: 0 auto; }
.status-card, .account-info {
    background: #f8f9fa; border-radius: 10px;
    padding: 25px; margin-bottom: 20px;
}
.status-card h3, .dashboard-content h3 {
    color: #1a2b4c; margin-top: 0; margin-bottom: 20px; font-size: 18px;
}
.empty-state {
    text-align: center; color: #888; padding: 30px 20px; font-size: 15px;
}
.dashboard-banner {
    background: linear-gradient(135deg, #e0e0e0, #f9f9f9);
    height: 180px; border-radius: 10px; margin-top: 20px;
    display: flex; align-items: center; justify-content: center;
    color: #888; font-size: 14px;
}
.account-info p {
    margin: 10px 0; padding: 10px 15px; background: #fff;
    border-radius: 6px; border-right: 3px solid #D4AF37;
}
.account-info strong { color: #1a2b4c; margin-left: 8px; }
.support-phone {
    display: inline-block; font-size: 20px; text-decoration: none;
    color: #1a2b4c; font-weight: bold; padding: 12px 24px;
    background: #f8f9fa; border-radius: 10px; margin-top: 10px;
}
.support-phone:hover { color: #D4AF37; }

@media (max-width: 900px) {
    .dashboard-full-wrapper { flex-direction: column; padding: 15px; }
    .dashboard-sidebar { width: 100%; position: static; }
    .dashboard-content { padding: 20px; }
    .dashboard-menu { display: flex; flex-wrap: wrap; gap: 8px; }
    .dashboard-menu li { flex: 1 1 45%; }
    .dashboard-menu .submenu { display: none !important; width: 100%; }
    .dashboard-menu .submenu.open { display: block !important; }
}

/* موبایل */
@media (max-width: 500px) {
    .auth-modal { padding: 25px 20px; border-radius: 15px; }
    .auth-header h2 { font-size: 22px; }
    .otp-code-input { font-size: 22px !important; letter-spacing: 10px; }
}