/**
 * Woolements - Advanced Auth Button & User Account Widget Styles
 * استایل‌های جامع، شیک، فوق مدرن و کاملاً واکنش‌گرا برای ویجت ورود، ثبت‌نام و منوی حساب کاربری
 */

/* ==========================================================================
   ۱. متغیرهای رنگی و استایل‌های پایه ویجت
   ========================================================================== */
.woolements-auth-widget {
    --jazeb-auth-primary: #6366f1;
    --jazeb-auth-primary-hover: #4f46e5;
    --jazeb-auth-primary-rgb: 99, 102, 241;
    --jazeb-auth-bg: #ffffff;
    --jazeb-auth-text: #1e293b;
    --jazeb-auth-muted: #64748b;
    --jazeb-auth-border: #e2e8f0;
    --jazeb-auth-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --jazeb-auth-radius: 12px;
    --jazeb-auth-danger: #ef4444;
    --jazeb-auth-danger-bg: #fef2f2;
    --jazeb-auth-success: #10b981;
    position: relative;
    display: inline-block;
    direction: rtl;
    text-align: right;
    font-family: inherit;
    box-sizing: border-box;
}

.woolements-auth-widget *,
.woolements-auth-widget *::before,
.woolements-auth-widget *::after {
    box-sizing: border-box;
}

/* ==========================================================================
   ۲. دکمه‌های تریگر (Trigger Buttons) - حالت مهمان و لاگین
   ========================================================================== */
.jazeb-auth-trigger-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

/* دکمه پیش‌فرض تریگر */
.jazeb-auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    background: #ffffff;
    color: var(--jazeb-auth-text);
    border: 1px solid var(--jazeb-auth-border);
    border-radius: var(--jazeb-auth-radius);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    user-select: none;
    white-space: nowrap;
}

.jazeb-auth-btn:hover {
    color: var(--jazeb-auth-primary);
    border-color: rgba(var(--jazeb-auth-primary-rgb), 0.4);
    background: #f8faff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--jazeb-auth-primary-rgb), 0.12);
}

.jazeb-auth-btn:active {
    transform: translateY(0);
}

.jazeb-auth-btn .jazeb-auth-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    line-height: 1;
    color: inherit;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.jazeb-auth-btn .jazeb-auth-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* دکمه اولیه (Primary / Register / Main) */
.jazeb-auth-btn-primary {
    background: linear-gradient(135deg, var(--jazeb-auth-primary), var(--jazeb-auth-primary-hover));
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(var(--jazeb-auth-primary-rgb), 0.35);
}

.jazeb-auth-btn-primary:hover {
    background: linear-gradient(135deg, var(--jazeb-auth-primary-hover), #4338ca);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(var(--jazeb-auth-primary-rgb), 0.45);
}

/* دکمه خنثی / ثانویه (Secondary) */
.jazeb-auth-btn-secondary {
    background: #f1f5f9;
    color: #334155;
    border-color: transparent;
}

.jazeb-auth-btn-secondary:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* حالت فقط آیکون */
.jazeb-auth-btn-icon-only {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
}

.jazeb-auth-btn-icon-only .jazeb-auth-icon {
    font-size: 18px;
}

/* دکمه مجزا (Split Buttons) */
.jazeb-auth-split-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================================================
   ۳. دکمه تریگر کاربر لاگین شده (Logged-in User Trigger)
   ========================================================================== */
.jazeb-auth-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 10px;
    background: #ffffff;
    border: 1px solid var(--jazeb-auth-border);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.jazeb-auth-user-btn:hover {
    border-color: rgba(var(--jazeb-auth-primary-rgb), 0.4);
    box-shadow: 0 4px 14px rgba(var(--jazeb-auth-primary-rgb), 0.12);
    transform: translateY(-1px);
}

/* آواتار کاربر */
.jazeb-auth-avatar-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.jazeb-auth-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: block;
}

/* نشانگر آنلاین / وضعیت */
.jazeb-auth-status-dot {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 10px;
    height: 10px;
    background: var(--jazeb-auth-success);
    border: 2px solid #ffffff;
    border-radius: 50%;
}

