:root {
  --primary: #ff6b35;
  --primary-dark: #e55a26;
  --primary-light: #fff3ee;
  --red: #ff4444;
  --white: #ffffff;
  --bg: #f5f6fa;
  --text: #1a1a2e;
  --muted: #6b7280;
  --border: #e8eaed;
  --green: #25d366;
  --glass: rgba(255,255,255,0.75);
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  font-family: 'Tajawal', sans-serif;
}

html {
  direction: rtl;
}

body {
  background: var(--bg);
  color: var(--text);
  display: flex;
  justify-content: center;
  min-height: 100vh;
  direction: rtl;
  text-align: right;
}

.app {
  width: 100%;
  max-width: 480px;
  background: var(--white);
  min-height: 100vh;
  position: relative;
  padding-bottom: 80px;
  direction: rtl;
  text-align: right;
}


/* ===== SPLASH ===== */

#splash {
  position: fixed;
  inset: 0;
  background: linear-gradient(160deg,#0d4d33,#0e5c3c);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s;
}

.splash-logo {
  width: 90px;
  height: 90px;
  background: white;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 46px;
  margin-bottom: 20px;
  overflow: hidden;
  animation: popIn 0.5s ease;
}

.splash-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@keyframes popIn {
  from {
    transform: scale(0.4);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

#splash h1 {
  color: white;
  font-size: 24px;
  font-weight: 900;
  text-align: center;
  padding: 0 20px;
}

#splash p {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  margin-top: 6px;
}

.splash-dots {
  display: flex;
  gap: 8px;
  margin-top: 40px;
}

.splash-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  animation: dotBlink 1.2s infinite;
}

.splash-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.splash-start-btn {
  margin-top: 28px;
  padding: 13px 46px;
  border: none;
  border-radius: 50px;
  background: white;
  color: var(--primary);
  font-family: 'Tajawal', sans-serif;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
  animation: popIn 0.4s ease;
}

.splash-start-btn:active {
  transform: scale(0.96);
}

.splash-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dotBlink {
  0%,100% {
    background: rgba(255,255,255,0.3);
    transform: scale(1);
  }

  50% {
    background: white;
    transform: scale(1.4);
  }
}


/* ===== HEADER ===== */

.header {
  background: linear-gradient(135deg,#0d4d33,#0f5f41);
  padding: 16px 16px 20px;
  border-radius: 0 0 24px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  direction: rtl;
}

.header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 6px;
  direction: rtl;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  direction: rtl;
  flex: 1;
  min-width: 0;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  overflow: hidden;
  padding: 3px;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.22),
    inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-name {
  color: white;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
}

.brand-sub {
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 1px;
}

.brand-weather {
  color: rgba(255,255,255,0.95);
  font-size: 10px;
  font-weight: 700;
  margin-top: 1px;
}


/* ===== HEADER ACTIONS ===== */

.header-btns {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  direction: rtl;
  flex-shrink: 0;
}

.header-action-btn {
  width: 48px;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  color: white;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  font-family: 'Tajawal', sans-serif;
}

.header-action-icon {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.20);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.header-action-label {
  margin-top: 4px;
  color: white;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
}

.header-action-btn:active .header-action-icon {
  transform: scale(0.9);
}


/* ===== SEARCH ===== */

.search-bar {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 12px;
  padding: 10px 14px;
  gap: 8px;
  margin-top: 12px;
  direction: rtl;
}

.search-bar input {
  border: none;
  outline: none;
  font-size: 13px;
  flex: 1;
  color: var(--text);
  direction: rtl;
  text-align: right;
  background: transparent;
}

.search-bar input::placeholder {
  color: var(--muted);
}

.voice-btn {
  width: 38px;
  height: 38px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: var(--bg);
  font-size: 18px;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.voice-btn.listening {
  background: var(--primary);
  color: #fff;
  animation: mic-pulse 1s infinite;
}

@keyframes mic-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.45);
  }
  50% {
    box-shadow: 0 0 0 9px rgba(37, 99, 235, 0);
  }
}


/* ===== SCREENS ===== */

.screen {
  display: none;
}

.screen.active {
  display: block;
  animation: fadeSlideIn 0.3s ease;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ===== ADS ===== */

.ad-carousel {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 0;
  direction: ltr;
  width: 100%;
  background: transparent;
}

/* نفس التصميم القديم — الإعلان يملأ عرض السلايدر بالكامل تقريباً */
.ad-track {
  position: relative;
  width: 100%;
  height: 250px;
}

.ad-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 250px;
  overflow: hidden;
  cursor: pointer;
  background: #14141f;
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 0;
}

.ad-slide.active {
  opacity: 1;
  z-index: 1;
}

/* خلفية الإعلان — cover تعبّي المساحة بدون فراغات سوداء ولا تشوّه */
.ad-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  animation: kenburns 8s ease-in-out infinite alternate;
}

/* أزرار السابق/التالي — صغيرة وشبه شفافة فوق جانبي الإعلان */
.ad-nav-btn {
  position: absolute;
  top: 125px;
  transform: translateY(-50%);
  z-index: 5;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(20, 22, 35, 0.30);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.ad-prev {
  left: 8px;
}

.ad-next {
  right: 8px;
}

.ad-nav-btn:hover,
.ad-nav-btn:active {
  background: rgba(20, 22, 35, 0.55);
}

.ad-label {
  text-align: center;
  padding: 6px 0 0;
  font-size: 13px;
  font-weight: 700;
  direction: rtl;
}

.ad-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 0 0;
}

.ad-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0,0,0,0.15);
}

.ad-dot.active {
  width: 18px;
  border-radius: 3px;
  background: var(--primary);
}

@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}


/* ===== SECTION TITLE ===== */

.sec-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 16px 10px;
  font-size: 14px;
  font-weight: 700;
  direction: rtl;
}

.sec-title::before {
  content: '';
  width: 4px;
  height: 18px;
  background: var(--primary);
  border-radius: 2px;
}

.sec-title .count {
  margin-right: auto;
  margin-left: 0;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}


/* ===== CATEGORIES ===== */

.cats-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
  padding: 0 16px;
  direction: rtl;
}

.cat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 8px;
  text-align: center;
  cursor: pointer;
}

.cat-card:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

/* ===== قسم خير بلدنا — قلب نابض ===== */

