/* =====================================================================
   اینجی — سیستم طراحی مشترک (نسخه ۱)
   این فایل بعد از همه‌ی CSSهای قدیمی بارگذاری می‌شود و ظاهر همه‌ی صفحه‌ها
   را یکدست می‌کند: فونت وزیرمتن، پالت بنفش/طلایی، کارت‌ها، دکمه‌ها، هدر و منوی پایین.
   ===================================================================== */

/* ---------- فونت: وزیرمتن با اعداد فارسی (جایگزین شبنم) ---------- */
@font-face { font-family: Vazirmatn; src: url(../fonts/vazirmatn/Vazirmatn-UI-FD-Regular.woff2) format("woff2"); font-weight: 100 450; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url(../fonts/vazirmatn/Vazirmatn-UI-FD-Medium.woff2) format("woff2"); font-weight: 451 550; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url(../fonts/vazirmatn/Vazirmatn-UI-FD-SemiBold.woff2) format("woff2"); font-weight: 551 650; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url(../fonts/vazirmatn/Vazirmatn-UI-FD-Bold.woff2) format("woff2"); font-weight: 651 750; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url(../fonts/vazirmatn/Vazirmatn-UI-FD-ExtraBold.woff2) format("woff2"); font-weight: 751 950; font-display: swap; }
/* نام‌های قدیمی فونت هم به وزیرمتن اشاره می‌کنند تا لازم نباشد همه‌ی CSSها عوض شوند */
@font-face { font-family: shabnam; src: url(../fonts/vazirmatn/Vazirmatn-UI-FD-Regular.woff2) format("woff2"); font-weight: 100 450; font-display: swap; }
@font-face { font-family: shabnam; src: url(../fonts/vazirmatn/Vazirmatn-UI-FD-Medium.woff2) format("woff2"); font-weight: 451 550; font-display: swap; }
@font-face { font-family: shabnam; src: url(../fonts/vazirmatn/Vazirmatn-UI-FD-Bold.woff2) format("woff2"); font-weight: 551 950; font-display: swap; }
@font-face { font-family: shabnam2; src: url(../fonts/vazirmatn/Vazirmatn-UI-FD-Regular.woff2) format("woff2"); font-weight: 100 450; font-display: swap; }
@font-face { font-family: shabnam2; src: url(../fonts/vazirmatn/Vazirmatn-UI-FD-Bold.woff2) format("woff2"); font-weight: 451 950; font-display: swap; }

/* ---------- توکن‌ها ---------- */
:root {
  --iu-plum: #4E2351;
  --iu-plum-dark: #2E1430;
  --iu-plum-hover: #3A1A3D;
  --iu-plum-soft: #F3ECF4;
  --iu-plum-tint: #EFE5EF;
  --iu-gold: #E9C89B;
  --iu-gold-ink: #7A5525;
  --iu-gold-soft: #F6EEDF;
  --iu-bg: #F6F2F7;
  --iu-surface: #FFFFFF;
  --iu-ink: #22162A;
  --iu-muted: #6B6072;
  --iu-line: #E7DEEA;
  --iu-line-strong: #DCD2E0;
  --iu-ok: #1F6B4A;      --iu-ok-soft: #E5F1EB;
  --iu-err: #A3281C;     --iu-err-soft: #F8E7E5;
  --iu-shadow: 0 6px 20px rgba(78, 35, 81, .08);

  /* متغیرهای قدیمی style.css → پالت جدید */
  --main-strong: #4E2351 !important;
  --main-tint: #8E7A92 !important;
  --main-high-tint: #EFE5EF !important;
  --main-shadow: rgba(78, 35, 81, .10) !important;
  --secondary-strong: #B98A4E !important;
  --secondary-tint: #F0DDBF !important;
  --secondary-high-tint: #F6EEDF !important;
  --gray0: #22162A; --gray1: #3E3346; --gray2: #6B6072; --gray3: #A59AAB;
  --gray4: #E7DEEA; --gray5: #F6F2F7; --gray6: #FAF8FB;
  --success-color: #1F6B4A; --error-color: #A3281C;
  --success: #1F6B4A; --pending: #B98A4E; --expired: #A3281C;
  --primary: #4E2351; --secondary: #E9C89B; --accent: #4E2351; --text: #22162A;
  --radius-sm: 12px; --radius-md: 16px; --radius-lg: 22px;
}

html body {
  background-color: var(--iu-bg) !important;
  color: var(--iu-ink);
  font-family: Vazirmatn, shabnam, Tahoma, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body, button, input, select, textarea { font-family: Vazirmatn, Tahoma, sans-serif; }
/* آیکون‌های فونت‌آوسام فونت خودشان را نگه دارند */
.fa, .fas, .far, .fab, .fa-solid, .fa-regular, .fa-brands { font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important; }
.fab, .fa-brands { font-family: "Font Awesome 6 Brands" !important; }

/* ---------- هدر بالا ---------- */
html body .navbar.iu-top {
  height: 64px;
  padding: 0 12px;
  background: rgba(246, 242, 247, .92) !important;
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--iu-line);
  direction: rtl;
}
.iu-top-side { display: flex; align-items: center; gap: 8px; min-width: 44px; }
.iu-top-logo { position: absolute; right: 50%; transform: translateX(50%); display: flex; align-items: center; }
html body .iu-top-logo img { width: auto; height: 30px; }
.iu-ibtn {
  width: 42px; height: 42px; border-radius: 14px;
  border: 1px solid var(--iu-line); background: var(--iu-surface);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--iu-plum) !important;
}
.iu-ibtn:active { transform: scale(.94); }
.iu-support { position: relative; }
.iu-support::after {
  content: ""; position: absolute; inset: -1px; border-radius: 14px;
  border: 2px solid var(--iu-gold); opacity: 0;
  animation: iuPulse 4s ease-out infinite;
}
@keyframes iuPulse { 0%, 70% { opacity: 0; transform: scale(1); } 80% { opacity: .9; } 100% { opacity: 0; transform: scale(1.25); } }
#np-tour-wrapper { display: none !important; }