/* اطلاعات متنی کاربر */
.jazeb-auth-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.25;
}

.jazeb-auth-greeting {
    font-size: 11px;
    color: var(--jazeb-auth-muted);
    font-weight: 500;
}

.jazeb-auth-username {
    font-size: 13px;
    font-weight: 700;
    color: var(--jazeb-auth-text);
    white-space: nowrap;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* بج نقش کاربر */
.jazeb-auth-role-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(var(--jazeb-auth-primary-rgb), 0.1);
    color: var(--jazeb-auth-primary);
    line-height: 1.2;
    margin-right: 4px;
}

/* آیکون فلش باز شونده (Caret / Arrow) */
.jazeb-auth-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--jazeb-auth-muted);
    transition: transform 0.25s ease;
    margin-right: 2px;
}

.woolements-auth-widget.is-active .jazeb-auth-arrow {
    transform: rotate(180deg);
    color: var(--jazeb-auth-primary);
}

/* ==========================================================================
   ۴. پنجره منو و محتوا (Dropdown, Modal, Side Drawer)
   ========================================================================== */
.jazeb-auth-panel {
    background: var(--jazeb-auth-bg);
    border: 1px solid var(--jazeb-auth-border);
    box-shadow: var(--jazeb-auth-shadow);
    border-radius: 18px;
    z-index: 999990;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.25s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.jazeb-auth-panel.is-active {
    opacity: 1;
    visibility: visible;
}

/* --- حالت کشویی (Dropdown) --- */
.jazeb-auth-panel.jazeb-auth-style-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    width: 290px;
    max-width: calc(100vw - 30px);
    transform: translateY(-8px);
}

.jazeb-auth-panel.jazeb-auth-style-dropdown.jazeb-auth-pos-bottom-right {
    right: 0;
    left: auto;
}

.jazeb-auth-panel.jazeb-auth-style-dropdown.jazeb-auth-pos-bottom-left {
    left: 0;
    right: auto;
}

.jazeb-auth-panel.jazeb-auth-style-dropdown.jazeb-auth-pos-bottom-center {
    left: 50%;
    transform: translate(-50%, -8px);
}

.jazeb-auth-panel.jazeb-auth-style-dropdown.is-active {
    transform: translateY(0);
}

.jazeb-auth-panel.jazeb-auth-style-dropdown.jazeb-auth-pos-bottom-center.is-active {
    transform: translate(-50%, 0);
}

/* مثلث کوچک بالای دراپ‌داون */
.jazeb-auth-panel.jazeb-auth-style-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    width: 12px;
    height: 12px;
    background: var(--jazeb-auth-bg);
    border-top: 1px solid var(--jazeb-auth-border);
    border-right: 1px solid var(--jazeb-auth-border);
    transform: rotate(-45deg);
    z-index: 2;
}

.jazeb-auth-panel.jazeb-auth-style-dropdown.jazeb-auth-pos-bottom-right::before {
    right: 22px;
}

.jazeb-auth-panel.jazeb-auth-style-dropdown.jazeb-auth-pos-bottom-left::before {
    left: 22px;
}

.jazeb-auth-panel.jazeb-auth-style-dropdown.jazeb-auth-pos-bottom-center::before {
    left: calc(50% - 6px);
}

/* --- حالت پاپ‌آپ مودال (Modal / Popup) --- */
.jazeb-auth-panel.jazeb-auth-style-modal {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    width: 440px;
    max-width: calc(100vw - 40px);
    max-height: 90vh;
    border-radius: 22px;
    transform: translate(-50%, -46%) scale(0.96);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.25), 0 0 1px 1px rgba(0, 0, 0, 0.05);
}

.jazeb-auth-panel.jazeb-auth-style-modal.is-active {
    transform: translate(-50%, -50%) scale(1);
}