.cat-card.cat-love {
  border-color: rgba(225,29,72,0.45);
  background: linear-gradient(135deg,#fff5f5,#ffe4e6);
  box-shadow: 0 4px 14px rgba(225,29,72,0.18);
}

.cat-card.cat-love .cat-emoji-circle {
  animation: kzHeartBeat 1.15s ease-in-out infinite;
}

.cat-card.cat-love .cat-name {
  color: #be123c;
  font-weight: 800;
}

@keyframes kzHeartBeat {
  0%, 100% { transform: scale(1); }
  14%      { transform: scale(1.22); }
  28%      { transform: scale(1); }
  42%      { transform: scale(1.18); }
  70%      { transform: scale(1); }
}

.cat-emoji {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.cat-emoji-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  line-height: 1;
  flex-shrink: 0;
  margin: 0 auto;
  vertical-align: middle;
}

.cat-name {
  font-size: 12px;
  font-weight: 700;
}

.cat-count {
  font-size: 10px;
  color: var(--muted);
}


/* ===== SERVICES ===== */

.back-btn {
  display: flex;
  margin: 16px;
  padding: 10px 14px;
  background: var(--primary-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--primary);
  width: fit-content;
  cursor: pointer;
}

.back-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 16px 16px 0;
}

.back-row .back-btn {
  margin: 0;
}

.back-btn.back-home {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 800;
}

.khair-back-row {
  align-items: center;
}

.khair-back-row .khair-back {
  margin: 0;
}

.service-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 16px 10px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 14px;
  direction: rtl;
}

.service-avatar {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.service-name {
  font-size: 13px;
  font-weight: 700;
}

.service-phone {
  font-size: 11px;
  color: var(--muted);
}

.service-actions {
  display: flex;
  gap: 6px;
}

.svc-wa-btn,
.svc-call-btn,
.svc-fb-btn,
.fav-heart-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.svc-wa-btn {
  background: var(--green);
}

.svc-call-btn {
  background: #2563eb;
  color: white;
  text-decoration: none;
}

.svc-fb-btn {
  background: #1877f2;
  color: white;
  text-decoration: none;
}

.fav-heart-btn {
  background: white;
  border: 1px solid var(--border);
}

/* شاردة "🔥 يوجد عروض" */
.offers-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  background: linear-gradient(
    90deg,
    rgba(239, 68, 68, 0.12),
    rgba(249, 115, 22, 0.12)
  );
  color: #e11d48;
  border: 1px solid
    rgba(225, 29, 72, 0.25);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
  animation: offers-pulse 2.4s
    ease-in-out infinite;
}

@keyframes offers-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0
      rgba(239, 68, 68, 0);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 12px
      rgba(239, 68, 68, 0.35);
  }
}


/* ===== نتائج البحث — Results UI ===== */

.search-results {
  padding: 4px 0 24px;
}

.search-results-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 6px 16px 12px;
  direction: rtl;
}

.sr-badge {
  background: linear-gradient(135deg, #0d4d33, #0f5f41);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  border-radius: 999px;
  padding: 5px 13px;
  box-shadow: 0 2px 6px rgba(13, 77, 51, 0.25);
}

.sr-hint {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.service-card.sr-card {
  box-shadow: 0 3px 12px rgba(23, 26, 40, 0.06);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.service-card.sr-card:active {
  transform: scale(0.985);
  box-shadow: inset 0 2px 6px rgba(23, 26, 40, 0.06);
}

.service-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 3px;
}

.sr-cat-chip {
  background: var(--primary-light, #e8f5ee);
  color: var(--primary, #0d4d33);
  font-size: 10px;
  font-weight: 800;
  border-radius: 20px;
  padding: 2px 9px;
  white-space: nowrap;
}


/* ===== PRODUCTS ===== */

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  direction: rtl;
}

.product-img {
  width: 100%;
  aspect-ratio: 1/1;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-img-fallback {
  font-size: 46px;
}

.prod-info {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-name {
  font-size: 13px;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  font-size: 14px;
  font-weight: 900;
  color: var(--primary);
}

.product-seller {
  font-size: 11px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prod-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
  gap: 6px;
}

.prod-views {
  font-size: 11px;
  color: var(--muted);
  flex-shrink: 0;
}

#products-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px 8px;
}


.prod-detail-img {
  display: block;
  width: 100%;
  max-height: 58vh;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  margin-bottom: 14px;
}

.prod-detail-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 200px;
  font-size: 64px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 14px;
}


/* ===== FORMS ===== */

.form-card {
  margin: 0 16px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  direction: rtl;
}

.finput {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 13px;
  background: var(--bg);
  margin-bottom: 10px;
  direction: rtl;
  text-align: right;
}

.flabel {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 5px;
}

.main-btn {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 13px;
  font-weight: 700;
}


/* ===== WALLET ===== */

.wallet-card {
  margin: 0 16px 14px;
  background: linear-gradient(135deg,#ff6b35,#ff9a56);
  border-radius: 18px;
  padding: 18px;
  color: white;
}

.wallet-balance {
  font-size: 28px;
  font-weight: 900;
}

.wallet-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 16px 14px;
}

.wallet-btn {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
}


/* ===== ACCOUNT ===== */

.acc-header {
  background: linear-gradient(135deg,#ff6b35,#ff9a56);
  border-radius: 18px;
  padding: 24px;
  color: white;
  margin: 16px;
  text-align: center;
}

.acc-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin: 0 16px 14px;
}

.acc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}


/* ===== ADS PACKAGES ===== */

.ad-pkg {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  margin: 0 16px 12px;
}

.ad-feat {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 5px;
}

.ad-feat::before {
  content: '✓ ';
  color: var(--green);
}

.ad-pkg-btn {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px;
}


/* ===== BOTTOM NAV ===== */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: white;
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 500;
  direction: rtl;
  overflow: visible;
  padding-top: 6px;
}

.nbtn,
.sell-btn-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  background: none;
  border: none;
  padding: 2px 4px 8px;
}

.nbtn {
  padding: 10px 4px 8px;
}

.nbtn .ni {
  font-size: 20px;
}

.nbtn .nl,
.sell-lbl {
  font-size: 9px;
}

.nbtn.active .nl {
  color: var(--primary);
}

.sell-btn-wrap {
  position: relative;
  z-index: 2;
}

.sell-icon {
  width: 48px;
  height: 48px;
  margin-top: -16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444, #f97316);
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.25);
  border: 3px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: sellPulse 3s ease-in-out infinite;
}

.sell-lbl {
  font-size: 10px;
  font-weight: 900;
  color: #000;
  margin-top: 2px;
}

@keyframes sellPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.25);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 5px 16px rgba(249, 115, 22, 0.3);
  }
}


/* ===== RADIO - Floating Icon ===== */

.radio-fab {
  position: fixed;
  bottom: 86px;
  right: max(14px, calc(50% - 240px + 14px));
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg,#1a1a2e,#2d2d5e);
  border: 2px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 600;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0,0,0,0.35);
  animation: radioFabGlow 2.4s ease-in-out infinite;
  touch-action: none;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
}

