/* سوق نعم — تصميم جيمناي (نموذجه الثاني، 11-04)، مقيّدٌ بنطاق السوق حتى لا يمسّ بقية الباب.
   ما بعد «إضافات التطبيق» نُقل من أنماط النموذج المضمّنة أو هو إصلاحٌ صغير؛ لا لون فيه من خارج رموزه. */
.souq-naam-section,
.receipt-modal-backdrop {
  --font-body: 'IBM Plex Sans Arabic', Tahoma, 'Segoe UI', system-ui, sans-serif;
  --font-display: 'NaamNum', 'IBM Plex Sans Arabic', Tahoma, system-ui, sans-serif;
  --naam-emerald: #0FA98E;
  --naam-emerald-deep: #097965;
  --naam-gold: #D9822B;
  --naam-coral: #C84B31;
  --naam-violet: #6D38D3;
  --naam-cobalt: #1E5EFF;
  --naam-teal: #0D8A7B;
  --naam-slate: #5A6B65;
  --bg-page: #F4EFE6;
  --bg-card-top: #FFFFFF;
  --bg-card-bottom: #FAF6EE;
  --bg-elevated: #FFFDF9;
  --bg-subtle: #EAE2D3;
  --bg-stub: #EFE7D8;
  --text-main: #18221F;
  --text-muted: #5A6661;
  --text-soft: #84908A;
  --border-hairline: rgba(24, 34, 31, 0.08);
  --border-strong: rgba(24, 34, 31, 0.16);
  --shadow-stall: 0 8px 22px -6px rgba(32, 25, 14, 0.08), 0 2px 5px -1px rgba(32, 25, 14, 0.04);
  --img-blend: multiply;
  font-family: var(--font-body);
  color: var(--text-main);
  line-height: 1.45;
  text-align: start;
}
:root[data-theme="dark"] .souq-naam-section,
:root[data-theme="dark"] .receipt-modal-backdrop {
  --bg-page: #0E1413;
  --bg-card-top: #182220;
  --bg-card-bottom: #141C1A;
  --bg-elevated: #1D2926;
  --bg-subtle: #22302C;
  --bg-stub: #253430;
  --text-main: #F3F0E8;
  --text-muted: #A9B6B0;
  --text-soft: #73827C;
  --border-hairline: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --shadow-stall: 0 12px 28px -8px rgba(0, 0, 0, 0.55);
}
:is(.souq-naam-section, .receipt-modal-backdrop) *,
:is(.souq-naam-section, .receipt-modal-backdrop) *::before,
:is(.souq-naam-section, .receipt-modal-backdrop) *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
:is(.souq-naam-section, .receipt-modal-backdrop) :is(h2, h3, p, ul, ol, figure) {
  margin: 0;
  padding: 0;
}
:is(.souq-naam-section, .receipt-modal-backdrop) button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
  margin: 0;
  padding: 0;
  min-height: 0;
  cursor: pointer;
}

.souq-naam-section {
  max-width: 960px;
  margin: 0 auto 48px;
  padding: 0 12px;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .souq-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .souq-brand-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .souq-family-crest {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--naam-emerald), var(--naam-gold));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(15, 169, 142, 0.25);
}

