/* =====================================================================
   Customer account area (/shop/account/*) + navbar account chrome.
   Loaded on every storefront page by partials/navbar.blade.php.
   Uses logical properties so it works in LTR and RTL.
   ===================================================================== */

/* ---------- Navbar: bell + account dropdown ---------- */
.js-auth-only[hidden],
#navLoginBtn[hidden] { display: none !important; }
.dx-navbell { color: var(--primary) !important; padding: 8px 10px !important; font-size: 1rem; margin-inline-end: 2px; }
.dx-navbell:hover { color: var(--secondary) !important; }
.dx-navacc { display: inline-flex; }
.dx-navacc-btn {
  background: none;
  border: 1.5px solid rgba(97, 12, 47, 0.18);
  border-radius: 10px;
  color: var(--primary) !important;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 7px 12px !important;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
}
.dx-navacc-btn:hover, .dx-navacc-btn[aria-expanded="true"] { background: rgba(97, 12, 47, 0.06); }
.dx-navacc-btn.dropdown-toggle::after { margin-inline-start: 2px; }
.dx-navacc-menu {
  border: 1px solid rgba(44, 20, 26, 0.08);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 6px;
  min-width: 220px;
  text-align: start;
}
.dx-navacc-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
}
.dx-navacc-menu .dropdown-item i { width: 18px; text-align: center; color: var(--primary); }
.dx-navacc-menu .dropdown-item:hover,
.dx-navacc-menu .dropdown-item:focus { background: rgba(97, 12, 47, 0.06); color: var(--primary); }
.dx-navacc-menu .dropdown-item .acc-badge { margin-inline-start: auto; }
.dx-navacc-logout { color: #b42318 !important; }
.dx-navacc-logout i { color: #b42318 !important; }
@media (max-width: 991.98px) {
  .dx-navacc { width: 100%; }
  .dx-navacc-btn { width: 100%; justify-content: center; margin-block: 6px; }
  .dx-navacc-menu { width: 100%; }
}

/* ---------- Shell ---------- */
.acc-page [hidden] { display: none !important; }
.acc-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.acc-main { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.acc-side { position: sticky; top: 96px; }
@media (max-width: 991.98px) {
  .acc-layout { grid-template-columns: minmax(0, 1fr); }
}
.acc-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
}
.acc-flip { display: inline-block; }
[dir="rtl"] .acc-flip { transform: scaleX(-1); }

.acc-card {
  background: #fff;
  border: 1px solid rgba(44, 20, 26, 0.08);
  border-radius: 14px;
  padding: 22px;
  min-width: 0;
}
.acc-card-flush { padding: 8px; }
.acc-narrow { max-width: 620px; }
.acc-card-title {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--dark);
  margin: 0 0 16px;
}
.acc-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.acc-help { color: #8a7b80; font-size: 0.84rem; line-height: 1.6; }
.acc-err { display: block; color: #b42318; font-size: 0.8rem; min-height: 0; margin-top: 4px; }
.acc-err:empty { display: none; }
.acc-form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.acc-btn-sm { padding: 10px 18px; font-size: 0.86rem; }
.btn-red:disabled, .btn-red[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.acc-btn-soft {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid rgba(97, 12, 47, 0.2);
  background: #fff;
  color: var(--primary);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--font-body);
}
.acc-btn-soft:hover { background: rgba(97, 12, 47, 0.06); color: var(--primary); }
.acc-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
}
.acc-link:hover { text-decoration: underline; }
.acc-link:disabled { opacity: 0.55; cursor: not-allowed; text-decoration: none; }
.acc-link-danger { color: #b42318; }
.acc-icon-btn {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 10px;
  border: 1px solid rgba(97, 12, 47, 0.15);
  background: #fff;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0;
}
.acc-icon-btn:hover { background: rgba(97, 12, 47, 0.06); }
.acc-icon-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.acc-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}
.acc-badge.is-empty { display: none; }
.acc-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(27, 122, 90, 0.12);
  color: var(--green);
  border-radius: 6px;
  padding: 2px 7px;
  vertical-align: middle;
}
.acc-tag-muted { background: rgba(138, 123, 128, 0.15); color: #6a5b60; }
.acc-verified, .acc-unverified, .acc-pending {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.74rem;
  font-weight: 800;
  border-radius: 6px;
  padding: 2px 8px;
  text-decoration: none;
}
.acc-verified { background: rgba(27, 122, 90, 0.12); color: var(--green); }
.acc-unverified { background: #fff4e5; color: #b54708; }
.acc-unverified:hover { color: #93370d; text-decoration: underline; }
.acc-pending { background: #fff4e5; color: #b54708; }

/* ---------- Toast ---------- */
.acc-toast {
  position: fixed;
  inset-inline: 16px;
  bottom: 24px;
  margin-inline: auto;
  max-width: 420px;
  background: var(--dark);
  color: #fff;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  text-align: center;
}
.acc-toast.show { opacity: 1; transform: none; }
.acc-toast.is-success { background: #0f5132; }
.acc-toast.is-error { background: #912018; }

/* ---------- Avatar + profile header ---------- */
.acc-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-medium));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  overflow: hidden;
  flex: 0 0 auto;
}
.acc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.acc-avatar-lg { width: 76px; height: 76px; font-size: 1.6rem; }
.acc-avatar-xl { width: 96px; height: 96px; font-size: 2rem; }
.acc-profile { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.acc-profile-info { flex: 1 1 240px; min-width: 0; }
.acc-profile-name { font-family: var(--font-body); font-size: 1.35rem; font-weight: 800; color: var(--dark); margin: 0 0 6px; overflow-wrap: anywhere; }
.acc-profile-lines, .acc-biz { display: flex; flex-wrap: wrap; gap: 6px 16px; color: #6a5b60; font-size: 0.88rem; }
.acc-profile-lines span, .acc-biz span { display: inline-flex; align-items: center; gap: 6px; overflow-wrap: anywhere; }
.acc-profile-lines i, .acc-biz > span > i { color: var(--secondary); }
.acc-biz { margin-top: 8px; }

/* ---------- Hub ---------- */
.acc-hub { display: flex; flex-direction: column; gap: 20px; }
.acc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.acc-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid rgba(44, 20, 26, 0.08);
  border-radius: 14px;
  padding: 16px;
  text-decoration: none;
  color: var(--dark);
  transition: border-color 0.2s;
}
.acc-stat:hover { border-color: rgba(97, 12, 47, 0.35); color: var(--dark); }
.acc-stat-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--cream);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex: 0 0 44px;
}
.acc-stat-body { display: flex; flex-direction: column; min-width: 0; }
.acc-stat-label { font-size: 0.78rem; color: #8a7b80; font-weight: 600; }
.acc-stat-value { font-size: 1.1rem; font-weight: 800; color: var(--primary); }
@media (max-width: 767.98px) {
  .acc-stats { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}

/* ---------- Menu (sidebar + hub grid) ---------- */
.acc-menu { display: flex; flex-direction: column; }
.acc-menu-side {
  background: #fff;
  border: 1px solid rgba(44, 20, 26, 0.08);
  border-radius: 14px;
  padding: 8px;
}
.acc-menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; }
@media (max-width: 767.98px) {
  .acc-menu-grid { grid-template-columns: minmax(0, 1fr); }
}
.acc-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--dark);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  background: none;
  border: none;
  width: 100%;
  text-align: start;
  cursor: pointer;
  font-family: var(--font-body);
}
.acc-menu-item:hover { background: rgba(97, 12, 47, 0.05); color: var(--primary); }
.acc-menu-item.active { background: rgba(97, 12, 47, 0.08); color: var(--primary); }
.acc-menu-ico {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--cream);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  font-size: 0.9rem;
}
.acc-menu-label { flex: 1 1 auto; min-width: 0; }
.acc-menu-chev { color: #c4b5ba; }
.acc-menu-logout { color: #b42318; }
.acc-menu-logout .acc-menu-ico { background: #fee4e2; color: #b42318; }

/* ---------- Forms ---------- */
.acc-avatar-row { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; flex-wrap: wrap; }
.acc-avatar-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.acc-avatar-actions .acc-btn-soft { margin: 0; }
.fctrl:disabled, .fctrl[readonly] { background: #f7f2f4; color: #6a5b60; }
.acc-seg { display: flex; gap: 8px; }
.acc-seg label { flex: 1 1 0; margin: 0; cursor: pointer; }
.acc-seg input { position: absolute; opacity: 0; pointer-events: none; }
.acc-seg span {
  display: block;
  text-align: center;
  border: 2px solid #eee;
  border-radius: 9px;
  padding: 9px 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
}
.acc-seg input:checked + span { border-color: var(--primary); background: rgba(97, 12, 47, 0.06); color: var(--primary); }
.acc-seg input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.acc-check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: 0.9rem; color: var(--dark); }
.acc-check input { width: 18px; height: 18px; accent-color: var(--primary); }
.acc-pass { position: relative; }
.acc-pass .fctrl { padding-inline-end: 46px; }
.acc-pass-toggle {
  position: absolute;
  inset-inline-end: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  color: #8a7b80;
  width: 36px;
  height: 36px;
  cursor: pointer;
}
.acc-reqs { background: var(--light); border-radius: 10px; padding: 12px 16px; }
.acc-reqs-title { font-weight: 700; font-size: 0.84rem; margin: 0 0 6px; color: var(--dark); }
.acc-reqs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.acc-reqs li { font-size: 0.84rem; color: #8a7b80; display: flex; align-items: center; gap: 8px; }
.acc-reqs li i { font-size: 0.45rem; }
.acc-reqs li.ok { color: var(--green); }
.acc-reqs li.ok i::before { content: "\f00c"; font-size: 0.8rem; }
.acc-phone-current { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1rem; color: var(--dark); margin-bottom: 14px; flex-wrap: wrap; }
.acc-phone-current > i { color: var(--secondary); }
.acc-subcard { border-top: 1px solid rgba(97, 12, 47, 0.08); padding-top: 16px; margin-top: 16px; }
.acc-phone-input, .acc-otp-row, .acc-inline-form { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.acc-phone-input .acc-prefix { flex: 0 0 120px; width: 120px; direction: ltr; }
.acc-phone-input input[type="tel"] { flex: 1 1 160px; width: auto; min-width: 0; }
.acc-phone-input .btn-red, .acc-otp-row .btn-red, .acc-inline-form .btn-red { padding: 10px 18px; white-space: nowrap; }
.acc-inline-form .fctrl { flex: 1 1 180px; width: auto; min-width: 0; }
.acc-otp { flex: 0 0 140px; width: 140px; text-align: center; letter-spacing: 0.5em; font-size: 1.2rem; font-weight: 800; direction: ltr; }
.acc-otp-links { display: flex; gap: 18px; margin-top: 10px; }
.acc-otp-form .acc-link { margin-top: 10px; }

/* ---------- Addresses ---------- */
.acc-addr-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.acc-addr-list > .dx-empty, .acc-addr-list > .text-center { grid-column: 1 / -1; }
@media (max-width: 767.98px) {
  .acc-addr-list { grid-template-columns: minmax(0, 1fr); }
}
.acc-addr {
  display: flex;
  gap: 12px;
  border: 1px solid rgba(44, 20, 26, 0.1);
  border-radius: 12px;
  padding: 16px;
  min-width: 0;
}
.acc-addr.is-default { border-color: rgba(97, 12, 47, 0.45); background: #fffafb; }
.acc-addr-ico {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 10px;
  background: var(--cream);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.acc-addr-body { min-width: 0; flex: 1 1 auto; }
.acc-addr-title { font-weight: 800; color: var(--dark); margin-bottom: 4px; overflow-wrap: anywhere; }
.acc-addr-line { color: #6a5b60; font-size: 0.88rem; overflow-wrap: anywhere; }
.acc-addr-meta { color: #8a7b80; font-size: 0.82rem; margin-top: 4px; overflow-wrap: anywhere; }
.acc-addr-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.acc-modal .modal-header, .acc-modal .modal-footer { border-color: rgba(97, 12, 47, 0.08); }
.acc-modal .modal-title { font-weight: 800; color: var(--dark); }
.acc-modal .modal-footer { gap: 8px; }
.acc-modal .modal-footer > * { margin: 0; }
.acc-modal .btn-outline-pharm { padding: 10px 18px; }
[dir="rtl"] .acc-modal .btn-close { margin: -0.5rem auto -0.5rem -0.5rem; }
body.modal-open .cartfl, body.modal-open #btt { z-index: 1000; }
.acc-map-block { margin-bottom: 18px; }
.acc-map-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.acc-map {
  height: 280px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(44, 20, 26, 0.1);
  background: #eef0f2;
  z-index: 0;
}
.acc-map-status { font-size: 0.82rem; color: #6a5b60; margin-top: 8px; overflow-wrap: anywhere; }
.acc-map-status i { color: var(--primary); }
.acc-map-pin { background: none; border: none; }
.acc-map-pin i { font-size: 40px; color: var(--primary); filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.35)); line-height: 1; }
@media (max-width: 575.98px) {
  .acc-map { height: 230px; }
}

/* ---------- Wallet / loyalty ---------- */
.acc-balance-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: linear-gradient(120deg, var(--dark) 0%, var(--primary) 60%, var(--primary-medium) 100%);
  color: #fff;
  border-radius: 16px;
  padding: 24px;
}
.acc-balance-label { font-size: 0.82rem; font-weight: 600; opacity: 0.8; }
.acc-balance-value { font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 900; line-height: 1.2; }
.acc-balance-value small { font-size: 0.9rem; font-weight: 700; opacity: 0.8; }
.acc-balance-sub { font-size: 0.8rem; opacity: 0.75; }
.acc-balance-side {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px 16px;
  color: #fff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.acc-balance-side:hover { color: #fff; background: rgba(255, 255, 255, 0.18); }
.acc-balance-icon { font-size: 1.8rem; width: 64px; height: 64px; align-items: center; justify-content: center; padding: 0; }
.acc-tx-list { display: flex; flex-direction: column; }
.acc-tx {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(97, 12, 47, 0.07);
}
.acc-tx:last-child { border-bottom: none; }
.acc-tx-ico {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}
.acc-tx-ico.is-credit { background: rgba(27, 122, 90, 0.12); color: var(--green); }
.acc-tx-ico.is-debit { background: #fee4e2; color: #b42318; }
.acc-tx-body { flex: 1 1 auto; min-width: 0; }
.acc-tx-title { font-weight: 700; color: var(--dark); font-size: 0.9rem; overflow-wrap: anywhere; }
.acc-tx-meta { font-size: 0.78rem; color: #8a7b80; overflow-wrap: anywhere; }
.acc-tx-amount { font-weight: 800; white-space: nowrap; font-size: 0.92rem; }
.acc-tx-amount.is-credit { color: var(--green); }
.acc-tx-amount.is-debit { color: #b42318; }
.acc-more { display: flex; justify-content: center; margin-top: 14px; }
.acc-rewards { display: flex; flex-direction: column; gap: 12px; }
.acc-reward {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(44, 20, 26, 0.1);
  border-radius: 12px;
  padding: 14px;
  flex-wrap: wrap;
}
.acc-reward.can { border-color: rgba(97, 12, 47, 0.35); }
.acc-reward-ico {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 12px;
  background: var(--cream);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.acc-reward-body { flex: 1 1 200px; min-width: 0; }
.acc-reward-name { font-weight: 800; color: var(--dark); }
.acc-reward-meta { font-size: 0.8rem; color: #6a5b60; }
.acc-reward-progress { width: 100%; margin: 8px 0 4px; }
.acc-reward-cost { font-size: 0.78rem; color: #8a7b80; font-weight: 600; }
.acc-redeemed {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: rgba(27, 122, 90, 0.08);
  border: 1px solid rgba(27, 122, 90, 0.3);
  color: #0f5132;
  border-radius: 12px;
  padding: 14px 16px;
}
.acc-redeemed > i { font-size: 1.4rem; color: var(--green); }
.acc-redeemed > div { flex: 1 1 200px; }
.acc-redeemed code { font-size: 1rem; font-weight: 800; color: var(--primary); background: #fff; padding: 2px 8px; border-radius: 6px; }

/* ---------- Referral ---------- */
.acc-refer { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.acc-refer-hero { max-width: 460px; }
.acc-refer-ico {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--cream);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 10px;
}
.acc-refer-label { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; color: #8a7b80; }
.acc-refer-code {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 2px dashed rgba(97, 12, 47, 0.35);
  border-radius: 12px;
  padding: 10px 12px 10px 18px;
  max-width: 100%;
}
[dir="rtl"] .acc-refer-code { padding: 10px 18px 10px 12px; }
.acc-refer-code code { font-size: 1.4rem; font-weight: 900; color: var(--primary); letter-spacing: 0.08em; overflow-wrap: anywhere; direction: ltr; }
.acc-refer-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 460px; margin-top: 6px; }
.acc-refer-stats > div { background: var(--light); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; }
.acc-refer-stats strong { font-size: 1.5rem; color: var(--primary); font-weight: 900; }
.acc-refer-stats span { font-size: 0.8rem; color: #6a5b60; font-weight: 600; }

/* ---------- Notifications ---------- */
.acc-notif-list { display: flex; flex-direction: column; gap: 8px; }
.acc-notif-section { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #8a7b80; margin: 10px 0 2px; }
.acc-notif {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid rgba(44, 20, 26, 0.08);
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  transition: background 0.2s;
}
.acc-notif:hover { background: #fffafb; }
.acc-notif:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.acc-notif.is-unread { background: #fdf2f5; border-color: rgba(97, 12, 47, 0.2); }
.acc-notif-ico {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 10px;
  background: var(--cream);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.acc-notif-body { flex: 1 1 auto; min-width: 0; }
.acc-notif-title { font-weight: 800; color: var(--dark); font-size: 0.92rem; display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.acc-notif-text {
  color: #6a5b60;
  font-size: 0.86rem;
  margin-top: 2px;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-line;
}
.acc-notif.is-open .acc-notif-text { -webkit-line-clamp: unset; display: block; }
.acc-notif-meta { font-size: 0.76rem; color: #8a7b80; margin-top: 4px; }
.acc-notif-del { width: 34px; height: 34px; flex: 0 0 34px; color: #8a7b80; }
.acc-notif-del:hover { color: #b42318; }
.acc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex: 0 0 8px; }

/* ---------- Support chat ---------- */
.acc-chat { padding: 0; display: flex; flex-direction: column; height: min(72vh, 680px); min-height: 440px; overflow: hidden; }
.acc-chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(97, 12, 47, 0.08);
}
.acc-chat-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-medium));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
}
.acc-chat-body { flex: 1 1 auto; overflow-y: auto; padding: 16px 18px; background: var(--light); overscroll-behavior: contain; }
.acc-chat-older { text-align: center; margin-bottom: 10px; }
.acc-chat-day { text-align: center; margin: 12px 0; }
.acc-chat-day span { background: #fff; border: 1px solid rgba(44, 20, 26, 0.08); color: #8a7b80; font-size: 0.74rem; font-weight: 700; border-radius: 20px; padding: 3px 12px; }
.acc-msg { display: flex; margin-bottom: 8px; }
.acc-msg.is-mine { justify-content: flex-end; }
.acc-msg-bubble {
  max-width: min(78%, 520px);
  border-radius: 14px;
  padding: 9px 12px 6px;
  background: #fff;
  border: 1px solid rgba(44, 20, 26, 0.08);
  color: var(--dark);
  min-width: 0;
}
.acc-msg.is-mine .acc-msg-bubble { background: var(--primary); border-color: var(--primary); color: #fff; border-end-end-radius: 4px; }
.acc-msg.is-theirs .acc-msg-bubble { border-end-start-radius: 4px; }
.acc-msg-sender { font-size: 0.74rem; font-weight: 800; color: var(--primary); margin-bottom: 2px; }
.acc-msg-text { font-size: 0.9rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.acc-msg-time { font-size: 0.68rem; opacity: 0.7; text-align: end; margin-top: 2px; }
.acc-msg-time .is-read { color: #9fe3c9; opacity: 1; }
.acc-msg-img img { display: block; max-width: 100%; max-height: 260px; border-radius: 10px; margin-bottom: 4px; }
.acc-msg-video { display: block; max-width: 100%; max-height: 260px; border-radius: 10px; margin-bottom: 4px; }
.acc-msg-file { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: inherit; text-decoration: underline; margin-bottom: 4px; }
.acc-chat-file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: #fff;
  border-top: 1px solid rgba(97, 12, 47, 0.08);
  font-size: 0.85rem;
  color: var(--dark);
}
.acc-chat-file span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-chat-compose {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid rgba(97, 12, 47, 0.08);
  background: #fff;
}
.acc-chat-compose textarea {
  flex: 1 1 auto;
  min-width: 0;
  resize: none;
  border: 2px solid #eee;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  max-height: 140px;
  outline: none;
  line-height: 1.4;
}
.acc-chat-compose textarea:focus { border-color: var(--primary); }
.acc-send {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  cursor: pointer;
}
.acc-send:disabled { opacity: 0.6; cursor: not-allowed; }
@media (max-width: 575.98px) {
  .acc-card { padding: 16px; }
  .acc-card-flush { padding: 6px; }
  .acc-chat { padding: 0; height: 74vh; min-height: 400px; }
  .acc-chat-body { padding: 12px; }
  .acc-msg-bubble { max-width: 86%; }
  .acc-balance-card { padding: 18px; }
  .acc-phone-input .btn-red, .acc-inline-form .btn-red { flex: 1 1 100%; justify-content: center; }
}
