/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   profile.css — Autoniaz Profile Pages
   Covers: all profile sub-pages for all roles
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */


/* ═══════════════════════════════════════════════════
   §0  CSS VARIABLES
   ═══════════════════════════════════════════════════ */

:root {
    --blue:        #0069BC;
    --blue-light:  #e8f3fb;
    --red:         #dc2626;
    --red-light:   #fee2e2;
    --gray-50:     #f9fafb;
    --gray-100:    #f3f4f6;
    --gray-200:    #e5e7eb;
    --gray-500:    #6b7280;
    --gray-700:    #374151;
    --gray-900:    #111827;
    --radius:      16px;
    --shadow:      0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.05);
    --shadow-md:   0 4px 16px rgba(0,0,0,.10);
}


/* ═══════════════════════════════════════════════════
   §1  ICONSAX + SHARED UTILITIES
   ═══════════════════════════════════════════════════ */

/* Iconsax SVG sprite */
.isax { fill: currentColor; display: inline-block; vertical-align: middle; flex-shrink: 0; }
.isax-12 { width: 12px; height: 12px; }
.isax-13 { width: 13px; height: 13px; }
.isax-14 { width: 14px; height: 14px; }
.isax-16 { width: 16px; height: 16px; }
.isax-18 { width: 18px; height: 18px; }
.isax-20 { width: 20px; height: 20px; }
.isax-22 { width: 22px; height: 22px; }
.isax-24 { width: 24px; height: 24px; }
.isax-28 { width: 28px; height: 28px; }
.isax-32 { width: 32px; height: 32px; }
.isax-36 { width: 36px; height: 36px; }
.isax-40 { width: 40px; height: 40px; }
.isax-48 { width: 48px; height: 48px; }


/* ═══════════════════════════════════════════════════
   §2  SHARED PAGE LAYOUT  (همه صفحات زیرمجموعه)
   ═══════════════════════════════════════════════════ */

.page-root { background: #f0f4f8; min-height: 100vh; }

.page-header {
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 1.25rem;
    position: sticky;
    top: 0;
    z-index: 100;
}
.page-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 680px;
    margin: 0 auto;
}
.page-title {
    font-weight: 700;
    font-size: 16px;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 8px;
}
.count-badge {
    font-size: 11px;
    font-weight: 600;
    background: var(--blue-light);
    color: var(--blue);
    padding: 2px 10px;
    border-radius: 20px;
}
.page-body {
    max-width: 680px;
    margin: 0 auto;
    padding: 1.25rem 1rem 5rem;
}

/* دکمه اکشن هدر (افزودن، ...) */
.btn-add-header {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .15s;
    text-decoration: none;
}
.btn-add-header:hover { background: #005aa0; color: #fff; transform: translateY(-1px); }
.btn-add-header .isax { flex-shrink: 0; }

/* دکمه‌های edit/delete روی کارت‌ها */
.action-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
}
.action-btn.edit  { color: var(--blue); }
.action-btn.edit:hover  { background: var(--blue-light); border-color: #93c5e8; }
.action-btn.del   { color: var(--red); }
.action-btn.del:hover   { background: var(--red-light); border-color: #fca5a5; }

/* حالت خالی صفحات */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    color: var(--gray-500);
}
.empty-state svg.isax { color: var(--gray-200); margin-bottom: 1rem; }
.empty-state p { font-size: 14px; margin-bottom: 1.25rem; }

/* Pagination مشترک */
.pagination .page-link {
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    color: var(--gray-700);
    font-size: 13px;
    margin: 0 2px;
}
.pagination .page-item.active .page-link {
    background: var(--blue);
    border-color: var(--blue);
}

/* Modal مشترک */
.modal-content  { border: 0; border-radius: 20px; }
.modal-header   { border-bottom: 1px solid var(--gray-100); padding: 1.1rem 1.4rem .8rem; }
.modal-title    { font-size: 15px; font-weight: 700; }
.modal-footer   { border-top: 1px solid var(--gray-100); padding: .8rem 1.4rem 1.1rem; }
.form-label     { font-size: 12px; color: var(--gray-700); font-weight: 600; margin-bottom: 5px; }
.form-control, .form-select {
    border-radius: 10px;
    border: 1px solid var(--gray-200);
    font-size: 13px;
    padding: .55rem .85rem;
    transition: border-color .2s, box-shadow .2s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0,105,188,.12);
}

/* Select2 overrides مشترک */
.select2-container--default .select2-selection--single {
    height: 40px !important;
    border-radius: 10px !important;
    border: 1px solid var(--gray-200) !important;
    padding-top: 5px !important;
}
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--blue) !important;
    box-shadow: 0 0 0 3px rgba(0,105,188,.12) !important;
}

