/**
 * استایل اختصاصی و یکپارچه احراز هویت و پیشخوان کاربری تابناک وب (UI/UX Design System)
 * فونت اصیل ساحل، بدون فریم‌ورک و ۱۰۰٪ واکنش‌گرا
 * مسیر فایل: assets/css/authenticate-app.css
 */

/* ==========================================================================
   ۱. ریست عمومی و حذف هدر و فوتر در برگه حساب کاربری
   ========================================================================== */
body.woocommerce-account .navbar,
body.woocommerce-account .footer,
body.woocommerce-account .single-breadcrumb-wrap,
body.woocommerce-account #backToTop,
body.woocommerce-account .article-header,
body.woocommerce-account .single-article-card > h1 {
    display: none !important;
}

body.woocommerce-account {
    background-color: #f8fafc !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Sahel', Tahoma, sans-serif !important;
    direction: rtl !important;
    color: #1e293b !important;
    -webkit-font-smoothing: antialiased;
}

body.woocommerce-account .container,
body.woocommerce-account .single-main-col,
body.woocommerce-account .single-article-card {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* ==========================================================================
   ۲. صفحه ورود و عضویت تمام‌صفحه (مخصوص کاربران مهمان - سبک راست‌چین)
   ========================================================================== */
body.woocommerce-account:not(.logged-in) {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
}

/* دکمه دایره‌ای بازگشت به سایت در گوشه صفحه */
.rtl-auth-back-btn {
    position: fixed;
    top: 25px;
    right: 25px;
    width: 44px;
    height: 44px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.25s ease;
    z-index: 999;
    text-decoration: none;
}

.rtl-auth-back-btn:hover {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fca5a5;
    transform: rotate(90deg);
}

.rtl-auth-back-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2.2;
    fill: none;
}

/* کانتینر مرکزی صفحه احراز هویت */
.rtl-auth-screen {
    width: 100%;
    max-width: 440px;
    margin: 30px auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

/* کادر لوگو بالای کارت */
.rtl-auth-logo-wrap {
    margin-bottom: 22px;
    text-align: center;
}

.rtl-auth-logo-wrap img {
    max-height: 52px;
    width: auto;
    object-fit: contain;
}

/* کارت سفید ورود */
.rtl-auth-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.05);
    width: 100%;
    padding: 34px 28px;
    box-sizing: border-box;
    text-align: center;
}

.rtl-auth-card-title {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #1e293b !important;
    margin: 0 0 20px 0 !important;
}

/* تب‌های سوئیچ ورود / ثبت‌نام */
.rtl-auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 10px;
    margin-bottom: 22px;
    gap: 4px;
}

.rtl-tab-btn {
    border: none;
    background: transparent;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.rtl-tab-btn.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.rtl-form-panel {
    display: none;
}

.rtl-form-panel.active {
    display: block;
    animation: authPanelFadeIn 0.25s ease;
}

@keyframes authPanelFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* فیلدهای ورودی دارای آیکون */
.rtl-input-group {
    position: relative;
    margin-bottom: 14px;
    width: 100%;
}

.rtl-input {
    width: 100% !important;
    height: 48px !important;
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    padding: 10px 42px 10px 14px !important;
    font-size: 13px !important;
    color: #0f172a !important;
    font-family: inherit !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
}

.rtl-input:focus {
    background: #ffffff !important;
    border-color: #6ac847 !important;
    box-shadow: 0 0 0 3px rgba(106, 200, 71, 0.16) !important;
}

.rtl-input-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #94a3b8;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.rtl-input-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.rtl-toggle-pass {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    display: flex;
    align-items: center;
    padding: 0;
}

.rtl-toggle-pass svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* گزینه‌های مرا به خاطر بسپار و فراموشی رمز */
.rtl-form-options {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    margin: 10px 0 20px 0 !important;
    font-size: 12.5px !important;
}

.rtl-remember {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: #475569 !important;
    cursor: pointer !important;
    font-weight: 600 !important;
}

.rtl-remember input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    accent-color: #6ac847 !important;
    cursor: pointer !important;
    margin: 0 !important;
}

.rtl-forgot-link {
    color: #6ac847 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.rtl-forgot-link:hover {
    color: #55a034 !important;
    text-decoration: underline !important;
}

