/* ==========================================================================
   مالی و رشد: کیف پول، تراکنش‌ها، پلن‌ها و ارتقا
   ========================================================================== */

/* ----------------------------- کارت موجودی ------------------------------ */
.wallet-hero {
  padding: var(--sp-5);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 50%),
    linear-gradient(135deg, rgba(160, 30, 200, 0.82), rgba(100, 2, 130, 0.85));
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  color: #fff;
  box-shadow: var(--sh-brand), inset 0 1px 1px rgba(255, 255, 255, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}
.wallet-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(110% 70% at 85% -20%, rgba(255, 255, 255, 0.25), transparent 55%);
  pointer-events: none;
}
.wallet-hero > * {
  position: relative;
  z-index: 1;
}
.wallet-hero__label {
  font-size: var(--fs-xs);
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.wallet-hero__label svg {
  width: 18px;
  height: 18px;
}
.wallet-hero__value {
  font-size: var(--fs-3xl);
  font-weight: 800;
  line-height: 1.3;
  margin-top: var(--sp-1);
}
.wallet-hero__value small {
  font-size: var(--fs-sm);
  font-weight: 400;
  opacity: 0.85;
}
.wallet-hero__actions {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}
.wallet-hero .btn--glass {
  flex: 1;
  color: #fff;
}

/* مبالغ پیشنهادی شارژ */
.amount-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.amount-chip {
  height: 40px;
  padding: 0 var(--sp-4);
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9),
    inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  transition: all var(--dur-2) var(--ease);
}
.amount-chip:hover {
  background: rgba(255, 255, 255, 0.75);
}
.amount-chip--active {
  color: var(--brand);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 2px var(--brand-400), inset 0 1px 1px rgba(255, 255, 255, 1);
}

/* ----------------------------- تراکنش‌ها -------------------------------- */
.tx-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}
.tx-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.tx-icon svg {
  width: 18px;
  height: 18px;
}
.tx-icon--in {
  color: var(--success);
  background: var(--success-soft);
}
.tx-icon--out {
  color: var(--brand);
  background: var(--brand-050);
}
.tx-body {
  flex: 1;
  min-width: 0;
}
.tx-title {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tx-date {
  font-size: var(--fs-xs);
  color: var(--ink-3);
}
.tx-amount {
  font-size: var(--fs-sm);
  font-weight: 800;
  flex-shrink: 0;
  direction: ltr;
}
.tx-amount--in {
  color: var(--success);
}
.tx-amount--out {
  color: var(--ink-2);
}

/* ----------------------------- پلن‌ها ----------------------------------- */
.plan-progress {
  padding: var(--sp-5);
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(24px) saturate(135%);
  -webkit-backdrop-filter: blur(24px) saturate(135%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}
.plan-progress__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}
.plan-progress__label {
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
.plan-progress .progress {
  background: rgba(28, 16, 36, 0.1);
  box-shadow: none;
  margin: 0;
}
.plan-progress .progress__bar {
  background: var(--grad-brand);
  box-shadow: none;
}
.plan-progress__hint {
  font-size: var(--fs-sm);
  color: var(--brand);
  font-weight: 600;
  margin-top: var(--sp-3);
  line-height: 1.6;
}

/* کارت پلن */
.plan-card {
  position: relative;
  padding: var(--sp-5);
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(24px) saturate(135%);
  -webkit-backdrop-filter: blur(24px) saturate(135%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: box-shadow var(--dur-2) var(--ease);
}
.plan-card--current {
  box-shadow: 0 0 0 2px var(--brand-400),
    inset 0 1px 1px rgba(255, 255, 255, 1);
}
.plan-card--gold {
  background: linear-gradient(180deg, rgba(255, 250, 235, 0.85), rgba(255, 244, 214, 0.7));
}
.plan-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
}
.plan-card__name {
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.plan-card__fee {
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--ink);
}
.plan-card__fee small {
  font-size: var(--fs-xs);
  font-weight: 400;
  color: var(--ink-3);
}
.plan-card__fee--free {
  color: var(--success);
}
.plan-perks {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.plan-perk {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
.plan-perk svg {
  width: 17px;
  height: 17px;
  color: var(--success);
  flex-shrink: 0;
}
.plan-card__req {
  font-size: var(--fs-xs);
  color: var(--ink-3);
  line-height: 1.7;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 0 0 1px rgba(28, 16, 36, 0.06);
}
.plan-card__req--ok {
  color: #0f766e;
  background: #d9f3f0;
  box-shadow: none;
}
.plan-card__req--brand {
  background: var(--brand-050);
  color: var(--brand);
  box-shadow: none;
}
.trial-banner {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-lg);
  background: #fff7e6;
  box-shadow: inset 0 0 0 1px #f0c04055;
  margin-bottom: var(--sp-3);
}
.trial-banner__icon {
  font-size: 1.25rem;
  line-height: 1;
}
.trial-banner__title {
  font-weight: 700;
  color: #7a5c00;
  font-size: var(--fs-sm);
}
.trial-banner__sub {
  color: #8a6a10;
  font-size: var(--fs-xs);
  margin-top: 2px;
}
.plan-badge-current {
  height: 26px;
  padding: 0 var(--sp-3);
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-050);
  display: inline-flex;
  align-items: center;
}

/* ----------------------------- اعلان‌ها --------------------------------- */
.notif {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  position: relative;
}
.notif--unread {
  background: rgba(255, 255, 255, 0.72);
}
.notif--unread::before {
  content: '';
  position: absolute;
  inset-inline-start: var(--sp-2);
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-100);
}
.notif__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  margin-inline-start: var(--sp-2);
}
.notif__icon svg { width: 18px; height: 18px; }
.notif__icon--order { color: #0f766e; background: #d9f3f0; }
.notif__icon--price { color: var(--brand); background: var(--brand-050); }
.notif__icon--stock { color: var(--danger); background: var(--danger-soft); }
.notif__icon--subscription { color: #9a6a08; background: var(--warning-soft); }
.notif__body { flex: 1; min-width: 0; }
.notif__title {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink);
}
.notif__text {
  font-size: var(--fs-xs);
  color: var(--ink-2);
  line-height: 1.7;
  margin-top: 2px;
}
.notif__date {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: var(--sp-1);
}
.notif-clear {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--brand);
}

