/* منوی پروفایل سربرگ و صفحه‌های حساب (نسخه 1.44.0)، با اندازه‌های منوی سایت مرجع: منوی سفید با گوشه ۱۲ پیکسل و سایه نرم،
   هر گزینه ۴۴ پیکسل با نشان ۲۲ پیکسلی و نوشته ۱۶ پیکسل. */
.profile-menu {
  position: relative;
  display: inline-flex;
}
.profile-button svg,
.profile-dropdown svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 120;
  width: 300px;
  padding: 10px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 10px 30px rgb(0 0 0 / 12%);
}
.profile-dropdown[hidden],
.profile-subitems[hidden] {
  display: none;
}
.profile-dropdown [role="menuitem"] {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 16px;
  text-align: start;
  text-decoration: none;
  cursor: pointer;
}
.profile-dropdown [role="menuitem"]:hover,
.profile-dropdown [role="menuitem"]:focus-visible {
  background: var(--surface-alt);
  color: var(--qr-active, var(--ink));
  outline: none;
}
.profile-chev {
  margin-inline-start: auto;
  width: 16px !important;
  height: 16px !important;
}
.profile-sub [aria-expanded="true"] .profile-chev {
  transform: rotate(-90deg);
}
.profile-subitems [role="menuitem"] {
  min-height: 42px;
  padding-inline-start: 56px;
  font-size: 15px;
}
.profile-logout {
  margin: 0;
}
/* صفحه قرائت: دکمه پروفایل (برخلاف دکمه ورود قبلی) در سربرگ باریک هم دیده می‌شود، مثل سایت مرجع. */
.qr-body .portal-header .profile-menu {
  display: inline-flex;
}

/* صفحه‌های حساب */
.acc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 18px;
}
.acc-tabs a {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
}
.acc-tabs a[aria-current="page"] {
  border-color: var(--action);
  background: var(--action);
  color: var(--action-text, #fff);
}
.acc-msg {
  margin: 0 0 14px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 15px;
}
/* نسخه 1.71.0: سبز تیره‌تر؛ متن سفید روی #00b88a کنتراست ۲٫۶ داشت (کمتر از ۴٫۵). #007a5a حدود ۵٫۳ است. */
.acc-msg.is-ok {
  background: #007a5a;
  color: #fff;
}
.acc-msg.is-error {
  background: color-mix(in srgb, var(--error) 14%, var(--surface));
  color: var(--error);
}
.acc-form {
  display: grid;
  gap: 14px;
  max-width: 520px;
}
.acc-field {
  display: grid;
  gap: 6px;
  font-size: 14px;
}
.acc-field input {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--field-border, var(--line));
  border-radius: 8px;
  background: var(--field-bg, var(--surface));
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.acc-field input[readonly] {
  background: var(--surface-alt);
  color: var(--muted);
}
.acc-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.7;
}
.acc-check input {
  width: 22px;
  height: 22px;
  margin-top: 3px;
  accent-color: var(--action);
}
.acc-form .button {
  justify-self: start;
}
.acc-notices {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.acc-notices a {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
}
.acc-notices a:hover {
  border-color: var(--action);
}
.acc-notices span {
  color: var(--muted);
  font-size: 14px;
}
.acc-notices small {
  color: var(--muted);
  font-size: 12px;
}
.acc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.acc-table th,
.acc-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: start;
}
.acc-table th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.acc-resume {
  margin-top: 14px;
}
.acc-progress {
  height: 10px;
  margin: 12px 0 16px;
  border-radius: 999px;
  background: var(--surface-alt);
  overflow: hidden;
}
.acc-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #00b88a;
}
.acc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.acc-actions form {
  margin: 0;
}
.acc-plans {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.acc-plans form {
  margin: 0;
}
.acc-plans button {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.acc-plans button:hover,
.acc-plans button[aria-pressed="true"] {
  border-color: var(--action);
}
.acc-plans button[aria-pressed="true"] {
  box-shadow: inset 0 0 0 1px var(--action);
}
.acc-plans span {
  color: var(--muted);
  font-size: 14px;
}

/* نسخه 1.45.0: نشان اطلاعیه‌های تازه روی منوی حساب و «تازه» در فهرست اطلاعیه‌ها (سفید روی #c62828، کنتراست ۵٫۶). */
.profile-button {
  position: relative;
}
.profile-dot {
  position: absolute;
  top: 6px;
  inset-inline-end: 6px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--surface, #fff);
  border-radius: 50%;
  background: #c62828;
}
.profile-dot[hidden],
.profile-badge[hidden] {
  display: none;
}
.profile-badge {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-inline-start: auto;
  padding: 0 6px;
  border-radius: 11px;
  background: #c62828;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.profile-sub [data-profile-sub] .profile-badge {
  margin-inline-start: auto;
  margin-inline-end: 8px;
}
.acc-new {
  display: inline-block;
  margin-inline-start: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #c62828;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  vertical-align: middle;
}
.acc-inline select {
  min-height: 44px;
  max-width: 240px;
}

/* نسخه 1.138.0: «داده‌های من» و «حذف حساب» در صفحه مشخصات. رنگ‌ها فقط از نشانه‌های پوسته. */
.acc-data p, .acc-danger p { margin: 0 0 12px; line-height: 1.9; }
.acc-danger { border-color: color-mix(in srgb, var(--error) 40%, transparent); }
.acc-danger h2 { color: var(--error); }
.acc-danger ul.acc-msg { padding-inline-start: 28px; }
.acc-phrase { font-weight: 700; user-select: all; }
.acc-form .button.acc-delete {
  background: var(--error);
  border-color: var(--error);
  color: #fff;
}
@media (hover: hover) and (pointer: fine) {
  .acc-form .button.acc-delete:hover { filter: brightness(0.92); }
}