/* ---------- منوی پایین ---------- */
.iu-bnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  padding: 0 12px calc(12px + env(safe-area-inset-bottom));
  pointer-events: none;
}
.iu-bnav-in {
  pointer-events: auto;
  max-width: 576px; margin: 0 auto; height: 68px;
  background: var(--iu-surface); border: 1px solid var(--iu-line); border-radius: 22px;
  box-shadow: 0 8px 24px rgba(78, 35, 81, .10);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center;
  direction: rtl;
}
.iu-bnav-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--iu-muted) !important; font-size: 11px; font-weight: 500; line-height: 1.4;
}
.iu-bnav-item.is-on { color: var(--iu-plum) !important; font-weight: 700; }
.iu-bnav-pay {
  justify-self: center; width: 58px; height: 58px; margin-top: -30px;
  border-radius: 20px; background: var(--iu-plum); color: #fff !important;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px rgba(78, 35, 81, .35); border: 4px solid var(--iu-bg);
}
.iu-bnav-pay.is-on { background: var(--iu-plum-dark); }
.iu-bnav-pay:active, .iu-bnav-item:active { transform: scale(.94); }

/* ---------- صفحه‌ی خانه ---------- */
.featured-section-index { padding: 4px 16px 0 !important; margin-bottom: 4px !important; }
html body .featured-container { gap: 12px; padding: 4px 0; }
html body .featured-item { max-width: 68px; max-height: 68px; }
html body .featured-container .ring {
  background: linear-gradient(135deg, #E9C89B, #4E2351) !important;
  animation: none !important;
}
html body .featured-container .viewed-story .ring { background: var(--iu-line-strong) !important; }
html body .featured-container .inner-circle { border: 2.5px solid var(--iu-bg); background: var(--iu-plum-tint); }
html body .upload-trigger .ring { background: var(--iu-line-strong) !important; }
html body .upload-trigger .inner-circle { background: #fff; color: var(--iu-plum); }

html body .search-wrapper { padding: 8px 16px 14px; }
html body .search-container {
  height: 48px; padding: 0 14px; gap: 10px;
  background: var(--iu-surface); border: 1px solid var(--iu-line); border-radius: 14px;
  color: var(--iu-muted);
}
html body .search-box-inp { padding: 0; font-size: 14px; color: var(--iu-ink); }
html body .search-box-inp::placeholder { color: var(--iu-muted); }

html body .ab-swiper-container { width: auto; margin: 0 16px; padding-bottom: 22px; overflow: hidden; }
html body .ab-swiper-wrapper { height: auto; }
html body .ab-swiper-slide { height: auto; border-radius: 20px; overflow: hidden; background: var(--iu-line); aspect-ratio: 2.47 / 1; }
html body .ab-swiper-slide a { display: block; width: 100%; height: 100%; }
html body .ab-swiper-slide img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; border-radius: 0; display: block; }
html body .ab-swiper-container .ab-swiper-pagination { bottom: 2px !important; }
html body .ab-swiper-pagination .swiper-pagination-bullet { width: 6px; height: 6px; background: #D9CDDC !important; border: 0 !important; opacity: 1; transition: width .2s; border-radius: 3px; margin: 0 3px !important; }
html body .ab-swiper-pagination .swiper-pagination-bullet-active { width: 18px; background: var(--iu-plum) !important; }

html body main .container { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 8px; padding: 6px 16px 0; }
html body .cat { gap: 6px; }
html body .cat-ico {
  width: 64px; height: 64px; border-radius: 18px;
  background: var(--iu-surface) !important; border: 1px solid var(--iu-line);
  overflow: hidden;
}
html body .cat-ico img { width: 46px; height: 46px; object-fit: contain; }
html body .cat-lbl { color: var(--iu-ink); font-weight: 500; font-size: 12px; }
html body .cat:active .cat-ico { transform: scale(.94); }

/* ---------- منوی کناری ---------- */
html body .sidebar-menu { font-family: Vazirmatn, Tahoma, sans-serif; }
html body .menu-header { background: var(--iu-plum) !important; color: #fff; }
html body .menu-item i:first-child { color: var(--iu-plum) !important; }
html body .notification-badge { background: var(--iu-err) !important; }

/* ---------- اجزای عمومی همه‌ی صفحه‌ها ---------- */
html body .main, html body .main-normal { padding-bottom: 120px; }
html body .main-normal { padding-left: 16px; padding-right: 16px; }

/* دکمه‌های رنگی قدیمی (بنفش روشن، آبی، سبزآبی) → بنفش برند */
html body .btn-primary, html body .submit-btn, html body .confirm-btn, html body .primary-btn,
html body .master-popup-confirm, html body .pay-btn, html body .buy-btn {
  background: var(--iu-plum) !important; border-color: var(--iu-plum) !important; color: #fff !important;
  border-radius: 14px !important;
}
html body input[type=text], html body input[type=tel], html body input[type=number],
html body input[type=email], html body input[type=password], html body select, html body textarea {
  border-color: var(--iu-line-strong);
}
html body input:focus, html body select:focus, html body textarea:focus {
  outline: none; border-color: var(--iu-plum) !important; box-shadow: 0 0 0 3px rgba(78, 35, 81, .12);
}
html body ::selection { background: var(--iu-gold); color: var(--iu-ink); }

/* ---------- یکدست‌سازی صفحه‌ها (رنگ‌های قدیمی ناهماهنگ) ---------- */
/* زمینه‌ی همه‌ی صفحه‌ها یکی است */
html body .main-cards, html body .main.payment-page, html body main.main,
html body .main-sub-cards, html body .main-normal { background: transparent !important; }
html body .main.payment-page::before, html body .main.payment-page::after { display: none !important; }

/* کارت‌های شیشه‌ای نیمه‌شفاف → کارت سفید با حاشیه */
html body .payment-card, html body .balance-card, html body .quick-btn, html body .transactions-section,
html body .myapp-profile-box, html body .empty-state, html body .loan-info-section {
  background: var(--iu-surface) !important; border: 1px solid var(--iu-line) !important;
  border-radius: 20px !important; box-shadow: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
html body .myapp-profile-box ~ ul li, html body .info-item { background: var(--iu-surface) !important; }

/* کارت بانکی / اشتراکی */
html body .card-bank, html body .card-bg-bank { background: linear-gradient(135deg, #5A2A5E 0%, #4E2351 45%, #2E1430 100%) !important; }

/* کارت‌های تخفیف و هدیه */
html body .card-visual { background: var(--iu-plum-soft) !important; }
html body .card-plastic { background: linear-gradient(135deg, #5A2A5E, #2E1430) !important; }
html body .gcard_item_xSlide890 { background: linear-gradient(135deg, #5A2A5E, #2E1430) !important; color: #fff; }
html body .gcard_item_xSlide890:nth-child(even) { background: linear-gradient(135deg, #EAD3AE, #C9A06A) !important; color: #3A1A3D; }

/* دکمه‌های اصلی با رنگ‌های متفرقه → بنفش برند */
html body .btn-action.primary, html body .card-button, html body .rating-btn,
html body .charge-page .btn, html body .main .btn:not(.btn-outline):not(.secondary), html body .simpleBtn {
  background: var(--iu-plum) !important; color: #fff !important; border: 0 !important;
  box-shadow: 0 6px 16px rgba(78, 35, 81, .22) !important; border-radius: 14px !important;
}
html body .btn-action.primary *, html body .rating-btn *, html body .card-button * { color: #fff !important; }
html body .simpleHeader { background: var(--iu-plum-soft) !important; }

/* برچسب و مبلغ تخفیف */
html body .discount-amount, html body .sale-badge { background: var(--iu-gold-soft) !important; color: var(--iu-gold-ink) !important; }
html body .price-section { background: var(--iu-gold-soft) !important; }

/* تب‌ها */
html body .notif-page-category-item.notif-page-active { background: var(--iu-plum) !important; color: #fff !important; }

/* فیلدهای ورودی */
html body .main input:not([type=checkbox]):not([type=radio]):not(.search-box-inp) { background-color: var(--iu-surface); }

html body #superSwiperContainer_992x { background: transparent !important; }

/* ---------- صفحه‌ی ورود ---------- */
html body.login-body {
  background-color: var(--iu-plum) !important;
  background-image:
    radial-gradient(circle at 100% 0, transparent 0 118px, rgba(233,200,155,.16) 119px 121px, transparent 122px 164px, rgba(233,200,155,.16) 165px 167px, transparent 168px 210px, rgba(233,200,155,.16) 211px 213px, transparent 214px) !important;
  min-height: 100vh; min-height: 100dvh;
}
html body.login-body .login-box {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%) !important;
  width: 100%; max-width: 480px; margin: 0; min-height: 64vh; min-height: 64dvh;
  background: var(--iu-surface); border: 0; border-radius: 28px 28px 0 0;
  padding: 28px 24px calc(28px + env(safe-area-inset-bottom));
  -webkit-backdrop-filter: none; backdrop-filter: none;
  animation: none !important;
}
html body.login-body .login-logo {
  position: absolute; left: 0; right: 0; bottom: 100%; height: 30vh; height: 30dvh;
  display: flex; align-items: center; justify-content: center;
}
html body.login-body .login-logo img { width: auto; height: 54px; filter: brightness(0) invert(1); transform: none !important; }
html body.login-body .form-title { font-size: 22px; font-weight: 800; color: var(--iu-ink); text-align: right; margin-bottom: 14px; }
html body.login-body .form-input, html body.login-body .otp-input {
  height: 56px; border: 1px solid var(--iu-line-strong) !important; border-radius: 16px !important;
  background: #F9F6FA !important; font-size: 18px; color: var(--iu-ink);
}
html body.login-body .otp-input { height: 64px; font-size: 26px; font-weight: 800; }
html body.login-body .otp-input:focus { transform: none; background: #fff !important; border: 2px solid var(--iu-plum) !important; }
html body.login-body .submit-btn {
  height: 54px; padding: 0; border-radius: 16px; background: var(--iu-plum) !important;
  font-size: 16px; font-weight: 700; color: #fff;
}
html body.login-body .policy-btn, html body.login-body .edit-phone { color: var(--iu-plum) !important; font-weight: 700; }
/* اسلایدهای معرفی */
html body.login-body .bg-overlay { background: linear-gradient(180deg, rgba(46,20,48,.35), rgba(46,20,48,.92)) !important; }
html body.login-body .icon-circle { background: rgba(233,200,155,.16) !important; border-color: rgba(233,200,155,.4) !important; color: var(--iu-gold) !important; }
html body.login-body .icon-circle i { color: var(--iu-gold) !important; }
html body.login-body .title-accent { color: var(--iu-gold) !important; }
html body.login-body .tour-badge { background: rgba(255,255,255,.10) !important; border-color: rgba(255,255,255,.2) !important; color: #fff !important; }
html body.login-body .tour-badge i { color: var(--iu-gold) !important; }

/* ---------- فهرست گروهی (حساب من) ---------- */
.iu-list { background: var(--iu-surface); border: 1px solid var(--iu-line); border-radius: 20px; padding: 4px 6px; margin: 14px 0; direction: rtl; }
.iu-list-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 10px; color: var(--iu-ink) !important; border-bottom: 1px solid #F0EAF2; }
.iu-list-row:last-child { border-bottom: 0; }
.iu-list-ico { width: 38px; height: 38px; border-radius: 12px; background: var(--iu-plum-soft); color: var(--iu-plum); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.iu-list-txt { flex: 1; font-size: 14px; font-weight: 600; }
.iu-list-chev { color: #B9AEBF; display: flex; }
.iu-list-row:active { background: var(--iu-bg); }
html body #myapp-logoutOption { border: 1px solid #EBC9C4 !important; background: #fff !important; }
html body #myapp-logoutOption, html body #myapp-logoutOption * { color: var(--iu-err) !important; }

/* =====================================================================
   صفحه‌ی خانه — مطابق دقیق طرح (نسخه ۲)
   ===================================================================== */
html body .navbar.iu-top-home { padding: 0 20px; justify-content: space-between; }
.iu-home-logo { display: flex; align-items: center; }
html body .iu-home-logo img { height: 30px; width: auto; }
.iu-top-home .iu-ibtn { width: 44px; height: 44px; }

html body main.main { padding-top: 76px; }
/* استوری‌ها */
html body .featured-section-index { padding: 6px 20px 0 !important; margin: 0 !important; box-shadow: none !important; }
html body .featured-section-index .featured-container { gap: 12px !important; padding: 0 !important; scrollbar-width: none; }
html body .featured-section-index .story-item-wrapper { width: 66px; flex: 0 0 66px !important; }
html body .featured-section-index .featured-item {
  width: 66px !important; height: 66px !important; max-width: 66px !important; max-height: 66px !important;
  flex: 0 0 66px !important; padding: 2.5px !important;
}
html body .featured-section-index .ring { padding: 0 !important; }
html body .featured-section-index .inner-circle { border: 2.5px solid var(--iu-bg) !important; }
html body .featured-section-index .story-workshop-label {
  font-size: 11px !important; font-weight: 500 !important; color: var(--iu-ink) !important;
  max-width: 66px !important; margin-top: 6px !important;
}
html body .featured-section-index .viewed-story + .story-workshop-label { color: var(--iu-muted) !important; }
html body .featured-section-index .upload-trigger .ring { background: var(--iu-line-strong) !important; }
html body .featured-section-index .upload-trigger .inner-circle { background: #fff !important; }
html body .featured-section-index .upload-trigger .plus-icon { color: var(--iu-plum) !important; font-size: 20px; }

/* جستجو */
html body .search-wrapper { padding: 16px 20px 0 !important; }
html body .search-container { height: 48px !important; border-radius: 14px !important; padding: 0 14px !important; }

/* اسلایدر عکسی */
html body .ab-swiper-container { margin: 16px 0 0 !important; padding: 0 20px 18px !important; width: auto !important; }
html body .ab-swiper-slide { aspect-ratio: auto !important; height: 126px !important; border-radius: 20px !important; }
html body .ab-swiper-container .ab-swiper-pagination { bottom: 0 !important; line-height: 6px; }

/* عنوان بخش‌ها */
.iu-sec-head { display: flex; align-items: center; justify-content: space-between; padding: 0 20px; margin: 18px 0 10px; direction: rtl; }
.iu-sec-head h2 { margin: 0; font-size: 16px; font-weight: 700; color: var(--iu-ink); }
.iu-sec-head a { font-size: 13px; font-weight: 600; color: var(--iu-plum) !important; }

/* دسته‌بندی‌ها */
html body main .container { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 12px 10px !important; padding: 0 20px !important; margin: 0 !important; max-width: none; }
html body .cat { gap: 6px !important; min-width: 0; }
html body .cat-ico { width: 58px !important; height: 58px !important; border-radius: 18px !important; }
html body .cat-ico img { width: 36px !important; height: 36px !important; object-fit: contain !important; }
html body .cat-lbl { font-size: 12px !important; font-weight: 500 !important; color: var(--iu-ink) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* مراکز پیشنهادی */
.iu-recs { display: flex; gap: 10px; overflow-x: auto; padding: 0 20px 4px; scrollbar-width: none; direction: rtl; scroll-snap-type: x proximity; }
.iu-recs::-webkit-scrollbar { display: none; }
.iu-rec { flex: 0 0 168px; scroll-snap-align: start; background: var(--iu-surface); border: 1px solid var(--iu-line); border-radius: 16px; padding: 8px; display: flex; gap: 10px; align-items: center; color: var(--iu-ink) !important; }
.iu-rec-pic { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 12px; background: var(--iu-plum-tint); color: var(--iu-plum); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; font-weight: 800; font-size: 18px; }
.iu-rec-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.iu-rec-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.iu-rec-name { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iu-rec-off { font-size: 12px; font-weight: 600; color: var(--iu-gold-ink); }
.iu-rec:active { transform: scale(.97); }
html body .featured-section-index .upload-trigger .ring { display: none !important; }
html body .featured-section-index .upload-trigger { box-shadow: none !important; filter: none !important; }
html body .featured-section-index .upload-trigger .inner-circle { border: 1.5px dashed #C9AECD !important; box-shadow: none !important; }
html body .featured-section-index .upload-trigger::before, html body .featured-section-index .upload-trigger::after { display: none !important; }
html body .featured-section-index .upload-trigger .inner-circle { width: 100% !important; height: 100% !important; }
html body .featured-section-index .featured-wrapper { overflow: visible !important; }

/* ---------- هدر صفحه‌های داخلی: بازگشت + عنوان (طبق طرح) ---------- */
html body .navbar.iu-top-page { padding: 0 20px; justify-content: space-between; }
.iu-top-page .iu-top-side { gap: 10px; }
.iu-top-page .iu-ibtn { width: 44px; height: 44px; }
.iu-top-title { margin: 0; font-size: 18px; font-weight: 800; color: var(--iu-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 62vw; }
/* عنوان‌های تکراری داخل خود صفحه‌ها (حالا در هدر است) */
html body .payment-page > .page-header { display: none !important; }

/* =====================================================================
   اجزای صفحه‌های بازطراحی‌شده (کیف پول، تایید پرداخت، حساب من)
   ===================================================================== */
html body main.iu-page { padding: 76px 20px 120px !important; max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; direction: rtl; }
.iu-btn { height: 44px; padding: 0 14px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; font-weight: 700; border: 0; cursor: pointer; font-family: inherit; }
.iu-btn-gold { background: var(--iu-gold); color: #3A1A3D !important; }
.iu-btn-ghost { background: rgba(255,255,255,.12); color: #fff !important; border: 1px solid rgba(255,255,255,.22); font-weight: 600; }
.iu-btn-primary { background: var(--iu-plum); color: #fff !important; }
.iu-btn-block { width: 100%; height: 54px; border-radius: 16px; font-size: 16px; }

.iu-hero { position: relative; overflow: hidden; background: var(--iu-plum); color: #fff; border-radius: 22px; padding: 20px 18px 16px; display: flex; flex-direction: column; gap: 6px; }
.iu-hero-rings { position: absolute; left: -60px; top: -70px; opacity: .14; }
.iu-hero-label { font-size: 13px; color: #E6D6E7; position: relative; }
.iu-hero-amount { font-size: 30px; font-weight: 800; letter-spacing: -.3px; position: relative; }
.iu-hero-amount small { font-size: 14px; font-weight: 500; color: #E6D6E7; }
.iu-hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; position: relative; }

.iu-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.iu-stat { background: var(--iu-surface); border: 1px solid var(--iu-line); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 6px; color: var(--iu-ink) !important; min-width: 0; }
.iu-stat-ico { width: 32px; height: 32px; border-radius: 10px; background: var(--iu-plum-soft); color: var(--iu-plum); display: flex; align-items: center; justify-content: center; }
.iu-stat-label { font-size: 11px; color: var(--iu-muted); }
.iu-stat-val { font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.iu-card { background: var(--iu-surface); border: 1px solid var(--iu-line); border-radius: 20px; padding: 14px 16px; }
.iu-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.iu-card-head h2 { margin: 0; font-size: 15px; font-weight: 800; color: var(--iu-ink); }
.iu-card-head a { font-size: 13px; font-weight: 700; color: var(--iu-plum) !important; }
.iu-empty { text-align: center; color: var(--iu-muted); font-size: 13px; padding: 28px 0; }

.iu-tx { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #F0EAF2; }
.iu-card-head + .iu-tx { border-top: 0; }
.iu-tx-ico { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.iu-tx-ico.in { background: var(--iu-ok-soft); color: var(--iu-ok); }
.iu-tx-ico.out { background: var(--iu-err-soft); color: var(--iu-err); }
.iu-tx-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.iu-tx-name { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--iu-ink); }
.iu-tx-date { font-size: 12px; color: var(--iu-muted); }
.iu-tx-amt { font-size: 14px; font-weight: 800; direction: ltr; }
.iu-tx-amt.in { color: var(--iu-ok); } .iu-tx-amt.out { color: var(--iu-err); }
.iu-tx.is-failed { opacity: .55; }

/* تایید پرداخت */
.iu-invoice { background: var(--iu-surface); border: 1px solid var(--iu-line); border-radius: 22px; padding: 22px 18px 18px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.iu-invoice-ava { width: 64px; height: 64px; border-radius: 20px; background: var(--iu-plum-tint); color: var(--iu-plum); display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.iu-invoice-name { font-size: 18px; font-weight: 800; color: var(--iu-ink); }
.iu-invoice-sub { font-size: 12px; color: var(--iu-muted); }
.iu-invoice-label { font-size: 12px; color: var(--iu-muted); margin-top: 10px; }
.iu-invoice-amt { font-size: 32px; font-weight: 800; color: var(--iu-ink); }
.iu-invoice-amt small { font-size: 14px; font-weight: 500; color: var(--iu-muted); }
.iu-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 4px 12px; }
.iu-badge-ok { background: var(--iu-ok-soft); color: var(--iu-ok); }
.iu-badge-warn { background: var(--iu-gold-soft); color: var(--iu-gold-ink); }
.iu-badge-info { background: var(--iu-plum-soft); color: var(--iu-plum); }
.iu-sub-title { font-size: 15px; font-weight: 800; color: var(--iu-ink); margin: 4px 0 -4px; }
.iu-method { display: flex; align-items: center; gap: 12px; background: var(--iu-surface); border: 1px solid var(--iu-line); border-radius: 16px; padding: 14px 16px; }
.iu-method.is-on { border: 2px solid var(--iu-plum); }
.iu-method-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.iu-method-txt b { font-size: 14px; color: var(--iu-ink); }
.iu-method-txt span { font-size: 12px; color: var(--iu-muted); }
.iu-radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--iu-line-strong); flex: 0 0 auto; position: relative; }
.iu-method.is-on .iu-radio { border-color: var(--iu-plum); }
.iu-method.is-on .iu-radio::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--iu-plum); }
.iu-rows { background: var(--iu-surface); border: 1px solid var(--iu-line); border-radius: 16px; padding: 4px 16px; }
.iu-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; font-size: 14px; border-top: 1px solid #F0EAF2; }
.iu-row:first-child { border-top: 0; }
.iu-row span { color: var(--iu-muted); }
.iu-row b { color: var(--iu-ink); font-weight: 800; }
.iu-row.ok b { color: var(--iu-ok); }
.iu-row.total b { font-size: 16px; }
.iu-paybar { position: sticky; bottom: 96px; z-index: 5; display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.iu-paybar small { text-align: center; color: var(--iu-muted); font-size: 12px; }
.iu-btn-primary.is-loading { opacity: .7; pointer-events: none; }
.iu-btn-primary.is-done { background: var(--iu-ok); }
.iu-more { display: flex; flex-direction: column; gap: 8px; }
.iu-more a { display: flex; justify-content: space-between; align-items: center; background: var(--iu-surface); border: 1px solid var(--iu-line); border-radius: 14px; padding: 12px 14px; color: var(--iu-ink) !important; font-size: 13px; font-weight: 600; }
.iu-more a span:last-child { color: var(--iu-muted); font-weight: 500; }
.iu-alert { border-radius: 14px; padding: 12px 14px; font-size: 13px; font-weight: 600; text-align: center; }
.iu-alert.err { background: var(--iu-err-soft); color: var(--iu-err); }
.iu-alert.ok { background: var(--iu-ok-soft); color: var(--iu-ok); }

/* حساب من */
.iu-profile { background: var(--iu-surface); border: 1px solid var(--iu-line); border-radius: 20px; padding: 16px; display: flex; align-items: center; gap: 14px; }
.iu-profile-ava { width: 60px; height: 60px; border-radius: 20px; background: var(--iu-plum); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; flex: 0 0 auto; overflow: hidden; }
.iu-profile-ava img { width: 100%; height: 100%; object-fit: cover; }
.iu-profile-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.iu-profile-txt b { font-size: 17px; font-weight: 800; color: var(--iu-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iu-profile-txt span { font-size: 13px; color: var(--iu-muted); direction: ltr; text-align: right; }
.iu-chip-btn { height: 36px; padding: 0 12px; border-radius: 10px; background: var(--iu-plum-tint); color: var(--iu-plum) !important; font-size: 13px; font-weight: 700; display: flex; align-items: center; border: 0; font-family: inherit; cursor: pointer; }
.iu-promo { background: var(--iu-gold-soft); border: 1px solid #EAD9BC; border-radius: 18px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; color: #3A2A12 !important; }
.iu-promo-ico { width: 42px; height: 42px; border-radius: 14px; background: #fff; color: var(--iu-gold-ink); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.iu-promo-txt { display: flex; flex-direction: column; gap: 2px; }
.iu-promo-txt b { font-size: 14px; }
.iu-promo-txt span { font-size: 12px; color: #6A5230; }
.iu-logout { height: 50px; border-radius: 16px; border: 1px solid #EBC9C4; background: #fff; color: var(--iu-err) !important; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; font-family: inherit; width: 100%; }
.iu-list { margin: 0 !important; }
html body .iu-account { display: flex; flex-direction: column; gap: 14px; padding: 8px 20px 120px !important; max-width: 600px; direction: rtl; }
html body .iu-account .iu-profile { padding: 16px !important; border-radius: 20px !important; }
html body .iu-account .iu-profile-ava { background: var(--iu-plum) !important; width: 60px !important; height: 60px !important; border-radius: 20px !important; color: #fff; }
html body .iu-account .myapp-profile-arrow { background: var(--iu-plum-tint) !important; width: auto !important; height: 36px !important; border-radius: 10px !important; color: var(--iu-plum) !important; box-shadow: none !important; }
/* دسته‌بندی‌ها: دو ردیف اول؛ «همه» بقیه را باز می‌کند */
html body .iu-cats:not(.is-open) > .cat:nth-of-type(n+9) { display: none !important; }
html body .iu-account { background: transparent !important; box-shadow: none !important; border: 0 !important; }
html body .myapp-container.iu-account { margin: 0 auto; }
html body .restaurant-description { font-size: 14px; line-height: 1.9; color: var(--iu-muted); }
html body .restaurant-description h1, html body .restaurant-description h2, html body .restaurant-description h3,
html body .restaurant-description h4, html body .restaurant-description h5, html body .restaurant-description h6 { font-size: 15px !important; font-weight: 700; color: var(--iu-ink); margin: 0 0 4px; line-height: 1.8; }
html body .restaurant-description p { margin: 0 0 6px; }
html body.login-body .login-logo { flex-direction: column; gap: 16px; }
.iu-login-tag { color: #E6D6E7; font-size: 14px; line-height: 1.8; text-align: center; max-width: 270px; }

/* =====================================================================
   صفحه‌ی مرکز (prd.php) — طرح جدید
   ===================================================================== */
html body main.iu-prd { gap: 12px; }
.pv-gallery { position: relative; border-radius: 22px; overflow: hidden; background: var(--iu-plum-tint); aspect-ratio: 16 / 10; }
.pv-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; direction: rtl; }
.pv-track::-webkit-scrollbar { display: none; }
.pv-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; border: 0; padding: 0; background: none; cursor: zoom-in; }
.pv-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-count { position: absolute; top: 12px; left: 12px; background: rgba(34,22,42,.55); color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pv-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; }
.pv-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.6); transition: width .2s; }
.pv-dots i.on { width: 18px; background: #fff; }
.pv-empty { height: 100%; display: flex; align-items: center; justify-content: center; font-size: 56px; font-weight: 800; color: var(--iu-plum); }

.pv-info { display: flex; flex-direction: column; gap: 12px; padding: 16px !important; }
.pv-head { display: flex; align-items: flex-start; gap: 12px; }
.pv-head-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pv-cat { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--iu-plum) !important; background: var(--iu-plum-soft); border-radius: 999px; padding: 3px 10px; }
.pv-title { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.6; color: var(--iu-ink); }
.pv-fav { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 14px; border: 1px solid var(--iu-line); background: #fff; color: var(--iu-plum); font-size: 18px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.pv-fav.active { background: var(--iu-err-soft); border-color: #EBC9C4; color: var(--iu-err); }
.pv-fav i { color: inherit !important; }
.pv-off { display: flex; align-items: center; gap: 10px; background: var(--iu-gold-soft); border: 1px solid #EAD9BC; border-radius: 14px; padding: 10px 12px; }
.pv-off b { font-size: 22px; font-weight: 800; color: var(--iu-gold-ink); }
.pv-off span { font-size: 13px; color: #6A5230; font-weight: 600; }
.pv-desc { max-height: 120px; overflow: hidden; position: relative; }
.pv-desc:not(.open)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: linear-gradient(transparent, #fff); }
.pv-desc.open { max-height: none; }
.pv-more { align-self: flex-start; border: 0; background: none; color: var(--iu-plum); font: inherit; font-size: 13px; font-weight: 700; padding: 0; cursor: pointer; }
.pv-feats { display: flex; flex-wrap: wrap; gap: 8px; }
.pv-feats span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--iu-ink); background: var(--iu-bg); border: 1px solid var(--iu-line); border-radius: 999px; padding: 5px 10px; }
.pv-feats i { color: var(--iu-plum); }

.pv-actions { display: flex; gap: 10px; }
.pv-actions > * { flex: 1 1 0; min-width: 0; }
.pv-act { display: flex; flex-direction: column; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--iu-line); border-radius: 16px; padding: 12px 4px; font: inherit; font-size: 12px; font-weight: 700; color: var(--iu-ink) !important; cursor: pointer; }
.pv-act span { width: 40px; height: 40px; border-radius: 12px; background: var(--iu-plum-soft); color: var(--iu-plum); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.pv-act span i { color: inherit !important; }
.pv-act:active { transform: scale(.96); }

.pv-rows { padding: 4px 16px !important; }
.pv-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid #F0EAF2; color: var(--iu-ink) !important; cursor: default; }
.pv-row:first-child { border-top: 0; }
a.pv-row, .pv-row[role=button] { cursor: pointer; }
.pv-row-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--iu-plum-soft); color: var(--iu-plum); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.pv-row-ico i { color: inherit !important; }
.pv-row-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pv-row-txt small { font-size: 12px; color: var(--iu-muted); }
.pv-row-txt b { font-size: 14px; font-weight: 700; line-height: 1.8; }
.pv-row-txt b[dir=ltr] { text-align: right; }
.pv-row-txt em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--iu-plum); }
.pv-row-go { color: #B9AEBF; display: flex; }
.pv-social { display: flex; gap: 10px; padding: 14px 0; border-top: 1px solid #F0EAF2; }
.pv-social a { width: 44px; height: 44px; border-radius: 14px; background: var(--iu-bg); border: 1px solid var(--iu-line); color: var(--iu-plum) !important; display: flex; align-items: center; justify-content: center; font-size: 19px; }
.pv-social a i { color: inherit !important; }
.pv-branches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pv-branches button { border: 1px solid var(--iu-line); background: var(--iu-bg); border-radius: 12px; padding: 9px 12px; font: inherit; font-size: 13px; font-weight: 600; color: var(--iu-ink); cursor: pointer; }

.pv-viewer { position: fixed; inset: 0; z-index: 100000; background: rgba(20,10,22,.94); display: flex; align-items: center; justify-content: center; }
.pv-viewer[hidden] { display: none; }
.pv-viewer img { max-width: 100%; max-height: 82vh; object-fit: contain; }
.pv-v-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 14px; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.pv-v-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.pv-v-prev { right: 12px; } .pv-v-next { left: 12px; }
.pv-v-count { position: absolute; bottom: 24px; color: #fff; font-size: 13px; font-weight: 700; }
html body .main-inframe.iu-prd { padding-top: 16px !important; }

/* هدر خانه: منو راست، لوگو وسط، پشتیبانی و اعلان چپ */
html body .navbar.iu-top-home .iu-home-logo { position: absolute; right: 50%; transform: translateX(50%); }
html body .navbar.iu-top-home .hamburger-icon { display: inline-flex !important; }

/* =====================================================================
   کارت‌های من (cards.php) — هر کارت یک رنگ
   ===================================================================== */
.cc-t-plum   { --cc-a: #6A3170; --cc-b: #2E1430; --cc-ink: #fff; --cc-acc: #E9C89B; --cc-btn: #4E2351; }
.cc-t-teal   { --cc-a: #17796E; --cc-b: #0B3833; --cc-ink: #fff; --cc-acc: #9FE3D6; --cc-btn: #12665D; }
.cc-t-indigo { --cc-a: #3F4AA8; --cc-b: #171B4A; --cc-ink: #fff; --cc-acc: #BFC6FF; --cc-btn: #343E96; }
.cc-t-forest { --cc-a: #2F6B47; --cc-b: #12301F; --cc-ink: #fff; --cc-acc: #BFE6CB; --cc-btn: #275C3C; }
.cc-t-amber  { --cc-a: #E3B46E; --cc-b: #A8722B; --cc-ink: #2E1A06; --cc-acc: #fff; --cc-btn: #9A6726; }

html body main.iu-cards { padding-left: 0 !important; padding-right: 0 !important; }
.iu-cards > section, .iu-cards > .cc-actions, .iu-cards > .cc-dots { margin-left: 20px; margin-right: 20px; }
.cc-swiper { width: 100%; padding: 4px 0 2px !important; overflow: hidden; }
.cc-card { position: relative; overflow: hidden; aspect-ratio: 1.6 / 1; border-radius: 22px; padding: 18px; color: var(--cc-ink);
  background: linear-gradient(140deg, var(--cc-a) 0%, var(--cc-b) 100%); box-shadow: 0 14px 28px -12px var(--cc-b);
  display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; transition: transform .3s; }
.swiper-slide:not(.swiper-slide-active) .cc-card { transform: scale(.94); opacity: .75; }
.cc-rings { position: absolute; left: -70px; top: -80px; color: var(--cc-acc); opacity: .18; pointer-events: none; }
.cc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; position: relative; }
.cc-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cc-name b { font-size: 18px; font-weight: 800; }
.cc-name span { font-size: 12px; opacity: .8; }
.cc-badge { flex: 0 0 auto; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); }
.cc-t-amber .cc-badge { background: rgba(255,255,255,.35); border-color: rgba(255,255,255,.5); }
.cc-mid { display: flex; align-items: center; gap: 10px; position: relative; }
.cc-chip { width: 36px; height: 26px; border-radius: 6px; background: linear-gradient(135deg, #F3DDB4, #C9A06A); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.cc-num { font-size: 13px; letter-spacing: .5px; opacity: .85; }
.cc-bottom { display: flex; justify-content: space-between; align-items: flex-end; position: relative; }
.cc-bal small { display: block; font-size: 11px; opacity: .75; }
.cc-bal b { font-size: 22px; font-weight: 800; }
.cc-bal em { font-style: normal; font-size: 12px; font-weight: 500; opacity: .8; }
.cc-logo { height: 22px; width: auto; filter: brightness(0) invert(1); opacity: .9; }
.cc-t-amber .cc-logo { filter: brightness(0); opacity: .7; }

.cc-dots { display: flex; justify-content: center; gap: 6px; margin-top: 4px !important; }
.cc-dots i { width: 6px; height: 6px; border-radius: 3px; background: #D9CDDC; cursor: pointer; transition: width .2s; }
.cc-dots i.on { width: 18px; background: var(--iu-plum); }

.cc-info { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px !important; }
.cc-info-ico { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 12px; background: linear-gradient(140deg, var(--cc-a), var(--cc-b)); color: var(--cc-ink); display: flex; align-items: center; justify-content: center; }
.cc-info-ico i { color: inherit !important; }
.cc-info-txt { display: flex; flex-direction: column; gap: 2px; }
.cc-info-txt b { font-size: 14px; font-weight: 800; color: var(--iu-ink); }
.cc-info-txt span { font-size: 13px; line-height: 1.9; color: var(--iu-muted); }

.cc-actions { display: flex; gap: 10px; }
.cc-btn { flex: 1; height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; }
.cc-btn-main { background: var(--iu-plum); color: #fff !important; }
.cc-btn-sub { background: #fff; border: 1px solid var(--iu-line-strong); color: var(--iu-plum) !important; }
.iu-cards[data-theme=teal] .cc-btn-main { background: #12665D; }
.iu-cards[data-theme=indigo] .cc-btn-main { background: #343E96; }
.iu-cards[data-theme=forest] .cc-btn-main { background: #275C3C; }
.iu-cards[data-theme=amber] .cc-btn-main { background: #9A6726; }

.cc-list { display: flex; flex-direction: column; }
.cc-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border: 0; border-top: 1px solid #F0EAF2; background: none; font: inherit; text-align: right; cursor: pointer; width: 100%; color: var(--iu-ink); }
.cc-row:first-child { border-top: 0; }
.cc-row-sw { width: 46px; height: 32px; border-radius: 8px; background: linear-gradient(140deg, var(--cc-a), var(--cc-b)); color: var(--cc-ink); display: flex; align-items: center; justify-content: center; font-size: 13px; flex: 0 0 auto; }
.cc-row-sw i { color: inherit !important; }
.cc-row-txt { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.cc-row-txt b { font-size: 14px; font-weight: 700; }
.cc-row-txt small { font-size: 12px; color: var(--iu-muted); }
.cc-row-bal { font-size: 13px; font-weight: 800; color: var(--iu-ink); }
.cc-row.on .cc-row-txt b { color: var(--iu-plum); }
.cc-row.on { background: linear-gradient(90deg, transparent, var(--iu-plum-soft)); border-radius: 12px; }
.cc-centers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
.cc-center { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--iu-ink) !important; }
.cc-center img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; background: var(--iu-plum-tint); }

/* اسلایدر خانه: نسبت ۲ به ۱ (بلندتر)، عکس بدون کشیدگی و فقط کمی از دو طرف بریده می‌شود */
html body .ab-swiper-container .ab-swiper-wrapper { height: auto !important; }
html body .ab-swiper-container .ab-swiper-slide { height: auto !important; aspect-ratio: 2 / 1 !important; background: var(--iu-plum-tint); }
html body .ab-swiper-container .ab-swiper-slide a { height: 100% !important; }
html body .ab-swiper-container .ab-swiper-slide img { width: 100% !important; height: 100% !important; object-fit: cover !important; object-position: center; display: block; }
html body .ab-swiper-container { margin: 16px 20px 0 !important; padding: 0 0 18px !important; border-radius: 20px; }
html body .ab-swiper-container .ab-swiper-slide { aspect-ratio: 2.2 / 1 !important; }
html body .ab-swiper-container .ab-swiper-slide { aspect-ratio: 16 / 9 !important; }
/* لوگو وسط هدر در همه‌ی صفحه‌ها */
.iu-page-logo { position: absolute; right: 50%; transform: translateX(50%); display: flex; align-items: center; }
html body .iu-page-logo img { height: 28px; width: auto; }
.iu-top-page .iu-top-title { font-size: 15px; max-width: calc(50vw - 110px); }
@media (min-width: 600px) { .iu-top-page .iu-top-title { max-width: 190px; } }

/* =====================================================================
   منوی کناری (کشویی) — حالت اپلیکیشن
   ===================================================================== */
html body .sidebar-overlay { background: rgba(34, 22, 42, .45) !important; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
html body .sidebar-menu.iu-drawer {
  width: min(320px, 86vw) !important; max-width: none !important; height: 100% !important; height: 100dvh !important;
  top: 0 !important; right: calc(-1 * min(320px, 86vw) - 60px) !important; left: auto !important; padding: 0 !important;
  background: var(--iu-bg) !important; border-radius: 26px 0 0 26px !important; overflow: hidden !important;
  box-shadow: -12px 0 40px rgba(46, 20, 48, .25) !important;
  display: flex !important; flex-direction: column; direction: rtl; font-family: Vazirmatn, Tahoma, sans-serif;
}
.iu-dr-head { position: relative; overflow: hidden; background: linear-gradient(150deg, #5E2B62 0%, #4E2351 45%, #2E1430 100%); color: #fff;
  padding: calc(22px + env(safe-area-inset-top)) 18px 18px; display: flex; flex-direction: column; gap: 16px; flex: 0 0 auto; }
.iu-dr-rings { position: absolute; left: -80px; top: -90px; opacity: .16; pointer-events: none; }
.iu-dr-user { display: flex; align-items: center; gap: 12px; position: relative; }
.iu-dr-ava { width: 56px; height: 56px; border-radius: 18px; background: var(--iu-gold); color: #3A1A3D; display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; position: relative; overflow: hidden; flex: 0 0 auto; box-shadow: 0 0 0 3px rgba(255,255,255,.18); }
.iu-dr-ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.iu-dr-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.iu-dr-txt b { font-size: 17px; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iu-dr-txt small { font-size: 13px; color: #E6D6E7; text-align: right; }
.iu-dr-wallet { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 8px;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18); border-radius: 16px; padding: 12px 14px; color: #fff !important; }
.iu-dr-wallet span { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #E6D6E7; }
.iu-dr-wallet b { font-size: 16px; font-weight: 800; color: var(--iu-gold); white-space: nowrap; }
.iu-dr-wallet b small { font-size: 11px; font-weight: 500; color: #E6D6E7; }

.iu-dr-body { flex: 1; overflow-y: auto; padding: 6px 14px 10px; -webkit-overflow-scrolling: touch; }
.iu-dr-label { font-size: 12px; font-weight: 700; color: var(--iu-muted); margin: 14px 8px 8px; }
.iu-dr-group { background: #fff; border: 1px solid var(--iu-line); border-radius: 18px; padding: 2px 4px; }
.iu-dr-item { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 10px; color: var(--iu-ink) !important; border-bottom: 1px solid #F3EEF4; font-size: 14px; font-weight: 600; }
.iu-dr-item:last-child { border-bottom: 0; }
.iu-dr-item > span:nth-child(2) { flex: 1; }
.iu-dr-item > svg { color: #C2B6C7; flex: 0 0 auto; }
.iu-dr-item:active { background: var(--iu-bg); border-radius: 14px; }
.iu-dr-ico { width: 36px; height: 36px; border-radius: 11px; background: var(--iu-plum-soft); color: var(--iu-plum); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.iu-dr-ico.gold { background: var(--iu-gold-soft); color: var(--iu-gold-ink); }
.iu-dr-badge { font-style: normal; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--iu-err); color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }

.iu-dr-foot { flex: 0 0 auto; padding: 12px 14px calc(14px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 8px; border-top: 1px solid var(--iu-line); background: var(--iu-bg); }
.iu-dr-logout { width: 100%; height: 48px; border-radius: 14px; border: 1px solid #EBC9C4; background: #fff; color: var(--iu-err) !important; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 700; }
.iu-dr-ver { font-size: 11px; color: #A59AAB; }
html body .sidebar-menu.iu-drawer.active { right: 0 !important; }

/* عکس پروفایل در «حساب من» و «استوری شما» */
html body .iu-account .iu-profile-ava { position: relative; }
html body .iu-account .iu-profile-ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
html body .iu-account .iu-profile-ava img[hidden] { display: none; }
html body .featured-section-index .upload-trigger .inner-circle.has-ava { border: 2.5px solid var(--iu-bg) !important; padding: 0; }
html body .featured-section-index .upload-trigger .inner-circle.has-ava img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.iu-story-plus { position: absolute; z-index: 3; bottom: -1px; left: -1px; width: 22px; height: 22px; border-radius: 50%; background: var(--iu-plum); color: #fff;
  border: 2px solid var(--iu-bg); font-size: 15px; font-weight: 800; line-height: 17px; text-align: center; box-sizing: border-box; }
