/* =========================================================
   Yooz — Loan single page
   Palette: --yz-* from the theme (fallbacks included)
   ========================================================= */

.yz-loan {
  /* Theme palette (overridden by the theme's :root if defined) */
  --_primary: var(--yz-color-primary, #1a73e8);
  --_primary-dark: var(--yz-color-primary-dark, #0f4fa8);
  --_secondary: var(--yz-color-secondary, #ff8a00);
  --_success: var(--yz-color-success, #22a06b);
  --_danger: var(--yz-color-danger, #e53935);
  --_text: var(--yz-color-text, #1c1c1e);
  --_muted: var(--yz-color-text-muted, #6b7280);
  --_heading: var(--yz-color-heading, #101828);
  --_bg: var(--yz-color-bg, #ffffff);
  --_bg-soft: var(--yz-color-bg-soft, #f5f6f8);
  --_border: var(--yz-color-border, #e5e7eb);
  --_border-soft: var(--yz-color-border-soft, #f3f4f6);
  --_gold: var(--yz-color-brand-gold, #c5a059);
  --_gray-300: var(--yz-color-gray-300, #d1d5db);
  --_gray-400: var(--yz-color-gray-400, #9ca3af);
  --_gray-600: var(--yz-color-gray-600, #4b5563);
  --_gray-700: var(--yz-color-gray-700, #374151);
  --_gray-800: var(--yz-color-gray-800, #1f2937);
  --_r-btn: var(--yz-radius-button, 8px);
  --_r-xl: var(--yz-radius-xl, 16px);
  --_r-2xl: var(--yz-radius-2xl, 24px);
  --_header-h: var(--yz-header-height, 80px);
  --_container: var(--yz-hf-container-width, 1280px);

  /* Added palette */
  --yz-color-primary-deep: #0b3d86;
  --yz-color-primary-soft: #e8f1fd;
  --yz-color-primary-on-deep: #bcd4f6;
  --yz-color-secondary-soft: #fff3e5;
  --yz-color-secondary-strong: #e07600;
  --yz-color-secondary-text: #8a4500;
  --yz-color-success-soft: #e6f5ee;
  --yz-color-success-text: #157a50;
  --yz-color-danger-soft: #fdecec;
  --yz-color-danger-text: #b3261e;

  --_ease: cubic-bezier(.22, .8, .24, 1);

  box-sizing: border-box;
  max-width: calc(var(--_container) + 48px);
  margin-inline: auto;
  padding: 32px 24px 96px;
  direction: rtl;
  color: var(--_text);
  background: var(--_bg);
  font-family: var(--yz-loan-font, "Vazirmatn", Tahoma, sans-serif);
  font-size: 16px;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 72px;
}
.yz-loan *, .yz-loan *::before, .yz-loan *::after { box-sizing: border-box; }
.yz-loan h1, .yz-loan h2, .yz-loan p { margin: 0; }
.yz-loan button { font-family: inherit; }
.yz-loan :focus-visible { outline: 3px solid var(--_primary); outline-offset: 3px; border-radius: 6px; }
.yz-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Breadcrumb ---------- */
.yz-loan__crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; color: var(--_muted); }
.yz-loan__crumbs a { color: var(--_muted); text-decoration: none; }
.yz-loan__crumbs a:hover { color: var(--_primary); }
.yz-loan__crumbs [aria-current] { color: var(--_heading); font-weight: 600; }

/* ---------- Top section ---------- */
.yz-loan__top { display: flex; flex-direction: column; gap: 32px; }
.yz-loan__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 40px;
  align-items: start;
}
.yz-loan__main { container-type: inline-size; display: flex; flex-direction: column; gap: 24px; min-width: 0; }

.yz-loan__meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.yz-bank { display: flex; align-items: center; gap: 14px; }
.yz-bank__logo {
  width: 56px; height: 56px; border-radius: var(--_r-xl);
  background: var(--_bg-soft); border: 1px solid var(--_border);
  display: grid; place-items: center; overflow: hidden;
  font-weight: 900; font-size: 13px; color: var(--_primary-dark);
}
.yz-bank__logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.yz-bank__label { display: block; font-size: 13px; color: var(--_muted); }
.yz-bank__name { display: block; font-size: 18px; font-weight: 700; color: var(--_heading); }

.yz-status {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 18px; border-radius: 9999px;
  font-size: 14px; font-weight: 800;
  background: var(--yz-color-success-soft); color: var(--yz-color-success-text);
}
.yz-status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--_success); position: relative; }
.yz-status__dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  background: var(--_success); opacity: .35; animation: yz-pulse 2s ease-out infinite;
}
.yz-loan[data-active="0"] .yz-status { background: var(--yz-color-danger-soft); color: var(--yz-color-danger-text); }
.yz-loan[data-active="0"] .yz-status__dot { background: var(--_danger); }
.yz-loan[data-active="0"] .yz-status__dot::after { display: none; }
.yz-loan[data-active="1"] [data-when-active="0"],
.yz-loan[data-active="0"] [data-when-active="1"] { display: none !important; }

.yz-loan__title { font-size: clamp(28px, 3.4vw, 48px); line-height: 1.4; font-weight: 900; letter-spacing: -.5px; color: var(--_heading); }
.yz-loan__lead { font-size: clamp(15px, 1.3vw, 18px); line-height: 1.9; color: var(--_gray-600); max-width: 680px; }

/* ---------- Amount panel ---------- */
.yz-amount {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--yz-color-primary-deep); color: #fff;
  border-radius: var(--_r-2xl);
  padding: clamp(22px, 4cqi, 36px) clamp(22px, 4.5cqi, 40px);
  display: flex; flex-direction: column; gap: clamp(22px, 3.5cqi, 32px);
}
.yz-amount__rings { position: absolute; z-index: -1; left: -140px; top: -160px; width: 420px; height: 420px; }
.yz-amount__rings circle { fill: none; stroke: #fff; stroke-width: 1.5; }
.yz-amount__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.yz-amount__label { display: block; font-size: 15px; color: var(--yz-color-primary-on-deep); margin-bottom: 6px; }
.yz-amount__value { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.yz-amount__num { font-size: clamp(34px, 8cqi, 68px); font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
.yz-amount__unit { font-size: clamp(14px, 2.2cqi, 20px); font-weight: 600; color: var(--yz-color-primary-on-deep); }

.yz-rate {
  flex-shrink: 0;
  width: clamp(76px, 13cqi, 112px); aspect-ratio: 1; border-radius: 50%;
  border: 2px solid var(--_secondary); background: rgba(255, 138, 0, .08);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.yz-rate__num { font-size: clamp(22px, 4cqi, 32px); font-weight: 900; line-height: 1.2; color: #ffa53a; }
.yz-rate__label { font-size: clamp(10px, 1.5cqi, 12px); color: var(--yz-color-primary-on-deep); }

.yz-schedule { display: flex; flex-direction: column; gap: 12px; position: relative; }
.yz-schedule__info { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--yz-color-primary-on-deep); }
.yz-schedule__info strong { color: #fff; }
.yz-schedule__bars { display: flex; gap: clamp(2px, .6cqi, 5px); height: clamp(30px, 5cqi, 40px); }
.yz-schedule__bar {
  flex: 1 1 0; border-radius: 4px;
  background: rgba(255, 255, 255, .22);
  transform-origin: bottom;
  transition: transform .5s var(--_ease), opacity .5s var(--_ease), background-color .2s;
}
.yz-schedule__bar.is-year { background: var(--_secondary); }
.yz-schedule__bar:hover { background: rgba(255, 255, 255, .55); }
.yz-schedule__bar.is-year:hover { background: #ffa53a; }
.yz-schedule.is-pending .yz-schedule__bar { transform: scaleY(.15); opacity: 0; }
.yz-schedule__marks { display: flex; justify-content: space-between; font-size: 12px; color: #9dbde9; }
.yz-schedule__tip {
  position: absolute; bottom: calc(100% - 26px); left: 0;
  transform: translate(-50%, -8px);
  padding: 6px 10px; border-radius: 8px;
  background: #fff; color: var(--_heading);
  font-size: 12px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .4);
  pointer-events: none; opacity: 0; transition: opacity .15s;
}
.yz-schedule__tip.is-on { opacity: 1; }

/* ---------- Stats ---------- */
.yz-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@container (min-width: 720px) {
  .yz-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
}
@container (max-width: 520px) {
  .yz-schedule__marks span:nth-child(2), .yz-schedule__marks span:nth-child(3) { display: none; }
}
.yz-stat {
  background: var(--_bg); border: 1px solid var(--_border); border-radius: var(--_r-xl);
  padding: 18px 20px; display: flex; flex-direction: column; gap: 12px;
}
.yz-stat__icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--yz-color-primary-soft); color: var(--_primary);
}
.yz-stat__icon--warm { background: var(--yz-color-secondary-soft); color: var(--yz-color-secondary-strong); }
.yz-stat__icon svg { width: 20px; height: 20px; }
.yz-stat__label { display: block; font-size: 13px; color: var(--_muted); }
.yz-stat__value { display: block; white-space: nowrap; font-size: clamp(17px, 1.5vw, 21px); font-weight: 800; color: var(--_heading); }
.yz-stat__value small { font-size: 13px; font-weight: 500; color: var(--_muted); }

/* ---------- Buy card ---------- */
.yz-buy {
  position: sticky; top: calc(var(--_header-h) + 24px);
  background: var(--_bg); border: 1px solid var(--_border); border-radius: var(--_r-2xl);
  padding: 32px; display: flex; flex-direction: column; gap: 22px;
  box-shadow: 0 25px 50px -24px rgba(15, 79, 168, .28);
}
.yz-buy__top { display: flex; align-items: center; justify-content: space-between; }
.yz-buy__caption { font-size: 15px; font-weight: 700; color: var(--_gray-700); }
.yz-loan .yz-icon-btn {
  width: 44px; height: 44px; border-radius: var(--_r-btn);
  border: 1px solid var(--_border); background: var(--_bg); color: var(--_gray-600);
  display: grid; place-items: center; cursor: pointer; transition: border-color .2s, color .2s;
}
.yz-loan .yz-icon-btn:hover { border-color: var(--_primary); color: var(--_primary); }
.yz-loan .yz-icon-btn svg { width: 18px; height: 18px; }
.yz-buy__price-label { display: block; font-size: 14px; color: var(--_muted); }
.yz-buy__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.yz-buy__price-num { font-size: clamp(32px, 3vw, 44px); font-weight: 900; line-height: 1.25; color: var(--_heading); }
.yz-buy__price-unit { font-size: 17px; font-weight: 600; color: var(--_muted); }

.yz-fee-note { border-radius: var(--_r-xl); padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.yz-fee-note svg { width: 22px; height: 22px; flex-shrink: 0; }
.yz-fee-note strong { display: block; font-size: 15px; font-weight: 800; }
.yz-fee-note span { display: block; font-size: 13px; }
.yz-fee-note--installment { background: var(--yz-color-secondary-soft); color: var(--yz-color-secondary-text); }
.yz-fee-note--installment svg { color: var(--yz-color-secondary-strong); }
.yz-fee-note--cash { background: var(--_bg-soft); color: var(--_gray-700); }
.yz-loan[data-fee-installment="1"] .yz-fee-note--cash,
.yz-loan[data-fee-installment="0"] .yz-fee-note--installment { display: none; }

.yz-buy__divider { height: 1px; background: var(--_border-soft); border: 0; margin: 0; }
.yz-facts { display: flex; flex-direction: column; gap: 14px; margin: 0; font-size: 15px; }
.yz-facts div { display: flex; justify-content: space-between; gap: 12px; }
.yz-facts dt { color: var(--_muted); }
.yz-facts dd { margin: 0; font-weight: 800; color: var(--_heading); text-align: left; }
.yz-facts .yz-facts__status { color: var(--yz-color-success-text); }
.yz-loan[data-active="0"] .yz-facts .yz-facts__status { color: var(--yz-color-danger-text); }

.yz-buy__actions { display: flex; flex-direction: column; gap: 12px; }
.yz-btn {
  height: 56px; border-radius: var(--_r-btn); border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 16px; font-weight: 800; text-decoration: none;
  transition: background-color .2s, transform .15s, box-shadow .2s;
}
.yz-btn svg { width: 20px; height: 20px; transition: transform .2s var(--_ease); }
.yz-btn--primary { background: var(--_primary); color: #fff; box-shadow: 0 10px 24px -10px rgba(26, 115, 232, .6); }
.yz-btn--primary:hover { background: var(--_primary-dark); }
.yz-btn--primary:hover svg { transform: translateX(-4px); }
.yz-btn--primary:active { transform: scale(.98); }
.yz-btn--ghost { height: 52px; background: var(--_bg); color: var(--_text); border: 1px solid var(--_gray-300); font-size: 15px; font-weight: 700; }
.yz-btn--ghost:hover { border-color: var(--_primary); color: var(--_primary); }
.yz-btn[disabled] { background: var(--_border-soft); color: var(--_gray-600); box-shadow: none; cursor: not-allowed; }

/* ---------- Section headings ---------- */
.yz-section { display: flex; flex-direction: column; gap: 24px; }
.yz-section__title { font-size: clamp(22px, 2.2vw, 30px); font-weight: 900; line-height: 1.4; color: var(--_heading); }
.yz-section__sub { font-size: 16px; color: var(--_muted); margin-top: 4px; }

/* ---------- Repayment ---------- */
.yz-repay { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.yz-panel { background: var(--_bg-soft); border-radius: var(--_r-2xl); padding: clamp(22px, 3vw, 36px); }

.yz-donut-card { display: flex; align-items: center; gap: 40px; }
.yz-donut { position: relative; width: 230px; flex-shrink: 0; aspect-ratio: 1; }
.yz-donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.yz-donut circle { fill: none; stroke-width: 22; }
.yz-donut__principal { stroke: var(--_primary); }
.yz-donut__interest { stroke: var(--_secondary); }
.yz-donut__track { stroke: var(--_border); }
.yz-donut__arc { transition: stroke-dasharray 1.2s var(--_ease), stroke-dashoffset 1.2s var(--_ease); }
.yz-donut__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.yz-donut__center span { font-size: 13px; color: var(--_muted); }
.yz-donut__center strong { font-size: 30px; font-weight: 900; color: var(--_heading); line-height: 1.3; }

.yz-legend { flex-grow: 1; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.yz-legend__item + .yz-legend__item { padding-top: 18px; border-top: 1px solid var(--_border); }
.yz-legend__row { display: flex; align-items: center; justify-content: space-between; }
.yz-legend__name { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.yz-legend__pct { font-size: 14px; color: var(--_muted); }
.yz-legend__value { display: block; font-size: 20px; font-weight: 800; color: var(--_heading); padding-right: 20px; margin-top: 4px; }
.yz-legend__value small { font-size: 13px; font-weight: 500; color: var(--_muted); }
.yz-swatch { width: 12px; height: 12px; border-radius: 4px; flex-shrink: 0; }
.yz-swatch--principal { background: var(--_primary); }
.yz-swatch--interest { background: var(--_secondary); }
.yz-swatch--fee { background: var(--_gold); }

.yz-cost { display: flex; flex-direction: column; gap: 24px; }
.yz-cost__label { display: block; font-size: 16px; font-weight: 700; color: var(--_gray-700); }
.yz-cost__total { display: block; font-size: clamp(26px, 2.6vw, 36px); font-weight: 900; color: var(--_heading); line-height: 1.4; }
.yz-cost__total small { font-size: 16px; font-weight: 600; color: var(--_muted); }
.yz-cost__hint { display: block; font-size: 13px; color: var(--_muted); }
.yz-cost__bar { display: flex; gap: 3px; height: 18px; border-radius: 9999px; overflow: hidden; }
.yz-cost__seg { height: 100%; transform-origin: right; transition: transform 1s var(--_ease); }
.yz-cost__seg--principal { background: var(--_primary); }
.yz-cost__seg--interest { background: var(--_secondary); transition-delay: .15s; }
.yz-cost__seg--fee { background: var(--_gold); transition-delay: .3s; }
.yz-cost.is-pending .yz-cost__seg { transform: scaleX(0); }
.yz-cost__list { display: flex; flex-direction: column; gap: 14px; font-size: 15px; margin: 0; }
.yz-cost__list div { display: flex; justify-content: space-between; gap: 12px; }
.yz-cost__list dt { display: flex; align-items: center; gap: 8px; }
.yz-cost__list dd { margin: 0; font-weight: 700; color: var(--_heading); }
.yz-cost__list .yz-swatch { width: 10px; height: 10px; border-radius: 3px; }

/* ---------- Guarantee ---------- */
.yz-guard { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.yz-guard__card {
  background: var(--_bg); border: 1px solid var(--_border); border-radius: var(--_r-2xl);
  padding: clamp(22px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 20px;
}
.yz-guard__label { font-size: 15px; font-weight: 700; color: var(--_gray-700); }
.yz-guard__count { font-size: 40px; font-weight: 900; line-height: 1.2; color: var(--_heading); }
.yz-guard__count small { font-size: 18px; font-weight: 600; color: var(--_muted); }
.yz-people { display: flex; gap: 10px; flex-wrap: wrap; }
.yz-person {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  border: 2px dashed var(--_gray-300); color: var(--_gray-400);
}
.yz-person svg { width: 22px; height: 22px; }
.yz-person.is-filled { background: var(--_primary); border: 0; color: #fff; }
.yz-guard__icon {
  width: 56px; height: 56px; border-radius: var(--_r-xl); display: grid; place-items: center;
  background: var(--yz-color-primary-soft); color: var(--_primary);
}
.yz-guard__icon svg { width: 26px; height: 26px; }
.yz-tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.yz-tags li {
  height: 40px; padding: 0 16px; border-radius: var(--_r-btn);
  background: var(--_bg-soft); border: 1px solid var(--_border);
  display: flex; align-items: center; font-size: 15px; font-weight: 700; color: var(--_gray-800);
}

.yz-holder { display: flex; gap: 12px; list-style: none; margin: 0; padding: 0; }
.yz-holder__opt {
  flex: 1 1 0; min-height: 56px; border-radius: var(--_r-xl);
  border: 1.5px solid var(--_gray-300); padding: 0 14px;
  display: flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 800; color: var(--_heading);
  opacity: .45; transition: opacity .3s, border-color .3s;
}
.yz-holder__check {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid var(--_gray-300); display: grid; place-items: center; color: transparent;
  transition: background-color .3s, border-color .3s, color .3s;
}
.yz-holder__check svg { width: 14px; height: 14px; }
.yz-holder__opt .yz-sr { display: none; }
.yz-loan[data-holder="buyer"] .yz-holder__opt--buyer,
.yz-loan[data-holder="receiver"] .yz-holder__opt--receiver { opacity: 1; border-color: var(--_primary); }
.yz-loan[data-holder="buyer"] .yz-holder__opt--buyer .yz-holder__check,
.yz-loan[data-holder="receiver"] .yz-holder__opt--receiver .yz-holder__check { background: var(--_primary); border-color: var(--_primary); color: #fff; }
.yz-loan[data-holder="buyer"] .yz-holder__opt--buyer .yz-sr,
.yz-loan[data-holder="receiver"] .yz-holder__opt--receiver .yz-sr { display: block; }
.yz-holder-note { font-size: 14px; line-height: 1.9; color: var(--_gray-600); }
.yz-loan[data-holder="buyer"] .yz-holder-note--receiver,
.yz-loan[data-holder="receiver"] .yz-holder-note--buyer { display: none; }

/* ---------- Description ---------- */
.yz-desc { background: var(--_bg-soft); border-radius: var(--_r-2xl); padding: clamp(22px, 3.2vw, 40px) clamp(22px, 3.8vw, 48px); display: flex; flex-direction: column; gap: 18px; }
.yz-desc__body { display: flex; flex-direction: column; gap: 14px; max-width: 960px; }
.yz-desc__body p { font-size: clamp(15px, 1.3vw, 17px); line-height: 2.1; color: var(--_gray-700); }

/* ---------- Mobile sticky bar ---------- */
.yz-stickybar {
  position: fixed; right: 0; bottom: 0; left: 0; z-index: 50;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--_bg); border-top: 1px solid var(--_border);
  box-shadow: 0 -12px 30px -18px rgba(15, 79, 168, .3);
  display: none; align-items: center; gap: 14px;
  transform: translateY(110%); transition: transform .35s var(--_ease);
}
.yz-stickybar.is-visible { transform: none; }
.yz-stickybar__price { flex-shrink: 0; display: flex; flex-direction: column; line-height: 1.5; }
.yz-stickybar__price span { font-size: 11px; color: var(--_muted); }
.yz-stickybar__price strong { font-size: 17px; font-weight: 900; color: var(--_heading); }
.yz-stickybar__price small { font-size: 11px; font-weight: 600; color: var(--_muted); }
.yz-stickybar .yz-btn { flex-grow: 1; height: 50px; font-size: 15px; }

/* ---------- Toast ---------- */
.yz-toast {
  position: fixed; left: 50%; bottom: 96px; z-index: 60;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--_gray-800); color: #fff; padding: 10px 18px; border-radius: 9999px;
  font-size: 14px; font-weight: 600; transition: opacity .25s, transform .25s var(--_ease);
}
.yz-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Animations ---------- */
@keyframes yz-pulse { 0% { transform: scale(.6); opacity: .5; } 100% { transform: scale(2); opacity: 0; } }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1200px) {
  .yz-loan__hero { grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; }
  .yz-buy { padding: 26px; }
  .yz-donut-card { gap: 28px; }
  .yz-donut { width: 190px; }
}

@media (max-width: 1023px) {
  .yz-loan { gap: 56px; padding-bottom: 120px; }
  .yz-loan__hero { grid-template-columns: minmax(0, 1fr); }
  .yz-buy { position: static; }
  .yz-repay { grid-template-columns: minmax(0, 1fr); }
  .yz-guard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yz-guard__card--holder { grid-column: 1 / -1; }
  .yz-stickybar { display: flex; }
}

@media (max-width: 640px) {
  .yz-loan { padding: 20px 16px 120px; gap: 44px; }
  .yz-loan__top { gap: 20px; }
  .yz-loan__crumbs [aria-current], .yz-loan__crumbs span:nth-last-child(2) { display: none; }
  .yz-loan__main { gap: 20px; }
  .yz-bank__logo { width: 46px; height: 46px; border-radius: 14px; }
  .yz-bank__name { font-size: 15px; }
  .yz-status { height: 32px; padding: 0 14px; font-size: 13px; }
  .yz-stat { padding: 14px 16px; gap: 10px; }
  .yz-stat__icon { width: 36px; height: 36px; border-radius: 10px; }
  .yz-buy { padding: 22px; gap: 18px; }
  .yz-donut-card { flex-direction: column; align-items: stretch; }
  .yz-donut { width: 200px; align-self: center; }
  .yz-guard { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .yz-guard__card--count { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .yz-guard__card--count .yz-guard__label { flex-basis: 100%; }
  .yz-guard__count { font-size: 30px; }
  .yz-person { width: 42px; height: 42px; }
  .yz-holder__opt { font-size: 15px; padding: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .yz-loan *, .yz-stickybar, .yz-toast { transition: none !important; animation: none !important; }
}

/* =========================================================
   WordPress integration (Yooz theme)
   این بخش ظاهر طرح را تغییر نمی‌دهد؛ فقط جلوی تداخل استایل‌های
   سراسری قالب (style.css / front.css) با این صفحه را می‌گیرد.
   - قواعد .yz-icon-btn بالاتر به .yz-loan محدود شده‌اند تا دکمه‌های
     آیکونی هدر (جستجو/منو) در صفحه‌ی وام به‌هم نریزند.
   ========================================================= */

/* فونت: همان فونت self-hosted قالب (متغیر --yz-font از assets/fonts/vazir-matn/font.css) */
.yz-loan { --yz-loan-font: var(--yz-font, "Vazirmatn", Tahoma, sans-serif); }

/* قاعده‌ی سراسری a:hover قالب رنگ متن دکمه‌های لینکی را عوض می‌کرد */
.yz-loan a.yz-btn--primary,
.yz-loan a.yz-btn--primary:hover { color: #fff; }
.yz-loan a.yz-btn--ghost { color: var(--_text); }
.yz-loan a.yz-btn--ghost:hover { color: var(--_primary); }

/* پاراگراف‌های تولیدشده از ادیتور توضیحات */
.yz-desc__body > :first-child { margin-top: 0; }
.yz-desc__body > :last-child { margin-bottom: 0; }
