.public-shell .conversations-hero,
.public-shell .notifications-hero {
  padding: 72px 0 32px;
}

.public-shell .conversations-hero-inner,
.public-shell .notifications-hero-inner {
  display: grid;
  gap: 12px;
  max-width: 720px;
}

.public-shell .conversations-hero-inner h1,
.public-shell .notifications-hero-inner h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.public-shell .conversations-hero-inner p,
.public-shell .notifications-hero-inner p {
  margin: 0;
  color: var(--ink-500);
}

.public-shell .conversations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 18px;
}

.public-shell .conversations-grid .order-card .order-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.public-shell .conversations-grid .order-card .order-actions .btn {
  display: block;
  width: 100%;
  text-align: center;
  white-space: normal;
}

.public-shell:not(.buyer-notifications-page) .notifications-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 18px;
}

.public-shell:not(.buyer-notifications-page) .notifications-list {
  display: grid;
  gap: 14px;
}

.public-shell:not(.buyer-notifications-page) .filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-pill, 999px);
  background: var(--surface-card);
  color: var(--ink-700);
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid var(--border-card);
}

.public-shell:not(.buyer-notifications-page) .filter-chip.is-active .filter-count {
  background: var(--sun-400, #38bdf8);
  color: var(--surface-100);
  border-color: transparent;
}

.public-shell:not(.buyer-notifications-page) .notification-card {
  background: var(--surface-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 18px;
  display: grid;
  gap: 12px;
}

.public-shell:not(.buyer-notifications-page) .notification-card.is-unread {
  border-color: var(--border-hover);
  background: var(--surface-card-hover);
}

.public-shell:not(.buyer-notifications-page) .notification-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-900);
}

.public-shell:not(.buyer-notifications-page) .notification-body {
  margin: 0;
  color: var(--ink-500);
  line-height: 1.55;
}

.public-shell:not(.buyer-notifications-page) .notification-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--ink-500);
  font-size: 0.86rem;
}

.public-shell:not(.buyer-notifications-page) .notification-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.public-shell .status-message {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-weight: 600;
  color: var(--ink-700);
  background: var(--surface-100);
}

.public-shell .status-message.error {
  background: var(--error-bg);
  color: var(--error-text);
}

@media (max-width: 720px) {
  .public-shell .conversations-hero,
  .public-shell .notifications-hero {
    padding: 56px 0 24px;
  }
}

/* —— إشعارات العميل: نفس بنية وبطاقات لوحة البائع + حركة ظهور —— */
@keyframes buyerNotifDashIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.buyer-notif-dash-animate {
  animation: buyerNotifDashIn 0.62s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: calc(var(--stagger, 0) * 75ms);
}