/* --- حالت اسلاید از راست (Slide Right) --- */
.jazeb-auth-panel.jazeb-auth-style-slide-right {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    bottom: 0 !important;
    width: 380px;
    max-width: 100vw;
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0;
    transform: translate3d(100%, 0, 0);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.16);
}

.jazeb-auth-panel.jazeb-auth-style-slide-right.is-active {
    transform: translate3d(0, 0, 0);
}

/* --- حالت اسلاید از چپ (Slide Left) --- */
.jazeb-auth-panel.jazeb-auth-style-slide-left {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    bottom: 0 !important;
    width: 380px;
    max-width: 100vw;
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0;
    transform: translate3d(-100%, 0, 0);
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.16);
}

.jazeb-auth-panel.jazeb-auth-style-slide-left.is-active {
    transform: translate3d(0, 0, 0);
}

/* --- پس‌زمینه تیره (Overlay) --- */
.jazeb-auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 999980;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.jazeb-auth-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

body.jazeb-auth-body-locked {
    overflow: hidden !important;
}

/* دستگیره لمسی کشوی پایین صفحه در موبایل */
.jazeb-auth-sheet-handle {
    display: none;
}

/* دکمه بستن پنل */
.jazeb-auth-close-btn {
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
    box-sizing: border-box;
    padding: 0;
    outline: none;
}

.jazeb-auth-close-btn.jazeb-auth-close-pos-top-left {
    top: 14px;
    left: 14px;
    right: auto;
}

.jazeb-auth-close-btn.jazeb-auth-close-pos-top-right {
    top: 14px;
    right: 14px;
    left: auto;
}

.jazeb-auth-close-btn:hover {
    background: #fee2e2;
    color: var(--jazeb-auth-danger, #ef4444);
    transform: rotate(90deg);
}

.jazeb-auth-close-btn i {
    font-size: 15px;
    line-height: 1;
    color: inherit;
}

.jazeb-auth-close-btn svg {
    width: 15px;
    height: 15px;
    stroke-width: 2.5;
    stroke: currentColor;
    fill: currentColor;
    transition: all 0.25s ease;
}

.jazeb-auth-panel.jazeb-auth-style-dropdown .jazeb-auth-close-btn {
    display: none;
}

/* ==========================================================================
   ۵. هدر کارت پروفایل کاربر (User Profile Card Header)
   ========================================================================== */
.jazeb-auth-card-header {
    padding: 20px;
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
    border-bottom: 1px solid var(--jazeb-auth-border);
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    box-sizing: border-box;
}

.jazeb-auth-card-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.jazeb-auth-card-avatar.jazeb-auth-card-avatar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    color: var(--jazeb-auth-primary);
    font-size: 24px;
}

.jazeb-auth-card-avatar.jazeb-auth-card-avatar-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.jazeb-auth-card-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.jazeb-auth-card-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--jazeb-auth-text);
    margin: 0 0 3px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.jazeb-auth-card-meta-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 2px 0 5px 0;
}

.jazeb-auth-card-meta {
    font-size: 12px;
    color: var(--jazeb-auth-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1.4;
}

.jazeb-auth-card-meta i,
.jazeb-auth-card-meta svg {
    font-size: 11px;
    width: 13px;
    text-align: center;
    color: var(--jazeb-auth-muted);
    flex-shrink: 0;
}

.jazeb-auth-card-meta-val {
    direction: ltr;
    display: inline-block;
    unicode-bidi: plaintext;
    text-align: right;
}

.jazeb-auth-card-edit-btn {
    font-size: 11.5px;
    color: var(--jazeb-auth-primary);
    text-decoration: none;
    font-weight: 600;
    margin-top: 2px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
    width: fit-content;
    border-radius: 6px;
    padding: 2px 6px;
}

.jazeb-auth-card-edit-btn:hover {
    color: var(--jazeb-auth-primary-hover, #4f46e5);
    text-decoration: none;
    transform: translateY(-1px);
}

.jazeb-auth-card-edit-btn .jazeb-auth-edit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.jazeb-auth-card-edit-btn .jazeb-auth-edit-icon svg {
    width: 11px;
    height: 11px;
    fill: currentColor;
}

/* ==========================================================================
   ۶. لیست آیتم‌های منوی حساب کاربری (Menu Items List)
   ========================================================================== */
.jazeb-auth-menu {
    list-style: none;
    margin: 0;
    padding: 10px;
    overflow-y: auto;
    max-height: 380px;
}

.jazeb-auth-menu-item {
    margin: 0 0 4px 0;
}

.jazeb-auth-menu-item:last-child {
    margin-bottom: 0;
}

.jazeb-auth-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--jazeb-auth-text);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent;
}