/* base_profile layout */
:root { --header-h: 56px; }
.main { background: #fff; min-height: 100vh; }
.header-profile { min-height: var(--header-h); }
.content-after-header {
    padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
}


/* ═══════════════════════════════════════════════════
   §3  SHARED COMPONENT UTILITIES  (قبلاً §1)
   ═══════════════════════════════════════════════════ */

/* Gradient hero used across multiple profile pages */
.pg-gradient-hero {
    background: linear-gradient(135deg, #001f3f 0%, #003d70 40%, #0069BC 70%, #0cc0cf 100%);
}

/* Standard white card */
.pg-card {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef2f7;
}

/* Standard gradient save/action button */
.pg-btn-primary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #003d70, #0069BC);
    color: #fff;
    border: none;
    border-radius: 16px;
    padding: 15px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 4px 16px rgba(0, 105, 188, 0.3);
    transition: opacity 0.2s, transform 0.15s;
}
.pg-btn-primary:hover  { opacity: .9; transform: translateY(-1px); }
.pg-btn-primary:active { transform: translateY(0); }
.pg-btn-primary.loading { opacity: .7; pointer-events: none; }

/* Verification state colours */
.pg-state--state0 { color: #9ca3af; }
.pg-state--state1 { color: #2563eb; }
.pg-state--state2 { color: #dc2626; }
.pg-state--state3 { color: #d97706; }
.pg-state--state4 { color: #059669; }

/* Icon colour helpers shared across pages */
.pg-icon--blue   { background: rgba(0, 105, 188, 0.08); color: #0069BC; }
.pg-icon--teal   { background: rgba(84, 194, 186, 0.1);  color: #38a89d; }
.pg-icon--green  { background: rgba(16, 185, 129, 0.08); color: #10b981; }
.pg-icon--purple { background: rgba(124, 58, 237, 0.08); color: #7c3aed; }
.pg-icon--amber  { background: rgba(217, 119, 6, 0.08);  color: #d97706; }
.pg-icon--rose   { background: rgba(244, 63, 94, 0.06);  color: #e11d48; }
.pg-icon--danger { background: rgba(239, 68, 68, 0.08);  color: #ef4444; }


/* ═══════════════════════════════════════════════════
   §2  PROFILE MAIN  (profile_customer.html)
   ═══════════════════════════════════════════════════ */

.pf-page {
    background: #f0f4f8;
    min-height: calc(100vh - 72px);
    padding: calc(72px + 32px) 0 60px;
}
.pf-page .rp-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    align-items: flex-start;
}

/* Sidebar */
.pf-sidebar { display: flex; flex-direction: column; gap: 16px; }

.pf-id-card {
    background: linear-gradient(145deg, #003d70 0%, #0069BC 60%, #0cc0cf 100%);
    border-radius: 24px;
    padding: 32px 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.pf-id-card::before {
    content: '';
    position: absolute;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    top: -60px; right: -60px;
}
.pf-avatar-wrap { position: relative; margin-bottom: 16px; z-index: 1; }
.pf-avatar {
    width: 88px; height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.pf-avatar-edit {
    position: absolute; bottom: 0; left: 0;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: #fff; color: #0069BC;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: none; padding: 0; cursor: pointer;
    transition: transform 0.2s;
}
.pf-avatar-edit:hover { transform: scale(1.1); }
.pf-id-info { z-index: 1; width: 100%; }
.pf-name { font-size: 1.1rem; font-weight: 900; color: #fff; margin: 0 0 8px; }
.pf-role-badge {
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(255, 255, 255, 0.18); color: rgba(255, 255, 255, 0.9);
    border-radius: 50px; padding: 4px 12px;
    font-size: 11.5px; font-weight: 700; margin-bottom: 8px;
}
.pf-phone { font-size: 14px; color: rgba(255, 255, 255, 0.75); font-weight: 600; margin-bottom: 16px; }
.pf-edit-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff; border-radius: 50px; padding: 9px 20px;
    font-size: 13px; font-weight: 700;
    text-decoration: none; transition: background 0.2s; z-index: 1;
}
.pf-edit-btn:hover { background: rgba(255, 255, 255, 0.25); color: #fff; text-decoration: none; }

/* Stats */
.pf-stats { display: flex; flex-direction: column; gap: 12px; }
.pf-stat {
    background: #fff; border-radius: 18px; padding: 18px 20px;
    display: flex; align-items: center; gap: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef2f7;
}
.pf-stat-icon {
    width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.pf-stat--blue  .pf-stat-icon { background: rgba(0, 105, 188, 0.08); color: #0069BC; }
.pf-stat--teal  .pf-stat-icon { background: rgba(84, 194, 186, 0.1);  color: #38a89d; }
.pf-stat--amber .pf-stat-icon { background: rgba(217, 119, 6, 0.08);  color: #d97706; }
.pf-stat-num { font-size: 1.3rem; font-weight: 900; color: #111; line-height: 1.2; }
.pf-stat-lbl { font-size: 12px; color: #6b7280; margin-top: 2px; }
.pf-stat-lbl small { font-size: 10px; }

/* Main menu */
.pf-main { display: flex; flex-direction: column; gap: 16px; }
.pf-section-title {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 800; color: #6b7280;
    text-transform: uppercase; letter-spacing: .5px;
    margin-bottom: 8px; padding: 0 4px;
}
.pf-menu-card {
    background: #fff; border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef2f7;
}
.pf-menu-item {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid #f5f7fa;
    text-decoration: none; color: #111;
    transition: background 0.15s;
}
.pf-menu-item:last-child { border-bottom: none; }
.pf-menu-item:hover { background: #fafbfc; text-decoration: none; color: #111; }
.pf-menu-item--danger:hover { background: #fff5f5; }
.pf-menu-icon {
    width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.pf-mi--blue   { background: rgba(0, 105, 188, 0.08); color: #0069BC; }
.pf-mi--teal   { background: rgba(84, 194, 186, 0.1);  color: #38a89d; }
.pf-mi--green  { background: rgba(16, 185, 129, 0.08); color: #10b981; }
.pf-mi--purple { background: rgba(124, 58, 237, 0.08); color: #7c3aed; }
.pf-mi--amber  { background: rgba(217, 119, 6, 0.08);  color: #d97706; }
.pf-mi--rose   { background: rgba(244, 63, 94, 0.06);  color: #e11d48; }
.pf-mi--danger { background: rgba(239, 68, 68, 0.08);  color: #ef4444; }
.pf-menu-text { flex: 1; min-width: 0; }
.pf-menu-label { display: block; font-size: 14px; font-weight: 700; color: #111; }
.pf-menu-item--danger .pf-menu-label { color: #ef4444; }
.pf-menu-desc {
    display: block; font-size: 12px; color: #9ca3af; margin-top: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pf-badge {
    background: #ef4444; color: #fff;
    border-radius: 50px; padding: 2px 9px;
    font-size: 11px; font-weight: 800; flex-shrink: 0;
}
.pf-badge--new    { background: #10b981; }
.pf-badge--amber  { background: #f59e0b; }
.pf-badge--purple { background: #7c3aed; }
.pf-menu-arrow { color: #d1d5db; flex-shrink: 0; }
.pf-menu-item:hover .pf-menu-arrow { color: #0069BC; }
.pf-menu-item--danger:hover .pf-menu-arrow { color: #ef4444; }

/* Responsive – profile main */
@media (max-width: 900px) {
    .pf-page .rp-container { grid-template-columns: 1fr; }
    .pf-stats { flex-direction: row; }
    .pf-stat  { flex: 1; }
    .pf-stat-num { font-size: 1.1rem; }
}
@media (max-width: 600px) {
    .pf-page { padding: calc(72px + 16px) 0 80px; }
    .pf-page .rp-container { gap: 16px; }
    .pf-stats { flex-direction: column; }
    .pf-menu-desc { display: none; }
    .pf-id-card { padding: 28px 20px 20px; }
    .pf-avatar { width: 76px; height: 76px; }
}


/* ═══════════════════════════════════════════════════
   §3  EDIT PROFILE  (customer/profile_edit.html)
   ═══════════════════════════════════════════════════ */

.ce-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0 auto;
}

.ce-avatar-card {
    background: linear-gradient(135deg, #001f3f 0%, #003d70 45%, #0069BC 75%, #0cc0cf 100%);
    border-radius: 24px; padding: 32px 24px 28px;
    display: flex; flex-direction: column; align-items: center;
    position: relative; overflow: hidden; text-align: center;
}
.ce-avatar-bg {
    position: absolute; width: 260px; height: 260px;
    border-radius: 50%; background: rgba(255, 255, 255, 0.05);
    top: -100px; right: -60px;
}
.ce-avatar-wrap { position: relative; margin-bottom: 14px; z-index: 1; cursor: pointer; }
.ce-avatar {
    width: 88px; height: 88px; border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    display: block;
}
.ce-avatar-edit {
    position: absolute; bottom: 0; left: 0;
    width: 28px; height: 28px; border-radius: 50%;
    background: #fff; color: #0069BC;
    display: flex; align-items: center; justify-content: center;
    border: none; cursor: pointer; padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}
.ce-avatar-edit:hover { transform: scale(1.12); }
.ce-avatar-name { font-size: 1rem; font-weight: 900; color: #fff; margin-bottom: 5px; z-index: 1; }
.ce-avatar-phone { font-size: 13px; color: rgba(255, 255, 255, 0.7); z-index: 1; }

.ce-fields-card {
    background: #fff; border-radius: 22px; padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef2f7;
}
.ce-card-header {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 22px; padding-bottom: 16px;
    border-bottom: 1px solid #f5f7fa;
}
.ce-card-header-icon {
    width: 44px; height: 44px; border-radius: 13px; flex-shrink: 0;
    background: rgba(0, 105, 188, 0.08); color: #0069BC;
    display: flex; align-items: center; justify-content: center;
}
.ce-card-title { font-size: 14px; font-weight: 800; color: #111; margin-bottom: 2px; }
.ce-card-sub   { font-size: 12px; color: #9ca3af; }
.ce-field-group { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ce-field--full { grid-column: 1 / -1; }
.ce-label {
    display: flex; align-items: center; gap: 5px;
    font-size: 12px; font-weight: 700; color: #6b7280;
    margin-bottom: 7px;
}
.ce-input-wrap { position: relative; }
.ce-input {
    width: 100%; border: 1.5px solid #e5eaf2; border-radius: 12px;
    padding: 11px 14px; font-size: 14px; font-family: inherit;
    color: #111; background: #f8fafc; outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.ce-input:focus {
    border-color: #0069BC;
    box-shadow: 0 0 0 3px rgba(0, 105, 188, 0.08);
    background: #fff;
}
.ce-input::placeholder { color: #c4c9d4; }

.ce-readonly-card {
    background: #fff; border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef2f7;
}
.ce-ro-item {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 20px; border-bottom: 1px solid #f5f7fa;
}
.ce-ro-item:last-child { border-bottom: none; }
.ce-ro-icon {
    width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
    background: #f8fafc; color: #9ca3af;
    display: flex; align-items: center; justify-content: center;
}
.ce-ro-body { flex: 1; }
.ce-ro-lbl { font-size: 11.5px; color: #9ca3af; margin-bottom: 3px; }
.ce-ro-val { font-size: 14px; font-weight: 700; color: #111; }
.ce-ro-val--state0 { color: #9ca3af; }
.ce-ro-val--state1 { color: #2563eb; }
.ce-ro-val--state2 { color: #dc2626; }
.ce-ro-val--state3 { color: #d97706; }
.ce-ro-val--state4 { color: #059669; }
.ce-ro-badge {
    font-size: 10.5px; font-weight: 700; color: #9ca3af;
    background: #f3f4f6; border-radius: 50px; padding: 3px 9px; flex-shrink: 0;
}
.ce-save-btn {
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
    background: linear-gradient(135deg, #003d70, #0069BC);
    color: #fff; border: none; border-radius: 16px;
    padding: 15px; font-size: 15px; font-weight: 700;
    cursor: pointer; font-family: inherit;
    box-shadow: 0 4px 16px rgba(0, 105, 188, 0.3);
    transition: opacity 0.2s, transform 0.15s;
}
.ce-save-btn:hover   { opacity: .9; transform: translateY(-1px); }
.ce-save-btn:active  { transform: translateY(0); }
.ce-save-btn.loading { opacity: .7; pointer-events: none; }

@media (max-width: 600px) {
    .ce-field-group { grid-template-columns: 1fr; }
    .ce-field--full { grid-column: 1; }
    .ce-fields-card { border-radius: 18px; }
}


/* ═══════════════════════════════════════════════════
   §4  RESET PASSWORD  (marketer_reset_password.html)
   ═══════════════════════════════════════════════════ */

.rp-page {
    background: #f0f4f8;
    min-height: calc(100vh - 72px);
    padding: calc(72px + 28px) 0 60px;
}
.rp-container { max-width: 480px; }
.rp-form { display: flex; flex-direction: column; gap: 14px; }

.rp-header-card {
    background: linear-gradient(135deg, #001f3f 0%, #003d70 45%, #0069BC 75%, #0cc0cf 100%);
    border-radius: 24px; padding: 32px 24px;
    display: flex; flex-direction: column; align-items: center;
    text-align: center; position: relative; overflow: hidden;
}
.rp-header-bg {
    position: absolute; width: 240px; height: 240px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.05); top: -80px; right: -50px;
}
.rp-header-icon {
    width: 72px; height: 72px; border-radius: 22px; z-index: 1;
    background: rgba(255, 255, 255, 0.15); color: #fff;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.rp-header-title { font-size: 1.2rem; font-weight: 900; color: #fff; margin-bottom: 6px; z-index: 1; }
.rp-header-sub   { font-size: 13px; color: rgba(255, 255, 255, 0.72); z-index: 1; line-height: 1.7; }

.rp-fields-card {
    background: #fff; border-radius: 22px; padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef2f7;
    display: flex; flex-direction: column; gap: 16px;
}
.rp-field-label {
    display: flex; align-items: center; gap: 5px;
    font-size: 12px; font-weight: 700; color: #6b7280;
    margin-bottom: 7px;
}
.rp-input-wrap { position: relative; }
.rp-input {
    width: 100%; border: 1.5px solid #e5eaf2; border-radius: 12px;
    padding: 11px 44px 11px 14px; font-size: 14px; font-family: inherit;
    color: #111; background: #f8fafc; outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box; direction: ltr; text-align: right;
}
.rp-input:focus {
    border-color: #0069BC;
    box-shadow: 0 0 0 3px rgba(0, 105, 188, 0.08);
    background: #fff;
}
.rp-input.is-invalid { border-color: #ef4444; }
.rp-input.is-valid   { border-color: #10b981; }
.rp-input::placeholder { color: #c4c9d4; }
.rp-eye-btn {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: #9ca3af;
    cursor: pointer; padding: 4px; border-radius: 6px;
    transition: color 0.2s;
}
.rp-eye-btn:hover { color: #0069BC; }

/* Strength bar */
.rp-strength { margin-top: 8px; }
.rp-strength-bar {
    height: 4px; border-radius: 2px; background: #e5eaf2;
    overflow: hidden; margin-bottom: 5px;
}
.rp-strength-fill {
    height: 100%; border-radius: 2px;
    width: 0; transition: width 0.35s, background 0.35s;
}
.rp-strength-lbl { font-size: 11px; font-weight: 700; color: #9ca3af; }

/* Field error text */
.rp-field-error {
    font-size: 11.5px; color: #ef4444; margin-top: 5px;
    display: flex; align-items: center; gap: 4px;
}

/* Tips list */
.rp-tips {
    background: #f8fafc; border-radius: 14px; padding: 14px 16px;
    border: 1px solid #eef2f7;
    display: flex; flex-direction: column; gap: 6px;
}
.rp-tip-item {
    display: flex; align-items: center; gap: 8px;
    font-size: 12.5px; color: #6b7280;
}
.rp-tip-item .rp-tip-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #d1d5db; flex-shrink: 0;
    transition: background 0.2s;
}
.rp-tip-item.rp-tip--ok .rp-tip-dot { background: #10b981; }
.rp-tip-item.rp-tip--ok { color: #059669; }

.rp-save-btn {
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
    background: linear-gradient(135deg, #003d70, #0069BC);
    color: #fff; border: none; border-radius: 16px;
    padding: 15px; font-size: 15px; font-weight: 700;
    cursor: pointer; font-family: inherit;
    box-shadow: 0 4px 16px rgba(0, 105, 188, 0.3);
    transition: opacity 0.2s, transform 0.15s;
}
.rp-save-btn:hover   { opacity: .9; transform: translateY(-1px); }
.rp-save-btn:active  { transform: translateY(0); }
.rp-save-btn:disabled { opacity: .6; pointer-events: none; }

@media (max-width: 600px) {
    .rp-page { padding: calc(72px + 44px + 12px) 0 80px; }
    .rp-container { padding: 0 5px; }
    .rp-header-card { border-radius: 0 0 24px 24px; }
    .rp-fields-card { border-radius: 18px; }
}


/* ═══════════════════════════════════════════════════
   §5  REFERRAL PAGE  (marketer_referral.html)
   ═══════════════════════════════════════════════════ */

.ref-page {
    background: #f0f4f8;
    min-height: calc(100vh - 72px);
    padding: calc(72px + 28px) 0 60px;
}
.ref-page .rp-container { max-width: 680px; }

.ref-hero {
    background: linear-gradient(135deg, #001f3f 0%, #003d70 40%, #0069BC 70%, #0cc0cf 100%);
    border-radius: 28px; padding: 36px 36px 32px;
    position: relative; overflow: hidden; margin-bottom: 20px;
}
.ref-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.ref-blob { position: absolute; border-radius: 50%; }
.ref-blob-1 { width: 280px; height: 280px; top: -120px; right: -60px; background: rgba(255, 255, 255, 0.05); }
.ref-blob-2 { width: 180px; height: 180px; bottom: -60px; left: 10%; background: rgba(84, 194, 186, 0.1); }
.ref-hero-content { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 20px; }
.ref-hero-icon {
    width: 68px; height: 68px; border-radius: 20px;
    background: rgba(255, 255, 255, 0.15); color: #fff;
    display: flex; align-items: center; justify-content: center;
}
.ref-hero-text h1 { font-size: 1.5rem; font-weight: 900; color: #fff; margin: 0 0 8px; }
.ref-hero-text p  { font-size: 14px; color: rgba(255, 255, 255, 0.78); line-height: 1.8; margin: 0; }
.ref-hero-stats {
    display: flex; align-items: center; gap: 0;
    background: rgba(255, 255, 255, 0.1); border-radius: 16px;
    padding: 16px 24px; align-self: flex-start;
}
.ref-hs-item { text-align: center; padding: 0 20px; }
.ref-hs-num  { font-size: 1.5rem; font-weight: 900; color: #fff; }
.ref-hs-lbl  { font-size: 11px; color: rgba(255, 255, 255, 0.7); margin-top: 3px; }
.ref-hs-lbl small { font-size: 10px; }
.ref-hs-div { width: 1px; height: 40px; background: rgba(255, 255, 255, 0.2); }

.ref-body { display: flex; flex-direction: column; gap: 16px; }

.ref-code-card {
    background: #fff; border-radius: 24px; padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef2f7;
}
.ref-code-header { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.ref-code-header-icon {
    width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
    background: rgba(0, 105, 188, 0.08); color: #0069BC;
    display: flex; align-items: center; justify-content: center;
}
.ref-code-title { font-size: 15px; font-weight: 800; color: #111; margin-bottom: 3px; }
.ref-code-sub   { font-size: 12.5px; color: #6b7280; }
.ref-code-box {
    display: flex; align-items: center; gap: 12px;
    background: #f8fafc; border-radius: 16px; padding: 16px 20px;
    border: 2px dashed #d1e3f5; margin-bottom: 16px;
}
.ref-code-display {
    flex: 1; font-size: 1.8rem; font-weight: 900; color: #0069BC;
    letter-spacing: 4px; font-variant-numeric: tabular-nums; text-align: center;
}
.ref-copy-btn {
    display: flex; align-items: center; gap: 6px;
    background: #0069BC; color: #fff;
    border: none; border-radius: 12px; padding: 10px 16px;
    font-size: 13px; font-weight: 700; cursor: pointer;
    font-family: inherit; white-space: nowrap;
    transition: background 0.2s, transform 0.15s;
}
.ref-copy-btn:hover  { background: #0058a0; transform: translateY(-1px); }
.ref-copy-btn.copied { background: #10b981; }
.ref-link-row {
    display: flex; align-items: center; gap: 10px;
    background: #f8fafc; border-radius: 12px; padding: 10px 14px;
    border: 1px solid #eef2f7; margin-bottom: 20px;
}
.ref-link-label {
    display: flex; align-items: center; gap: 4px;
    font-size: 11.5px; color: #6b7280; font-weight: 600;
    white-space: nowrap; flex-shrink: 0;
}
.ref-link-val {
    flex: 1; font-size: 12px; color: #374151;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ref-link-copy {
    background: none; border: none; color: #6b7280; cursor: pointer;
    padding: 4px; border-radius: 6px; flex-shrink: 0;
    transition: color 0.2s, background 0.2s;
}
.ref-link-copy:hover { color: #0069BC; background: rgba(0, 105, 188, 0.06); }
.ref-share-btn {
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
    background: linear-gradient(135deg, #003d70, #0069BC);
    color: #fff; border: none; border-radius: 16px;
    padding: 15px; font-size: 15px; font-weight: 700;
    cursor: pointer; font-family: inherit;
    transition: opacity 0.2s, transform 0.15s;
    box-shadow: 0 4px 16px rgba(0, 105, 188, 0.3);
}
.ref-share-btn:hover { opacity: .9; transform: translateY(-1px); }

.ref-how-card {
    background: #fff; border-radius: 24px; padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef2f7;
}
.ref-how-title {
    display: flex; align-items: center; gap: 8px;
    font-size: 15px; font-weight: 800; color: #111; margin-bottom: 24px;
}
.ref-how-steps { display: flex; flex-direction: column; }
.ref-how-step  { display: flex; align-items: flex-start; gap: 14px; }
.ref-how-connector { width: 2px; height: 20px; background: #eef2f7; margin: 4px 0 4px 52px; }
.ref-how-num {
    width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
    background: #0069BC; color: #fff;
    font-size: 12px; font-weight: 900;
    display: flex; align-items: center; justify-content: center;
    margin-top: 10px;
}
.ref-how-icon {
    width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.ref-hi--blue  { background: rgba(0, 105, 188, 0.08); color: #0069BC; }
.ref-hi--teal  { background: rgba(84, 194, 186, 0.1);  color: #38a89d; }
.ref-hi--green { background: rgba(16, 185, 129, 0.08); color: #10b981; }
.ref-how-body { padding: 10px 0; }
.ref-how-body strong { display: block; font-size: 14px; font-weight: 800; color: #111; margin-bottom: 4px; }
.ref-how-body span   { font-size: 13px; color: #6b7280; line-height: 1.6; }

@media (max-width: 600px) {
    .ref-page { padding: calc(72px + 16px) 0 80px; }
    .ref-hero { padding: 24px 20px; border-radius: 20px; }
    .ref-hero-text h1 { font-size: 1.2rem; }
    .ref-hero-stats { align-self: stretch; justify-content: center; }
    .ref-code-card, .ref-how-card { padding: 20px 16px; }
    .ref-code-display { font-size: 1.4rem; letter-spacing: 3px; }
    .ref-copy-btn span { display: none; }
    .ref-how-connector { margin-right: 52px; }
}


/* ═══════════════════════════════════════════════════
   §6  SUB-USERS  (marketer_sub_users.html)
   ═══════════════════════════════════════════════════ */

.su-page {
    background: #f0f4f8;
    min-height: calc(100vh - 72px);
    padding: calc(72px + 28px) 0 60px;
}
.su-page .rp-container { max-width: 900px; }

.su-hero {
    background: linear-gradient(135deg, #001f3f 0%, #003d70 40%, #0069BC 70%, #0cc0cf 100%);
    border-radius: 28px; padding: 36px 36px 32px;
    position: relative; overflow: hidden; margin-bottom: 20px;
}
.su-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.su-blob { position: absolute; border-radius: 50%; }
.su-blob-1 { width: 300px; height: 300px; top: -120px; right: -60px; background: rgba(255, 255, 255, 0.05); }
.su-blob-2 { width: 200px; height: 200px; bottom: -80px; left: 5%;  background: rgba(84, 194, 186, 0.1); }
.su-hero-content { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 16px; }
.su-hero-icon {
    width: 68px; height: 68px; border-radius: 20px;
    background: rgba(255, 255, 255, 0.15); color: #fff;
    display: flex; align-items: center; justify-content: center;
}
.su-hero-text h1 { font-size: 1.4rem; font-weight: 900; color: #fff; margin: 0 0 6px; }
.su-hero-text p  { font-size: 13.5px; color: rgba(255, 255, 255, 0.75); line-height: 1.8; margin: 0; }
.su-hero-stats {
    display: flex; align-items: center;
    background: rgba(255, 255, 255, 0.1); border-radius: 16px;
    padding: 14px 24px; align-self: flex-start;
}
.su-hs-item { text-align: center; padding: 0 18px; }
.su-hs-num  { font-size: 1.4rem; font-weight: 900; color: #fff; }
.su-hs-lbl  { font-size: 11px; color: rgba(255, 255, 255, 0.7); margin-top: 2px; }
.su-hs-div  { width: 1px; height: 36px; background: rgba(255, 255, 255, 0.2); }

.su-toolbar {
    background: #fff; border-radius: 20px;
    padding: 16px 20px; margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef2f7;
    display: flex; flex-direction: column; gap: 12px;
}
.su-search-wrap {
    display: flex; align-items: center; gap: 8px;
    background: #f8fafc; border-radius: 12px; padding: 0 14px;
    border: 1px solid #eef2f7;
}
.su-search-ico   { color: #9ca3af; flex-shrink: 0; }
.su-search-input {
    flex: 1; border: none; background: none; padding: 10px 0;
    font-size: 14px; font-family: inherit; color: #111; outline: none;
}
.su-search-clear { background: none; border: none; color: #9ca3af; cursor: pointer; padding: 4px; }
.su-state-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.su-sf-btn {
    display: flex; align-items: center; gap: 5px;
    background: #f8fafc; border: 1px solid #eef2f7; border-radius: 50px;
    padding: 6px 14px; font-size: 12.5px; font-weight: 600; color: #6b7280;
    cursor: pointer; font-family: inherit; transition: all 0.2s;
    white-space: nowrap;
}
.su-sf-btn:hover     { border-color: #0069BC; color: #0069BC; }
.su-sf-btn--active   { background: #0069BC; border-color: #0069BC; color: #fff !important; }
.su-dot              { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.su-dot--gray        { background: #9ca3af; }
.su-dot--blue        { background: #3b82f6; }
.su-dot--red         { background: #ef4444; }
.su-dot--amber       { background: #f59e0b; }
.su-dot--green       { background: #10b981; }

.su-list { display: flex; flex-direction: column; gap: 12px; }
.su-card {
    background: #fff; border-radius: 20px; padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef2f7;
    display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center;
    transition: box-shadow 0.2s;
}
.su-card:hover { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); }
.su-card-left  { display: flex; align-items: center; gap: 14px; min-width: 0; }
.su-avatar-wrap { position: relative; flex-shrink: 0; }
.su-avatar {
    width: 52px; height: 52px; border-radius: 50%;
    object-fit: cover; border: 2px solid #eef2f7;
}
.su-avatar-state {
    position: absolute; bottom: 1px; left: 1px;
    width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff;
}
.su-state-dot--state0 { background: #9ca3af; }
.su-state-dot--state1 { background: #3b82f6; }
.su-state-dot--state2 { background: #ef4444; }
.su-state-dot--state3 { background: #f59e0b; }
.su-state-dot--state4 { background: #10b981; }
.su-card-identity { min-width: 0; }
.su-card-name {
    font-size: 14px; font-weight: 800; color: #111; margin-bottom: 3px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.su-card-phone  { font-size: 12.5px; color: #6b7280; margin-bottom: 6px; direction: ltr; text-align: right; }
.su-card-meta   { display: flex; gap: 6px; flex-wrap: wrap; }
.su-role-chip   { font-size: 11px; font-weight: 700; border-radius: 50px; padding: 2px 10px; }
.su-role--customer  { background: rgba(0, 105, 188, 0.08); color: #0069BC; }
.su-role--expert    { background: rgba(84, 194, 186, 0.1);  color: #38a89d; }
.su-role--marketer  { background: rgba(124, 58, 237, 0.08); color: #7c3aed; }
.su-role--shopper   { background: rgba(217, 119, 6, 0.08);  color: #d97706; }
.su-verify-chip { font-size: 11px; font-weight: 700; border-radius: 50px; padding: 2px 10px; }
.su-verify--state0  { background: #f3f4f6;                   color: #6b7280; }
.su-verify--state1  { background: rgba(59, 130, 246, 0.1);   color: #2563eb; }
.su-verify--state2  { background: rgba(239, 68, 68, 0.08);   color: #dc2626; }
.su-verify--state3  { background: rgba(245, 158, 11, 0.1);   color: #d97706; }
.su-verify--state4  { background: rgba(16, 185, 129, 0.1);   color: #059669; }
.su-card-details { display: flex; flex-direction: column; gap: 6px; white-space: nowrap; }
.su-detail-item  { display: flex; align-items: center; gap: 5px; font-size: 12px; color: #6b7280; }
.su-card-actions { display: flex; flex-direction: column; gap: 6px; }
.su-act-btn {
    display: flex; align-items: center; gap: 5px;
    border: none; border-radius: 10px; padding: 7px 12px;
    font-size: 12px; font-weight: 700; cursor: pointer;
    font-family: inherit; white-space: nowrap;
    transition: opacity 0.2s, transform 0.15s;
}
.su-act-btn:hover   { opacity: .85; transform: translateY(-1px); }
.su-act--detail  { background: rgba(0, 105, 188, 0.08); color: #0069BC; }
.su-act--approve { background: rgba(16, 185, 129, 0.1);  color: #059669; }
.su-act--review  { background: rgba(245, 158, 11, 0.1);  color: #d97706; }
.su-act--reject  { background: rgba(239, 68, 68, 0.08);  color: #dc2626; }
.su-empty {
    background: #fff; border-radius: 20px;
    padding: 60px 24px; text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05); border: 1px solid #eef2f7;
}
.su-empty-icon { color: #d1d5db; margin-bottom: 16px; }
.su-empty p    { font-size: 15px; color: #6b7280; margin: 0 0 12px; }
.su-empty a    { color: #0069BC; font-weight: 700; text-decoration: none; }
.su-pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 20px; }
.su-page-btn {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 12px;
    background: #fff; border: 1px solid #eef2f7;
    color: #0069BC; text-decoration: none; transition: background 0.2s;
}
.su-page-btn:hover { background: #f0f7ff; }
.su-page-info { font-size: 13px; color: #6b7280; font-weight: 600; }

/* Drawer */
.sd-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.45); z-index: 1100;
    backdrop-filter: blur(2px);
}
.sd-overlay.sd-open { display: block; }
.sd-drawer {
    position: fixed; bottom: 0; right: 0; left: 0;
    background: #fff; border-radius: 24px 24px 0 0;
    z-index: 1200; max-height: 88vh;
    display: flex; flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.34, 1.1, 0.64, 1);
    box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.15);
}
.sd-drawer.sd-open { transform: translateY(0); }
.sd-handle {
    width: 40px; height: 4px; border-radius: 2px;
    background: #d1d5db; margin: 12px auto 0; flex-shrink: 0;
}
.sd-header {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 20px 14px; border-bottom: 1px solid #f0f4f8; flex-shrink: 0;
}
.sd-header-avatar-wrap { position: relative; flex-shrink: 0; }
.sd-header-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid #eef2f7; }
.sd-header-state-dot {
    position: absolute; bottom: 1px; left: 1px;
    width: 13px; height: 13px; border-radius: 50%; border: 2px solid #fff;
}
.sd-header-name  { font-size: 15px; font-weight: 900; color: #111; margin-bottom: 3px; }
.sd-header-phone { font-size: 12.5px; color: #6b7280; margin-bottom: 6px; }
.sd-header-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.sd-close-btn {
    margin-right: auto; flex-shrink: 0;
    background: #f8fafc; border: none; border-radius: 10px;
    color: #6b7280; padding: 6px; cursor: pointer; transition: background 0.2s;
}
.sd-close-btn:hover { background: #f3f4f6; color: #111; }
.sd-body { flex: 1; overflow-y: auto; padding: 20px 20px 8px; }
.sd-skeleton { display: flex; flex-direction: column; gap: 12px; padding: 8px 0; }
.sd-sk-line {
    height: 14px; border-radius: 8px;
    background: linear-gradient(90deg, #f0f4f8 25%, #e5eaf0 50%, #f0f4f8 75%);
    background-size: 200% 100%;
    animation: sd-shimmer 1.4s infinite;
}
.sd-sk-w80 { width: 80%; }
.sd-sk-w60 { width: 60%; }
.sd-sk-w70 { width: 70%; }
.sd-sk-w50 { width: 50%; }
@keyframes sd-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.sd-section { margin-bottom: 20px; }
.sd-section-title {
    display: flex; align-items: center; gap: 6px;
    font-size: 11.5px; font-weight: 800; color: #6b7280;
    text-transform: uppercase; letter-spacing: .4px;
    margin-bottom: 10px; padding: 0 2px;
}
.sd-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sd-info-item {
    background: #f8fafc; border-radius: 12px; padding: 12px 14px;
    border: 1px solid #eef2f7;
}
.sd-info-item.sd-full { grid-column: 1 / -1; }
.sd-info-lbl { font-size: 11px; color: #9ca3af; margin-bottom: 4px; }
.sd-info-val { font-size: 13.5px; font-weight: 700; color: #111; word-break: break-word; }
.sd-info-val.sd-val--green { color: #059669; }
.sd-info-val.sd-val--blue  { color: #2563eb; }
.sd-info-val.sd-val--red   { color: #dc2626; }
.sd-info-val.sd-val--amber { color: #d97706; }
.sd-info-val.sd-val--gray  { color: #6b7280; }
.sd-footer {
    display: flex; gap: 8px; padding: 14px 20px 24px;
    border-top: 1px solid #f0f4f8; flex-shrink: 0;
}
.sd-foot-btn {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
    border: none; border-radius: 14px; padding: 12px 8px;
    font-size: 13px; font-weight: 700; cursor: pointer;
    font-family: inherit; transition: opacity 0.2s, transform 0.15s;
}
.sd-foot-btn:hover    { opacity: .85; transform: translateY(-1px); }
.sd-foot--approve { background: rgba(16, 185, 129, 0.1);  color: #059669; }
.sd-foot--review  { background: rgba(245, 158, 11, 0.1);  color: #d97706; }
.sd-foot--reject  { background: rgba(239, 68, 68, 0.08);  color: #dc2626; }

@media (max-width: 767px) {
    .su-page { padding: calc(72px + 44px + 12px) 0 80px; }
    .su-hero { padding: 24px 18px; border-radius: 20px; }
    .su-hero-text h1 { font-size: 1.1rem; }
    .su-hero-stats { align-self: stretch; justify-content: center; }
    .su-card { grid-template-columns: 1fr; gap: 12px; }
    .su-card-details { flex-direction: row; gap: 12px; }
    .su-card-actions { flex-direction: row; }
    .su-act-btn span { display: none; }
    .su-toolbar { padding: 12px 14px; }
}
@media (max-width: 480px) {
    .su-card-actions { gap: 4px; }
    .su-act-btn { padding: 7px 10px; }
}

/* ══════════════════════════════════════════
   Transaction page  (marketer_transaction)
══════════════════════════════════════════ */
.mt-page { background: #f0f4f8; min-height: 100vh; }
.mt-page .rp-container { max-width: 720px; }

.mt-hero {
    background: linear-gradient(135deg, #001f3f 0%, #003d70 45%, #0069BC 75%, #0cc0cf 100%);
    border-radius: 24px;
    padding: 28px 32px 32px;
    color: #fff;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}
.mt-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.mt-hero-blob { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.07); }
.mt-hero-blob-1 { width: 180px; height: 180px; top: -60px; left: -50px; }
.mt-hero-blob-2 { width: 110px; height: 110px; bottom: -35px; right: 50px; }
.mt-hero-top { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.mt-hero-icon {
    width: 52px; height: 52px; border-radius: 16px;
    background: rgba(255,255,255,0.15);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.mt-hero-title { font-size: 20px; font-weight: 800; }
.mt-hero-sub   { font-size: 13px; opacity: .75; margin-top: 2px; }
.mt-hero-stats { display: flex; gap: 14px; flex-wrap: wrap; }
.mt-hs-item {
    flex: 1; min-width: 130px;
    background: rgba(255,255,255,0.12);
    border-radius: 14px; padding: 14px 18px;
}
.mt-hs-num { font-size: 22px; font-weight: 800; line-height: 1.2; }
.mt-hs-lbl { font-size: 11px; opacity: .75; margin-top: 3px; }

.mt-card {
    background: #fff;
    border-radius: 22px;
    border: 1px solid #eef2f7;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
}
.mt-card-head {
    display: flex; align-items: center; gap: 10px;
    padding: 16px 20px; border-bottom: 1px solid #eef2f7;
    font-size: 14px; font-weight: 700; color: #1e293b;
}
.mt-card-head-icon {
    width: 36px; height: 36px; border-radius: 10px;
    background: #e8f2fb; color: #0069BC;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.mt-tx-row {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 20px; border-bottom: 1px solid #f8fafc;
    transition: background .15s;
}
.mt-tx-row:last-child { border-bottom: none; }
.mt-tx-row:hover { background: #fafbfe; }
.mt-tx-icon {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; margin-top: 2px;
}
.mt-tx-icon--credit { background: #dcfce7; color: #15803d; }
.mt-tx-icon--debit  { background: #fee2e2; color: #b91c1c; }
.mt-tx-icon--pay    { background: #e0f2fe; color: #0369a1; }
.mt-tx-body  { flex: 1; min-width: 0; }
.mt-tx-id    { font-size: 11px; color: #94a3b8; margin-bottom: 2px; }
.mt-tx-desc  { font-size: 13px; font-weight: 600; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-tx-date  { font-size: 11px; color: #94a3b8; margin-top: 3px; }
.mt-tx-badge { font-size: 10px; font-weight: 700; padding: 2px 9px; border-radius: 10px; display: inline-block; margin-top: 4px; }
.mt-tx-badge--credit { background: #dcfce7; color: #15803d; }
.mt-tx-badge--debit  { background: #fee2e2; color: #b91c1c; }
.mt-tx-amount    { text-align: end; flex-shrink: 0; min-width: 90px; }
.mt-tx-amt-credit { font-size: 14px; font-weight: 800; color: #15803d; }
.mt-tx-amt-debit  { font-size: 14px; font-weight: 800; color: #b91c1c; }
.mt-tx-amt-pay    { font-size: 14px; font-weight: 800; color: #0369a1; }
.mt-tx-balance    { font-size: 11px; color: #94a3b8; margin-top: 2px; }
.mt-tx-unit       { font-size: 10px; font-weight: 500; }
.mt-empty { text-align: center; padding: 52px 20px; color: #94a3b8; }
.mt-empty-icon { margin-bottom: 12px; opacity: .5; }
.mt-pagination { padding: 14px 20px; border-top: 1px solid #eef2f7; }

@media (max-width: 576px) {
    .mt-hero { padding: 24px 18px 28px; border-radius: 20px; }
    .mt-hero-title { font-size: 17px; }
    .mt-hs-item { min-width: 100px; padding: 12px 14px; }
    .mt-hs-num  { font-size: 18px; }
}


/* ══════════════════════════════════════════
   §7  CUSTOMER ADDRESS  (customer_address)
══════════════════════════════════════════ */

.address-list { display: flex; flex-direction: column; gap: 12px; }

.address-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: box-shadow .2s, border-color .2s;
}
.address-card:hover {
    border-color: #93c5e8;
    box-shadow: var(--shadow-md);
}
.address-card--selectable { cursor: pointer; }
.address-card--selected {
    border-color: var(--blue) !important;
    box-shadow: 0 0 0 3px rgba(0,105,188,.12) !important;
}
.address-card--selected .card-top { border-bottom-color: rgba(0,105,188,.12); }
.addr-select-indicator {
    width: 20px; height: 20px; border-radius: 50%;
    border: 2px solid #d1d5db; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: border-color .15s, background .15s;
}
.address-card--selected .addr-select-indicator {
    border-color: var(--blue); background: var(--blue);
}
.address-card--selected .addr-select-indicator::after {
    content: ''; width: 7px; height: 7px;
    border-radius: 50%; background: #fff;
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
    border-bottom: 1px solid var(--gray-100);
}

.card-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    color: var(--gray-900);
}

.card-label-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    flex-shrink: 0;
}

.card-actions { display: flex; gap: 6px; }

.card-body { padding: 12px 16px; }

.card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--blue);
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
}

.card-address-text {
    color: var(--gray-700);
    font-size: 13px;
    line-height: 1.7;
    margin: 0;
}

.card-footer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 16px 12px;
    border-top: 1px solid var(--gray-100);
}

.meta-chip {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--gray-500);
    background: var(--gray-50);
    border-radius: 20px;
    padding: 3px 10px;
}
.meta-chip .isax { flex-shrink: 0; }

/* Delete confirm modal */
#deleteModal .modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem 1.5rem;
    gap: .75rem;
}
.del-icon-wrap {
    width: 60px;
    height: 60px;
    background: var(--red-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
}
#deleteModal .modal-body h6 { font-weight: 700; font-size: 15px; margin: 0; }
#deleteModal .modal-body p  { font-size: 13px; color: var(--gray-500); margin: 0; }


/* ══════════════════════════════════════════
   §8  SHOP ORDERS  (customer/shop_orders.html)
══════════════════════════════════════════ */

.so-hero {
    background: linear-gradient(135deg, #001f3f 0%, #003d70 45%, #0069BC 75%, #0cc0cf 100%);
    border-radius: 24px; padding: 24px 28px; margin-bottom: 20px;
    display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.so-hero-icon {
    width: 52px; height: 52px; border-radius: 14px;
    background: rgba(255,255,255,.15);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff;
}
.so-hero-title { color: #fff; font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.so-hero-sub   { color: rgba(255,255,255,.75); font-size: 13px; }
.so-pending-pill {
    background: rgba(255,255,255,.2); color: #fff; padding: 6px 14px;
    border-radius: 20px; font-size: 12px; font-weight: 700; backdrop-filter: blur(4px);
    display: flex; align-items: center; gap: 6px;
}

.so-tabs {
    display: flex; gap: 6px; background: #fff; border-radius: 16px; padding: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06); border: 1px solid #eef2f7; margin-bottom: 16px;
}
.so-tab {
    flex: 1; text-align: center; padding: 10px 6px; border-radius: 12px; cursor: pointer;
    font-size: 13px; font-weight: 600; color: #64748b; transition: all .2s; border: none; background: none;
}
.so-tab.active { background: var(--blue); color: #fff; box-shadow: 0 2px 8px rgba(0,105,188,.3); }
.so-tab-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
    font-size: 11px; font-weight: 700; margin-left: 5px;
    background: rgba(255,255,255,.25); color: inherit;
}
.so-tab:not(.active) .so-tab-badge { background: #f1f5f9; color: #475569; }
.so-tab-pane { display: none; }
.so-tab-pane.active { display: block; }

.so-ocard {
    background: #fff; border-radius: 20px; box-shadow: 0 2px 12px rgba(0,0,0,.06);
    border: 1px solid #eef2f7; padding: 20px; margin-bottom: 14px;
    transition: box-shadow .2s, transform .2s;
}
.so-ocard:hover { box-shadow: 0 6px 24px rgba(0,0,0,.09); transform: translateY(-1px); }

.so-badge {
    display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px;
    border-radius: 20px; font-size: 12px; font-weight: 700;
}
.so-badge-pending    { background: #fff8e1; color: #b45309; }
.so-badge-paid       { background: #e0f2fe; color: #0369a1; }
.so-badge-processing { background: #dcfce7; color: #15803d; }
.so-badge-shipped    { background: #cffafe; color: #0e7490; }
.so-badge-delivered  { background: #dcfce7; color: #15803d; }
.so-badge-cancelled  { background: var(--red-light); color: #b91c1c; }

.so-multi-pill   { background: #f1f5f9; color: #475569; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 10px; }
.so-expired-pill { background: var(--red-light); color: #b91c1c; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 10px; display: inline-flex; align-items: center; gap: 4px; }

.so-meta {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid #f1f5f9; flex-wrap: wrap; gap: 8px;
}
.so-meta-badges { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.so-info-row { display: flex; justify-content: space-between; font-size: 13px; color: #64748b; margin-bottom: 8px; }

.so-prod-list { display: flex; flex-direction: column; gap: 5px; margin: 10px 0; }
.so-prod-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 6px 10px; border-radius: 10px; background: #f8fafc; font-size: 13px; color: #334155;
}
.so-prod-name { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding-left: 10px; }
.so-more-chip  { text-align: center; font-size: 12px; color: #94a3b8; margin-top: 4px; }

.so-total {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 14px; margin-top: 10px; border-top: 1px solid #f1f5f9;
}
.so-total-label { font-size: 13px; color: #64748b; font-weight: 500; }
.so-total-val   { font-size: 16px; font-weight: 800; color: var(--blue); }

.so-timer {
    background: linear-gradient(135deg, #fffbeb, #fef9ee);
    border: 1px solid #fde68a; border-radius: 14px; padding: 14px 16px; margin: 14px 0 4px;
}
.so-timer-bar-track { height: 8px; background: #e5e7eb; border-radius: 6px; overflow: hidden; margin-bottom: 10px; }
.so-timer-bar-fill  { height: 100%; border-radius: 6px; transition: width .95s linear, background-color .95s; }
.so-timer-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #555; }
.so-timer-cd   { font-weight: 800; font-size: 15px; direction: ltr; font-variant-numeric: tabular-nums; letter-spacing: .5px; }

.so-auto-cancelled {
    display: none; background: var(--red-light); color: #991b1b; border-radius: 12px;
    padding: 12px 16px; font-size: 13px; font-weight: 700; text-align: center; margin-top: 10px;
    align-items: center; justify-content: center; gap: 6px;
}

.so-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.so-btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px;
    border-radius: 25px; font-size: 13px; font-weight: 600;
    text-decoration: none; border: none; cursor: pointer; transition: all .2s;
}
.so-btn-primary { background: var(--blue); color: #fff; box-shadow: 0 2px 8px rgba(0,105,188,.25); }
.so-btn-primary:hover { background: #0050a0; color: #fff; }
.so-btn-ghost { background: #f8fafc; color: #475569; border: 1.5px solid #e2e8f0; }
.so-btn-ghost:hover { background: #e2e8f0; }
.so-btn-danger { background: #fff; color: var(--red); border: 1.5px solid #fca5a5; }
.so-btn-danger:hover { background: var(--red-light); color: #b91c1c; }

.so-empty { text-align: center; padding: 52px 20px; color: #94a3b8; }
.so-empty p { font-size: 14px; margin: 8px 0 0; }


/* ══════════════════════════════════════════
   §9  CUSTOMER REQUESTS  (customer/customer_requests.html)
══════════════════════════════════════════ */

.req-tabs {
    display: flex; gap: 4px; background: #fff; border-radius: 14px; padding: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06); border: 1px solid #eef2f7; margin-bottom: 16px;
}
.req-tab {
    flex: 1; text-align: center; padding: 9px 6px; border-radius: 10px;
    font-size: 13px; font-weight: 600; color: var(--gray-500);
    text-decoration: none; transition: all .2s;
}
.req-tab.active { background: var(--blue); color: #fff; box-shadow: 0 2px 8px rgba(0,105,188,.3); }
.req-tab-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
    font-size: 11px; font-weight: 700; margin-right: 4px;
    background: rgba(255,255,255,.25); color: inherit;
}
.req-tab:not(.active) .req-tab-count { background: var(--gray-100); color: var(--gray-700); }

.req-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 12px;
    transition: box-shadow .2s, border-color .2s;
}
.req-card:hover { border-color: #93c5e8; box-shadow: var(--shadow-md); }

.req-card-top {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; border-bottom: 1px solid var(--gray-100);
}
.req-chip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700;
}
.req-chip-primary   { background: var(--blue-light); color: var(--blue); }
.req-chip-success   { background: #dcfce7; color: #15803d; }
.req-chip-danger    { background: var(--red-light); color: var(--red); }
.req-chip-warning   { background: #fef9c3; color: #854d0e; }
.req-chip-secondary { background: var(--gray-100); color: var(--gray-500); }
.req-chip-info      { background: #e0f2fe; color: #0369a1; }

.req-date { font-size: 12px; color: var(--gray-500); }

.req-card-body { padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.req-order-num { font-size: 13px; color: var(--gray-700); font-weight: 600; }
.req-title     { font-size: 13px; color: var(--gray-900); }

.req-progress-track { height: 6px; background: var(--gray-100); border-radius: 4px; overflow: hidden; }
.req-progress-fill  { height: 100%; border-radius: 4px; transition: width .3s; }

.req-address {
    display: flex; align-items: center; gap: 5px;
    font-size: 12px; color: var(--gray-500);
}
.req-offers { font-size: 13px; color: var(--gray-700); }

.req-pay-info { font-size: 12px; color: var(--gray-700); padding-top: 8px; border-top: 1px solid var(--gray-100); }
.req-pay-row  { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; }
.req-pay-row strong { color: var(--gray-900); }

.req-card-footer {
    padding: 10px 16px; border-top: 1px solid var(--gray-100);
    display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end;
}
.req-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 7px 16px; border-radius: 20px;
    font-size: 12px; font-weight: 600;
    text-decoration: none; border: none; cursor: pointer; transition: all .2s;
}
.req-btn-primary { background: var(--blue); color: #fff; }
.req-btn-primary:hover { background: #005aa0; color: #fff; }
.req-btn-ghost   { background: var(--gray-50); color: var(--gray-700); border: 1px solid var(--gray-200); }
.req-btn-ghost:hover { background: var(--gray-100); }
.req-btn-success { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.req-btn-success:hover { background: #bbf7d0; color: #15803d; }
.req-btn-warning { background: #fff8e1; color: #b45309; border: 1px solid #fde68a; }
.req-btn-warning:hover { background: #fde68a; }


/* ══════════════════════════════════════════
   §10  SHOP ORDER DETAIL  (customer/shop_order_detail.html)
══════════════════════════════════════════ */

.od-hero {
    background: linear-gradient(135deg, #001f3f 0%, #003d70 45%, #0069BC 75%, #0cc0cf 100%);
    border-radius: 24px; padding: 28px; margin-bottom: 20px;
}
.od-hero-top {
    display: flex; align-items: flex-start; justify-content: space-between;
    flex-wrap: wrap; gap: 14px; margin-bottom: 0;
}
.od-hero-label { color: rgba(255,255,255,.7); font-size: 12px; margin-bottom: 4px; }
.od-hero-num   { color: #fff; font-size: 20px; font-weight: 800; direction: ltr; }
.od-hero-date  { color: rgba(255,255,255,.65); font-size: 12px; margin-top: 5px; }

.od-hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 16px; border-radius: 20px; font-size: 13px; font-weight: 700;
    backdrop-filter: blur(4px);
}
.od-hero-badge-pending    { background: rgba(255,248,225,.92); color: #b45309; }
.od-hero-badge-paid       { background: rgba(224,242,254,.92); color: #0369a1; }
.od-hero-badge-processing { background: rgba(220,252,231,.92); color: #15803d; }
.od-hero-badge-shipped    { background: rgba(207,250,254,.92); color: #0e7490; }
.od-hero-badge-delivered  { background: rgba(220,252,231,.92); color: #15803d; }
.od-hero-badge-cancelled  { background: rgba(254,226,226,.92); color: #b91c1c; }
.od-expired-pill {
    background: rgba(254,226,226,.92); color: #b91c1c;
    font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 10px;
    display: inline-flex; align-items: center; gap: 4px;
}

.od-timer {
    background: linear-gradient(135deg, #fffbeb, #fef9ee);
    border: 1px solid #fde68a; border-radius: 14px;
    padding: 14px 16px; margin-bottom: 16px;
}
.od-timer-bar-track { height: 8px; background: #e5e7eb; border-radius: 6px; overflow: hidden; margin-bottom: 10px; }
.od-timer-bar-fill  { height: 100%; border-radius: 6px; transition: width .95s linear, background-color .95s; }
.od-timer-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #555; }
.od-timer-cd   { font-weight: 800; font-size: 15px; direction: ltr; font-variant-numeric: tabular-nums; letter-spacing: .5px; }
.od-auto-cancelled {
    display: none; background: var(--red-light); color: #991b1b;
    border-radius: 12px; padding: 14px 18px;
    font-size: 13px; font-weight: 700; text-align: center; margin-bottom: 16px;
    align-items: center; justify-content: center; gap: 6px;
}

.od-card {
    background: #fff; border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    border: 1px solid #eef2f7; padding: 20px; margin-bottom: 14px;
}
.od-card-title {
    font-size: 13px; font-weight: 700; color: #475569;
    margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
    padding-bottom: 12px; border-bottom: 1px solid #f1f5f9;
}
.od-card-title svg { color: var(--blue); }

.od-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 1px solid #f8fafc; font-size: 13px;
}
.od-row:last-child { border-bottom: none; padding-bottom: 0; }
.od-row-label { color: #94a3b8; font-weight: 500; }
.od-row-val   { font-weight: 600; color: #1e293b; }

.od-prod-item {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 0; border-bottom: 1px solid #f8fafc;
}
.od-prod-item:last-child { border-bottom: none; padding-bottom: 0; }
.od-prod-thumb {
    width: 58px; height: 58px; object-fit: contain;
    border-radius: 12px; border: 1px solid #f0f2f6;
    background: #fafafa; flex-shrink: 0;
}
.od-prod-name  { font-size: 13px; font-weight: 600; color: #1e293b; margin-bottom: 4px; }
.od-prod-sub   { font-size: 12px; color: #94a3b8; }
.od-prod-price { font-size: 14px; font-weight: 700; color: var(--blue); white-space: nowrap; margin-right: auto; padding-right: 8px; }

.od-sum-row     { display: flex; justify-content: space-between; font-size: 13px; padding: 7px 0; color: #475569; }
.od-sum-discount { color: var(--red); }
.od-sum-total {
    display: flex; justify-content: space-between;
    padding-top: 14px; margin-top: 10px;
    border-top: 2px solid #f1f5f9; font-weight: 700;
}
.od-sum-total-label { font-size: 14px; color: #1e293b; }
.od-sum-total-val   { font-size: 18px; color: var(--blue); }

.od-tracking-box {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 1px solid #e2e8f0; border-radius: 14px;
    padding: 16px; text-align: center;
}
.od-tracking-code {
    font-family: monospace; font-size: 16px; font-weight: 700;
    direction: ltr; color: #1e293b; letter-spacing: 2px; margin-top: 6px;
}

.od-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.od-btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 9px 20px;
    border-radius: 25px; font-size: 13px; font-weight: 600; text-decoration: none;
    border: none; cursor: pointer; transition: all .2s;
}
.od-btn-primary { background: var(--blue); color: #fff; box-shadow: 0 2px 8px rgba(0,105,188,.25); }
.od-btn-primary:hover { background: #0050a0; color: #fff; }
.od-btn-ghost { background: #f8fafc; color: #475569; border: 1.5px solid #e2e8f0; }
.od-btn-ghost:hover { background: #e2e8f0; }
.od-btn-danger { background: #fff; color: var(--red); border: 1.5px solid #fca5a5; }
.od-btn-danger:hover { background: var(--red-light); color: #b91c1c; }


/* ══════════════════════════════════════════
   §11  SUPPORT / CHAT  (marketer_support.html)
══════════════════════════════════════════ */

.sp-root {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    background: #f0f4f8;
    direction: rtl;
    overflow: hidden;
}
.sp-root .page-header { flex-shrink: 0; }

.sp-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    padding: 16px 16px 0;
}

.sp-header-card {
    flex-shrink: 0;
    background: linear-gradient(135deg, #001f3f 0%, #003d70 45%, #0069BC 75%, #0cc0cf 100%);
    border-radius: 24px;
    padding: 24px;
    color: #fff;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.sp-icon-box {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sp-header-title    { font-size: 17px; font-weight: 700; margin-bottom: 3px; }
.sp-header-subtitle { font-size: 12px; opacity: .82; line-height: 1.6; }

.sp-chat-card {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    border: 1px solid #eef2f7;
    margin-bottom: 12px;
}

#chat-body {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 16px;
    background: #f8fafc;
    border-radius: 0 0 22px 22px;
}

.sp-msg-user {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}
.sp-msg-user .sp-bubble {
    background: linear-gradient(135deg, #0069BC, #54C2BA);
    color: #fff;
    border-radius: 18px 4px 18px 18px;
    padding: 10px 14px;
    max-width: 72%;
    font-size: 14px;
    line-height: 1.6;
}
.sp-msg-support {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 12px;
}
.sp-msg-support .sp-bubble {
    background: #fff;
    color: #1e293b;
    border-radius: 4px 18px 18px 18px;
    padding: 10px 14px;
    max-width: 72%;
    font-size: 14px;
    line-height: 1.6;
    border: 1px solid #eef2f7;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.sp-msg-time {
    display: block;
    font-size: 10px;
    opacity: .65;
    margin-top: 5px;
    direction: ltr;
    text-align: left;
}
.sp-msg-user .sp-msg-time { text-align: right; }

.sp-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 160px;
    color: #94a3b8;
    font-size: 13px;
    gap: 10px;
    text-align: center;
}

.sp-input-bar {
    flex-shrink: 0;
    background: #fff;
    border-top: 1px solid #eef2f7;
    padding: 10px 16px;
    box-shadow: 0 -2px 12px rgba(0,0,0,.06);
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
}
.sp-input-wrap {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
}
.sp-textarea {
    flex: 1;
    border: 1.5px solid #e5eaf2;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 14px;
    background: #f8fafc;
    outline: none;
    resize: none;
    transition: border-color .2s, background .2s;
    min-height: 42px;
    max-height: 100px;
    overflow-y: auto;
    direction: rtl;
    font-family: inherit;
    line-height: 1.5;
}
.sp-textarea:focus { border-color: var(--blue); background: #fff; }
.sp-textarea::placeholder { color: #b0bec5; }
.sp-send-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #0069BC, #54C2BA);
    color: #fff;
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity .18s;
}
.sp-send-btn:hover   { opacity: .9; }
.sp-send-btn:active  { opacity: .8; }
.sp-send-btn:disabled { opacity: .55; cursor: default; }

/* ══════════════════════════════════════════════════════════════════
   §12 — Jobs / Service-Request Flow
══════════════════════════════════════════════════════════════════ */

/* ── sel: Breadcrumb مسیر دسته‌بندی ───────────────────────────── */
.sel-breadcrumb {
    display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
    padding: 10px 14px; background: #f8fafc; border-radius: 12px;
    margin-bottom: 14px; font-size: 12px;
}
.sel-crumb { color: var(--gray-500); }
.sel-crumb--active { color: #111; font-weight: 600; }
.sel-crumb-sep { opacity: .4; flex-shrink: 0; }

/* ── jc: Category & Selector Cards ─────────────────────────────── */
.jc-sub-count {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 11px; color: var(--blue); margin-top: 3px;
}
.jc-list { display: flex; flex-direction: column; gap: 10px; }
.jc-card {
    display: flex; align-items: center; gap: 14px;
    background: #fff; border-radius: 14px; padding: 14px 16px;
    border: 1.5px solid #f0f4f8; text-decoration: none; color: inherit;
    transition: box-shadow .18s, border-color .18s;
}
.jc-card:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.jc-img { width: 60px; height: 60px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.jc-body { flex: 1; min-width: 0; }
.jc-name { font-size: 15px; font-weight: 600; color: #111; margin-bottom: 2px; }
.jc-sub  { font-size: 12px; color: var(--gray-500); }
.jc-arrow { color: var(--gray-500); flex-shrink: 0; }

/* ── ji: Job Info Page ──────────────────────────────────────────── */
.ji-hero { border-radius: 14px; overflow: hidden; background: #f8fafc; margin-bottom: 14px; }
.ji-hero-img { width: 100%; max-height: 200px; object-fit: cover; display: block; }
.ji-price-row { padding: 12px 16px; font-size: 13px; color: var(--gray-500); }
.ji-price-range { font-size: 16px; font-weight: 700; color: #111; }

.ji-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
    background: #fff; border-radius: 14px; border: 1.5px solid #f0f4f8; margin-bottom: 14px; }
.ji-stat { text-align: center; padding: 14px 8px; }
.ji-stat + .ji-stat { border-right: 1.5px solid #f0f4f8; }
.ji-stat-val { font-size: 18px; font-weight: 700; color: #111; display: block; }
.ji-stat-lbl { font-size: 11px; color: #000; display: block; margin-top: 2px; }

.ji-cta-bar { background: #fff; border-radius: 14px; border: 1.5px solid #f0f4f8;
    padding: 16px; margin-bottom: 14px; }
.ji-terms-check { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 14px; }
.ji-terms-check input[type="checkbox"] { width: 18px; height: 18px; flex-shrink: 0; }
.ji-submit-btn { display: flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--blue); color: #fff; border-radius: 12px; padding: 13px 24px;
    font-size: 15px; font-weight: 600; text-decoration: none; width: 100%;
    border: none; cursor: pointer; transition: opacity .18s; }
.ji-submit-btn:hover { opacity: .9; color: #fff; }
.ji-submit-btn.disabled { opacity: .45; pointer-events: none; }
.ji-rules-warn { color: #dc3545; font-size: 12px; margin-bottom: 8px; }

.ji-tabs-wrap { background: #fff; border-radius: 14px; border: 1.5px solid #f0f4f8; overflow: hidden; margin-bottom: 14px; }
.ji-tabs { display: flex; overflow-x: auto; border-bottom: 1.5px solid #f0f4f8;
    scrollbar-width: none; gap: 0; }
.ji-tabs::-webkit-scrollbar { display: none; }
.ji-tab { padding: 12px 16px; font-size: 13px; font-weight: 500; color: var(--gray-500);
    white-space: nowrap; border-bottom: 2px solid transparent; cursor: pointer;
    text-decoration: none; display: block; transition: color .15s, border-color .15s; }
.ji-tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.ji-tab-pane { padding: 16px; }

.ji-review-card { background: #f8fafc; border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.ji-review-meta { display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 8px; font-size: 12px; color: var(--gray-500); }
.ji-stars { color: #f59e0b; letter-spacing: 1px; font-size: 15px; }
.ji-review-text { font-size: 14px; color: #222; margin-bottom: 10px; line-height: 1.6; }
.ji-expert-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12px;
    color: var(--blue); text-decoration: none; }
.ji-expert-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }

.ji-qa-card { background: #f8fafc; border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.ji-qa-header { display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 8px; }
.ji-qa-title { font-size: 14px; font-weight: 600; color: #111; }
.ji-qa-meta  { font-size: 11px; color: var(--gray-500); }
.ji-qa-body  { font-size: 13px; color: #444; margin-bottom: 10px; line-height: 1.6; }
.ji-qa-toggle { font-size: 12px; color: var(--blue); cursor: pointer; background: none;
    border: none; padding: 0; }
.ji-answers-wrap { border-top: 1px solid #e5eaf2; margin-top: 10px; padding-top: 10px; }
.ji-answer { display: flex; gap: 10px; padding: 8px 0; }
.ji-answer + .ji-answer { border-top: 1px dashed #e5eaf2; }
.ji-answer-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.ji-answer-body { flex: 1; font-size: 13px; color: #333; line-height: 1.6; }
.ji-answer-author { font-size: 11px; color: var(--gray-500); margin-bottom: 4px; }

/* ── wz: Wizard ─────────────────────────────────────────────────── */
.wz-progress-wrap { padding: 0 0 12px; }
.wz-progress-bar { height: 6px; border-radius: 4px; background: #e5eaf2; overflow: hidden; margin-bottom: 6px; }
.wz-progress-fill { height: 100%; background: linear-gradient(90deg, var(--blue), #54C2BA);
    border-radius: 4px; transition: width .3s ease; }
.wz-steps-labels { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11px; color: var(--gray-500); }
.wz-steps-labels .wz-step-lbl.current { color: var(--blue); font-weight: 600; }

.wz-step-card { background: #fff; border-radius: 14px; border: 1.5px solid #f0f4f8;
    padding: 18px 16px; margin-bottom: 12px; }
.wz-step-title { font-size: 14px; font-weight: 700; color: #111; margin-bottom: 14px; }

.wz-option-label { display: flex; align-items: center; gap: 10px;
    border: 1.5px solid #e5eaf2; border-radius: 12px; padding: 12px 14px;
    cursor: pointer; transition: border-color .18s; }
.wz-option-label:has(input:checked),
.wz-option-label.is-selected { border-color: var(--blue); background: #f0f7ff; }
.wz-option-label input { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--blue); }

.wz-addr-table { width: 100%; font-size: 13px; border-collapse: collapse; }
.wz-addr-table th { font-size: 12px; font-weight: 600; color: var(--gray-500);
    padding: 8px; border-bottom: 1.5px solid #f0f4f8; text-align: right; }
.wz-addr-table td { padding: 10px 8px; border-bottom: 1px solid #f5f7fa; vertical-align: middle; }
.wz-addr-table tr.row-selected td { background: #f0f7ff; }
.wz-addr-table tr:last-child td { border-bottom: none; }

.wz-nav-bar { display: flex; justify-content: space-between; align-items: center;
    padding: 14px 0 6px; gap: 10px; }
.wz-btn-prev { display: flex; align-items: center; gap: 6px; background: #f0f4f8;
    color: #555; border: none; border-radius: 12px; padding: 11px 18px;
    font-size: 14px; cursor: pointer; transition: background .18s; }
.wz-btn-prev:hover { background: #e5eaf2; }
.wz-btn-prev:disabled { opacity: .45; }
.wz-btn-next, .wz-btn-submit { display: flex; align-items: center; gap: 6px;
    background: var(--blue); color: #fff; border: none; border-radius: 12px;
    padding: 11px 20px; font-size: 14px; font-weight: 600; cursor: pointer;
    transition: opacity .18s; }
.wz-btn-next:hover, .wz-btn-submit:hover { opacity: .9; }

.icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; padding: 0; border: 0; background: transparent;
    color: #555; border-radius: 8px; cursor: pointer; transition: color .15s;
}
.icon-btn:hover { color: #111; }
.icon-btn:active { transform: scale(0.94); }
.icon-btn--danger { color: #b91c1c; }
.icon-btn--danger:hover { color: #991b1b; }
.icon-btn[disabled] { opacity: .5; cursor: not-allowed; }
#addressTbody tr.row-selected { outline: 2px solid var(--blue); outline-offset: -2px; }

.date-picker__item { border: 1.5px solid #e5eaf2; background: #fff; border-radius: 12px;
    padding: 10px 14px; min-width: 110px; cursor: pointer; transition: border-color .18s; }
.date-picker__item.active { border-color: var(--blue); background: #f0f7ff; }
.date-picker__item-title { display: block; font-weight: 600; font-size: 13px; }
.date-picker__item-date  { display: block; font-size: 12px; color: var(--gray-500); }
.horizontal-scrollable-list { overflow-x: auto; }
.horizontal-scrollable-list__slider { display: inline-flex; gap: 8px;
    padding: 4px 0; list-style: none; margin: 0; }

.wz-review-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.wz-review-block { background: #f8fafc; border-radius: 12px; padding: 14px; font-size: 13px; }
.wz-review-row { display: flex; gap: 6px; margin-bottom: 6px; }
.wz-review-row:last-child { margin-bottom: 0; }
.wz-review-label { color: var(--gray-500); min-width: 90px; flex-shrink: 0; }
.wz-review-val { color: #111; font-weight: 500; }

/* ── jw: Job Waiting / Status Page ─────────────────────────────── */
.jw-status-card {
    border-radius: 18px; padding: 28px 20px; text-align: center;
    margin-bottom: 14px; position: relative; overflow: hidden;
}
.jw-status-icon { margin-bottom: 12px; }
.jw-status-icon svg { display: block; margin: 0 auto; }
.jw-status-title { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.jw-status-sub   { font-size: 13px; line-height: 1.7; opacity: .8; }

.jw-status-searching { background: linear-gradient(135deg, #eef6ff, #dbeafe); color: #1e40af; }
.jw-status-expert    { background: linear-gradient(135deg, #f0fdf4, #dcfce7); color: #166534; }
.jw-status-progress  { background: linear-gradient(135deg, #fffbeb, #fef3c7); color: #92400e; }
.jw-status-invoice   { background: linear-gradient(135deg, #fdf4ff, #f3e8ff); color: #6b21a8; }
.jw-status-done      { background: linear-gradient(135deg, #f0fdf4, #bbf7d0); color: #14532d; }
.jw-status-dispute   { background: linear-gradient(135deg, #fff7ed, #fed7aa); color: #9a3412; }
.jw-status-canceled  { background: linear-gradient(135deg, #fff1f2, #fecdd3); color: #9f1239; }

/* نبض انیمیشن برای حالت جستجو */
.jw-pulse {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 180px; height: 180px; border-radius: 50%;
    background: rgba(59,130,246,.08);
    animation: jw-pulse-anim 2s ease-in-out infinite;
    pointer-events: none;
}
@keyframes jw-pulse-anim {
    0%, 100% { transform: translate(-50%,-50%) scale(1); opacity: .6; }
    50%       { transform: translate(-50%,-50%) scale(1.3); opacity: 0; }
}

/* کارت اطلاعات درخواست */
.jw-info-card {
    background: #fff; border-radius: 14px; border: 1.5px solid #f0f4f8;
    padding: 4px 0; margin-bottom: 14px;
}
.jw-info-row {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 10px; padding: 12px 16px;
}
.jw-info-row + .jw-info-row { border-top: 1px solid #f5f7fa; }
.jw-info-row--col { flex-direction: column; gap: 6px; }
.jw-info-lbl {
    display: flex; align-items: center; gap: 5px;
    font-size: 12px; color: var(--gray-500); flex-shrink: 0; min-width: 80px;
}
.jw-info-val { font-size: 13px; color: #111; font-weight: 500; text-align: left; }
.jw-info-desc { text-align: right; line-height: 1.7; font-weight: 400; color: #444; }

/* کارت متخصص */
.jw-expert-card {
    display: flex; gap: 14px; align-items: flex-start;
    background: #fff; border-radius: 14px; border: 1.5px solid #f0f4f8;
    padding: 16px; margin-bottom: 14px;
}
.jw-expert-avatar { width: 60px; height: 60px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.jw-expert-body { flex: 1; min-width: 0; }
.jw-expert-name { font-size: 15px; font-weight: 700; color: #111; margin-bottom: 4px;
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.jw-expert-badge { font-size: 10px; background: var(--blue); color: #fff;
    border-radius: 6px; padding: 2px 8px; font-weight: 500; }
.jw-expert-desc { font-size: 13px; color: #555; margin-bottom: 8px; line-height: 1.6; }
.jw-expert-skills { display: flex; flex-wrap: wrap; gap: 5px; }
.jw-skill-chip { font-size: 11px; background: #f0f4f8; color: #444;
    border-radius: 8px; padding: 3px 9px; }

/* کارت پرداخت */
.jw-pay-card {
    background: #fff; border-radius: 14px; border: 1.5px solid #f0f4f8;
    padding: 4px 0; margin-bottom: 14px;
}
.jw-pay-title {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 700; color: #111;
    padding: 12px 16px; border-bottom: 1.5px solid #f0f4f8;
}
.jw-pay-amount { color: var(--blue) !important; font-size: 15px !important; }

/* نوار راهنما */
.jw-notice {
    display: flex; align-items: flex-start; gap: 8px;
    background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px;
    padding: 12px 14px; font-size: 12px; color: #92400e; margin-bottom: 14px;
    line-height: 1.7;
}
.jw-notice svg { flex-shrink: 0; margin-top: 1px; }

/* نوار دکمه‌های عملیاتی */
.jw-action-bar { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.jw-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    border-radius: 12px; padding: 13px 20px; font-size: 14px; font-weight: 600;
    border: none; cursor: pointer; text-decoration: none; width: 100%;
    transition: opacity .18s, background .18s;
}
.jw-btn:hover { opacity: .88; }
.jw-btn-primary { background: var(--blue); color: #fff; }
.jw-btn-primary:hover { color: #fff; }
.jw-btn-success { background: #16a34a; color: #fff; }
.jw-btn-success:hover { color: #fff; }
.jw-btn-warn    { background: #f59e0b; color: #fff; }
.jw-btn-warn:hover { color: #fff; }
.jw-btn-danger  { background: #fee2e2; color: #991b1b; border: 1.5px solid #fecaca; }
.jw-btn-ghost   { background: #f0f4f8; color: #444; }

/* ══════════════════════════════════════════════════════════════════
   §13 — Expert Profile Pages
══════════════════════════════════════════════════════════════════ */

/* ── jl: Jobs List (درخواست‌های باز) ───────────────────────────── */
.jl-card {
    background: #fff; border-radius: 16px;
    border: 1.5px solid #f0f4f8; padding: 16px;
    margin-bottom: 12px; transition: box-shadow .18s;
}
.jl-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,.07); }
.jl-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.jl-title { font-size: 15px; font-weight: 700; color: #111; margin-bottom: 4px; }
.jl-desc {
    font-size: 13px; color: #6b7280; margin-bottom: 8px; line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.jl-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: #9ca3af; }
.jl-meta-item { display: flex; align-items: center; gap: 4px; }
.jl-actions { display: flex; gap: 8px; margin-top: 12px; }
.jl-btn {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px 12px; border: none; border-radius: 10px;
    font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.jl-btn--detail { background: #f0f4f8; color: #374151; }
.jl-btn--detail:hover { background: #e5eaf2; }
.jl-btn--accept { background: var(--blue); color: #fff; }
.jl-btn--accept:hover { opacity: .9; color: #fff; }
.jl-btn:disabled { opacity: .5; cursor: not-allowed; }
.jl-empty { text-align: center; padding: 48px 20px; color: #9ca3af; }

/* ── rl: Request List (سوابق کار) ───────────────────────────────── */
.rl-tabs {
    display: flex; background: #fff; border-radius: 14px;
    border: 1.5px solid #f0f4f8; margin-bottom: 12px; overflow: hidden;
}
.rl-tab {
    flex: 1; padding: 12px 8px; text-align: center; font-size: 13px;
    font-weight: 600; color: #6b7280; cursor: pointer; border: none;
    background: transparent; border-bottom: 2px solid transparent;
    font-family: inherit; transition: color .15s, border-color .15s;
}
.rl-tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.rl-tab-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 20px; padding: 0 5px;
    border-radius: 999px; font-size: 11px; font-weight: 700; margin-right: 4px;
}
.rl-pane { display: none; }
.rl-pane.active { display: block; }
.rl-card {
    background: #fff; border-radius: 14px;
    border: 1.5px solid #f0f4f8; padding: 14px; margin-bottom: 10px;
}
.rl-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 8px; }
.rl-status-chip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 8px; background: #f8f9fa; font-size: 12px;
}
.rl-meta { font-size: 11px; color: #9ca3af; margin-bottom: 6px; display: flex; flex-wrap: wrap; gap: 8px; }
.rl-meta-item { display: flex; align-items: center; gap: 4px; }
.rl-progress { height: 5px; background: #e5eaf2; border-radius: 4px; margin-bottom: 10px; overflow: hidden; }
.rl-progress-bar { height: 100%; border-radius: 4px; }
.rl-finance { background: #f8fafc; border-radius: 10px; padding: 10px 12px; margin-top: 8px; }
.rl-finance-row {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12px; padding: 4px 0;
}
.rl-finance-row + .rl-finance-row { border-top: 1px solid #e5eaf2; }
.rl-finance-row strong { color: #111; }
.rl-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.rl-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    padding: 8px 12px; border-radius: 10px; font-size: 12px; font-weight: 600;
    border: 1.5px solid; cursor: pointer; font-family: inherit; transition: .15s;
}
.rl-btn--outline { background: #fff; border-color: #d1d5db; color: #374151; }
.rl-btn--outline:hover { background: #f3f4f6; color: #374151; }
.rl-btn--primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.rl-btn--primary:hover { opacity: .9; color: #fff; }
.rl-btn--success { background: #10b981; border-color: #10b981; color: #fff; }
.rl-btn--danger { background: #fff; border-color: #f87171; color: #dc2626; }
.rl-btn--cancel { background: #f3f4f6; border-color: #f3f4f6; color: #6b7280; }
.rl-empty { text-align: center; padding: 40px 20px; color: #9ca3af; }
.rl-canceled-tag {
    display: inline-flex; align-items: center; gap: 5px;
    background: #fee2e2; color: #b91c1c; border-radius: 8px;
    padding: 6px 12px; font-size: 12px; font-weight: 600;
    width: 100%; justify-content: center;
}
.clamp-2 {
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}

/* ── pe: Profile Edit (ویرایش پروفایل متخصص) ───────────────────── */
.pe-section { margin-top: 20px; }
.pe-section-head {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 700; color: #374151;
    padding-bottom: 10px; margin-bottom: 14px;
    border-bottom: 2px solid #f0f4f8;
}
.pe-section-sub { font-size: 12px; color: #6b7280; font-weight: 400; margin-top: 4px; }
.field { position: relative; margin-bottom: 14px; width: 100%; }
.field__input:focus, .field textarea:focus, .field select:focus {
    border-color: var(--blue); outline: none;
}
.field textarea { height: auto; min-height: 100px; padding-top: 22px !important; }
.field select { height: 52px; }
.field__label {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: #fff; padding: 0 5px; font-size: 14px;
    color: #6c757d; z-index: 2; transition: all .2s ease; pointer-events: none; line-height: 1;
}
.field__input:focus + .field__label,
.field__input:not(:placeholder-shown) + .field__label,
.field textarea:focus + .field__label,
.field textarea:not(:placeholder-shown) + .field__label {
    top: 0; transform: translateY(-50%); font-size: 12px; color: var(--blue);
}
.field__input[value]:not([value=""]):not(:focus) + .field__label {
    top: 0; transform: translateY(-50%); font-size: 12px;
}
.field__clear {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    border: none; background: none; color: #adb5bd; font-size: 20px;
    cursor: pointer; padding: 0; width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center; z-index: 3;
}
.field__clear:hover { color: #dc3545; }
.persian-datepicker { position: relative; }
#birth_date { background: #fff; cursor: pointer; padding-left: 40px !important; }
.persian-date-btn {
    position: absolute; left: 40px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--blue); z-index: 3; cursor: pointer;
    display: flex; align-items: center; padding: 0;
}
.doc-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px;
}
.doc-card { border: 1.5px solid #e5e7eb; border-radius: 12px; overflow: hidden; background: #fff; }
.doc-thumb {
    aspect-ratio: 4/3; background: #f8fafc;
    display: flex; align-items: center; justify-content: center;
}
.doc-thumb img { max-width: 100%; max-height: 100%; object-fit: cover; }
.doc-meta { padding: 8px; font-size: 12px; }
.doc-actions { display: flex; gap: 6px; padding: 8px; border-top: 1px solid #f1f5f9; }
.icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border: 0; background: #f8fafc;
    border-radius: 8px; cursor: pointer; color: #dc3545; transition: background .15s;
}
.icon-btn:hover { background: #fee2e2; }
.pill {
    display: inline-flex; gap: 6px; align-items: center;
    background: #f1f5f9; border-radius: 999px; padding: 2px 8px; font-size: 11px;
}
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    border: 1.5px solid #e5e7eb !important; border-radius: 12px !important;
    padding: 8px 15px !important; height: 52px !important; min-height: 52px !important;
    background: #fff !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px !important; padding-right: 0 !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 14px !important; left: 12px !important;
}
.selected-areas-box { background: #f8fafc; border-radius: 12px; padding: 16px; margin-top: 14px; }
.selected-area-tag {
    display: inline-flex; align-items: center; gap: 6px;
    background: #0069BC; color: #fff;
    padding: 5px 12px; border-radius: 999px; font-size: 12px;
    margin-left: 6px; margin-bottom: 6px;
}
.tag-x-btn {
    background: none; border: none; color: #fff; cursor: pointer;
    padding: 0; font-size: 15px; line-height: 1; opacity: .8;
}
.tag-x-btn:hover { opacity: 1; }
.coverage-count-badge {
    background: #6c757d; color: #fff; padding: 3px 12px;
    border-radius: 999px; font-size: 12px;
}
.btn-add-area {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--blue); color: #fff; border: none; border-radius: 12px;
    padding: 11px 18px; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: opacity .18s; width: 100%; margin-top: 10px;
}
.btn-add-area:disabled { opacity: .45; cursor: not-allowed; }
.btn-add-area:not(:disabled):hover { opacity: .9; }

/* ── pe: work-type selector ─────────────────────────────────────── */
.pe-work-type-row { display: flex; gap: 10px; }
.pe-work-type-option { flex: 1; cursor: pointer; }
.pe-work-type-option input { display: none; }
.pe-work-type-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 8px; padding: 16px 12px; border: 1.5px solid #e5e7eb; border-radius: 14px;
    background: #f8fafc; font-size: 13px; font-weight: 600; color: #6b7280;
    transition: all .2s; text-align: center;
}
.pe-work-type-option input:checked + .pe-work-type-card {
    border-color: var(--blue); background: #f0f7ff; color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0,105,188,.1);
}

/* ══════════════════════════════════════════════════════════════════
   §14 — Pay / Invoice Pages
══════════════════════════════════════════════════════════════════ */
.inv-card {
    background: #fff; border-radius: 14px;
    border: 1.5px solid #f0f4f8; padding: 14px 16px; margin-bottom: 12px;
}
.inv-card-head {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 700; color: #374151;
    padding-bottom: 10px; margin-bottom: 10px;
    border-bottom: 1.5px solid #f0f4f8;
}
.inv-kv {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0; border-bottom: 1px dashed #f0f4f8; font-size: 13px;
}
.inv-kv:last-child { border-bottom: none; }
.inv-kv-lbl { color: #6b7280; }
.inv-kv-val { color: #111; font-weight: 500; text-align: left; }
.inv-amount { font-size: 16px; font-weight: 700; }
.inv-unit { font-size: 11px; color: #6b7280; font-weight: 400; }
.inv-gw-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 4px;
}
.inv-gw-item {
    border: 1.5px solid #e5e7eb; border-radius: 12px; padding: 12px 8px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; background: #f8fafc; transition: all .2s;
}
.inv-gw-item img { max-height: 48px; max-width: 100%; object-fit: contain; }
.inv-gw-item.active {
    border-color: var(--blue); background: #f0f7ff;
    box-shadow: 0 0 0 3px rgba(0,105,188,.12);
}
.inv-pay-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: linear-gradient(135deg, var(--blue), #54C2BA);
    color: #fff; border-radius: 14px; padding: 14px 24px;
    font-size: 15px; font-weight: 700; text-decoration: none; width: 100%;
    border: none; cursor: pointer; transition: opacity .18s; margin-bottom: 12px;
}
.inv-pay-btn:hover { opacity: .9; color: #fff; }
.inv-result-card {
    background: #fff; border-radius: 16px; border: 1.5px solid #f0f4f8;
    padding: 32px 16px; text-align: center; margin-bottom: 14px;
}
.inv-result-icon { margin: 0 auto 14px; }
.inv-result-icon--success { color: #16a34a; }
.inv-result-icon--danger  { color: #dc2626; }
.inv-result-title { font-size: 18px; font-weight: 700; color: #111; margin-bottom: 6px; }
.inv-result-sub { font-size: 13px; color: #6b7280; line-height: 1.7; }
.inv-action-row { display: flex; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.inv-action-btn {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 12px 14px; border-radius: 12px; font-size: 13px; font-weight: 600;
    text-decoration: none; border: 1.5px solid; transition: .18s; min-width: 100px;
}
.inv-action-btn--primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.inv-action-btn--primary:hover { opacity: .9; color: #fff; }
.inv-action-btn--outline { background: #fff; border-color: #d1d5db; color: #374151; }
.inv-action-btn--outline:hover { background: #f3f4f6; color: #374151; }
.inv-action-btn--warn { background: #f59e0b; border-color: #f59e0b; color: #fff; }
.inv-action-btn--warn:hover { opacity: .9; color: #fff; }

/* ══════════════════════════════════════════════════════════════════
   §15 — Expert Review Page
══════════════════════════════════════════════════════════════════ */
.rv-expert-card {
    background: #fff; border-radius: 14px; border: 1.5px solid #f0f4f8;
    padding: 16px; margin-bottom: 12px;
    display: flex; align-items: center; gap: 14px;
}
.rv-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid #e5e7eb; }
.rv-expert-name { font-size: 15px; font-weight: 700; color: #111; margin-bottom: 4px; }
.rv-expert-cat { font-size: 12px; color: #6b7280; display: flex; align-items: center; gap: 4px; }

.rv-stars-card {
    background: #fff; border-radius: 14px; border: 1.5px solid #f0f4f8;
    padding: 20px 16px; margin-bottom: 12px; text-align: center;
}
.rv-stars-label { font-size: 14px; font-weight: 600; color: #374151; margin-bottom: 14px; }
.rv-stars { display: flex; justify-content: center; gap: 10px; }
.rv-star {
    font-size: 36px; color: #d1d5db; cursor: pointer;
    transition: color .15s, transform .15s; line-height: 1; user-select: none;
}
.rv-star.active, .rv-star.hovered { color: #f59e0b; transform: scale(1.15); }

.rv-comment-card {
    background: #fff; border-radius: 14px; border: 1.5px solid #f0f4f8;
    padding: 14px 16px; margin-bottom: 14px;
}
.rv-comment-label { font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 10px; }
.rv-textarea {
    width: 100%; border: 1.5px solid #e5e7eb; border-radius: 12px;
    padding: 12px 14px; font-size: 14px; font-family: inherit; resize: vertical;
    min-height: 110px; background: #f8fafc; transition: border-color .2s; outline: none;
}
.rv-textarea:focus { border-color: var(--blue); background: #fff; }

/* ══════════════════════════════════════════════════════════════════
   §16 — Shopper Profile  (sh-*)
══════════════════════════════════════════════════════════════════ */

/* ── page wrapper ── */
.sh-page { background: #f0f4f8; min-height: calc(100vh - 72px); padding: calc(72px + 28px) 0 60px; }
.sh-page .rp-container { max-width: 860px; }

/* ── gradient hero card ── */
.sh-hero {
    background: linear-gradient(135deg, #001f3f 0%, #003d70 45%, #0069BC 75%, #0cc0cf 100%);
    border-radius: 24px; padding: 28px 28px 24px; color: #fff;
    margin-bottom: 20px; position: relative; overflow: hidden;
}
.sh-hero::before {
    content: ''; position: absolute; top: -40px; left: -40px;
    width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.05);
}
.sh-hero-body { display: flex; align-items: center; gap: 20px; position: relative; }
.sh-logo-wrap { position: relative; width: 80px; height: 80px; flex-shrink: 0; }
.sh-logo-img {
    width: 80px; height: 80px; border-radius: 50%;
    border: 2.5px solid #e5e7eb; background: #f3f4f6;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.sh-logo-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-hero-info { flex: 1; min-width: 0; }
.sh-shop-name { font-size: 1.25rem; font-weight: 800; margin: 0 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-shop-desc { font-size: 0.82rem; opacity: .75; margin: 0 0 10px; }
.sh-hero-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sh-status-badge {
    display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px;
    border-radius: 20px; font-size: 0.75rem; font-weight: 700;
    background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(6px);
}
.sh-status-badge.state4 { background: rgba(16,185,129,.25); border-color: rgba(16,185,129,.5); }
.sh-status-badge.state2 { background: rgba(239,68,68,.25); border-color: rgba(239,68,68,.5); }
.sh-wallet-chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
    border-radius: 20px; padding: 4px 14px; font-size: 0.82rem; font-weight: 700;
}
.sh-wallet-chip small { opacity: .7; font-weight: 400; font-size: .75em; }

/* ── alert bar ── */
.sh-alert {
    border-radius: 14px; padding: 12px 16px;
    display: flex; align-items: flex-start; gap: 10px;
    margin-bottom: 16px; font-size: 0.86rem;
}
.sh-alert svg { flex-shrink: 0; margin-top: 1px; }
.sh-alert.state0, .sh-alert.state3 { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.sh-alert.state1 { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.sh-alert.state2 { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.sh-alert.state4 { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.sh-alert.has-reply { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; text-decoration: none; }

/* ── white card ── */
.sh-card {
    background: #fff; border-radius: 20px;
    border: 1px solid #eef2f7; box-shadow: 0 2px 12px rgba(0,0,0,.06);
    margin-bottom: 16px; overflow: hidden;
}
.sh-card-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px; border-bottom: 1px solid #f5f7fa; background: #fafbfd;
}
.sh-card-header-left { display: flex; align-items: center; gap: 10px; }
.sh-card-icon {
    width: 34px; height: 34px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sh-card-title { font-size: 0.9rem; font-weight: 700; color: #1e293b; margin: 0; }
.sh-card-body { padding: 20px; }

/* ── info rows ── */
.sh-info-row {
    display: flex; align-items: center; padding: 10px 0;
    border-bottom: 1px solid #f5f7fa; font-size: 0.87rem; gap: 8px;
}
.sh-info-row:last-child { border-bottom: none; }
.sh-info-label {
    color: #8896a7; min-width: 140px; flex-shrink: 0;
    display: flex; align-items: center; gap: 6px; font-size: 0.84rem;
}
.sh-info-label svg { opacity: .7; }
.sh-info-value { color: #1e293b; font-weight: 500; }

/* ── two-column grid ── */
.sh-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) {
    .sh-two-col { grid-template-columns: 1fr; }
    .sh-hero-body { flex-direction: column; align-items: flex-start; }
}

/* ── quick links ── */
.sh-quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px 20px; }
@media (max-width: 480px) { .sh-quick-grid { grid-template-columns: 1fr; } }
.sh-quick-item {
    border: 1px solid #eef2f7; border-radius: 12px; padding: 12px 14px;
    display: flex; align-items: center; gap: 10px; text-decoration: none; color: #1e293b;
    transition: box-shadow .15s, border-color .15s; font-size: 0.84rem; font-weight: 500;
    background: #fff; position: relative;
}
.sh-quick-item:hover { box-shadow: 0 3px 12px rgba(0,0,0,.08); border-color: #bfdbfe; color: #1d4ed8; }
.sh-quick-item.disabled { color: #b0bec5; background: #fafafa; pointer-events: none; }
.sh-quick-icon {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sh-quick-sub { font-size: 0.72rem; color: #94a3b8; margin-top: 1px; }
.sh-quick-sub.warn { color: #dc2626; font-weight: 600; }

/* ── notif dot ── */
.sh-notif-dot {
    position: absolute; top: 8px; left: 10px;
    width: 9px; height: 9px; background: #ef4444; border-radius: 50%; border: 2px solid #fff;
}
.sh-notif-dot::after {
    content: ''; position: absolute; inset: -3px; border-radius: 50%;
    background: rgba(239,68,68,.3); animation: sh-pulse 1.6s ease-in-out infinite;
}
@keyframes sh-pulse {
    0%,100% { transform: scale(1); opacity: .7; }
    50% { transform: scale(1.7); opacity: 0; }
}
.sh-quick-item.has-notif { border-color: #fecaca; background: #fff5f5; }
.sh-quick-item.has-notif:hover { border-color: #fca5a5; color: #dc2626; }

/* ── address display ── */
.sh-addr-box { background: #f8fafc; border: 1px solid #eef2f7; border-radius: 12px; padding: 14px 16px; font-size: 0.86rem; }
.sh-addr-line { display: flex; align-items: flex-start; gap: 7px; margin-bottom: 6px; color: #475569; }
.sh-addr-line:last-child { margin-bottom: 0; }
.sh-addr-line svg { color: #0069BC; flex-shrink: 0; margin-top: 2px; }

/* ── inline edit panel ── */
.sh-edit-panel { display: none; border-top: 2px solid #eff6ff; background: #f8faff; padding: 22px 20px 18px; animation: sh-slide .22s ease; }
.sh-edit-panel.active { display: block; }
@keyframes sh-slide { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.sh-form-section {
    font-size: 0.73rem; font-weight: 700; color: #1d4ed8; letter-spacing: .4px;
    margin: 18px 0 10px; padding-bottom: 6px; border-bottom: 2px solid #dbeafe;
    display: flex; align-items: center; gap: 5px;
}
.sh-form-section:first-child { margin-top: 0; }
.sh-edit-panel .form-label { font-size: 0.82rem; color: #555; margin-bottom: 4px; font-weight: 500; }
.sh-edit-panel .form-control,
.sh-edit-panel .form-select { font-size: 0.87rem; border-radius: 10px; border-color: #e2e8f0; background: #fff; }
.sh-edit-panel .form-control:focus { border-color: #0069BC; box-shadow: 0 0 0 3px rgba(0,105,188,.13); }
.sh-review-warn {
    background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 10px;
    padding: 10px 14px; font-size: 0.83rem; color: #1e40af;
    display: flex; align-items: flex-start; gap: 8px; margin-bottom: 14px;
}
.sh-review-warn svg { flex-shrink: 0; margin-top: 1px; }
.sh-form-footer { display: flex; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid #e2e8f0; }
.sh-form-footer .btn { border-radius: 10px; font-weight: 600; font-size: 0.87rem; }

/* ── wallet row ── */
.sh-wallet-row { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; }
.sh-wallet-amount { font-size: 1.45rem; font-weight: 800; color: #1e293b; line-height: 1; }
.sh-wallet-label  { font-size: 0.78rem; color: #94a3b8; margin-bottom: 4px; }
