/* ========== پنل حساب کاربری ایوان کالا ========== */
:root {
  --acc-red: #ef394e;
  --acc-text: #0c0c0c;
  --acc-muted: #81858b;
  --acc-border: #e0e0e2;
  --acc-bg: #f2f3f5;
  --acc-blue: #19bfd3;
  --acc-green: #00a049;
  --acc-orange: #f9a825;
  --font: "Yekan Bakh", "YekanBakh", Estedad, Vazirmatn, Tahoma, sans-serif;
}

.account-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--acc-bg);
  font-family: var(--font);
  color: var(--acc-text);
  -webkit-tap-highlight-color: transparent;
  /* فضای ناوبری شناور موبایل */
  padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)) !important;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}
.account-page .site-footer {
  margin-top: 28px;
  margin-bottom: 8px;
}
@media (min-width: 1024px) {
  .account-page {
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)) !important;
  }
}
.account-page *,
.account-page *::before,
.account-page *::after {
  box-sizing: border-box;
}
.account-page a,
.account-page button {
  -webkit-tap-highlight-color: transparent;
  font-family: inherit;
}
.account-page .container {
  width: min(var(--container, 1336px), calc(100% - 20px));
  max-width: 100%;
}

.ti-icon--pencil { --ti: url("icons/tabler/pencil.svg"); }
.ti-icon--logout { --ti: url("icons/tabler/logout.svg"); }
.ti-icon--list { --ti: url("icons/tabler/list.svg"); }
.ti-icon--package-export { --ti: url("icons/tabler/package-export.svg"); }
.ti-icon--file-invoice { --ti: url("icons/tabler/file-invoice.svg"); }
.ti-icon--circle-x { --ti: url("icons/tabler/circle-x.svg"); }
.ti-icon--truck-delivery { --ti: url("icons/tabler/truck-delivery.svg"); }
.ti-icon--circle-check { --ti: url("icons/tabler/circle-check.svg"); }
.ti-icon--package { --ti: url("icons/tabler/package.svg"); }
.ti-icon--map-pin { --ti: url("icons/tabler/map-pin.svg"); }
.ti-icon--plus { --ti: url("icons/tabler/plus.svg"); }
.ti-icon--x { --ti: url("icons/tabler/x.svg"); }
.ti-icon--gift { --ti: url("icons/tabler/gift.svg"); }
.ti-icon--bell { --ti: url("icons/tabler/bell.svg"); }
.ti-icon--clock { --ti: url("icons/tabler/clock.svg"); }
.ti-icon--shopping-bag { --ti: url("icons/tabler/shopping-bag.svg"); }
.ti-icon--heart { --ti: url("icons/tabler/heart.svg"); }
.ti-icon--user { --ti: url("icons/tabler/user.svg"); }
.ti-icon--home { --ti: url("icons/tabler/home.svg"); }
.ti-icon--arrow-right { --ti: url("icons/tabler/arrow-right.svg"); }
.ti-icon--chevron-left { --ti: url("icons/tabler/chevron-left.svg"); }
.ti-icon--search { --ti: url("icons/tabler/search.svg"); }