.jazeb-auth-menu-link:hover {
    background: #f1f5f9;
    color: var(--jazeb-auth-primary);
    padding-right: 18px;
}

.jazeb-auth-menu-link-main {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.jazeb-auth-menu-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f8fafc;
    color: var(--jazeb-auth-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-sizing: border-box;
}

.jazeb-auth-menu-icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
    transition: all 0.2s ease;
}

.jazeb-auth-menu-link:hover .jazeb-auth-menu-icon {
    background: rgba(var(--jazeb-auth-primary-rgb), 0.12);
    color: var(--jazeb-auth-primary);
    transform: scale(1.06);
}

/* بج عددی یا متنی آیتم منو */
.jazeb-auth-menu-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    background: #e2e8f0;
    color: #475569;
    line-height: 1.3;
}

.jazeb-auth-menu-badge.has-count {
    background: rgba(var(--jazeb-auth-primary-rgb), 0.15);
    color: var(--jazeb-auth-primary);
}

/* جداکننده بین آیتم‌ها */
.jazeb-auth-menu-divider {
    height: 1px;
    background: var(--jazeb-auth-border);
    margin: 8px 10px;
}

/* دکمه اختصاصی خروج */
.jazeb-auth-menu-item-logout .jazeb-auth-menu-link {
    color: #dc2626;
}

.jazeb-auth-menu-item-logout .jazeb-auth-menu-icon {
    background: #fee2e2;
    color: #ef4444;
}

.jazeb-auth-menu-item-logout .jazeb-auth-menu-link:hover {
    background: #fef2f2;
    color: #b91c1c;
}

.jazeb-auth-menu-item-logout .jazeb-auth-menu-link:hover .jazeb-auth-menu-icon {
    background: #fecaca;
    color: #b91c1c;
}

/* ==========================================================================
   ۷. محتوای حالت میهمان (Guest Content: Tabs, Forms, Shortcode)
   ========================================================================== */
.jazeb-auth-guest-panel-content {
    padding: 24px 22px;
    overflow-y: auto;
    max-height: 80vh;
}

.jazeb-auth-guest-header {
    text-align: center;
    margin-bottom: 20px;
}

.jazeb-auth-guest-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--jazeb-auth-text);
    margin: 0 0 6px 0;
}

.jazeb-auth-guest-subtitle {
    font-size: 13px;
    color: var(--jazeb-auth-muted);
    margin: 0;
    line-height: 1.5;
}

/* تب‌های جابجایی بین ورود و ثبت‌نام */
.jazeb-auth-tabs-nav {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 20px;
    gap: 4px;
}

.jazeb-auth-tab-btn {
    flex: 1;
    padding: 9px 14px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: #64748b;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.jazeb-auth-tab-btn.is-active {
    background: #ffffff;
    color: var(--jazeb-auth-primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.jazeb-auth-tab-pane {
    display: none;
}

.jazeb-auth-tab-pane.is-active {
    display: block;
    animation: jazebAuthFadeIn 0.25s ease;
}

@keyframes jazebAuthFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* فرم ورود و ثبت‌نام درون‌برنامه‌ای */
.jazeb-auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.jazeb-auth-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: right;
}

.jazeb-auth-label {
    font-size: 12.5px;
    font-weight: 700;
    color: #334155;
}

.jazeb-auth-input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    background: #f8fafc;
    border: 1px solid var(--jazeb-auth-border);
    border-radius: 10px;
    font-size: 14px;
    color: var(--jazeb-auth-text);
    outline: none;
    transition: all 0.2s ease;
    direction: ltr;
    text-align: right;
}