@media (prefers-reduced-motion: reduce) {
  .buyer-notif-dash-animate {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

.buyer-notifications-page .buyer-notif-section {
  padding-top: clamp(28px, 5vw, 48px);
  padding-bottom: clamp(40px, 6vw, 72px);
}

.buyer-notifications-dashboard {
  max-width: min(40.5rem, 100%);
  margin-inline: auto;
}

.buyer-notifications-pagehead {
  margin-bottom: 18px;
}

.buyer-notifications-pagehead-eyebrow {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.buyer-notifications-pagehead-title {
  margin: 0;
  font-size: clamp(1.45rem, 3.2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-align: start;
}

/* شريط العدّ + قائمة «النوع» المنبثقة (مطابقة لوحة البائع) */
.buyer-notifications-page .seller-notifications-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid color-mix(in srgb, var(--ink-900, #fff) 12%, transparent);
}

.buyer-notifications-page .seller-notifications-count-line {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-500);
  line-height: 1.35;
}

.buyer-notifications-page .seller-notifications-count-line strong {
  font-weight: 800;
  color: var(--ink-900);
  font-variant-numeric: tabular-nums;
}

.buyer-notifications-page .seller-notifications-total-label {
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-inline-start: 2px;
}

.buyer-notifications-page .seller-notifications-shown {
  font-weight: 600;
  color: var(--ink-500);
  margin-inline-start: 4px;
}

.buyer-notifications-page .seller-notifications-shown strong {
  font-weight: 800;
  color: var(--ink-900);
  font-variant-numeric: tabular-nums;
}

.buyer-notifications-page .seller-notifications-filter.svc-filter {
  flex: 0 1 min(280px, 100%);
  min-width: min(220px, 100%);
  max-width: 360px;
  margin-inline-start: auto;
}

.buyer-notifications-page .svc-filter {
  position: relative;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  min-width: min(220px, 56vw);
}

.buyer-notifications-page .svc-filter-status-dropdown {
  position: relative;
  width: 100%;
  min-width: 0;
  z-index: 5;
}

.buyer-notifications-page .service-menu {
  position: relative;
  display: inline-flex;
  justify-content: center;
  width: 100%;
}

.buyer-notifications-page .service-menu.is-open {
  z-index: 10080;
}

.buyer-notifications-page .svc-filter-status-trigger {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid #e4e4e7;
  background: #fafafa;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: #18181b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
  -webkit-tap-highlight-color: transparent;
}

.buyer-notifications-page .svc-filter-status-trigger:hover {
  background: #f4f4f5;
  border-color: #d4d4d8;
}

.buyer-notifications-page .svc-filter-status-trigger__label {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #71717a;
}

.buyer-notifications-page .svc-filter-status-trigger__text {
  flex: 1;
  min-width: 0;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.buyer-notifications-page .svc-filter-status-trigger__chev {
  flex-shrink: 0;
  display: inline-flex;
  color: #71717a;
  transition: transform 0.2s ease;
}

.buyer-notifications-page .svc-filter-status-dropdown.is-open .svc-filter-status-trigger__chev {
  transform: rotate(180deg);
}

.buyer-notifications-page .service-menu-list {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  min-width: 100%;
  width: max-content;
  max-width: min(280px, calc(100vw - 24px));
  padding: 6px;
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  box-shadow: 0 4px 22px rgba(15, 23, 42, 0.12);
  display: none;
  z-index: 10075;
}

.buyer-notifications-page .service-menu.is-open .service-menu-list {
  display: grid;
  gap: 4px;
}

.buyer-notifications-page .service-menu-item.svc-filter-status-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: right;
  width: 100%;
  padding: 7px 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 0.78rem;
  color: #0a0a0a;
  cursor: pointer;
  font-family: inherit;
}

.buyer-notifications-page .service-menu-item.svc-filter-status-opt:hover {
  background: #f4f4f5;
}

.buyer-notifications-page .svc-filter-status-list .svc-filter-status-opt.is-current {
  background: #f4f4f5;
  color: #0a0a0a;
  font-weight: 700;
  border: 1px solid #3f3f46;
}

.buyer-notifications-page .svc-filter-status-list .svc-filter-status-opt.is-current:hover {
  background: #e4e4e7;
  color: #0a0a0a;
}

.buyer-notifications-page .seller-notifications-filter-count {
  flex-shrink: 0;
  min-width: 1.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #71717a;
  background: #f4f4f5;
  border-radius: 8px;
  padding: 2px 7px;
  line-height: 1.3;
}

.buyer-notifications-page .svc-filter-status-list .svc-filter-status-opt.is-current .seller-notifications-filter-count {
  background: rgba(10, 10, 10, 0.08);
  color: #0a0a0a;
}

.buyer-notifications-page .svc-filter-status-list .service-menu-item:focus {
  outline: none;
}

.buyer-notifications-page .svc-filter-status-list .service-menu-item:focus-visible {
  outline: 2px solid rgba(63, 63, 70, 0.28);
  outline-offset: 1px;
}

@media (max-width: 560px) {
  .buyer-notifications-page .seller-notifications-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .buyer-notifications-page .seller-notifications-filter.svc-filter {
    max-width: none;
    margin-inline-start: 0;
  }
}

.buyer-notifications-list-wrap {
  min-width: 0;
}

.buyer-notifications-page .notifications-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 100%;
  margin: 0;
}

.buyer-notifications-page .notification-card.notification-card--seller {
  margin: 0;
  padding: 0;
  display: block;
  gap: 0;
  border-radius: 16px;
  border: 1px solid #e4e4e8;
  background: #fafafa;
  box-shadow: none;
  overflow: hidden;
  transition: border-color 0.12s ease, background-color 0.12s ease;
}

.buyer-notifications-page .notification-card.notification-card--seller.is-unread {
  border-color: color-mix(in srgb, var(--sun-400, #38bdf8) 55%, #e4e4e8);
  background: color-mix(in srgb, var(--sun-400, #38bdf8) 6%, #fafafa);
}

.buyer-notifications-page .notification-card.notification-card--seller:hover {
  border-color: #d4d4d8;
}

.buyer-notifications-page .notification-card__inner {
  padding: 15px 17px 16px;
}

.buyer-notifications-page .notification-card__main {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.buyer-notifications-page .notification-card__head-row {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  min-width: 0;
}

.buyer-notifications-page .notification-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
}

.buyer-notifications-page .notification-card__icon-wrap {
  flex-shrink: 0;
  line-height: 0;
  margin-top: 1px;
}

.buyer-notifications-page .notification-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #0a0a0a;
  color: #fafafa;
}

.buyer-notifications-page .notification-card__icon svg {
  display: block;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

.buyer-notifications-page .notification-card__tools {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-start;
  width: 100%;
  padding-top: 12px;
  border-top: 1px solid #e4e4e8;
  margin: 0;
}

.buyer-notifications-page .notification-card__tools--buyer {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

.buyer-notifications-page .notification-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #0a0a0a;
  line-height: 1.4;
}

.buyer-notifications-page .notification-body {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #3f3f46;
  opacity: 0.92;
}

.buyer-notifications-page .notification-meta {
  margin: 2px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #71717a;
}

.buyer-notifications-page .notification-meta__time {
  font-variant-numeric: tabular-nums;
}

.buyer-notifications-page .buyer-notifications-open-link.btn.ghost {
  flex: 0 0 auto;
  width: auto;
  min-width: min(9.5rem, 100%);
  max-width: 100%;
  justify-content: center;
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 11px;
  font-size: 0.8rem;
  font-weight: 700;
  -webkit-tap-highlight-color: transparent;
  box-shadow: none;
  margin-top: 0;
  border-color: #d4d4d8;
  color: #0a0a0a;
  background: #fff;
}

.buyer-notifications-page .buyer-notifications-open-link.btn.ghost:hover {
  background: #f4f4f5;
}

.buyer-notifications-page .buyer-notifications-open-link.btn.ghost:focus {
  outline: none;
}

.buyer-notifications-page .buyer-notifications-open-link.btn.ghost:focus-visible {
  outline: 2px solid rgba(63, 63, 70, 0.28);
  outline-offset: 2px;
}

.buyer-notifications-page .notification-card__tools--buyer .badge {
  font-size: 0.72rem;
}

.buyer-notifications-page .notifications-message {
  margin-top: 16px;
  padding: 11px 14px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.84rem;
  display: none;
}

.buyer-notifications-page .notifications-message.error {
  background: rgba(185, 28, 28, 0.08);
  color: #991b1b;
  border: 1px solid rgba(185, 28, 28, 0.22);
}

.buyer-notifications-page .notifications-message.is-visible {
  display: block;
}

.buyer-notifications-page .notifications-message.is-visible:not(.error) {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid color-mix(in srgb, var(--ink-900, #fff) 14%, transparent);
  color: var(--ink-500);
}

@media (max-width: 560px) {
  .buyer-notifications-page .notification-card__head-row {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 12px;
  }

  .buyer-notifications-page .notification-card__icon-wrap {
    align-self: center;
    margin-top: 0;
  }

  .buyer-notifications-page .notification-card__tools--buyer {
    justify-content: stretch;
  }

  .buyer-notifications-page .buyer-notifications-open-link.btn.ghost {
    width: 100%;
    max-width: none;
    margin-top: 4px;
  }
}