/* ----------------------------- پروفایل ---------------------------------- */
.profile-head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-5);
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(24px) saturate(135%);
  -webkit-backdrop-filter: blur(24px) saturate(135%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}
.profile-head__avatar {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: var(--fs-xl);
  background: linear-gradient(135deg, rgba(160, 30, 200, 0.9), rgba(113, 1, 147, 0.92));
  box-shadow: var(--sh-brand), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}
.profile-head__avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-head__name { font-size: var(--fs-lg); font-weight: 800; color: var(--ink); }
.profile-head__mobile { font-size: var(--fs-sm); color: var(--ink-3); direction: ltr; text-align: start; }

/* لیست منوی پروفایل */
.menu-list {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}
.menu-list__item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4);
  color: var(--ink);
  transition: background var(--dur-1) var(--ease);
}
.menu-list__item + .menu-list__item {
  box-shadow: inset 0 1px 0 rgba(28, 16, 36, 0.06);
}
.menu-list__item:hover { background: rgba(255, 255, 255, 0.5); }
.menu-list__item:active { background: rgba(255, 255, 255, 0.7); }
.menu-list__ic {
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: var(--brand);
  background: var(--brand-050);
}
.menu-list__ic svg { width: 19px; height: 19px; }
.menu-list__label { flex: 1; font-size: var(--fs-sm); font-weight: 600; }
.menu-list__val { font-size: var(--fs-xs); color: var(--ink-3); }
.menu-list__chev { color: var(--ink-3); display: grid; place-items: center; }
.menu-list__chev svg { width: 18px; height: 18px; }
.menu-list__item--danger { color: var(--danger); }
.menu-list__item--danger .menu-list__ic { color: var(--danger); background: var(--danger-soft); }

/* ----------------------------- قوانین ----------------------------------- */
.legal {
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(24px) saturate(135%);
  -webkit-backdrop-filter: blur(24px) saturate(135%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  color: var(--ink-2);
  font-size: var(--fs-sm);
  line-height: 2;
}
.legal h3 {
  font-size: var(--fs-md);
  color: var(--ink);
  margin: var(--sp-4) 0 var(--sp-1);
}
.legal h3:first-child { margin-top: 0; }
.legal h4 { font-size: var(--fs-sm); color: var(--ink); font-weight: 700; margin: var(--sp-2) 0 var(--sp-1); }
.legal p { margin-bottom: var(--sp-2); }
.legal ul { padding-inline-start: var(--sp-4); }
.legal li { list-style: disc; margin-bottom: var(--sp-1); }