.jazeb-auth-input:focus {
    background: #ffffff;
    border-color: var(--jazeb-auth-primary);
    box-shadow: 0 0 0 3px rgba(var(--jazeb-auth-primary-rgb), 0.15);
}

.jazeb-auth-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
}

.jazeb-auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #64748b;
    user-select: none;
}

.jazeb-auth-lost-password {
    color: var(--jazeb-auth-primary);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.jazeb-auth-lost-password:hover {
    text-decoration: underline;
}

.jazeb-auth-submit-btn {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--jazeb-auth-primary), var(--jazeb-auth-primary-hover));
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(var(--jazeb-auth-primary-rgb), 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.jazeb-auth-submit-btn:hover {
    background: linear-gradient(135deg, var(--jazeb-auth-primary-hover), #4338ca);
    box-shadow: 0 6px 18px rgba(var(--jazeb-auth-primary-rgb), 0.45);
    transform: translateY(-1px);
}

/* محفظه کد کوتاه */
.jazeb-auth-shortcode-wrap {
    width: 100%;
}

/* دکمه‌های سریع میهمان در منو */
.jazeb-auth-guest-quick-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
}

/* ==========================================================================
   ۸. طرح‌ها و قالب‌های ظاهری (Presets)
   ========================================================================== */

/* --- تم تیره لوکس (Dark Luxury) --- */
.woolements-auth-widget.jazeb-auth-preset-luxury {
    --jazeb-auth-bg: #0f172a;
    --jazeb-auth-text: #f8fafc;
    --jazeb-auth-muted: #94a3b8;
    --jazeb-auth-border: rgba(255, 255, 255, 0.1);
    --jazeb-auth-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

.woolements-auth-widget.jazeb-auth-preset-luxury .jazeb-auth-btn {
    background: #1e293b;
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.12);
}

.woolements-auth-widget.jazeb-auth-preset-luxury .jazeb-auth-card-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-color: rgba(255, 255, 255, 0.1);
}

.woolements-auth-widget.jazeb-auth-preset-luxury .jazeb-auth-menu-link {
    color: #f1f5f9;
}

.woolements-auth-widget.jazeb-auth-preset-luxury .jazeb-auth-menu-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #a5b4fc;
}

.woolements-auth-widget.jazeb-auth-preset-luxury .jazeb-auth-menu-icon {
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}

.woolements-auth-widget.jazeb-auth-preset-luxury .jazeb-auth-tabs-nav {
    background: #1e293b;
}