/* هدر مشترک خانه */
.account-page .header {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* موبایل‌اول: ستونی — دسکتاپ در media */
.acc-layout {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* sidebar */
.acc-side {
  background:
    linear-gradient(180deg, #ffffff 0%, #fcfcfd 100%);
  border: 1px solid #e8eaee;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
  animation: accFadeUp 0.45s cubic-bezier(0.22, 1.1, 0.36, 1) both;
}
@keyframes accFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.acc-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 16px;
  border-bottom: 1px solid #f0f0f1;
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(239, 57, 78, 0.08), transparent 55%),
    #fff;
}
.acc-user__avatar {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #ff6b7d 0%, #ef394e 100%);
  box-shadow: 0 8px 18px rgba(239, 57, 78, 0.28);
  animation: accAvatarIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes accAvatarIn {
  from { opacity: 0; transform: scale(0.7) rotate(-8deg); }
  to { opacity: 1; transform: none; }
}
.acc-user__edit {
  width: 40px;
  height: 40px;
  margin-inline-start: auto;
  border-radius: 12px;
  border: 1px solid #ebecef;
  background: #fff;
  color: var(--acc-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.acc-user__edit:hover {
  border-color: #ffc9d0;
  color: var(--acc-red);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(239, 57, 78, 0.12);
}
.acc-user__edit .ti-icon { width: 18px; height: 18px; font-size: 18px; }
.acc-user__meta { min-width: 0; display: grid; gap: 4px; flex: 1; }
.acc-user__meta strong {
  font-size: 14.5px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.acc-user__meta span {
  color: var(--acc-muted);
  font-size: 12px;
  font-weight: 600;
}

.acc-nav { display: grid; padding: 8px; gap: 2px; }
.acc-nav__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: transparent;
  padding: 11px 12px;
  color: #50565f;
  font-size: 13px;
  font-weight: 650;
  text-align: right;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.acc-nav__item:hover {
  background: #f6f7f9;
  color: var(--acc-text);
  transform: translateX(-2px);
}
.acc-nav__item.is-active {
  color: #b42336;
  background: linear-gradient(90deg, rgba(239, 57, 78, 0.12), rgba(239, 57, 78, 0.04));
  font-weight: 800;
}
.acc-nav__item.is-active::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--acc-red);
}
.acc-nav__ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #f3f4f6;
  color: #6b7280;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.acc-nav__item:hover .acc-nav__ico {
  transform: scale(1.04);
}
.acc-nav__item.is-active .acc-nav__ico {
  background: #ef394e;
  color: #fff;
  box-shadow: 0 6px 14px rgba(239, 57, 78, 0.28);
}
.acc-nav__item .ti-icon {
  width: 18px;
  height: 18px;
  font-size: 18px;
  color: inherit;
}
.acc-nav__item em {
  font-style: normal;
  flex: 1;
  text-align: right;
}
.acc-nav__badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 99px;
  background: var(--acc-red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
  animation: accBadgePop 0.35s ease;
}
@keyframes accBadgePop {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.acc-nav__item--danger { color: #d32f2f; }
.acc-nav__item--danger .acc-nav__ico {
  background: #fff1f2;
  color: #d32f2f;
}
.acc-nav__item--danger:hover { background: #fff5f5; }

/* main */
.acc-main {
  min-width: 0;
  width: 100%;
  animation: accFadeUp 0.5s 0.05s cubic-bezier(0.22, 1.1, 0.36, 1) both;
}
.acc-panel {
  background: #fff;
  border: 1px solid #e8eaee;
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 12px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.035);
  animation: accPanelIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.acc-panel--hero {
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(25, 191, 211, 0.06), transparent 50%),
    radial-gradient(100% 80% at 100% 0%, rgba(239, 57, 78, 0.06), transparent 45%),
    #fff;
}
@keyframes accPanelIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.acc-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.acc-panel__head h2 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.acc-panel__sub {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: #8a9099;
}
.acc-panel__link {
  border: 0;
  background: #f3fbfc;
  color: #0e8fa0;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 999px;
  transition: background 0.18s ease, transform 0.18s ease;
}
.acc-panel__link:hover {
  background: #e5f7fa;
  transform: translateX(-2px);
}
.acc-panel__link .ti-icon { width: 14px; height: 14px; font-size: 14px; }

/* overview order stats */
.acc-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.acc-stat {
  --i: 0;
  border: 1px solid #eef0f3;
  border-radius: 16px;
  padding: 14px 8px 12px;
  background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
  cursor: pointer;
  text-align: center;
  min-width: 0;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  animation: accStatIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i) * 0.07s);
}
@keyframes accStatIn {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
.acc-stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
  border-color: #ffd0d6;
}
.acc-stat:active { transform: translateY(-1px) scale(0.98); }
.acc-stat__icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 8px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  transition: transform 0.25s ease;
}
.acc-stat:hover .acc-stat__icon { transform: scale(1.06) rotate(-4deg); }
.acc-stat__icon .ti-icon { width: 22px; height: 22px; font-size: 22px; }
.acc-stat__icon--current { background: #e8f4ff; color: #1976d2; }
.acc-stat__icon--delivered { background: #e8f8ef; color: var(--acc-green); }
.acc-stat__icon--returned { background: #fff6e5; color: var(--acc-orange); }
.acc-stat__icon--cancelled { background: #f3f3f3; color: #757575; }
.acc-stat__num {
  display: block;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 6px;
  color: #1f2430;
  letter-spacing: -0.03em;
}
.acc-stat strong {
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 3px;
  line-height: 1.35;
}
.acc-stat span {
  color: var(--acc-muted);
  font-size: 10.5px;
  font-weight: 600;
  display: block;
  line-height: 1.35;
}

/* orders tabs */
.acc-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  margin: 0 0 16px;
  padding: 4px;
  scrollbar-width: none;
  background: #f4f5f7;
  border-radius: 14px;
}
.acc-tabs::-webkit-scrollbar { display: none; }
.acc-tab {
  flex: 1 1 0;
  border: 0;
  background: transparent;
  padding: 10px 10px;
  color: #6b7280;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 11px;
  white-space: nowrap;
  min-width: 0;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.acc-tab__label {
  display: inline-block;
  line-height: 1.2;
}
.acc-tab:hover { color: #1f2430; }
.acc-tab.is-active {
  color: #1f2430;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}
.acc-tab.is-active::after { display: none; }
.acc-tab__count {
  flex: 0 0 auto;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 99px;
  background: #e8eaee;
  color: #62666d;
  font-size: 11px;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
  font-variant-numeric: tabular-nums;
  transition: background 0.2s ease, color 0.2s ease;
}
.acc-tab.is-active .acc-tab__count {
  background: #ef394e;
  color: #fff;
}
.acc-orders-list {
  min-height: 180px;
}

.acc-order {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  grid-template-areas: "thumb meta status";
  gap: 8px 12px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
  animation: accItemIn 0.4s cubic-bezier(0.22, 1.1, 0.36, 1) both;
}
.acc-order:last-child { border-bottom: 0; }
@keyframes accItemIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.acc-order__thumbs {
  grid-area: thumb;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  background: #f7f7f8;
  border: 1px solid #f0f0f1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.acc-order__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.acc-order__thumbs img + img { display: none; }
.acc-order__thumb-fallback {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffe3e8, #ef394e);
  opacity: 0.55;
}
.acc-order__meta { grid-area: meta; min-width: 0; }
.acc-order__meta strong {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  margin-bottom: 4px;
}
.acc-order__meta > span {
  display: block;
  color: var(--acc-muted);
  font-size: 11px;
  line-height: 1.55;
}
.acc-order__progress {
  margin-top: 8px;
}
.acc-order__progress-bar {
  height: 4px;
  border-radius: 99px;
  background: #eef0f3;
  overflow: hidden;
  margin-bottom: 5px;
}
.acc-order__progress-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #19bfd3, #0e8fa0);
}
.acc-order__progress span {
  display: block;
  color: #1565c0;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.4;
}
.acc-order.is-delivered .acc-order__progress-bar i {
  background: linear-gradient(90deg, #39c06d, #00a049);
}
.acc-order__status {
  grid-area: status;
  justify-self: end;
  align-self: start;
  font-size: 10.5px;
  font-weight: 800;
  padding: 5px 9px;
  border-radius: 8px;
  white-space: nowrap;
}
.acc-order__status.is-current { background: #e8f4ff; color: #1565c0; }
.acc-order__status.is-delivered { background: #e8f8ef; color: var(--acc-green); }
.acc-order__status.is-returned { background: #fff6e5; color: #ef6c00; }
.acc-order__status.is-cancelled { background: #f5f5f5; color: #757575; }
.acc-order__status.is-returned { background: #fff6e5; color: #ef6c00; }

.acc-empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--acc-muted);
}
.acc-empty .ti-icon {
  width: 48px;
  height: 48px;
  font-size: 48px;
  color: #c0c2c5;
  margin-bottom: 10px;
}
.acc-empty p {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

/* empty states حرفه‌ای مشترک */
.acc-empty-illu {
  position: relative;
  overflow: hidden;
  margin: 4px 0 2px;
  padding: 34px 18px 28px;
  border: 1px dashed #e4e7ec;
  border-radius: 18px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(239, 57, 78, 0.06), transparent 55%),
    linear-gradient(180deg, #fff 0%, #fafbfc 100%);
  animation: accEmptyIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.acc-empty-illu--pin,
.acc-empty-illu--clock {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(25, 191, 211, 0.08), transparent 55%),
    linear-gradient(180deg, #fff 0%, #f7fcfd 100%);
  border-color: #d7eef3;
}
@keyframes accEmptyIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.acc-empty-illu__stage {
  position: relative;
  width: 112px;
  height: 108px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
}
.acc-empty-illu__ring {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(239, 57, 78, 0.2);
  animation: accEmptyRing 2.6s ease-out infinite;
}
.acc-empty-illu--pin .acc-empty-illu__ring,
.acc-empty-illu--clock .acc-empty-illu__ring {
  border-color: rgba(25, 191, 211, 0.28);
}
@keyframes accEmptyRing {
  0% { transform: scale(0.75); opacity: 0.5; }
  100% { transform: scale(1.2); opacity: 0; }
}
.acc-empty-illu__float {
  transform-origin: 48px 40px;
  animation: accEmptyFloat 2.8s ease-in-out infinite;
}
.acc-empty-illu__shadow {
  transform-origin: 48px 82px;
  animation: accEmptyShadow 2.8s ease-in-out infinite;
}
@keyframes accEmptyFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes accEmptyShadow {
  0%, 100% { transform: scaleX(1); opacity: 0.14; }
  50% { transform: scaleX(0.82); opacity: 0.08; }
}
.acc-empty-illu p {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
  color: #3f4064;
}
.acc-empty-illu small {
  display: block;
  max-width: 280px;
  margin: 0 auto 14px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.7;
  color: #8a8f98;
}
.acc-empty-illu__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  background: linear-gradient(145deg, #ff6b7d, #ef394e);
  color: #fff !important;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(239, 57, 78, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.acc-empty-illu__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(239, 57, 78, 0.28);
}
.acc-empty-illu--pin .acc-empty-illu__cta,
.acc-empty-illu--clock .acc-empty-illu__cta {
  background: linear-gradient(145deg, #5fd4e4, #19bfd3);
  box-shadow: 0 10px 20px rgba(25, 191, 211, 0.22);
}
@media (prefers-reduced-motion: reduce) {
  .acc-empty-illu,
  .acc-empty-illu__float,
  .acc-empty-illu__shadow,
  .acc-empty-illu__ring,
  .acc-stat,
  .acc-user__avatar,
  .acc-panel {
    animation: none !important;
  }
}

/* —— empty state پیام‌ها (انیمیشن) —— */
.acc-msg-empty {
  position: relative;
  overflow: hidden;
  margin: 4px 0 2px;
  padding: 36px 18px 30px;
  border: 1px dashed #d7eef3;
  border-radius: 18px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(25, 191, 211, 0.08), transparent 55%),
    linear-gradient(180deg, #fff 0%, #f7fcfd 100%);
  color: var(--acc-muted);
  animation: accMsgEmptyIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.acc-msg-empty.is-compact {
  padding: 28px 16px 22px;
}
.acc-msg-empty__stage {
  position: relative;
  width: 124px;
  height: 118px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
}
.acc-msg-empty__ring {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(25, 191, 211, 0.28);
  pointer-events: none;
}
.acc-msg-empty__ring--a {
  animation: accMsgRing 2.8s ease-out infinite;
}
.acc-msg-empty__ring--b {
  inset: 8px;
  border-color: rgba(239, 57, 78, 0.18);
  animation: accMsgRing 2.8s ease-out 1.1s infinite;
}
.acc-msg-empty__dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #19bfd3;
  opacity: 0.55;
  pointer-events: none;
}
.acc-msg-empty__dot--1 {
  top: 14px;
  right: 22px;
  animation: accMsgFloat 3.2s ease-in-out infinite;
}
.acc-msg-empty__dot--2 {
  bottom: 22px;
  left: 18px;
  width: 5px;
  height: 5px;
  background: #ef394e;
  animation: accMsgFloat 2.8s ease-in-out 0.4s infinite;
}
.acc-msg-empty__dot--3 {
  top: 42px;
  left: 12px;
  width: 4px;
  height: 4px;
  background: #5fd4e4;
  animation: accMsgFloat 3.6s ease-in-out 0.9s infinite;
}
.acc-msg-empty__icon {
  position: relative;
  z-index: 1;
  width: 96px;
  height: 96px;
  filter: drop-shadow(0 10px 18px rgba(25, 191, 211, 0.18));
}
.acc-msg-empty__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}
.acc-msg-empty__bell {
  transform-origin: 48px 22px;
  animation: accMsgBell 2.6s ease-in-out infinite;
}
.acc-msg-empty__sheet {
  transform-origin: 48px 47px;
  animation: accMsgSheet 2.6s ease-in-out infinite;
}
.acc-msg-empty__badge {
  transform-origin: 66.5px 28.5px;
  animation: accMsgBadge 1.8s ease-in-out infinite;
}
.acc-msg-empty__shadow {
  transform-origin: 48px 82px;
  animation: accMsgShadow 2.6s ease-in-out infinite;
}
.acc-msg-empty p {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
  color: #3f4064;
  letter-spacing: -0.01em;
}
.acc-msg-empty small {
  display: block;
  max-width: 260px;
  margin: 0 auto;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.7;
  color: #8a8f98;
}
@keyframes accMsgEmptyIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes accMsgBell {
  0%,
  100% {
    transform: rotate(0deg) translateY(0);
  }
  18% {
    transform: rotate(-7deg) translateY(-1px);
  }
  36% {
    transform: rotate(6deg) translateY(-2px);
  }
  52% {
    transform: rotate(-3deg) translateY(-1px);
  }
  68% {
    transform: rotate(2deg) translateY(0);
  }
}
@keyframes accMsgSheet {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }
  40% {
    transform: translateY(-3px);
    opacity: 0.92;
  }
}
@keyframes accMsgBadge {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
}
@keyframes accMsgShadow {
  0%,
  100% {
    transform: scaleX(1);
    opacity: 0.14;
  }
  40% {
    transform: scaleX(0.86);
    opacity: 0.08;
  }
}
@keyframes accMsgRing {
  0% {
    transform: scale(0.72);
    opacity: 0.55;
  }
  70% {
    opacity: 0.12;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}
@keyframes accMsgFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .acc-msg-empty,
  .acc-msg-empty__bell,
  .acc-msg-empty__sheet,
  .acc-msg-empty__badge,
  .acc-msg-empty__shadow,
  .acc-msg-empty__ring,
  .acc-msg-empty__dot {
    animation: none !important;
  }
}

/* lists / visits cards */
.acc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.acc-prod {
  border: 1px solid #f0f0f1;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.acc-prod:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}
.acc-prod a { display: block; color: inherit; }
.acc-prod__img {
  aspect-ratio: 1;
  background: #f7f7f8;
}
.acc-prod__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.acc-prod__body { padding: 8px 10px 10px; }
.acc-prod__body h3 {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  height: 2.9em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.acc-prod__body strong {
  font-size: 13px;
  font-weight: 800;
}

/* addresses / gifts / messages / info */
.acc-addr,
.acc-gift,
.acc-msg,
.acc-info-row {
  border: 1px solid #f0f0f1;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: #fff;
  animation: accItemIn 0.35s ease both;
}
.acc-msg[data-msg-id] {
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.acc-msg[data-msg-id]:hover {
  border-color: #dbe3ef;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}
.acc-addr__top,
.acc-gift__top,
.acc-msg__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.acc-addr__top strong,
.acc-gift__top strong,
.acc-msg__top strong {
  font-size: 13px;
  font-weight: 800;
}
.acc-chip {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 99px;
  background: #e8f8ef;
  color: var(--acc-green);
}
.acc-chip.is-used {
  background: #f5f5f5;
  color: #9e9e9e;
}
.acc-addr p,
.acc-gift p,
.acc-msg p {
  margin: 0;
  color: #62666d;
  font-size: 12px;
  line-height: 1.7;
}
.acc-panel__head--row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.acc-addr-hint {
  margin: -4px 0 12px;
  font-size: 12px;
  color: var(--acc-muted);
  line-height: 1.6;
  font-weight: 500;
}
.acc-addr-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: var(--acc-red, #ef394e);
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}
.acc-addr-add .ti-icon {
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: var(--ti) center / contain no-repeat;
  mask: var(--ti) center / contain no-repeat;
}
.acc-addr__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.acc-addr__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid #e0e0e2;
  background: #fff;
  font-size: 11.5px;
  font-weight: 700;
  color: #424750;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}
.acc-addr__btn--danger { color: #ef394e; border-color: #ffd0d6; }
.acc-addr-empty {
  border: 1.5px dashed #e0e0e2;
  border-radius: 12px;
  padding: 22px 16px;
  text-align: center;
  background: #fafafa;
}
.acc-addr-empty strong {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}
.acc-addr-empty p {
  margin: 0;
  color: #81858b;
  font-size: 12px;
}

.addr-sheet[hidden] { display: none !important; }
.addr-sheet {
  position: fixed;
  inset: 0;
  /* بالای هدر (100) و fnav (200) تا روی فرم نیفتند */
  z-index: 360;
  display: grid;
  place-items: end center;
}
.addr-sheet__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(12, 12, 12, .45);
  opacity: 0;
  transition: opacity .28s ease;
}
.addr-sheet.is-open .addr-sheet__backdrop { opacity: 1; }
.addr-sheet__panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(92vh, 760px);
  overflow: auto;
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 0 0 18px;
  transform: translateY(110%);
  transition: transform .32s cubic-bezier(.22, 1, .36, 1);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, .18);
}
.addr-sheet.is-open .addr-sheet__panel { transform: none; }
.addr-sheet__head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  background: #fff;
  border-bottom: 1px solid #f0f0f1;
}
.addr-sheet__head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
}
.addr-sheet__close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: #f5f5f5;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.addr-sheet__close .ti-icon {
  width: 18px;
  height: 18px;
  background: #424750;
  -webkit-mask: var(--ti) center / contain no-repeat;
  mask: var(--ti) center / contain no-repeat;
}
.addr-sheet__form {
  display: grid;
  gap: 12px;
  padding: 14px 16px 0;
}
.addr-sheet__form label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #424750;
}
.addr-sheet__form input,
.addr-sheet__form textarea {
  height: 44px;
  border: 1px solid #e0e0e2;
  border-radius: 10px;
  padding: 0 12px;
  font: inherit;
  background: #fff;
  width: 100%;
}
.addr-sheet__form textarea {
  height: auto;
  min-height: 84px;
  padding: 10px 12px;
  resize: vertical;
}
.addr-sheet__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.addr-sheet__check {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600 !important;
  grid-template-columns: none !important;
}
.addr-sheet__check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #ef394e;
  flex-shrink: 0;
}
.addr-sheet__actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 8px;
  margin-top: 4px;
  padding-bottom: 8px;
}
.addr-sheet__btn {
  height: 46px;
  border-radius: 12px;
  border: 0;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.addr-sheet__btn--ghost {
  background: #f5f5f5;
  color: #424750;
}
.addr-sheet__btn--primary {
  background: #ef394e;
  color: #fff;
}
@media (max-width: 520px) {
  .addr-sheet__row { grid-template-columns: 1fr; }
}
.acc-msg.is-unread {
  border-color: #ffd0d6;
  background: #fff8f9;
}
.acc-msg__top span {
  color: var(--acc-muted);
  font-size: 11px;
}

.acc-info-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.acc-info-row span { color: var(--acc-muted); font-size: 12px; }
.acc-info-row strong { font-size: 13px; font-weight: 700; }
.acc-info-form {
  display: grid;
  gap: 10px;
}
.acc-info-form label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #424750;
}
.acc-info-form input {
  height: 44px;
  border: 1.5px solid var(--acc-border);
  border-radius: 10px;
  padding: 0 12px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
.acc-info-form input:focus {
  border-color: var(--acc-red);
  box-shadow: 0 0 0 4px rgba(239, 57, 78, 0.12);
}
.acc-info-phone {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--acc-border);
  background: #f7f7f8;
}
.acc-info-phone__label {
  font-size: 12px;
  font-weight: 700;
  color: #424750;
}
.acc-info-phone__value {
  font-size: 16px;
  font-weight: 800;
  color: var(--acc-text, #0c0c0c);
  letter-spacing: 0.02em;
}
.acc-info-phone__note {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  color: var(--acc-muted, #81858b);
}
.acc-save {
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--acc-red), #ff5a6d);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(239, 57, 78, 0.25);
}

/* order sheet */
.order-sheet[hidden] { display: none !important; }
.order-sheet {
  position: fixed;
  inset: 0;
  /* بالای هدر و ناوبری شناور */
  z-index: 360;
}
.order-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 12, 0.45);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.order-sheet.is-open .order-sheet__backdrop { opacity: 1; }
.order-sheet__panel {
  position: absolute;
  inset: 0;
  background: #f5f5f5;
  display: flex;
  flex-direction: column;
  transform: translateX(-8%) scale(0.98);
  opacity: 0;
  transition: transform 0.38s cubic-bezier(0.22, 1.15, 0.36, 1), opacity 0.3s ease;
}
.order-sheet.is-open .order-sheet__panel {
  transform: none;
  opacity: 1;
}
.order-sheet__head {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
  background: #fff;
  border-bottom: 1px solid var(--acc-border);
  flex-shrink: 0;
}
.order-sheet__head h2 {
  margin: 0;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.order-sheet__back {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.order-sheet__back .ti-icon { width: 22px; height: 22px; font-size: 22px; }
.order-sheet__invoice {
  border: 0;
  background: transparent;
  color: var(--acc-blue);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  white-space: nowrap;
}
.order-sheet__invoice .ti-icon { width: 16px; height: 16px; font-size: 16px; flex-shrink: 0; }
@media (min-width: 900px) {
  .order-sheet__invoice-text::before {
    content: "مشاهده ";
  }
}
.order-sheet__body {
  flex: 1;
  overflow: auto;
  padding: 12px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.od-meta,
.od-box,
.od-track {
  background: #fff;
  border: 1px solid var(--acc-border);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
  animation: accItemIn 0.4s ease both;
}

/* کد رهگیری پست — جزئیات سفارش */
.od-track {
  position: relative;
  overflow: hidden;
  border: 0;
  color: #fff;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, 0.2), transparent 55%),
    linear-gradient(145deg, #0d47a1 0%, #1565c0 45%, #42a5f5 100%);
  box-shadow: 0 12px 28px rgba(21, 101, 192, 0.28);
  padding: 18px 16px 16px;
}
.od-track__pulse {
  position: absolute;
  inset: auto;
  width: 120px;
  height: 120px;
  right: -30px;
  top: -40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  animation: odTrackPulse 2.8s ease-in-out infinite;
  pointer-events: none;
}
.od-track__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.od-track__badge {
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.od-track__carrier {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.9;
}
.od-track__label {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.88;
  position: relative;
  z-index: 1;
}
.od-track__code {
  display: block;
  position: relative;
  z-index: 1;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.12em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  margin-bottom: 14px;
  animation: odTrackCodeIn 0.55s cubic-bezier(0.22, 1.15, 0.36, 1) both;
}
.od-track__copy {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: #0d47a1;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, background 0.2s ease;
}
.od-track__copy:hover {
  transform: translateY(-1px);
}
.od-track__copy-label,
.od-track__copy-ok {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.od-track__copy-ok {
  opacity: 0;
  transform: translateY(8px);
  color: #059669;
}
.od-track__copy.is-copied {
  background: #ecfdf5;
}
.od-track__copy.is-copied .od-track__copy-label {
  opacity: 0;
  transform: translateY(-8px);
}
.od-track__copy.is-copied .od-track__copy-ok {
  opacity: 1;
  transform: none;
}
@keyframes odTrackPulse {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50% { transform: scale(1.18); opacity: 0.9; }
}
@keyframes odTrackCodeIn {
  from { opacity: 0; transform: translateY(10px) scale(0.96); letter-spacing: 0.28em; }
  to { opacity: 1; transform: none; letter-spacing: 0.12em; }
}
.od-meta p {
  margin: 0 0 6px;
  color: var(--acc-muted);
  font-size: 12px;
}
.od-meta p:last-child { margin-bottom: 0; }
.od-meta bdi { color: var(--acc-text); font-weight: 700; }

.od-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 12.5px;
  align-items: flex-start;
}
.od-row:last-child { border-bottom: 0; }
.od-row span { color: var(--acc-muted); flex-shrink: 0; }
.od-row strong {
  font-weight: 700;
  text-align: left;
  min-width: 0;
  word-break: break-word;
}

.od-ship__top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.od-ship__top strong { font-size: 13px; }
.od-ship__top em {
  font-style: normal;
  color: var(--acc-red);
  font-size: 12px;
  font-weight: 700;
}

.od-progress {
  margin-bottom: 14px;
}
.od-progress__bar {
  height: 8px;
  border-radius: 99px;
  background: #ececec;
  overflow: hidden;
  margin-bottom: 8px;
}
.od-progress__fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #00a049, #35c976);
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.od-progress__fill.is-current {
  background: linear-gradient(90deg, #1976d2, #42a5f5);
}
.od-progress__fill.is-returned {
  background: linear-gradient(90deg, #ef6c00, #ffb74d);
}
.od-progress__label {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  color: var(--acc-green);
}
.od-progress__label.is-current { color: #1565c0; }
.od-progress__label.is-returned { color: #ef6c00; }
.od-progress__label.is-cancelled { color: #757575; }

.od-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid #f0f0f1;
}
.od-item__img {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  background: #f7f7f8;
  border: 1px solid #f0f0f1;
}
.od-item__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.od-item h3 {
  margin: 0 0 6px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.5;
}
.od-item p {
  margin: 0 0 4px;
  color: var(--acc-muted);
  font-size: 11.5px;
}
.od-item strong {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 800;
}

.acc-toast {
  position: fixed;
  left: 50%;
  bottom: calc(112px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(20px);
  background: #232933;
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  z-index: 320;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  max-width: min(420px, calc(100vw - 24px));
  text-align: center;
  box-sizing: border-box;
}
.acc-toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.acc-toast[hidden] { display: none !important; }
@media (min-width: 1024px) {
  .acc-toast {
    bottom: 28px;
  }
}

/* ========== موبایل: منوی عمودی کامل با متن ========== */
@media (max-width: 899px) {
  .acc-top__inner {
    height: 52px;
  }

  .acc-side {
    border-radius: 12px;
    width: 100%;
  }

  .acc-user {
    padding: 12px;
  }

  .acc-nav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .acc-nav__item {
    width: 100%;
    min-width: 0;
  }

  .acc-nav__item em {
    display: block;
    flex: 1;
    text-align: right;
    font-size: 13px;
  }

  .acc-user__avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 16px;
  }

  .acc-panel__head h2 {
    font-size: 14px;
  }

  .acc-tabs {
    margin-inline: 0;
    padding: 4px;
    gap: 2px;
  }
  .acc-tab {
    padding: 9px 6px;
    font-size: 12px;
    gap: 5px;
  }
  .acc-tab__count {
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
  }
  .acc-order {
    grid-template-columns: 52px minmax(0, 1fr);
    grid-template-areas:
      "thumb meta"
      "thumb status";
  }
  .acc-order__status {
    justify-self: start;
  }

  .acc-stat__num {
    font-size: 18px;
  }
  .acc-stat span {
    font-size: 10px;
  }

  .acc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .acc-toast {
    left: 12px;
    right: 12px;
    bottom: calc(112px + env(safe-area-inset-bottom, 0px));
    transform: translateY(20px);
    width: auto;
    max-width: none;
  }
  .acc-toast.is-show {
    transform: translateY(0);
  }
}

/* تبلت کوچک: آمار ۳تایی، سفارش‌ها فشرده */
@media (min-width: 600px) and (max-width: 899px) {
  .acc-stat {
    padding: 14px 10px;
  }
  .acc-stat strong {
    font-size: 13px;
  }
  .acc-order {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    grid-template-areas: "thumb meta status";
    align-items: center;
  }
  .acc-order__thumbs {
    width: 64px;
    height: 64px;
  }
  .acc-order__status {
    justify-self: end;
  }
}

/* دسکتاپ */
@media (min-width: 900px) {
  .acc-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 16px;
    margin-top: 16px;
    align-items: start;
  }

  .acc-side {
    position: sticky;
    top: 72px;
  }

  .acc-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .acc-stat {
    padding: 14px 10px;
  }
  .acc-stat__icon {
    width: 52px;
    height: 52px;
  }
  .acc-stat__icon .ti-icon {
    width: 26px;
    height: 26px;
    font-size: 26px;
  }
  .acc-stat strong {
    font-size: 13px;
  }
  .acc-stat span {
    font-size: 12px;
  }

  .acc-order {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    grid-template-areas: "thumb meta status";
    align-items: center;
    gap: 12px;
  }
  .acc-order__thumbs {
    width: 64px;
    height: 64px;
  }
  .acc-order__status {
    justify-self: end;
    font-size: 11px;
  }

  .order-sheet__head h2 {
    font-size: 14px;
  }
  .order-sheet__invoice {
    font-size: 12px;
    max-width: none;
  }

  .acc-panel {
    padding: 16px;
  }
}

/* ——— تأیید خروج از حساب ——— */
.logout-modal[hidden] { display: none !important; }
.logout-modal {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: grid;
  place-items: center;
  padding: 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}
.logout-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: rgba(12, 12, 18, 0.48);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.logout-modal.is-open .logout-modal__backdrop { opacity: 1; }
.logout-modal__card {
  position: relative;
  z-index: 1;
  width: min(100%, 360px);
  padding: 28px 22px 20px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid #f0f0f1;
  box-shadow:
    0 4px 16px rgba(15, 23, 42, 0.06),
    0 24px 56px rgba(15, 23, 42, 0.18);
  text-align: center;
  overflow: hidden;
  transform: translateY(18px) scale(0.92);
  opacity: 0;
  transition:
    transform 0.4s cubic-bezier(0.22, 1.15, 0.36, 1),
    opacity 0.28s ease;
}
.logout-modal.is-open .logout-modal__card {
  transform: none;
  opacity: 1;
}
.logout-modal__glow {
  position: absolute;
  top: -60px;
  left: 50%;
  width: 220px;
  height: 220px;
  margin-left: -110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 57, 78, 0.18) 0%, rgba(239, 57, 78, 0) 70%);
  pointer-events: none;
}
.logout-modal__icon {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #fff1f2 0%, #ffe4e8 100%);
  border: 1px solid #ffd6dc;
  box-shadow: 0 8px 22px rgba(239, 57, 78, 0.14);
  animation: logoutIconPop 0.55s cubic-bezier(0.22, 1.15, 0.36, 1) both;
}
.logout-modal.is-open .logout-modal__icon {
  animation: logoutIconPop 0.55s cubic-bezier(0.22, 1.15, 0.36, 1) both;
}
@keyframes logoutIconPop {
  0% { transform: scale(0.6); opacity: 0; }
  60% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}
.logout-modal__icon .ti-icon {
  width: 32px;
  height: 32px;
  font-size: 32px;
  color: #ef394e;
}
.logout-modal__card h2 {
  position: relative;
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--acc-text);
  letter-spacing: -0.02em;
}
.logout-modal__card p {
  position: relative;
  margin: 0 0 22px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--acc-muted);
}
.logout-modal__actions {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.logout-modal__btn {
  height: 48px;
  border-radius: 14px;
  border: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.logout-modal__btn:active { transform: scale(0.97); }
.logout-modal__btn--ghost {
  background: #f5f5f6;
  color: #232933;
}
.logout-modal__btn--ghost:hover { background: #ececed; }
.logout-modal__btn--danger {
  background: #ef394e;
  color: #fff;
  box-shadow: 0 8px 20px rgba(239, 57, 78, 0.28);
}
.logout-modal__btn--danger:hover {
  background: #e02e44;
  box-shadow: 0 10px 24px rgba(239, 57, 78, 0.34);
}

/* صفحه جداگانه افزودن / ویرایش آدرس
   هدر سایت + fnav فضای فرم را می‌گیرند؛ اینجا مخفی می‌شوند تا فرم کامل دیده شود */
.addr-page {
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)) !important;
}
.addr-page .header,
.addr-page .fnav {
  display: none !important;
}
.addr-page__wrap {
  max-width: 720px;
  margin: 12px auto 32px;
  padding-bottom: 8px;
}
.addr-page__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}
.addr-page__back {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid #e0e0e2;
  background: #fff;
  display: grid;
  place-items: center;
  color: #424750;
  text-decoration: none;
}
.addr-page__back .ti-icon {
  width: 20px;
  height: 20px;
  font-size: 20px;
}
.addr-page__head h1 {
  margin: 2px 0 6px;
  font-size: 20px;
  font-weight: 800;
  color: #0c0c0c;
}
.addr-page__head p {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: #81858b;
  line-height: 1.6;
}
.addr-page__form {
  display: grid;
  gap: 14px;
}
.addr-page__card {
  background: #fff;
  border: 1px solid #e0e0e2;
  border-radius: 14px;
  padding: 16px;
  display: grid;
  gap: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.addr-page__card h2 {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 800;
  color: #232933;
}
.addr-page__form label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #424750;
}
.addr-page__form input,
.addr-page__form textarea {
  width: 100%;
  border: 1.5px solid #e0e0e2;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  background: #fff;
  box-sizing: border-box;
}
.addr-page__form input {
  height: 46px;
}
.addr-page__form textarea {
  padding: 12px;
  min-height: 110px;
  resize: vertical;
  line-height: 1.7;
}
.addr-page__form input:focus,
.addr-page__form textarea:focus {
  border-color: #ef394e;
  box-shadow: 0 0 0 4px rgba(239, 57, 78, 0.12);
}
.addr-page__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.addr-page__hint {
  margin: -2px 0 0;
  font-size: 12px;
  font-weight: 500;
  color: #81858b;
  line-height: 1.55;
}
.addr-page__check {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #424750;
  cursor: pointer;
}
.addr-page__check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #ef394e;
}
.addr-page__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  position: sticky;
  bottom: 0;
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, transparent, #f2f3f5 22%);
  z-index: 5;
}
.addr-page__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  border: 0;
}
.addr-page__btn--ghost {
  background: #fff;
  color: #424750;
  border: 1px solid #e0e0e2;
}
.addr-page__btn--primary {
  background: linear-gradient(135deg, #ef394e, #ff5a6d);
  color: #fff;
  box-shadow: 0 8px 18px rgba(239, 57, 78, 0.25);
}
.addr-page__err {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff1f2;
  color: #ef394e;
  font-size: 13px;
  font-weight: 700;
}
@media (max-width: 640px) {
  .addr-page__row { grid-template-columns: 1fr; }
  .addr-page__actions {
    flex-direction: column-reverse;
  }
  .addr-page__btn { width: 100%; }
}

/* ── کارت هدیه (از کدهای تخفیف ادمین) ── */
.acc-gift-lead {
  margin: -2px 0 16px;
  font-size: 12.5px;
  color: var(--acc-muted, #81858b);
  line-height: 1.7;
  font-weight: 500;
}
.acc-gift-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 720px) {
  .acc-gift-grid { grid-template-columns: 1fr 1fr; }
}
.acc-list-empty {
  text-align: center;
  padding: 36px 16px;
  border: 1px dashed #e4e7ec;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
}
.acc-list-empty .ti-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  opacity: 0.5;
  color: #19bfd3;
}
.acc-list-empty p {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 800;
  color: #3f4064;
}
.acc-list-empty small {
  display: block;
  color: #81858b;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.7;
}

.acc-gift-empty {
  text-align: center;
  padding: 36px 16px;
  border: 1px dashed #e4e7ec;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
}
.acc-gift-empty .ti-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 10px;
  opacity: 0.45;
}
.acc-gift-empty p {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 800;
  color: #3f4064;
}
.acc-gift-empty small {
  color: #81858b;
  font-size: 12px;
}

.acc-gift-card {
  --gift-i: 0;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 18px 18px 16px;
  color: #fff;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(255, 255, 255, 0.22), transparent 55%),
    linear-gradient(145deg, #c62828 0%, #ef394e 42%, #ff6b5b 100%);
  box-shadow:
    0 10px 28px rgba(239, 57, 78, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.18) inset;
  isolation: isolate;
  animation: giftCardIn 0.55s cubic-bezier(0.22, 1.1, 0.36, 1) both;
  animation-delay: calc(var(--gift-i) * 70ms);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.acc-gift-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 16px 36px rgba(239, 57, 78, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.2) inset;
}
.acc-gift-card__shine {
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.28) 48%,
    transparent 62%
  );
  transform: translateX(-30%) rotate(8deg);
  animation: giftShine 4.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
.acc-gift-card__ribbon {
  position: absolute;
  top: 14px;
  left: -28px;
  width: 110px;
  height: 18px;
  background: rgba(255, 255, 255, 0.16);
  transform: rotate(-35deg);
  pointer-events: none;
  z-index: 0;
}
.acc-gift-card__head,
.acc-gift-card__value,
.acc-gift-card__meta,
.acc-gift-card__copy {
  position: relative;
  z-index: 1;
}
.acc-gift-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.acc-gift-card__badge {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
  animation: giftPulse 2.4s ease-in-out infinite;
}
.acc-gift-card__title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.55;
  text-align: left;
}
.acc-gift-card__value {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.acc-gift-card__value strong {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.acc-gift-card__value span {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.85;
}
.acc-gift-card__meta {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.acc-gift-card__meta li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 8px;
  align-items: start;
  font-size: 12px;
  line-height: 1.55;
}
.acc-gift-card__meta li > span {
  opacity: 0.78;
  font-weight: 600;
}
.acc-gift-card__meta li > strong {
  font-weight: 800;
  word-break: break-word;
}
.acc-gift-card__code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.06em;
  font-size: 13px;
}

.acc-gift-card__copy {
  position: relative;
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: #c62828;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.acc-gift-card__copy:hover:not(:disabled) {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}
.acc-gift-card__copy:active:not(:disabled) {
  transform: scale(0.985);
}
.acc-gift-card__copy-label,
.acc-gift-card__copy-ok {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.acc-gift-card__copy-ok {
  opacity: 0;
  transform: translateY(8px);
  color: #059669;
}
.acc-gift-card__copy.is-copied .acc-gift-card__copy-label {
  opacity: 0;
  transform: translateY(-8px);
}
.acc-gift-card__copy.is-copied .acc-gift-card__copy-ok {
  opacity: 1;
  transform: none;
}
.acc-gift-card__copy.is-copied {
  background: #ecfdf5;
  color: #059669;
}

/* منقضی */
.acc-gift-card.is-expired {
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(255, 255, 255, 0.08), transparent 55%),
    linear-gradient(145deg, #6b7280 0%, #9ca3af 48%, #b0b7c3 100%);
  box-shadow: 0 8px 20px rgba(75, 85, 99, 0.18);
  filter: grayscale(0.35);
}
.acc-gift-card.is-expired:hover {
  transform: none;
  box-shadow: 0 8px 20px rgba(75, 85, 99, 0.18);
}
.acc-gift-card.is-expired .acc-gift-card__shine,
.acc-gift-card.is-expired .acc-gift-card__badge {
  animation: none;
}
.acc-gift-card.is-expired .acc-gift-card__badge {
  background: rgba(0, 0, 0, 0.18);
  border-color: rgba(255, 255, 255, 0.12);
}
.acc-gift-card__copy.is-expired,
.acc-gift-card__copy:disabled {
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: none;
  opacity: 0.95;
}

@keyframes giftCardIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes giftShine {
  0%, 55% { transform: translateX(-40%) rotate(8deg); opacity: 0; }
  65% { opacity: 1; }
  80%, 100% { transform: translateX(45%) rotate(8deg); opacity: 0; }
}
@keyframes giftPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.2); }
  50% { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .acc-side,
  .acc-main,
  .acc-order,
  .od-meta,
  .od-box,
  .od-track,
  .od-track__pulse,
  .od-track__code,
  .order-sheet__panel,
  .order-sheet__backdrop,
  .logout-modal__backdrop,
  .logout-modal__card,
  .logout-modal__icon,
  .acc-gift-card,
  .acc-gift-card__shine,
  .acc-gift-card__badge {
    animation: none !important;
    transition: none !important;
  }
}