.radio-fab:active {
  transform: scale(0.92);
}

.radio-fab.playing {
  animation: none;
  border-color: rgba(255,68,68,0.7);
}

.radio-fab .radio-fab-icon {
  font-size: 24px;
  line-height: 1;
}

.radio-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #888;
  border: 2px solid #fff;
  display: none;
}

.radio-dot.on {
  display: block;
  background: #ff4444;
  animation: radioDotPulse 1.1s infinite;
}

@keyframes radioDotPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255,68,68,0.65);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(255,68,68,0);
  }
}

.radio-close-btn {
  position: absolute;
  bottom: -3px;
  left: -3px;
  width: 22px;
  height: 22px;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  background: #1a1a2e;
  color: #fff;
  font-size: 11px;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  display: flex;
  line-height: 1;
}

@keyframes radioFabGlow {
  0%, 100% {
    box-shadow:
      0 0 0 0 rgba(255,107,53,0.45),
      0 10px 26px rgba(0,0,0,0.35);
  }
  50% {
    box-shadow:
      0 0 0 9px rgba(255,107,53,0.10),
      0 10px 26px rgba(0,0,0,0.35);
  }
}


/* ===== HEADER STATS ===== */

.header-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 12px;
  padding: 6px 12px;
  direction: rtl;
  flex-shrink: 0;
}

.hstat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.hstat + .hstat {
  border-inline-start: 1px solid rgba(255,255,255,0.3);
  padding-inline-start: 12px;
}

.hstat-ico {
  font-size: 17px;
  line-height: 1;
}

.hstat-num {
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  direction: ltr;
  line-height: 1.2;
}

.hstat-lbl {
  color: rgba(255,255,255,0.9);
  font-size: 8px;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.2;
}


/* ===== TOAST ===== */

.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 13px;
  z-index: 9000;
  opacity: 0;
}

.toast.show {
  opacity: 1;
}


/* ===== SERVICE DETAIL ===== */

.svc-detail-wrap {
  padding: 0 16px 16px;
  direction: rtl;
}

.svc-detail-header {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg,#fff3ee,#fff8f5);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 14px;
}

.svc-detail-icon {
  width: 56px;
  height: 56px;
  background: white;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.svc-detail-name {
  font-size: 18px;
  font-weight: 900;
}

.svc-detail-cat,
.svc-detail-phone {
  color: var(--muted);
}

.svc-detail-phone {
  direction: ltr;
  text-align: right;
}

.svc-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.svc-action-btn {
  flex: 1;
  border: none;
  border-radius: 14px;
  padding: 14px;
  font-weight: 700;
}

.svc-action-btn.wa {
  background: var(--green);
  color: white;
}

.svc-action-btn.call {
  background: #2563eb;
  color: white;
}

.svc-action-btn.fb {
  background: #1877f2;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.svc-action-btn.share,
.svc-action-btn.fav-action {
  background: var(--bg);
}


/* ===== FAVORITES ===== */

.fav-section-home {
  margin: 0 16px 14px;
  display: none;
}

.fav-section-home.show {
  display: block;
}


/* ===== MOBILE ===== */

@media (max-width: 390px) {

  .brand-name {
    font-size: 13px;
  }

  .brand-sub,
  .brand-weather {
    font-size: 9px;
  }

  .brand-icon {
    width: 34px;
    height: 34px;
  }

  .header-action-btn {
    width: 44px;
  }

  .header-action-icon {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }

  .header-action-label {
    font-size: 8px;
  }

  .svc-wa-btn,
  .svc-call-btn,
  .svc-fb-btn,
  .fav-heart-btn {
    width: 30px;
    height: 30px;
  }
}


/* ===== COVER HERO ===== */

.cover-hero {
  margin: 12px 0 0;
  padding: 26px 18px 30px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%,rgba(255,255,255,0.14),transparent 60%),
    linear-gradient(135deg,#0d4d33 0%,#0e5c3c 100%);
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
}

/* ===== زرار بيع واشتري (يشبه OLX) ===== */

.olx-buy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  padding: 18px 28px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg,#ff6b35 0%,#f93c3c 50%,#d92626 100%);
  color: white;
  font-family: 'Tajawal', sans-serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.5px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 10px 26px rgba(249,60,60,0.45),
    0 0 0 6px rgba(255,255,255,0.12);
  animation: olxPulse 2s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
}

.olx-buy-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255,255,255,0.55) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  animation: olxShine 2.6s ease-in-out infinite;
}

.olx-cart {
  font-size: 30px;
  line-height: 1;
  animation: olxCartBounce 2s ease-in-out infinite;
}

.olx-txt {
  position: relative;
  z-index: 1;
}

.olx-buy-btn:active {
  transform: scale(0.95);
  box-shadow:
    0 6px 18px rgba(249,60,60,0.4),
    0 0 0 6px rgba(255,255,255,0.12);
}

@keyframes olxPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      0 10px 26px rgba(249,60,60,0.45),
      0 0 0 6px rgba(255,255,255,0.12);
  }
  50% {
    transform: scale(1.03);
    box-shadow:
      0 14px 34px rgba(249,60,60,0.55),
      0 0 0 14px rgba(255,255,255,0.05);
  }
}

@keyframes olxShine {
  0% { left: -80%; }
  55% { left: 130%; }
  100% { left: 130%; }
}

@keyframes olxCartBounce {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-4px) rotate(6deg); }
}


/* ===== تصنيفات بيع واشتري ===== */

.prod-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 16px 12px;
  scrollbar-width: none;
}

.prod-chips::-webkit-scrollbar {
  display: none;
}

.prod-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--muted);
  font-family: 'Tajawal', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.prod-chip-ico {
  font-size: 18px;
  line-height: 1;
}

.prod-chip-name {
  line-height: 1;
}

.prod-chip.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.prod-chip.active .prod-chip-ico {
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2));
}

/* ===== عروض المحلات ===== */

.shop-offers {
  display: none;
  padding: 0 16px 12px;
}

.shop-offers-title {
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 8px;
}

.shop-offers-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.shop-offers-scroll::-webkit-scrollbar {
  display: none;
}

.shop-offers-item {
  flex-shrink: 0;
  width: 96px;
  text-align: center;
}

.shop-offers-logo {
  position: relative;
  width: 60px;
  height: 60px;
  margin: 0 auto 6px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.shop-offers-icon {
  font-size: 28px;
  line-height: 1;
}

.shop-offers-badge {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 800;
  color: #fff;
  border-radius: 50px;
  padding: 2px 7px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}

.shop-offers-badge.green {
  background: #16a34a;
}

.shop-offers-badge.red {
  background: #dc2626;
}

.shop-offers-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prod-cat-pill {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 50px;
  padding: 2px 10px;
  font-size: 10px;
  font-weight: 700;
}


/* ===== POPUP ===== */

.promo-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: popFade 0.25s ease;
}