.woolements-auth-widget.jazeb-auth-preset-luxury .jazeb-auth-input {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

/* --- تم شیشه‌ای (Glassmorphism) --- */
.woolements-auth-widget.jazeb-auth-preset-glassmorphism .jazeb-auth-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

/* --- تم کپسولی (Pill) --- */
.woolements-auth-widget.jazeb-auth-preset-pill .jazeb-auth-btn {
    border-radius: 50px;
    padding: 10px 22px;
}

.woolements-auth-widget.jazeb-auth-preset-pill .jazeb-auth-panel {
    border-radius: 26px;
}

/* ==========================================================================
   ۹. استایل‌های ریسپانسیو و حالت‌های موبایل (Responsive & Mobile Display Modes)
   ========================================================================== */
@media (max-width: 768px) {
    /* ۱. حالت پیش‌فرض یا باتم‌شیت در موبایل (Bottom Sheet Drawer) */
    .jazeb-auth-panel.jazeb-auth-mobile-style-bottom-sheet,
    .jazeb-auth-panel.jazeb-auth-style-dropdown:not(.jazeb-auth-mobile-style-dropdown):not(.jazeb-auth-mobile-style-modal):not(.jazeb-auth-mobile-style-slide-right):not(.jazeb-auth-mobile-style-slide-left) {
        position: fixed !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        border-radius: 24px 24px 0 0 !important;
        transform: translateY(100%) !important;
        max-height: 85vh !important;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25) !important;
        z-index: 999995 !important;
        -webkit-overflow-scrolling: touch;
    }

    .jazeb-auth-panel.jazeb-auth-mobile-style-bottom-sheet.is-active,
    .jazeb-auth-panel.jazeb-auth-style-dropdown:not(.jazeb-auth-mobile-style-dropdown):not(.jazeb-auth-mobile-style-modal):not(.jazeb-auth-mobile-style-slide-right):not(.jazeb-auth-mobile-style-slide-left).is-active {
        transform: translateY(0) !important;
    }

    .jazeb-auth-panel.jazeb-auth-mobile-style-bottom-sheet::before,
    .jazeb-auth-panel.jazeb-auth-style-dropdown::before {
        display: none !important;
    }

    /* نمایش دستگیره لمسی کشوی پایین صفحه */
    .jazeb-auth-panel.jazeb-auth-mobile-style-bottom-sheet .jazeb-auth-sheet-handle,
    .jazeb-auth-panel.jazeb-auth-style-dropdown:not(.jazeb-auth-mobile-style-dropdown):not(.jazeb-auth-mobile-style-modal):not(.jazeb-auth-mobile-style-slide-right):not(.jazeb-auth-mobile-style-slide-left) .jazeb-auth-sheet-handle {
        display: block !important;
        width: 44px;
        height: 4.5px;
        background: #cbd5e1;
        border-radius: 10px;
        margin: 10px auto 2px auto;
        flex-shrink: 0;
        cursor: grab;
    }

    /* ۲. حالت پاپ‌آپ وسط صفحه در موبایل (Modal Popup) */
    .jazeb-auth-panel.jazeb-auth-mobile-style-modal,
    .jazeb-auth-panel.jazeb-auth-style-modal:not(.jazeb-auth-mobile-style-bottom-sheet):not(.jazeb-auth-mobile-style-slide-right):not(.jazeb-auth-mobile-style-slide-left):not(.jazeb-auth-mobile-style-dropdown) {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        width: calc(100vw - 28px) !important;
        max-width: calc(100vw - 28px) !important;
        max-height: 90vh !important;
        border-radius: 20px !important;
        transform: translate(-50%, -46%) scale(0.96) !important;
        z-index: 999995 !important;
        -webkit-overflow-scrolling: touch;
    }

    .jazeb-auth-panel.jazeb-auth-mobile-style-modal.is-active,
    .jazeb-auth-panel.jazeb-auth-style-modal:not(.jazeb-auth-mobile-style-bottom-sheet):not(.jazeb-auth-mobile-style-slide-right):not(.jazeb-auth-mobile-style-slide-left):not(.jazeb-auth-mobile-style-dropdown).is-active {
        transform: translate(-50%, -50%) scale(1) !important;
    }

    /* ۳. حالت اسلاید از راست در موبایل (Slide Right) */
    .jazeb-auth-panel.jazeb-auth-mobile-style-slide-right,
    .jazeb-auth-panel.jazeb-auth-style-slide-right:not(.jazeb-auth-mobile-style-bottom-sheet):not(.jazeb-auth-mobile-style-modal):not(.jazeb-auth-mobile-style-slide-left):not(.jazeb-auth-mobile-style-dropdown) {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: auto !important;
        bottom: 0 !important;
        width: min(380px, 100vw) !important;
        max-width: 100vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        transform: translate3d(100%, 0, 0) !important;
        z-index: 999995 !important;
    }

    .jazeb-auth-panel.jazeb-auth-mobile-style-slide-right.is-active,
    .jazeb-auth-panel.jazeb-auth-style-slide-right:not(.jazeb-auth-mobile-style-bottom-sheet):not(.jazeb-auth-mobile-style-modal):not(.jazeb-auth-mobile-style-slide-left):not(.jazeb-auth-mobile-style-dropdown).is-active {
        transform: translate3d(0, 0, 0) !important;
    }

    /* ۴. حالت اسلاید از چپ در موبایل (Slide Left) */
    .jazeb-auth-panel.jazeb-auth-mobile-style-slide-left,
    .jazeb-auth-panel.jazeb-auth-style-slide-left:not(.jazeb-auth-mobile-style-bottom-sheet):not(.jazeb-auth-mobile-style-modal):not(.jazeb-auth-mobile-style-slide-right):not(.jazeb-auth-mobile-style-dropdown) {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: auto !important;
        bottom: 0 !important;
        width: min(380px, 100vw) !important;
        max-width: 100vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        transform: translate3d(-100%, 0, 0) !important;
        z-index: 999995 !important;
    }

    .jazeb-auth-panel.jazeb-auth-mobile-style-slide-left.is-active,
    .jazeb-auth-panel.jazeb-auth-style-slide-left:not(.jazeb-auth-mobile-style-bottom-sheet):not(.jazeb-auth-mobile-style-modal):not(.jazeb-auth-mobile-style-slide-right):not(.jazeb-auth-mobile-style-dropdown).is-active {
        transform: translate3d(0, 0, 0) !important;
    }

    /* ۵. حالت دراپ‌داون سنتی در موبایل (Dropdown) */
    .jazeb-auth-panel.jazeb-auth-mobile-style-dropdown {
        position: absolute !important;
        top: calc(100% + 8px) !important;
        bottom: auto !important;
        width: 290px !important;
        max-width: calc(100vw - 20px) !important;
        border-radius: 16px !important;
        transform: translateY(-8px) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    }

    .jazeb-auth-panel.jazeb-auth-mobile-style-dropdown.is-active {
        transform: translateY(0) !important;
    }

    /* نمایش دکمه بستن در موبایل برای تمامی حالت‌های پنل و پنجره */
    .jazeb-auth-panel .jazeb-auth-close-btn {
        display: inline-flex !important;
    }

    /* ۶. تنظیمات نمایش دکمه تریگر در موبایل (Mobile Trigger Display Options) */
    /* فقط آیکون / آواتار در موبایل */
    .woolements-auth-widget.jazeb-auth-mobile-display-icon_only .jazeb-auth-btn-text,
    .woolements-auth-widget.jazeb-auth-mobile-display-icon_only .jazeb-auth-user-info,
    .woolements-auth-widget.jazeb-auth-mobile-display-icon_only .jazeb-auth-role-badge,
    .woolements-auth-widget.jazeb-auth-mobile-display-icon_only .jazeb-auth-arrow {
        display: none !important;
    }

    .woolements-auth-widget.jazeb-auth-mobile-display-icon_only .jazeb-auth-btn,
    .woolements-auth-widget.jazeb-auth-mobile-display-icon_only .jazeb-auth-user-btn {
        padding: 8px !important;
        min-width: 42px !important;
        justify-content: center !important;
        border-radius: 50% !important;
    }

    /* فقط متن در موبایل */
    .woolements-auth-widget.jazeb-auth-mobile-display-text_only .jazeb-auth-icon,
    .woolements-auth-widget.jazeb-auth-mobile-display-text_only .jazeb-auth-avatar-wrap {
        display: none !important;
    }

    /* دکمه تمام‌عرض در موبایل */
    .woolements-auth-widget.jazeb-auth-mobile-fullwidth-yes,
    .woolements-auth-widget.jazeb-auth-mobile-fullwidth-yes .jazeb-auth-trigger-wrap,
    .woolements-auth-widget.jazeb-auth-mobile-fullwidth-yes .jazeb-auth-btn,
    .woolements-auth-widget.jazeb-auth-mobile-fullwidth-yes .jazeb-auth-user-btn,
    .woolements-auth-widget.jazeb-auth-mobile-fullwidth-yes .jazeb-auth-guest-split-wrap {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }

    .woolements-auth-widget.jazeb-auth-mobile-fullwidth-yes .jazeb-auth-guest-split-wrap .jazeb-auth-btn {
        flex: 1 !important;
    }

    .jazeb-auth-username {
        max-width: 110px;
    }
}