:is(.souq-naam-section, .receipt-modal-backdrop) .souq-heading {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .topbar-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .mode-pill-switch {
  display: inline-flex;
  background: var(--bg-subtle);
  padding: 3px;
  border-radius: 12px;
  border: 1px solid var(--border-hairline);
}

:is(.souq-naam-section, .receipt-modal-backdrop) .mode-switch-btn {
  padding: 5px 11px;
  border-radius: 9px;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .mode-switch-btn.is-active {
  background: var(--bg-elevated);
  color: var(--text-main);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

:is(.souq-naam-section, .receipt-modal-backdrop) .mode-switch-btn.mode-naam-btn.is-active {
  background: linear-gradient(135deg, #0D2924, #143D35);
  color: #FFFFFF;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .mode-spark-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--naam-emerald);
}

:is(.souq-naam-section, .receipt-modal-backdrop) .util-pill-btn {
  height: 32px;
  padding: 0 10px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-hairline);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 700;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .basket-counter-num {
  background: var(--naam-emerald);
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .taste-insight-strip {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: linear-gradient(90deg, rgba(15, 169, 142, 0.14), rgba(217, 130, 43, 0.12));
  border: 1px solid rgba(15, 169, 142, 0.32);
  border-radius: 12px;
  padding: 8px 12px;
  margin-bottom: 10px;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .taste-insight-strip.is-visible {
  display: flex;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .taste-insight-text {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
}

:is(.souq-naam-section, .receipt-modal-backdrop) .taste-clear-btn {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 7px;
  background: var(--bg-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border-hairline);
  white-space: nowrap;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .souq-classic-view {
  display: block;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .souq-classic-view.is-hidden {
  display: none;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .stall-awning {
  position: relative;
  height: 26px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 4px;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 500;
  z-index: 2;
  overflow: visible;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .stall-awning::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 0;
  left: 0;
  height: 7px;
  background-size: 16px 14px;
  background-repeat: repeat-x;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.12));
  pointer-events: none;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .awning-theme-weekly {
  background: repeating-linear-gradient(-65deg, #C96A1B, #C96A1B 12px, #DF812E 12px, #DF812E 24px);
}

:is(.souq-naam-section, .receipt-modal-backdrop) .awning-theme-weekly::after {
  background-image: radial-gradient(circle at 8px 0, #C96A1B 7px, transparent 7.5px);
}

:is(.souq-naam-section, .receipt-modal-backdrop) .awning-theme-lowest {
  background: repeating-linear-gradient(-65deg, #0B8B73, #0B8B73 12px, #0FA98E 12px, #0FA98E 24px);
}

:is(.souq-naam-section, .receipt-modal-backdrop) .awning-theme-lowest::after {
  background-image: radial-gradient(circle at 8px 0, #0B8B73 7px, transparent 7.5px);
}

:is(.souq-naam-section, .receipt-modal-backdrop) .awning-theme-dropped {
  background: repeating-linear-gradient(-65deg, #1B4FD8, #1B4FD8 12px, #2B62F0 12px, #2B62F0 24px);
}

:is(.souq-naam-section, .receipt-modal-backdrop) .awning-theme-dropped::after {
  background-image: radial-gradient(circle at 8px 0, #1B4FD8 7px, transparent 7.5px);
}

:is(.souq-naam-section, .receipt-modal-backdrop) .awning-theme-store {
  background: repeating-linear-gradient(-65deg, #B23A22, #B23A22 12px, #C84B31 12px, #C84B31 24px);
}

:is(.souq-naam-section, .receipt-modal-backdrop) .awning-theme-store::after {
  background-image: radial-gradient(circle at 8px 0, #B23A22 7px, transparent 7.5px);
}

:is(.souq-naam-section, .receipt-modal-backdrop) .awning-theme-people {
  background: repeating-linear-gradient(-65deg, #5A28B8, #5A28B8 12px, #703CE0 12px, #703CE0 24px);
}

:is(.souq-naam-section, .receipt-modal-backdrop) .awning-theme-people::after {
  background-image: radial-gradient(circle at 8px 0, #5A28B8 7px, transparent 7.5px);
}

:is(.souq-naam-section, .receipt-modal-backdrop) .awning-theme-value {
  background: repeating-linear-gradient(-65deg, #9C5114, #9C5114 12px, #B8651D 12px, #B8651D 24px);
}

:is(.souq-naam-section, .receipt-modal-backdrop) .awning-theme-value::after {
  background-image: radial-gradient(circle at 8px 0, #9C5114 7px, transparent 7.5px);
}

:is(.souq-naam-section, .receipt-modal-backdrop) .awning-theme-new {
  background: repeating-linear-gradient(-65deg, #0B7A75, #0B7A75 12px, #12948E 12px, #12948E 24px);
}

:is(.souq-naam-section, .receipt-modal-backdrop) .awning-theme-new::after {
  background-image: radial-gradient(circle at 8px 0, #0B7A75 7px, transparent 7.5px);
}

:is(.souq-naam-section, .receipt-modal-backdrop) .awning-theme-clean {
  background: repeating-linear-gradient(-65deg, #52615B, #52615B 12px, #63736D 12px, #63736D 24px);
}

:is(.souq-naam-section, .receipt-modal-backdrop) .awning-theme-clean::after {
  background-image: radial-gradient(circle at 8px 0, #52615B 7px, transparent 7.5px);
}

:is(.souq-naam-section, .receipt-modal-backdrop) .spotlight-pavilion {
  background: linear-gradient(180deg, var(--bg-card-top) 0%, var(--bg-card-bottom) 100%);
  border-radius: 18px;
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-stall);
  overflow: hidden;
  margin-bottom: 10px;
  cursor: pointer;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .spotlight-inner {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  padding: 12px;
  align-items: center;
}

@media (min-width: 640px) {
:is(.souq-naam-section, .receipt-modal-backdrop) .spotlight-inner {
  grid-template-columns: 160px 1fr;
  padding: 14px 18px;
}
}

:is(.souq-naam-section, .receipt-modal-backdrop) .spotlight-visual {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, #FFFFFF 0%, rgba(255,255,255,0.85) 70%, transparent 100%);
  border-radius: 12px;
  padding: 6px;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .spotlight-visual img {
  max-width: 100%;
  max-height: 84px;
  object-fit: contain;
  mix-blend-mode: var(--img-blend);
}

:is(.souq-naam-section, .receipt-modal-backdrop) .spotlight-details {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .spotlight-name {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .spotlight-price-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .price-big {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-main);
}

:is(.souq-naam-section, .receipt-modal-backdrop) .price-sar {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}

:is(.souq-naam-section, .receipt-modal-backdrop) .price-was-pill {
  font-size: 0.7rem;
  color: var(--text-muted);
}

:is(.souq-naam-section, .receipt-modal-backdrop) .price-was-num {
  text-decoration: line-through;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .spotlight-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .receipt-trace-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--bg-stub);
  color: var(--text-muted);
  font-size: 0.67rem;
  font-weight: 500;
  border-right: 2px dotted var(--border-strong);
  border-left: 2px dotted var(--border-strong);
}

:is(.souq-naam-section, .receipt-modal-backdrop) .honest-timer {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.66rem;
  font-weight: 700;
  white-space: nowrap;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .timer-kind-store {
  background: rgba(200, 75, 49, 0.14);
  color: #B8331A;
}

:root[data-theme="dark"] :is(.souq-naam-section, .receipt-modal-backdrop) .timer-kind-store {
  color: #FCA5A5;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .timer-kind-souq {
  background: rgba(90, 107, 101, 0.15);
  color: var(--text-muted);
}

:is(.souq-naam-section, .receipt-modal-backdrop) .timer-kind-round {
  background: rgba(109, 56, 211, 0.15);
  color: #5B21B6;
}

:root[data-theme="dark"] :is(.souq-naam-section, .receipt-modal-backdrop) .timer-kind-round {
  color: #DDD6FE;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .souq-filter-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 0 10px;
  scrollbar-width: none;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .souq-filter-strip::-webkit-scrollbar {
  display: none;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .souq-chip {
  padding: 5px 11px;
  border-radius: 99px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-hairline);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  transition: all 0.15s ease;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .souq-chip.is-active {
  background: var(--naam-emerald);
  border-color: var(--naam-emerald);
  color: #FFFFFF;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .filter-divider {
  width: 1px;
  height: 18px;
  background: var(--border-strong);
  flex-shrink: 0;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .bento-souq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 640px) {
:is(.souq-naam-section, .receipt-modal-backdrop) .bento-souq-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
}

@media (min-width: 880px) {
:is(.souq-naam-section, .receipt-modal-backdrop) .bento-souq-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
}

:is(.souq-naam-section, .receipt-modal-backdrop) .souq-stall {
  background: linear-gradient(180deg, var(--bg-card-top) 0%, var(--bg-card-bottom) 100%);
  border-radius: 16px;
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-stall);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.18s ease;
  cursor: pointer;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .souq-stall:hover {
  transform: translateY(-2px);
}

:is(.souq-naam-section, .receipt-modal-backdrop) .souq-stall.stall-span-2 {
  grid-column: span 2;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .stall-photo-open {
  height: 112px;
  padding: 12px 10px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(circle at 50% 50%, #FFFFFF 0%, rgba(255, 255, 255, 0.78) 64%, transparent 100%);
}

:is(.souq-naam-section, .receipt-modal-backdrop) .souq-stall.stall-clean-showcase .stall-photo-open {
  height: 126px;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .stall-photo-img {
  max-width: 100%;
  max-height: 94px;
  object-fit: contain;
  mix-blend-mode: var(--img-blend);
  transition: transform 0.25s ease;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .souq-stall.stall-clean-showcase .stall-photo-img {
  max-height: 108px;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .souq-stall:hover .stall-photo-img {
  transform: scale(1.05);
}

:is(.souq-naam-section, .receipt-modal-backdrop) .corner-discount-tag {
  position: absolute;
  top: 30px;
  left: 8px;
  background: var(--naam-coral);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 6px;
  z-index: 3;
  box-shadow: 0 3px 8px rgba(200, 75, 49, 0.3);
}

:is(.souq-naam-section, .receipt-modal-backdrop) .lowest-sparkline-box {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(15, 169, 142, 0.1);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--naam-emerald-deep);
}

:root[data-theme="dark"] :is(.souq-naam-section, .receipt-modal-backdrop) .lowest-sparkline-box {
  color: #34D399;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .drop-delta-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(30, 94, 255, 0.11);
  color: var(--naam-cobalt);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
}

:root[data-theme="dark"] :is(.souq-naam-section, .receipt-modal-backdrop) .drop-delta-pill {
  color: #93C5FD;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .stall-content {
  padding: 6px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-grow: 1;
  justify-content: space-between;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .stall-title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.32;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .stall-price-wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px;
  flex-wrap: wrap;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .stall-price-num {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--text-main);
}

:is(.souq-naam-section, .receipt-modal-backdrop) .stall-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding-top: 4px;
  border-top: 1px solid var(--border-hairline);
}

:is(.souq-naam-section, .receipt-modal-backdrop) .quick-basket-add {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(15, 169, 142, 0.14);
  color: var(--naam-emerald-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: background-color 0.15s ease, color 0.15s ease;
}

:root[data-theme="dark"] :is(.souq-naam-section, .receipt-modal-backdrop) .quick-basket-add {
  color: #34D399;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .quick-basket-add:hover {
  background: var(--naam-emerald);
  color: #FFFFFF;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .people-stall-grid {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 10px;
  padding: 10px 12px;
  align-items: center;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .people-rank-track {
  background: rgba(109, 56, 211, 0.08);
  border-radius: 10px;
  padding: 6px 8px;
  margin-top: 4px;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .people-rank-bar-bg {
  height: 5px;
  border-radius: 99px;
  background: rgba(109, 56, 211, 0.18);
  overflow: hidden;
  margin-top: 4px;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .people-rank-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--naam-violet), var(--naam-emerald));
  transition: width 0.3s ease;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .boost-vote-btn {
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--naam-violet);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .boost-vote-btn.is-voted {
  background: var(--naam-emerald);
}

:is(.souq-naam-section, .receipt-modal-backdrop) .naam-theater-view {
  display: none;
  position: relative;
  border-radius: 26px;
  background: radial-gradient(circle at 50% 18%, #163831 0%, #0B1715 58%, #070D0C 100%);
  color: #F5F2EB;
  padding: 14px 14px 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px -12px rgba(7, 13, 12, 0.75);
  border: 1px solid rgba(15, 169, 142, 0.28);
}

:is(.souq-naam-section, .receipt-modal-backdrop) .naam-theater-view.is-active {
  display: block;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .theater-light-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(42px);
  pointer-events: none;
  z-index: 0;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .orb-primary {
  width: 260px;
  height: 260px;
  top: 16%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(15, 169, 142, 0.55) 0%, rgba(15, 169, 142, 0) 70%);
}

:is(.souq-naam-section, .receipt-modal-backdrop) .orb-secondary {
  width: 220px;
  height: 220px;
  bottom: 12%;
  right: -30px;
  background: radial-gradient(circle, rgba(217, 130, 43, 0.35) 0%, rgba(217, 130, 43, 0) 70%);
}

:is(.souq-naam-section, .receipt-modal-backdrop) .orb-basket-beam {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 25%, rgba(15, 169, 142, 0.65), rgba(217, 130, 43, 0.35), transparent 68%);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .theater-canopy-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .theater-step-pill {
  font-size: 0.74rem;
  font-weight: 700;
  color: rgba(245, 242, 235, 0.78);
  background: rgba(255, 255, 255, 0.08);
  padding: 5px 11px;
  border-radius: 99px;
  backdrop-filter: blur(8px);
}

:is(.souq-naam-section, .receipt-modal-backdrop) .naam-beacon-medallion {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(15, 169, 142, 0.18);
  border: 1.5px solid rgba(15, 169, 142, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(15, 169, 142, 0.45);
}

:is(.souq-naam-section, .receipt-modal-backdrop) .naam-beacon-svg {
  width: 34px;
  height: 34px;
  display: block;
  z-index: 2;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .beacon-halo-ring {
  position: absolute;
  inset: -6px;
  border-radius: 20px;
  border: 2px solid #0FA98E;
  opacity: 0;
  pointer-events: none;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .beacon-halo-ring-gold {
  position: absolute;
  inset: -12px;
  border-radius: 24px;
  border: 1.5px solid #F59E0B;
  opacity: 0;
  pointer-events: none;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .theater-undo-btn {
  font-size: 0.74rem;
  font-weight: 700;
  color: #F5F2EB;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 5px 11px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .theater-undo-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .theater-stack-stage {
  position: relative;
  z-index: 3;
  height: 390px;
  max-width: 400px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1100px;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .stack-ghost-card {
  position: absolute;
  width: 100%;
  height: 368px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .ghost-depth-1 {
  transform: translateY(12px) scale(0.94);
  opacity: 0.65;
  z-index: 1;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .ghost-depth-2 {
  transform: translateY(24px) scale(0.88);
  opacity: 0.35;
  z-index: 0;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .theater-hero-card {
  position: relative;
  z-index: 4;
  width: 100%;
  height: 368px;
  border-radius: 24px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F7F2E7 100%);
  color: #18221F;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .theater-hero-card:active {
  cursor: grabbing;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .gesture-stamp {
  position: absolute;
  top: 38px;
  z-index: 10;
  padding: 6px 14px;
  border-radius: 99px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .stamp-right-like {
  right: 14px;
  background: #0FA98E;
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(15, 169, 142, 0.5);
}

:is(.souq-naam-section, .receipt-modal-backdrop) .stamp-left-skip {
  left: 14px;
  background: #C84B31;
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(200, 75, 49, 0.5);
}

:is(.souq-naam-section, .receipt-modal-backdrop) .stamp-up-basket {
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #0FA98E, #D9822B);
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(217, 130, 43, 0.6);
}

:is(.souq-naam-section, .receipt-modal-backdrop) .hero-card-spotlight {
  height: 175px;
  padding: 16px 18px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(circle at 50% 55%, #FFFFFF 0%, rgba(255, 255, 255, 0.6) 70%, transparent 100%);
}

:is(.souq-naam-section, .receipt-modal-backdrop) .hero-card-img {
  max-width: 100%;
  max-height: 150px;
  object-fit: contain;
  mix-blend-mode: multiply;
  pointer-events: none;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .hero-card-info {
  padding: 10px 16px 14px;
  background: rgba(244, 239, 230, 0.75);
  border-top: 1px solid rgba(24, 34, 31, 0.07);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .hero-card-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 500;
  color: #18221F;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .hero-card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .hero-price-block {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .hero-price-val {
  font-family: var(--font-display);
  font-size: 1.38rem;
  font-weight: 500;
  color: #097965;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .hero-taste-pills {
  display: flex;
  gap: 5px;
  overflow: hidden;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .hero-taste-pill {
  font-size: 0.66rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(24, 34, 31, 0.07);
  color: #45524D;
  white-space: nowrap;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .theater-floating-dock {
  position: relative;
  z-index: 4;
  max-width: 330px;
  margin: 0 auto;
  padding: 6px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .dock-orb-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 99px;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 500;
  color: #F5F2EB;
  transition: transform 0.15s ease, background-color 0.2s ease;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .dock-orb-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

:is(.souq-naam-section, .receipt-modal-backdrop) .dock-orb-btn:active {
  transform: scale(0.94);
}

:is(.souq-naam-section, .receipt-modal-backdrop) .dock-orb-basket {
  background: linear-gradient(135deg, var(--naam-emerald), #0A856F);
  color: #FFFFFF;
  padding: 8px 16px;
  box-shadow: 0 4px 16px rgba(15, 169, 142, 0.45);
}

:is(.souq-naam-section, .receipt-modal-backdrop) .dock-kbd-hint {
  font-size: 0.62rem;
  opacity: 0.6;
  display: none;
}

@media (min-width: 720px) {
:is(.souq-naam-section, .receipt-modal-backdrop) .dock-kbd-hint {
  display: inline;
}
}

:is(.souq-naam-section, .receipt-modal-backdrop) .theater-end-summary {
  display: none;
  position: relative;
  z-index: 4;
  text-align: center;
  padding: 18px 8px 8px;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .theater-end-summary.is-visible {
  display: block;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .end-basket-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0;
  text-align: right;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .end-basket-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

:is(.souq-naam-section, .receipt-modal-backdrop) .end-basket-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #FFFFFF;
  object-fit: contain;
  padding: 3px;
}

.receipt-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 16, 15, 0.68);
  backdrop-filter: blur(6px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

@media (min-width: 600px) {
.receipt-modal-backdrop {
  align-items: center;
  padding: 16px;
}
}

.receipt-modal-backdrop.is-open {
  display: flex;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .perforated-receipt-sheet {
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-elevated);
  color: var(--text-main);
  border-radius: 24px 24px 0 0;
  padding: 20px 18px 24px;
  position: relative;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.35);
}

@media (min-width: 600px) {
:is(.souq-naam-section, .receipt-modal-backdrop) .perforated-receipt-sheet {
  border-radius: 22px;
}
}

:is(.souq-naam-section, .receipt-modal-backdrop) .receipt-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .receipt-close-pill {
  padding: 5px 12px;
  border-radius: 99px;
  background: var(--bg-subtle);
  font-size: 0.74rem;
  font-weight: 700;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .receipt-product-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 2px dashed var(--border-strong);
}

:is(.souq-naam-section, .receipt-modal-backdrop) .receipt-head-img {
  width: 68px;
  height: 68px;
  border-radius: 12px;
  background: #FFFFFF;
  object-fit: contain;
  padding: 6px;
  border: 1px solid var(--border-hairline);
  flex-shrink: 0;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .receipt-lines {
  padding: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  border-bottom: 2px dashed var(--border-strong);
  font-size: 0.8rem;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .receipt-line-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .receipt-line-label {
  color: var(--text-muted);
}

:is(.souq-naam-section, .receipt-modal-backdrop) .receipt-line-value {
  font-weight: 700;
  text-align: left;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .receipt-cta-bar {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .store-direct-link {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--naam-emerald);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
}

:is(.souq-naam-section, .receipt-modal-backdrop) .partner-link-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--bg-subtle);
  color: var(--text-muted);
}


/* ───── إضافات التطبيق ───── */
/* يتّسع في الشاشة العريضة كما تتّسع الأبواب (.d4-sec)، ويأخذ خط الباب */
.souq-naam-section {
  max-width: none;
  margin: 14px 0 22px;
  padding: 0;
}
@media (min-width: 781px) {
  .souq-naam-section {
    --m-w: min(960px, calc(100vw - 48px));
    width: var(--m-w);
    margin-inline: calc((100% - var(--m-w)) / 2);
  }
}
:is(.souq-naam-section, .receipt-modal-backdrop) :focus-visible {
  outline: 2px solid var(--naam-emerald);
  outline-offset: 2px;
}
:is(.souq-naam-section, .receipt-modal-backdrop) a {
  color: inherit;
}
.souq-naam-section .naam-theater-view + .taste-insight-strip {
  margin: 10px 0 0;
}
.market-slot:empty {
  display: none;
}

/* الصورة على لوحٍ مضاء في الوضعين: صور المتاجر بخلفيةٍ بيضاء، فلا تُرى مربعاً في الداكن */
:root[data-theme="dark"] :is(.souq-naam-section, .receipt-modal-backdrop) :is(.stall-photo-open, .spotlight-visual) {
  background: #F4F1EA;
  border-radius: 12px;
}
:root[data-theme="dark"] .souq-naam-section .stall-photo-open {
  margin: 8px 8px 0;
}
:is(.souq-naam-section, .receipt-modal-backdrop) .stall-photo-img.is-gone,
:is(.souq-naam-section, .receipt-modal-backdrop) .hero-card-img.is-gone,
.souq-naam-section .spotlight-visual img.is-gone {
  display: none;
}
.souq-naam-section .stall-blank {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--naam-emerald-deep);
  text-align: center;
}

/* البطاقة كلها تفتح الإيصال بزرٍّ واحد في عنوانها، والزر الصغير فوقه */
.souq-naam-section .spotlight-pavilion {
  position: relative;
}
.souq-naam-section .m-open {
  display: inline;
  font: inherit;
  color: inherit;
  text-align: start;
  white-space: inherit;
}
.souq-naam-section .stall-title {
  display: block;
}
.souq-naam-section .stall-title .m-open {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.souq-naam-section .spotlight-name {
  white-space: normal;
  line-height: 1.35;
}
.souq-naam-section .spotlight-name .m-open {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.souq-naam-section .m-open::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}
.souq-naam-section .quick-basket-add,
.souq-naam-section .boost-vote-btn {
  position: relative;
  z-index: 2;
}
.souq-naam-section .quick-basket-add.is-in {
  background: var(--naam-emerald);
  color: #FFFFFF;
}
.souq-naam-section .corner-discount-tag {
  direction: ltr;
}
.souq-naam-section .bento-souq-grid {
  grid-auto-flow: dense;
}
.souq-naam-section .stall-people {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 700;
}
.souq-naam-section .stall-mech {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 3px;
}
.souq-naam-section .souq-more {
  display: block;
  margin: 12px auto 0;
  padding: 7px 18px;
  border-radius: 99px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 500;
}
.souq-naam-section .souq-none {
  grid-column: 1 / -1;
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}
.souq-naam-section .souq-note {
  margin-top: 10px;
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted);
}
.souq-naam-section .souq-note a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* «يرفعه الناس» */
.souq-naam-section .people-stall-grid {
  flex: 1;
}
.souq-naam-section .stall-photo-open.is-arena {
  height: 100px;
}
.souq-naam-section .people-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.souq-naam-section .stall-title.is-arena {
  font-size: 0.86rem;
}
.souq-naam-section .people-rank-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  font-weight: 700;
}
.souq-naam-section .people-fine {
  margin-top: 4px;
  font-size: 0.62rem;
  color: var(--text-muted);
}
@media (min-width: 880px) {
  .souq-naam-section .people-stall-grid {
    grid-template-columns: 150px 1fr;
  }
  .souq-naam-section .stall-photo-open.is-arena {
    height: 150px;
  }
  .souq-naam-section .stall-photo-open.is-arena .stall-photo-img {
    max-height: 130px;
  }
}

/* المسرح */
.souq-naam-section .theater-rack {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  justify-content: safe center;
  margin: -4px 0 10px;
}
.souq-naam-section .theater-rack::-webkit-scrollbar {
  display: none;
}
.souq-naam-section .theater-rack button {
  flex: none;
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(245, 242, 235, 0.78);
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 11px;
  border-radius: 99px;
}
.souq-naam-section .theater-rack button[aria-pressed="true"] {
  background: rgba(15, 169, 142, 0.85);
  color: #FFFFFF;
}
.souq-naam-section .theater-hero-card {
  touch-action: none;
}
.souq-naam-section .hero-card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}
.souq-naam-section .stall-awning.is-hero {
  height: 30px;
  flex: none;
  font-size: 0.74rem;
  padding: 0 14px 4px;
}
.souq-naam-section .hero-head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}
.souq-naam-section .hero-hook {
  font-size: 0.72rem;
  color: #5A6661;
  margin-top: -5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.souq-naam-section .hero-sar {
  font-size: 0.75rem;
  font-weight: 700;
  color: #45524D;
}
.souq-naam-section .hero-was {
  font-size: 0.72rem;
  color: #B23A22;
  font-weight: 700;
}
.souq-naam-section .hero-receipt {
  background: #E6DEC8;
  color: #18221F;
}
.souq-naam-section .hero-blank {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: #097965;
}
.souq-naam-section .naam-beacon-img {
  width: 34px;
  height: 34px;
  display: block;
  z-index: 2;
  animation: souq-breath 3.4s ease-in-out infinite;
}
@keyframes souq-breath {
  0%, 100% { opacity: 0.86; }
  50% { opacity: 1; filter: drop-shadow(0 0 7px rgba(15, 169, 142, 0.95)); }
}
.souq-naam-section .dock-hint {
  position: relative;
  z-index: 4;
  margin-top: 8px;
  text-align: center;
  font-size: 0.68rem;
  color: rgba(245, 242, 235, 0.62);
}
.souq-naam-section .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.souq-naam-section .end-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
}
.souq-naam-section .end-lead {
  font-size: 0.8rem;
  color: rgba(245, 242, 235, 0.75);
  margin-top: 4px;
}
.souq-naam-section .end-empty {
  padding: 18px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  font-size: 0.8rem;
  text-align: center;
}
.souq-naam-section .end-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.souq-naam-section .end-row-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.souq-naam-section .end-row-text {
  min-width: 0;
}
.souq-naam-section .end-name {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.souq-naam-section .end-meta {
  font-size: 0.72rem;
  color: rgba(245, 242, 235, 0.75);
}
.souq-naam-section a.end-open {
  text-decoration: none;
  font-size: 0.72rem;
  padding: 6px 12px;
  white-space: nowrap;
  flex: none;
}
.souq-naam-section .dock-orb-btn.is-outline {
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* السوق هو أساس الرئيسية: مروحة البطاقات أصغر ليظهر تحت البحث مباشرة، وتبقى بعملها */
@media (max-width: 780px) {
  .nh-root.has-market .nh-fan {
    height: 148px;
    margin-top: 0;
  }
  .nh-root.has-market .nf-card {
    top: 2px;
    width: 96px;
    height: 124px;
    margin-left: -48px;
    border-radius: 16px;
  }
  .nh-root.has-market .nf-card b {
    padding: 16px 4px 6px;
    font-size: 11px;
  }
}
@media (min-width: 781px) {
  .nh-root.has-market .nh-fan {
    height: 214px;
    margin-top: 0;
  }
  .nh-root.has-market .nf-card {
    top: 2px;
    width: 150px;
    height: 192px;
    margin-left: -75px;
  }
}
.souq-naam-section .people-rank-head .receipt-trace-pill {
  flex: none;
  white-space: nowrap;
}

/* الإيصال والسلّة */
.receipt-modal-backdrop .receipt-kicker {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--naam-emerald);
}
.receipt-modal-backdrop .receipt-sub {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
}
.receipt-modal-backdrop .receipt-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 500;
  margin: 2px 0 3px;
}
.receipt-modal-backdrop .receipt-line-value.is-now {
  font-size: 1.08rem;
  color: var(--naam-emerald);
}
.receipt-modal-backdrop .receipt-gone {
  margin-top: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(200, 75, 49, 0.14);
  font-size: 0.78rem;
  font-weight: 700;
}
.receipt-modal-backdrop .receipt-add {
  padding: 12px 14px;
}
.receipt-modal-backdrop .basket-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}
.receipt-modal-backdrop .basket-empty {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}
.receipt-modal-backdrop .basket-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg-subtle);
  border-radius: 12px;
}
.receipt-modal-backdrop .basket-row-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 170px;
}
.receipt-modal-backdrop .basket-thumb {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 8px;
  background: #FFFFFF;
  object-fit: contain;
  padding: 3px;
}
.receipt-modal-backdrop .basket-text {
  min-width: 0;
}
.receipt-modal-backdrop .basket-name {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.receipt-modal-backdrop .basket-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
}
.receipt-modal-backdrop .basket-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  flex: none;
}
.receipt-modal-backdrop a.store-direct-link.is-small {
  padding: 6px 10px;
  font-size: 0.72rem;
  flex: none;
}
.receipt-modal-backdrop .basket-off {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 4px 6px;
}
.receipt-modal-backdrop .basket-sum {
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 2px dashed var(--border-strong);
  font-size: 0.84rem;
  font-weight: 700;
}
.receipt-modal-backdrop .basket-foot {
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.receipt-modal-backdrop .basket-foot a {
  color: var(--naam-emerald-deep);
  font-weight: 700;
}
:root[data-theme="dark"] .receipt-modal-backdrop .basket-foot a {
  color: #34D399;
}

@media (prefers-reduced-motion: reduce) {
  :is(.souq-naam-section, .receipt-modal-backdrop) *,
  :is(.souq-naam-section, .receipt-modal-backdrop) *::before,
  :is(.souq-naam-section, .receipt-modal-backdrop) *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

/* باب عروض نوفمبر: صورة جيمناي نفسها التي في رأس الصفحة، فيعرفها الزائر حين يصل */
.nov-strip {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 72px;
  padding: 12px 16px;
  margin-block: 0 12px;
  border-radius: 12px;
  color: #FFF;
  text-decoration: none;
  background: linear-gradient(to left, rgba(8, 11, 18, 0.82), rgba(8, 11, 18, 0.45)), url(/shop/nov-hero.jpg) center 62% / cover no-repeat #080B12;
}
.nov-strip-t { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; }
.nov-strip-s { font-size: 0.8rem; color: #D5DCE6; }


/* ── طبقة الهدوء (حمزة 11-07): بلا مظلّات مخطّطة مسنّنة ولا دوائر خصمٍ حمراء ولا أطر منقّطة.
   نوع العرض يُقال بكلمةٍ ونقطة بلونه، والخصم رقمٌ بلون النص — لغة الباب نفسها ── */
:is(.souq-naam-section, .receipt-modal-backdrop) .stall-awning,
.souq-naam-section .stall-awning.is-hero {
  height: auto;
  padding: 10px 12px 2px;
  background: none !important;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 500;
  gap: 8px;
}
:is(.souq-naam-section, .receipt-modal-backdrop) .stall-awning::after { content: none !important; }
:is(.souq-naam-section, .receipt-modal-backdrop) .stall-awning > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-main);
}
:is(.souq-naam-section, .receipt-modal-backdrop) .stall-awning > span:first-child::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
  background: var(--awn, var(--naam-slate));
}
:is(.souq-naam-section, .receipt-modal-backdrop) .awning-theme-weekly,
:is(.souq-naam-section, .receipt-modal-backdrop) .awning-theme-value { --awn: var(--naam-gold); }
:is(.souq-naam-section, .receipt-modal-backdrop) .awning-theme-lowest,
:is(.souq-naam-section, .receipt-modal-backdrop) .awning-theme-new { --awn: var(--naam-emerald); }
:is(.souq-naam-section, .receipt-modal-backdrop) .awning-theme-dropped { --awn: var(--naam-cobalt); }
:is(.souq-naam-section, .receipt-modal-backdrop) .awning-theme-store { --awn: var(--naam-coral); }
:is(.souq-naam-section, .receipt-modal-backdrop) .awning-theme-people { --awn: var(--naam-violet); }
:is(.souq-naam-section, .receipt-modal-backdrop) .corner-discount-tag {
  /* الخصم يبقى بلونه المميّز (حمزة 11-07)، بلا ظلٍّ متوهّج */
  box-shadow: none;
  font-family: var(--font-body);
  font-weight: 500;
}
:is(.souq-naam-section, .receipt-modal-backdrop) .spotlight-pavilion {
  border-right: 0;
  border-left: 0;
}
:is(.souq-naam-section, .receipt-modal-backdrop) .souq-store-ends {
  margin: 0 0 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
:is(.souq-naam-section, .receipt-modal-backdrop) .souq-brand-title .souq-family-crest { display: none; }

/* لغة السطوح الموحّدة: بلا بنفسجي ثانوي ولا توهّج */
:is(.souq-naam-section, .receipt-modal-backdrop) .people-rank-bar-fill { background: var(--naam-emerald); }
:is(.souq-naam-section, .receipt-modal-backdrop) .boost-vote-btn { background: var(--naam-emerald-deep); box-shadow: none; }
:is(.souq-naam-section, .receipt-modal-backdrop) .awning-theme-people { --awn: var(--naam-slate); }
:is(.souq-naam-section, .receipt-modal-backdrop) .mode-spark-dot { display: none; }

/* زجاج السوق فوق الخيوط (طبقة الخيوط في shop.css) */
:is(.souq-naam-section) :is(.souq-stall, .spotlight-pavilion, .people-stall-grid) {
  background: color-mix(in srgb, var(--bg-card-top) 74%, transparent) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  backdrop-filter: blur(12px) saturate(1.3);
  border: 1px solid var(--border-hairline) !important;
  box-shadow: none !important;
}
:root[data-theme="dark"] .souq-naam-section :is(.souq-stall, .spotlight-pavilion) { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07) !important; }
@media (hover: none) {
  :is(.souq-naam-section) :is(.souq-stall, .spotlight-pavilion, .people-stall-grid) {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: color-mix(in srgb, var(--bg-card-top) 86%, transparent) !important;
  }
}