@keyframes popFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.promo-card {
  position: relative;
  width: 100%;
  max-width: 330px;
  background: white;
  border-radius: 22px;
  padding: 26px 20px 22px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  animation: popIn 0.4s ease;
}

.promo-close {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: var(--bg);
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
}

.promo-icon {
  width: 66px;
  height: 66px;
  margin: 0 auto 12px;
  background: linear-gradient(135deg,#ff6b35,#ff9a56);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 8px 20px rgba(255,107,53,0.4);
}

.promo-title {
  font-size: 19px;
  font-weight: 900;
  margin-bottom: 8px;
}

.promo-text {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 18px;
}

.promo-btn {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 13px;
  font-family: 'Tajawal', sans-serif;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.promo-btn:active {
  transform: scale(0.97);
}

.promo-note {
  margin-top: 12px;
  font-size: 11px;
  color: var(--muted);
}


/* ===== PROMO GOLD CARD ===== */

.promo-gold {
  background: linear-gradient(165deg,#fff9dc 0%,#ffe89a 28%,#ffd54a 55%,#f5b926 80%,#d69b1f 100%);
  border: 2px solid #fff8d6;
  box-shadow:
    0 20px 60px rgba(120,80,0,0.45),
    0 0 45px rgba(255,215,0,0.4);
}

.promo-gold .promo-close {
  background: rgba(255,255,255,0.75);
  color: #7a5200;
}

.promo-gold .promo-icon {
  background: linear-gradient(135deg,#8a5a00,#ffd700);
  box-shadow: 0 8px 20px rgba(138,90,0,0.5);
}

.promo-gold .promo-title {
  color: #6b4700;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 1px;
  text-shadow: 0 1px 2px rgba(255,255,255,0.7);
}

.promo-gold .promo-title-main {
  font-size: 18px;
  font-weight: 900;
  color: #6b4700;
  margin-bottom: 8px;
  text-shadow: 0 1px 2px rgba(255,255,255,0.6);
}

.promo-gold .promo-text {
  color: #7a5200;
}

.promo-gold .promo-btn {
  background: linear-gradient(135deg,#6b4700,#8a5a00);
  color: #fff8dc;
  box-shadow: 0 6px 16px rgba(107,71,0,0.35);
}

.promo-gold .promo-note {
  color: #6b4700;
  font-weight: 700;
}

/* ===== GOLD SHIMMER ===== */

.promo-shine {
  position: relative;
  overflow: hidden;
}

.promo-shine::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 60%;
  height: 200%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255,255,255,0.45) 40%,
    rgba(255,255,255,0.75) 50%,
    rgba(255,255,255,0.45) 60%,
    transparent 100%
  );
  transform: skewX(-20deg);
  animation: goldShine 2.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes goldShine {
  0%   { left: -100%; }
  55%  { left: 140%; }
  100% { left: 140%; }
}

/* ===== PROMO GOLD BUTTONS ===== */

.promo-gold-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.promo-gold-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 14px;
  font-family: 'Tajawal', sans-serif;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  position: relative;
  z-index: 3;
  transition: transform 0.15s ease;
}

.promo-gold-btn:active {
  transform: scale(0.96);
}

.promo-gold-btn.add {
  background: linear-gradient(135deg,#16a34a,#22c55e);
  color: white;
  box-shadow: 0 6px 20px rgba(34,197,94,0.45);
}

.promo-gold-btn.wa {
  background: rgba(255,255,255,0.85);
  color: #6b4700;
  border: 2px solid #d69b1f;
}


/* ===== INSTALL BAR (PWA) ===== */

.install-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: #1a1a2e;
  color: #fff;
  z-index: 9990;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.25);
  direction: rtl;
  animation: installUp 0.35s ease;
}

.install-bar.expanded {
  align-items: flex-start;
}

@keyframes installUp {
  from { transform: translate(-50%, 110%); }
  to   { transform: translate(-50%, 0); }
}

.install-info {
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.install-icon {
  font-size: 26px;
  flex-shrink: 0;
}

.install-txt {
  min-width: 0;
}

.install-title {
  font-size: 13.5px;
  font-weight: 900;
}

.install-sub {
  font-size: 11px;
  color: #cbd5e1;
  margin-top: 2px;
  line-height: 1.5;
}

.install-hint {
  font-size: 11px;
  color: #ffb199;
  margin-top: 4px;
}

.install-steps {
  font-size: 11px;
  color: #e2e8f0;
  margin-top: 8px;
  line-height: 1.9;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 10px 12px;
}

.install-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.install-btn {
  background: #ff6b35;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 9px 16px;
  font-family: 'Tajawal', sans-serif;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.install-btn:active {
  transform: scale(0.95);
}

.install-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 15px;
  cursor: pointer;
  padding: 4px;
}

.install-close:active {
  color: #fff;
}

@media (min-width: 481px) {
  .install-bar {
    border-radius: 18px 18px 0 0;
  }
}

/* ===== معاين الصور (التكبير) ===== */

.img-viewer {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-viewer[hidden] {
  display: none;
}

.img-viewer img {
  max-width: 94vw;
  max-height: 90vh;
  border-radius: 10px;
  object-fit: contain;
}

.img-viewer-close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.img-zoom-hint {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 13px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.prod-detail-img {
  cursor: zoom-in;
}

/* ===== تقييم المحلات (النجوم) ===== */

.rating-box {
  background: var(--bg);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
}

.rating-title {
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 8px;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rating-stars {
  display: flex;
  gap: 3px;
  direction: ltr;
}

.star-btn {
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  padding: 2px;
  cursor: pointer;
  color: #d1d5db;
  font-family: 'Tajawal', sans-serif;
  transition: transform 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.star-btn.on {
  color: #f59e0b;
}

.star-btn.mine {
  transform: scale(1.15);
  color: #fbbf24;
}

.star-btn:active {
  transform: scale(0.85);
}

.rating-meta {
  display: flex;
  flex-direction: column;
}

.rating-num {
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
}

.rating-count {
  font-size: 11px;
  color: var(--muted);
}

.rating-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}

.rating-loading {
  font-size: 12px;
  color: var(--muted);
}

.rating-input-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.rating-input {
  flex: 1;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 12px;
  font-family: 'Tajawal', sans-serif;
  color: var(--text);
  outline: none;
}

.rating-input:focus {
  border-color: var(--primary);
}

.rating-save-btn {
  border: 0;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Tajawal', sans-serif;
  padding: 0 14px;
  cursor: pointer;
  white-space: nowrap;
}

.rating-list {
  margin-top: 12px;
  border-top: 1px dashed var(--border);
  padding-top: 10px;
}

.rating-list-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.rating-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 11px;
  margin-bottom: 7px;
}

.rating-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.rating-item-head b {
  font-size: 12px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rating-item-stars {
  color: #f59e0b;
  font-size: 12px;
  letter-spacing: 1px;
  direction: ltr;
}

.rating-item p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin: 4px 0 0;
}

.legal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 16px 26px;
  flex-wrap: wrap;
}

.legal-links a {
  color: var(--muted);
  font-size: 11px;
  text-decoration: none;
}

.legal-links a:active {
  color: var(--primary);
}

.legal-dot {
  color: var(--muted);
  font-size: 11px;
}

/* ===== خريطة القرى ===== */

.map-home-card {
  margin: 16px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  color: #fff;
}

.map-home-card:active {
  transform: scale(0.98);
}

.mhc-emoji {
  font-size: 28px;
  background: rgba(255, 255, 255, 0.18);
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.mhc-title {
  font-size: 14px;
  font-weight: 900;
}

.mhc-sub {
  font-size: 11px;
  opacity: 0.9;
  margin-top: 3px;
}

.mhc-arrow {
  font-size: 24px;
  opacity: 0.8;
}

.map-my-loc {
  margin: 4px 16px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  cursor: pointer;
}

.map-villages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 2px 16px 14px;
}

.map-village-chip {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Tajawal', sans-serif;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s;
}

.map-village-chip.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.map-frame-wrap {
  padding: 0 16px 14px;
}

.map-frame {
  width: 100%;
  border: 0;
  border-radius: 16px;
  min-height: 280px;
  background: var(--bg);
}

.map-places {
  padding: 0 16px 30px;
}

.map-places-title {
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 10px;
}

.map-place-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.mpc-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mpc-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

.mpc-cat {
  font-size: 10px;
  color: var(--muted);
  background: var(--bg);
  border-radius: 14px;
  padding: 2px 8px;
}

.mpc-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.mpc-dir {
  flex: none;
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  border-radius: 10px;
  padding: 9px 12px;
  white-space: nowrap;
}

/* ===== بيع واشتري: تم البيع ===== */

.sold-banner {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: right;
  background: #eff6ff;
  color: #2563eb;
  border: 1.5px solid #2563eb;
  font-weight: 800;
  border-radius: 12px;
  padding: 12px;
}

.sold-banner-smile {
  font-size: 26px;
}

.sold-banner-title {
  font-size: 15px;
}

.sold-banner-sub {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.85;
  margin-top: 2px;
}

.product-sold .product-img {
  position: relative;
}

.product-sold-badge {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(37, 99, 235, 0.78);
  color: #fff;
  font-weight: 900;
  font-size: 13px;
}

.product-sold-smile {
  font-size: 30px;
}

.sold-btn {
  background: #2563eb !important;
  color: #fff;
}

.my-prod-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 20px;
  padding: 3px 10px;
  width: fit-content;
}

.my-prod-mini {
  border: none;
  border-radius: 10px;
  padding: 8px 12px;
  font-family: 'Tajawal', sans-serif;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.my-prod-mini:active {
  transform: scale(0.96);
}

.my-prod-mini.sold-act {
  background: #2563eb;
  color: #fff;
}

.my-prod-mini.re-act {
  background: #fff7ed;
  color: #d97706;
  border: 1px solid #fed7aa;
}

.shop-offers-item {
  cursor: pointer;
}


/* ============ خير بلدنا 🤝 ============ */

#screen-khair,
#screen-khair-form {
  padding-bottom: 90px;
}

.khair-back {
  display: inline-block;
  border: none;
  background: transparent;
  color: #0d4d33;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  margin: 12px 4px 0;
  padding: 8px 14px;
  cursor: pointer;
}

.khair-hero {
  background: linear-gradient(135deg, #0d4d33, #1a6b45);
  border-radius: 0 0 28px 28px;
  padding: 34px 22px;
  text-align: center;
  margin-bottom: 18px;
}

.khair-hero-title {
  color: #fff;
  font-size: 28px;
  font-weight: 900;
}

.khair-hero-sub {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 600;
  margin-top: 6px;
}

.khair-hero-bar {
  width: 60px;
  height: 4px;
  border-radius: 4px;
  background: #f97316;
  margin: 16px auto 0;
}

.khair-soon-banner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.30);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.khair-cards {
  padding: 0 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.khair-card {
  border-radius: 20px;
  padding: 22px 18px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.khair-card-lessons {
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
}

.khair-card-food {
  background: linear-gradient(135deg, #c2410c, #f97316);
}

.khair-card-icon {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 12px;
}

.khair-card-name {
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  margin-bottom: 8px;
}

.khair-card-desc {
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 14px;
}

.khair-card-btn {
  border: none;
  border-radius: 30px;
  padding: 10px 26px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.khair-card-lessons .khair-card-btn {
  background: #fff;
  color: #1e3a8a;
}

.khair-card-food .khair-card-btn {
  background: #fff;
  color: #c2410c;
}

.khair-card-btn.soon {
  background: rgba(255, 255, 255, 0.92);
  color: #0d4d33;
  box-shadow: 0 2px 6px rgba(13, 77, 51, 0.15);
}


/* النموذج المنزلق */

.khair-form-card {
  background: #fff;
  margin: 10px 14px;
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  animation: khairSlideUp 0.35s ease both;
}

@keyframes khairSlideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.khair-form-title {
  font-size: 17px;
  font-weight: 900;
  text-align: center;
  color: #0d4d33;
  margin-bottom: 6px;
}

.khair-form-hint {
  text-align: center;
  font-size: 12px;
  color: #666;
  margin-bottom: 14px;
}

.khair-submit {
  width: 100%;
  background: linear-gradient(135deg, #0d4d33, #1a6b45);
  margin-top: 14px;
}


/* نافذة النجاح */

.khair-success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.khair-success-overlay.active {
  display: flex;
}

.khair-success-popup {
  background: #fff;
  border-radius: 24px;
  padding: 30px 22px;
  text-align: center;
  max-width: 320px;
  width: 100%;
  animation: khairSlideUp 0.35s ease both;
}

.khair-success-icon {
  font-size: 54px;
  animation: khairPop 0.5s ease both;
}

@keyframes khairPop {
  0% {
    transform: scale(0);
  }
  70% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}

.khair-success-title {
  font-size: 18px;
  font-weight: 900;
  color: #0d4d33;
  margin-top: 10px;
}

.khair-success-text {
  font-size: 13px;
  color: #666;
  line-height: 1.8;
  margin-top: 8px;
}

.khair-success-btn {
  width: 100%;
  border: none;
  border-radius: 30px;
  padding: 12px;
  background: #0d4d33;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  margin-top: 16px;
}


/* لوحة إدارة التسجيلات (Admin) */

.khair-admin-card {
  margin-top: 12px;
  padding: 14px;
}

.khair-admin-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.khair-admin-head span:last-child {
  font-size: 11px;
  font-weight: 800;
  background: rgba(13, 77, 51, 0.1);
  color: #0d4d33;
  padding: 3px 10px;
  border-radius: 20px;
}

.khair-admin-tools {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.khair-select {
  flex: 1;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  background: #fff;
}

.khair-export {
  border: none;
  border-radius: 12px;
  padding: 8px 14px;
  background: #0d4d33;
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.khair-export:active {
  transform: scale(0.96);
}

.khair-table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 2px solid #eef0f3;
}

.khair-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  min-width: 640px;
}

.khair-table th {
  background: #f3f4f6;
  padding: 9px 8px;
  font-weight: 900;
  color: #333;
  text-align: right;
  white-space: nowrap;
}

.khair-table td {
  padding: 9px 8px;
  border-top: 1px solid #f0f0f0;
  color: #444;
  vertical-align: top;
}

.khair-admin-note {
  text-align: center;
  color: #999;
  font-size: 13px;
  padding: 20px;
}


/* ============ لوحة تحكم الأقسام (Soft-UI tactile panel) ============ */

/* السطح الموحّد — صينية متماسكة يطفو فوقها الأزرار */
.gate-diamond {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 7px;
  padding: 14px;
  margin: 4px 14px 0;
  max-width: 440px;
  border-radius: 30px;
  position: relative;
  background:
    radial-gradient(circle at 30% 12%, rgba(255, 255, 255, 0.30) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(158deg, #d9e2d4 0%, #c8d5c7 52%, #d2dcd0 100%);
  box-shadow:
    inset 3px 3px 10px rgba(96, 118, 100, 0.25),
    inset -3px -3px 10px rgba(255, 255, 255, 0.55),
    0 14px 30px rgba(23, 26, 40, 0.12);
}

/* شمواه ناعم — خامة سطح دقيقة وهادئة فوق التدرج اللوني */
.gate-diamond::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 0;
  pointer-events: none;
  opacity: 0.10;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* الزر — بارز (convex) من نفس السطح، لمسة فعلية */
.gd-square {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 8px;
  height: 100%;
  min-height: 96px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(155deg, #fdfdff 0%, #eceff5 100%);
  box-shadow:
    -6px -6px 12px rgba(255, 255, 255, 0.9),
    7px 7px 16px rgba(23, 26, 40, 0.28),
    0 2px 4px rgba(23, 26, 40, 0.10),
    inset 1px 1px 2px rgba(255, 255, 255, 0.95),
    inset -1px -2px 4px rgba(23, 26, 40, 0.10);
  cursor: pointer;
  text-align: center;
  will-change: transform, box-shadow;
  transition: transform 150ms cubic-bezier(0.2, 0.7, 0.3, 1.2), box-shadow 150ms ease;
}

@media (hover: hover) {
  .gd-square:hover {
    transform: translateY(-2px);
    box-shadow:
      -7px -7px 14px rgba(255, 255, 255, 0.92),
      8px 8px 18px rgba(23, 26, 40, 0.32),
      inset 1px 1px 2px rgba(255, 255, 255, 0.95),
      inset -1px -2px 4px rgba(23, 26, 40, 0.10);
  }
}

/* الضغط — الزر يُغرز جوه السطح (inset) بحركة سريعة */
.gd-square:active {
  transform: scale(0.96) translateY(1px);
  box-shadow:
    inset 6px 6px 12px rgba(23, 26, 40, 0.22),
    inset -6px -6px 12px rgba(255, 255, 255, 0.92),
    0 1px 2px rgba(23, 26, 40, 0.08);
}

.gd-square:focus-visible {
  outline: 3px solid rgba(255, 107, 53, 0.55);
  outline-offset: 2px;
}

/* شريحة الأيقونة — لون الهوية هنا فقط، السطح محايد */
.gd-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  font-size: 30px;
  line-height: 1;
  background: var(--gd-chip, #edf0f6);
  box-shadow:
    inset 1px 1px 2px rgba(255, 255, 255, 0.9),
    inset -1px -2px 3px rgba(23, 26, 40, 0.08),
    0 6px 12px rgba(23, 26, 40, 0.10);
}

.gd-name {
  font-size: 13px;
  font-weight: 900;
  color: var(--gd-accent, var(--text));
  line-height: 1.5;
  text-wrap: balance;
}

/* الشاشات الضيقة (≈360px) — تقلّص متزن يحافظ على التماثل والالتفاف */
@media (max-width: 370px) {
  .gate-diamond {
    margin: 4px 10px 0;
    padding: 12px;
    gap: 6px;
    border-radius: 26px;
  }

  .gd-square {
    padding: 10px 6px;
    min-height: 90px;
    gap: 6px;
  }

  .gd-emoji {
    width: 46px;
    height: 46px;
    font-size: 27px;
    border-radius: 16px;
  }

  .gd-name {
    font-size: 12px;
  }

  .gd-center {
    width: 92px;
    height: 92px;
  }
}

/* المواضع داخل المعين */
.pos-t {
  grid-column: 2;
  grid-row: 1;
}

.pos-l {
  grid-column: 3;
  grid-row: 2;
}

.pos-c {
  grid-column: 2;
  grid-row: 2;
}

.pos-r {
  grid-column: 1;
  grid-row: 2;
}

.pos-b {
  grid-column: 2;
  grid-row: 3;
}

/* الهوية — لون في الأيقونة والنص فقط (السطح موحّد محايد) */
.gd-services {
  --gd-chip: #ffead9;
  --gd-accent: #d95c24;
}

.gd-market {
  --gd-chip: #e2f7ec;
  --gd-accent: #087a43;
}

.gd-khair {
  --gd-chip: #e3f2eb;
  --gd-accent: #0d4d33;
}

.gd-suggest {
  --gd-chip: #fdf0dc;
  --gd-accent: #b45309;
}

/* خير بلدنا — Coming Soon: مؤشر ملاصق أسفل الزر مباشرة، عشان العميل يفهم إن هو ده القسم الجاي قريبًا */
.gd-soon {
  grid-column: 1;
  grid-row: 3;
  justify-self: center;
  align-self: start;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 900;
  color: #0d4d33;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(13, 77, 51, 0.35);
  border-radius: 999px;
  padding: 4px 11px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(23, 26, 40, 0.14);
  pointer-events: none;
  z-index: 2;
}

.gd-soon-spin {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid rgba(13, 77, 51, 0.25);
  border-top-color: #0d4d33;
  animation: gdSoonSpin 2.2s linear infinite;
  opacity: 0.85;
}

@keyframes gdSoonSpin {
  to {
    transform: rotate(360deg);
  }
}

/* نبض بيع واشتري — بريق هادي على شريحة الأيقونة فقط */
.gd-market .gd-emoji {
  animation: gdSellChipPulse 1.9s ease-in-out infinite;
}

@keyframes gdSellChipPulse {
  0%, 100% {
    box-shadow:
      inset 1px 1px 2px rgba(255, 255, 255, 0.9),
      inset -1px -2px 3px rgba(23, 26, 40, 0.08),
      0 6px 12px rgba(23, 26, 40, 0.10);
  }
  50% {
    box-shadow:
      inset 1px 1px 2px rgba(255, 255, 255, 0.9),
      inset -1px -2px 3px rgba(23, 26, 40, 0.08),
      0 0 0 5px rgba(37, 211, 102, 0.16),
      0 6px 12px rgba(23, 26, 40, 0.10);
  }
}

/* الدائرة المركزية — زر الراديو الفيزيائي (نفس الخامة، أعمق وأكبر) */
.gd-center {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto;
  align-self: center;
  justify-self: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background:
    radial-gradient(circle, transparent 60%, rgba(23, 26, 40, 0.06) 62%, rgba(255, 255, 255, 0.6) 66%, transparent 70%),
    radial-gradient(circle at 25% 18%, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 52%),
    linear-gradient(150deg, #fdfdfe 0%, #eaeef5 100%);
  box-shadow:
    -9px -9px 18px rgba(255, 255, 255, 0.92),
    11px 11px 26px rgba(23, 26, 40, 0.22),
    0 6px 14px rgba(23, 26, 40, 0.10),
    inset 1px 1px 2px rgba(255, 255, 255, 0.95),
    inset -1px -2px 5px rgba(23, 26, 40, 0.12);
  cursor: pointer;
  z-index: 2;
  animation: gdRadioGlow 2.4s ease-in-out infinite;
  will-change: transform, box-shadow;
  transition: transform 150ms cubic-bezier(0.2, 0.7, 0.3, 1.2), box-shadow 150ms ease;
}

@media (hover: hover) {
  .gd-center:hover {
    transform: translateY(-2px);
  }
}

.gd-center:active {
  animation: none;
  transform: scale(0.92);
  box-shadow:
    inset 8px 8px 16px rgba(23, 26, 40, 0.18),
    inset -8px -8px 16px rgba(255, 255, 255, 0.92),
    0 3px 8px rgba(23, 26, 40, 0.10);
}

.gd-center:focus-visible {
  outline: 3px solid rgba(255, 107, 53, 0.55);
  outline-offset: 2px;
}

.gd-radio-icon {
  font-size: 34px;
  line-height: 1;
}

.gd-radio-lbl {
  font-size: 11px;
  color: #1a1a2e;
  font-weight: 900;
  margin-top: 1px;
  white-space: nowrap;
}

.gd-center.playing {
  animation: none;
  border-color: rgba(255, 68, 68, 0.6);
}

.gd-center .radio-dot {
  position: absolute;
  top: -3px;
  right: -3px;
}

@keyframes gdRadioGlow {
  0%, 100% {
    box-shadow:
      -9px -9px 18px rgba(255, 255, 255, 0.92),
      11px 11px 26px rgba(23, 26, 40, 0.22),
      0 0 0 0 rgba(255, 107, 53, 0.35),
      inset 1px 1px 2px rgba(255, 255, 255, 0.95),
      inset -1px -2px 5px rgba(23, 26, 40, 0.12);
  }
  50% {
    box-shadow:
      -9px -9px 18px rgba(255, 255, 255, 0.92),
      11px 11px 26px rgba(23, 26, 40, 0.24),
      0 0 0 9px rgba(255, 107, 53, 0.10),
      inset 1px 1px 2px rgba(255, 255, 255, 0.95),
      inset -1px -2px 5px rgba(23, 26, 40, 0.12);
  }
}

/* شاشة الاقتراحات */
.sug-hero {
  background: linear-gradient(135deg, #d97706, #fbbf24);
  border-radius: 0 0 28px 28px;
  padding: 30px 22px;
  text-align: center;
  margin-bottom: 18px;
}

.sug-hero-ico {
  font-size: 44px;
  line-height: 1;
}

.sug-hero-title {
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  margin-top: 10px;
}

.sug-hero-sub {
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  margin-top: 6px;
  line-height: 1.7;
}

.sug-submit {
  width: 100%;
  background: linear-gradient(135deg, #d97706, #f59e0b);
  margin-top: 14px;
}

/* شاشة التصنيفات */
.gate-back {
  display: inline-block;
  border: none;
  background: transparent;
  color: var(--primary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  margin: 12px 4px 0;
  padding: 8px 14px;
  cursor: pointer;
}

.gate-back:active {
  transform: scale(0.96);
}

.cats-screen-head {
  padding: 8px 18px 6px;
}

.cats-screen-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
}

.cats-screen-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.6;
}

#screen-cats {
  padding-bottom: 24px;
}

#screen-cats .cats-grid {
  padding-top: 4px;
}


/* ============ كوينز الدهب 🪙 ============ */

.coin-chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px 8px 12px;
  background: linear-gradient(150deg, #ffe0a3, #ffc55c 45%, #f5a623);
  border-radius: 13px 13px 18px 18px;
  box-shadow:
    0 4px 10px rgba(180, 110, 0, 0.35),
    inset 0 2px 3px rgba(255, 255, 255, 0.7),
    inset 0 -4px 6px rgba(180, 110, 0, 0.18);
  cursor: pointer;
  transition: transform 0.12s ease;
}

/* فتحة إيداع العملة للحصالة */
.coin-chip::before {
  content: '';
  position: absolute;
  top: 4px;
  inset-inline-end: 13px;
  width: 14px;
  height: 5px;
  background: #4a2f06;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 3px;
  transform: rotate(8deg);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

.coin-chip:active {
  transform: scale(0.94) translateY(1px);
}

.coin-ico {
  font-size: 22px;
  line-height: 1;
  filter: drop-shadow(0 1px 1px rgba(74, 47, 6, 0.25));
}

.coin-num {
  direction: ltr;
  font-size: 15px;
  font-weight: 900;
  color: #4a2f06;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 2px 8px;
  min-width: 26px;
  text-align: center;
  box-shadow: inset 0 1px 2px rgba(180, 110, 0, 0.25);
}

.coin-flash {
  animation: coinFlash 0.8s ease;
}

@keyframes coinFlash {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.25);
    box-shadow:
      0 0 0 6px rgba(245, 166, 35, 0.35),
      0 4px 12px rgba(180, 110, 0, 0.45),
      inset 0 1px 2px rgba(255, 255, 255, 0.6);
  }
  100% {
    transform: scale(1);
  }
}

/* حصالة الكوينز + الجوائز */
.coins-card {
  background: linear-gradient(160deg, #fffdf5, #fff6df);
  border: 1px solid #f3ddab;
  border-radius: 22px;
  padding: 16px;
  margin: 16px 16px 0;
  box-shadow: var(--shadow);
}

.coins-card-head {
  font-size: 15px;
  font-weight: 900;
  color: #8a5a00;
}

.coins-balance {
  font-size: 30px;
  font-weight: 900;
  color: #d97706;
  margin: 8px 0 6px;
  text-align: center;
}

.coins-balance b {
  color: #b45309;
}

.coins-hint {
  font-size: 12px;
  color: #a16207;
  text-align: center;
  margin-bottom: 10px;
  line-height: 1.6;
}

.coins-areas {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.coin-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  background: #fff;
  border-radius: 12px;
  padding: 9px 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.coin-area.done {
  color: var(--muted);
}

.coin-area-done {
  color: #16a34a;
  font-weight: 900;
}

.coin-area-miss {
  color: #d97706;
  font-weight: 900;
}

.coins-card-sub {
  font-size: 14px;
  font-weight: 900;
  color: #8a5a00;
  margin: 14px 0 8px;
}

.coin-reward {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.coin-reward-info b {
  font-size: 13px;
  color: var(--text);
}

.coin-reward-cost {
  font-size: 12px;
  color: #d97706;
  font-weight: 900;
  margin-top: 2px;
}

.coin-reward-btn {
  background: linear-gradient(160deg, #ffd76a, #f5a623);
  color: #5b3a00;
  font-size: 13px;
  font-weight: 900;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(180, 110, 0, 0.3);
  transition: transform 0.12s ease;
}

.coin-reward-btn:active {
  transform: scale(0.95);
}

.coin-reward-btn:disabled {
  opacity: 0.6;
}

.coin-norewards {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  padding: 8px;
}

/* حدث الـ 100 كوينز */
.coin-ms-card {
  background: linear-gradient(170deg, #fffdf3, #ffe9b3);
  border: 2px solid #f0c14b;
  border-radius: 26px;
  max-width: 360px;
  width: 100%;
  padding: 26px 22px;
  text-align: center;
  box-shadow:
    0 0 0 8px rgba(245, 166, 35, 0.18),
    0 24px 60px rgba(0, 0, 0, 0.4);
  animation: coinMsIn 0.45s ease;
}

@keyframes coinMsIn {
  0% {
    transform: scale(0.7) translateY(30px);
    opacity: 0;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.coin-ms-ico {
  font-size: 64px;
  line-height: 1;
  animation: coinMsBounce 1.6s ease-in-out infinite;
}

@keyframes coinMsBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.coin-ms-title {
  font-size: 24px;
  font-weight: 900;
  color: #7c4a03;
  margin-top: 12px;
}

.coin-ms-bal {
  font-size: 18px;
  font-weight: 900;
  color: #d97706;
  margin-top: 8px;
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  display: inline-block;
  box-shadow: 0 2px 6px rgba(180, 110, 0, 0.2);
}

.coin-ms-text {
  font-size: 14px;
  color: #6b4a0a;
  line-height: 1.8;
  margin: 14px 0 18px;
}

.coin-ms-btn {
  background: linear-gradient(160deg, #ffd76a, #f5a623);
  color: #5b3a00;
  font-size: 16px;
  font-weight: 900;
  border: none;
  border-radius: 999px;
  padding: 12px 34px;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(180, 110, 0, 0.35);
}

.coin-ms-btn:active {
  transform: scale(0.95);
}

/* زرار تسجيل الخروج الواضح */
.logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: linear-gradient(160deg, #f87171, #dc2626);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  border: none;
  border-radius: 16px;
  padding: 15px;
  margin-top: 14px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.4);
}

.logout-btn:active {
  transform: scale(0.97);
}

.logout-ico {
  font-size: 20px;
}

/* مربع تأكيد الخروج */
.logout-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.logout-modal {
  background: #fff;
  border-radius: 20px;
  max-width: 350px;
  width: 100%;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.logout-modal-ico {
  font-size: 44px;
  line-height: 1;
}

.logout-modal-title {
  font-size: 18px;
  font-weight: 900;
  color: #1e293b;
  margin-top: 10px;
}

.logout-modal-text {
  font-size: 13px;
  color: #64748b;
  line-height: 1.8;
  margin: 8px 0 16px;
}

.logout-modal-actions {
  display: flex;
  gap: 10px;
}

.logout-modal-actions button {
  flex: 1;
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.logout-modal-yes {
  background: #dc2626;
  color: #fff;
}

.logout-modal-no {
  background: #e2e8f0;
  color: #334155;
}

.logout-modal-yes:active,
.logout-modal-no:active {
  transform: scale(0.96);
}

/* شريط إشعار كوينز الدهب */
.coin-announce-bar {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 9000;
  display: flex;
  justify-content: center;
  padding: 0 12px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-30px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.coin-announce-bar.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.coin-announce-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 520px;
  width: 100%;
  background: linear-gradient(170deg, #fffdf3, #ffe9b3);
  border: 2px solid #f0c14b;
  border-radius: 18px;
  padding: 10px 12px;
  box-shadow: 0 12px 34px rgba(180, 110, 0, 0.35);
}

.coin-announce-ico {
  font-size: 30px;
  line-height: 1;
}

.coin-announce-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.coin-announce-text b {
  font-size: 14px;
  font-weight: 900;
  color: #7c4a03;
}

.coin-announce-text span {
  font-size: 12px;
  color: #6b4a0a;
}

.coin-announce-btn {
  background: linear-gradient(160deg, #ffd76a, #f5a623);
  color: #5b3a00;
  font-size: 12px;
  font-weight: 900;
  border: none;
  border-radius: 999px;
  padding: 9px 14px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(180, 110, 0, 0.3);
}

.coin-announce-x {
  background: none;
  border: none;
  color: #a16207;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
}