/* دکمه تمام‌عرض، سبز و شیک ورود به سایت */
.rtl-auth-card button.rtl-submit-btn,
.rtl-auth-card button[type="submit"],
.rtl-auth-card .woocommerce-form-login__submit,
.rtl-auth-card .woocommerce-form-register__submit {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 50px !important;
    background: #6ac847 !important;
    background: linear-gradient(135deg, #78cf40 0%, #61bd35 100%) !important;
    color: #ffffff !important;
    font-family: 'Sahel', Tahoma, sans-serif !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    border: none !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    margin-top: 8px !important;
    box-shadow: 0 6px 20px rgba(106, 200, 71, 0.38) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    outline: none !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

.rtl-auth-card button.rtl-submit-btn:hover,
.rtl-auth-card button[type="submit"]:hover {
    background: linear-gradient(135deg, #6ec037 0%, #54a62c 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(106, 200, 71, 0.5) !important;
    color: #ffffff !important;
}

.rtl-auth-terms-note {
    font-size: 11.5px;
    color: #94a3b8;
    text-align: center;
    margin-top: 18px;
    line-height: 1.7;
    max-width: 400px;
}

.rtl-auth-terms-note a {
    color: #64748b;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.rtl-auth-terms-note a:hover {
    color: #0f172a;
}

/* ==========================================================================
   ۳. چیدمان داشبورد اختصاصی کاربر لاگین‌شده
   ========================================================================== */
.tabnak-dashboard-wrapper {
    width: 100%;
    max-width: 1280px;
    margin: 20px auto 60px;
    padding: 0 20px;
    box-sizing: border-box;
}

/* نوار پروفایل بالا */
.dashboard-topbar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 14px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    direction: rtl;
}

.topbar-user-info {
    display: flex;
    align-items: center;
    gap: 14px;
    direction: rtl;
}

/* اصلاح کامل جایگاه و بوردر آواتار بدون افتادگی مارجین */
.user-avatar-wrap {
    position: relative;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    border: 2.5px solid #6ac847 !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
}

.user-avatar-wrap img,
.user-avatar-wrap img.avatar {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    border: none !important;
}

.user-online-badge {
    position: absolute;
    bottom: 2px;
    left: 2px;
    width: 11px;
    height: 11px;
    background-color: #10b981;
    border: 2px solid #ffffff;
    border-radius: 50%;
    z-index: 2;
}

.user-meta-texts {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.user-title {
    font-size: 14.5px;
    font-weight: 800;
    color: #0f172a;
}

.user-last-seen {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-toggle-dash-menu {
    display: none;
    align-items: center;
    gap: 6px;
    background: #6ac847;
    color: #ffffff;
    border: none;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.btn-toggle-dash-menu svg {
    width: 18px;
    height: 18px;
    stroke: #ffffff;
    stroke-width: 2.5;
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    color: #475569;
    padding: 9px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.btn-back-home:hover {
    background: #ffffff;
    color: #6ac847;
    border-color: #6ac847;
}

.btn-back-home .svg-icon {
    width: 15px;
    height: 15px;
}

.btn-account-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #6ac847;
    color: #ffffff;
    padding: 9px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
}

.btn-account-pill .svg-icon {
    width: 16px;
    height: 16px;
    stroke: #ffffff;
}

.topbar-icon-btn {
    position: relative;
    width: 44px;
    height: 44px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s;
}

.topbar-icon-btn:hover {
    background: #ffffff;
    color: #6ac847;
    border-color: #6ac847;
}

.btn-logout-icon:hover {
    color: #ef4444 !important;
    border-color: #fca5a5 !important;
    background: #fef2f2 !important;
}

.topbar-icon-btn .svg-icon {
    width: 18px;
    height: 18px;
}

.topbar-badge {
    position: absolute;
    top: -5px;
    left: -5px;
    background: #e11d48;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   ۴. ساختار گرید دو ستونه: سایدبار راست (۲۶۰px) + محتوا چپ
   ========================================================================== */
.dashboard-main-grid {
    display: grid !important;
    grid-template-columns: 260px minmax(0, 1fr) !important;
    gap: 24px !important;
    align-items: start !important;
    direction: rtl !important;
    width: 100% !important;
}

.dashboard-sidebar-col {
    width: 100%;
}

.dash-sidebar-header-mobile {
    display: none;
}

.dashboard-sidebar-nav {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.nav-items-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 700;
    color: #475569;
    transition: all 0.2s ease;
    text-decoration: none;
}

.nav-item a:hover {
    background: #f1f9ee;
    color: #6ac847;
    padding-right: 20px;
}

.nav-item.is-active a {
    background: #6ac847 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(106, 200, 71, 0.3);
}

.nav-item .item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-item .item-icon .svg-icon {
    width: 18px;
    height: 18px;
}

.dashboard-content-col {
    min-width: 0;
    width: 100%;
}

/* ==========================================================================
   ۵. باکس‌های آمار، نوتیس و پاداش‌ها
   ========================================================================== */
.dash-notice-box {
    position: relative;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}

.close-notice {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 20px;
    color: #60a5fa;
    cursor: pointer;
}

.notice-icon svg {
    width: 38px;
    height: 38px;
    stroke: #3b82f6;
    fill: none;
    stroke-width: 1.8;
}

.notice-text strong {
    display: block;
    font-size: 14px;
    color: #1e3a8a;
    margin-bottom: 4px;
}

.notice-text p {
    margin: 0;
    font-size: 13px;
    color: #2563eb;
    line-height: 1.6;
}

.dash-perks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.perk-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.perk-badge {
    background: #f59e0b;
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    padding: 8px 12px;
    border-radius: 10px;
}

.perk-info strong {
    display: block;
    font-size: 13.5px;
    color: #0f172a;
}

.perk-info span {
    font-size: 11.5px;
    color: #64748b;
}

.dash-charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.chart-status-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
    color: #475569;
}

.chart-bars-wrap {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 120px;
    padding-top: 15px;
}

.bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    height: 100%;
}

.bar-track {
    width: 28px;
    height: 70px;
    background: #f1f5f9;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.bar-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #cbd5e1;
    border-radius: 6px;
}

.bar-fill.active {
    background: #6ac847 !important;
}

.bar-val {
    font-size: 12px;
    font-weight: 800;
    color: #94a3b8;
}

.bar-val.active {
    color: #6ac847;
}

.bar-label {
    font-size: 11px;
    color: #64748b;
}

.dash-summary-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.summary-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.summary-text .lbl {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
}

.summary-text .val {
    font-size: 15px;
    color: #0f172a;
    font-weight: 800;
}

.summary-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.summary-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.icon-blue { background: #eff6ff; color: #3b82f6; }
.icon-green { background: #f0fdf4; color: #16a34a; }
.icon-amber { background: #fefce8; color: #ca8a04; }
.icon-cyan { background: #ecfeff; color: #0891b2; }

/* ==========================================================================
   ۶. جدول سفارشات کاملاً تمام‌عرض (۱۰۰٪ کشیده)
   ========================================================================== */
.orders-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
    width: 100%;
}

.order-stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-info strong {
    display: block;
    font-size: 18px;
    color: #0f172a;
}

.stat-info span {
    font-size: 12px;
    color: #64748b;
}

.orders-table-wrapper {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
}

.dash-orders-table {
    width: 100% !important;
    min-width: 100% !important;
    border-collapse: collapse !important;
    table-layout: auto !important;
}

.dash-orders-table th {
    background: #f8fafc !important;
    color: #475569 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    padding: 16px 20px !important;
    text-align: right !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.dash-orders-table td {
    padding: 16px 20px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    font-size: 13.5px !important;
    color: #1e293b !important;
}

.status-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
}

.status-completed { background: #dcfce7 !important; color: #15803d !important; }
.status-processing { background: #e0f2fe !important; color: #0369a1 !important; }
.status-on-hold { background: #fef9c3 !important; color: #854d0e !important; }
.status-cancelled { background: #fee2e2 !important; color: #dc2626 !important; }

/* دکمه عملیات سفارش با کنتراست شفاف و متن سفید */
.btn-order-action {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #0284c7 !important;
    color: #ffffff !important;
    padding: 7px 20px !important;
    border-radius: 8px !important;
    font-size: 12.5px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25) !important;
    transition: all 0.2s ease !important;
}

.btn-order-action:hover {
    background: #0369a1 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* ==========================================================================
   ۷. بخش دانلودها و دکمه باکنتراست فروشگاه
   ========================================================================== */
.downloads-stats-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.dl-stat-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dl-stat-info strong {
    display: block;
    font-size: 20px;
    color: #0f172a;
}

.dl-stat-info span {
    font-size: 12.5px;
    color: #64748b;
}

.dash-empty-box {
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    padding: 50px 20px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.btn-shop-link {
    display: inline-block !important;
    background: #6ac847 !important;
    color: #ffffff !important;
    padding: 12px 28px !important;
    border-radius: 10px !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    margin-top: 14px !important;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(106, 200, 71, 0.35) !important;
    transition: all 0.2s ease !important;
}

.btn-shop-link:hover {
    background: #5bb13b !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* ==========================================================================
   ۸. دیزاین سیستم فرم ویرایش جزئیات حساب و آپلود عکس پروفایل
   ========================================================================== */
.edit-account-panel-wrapper {
    width: 100%;
    box-sizing: border-box;
}

.account-card-box {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 18px !important;
    padding: 28px !important;
    margin-bottom: 22px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important;
    box-sizing: border-box !important;
}

.card-section-title {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 20px 0 !important;
    padding-bottom: 12px !important;
    border-bottom: 1.5px solid #f1f5f9 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.card-section-title .svg-icon {
    width: 20px;
    height: 20px;
    stroke: #6ac847;
}

/* بخش آپلود تصویر پروفایل */
.avatar-uploader-row {
    display: flex;
    align-items: center;
    gap: 22px;
}

.avatar-preview-box {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #6ac847;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(106, 200, 71, 0.25);
    background: #ffffff;
}

.avatar-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar-upload-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.upload-title {
    font-size: 14.5px;
    font-weight: 800;
    color: #1e293b;
}

.upload-desc {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
}

.custom-file-upload {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-choose-file {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f9ee;
    color: #48922c;
    border: 1.5px dashed #6ac847;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-choose-file:hover {
    background: #6ac847;
    color: #ffffff;
}

.btn-choose-file .svg-icon {
    width: 15px;
    height: 15px;
    stroke: currentColor;
}

.chosen-filename {
    font-size: 12px;
    color: #94a3b8;
}

/* فیلدهای ورودی دو ستونه */
.form-grid-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-field-item label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}

.input-text-custom {
    width: 100% !important;
    height: 48px !important;
    padding: 10px 14px !important;
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 10px !important;
    font-size: 13.5px !important;
    font-family: inherit !important;
    color: #0f172a !important;
    box-sizing: border-box !important;
    outline: none !important;
    transition: all 0.2s ease !important;
}

.input-text-custom:focus {
    background: #ffffff !important;
    border-color: #6ac847 !important;
    box-shadow: 0 0 0 3px rgba(106, 200, 71, 0.16) !important;
}

.field-hint {
    font-size: 11.5px;
    color: #94a3b8;
    margin-top: 4px;
    display: block;
}

/* ردیف دکمه ذخیره */
.submit-action-row {
    margin-top: 24px;
}

.btn-save-account-details {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    height: 50px !important;
    background: #6ac847 !important;
    background: linear-gradient(135deg, #78cf40 0%, #61bd35 100%) !important;
    color: #ffffff !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    border: none !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    box-shadow: 0 6px 20px rgba(106, 200, 71, 0.38) !important;
    transition: all 0.25s ease !important;
}

.btn-save-account-details:hover {
    background: linear-gradient(135deg, #6ec037 0%, #54a62c 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(106, 200, 71, 0.5) !important;
}

.btn-save-account-details .svg-icon {
    width: 18px;
    height: 18px;
    stroke: #ffffff;
    stroke-width: 2.2;
}

/* ==========================================================================
   ۹. منوی کشویی پیشخوان در موبایل (Off-canvas Drawer)
   ========================================================================== */
.dash-drawer-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9998;
}

.dash-drawer-overlay.active {
    display: block;
}

@media (max-width: 900px) {
    .btn-toggle-dash-menu {
        display: inline-flex !important;
    }
    
    .dashboard-main-grid {
        grid-template-columns: 1fr !important;
    }
    
    .dashboard-sidebar-col {
        position: fixed;
        top: 0;
        right: -320px;
        width: 290px;
        height: 100%;
        background: #ffffff;
        z-index: 9999;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
        transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        padding: 20px;
        box-sizing: border-box;
        overflow-y: auto;
    }

    .dashboard-sidebar-col.active {
        right: 0;
    }

    .dash-sidebar-header-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 14px;
        border-bottom: 1px solid #e2e8f0;
        margin-bottom: 14px;
        font-weight: 800;
        font-size: 15px;
    }

    .dash-sidebar-header-mobile button {
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: #64748b;
    }

    .dashboard-topbar {
        flex-direction: column;
        gap: 14px;
        align-items: flex-start;
    }

    .topbar-actions {
        width: 100%;
        justify-content: space-between;
    }

    .form-grid-two {
        grid-template-columns: 1fr;
    }

    .avatar-uploader-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .orders-table-wrapper {
        overflow-x: auto !important;
    }

    .dash-orders-table {
        min-width: 600px !important;
    }
}