/* Couponji Public Styles — v1.0.0 */
:root {
  --cpj-navy:         #0B1120;
  --cpj-navy-mid:     #141E35;
  --cpj-green:        #3BB44A;
  --cpj-green-light:  #4ECE5E;
  --cpj-green-pale:   #E8F9EB;
  --cpj-orange:       #F5A623;
  --cpj-orange-pale:  #FFF4E0;
  --cpj-white:        #FFFFFF;
  --cpj-gray-bg:      #F8F9FA;
  --cpj-border:       #E2E8F0;
  --cpj-text:         #4A5568;
  --cpj-text-dark:    #0B1120;
  --cpj-text-muted:   #718096;
  --cpj-radius-sm:    6px;
  --cpj-radius-md:    10px;
  --cpj-radius-lg:    14px;
  --cpj-radius-xl:    20px;
  --cpj-shadow:       0 2px 8px rgba(0,0,0,0.07);
  --cpj-shadow-hover: 0 8px 24px rgba(0,0,0,0.12);
  --cpj-font:         'Cairo', 'Tajawal', sans-serif;
}

/* ─── Base ─────────────────────────────────────────────────────────────────── */
.cpj-coupon-card,
.cpj-store-card,
.cpj-search-form,
.cpj-category-chips,
.cpj-store-header {
  direction: rtl;
  font-family: var(--cpj-font);
  box-sizing: border-box;
}

/* ─── Grids ────────────────────────────────────────────────────────────────── */
.cpj-coupons-grid,
.cpj-stores-grid {
  display: grid;
  gap: 20px;
  margin: 20px 0;
}

.cpj-grid-1 { grid-template-columns: 1fr; }
.cpj-grid-2 { grid-template-columns: repeat(2, 1fr); }
.cpj-grid-3 { grid-template-columns: repeat(3, 1fr); }
.cpj-grid-4 { grid-template-columns: repeat(4, 1fr); }
.cpj-grid-5 { grid-template-columns: repeat(5, 1fr); }

/* ─── Coupon Card ──────────────────────────────────────────────────────────── */
.cpj-coupon-card {
  background: var(--cpj-white);
  border: 1px solid var(--cpj-border);
  border-radius: var(--cpj-radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--cpj-shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
}

.cpj-coupon-card:hover {
  box-shadow: var(--cpj-shadow-hover);
  transform: translateY(-2px);
}

.cpj-coupon-card.cpj-expired {
  opacity: 0.55;
  filter: grayscale(40%);
}

.cpj-coupon-card.cpj-exclusive {
  border-color: var(--cpj-orange);
  border-width: 2px;
}

/* Card Header */
.cpj-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cpj-store-logo img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: var(--cpj-radius-sm);
  border: 1px solid var(--cpj-border);
  background: var(--cpj-gray-bg);
  padding: 4px;
}

.cpj-logo-placeholder {
  width: 60px;
  height: 60px;
  background: var(--cpj-navy-mid);
  color: var(--cpj-white);
  border-radius: var(--cpj-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
}

.cpj-store-meta {
  flex: 1;
}

.cpj-store-name {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 700;
  color: var(--cpj-text-dark);
  line-height: 1.3;
}

.cpj-store-domain {
  font-size: 12px;
  color: var(--cpj-text-muted);
}

/* Badges */
.cpj-badges {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

.cpj-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.cpj-badge-exclusive { background: var(--cpj-orange-pale); color: var(--cpj-orange); }
.cpj-badge-discount  { background: var(--cpj-green-pale);  color: var(--cpj-green);  }
.cpj-badge-shipping  { background: #E0F2FE; color: #0369A1; }

/* Title */
.cpj-coupon-title {
  margin: 0;
  font-size: 14px;
  color: var(--cpj-text);
  line-height: 1.5;
}

/* ─── Code Box ─────────────────────────────────────────────────────────────── */
.cpj-code-wrapper {
  background: var(--cpj-gray-bg);
  border: 2px dashed var(--cpj-border);
  border-radius: var(--cpj-radius-md);
  overflow: hidden;
}

.cpj-code-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  gap: 10px;
}

.cpj-code-text {
  font-family: 'Courier New', 'Lucida Console', monospace;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--cpj-navy);
  flex: 1;
  text-align: center;
}

.cpj-copy-btn {
  background: var(--cpj-navy);
  color: var(--cpj-white);
  border: none;
  border-radius: var(--cpj-radius-sm);
  padding: 8px 16px;
  font-size: 13px;
  font-family: var(--cpj-font);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.cpj-copy-btn:hover { background: #1a2a4a; }
.cpj-copy-btn.copied { background: var(--cpj-green); }

/* ─── Meta Row ─────────────────────────────────────────────────────────────── */
.cpj-coupon-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
}

.cpj-verified     { color: var(--cpj-green); font-weight: 600; }
.cpj-expiry       { color: var(--cpj-text-muted); }
.cpj-expiring-soon { color: #D97706; font-weight: 600; }
.cpj-usage        { color: var(--cpj-text-muted); }

/* ─── CTA Button ───────────────────────────────────────────────────────────── */
.cpj-reveal-btn {
  display: block;
  background: var(--cpj-green);
  color: var(--cpj-white);
  text-align: center;
  padding: 10px 10px;
  border-radius: var(--cpj-radius-md);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--cpj-font);
  transition: background 0.15s ease, transform 0.1s ease;
  border: none;
  cursor: pointer;
  margin-top: auto;
}

.cpj-reveal-btn:hover {
  background: #2d9e3a;
  color: var(--cpj-white);
  text-decoration: none;
  transform: scale(1.01);
}

.cpj-expired-notice {
  text-align: center;
  color: #9CA3AF;
  font-size: 13px;
  padding: 10px;
  background: var(--cpj-gray-bg);
  border-radius: var(--cpj-radius-sm);
}

/* Terms */
.cpj-terms {
  font-size: 12px;
  color: var(--cpj-text-muted);
  border-top: 1px solid var(--cpj-border);
  padding-top: 10px;
}

.cpj-terms summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--cpj-text);
}

.cpj-terms p { margin: 6px 0 0; line-height: 1.6; }

/* ─── Store Card ───────────────────────────────────────────────────────────── */
.cpj-store-card {
  background: var(--cpj-white);
  border: 1px solid var(--cpj-border);
  border-radius: var(--cpj-radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  box-shadow: var(--cpj-shadow);
  transition: box-shadow 0.2s ease;
  position: relative;
}

.cpj-store-card:hover { box-shadow: var(--cpj-shadow-hover); }

.cpj-store-card.cpj-featured {
  border: 2px solid var(--cpj-orange);
}

.cpj-store-card-logo {
  position: relative;
  display: inline-block;
}

.cpj-store-card-logo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: var(--cpj-radius-md);
  border: 1px solid var(--cpj-border);
  padding: 6px;
  background: var(--cpj-gray-bg);
}

.cpj-logo-lg {
  width: 80px;
  height: 80px;
  font-size: 28px;
}

.cpj-partner-badge {
  position: absolute;
  bottom: -4px;
  left: -4px;
  background: var(--cpj-orange);
  color: var(--cpj-white);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
}

.cpj-store-card-name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--cpj-text-dark);
}

.cpj-store-card-desc {
  margin: 0;
  font-size: 13px;
  color: var(--cpj-text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cpj-store-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--cpj-text-muted);
  justify-content: center;
}

.cpj-star-full, .cpj-star-half { color: var(--cpj-orange); }
.cpj-star-empty { color: #D1D5DB; }

.cpj-coupon-count-badge {
  background: var(--cpj-green-pale);
  color: var(--cpj-green);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.cpj-store-btn {
  display: block;
  width: 100%;
  background: var(--cpj-navy);
  color: var(--cpj-white);
  text-align: center;
  padding: 10px;
  border-radius: var(--cpj-radius-md);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--cpj-font);
  transition: background 0.15s ease;
  margin-top: auto;
}

.cpj-store-btn:hover {
  background: #1a2a4a;
  color: var(--cpj-white);
  text-decoration: none;
}

/* ─── Category Chips ───────────────────────────────────────────────────────── */
.cpj-category-chips {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 10px;
  padding: 10px 0 14px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.cpj-category-chips::-webkit-scrollbar { display: none; }

.cpj-category-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--cpj-white);
  border: 1.5px solid var(--cpj-border);
  border-radius: 30px;
  color: var(--cpj-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--cpj-font);
  white-space: nowrap;
  transition: all 0.15s ease;
  cursor: pointer;
}

.cpj-category-chip:hover {
  border-color: var(--cpj-green);
  color: var(--cpj-green);
  text-decoration: none;
}

.cpj-category-chip.active {
  background: var(--cpj-green);
  border-color: var(--cpj-green);
  color: var(--cpj-white);
}

.cpj-chip-count {
  background: rgba(0,0,0,0.1);
  border-radius: 10px;
  padding: 1px 7px;
  font-size: 11px;
}

.cpj-category-chip.active .cpj-chip-count { background: rgba(255,255,255,0.25); }

/* ─── Search Form ──────────────────────────────────────────────────────────── */
.cpj-search-form {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.cpj-search-hero { max-width: 680px; }
.cpj-search-inline { max-width: 480px; }
.cpj-search-compact { max-width: 320px; }

.cpj-search-inner {
  display: flex;
  align-items: center;
  background: var(--cpj-white);
  border: 2px solid var(--cpj-border);
  border-radius: var(--cpj-radius-xl);
  padding: 6px 8px 6px 20px;
  box-shadow: var(--cpj-shadow);
  transition: border-color 0.15s ease;
}

.cpj-search-inner:focus-within { border-color: var(--cpj-green); }

.cpj-search-icon { font-size: 18px; margin-left: 8px; flex-shrink: 0; }

.cpj-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: var(--cpj-font);
  color: var(--cpj-text-dark);
  background: transparent;
  padding: 8px 0;
}

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

.cpj-search-btn {
  background: var(--cpj-green);
  color: var(--cpj-white);
  border: none;
  border-radius: var(--cpj-radius-xl);
  padding: 10px 24px;
  font-size: 14px;
  font-family: var(--cpj-font);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
  flex-shrink: 0;
}

.cpj-search-btn:hover { background: #2d9e3a; }

/* Autocomplete */
.cpj-autocomplete {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  background: var(--cpj-white);
  border: 1px solid var(--cpj-border);
  border-radius: var(--cpj-radius-lg);
  box-shadow: var(--cpj-shadow-hover);
  z-index: 9999;
  overflow: hidden;
  display: none;
}

.cpj-autocomplete.open { display: block; }

.cpj-autocomplete-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.1s ease;
  font-size: 14px;
  color: var(--cpj-text-dark);
}

.cpj-autocomplete-item:hover,
.cpj-autocomplete-item.focused { background: var(--cpj-gray-bg); }

.cpj-autocomplete-item img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid var(--cpj-border);
}

.cpj-autocomplete-type {
  font-size: 10px;
  background: var(--cpj-green-pale);
  color: var(--cpj-green);
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 700;
  margin-right: auto;
}

/* ─── Store Header Hero ────────────────────────────────────────────────────── */
.cpj-store-header {
  background: var(--cpj-navy);
  color: var(--cpj-white);
  padding: 40px 30px;
  border-radius: var(--cpj-radius-xl);
  margin-bottom: 30px;
}

.cpj-store-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cpj-store-hero-logo img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  background: var(--cpj-white);
  border-radius: var(--cpj-radius-lg);
  padding: 8px;
}

.cpj-store-hero-info { flex: 1; min-width: 200px; }

.cpj-store-hero-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cpj-store-title {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  color: var(--cpj-white);
}

.cpj-verified-partner-badge {
  background: var(--cpj-orange);
  color: var(--cpj-white);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.cpj-store-hero-desc {
  margin: 8px 0;
  opacity: 0.8;
  font-size: 14px;
  line-height: 1.6;
}

.cpj-store-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 10px;
  font-size: 13px;
  opacity: 0.9;
}

.cpj-store-coupon-info {
  background: rgba(255,255,255,0.15);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
}

.cpj-btn-visit {
  display: inline-block;
  background: var(--cpj-green);
  color: var(--cpj-white);
  padding: 12px 28px;
  border-radius: var(--cpj-radius-md);
  text-decoration: none;
  font-weight: 700;
  font-family: var(--cpj-font);
  font-size: 15px;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.cpj-btn-visit:hover { background: #2d9e3a; color: var(--cpj-white); text-decoration: none; }

/* ─── Tabs ─────────────────────────────────────────────────────────────────── */
.cpj-tabs-wrapper { margin: 20px 0; }

.cpj-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--cpj-border);
  margin-bottom: 20px;
}

.cpj-tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: 10px 20px;
  font-size: 14px;
  font-family: var(--cpj-font);
  font-weight: 600;
  color: var(--cpj-text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.cpj-tab:hover { color: var(--cpj-green); }

.cpj-tab.active {
  color: var(--cpj-green);
  border-bottom-color: var(--cpj-green);
}

/* ─── Expiring Section ─────────────────────────────────────────────────────── */
.cpj-expiring-section { margin: 30px 0; }

.cpj-section-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--cpj-text-dark);
  margin: 0 0 16px;
  font-family: var(--cpj-font);
}

/* ─── Toast ────────────────────────────────────────────────────────────────── */
.cpj-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: var(--cpj-navy);
  color: var(--cpj-white);
  border-radius: var(--cpj-radius-md);
  padding: 14px 20px;
  border-right: 4px solid var(--cpj-green);
  z-index: 99999;
  font-family: var(--cpj-font);
  font-size: 14px;
  max-width: 320px;
  box-shadow: var(--cpj-shadow-hover);
  animation: cpjSlideIn 0.3s ease;
  pointer-events: none;
}

.cpj-toast.cpj-toast-error { border-right-color: #EF4444; }

@keyframes cpjSlideIn {
  from { transform: translateX(-30px); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}

@keyframes cpjSlideOut {
  from { transform: translateX(0);     opacity: 1; }
  to   { transform: translateX(-30px); opacity: 0; }
}

.cpj-toast.cpj-hiding { animation: cpjSlideOut 0.3s ease forwards; }

/* ─── No results ───────────────────────────────────────────────────────────── */
.cpj-no-results {
  text-align: center;
  padding: 40px;
  color: var(--cpj-text-muted);
  font-family: var(--cpj-font);
  font-size: 15px;
}

/* ─── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .cpj-grid-5 { grid-template-columns: repeat(4, 1fr); }
  .cpj-grid-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .cpj-grid-5,
  .cpj-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .cpj-grid-3 { grid-template-columns: repeat(2, 1fr); }

  .cpj-store-hero { flex-direction: column; text-align: center; }
  .cpj-store-hero-title { justify-content: center; }
  .cpj-store-hero-meta { justify-content: center; }

  .cpj-code-text { font-size: 15px; letter-spacing: 2px; }
  .cpj-reveal-btn { padding: 16px; font-size: 16px; }
  .cpj-category-chips { -webkit-overflow-scrolling: touch; }

  .cpj-search-hero { max-width: 100%; }
}

@media (max-width: 480px) {
  .cpj-grid-5,
  .cpj-grid-4,
  .cpj-grid-3,
  .cpj-grid-2 { grid-template-columns: 1fr; }

  .cpj-store-header { padding: 24px 16px; }
  .cpj-toast { left: 12px; right: 12px; max-width: none; bottom: 16px; }
}
/* ══════════════════════════════════════════════════
   ARTICLE COUPONS — أضف ده في آخر couponji-public.css
══════════════════════════════════════════════════ */

.cpj-article-coupons {
    margin: 32px 0;
    direction: rtl;
}

.cpj-article-coupons-title {
    font-family: 'Cairo', sans-serif !important;
    font-size: 19px !important;
    font-weight: 800 !important;
    color: #0B1120 !important;
    margin: 0 0 16px !important;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 2px solid #3BB44A;
}

.cpj-article-coupons-grid {
    display: grid;
    gap: 16px;
}

/* الكروت بتاخد نفس استايل .cpj-coupon-card الموجود بالفعل */

@media (max-width: 768px) {
    .cpj-article-coupons-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .cpj-article-coupons-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ══════════════════════════════════════════════════
   CATEGORIES PAGE — [cpj_categories_page]
══════════════════════════════════════════════════ */

.cpj-cats-page { direction: rtl; }

.cpj-cats-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 2px solid #F1F3F5;
}

.cpj-cat-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 50px;
    font-family: 'Cairo', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #4A5568;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    user-select: none;
}

.cpj-cat-filter-btn:hover {
    border-color: #3BB44A;
    color: #3BB44A;
    box-shadow: 0 3px 10px rgba(59,180,74,0.15);
}

.cpj-cat-filter-btn.active {
    background: #3BB44A;
    border-color: #3BB44A;
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(59,180,74,0.3);
}

.cpj-cat-filter-btn .btn-icon { font-size: 16px; }

.cpj-cat-filter-btn .btn-count {
    background: rgba(0,0,0,0.08);
    color: inherit;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 10px;
    line-height: 1.4;
}

.cpj-cat-filter-btn.active .btn-count {
    background: rgba(255,255,255,0.25);
}

.cpj-cat-section {
    display: none;
}

.cpj-cat-section.visible {
    display: block;
    animation: cpjFadeIn 0.25s ease;
}

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

.cpj-cat-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.cpj-cat-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cairo', sans-serif !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #0B1120 !important;
    margin: 0 !important;
}

.cpj-cat-title-icon { font-size: 24px; }

.cpj-cat-title-bar {
    width: 4px;
    height: 24px;
    background: #3BB44A;
    border-radius: 2px;
    flex-shrink: 0;
}

.cpj-cat-section-meta {
    font-family: 'Cairo', sans-serif;
    font-size: 13px;
    color: #718096;
}

.cpj-cat-section-meta strong {
    color: #3BB44A;
    font-weight: 700;
}

.cpj-cat-view-all {
    font-family: 'Cairo', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #3BB44A;
    border: 1px solid #3BB44A;
    padding: 5px 14px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s;
}

.cpj-cat-view-all:hover {
    background: #3BB44A;
    color: white;
}

.cpj-cat-stores-grid {
    display: grid;
    grid-template-columns: repeat(var(--cpj-cols, 5), 1fr);
    gap: 14px;
    margin-bottom: 40px;
}

.cpj-cat-store-card {
    background: #FFFFFF;
    border: 1.5px solid #E8ECF0;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.22s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    position: relative;
}

.cpj-cat-store-card:hover {
    border-color: #3BB44A;
    box-shadow: 0 6px 24px rgba(59,180,74,0.14);
    transform: translateY(-3px);
}

.cpj-cat-card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.cpj-cat-badge-num {
    background: #3BB44A;
    color: white;
    font-family: 'Cairo', sans-serif;
    font-size: 10px;
    font-weight: 800;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    line-height: 1;
}

.cpj-cat-badge-dot {
    width: 8px;
    height: 8px;
    background: #3BB44A;
    border-radius: 50%;
    animation: cpjPulse 2s infinite;
}

@keyframes cpjPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.6; transform: scale(0.85); }
}

.cpj-cat-card-logo {
    padding: 28px 20px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 100px;
}

.cpj-cat-card-logo img {
    max-width: 130px;
    max-height: 55px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.cpj-cat-card-logo-text {
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #0B1120;
    text-align: center;
}

.cpj-cat-card-desc {
    padding: 0 14px 16px;
    font-family: 'Cairo', sans-serif;
    font-size: 11px;
    color: #718096;
    text-align: center;
    line-height: 1.6;
    direction: rtl;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cpj-cat-empty {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    grid-column: 1 / -1;
}

.cpj-cat-empty .empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
}

.cpj-cat-no-results {
    display: none;
    text-align: center;
    padding: 60px 0;
    font-family: 'Cairo', sans-serif;
    color: #718096;
    font-size: 15px;
}

.cpj-cats-search {
    position: relative;
    margin-bottom: 24px;
    max-width: 400px;
}

.cpj-cats-search-input {
    width: 100%;
    padding: 12px 44px 12px 16px;
    border: 1.5px solid #E2E8F0;
    border-radius: 50px;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    color: #0B1120;
    background: white;
    outline: none;
    direction: rtl;
    transition: border-color 0.2s;
}

.cpj-cats-search-input:focus {
    border-color: #3BB44A;
    box-shadow: 0 0 0 3px rgba(59,180,74,0.1);
}

.cpj-cats-search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    pointer-events: none;
}

@media (max-width: 1024px) {
    .cpj-cat-stores-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
    .cpj-cat-filter-btn { padding: 8px 14px; font-size: 12px; }
    .cpj-cat-stores-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .cpj-cat-card-logo   { padding: 20px 14px 12px; min-height: 80px; }
    .cpj-cat-card-logo img { max-width: 100px; max-height: 44px; }
    .cpj-cat-section-title { font-size: 18px !important; }
}

@media (max-width: 480px) {
    .cpj-cats-filter { gap: 8px; }
    .cpj-cat-filter-btn { padding: 7px 12px; font-size: 11px; }
    .cpj-cat-stores-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .cpj-cat-card-logo img { max-width: 80px; max-height: 36px; }
}

/* ══════════════════════════════════════════════════
   COUPONS LIST — [cpj_coupons_list] / [cpj_current_coupons_list]
══════════════════════════════════════════════════ */

.cpj-lv3 {
    display: flex;
    flex-direction: column;
    gap: 10px;
    direction: rtl;
}

.cpj-lv3-card {
    background: #fff;
    border: 1px solid #E8ECF0;
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
    position: relative;
}
.cpj-lv3-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    transform: translateY(-1px);
}
.cpj-lv3-card::before {
    content:'';
    position: absolute;
    top:0; right:0;
    width: 4px; height: 100%;
    background: #3BB44A;
    border-radius: 0 14px 14px 0;
}
.cpj-lv3-card.is-exclusive::before { background: #F5A623; }
.cpj-lv3-card.is-expired {
    opacity: .5;
    filter: grayscale(60%);
    pointer-events: none;
}

.cpj-lv3-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
}

.cpj-lv3-logo {
    width: 48px; height: 48px;
    border-radius: 10px;
    border: 1px solid #E2E8F0;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    padding: 3px;
}
.cpj-lv3-logo img {
    max-width: 42px; max-height: 42px;
    object-fit: contain;
}

.cpj-lv3-info { flex: 1; min-width: 0; }

.cpj-lv3-badges {
    display: flex; align-items: center;
    gap: 5px; flex-wrap: wrap;
    margin-bottom: 4px;
}
.cpj-lv3-badge {
    font-family: 'Cairo', sans-serif;
    font-size: 10px; font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
    line-height: 1.5;
}
.cpj-lv3 .b-exc  { background:#FFF3E0; color:#B45309; border:1px solid rgba(245,166,35,.3); }
.cpj-lv3 .b-pct  { background:#E8F9EB; color:#166534; border:1px solid rgba(59,180,74,.3); }
.cpj-lv3 .b-ship { background:#EFF6FF; color:#1D4ED8; border:1px solid rgba(59,130,246,.3); }
.cpj-lv3 .b-fix  { background:#E8F9EB; color:#166534; border:1px solid rgba(59,180,74,.3); }
.cpj-lv3 .b-soon { background:#FEF3C7; color:#92400E; border:1px solid rgba(245,158,11,.3); }

.cpj-lv3-title {
    font-family: 'Cairo', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0B1120 !important;
    margin: 0 0 2px !important;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cpj-lv3-meta-line {
    display: flex; align-items: center;
    gap: 10px; flex-wrap: wrap;
    font-family: 'Cairo', sans-serif;
    font-size: 11px; color: #94A3B8;
}
.cpj-lv3-verified { color: #3BB44A; font-weight: 600; }
.cpj-lv3-soon-txt { color: #D97706; font-weight: 600; }

.cpj-lv3-reveal-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0B1120;
    color: #fff !important;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-family: 'Cairo', sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .1s;
    white-space: nowrap;
}
.cpj-lv3-reveal-btn:hover  { background: #1C2A48; }
.cpj-lv3-reveal-btn:active { transform: scale(.97); }
.cpj-lv3-reveal-btn.revealed {
    background: #3BB44A;
    pointer-events: none;
}

.cpj-lv3-code-panel {
    display: none;
    border-top: 1px solid #F1F5F9;
    padding: 10px 14px;
    background: #FAFBFC;
    animation: cpjSlideDown .2s ease;
}
.cpj-lv3-code-panel.open { display: block; }

@keyframes cpjSlideDown {
    from { opacity:0; transform: translateY(-6px); }
    to   { opacity:1; transform: translateY(0); }
}

.cpj-lv3-code-row {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px dashed #CBD5E0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
    transition: border-color .2s;
}
.cpj-lv3-code-row.copied-state { border-color: #3BB44A; }

.cpj-lv3-copy-btn {
    background: #0B1120;
    color: #fff;
    border: none;
    padding: 10px 16px;
    font-family: 'Cairo', sans-serif;
    font-size: 12px; font-weight: 700;
    cursor: pointer;
    transition: background .2s;
    flex-shrink: 0;
    display: flex; align-items: center; gap: 5px;
}
.cpj-lv3-copy-btn:hover  { background: #1C2A48; }
.cpj-lv3-copy-btn.copied { background: #3BB44A; }

.cpj-lv3-code-val {
    flex: 1;
    font-family: 'Courier New', monospace !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    letter-spacing: 4px;
    color: #0B1120 !important;
    text-align: center;
    direction: ltr;
    padding: 0 12px;
}

.cpj-lv3-cta {
    display: flex;
    align-items: center; justify-content: center;
    gap: 8px;
    background: #3BB44A;
    color: #fff !important;
    padding: 11px;
    font-family: 'Cairo', sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-decoration: none;
    border: none; cursor: pointer;
    transition: background .2s;
    border-radius: 0 0 13px 13px;
}
.cpj-lv3-cta:hover { background: #2d9e3a; color:#fff !important; }

.cpj-lv3-expired-notice {
    text-align:center; padding:10px;
    background:#FEE2E2; color:#991B1B;
    font-family:'Cairo',sans-serif;
    font-size:12px; font-weight:700;
    border-radius: 0 0 13px 13px;
}

@media (max-width:600px) {
    .cpj-lv3-title    { font-size: 13px !important; }
    .cpj-lv3-code-val { font-size: 15px !important; letter-spacing: 2px; }
    .cpj-lv3-reveal-btn { padding: 7px 10px; font-size: 11px; }
}

/* ══════════════════════════════════════════════════
   COUPONS PLATE — [cpj_coupons_plate] / [cpj_current_store_plate]
══════════════════════════════════════════════════ */

.cpj-plate {
    direction: rtl;
    width: 100%;
    box-sizing: border-box;
}

.cpj-plate .cpj-pg {
    display: grid;
    grid-template-columns: repeat(var(--cpj-cols, 4), 1fr);
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.cpj-plate .cpj-pw {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.cpj-plate .cpj-pc {
    background: #fff;
    border: 1.5px solid #E8ECF0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform .22s, box-shadow .22s;
    box-sizing: border-box;
    width: 100%;
}

.cpj-plate .cpj-pc:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.13);
}

.cpj-plate .cpj-pc.expired {
    opacity: .5;
    filter: grayscale(60%);
    pointer-events: none;
}

.cpj-plate .cpj-pt {
    background: #fff;
    padding: 14px 12px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    position: relative;
    box-sizing: border-box;
}

.cpj-plate .cpj-pb-row {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.cpj-plate .cpj-b-exc {
    display: inline-block;
    background: #F5A623;
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 5px;
    line-height: 1.4;
}

.cpj-plate .cpj-b-disc {
    display: inline-block;
    background: #3BB44A;
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 5px;
    line-height: 1.4;
}

.cpj-plate .cpj-pl {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 5px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.cpj-plate .cpj-pl img {
    max-width: 60px;
    max-height: 60px;
    object-fit: contain;
    display: block;
}

.cpj-plate .cpj-psl {
    font-family: 'Cairo', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #0B1120;
    margin: 0;
    text-align: center;
    line-height: 1.3;
}

.cpj-plate .cpj-pct {
    font-family: 'Cairo', sans-serif;
    font-size: 11px;
    color: #4A5568;
    text-align: center;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cpj-plate .cpj-pp {
    background: #F5F5F0;
    border-top: 2px solid #0B1120;
    border-bottom: 2px solid #0B1120;
    padding: 8px 10px;
    text-align: center;
    box-sizing: border-box;
}

.cpj-plate .cpj-ppi {
    border: 1.5px solid #CCCCCC;
    border-radius: 4px;
    padding: 5px 8px;
    background: #FAFAF8;
    box-sizing: border-box;
}

.cpj-plate .cpj-ppc {
    font-family: 'Courier New', monospace;
    font-size: 24px;
    font-weight: 900;
    color: #0B1120;
    letter-spacing: 3px;
    display: block;
    direction: ltr;
    text-align: center;
    line-height: 1.3;
}

.cpj-plate .cpj-pph {
    font-family: 'Cairo', sans-serif;
    font-size: 9px;
    color: #94A3B8;
    display: block;
    text-align: center;
    margin-top: 2px;
}

.cpj-plate .cpj-pbt {
    background: #0B1120;
    padding: 10px 12px;
    box-sizing: border-box;
}

.cpj-plate .cpj-pdt {
    font-family: 'Cairo', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    text-align: center;
    margin-bottom: 8px;
    line-height: 1.5;
}

.cpj-plate .cpj-pdt strong {
    color: #F5A623;
}

.cpj-plate .cpj-pbtn {
    display: block;
    width: 100%;
    background: #3BB44A;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 12px;
    font-family: 'Cairo', sans-serif;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    text-align: center;
    transition: background .2s;
    box-sizing: border-box;
    line-height: 1.4;
}

.cpj-plate .cpj-pbtn:hover  { background: #2d9e3a; }
.cpj-plate .cpj-pbtn.copied { background: #1a7a27; }

.cpj-plate .cpj-pdeal {
    display: block;
    width: 100%;
    background: #F5A623;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 12px;
    font-family: 'Cairo', sans-serif;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s;
    box-sizing: border-box;
}

.cpj-plate .cpj-pdeal:hover { background: #d48e10; color: #fff; }

.cpj-plate .cpj-pin {
    padding: 10px 2px 0;
    box-sizing: border-box;
}

.cpj-plate .cpj-pin-title {
    font-family: 'Cairo', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #0B1120;
    margin: 0 0 5px;
    line-height: 1.5;
    text-align: right;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cpj-plate .cpj-pin-expiry {
    font-family: 'Cairo', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #3BB44A;
    font-style: italic;
    display: block;
    margin-bottom: 3px;
    text-align: right;
}

.cpj-plate .cpj-pin-expiry.soon { color: #D97706; }

.cpj-plate .cpj-pin-usage {
    font-family: 'Cairo', sans-serif;
    font-size: 11px;
    color: #94A3B8;
    display: block;
    text-align: right;
    margin-bottom: 3px;
}

.cpj-plate .cpj-pin-link {
    display: inline-block;
    font-family: 'Cairo', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #3BB44A;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cpj-plate .cpj-expired-notice {
    background: #FEE2E2;
    color: #991B1B;
    text-align: center;
    padding: 7px;
    border-radius: 6px;
    font-family: 'Cairo', sans-serif;
    font-size: 11px;
    font-weight: 700;
    margin-top: 6px;
}

@media (max-width: 900px) {
    .cpj-plate .cpj-pg {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}
@media (max-width: 640px) {
    .cpj-plate .cpj-pg {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .cpj-plate .cpj-ppc { font-size: 18px; letter-spacing: 2px; }
    .cpj-plate .cpj-pl  { width: 54px; height: 54px; }
    .cpj-plate .cpj-pl img { max-width: 44px; max-height: 44px; }
}
@media (max-width: 420px) {
    .cpj-plate .cpj-pg { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════
   COUPON DETAIL — [cpj_coupon_detail] / [cpj_current_coupon_detail]
   لون التمييز (--cpjd-accent) بيتحدد inline لكل كوبون
══════════════════════════════════════════════════ */

.cpjd{direction:rtl;font-family:'Cairo',sans-serif;max-width:900px;margin:0 auto}

.cpjd .cpjd-hero{
    position:relative;
    border-radius:20px;
    overflow:hidden;
    margin-bottom:20px;
    min-height:220px;
    background:transparent;
    display:flex;
    align-items:flex-end;
}
.cpjd .cpjd-hero-img{
    position:absolute;inset:0;
    width:100%;height:100%;
    object-fit:cover;
    display:block;
}
.cpjd .cpjd-hero-overlay{
    position:absolute;inset:0;
    background:linear-gradient(to top,rgba(11,17,32,.85) 0%,rgba(11,17,32,.2) 60%,transparent 100%);
}
.cpjd .cpjd-hero-content{
    position:relative;z-index:2;
    padding:24px 28px;
    width:100%;
    display:flex;align-items:flex-end;justify-content:space-between;gap:16px;
    flex-wrap:wrap;
}
.cpjd .cpjd-hero-text{flex:1}
.cpjd .cpjd-hero-badges{
    display:flex;gap:7px;flex-wrap:wrap;margin-bottom:10px;
}
.cpjd .cpjd-badge{
    display:inline-flex;align-items:center;gap:5px;
    font-size:11px;font-weight:700;
    padding:5px 12px;border-radius:20px;line-height:1.4;
    font-family:'Cairo',sans-serif;
}
.cpjd .bd-exc  {background:rgba(245,166,35,.9);color:#fff}
.cpjd .bd-disc {background:rgba(59,180,74,.9);color:#fff}
.cpjd .bd-ship {background:rgba(59,130,246,.9);color:#fff}
.cpjd .bd-ok   {background:rgba(59,180,74,.85);color:#fff}
.cpjd .bd-soon {background:rgba(245,158,11,.9);color:#fff}
.cpjd .bd-exp  {background:rgba(220,38,38,.85);color:#fff}

.cpjd .cpjd-hero-title{
    font-size:24px!important;font-weight:900!important;
    color:#fff!important;margin:0 0 6px!important;line-height:1.3;
}
.cpjd .cpjd-hero-sub{
    font-size:13px;color:rgba(255,255,255,.7);
    display:flex;align-items:center;gap:8px;flex-wrap:wrap;
}
.cpjd .cpjd-hero-store-link{
    color:#fff!important;font-weight:700;text-decoration:none;
    display:inline-flex;align-items:center;gap:5px;
}
.cpjd .cpjd-hero-store-link:hover{text-decoration:underline}

.cpjd .cpjd-hero-logo{
    width:80px;height:80px;
    border-radius:14px;
    background:#fff;
    border:2px solid rgba(255,255,255,.3);
    display:flex;align-items:center;justify-content:center;
    overflow:hidden;padding:6px;
    box-shadow:0 4px 20px rgba(0,0,0,.3);
    flex-shrink:0;
}
.cpjd .cpjd-hero-logo img{
    max-width:68px;max-height:68px;object-fit:contain;
}

.cpjd .cpjd-hero.no-img{
    background:linear-gradient(135deg,#0B1120 0%,#1C2A48 100%);
    min-height:180px;
}

.cpjd .cpjd-card{
    background:#fff;
    border:2px solid var(--cpjd-accent, #3BB44A);
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 4px 24px rgba(0,0,0,.09);
    margin-bottom:16px;
}

.cpjd .cpjd-code-wrap{
    padding:28px 28px 24px;
    text-align:center;
    background:#fff;
}
.cpjd .cpjd-code-label{
    font-size:11px;color:#94A3B8;font-weight:700;
    text-transform:uppercase;letter-spacing:1.2px;
    margin-bottom:14px;display:block;
}
.cpjd .cpjd-code-box{
    display:flex;align-items:stretch;
    background:#F8FAFC;
    border:2px dashed #CBD5E0;
    border-radius:14px;
    overflow:hidden;
    max-width:500px;margin:0 auto 16px;
    transition:border-color .2s,box-shadow .2s;
}
.cpjd .cpjd-code-box:hover{
    border-color:#3BB44A;
    box-shadow:0 0 0 4px rgba(59,180,74,.1);
}
.cpjd .cpjd-code-val{
    flex:1;
    font-family:'Courier New',monospace!important;
    font-size:30px!important;font-weight:900!important;
    letter-spacing:6px;color:#0B1120!important;
    padding:18px 20px;direction:ltr;
    display:flex;align-items:center;justify-content:center;
}
.cpjd .cpjd-copy-btn{
    background:#0B1120;color:#fff;border:none;
    min-width:100px;
    font-family:'Cairo',sans-serif;font-size:14px;font-weight:700;
    cursor:pointer;flex-shrink:0;
    transition:background .2s;
    display:flex;flex-direction:column;align-items:center;justify-content:center;
    gap:5px;padding:0 18px;
}
.cpjd .cpjd-copy-btn:hover{background:#1C2A48}
.cpjd .cpjd-copy-btn.copied{background:#3BB44A}
.cpjd .cpjd-copy-icon{font-size:22px;line-height:1}

.cpjd .cpjd-countdown{
    display:flex;justify-content:center;gap:10px;
    margin-bottom:16px;
}
.cpjd .cpjd-cnt-blk{
    background:#0B1120;border-radius:10px;
    padding:10px 14px;text-align:center;min-width:58px;
}
.cpjd .cpjd-cnt-num{
    font-size:22px;font-weight:900;color:#3BB44A;
    display:block;line-height:1.2;
    font-family:'Courier New',monospace;
}
.cpjd .cpjd-cnt-lbl{
    font-size:10px;color:rgba(255,255,255,.55);
    display:block;margin-top:2px;
}

.cpjd .cpjd-cta{
    display:flex;align-items:center;justify-content:center;gap:10px;
    background:#3BB44A;color:#fff!important;
    font-family:'Cairo',sans-serif!important;
    font-size:17px!important;font-weight:800!important;
    padding:16px 24px;border-radius:12px;
    text-decoration:none;border:none;cursor:pointer;
    transition:background .2s,transform .1s;
    width:100%;max-width:500px;
    margin:0 auto;
}
.cpjd .cpjd-cta:hover{background:#2d9e3a;color:#fff!important;transform:scale(1.01)}
.cpjd .cpjd-cta-arr{font-size:20px;transition:transform .2s}
.cpjd .cpjd-cta:hover .cpjd-cta-arr{transform:translateX(-4px)}

.cpjd .cpjd-expired-cta{
    background:#F1F5F9;color:#64748B!important;
    font-family:'Cairo',sans-serif!important;font-size:14px!important;font-weight:700!important;
    padding:14px 24px;border-radius:12px;text-align:center;
    display:block;width:100%;max-width:500px;margin:0 auto;
    border:none;
}

.cpjd .cpjd-meta-wrap{
    border-top:1px solid #F1F5F9;
    padding:22px 28px;background:#FAFBFC;
}
.cpjd .cpjd-meta-heading{
    font-size:12px!important;font-weight:700!important;
    color:#94A3B8!important;letter-spacing:1px;
    text-transform:uppercase;margin:0 0 14px!important;
    display:flex;align-items:center;gap:8px;
}
.cpjd .cpjd-meta-heading::after{
    content:'';flex:1;height:1px;background:#E8ECF0;
}
.cpjd .cpjd-meta-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:10px;
}
.cpjd .cpjd-mi{
    background:#fff;border:1px solid #E8ECF0;
    border-radius:12px;padding:14px 16px;
    display:flex;align-items:center;gap:12px;
    transition:border-color .2s;
}
.cpjd .cpjd-mi:hover{border-color:#3BB44A}
.cpjd .cpjd-mi-icon{
    width:40px;height:40px;
    background:#F8FAFC;border-radius:10px;
    display:flex;align-items:center;justify-content:center;
    font-size:20px;flex-shrink:0;
}
.cpjd .cpjd-mi-k{
    font-size:10px;color:#94A3B8;font-weight:700;
    display:block;margin-bottom:3px;
    text-transform:uppercase;letter-spacing:.4px;
}
.cpjd .cpjd-mi-v{
    font-size:14px;font-weight:800;color:#0B1120;display:block;
}
.cpjd .cpjd-mi-v.g{color:#3BB44A}
.cpjd .cpjd-mi-v.o{color:#D97706}
.cpjd .cpjd-mi-v.r{color:#DC2626}

.cpjd .cpjd-steps-wrap{
    padding:22px 28px;border-top:1px solid #F1F5F9;
}
.cpjd .cpjd-steps-title{
    font-size:15px!important;font-weight:800!important;
    color:#0B1120!important;margin:0 0 16px!important;
}
.cpjd .cpjd-steps{
    display:grid;grid-template-columns:repeat(3,1fr);
    gap:12px;
}
.cpjd .cpjd-step{
    background:#F8FAFC;border:1px solid #E8ECF0;
    border-radius:14px;padding:18px 14px;
    text-align:center;
    transition:border-color .2s,box-shadow .2s;
}
.cpjd .cpjd-step:hover{
    border-color:#3BB44A;
    box-shadow:0 4px 14px rgba(59,180,74,.1);
}
.cpjd .cpjd-step-num{
    width:32px;height:32px;
    background:#0B1120;color:#fff;
    border-radius:50%;font-size:14px;font-weight:800;
    display:flex;align-items:center;justify-content:center;
    margin:0 auto 10px;
}
.cpjd .cpjd-step-ico{font-size:26px;margin-bottom:8px;display:block}
.cpjd .cpjd-step-txt{font-size:12px;color:#64748B;line-height:1.6}

.cpjd .cpjd-terms{
    margin:0 28px 0;
    background:#FFFBEB;
    border:1px solid #FDE68A;
    border-radius:12px;
    padding:16px 18px;
    margin-bottom:0;
}
.cpjd .cpjd-terms summary{
    font-size:13px;font-weight:700;color:#92400E;
    cursor:pointer;list-style:none;
    display:flex;align-items:center;gap:6px;
    text-align:right;
}
.cpjd .cpjd-terms summary::-webkit-details-marker{display:none}
.cpjd .cpjd-terms p{
    font-size:13px;color:#78350F;line-height:1.7;
    margin:10px 0 0;text-align:right;
}

.cpjd .cpjd-content{
    background:#fff;border:1px solid #E8ECF0;
    border-radius:16px;padding:24px 28px;
    margin-top:16px;
}
.cpjd .cpjd-content-title{
    font-size:16px!important;font-weight:800!important;
    color:#0B1120!important;margin:0 0 14px!important;
    padding-bottom:12px;border-bottom:2px solid #3BB44A;
    display:inline-block;
}
.cpjd .cpjd-content-body{
    font-size:14px;color:#4A5568;line-height:1.85;
    text-align:right;
}

@media(max-width:640px){
    .cpjd .cpjd-meta-grid{grid-template-columns:repeat(2,1fr)}
    .cpjd .cpjd-steps{grid-template-columns:1fr}
    .cpjd .cpjd-code-val{font-size:22px!important;letter-spacing:3px}
    .cpjd .cpjd-hero-title{font-size:18px!important}
    .cpjd .cpjd-copy-btn{min-width:80px;padding:0 14px}
    .cpjd .cpjd-meta-wrap,
    .cpjd .cpjd-steps-wrap,
    .cpjd .cpjd-code-wrap{padding:18px 16px}
    .cpjd .cpjd-terms{margin:0 16px}
    .cpjd .cpjd-hero-content{padding:18px 16px}
    .cpjd .cpjd-hero-logo{width:60px;height:60px}
    .cpjd .cpjd-hero-logo img{max-width:50px;max-height:50px}
}

/* ══════════════════════════════════════════════════
   BEST STORES — [cpj_best_stores]
══════════════════════════════════════════════════ */

.cpj-best-stores-section{padding:40px 0;direction:rtl}
.cpj-best-stores-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}
.cpj-best-stores-title{font-family:'Cairo',sans-serif!important;font-size:26px!important;font-weight:800!important;color:#0B1120!important;margin:0!important}
.cpj-best-stores-all-link{font-family:'Cairo',sans-serif;font-size:13px;font-weight:600;color:#718096;text-decoration:none;transition:color .2s}
.cpj-best-stores-all-link:hover{color:#3BB44A}
.cpj-best-stores-grid{display:grid;grid-template-columns:repeat(var(--cpj-cols, 3),1fr);gap:16px}
.cpj-best-store-item{background:#fff;border:1.5px solid #E2E8F0;border-radius:16px;padding:24px 16px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-decoration:none;transition:all .22s ease;min-height:100px;box-shadow:0 1px 4px rgba(0,0,0,.05)}
.cpj-best-store-item:hover{border-color:#3BB44A;box-shadow:0 6px 20px rgba(59,180,74,.13);transform:translateY(-2px)}
.cpj-best-store-item img{max-width:120px;max-height:50px;width:auto;height:auto;object-fit:contain;display:block}
.cpj-store-name-fallback{font-family:'Cairo',sans-serif;font-size:15px;font-weight:700;color:#0B1120;text-align:center}
@media(max-width:768px){.cpj-best-stores-grid{grid-template-columns:repeat(2,1fr);gap:12px}.cpj-best-store-item{padding:18px 12px;min-height:80px}.cpj-best-store-item img{max-width:90px;max-height:38px}}

/* ══════════════════════════════════════════════════
   STORES PAGE — [cpj_stores_page]
   (منقولة من inline <style> لتقليل تكرار الـ HTML)
══════════════════════════════════════════════════ */

.cpj-stores-page-grid {
    display: grid;
    grid-template-columns: repeat(var(--cpj-cols, 5), 1fr);
    gap: 16px;
    direction: rtl;
}

.cpj-sp-card {
    background: #FFFFFF;
    border: 1.5px solid #E8ECF0;
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.22s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    position: relative;
}

.cpj-sp-card:hover {
    border-color: #3BB44A;
    box-shadow: 0 6px 24px rgba(59,180,74,0.14);
    transform: translateY(-3px);
}

.cpj-sp-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
}

.cpj-sp-badge-num {
    background: #3BB44A;
    color: white;
    font-family: 'Cairo', sans-serif;
    font-size: 11px;
    font-weight: 800;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.cpj-sp-badge-icon {
    width: 18px;
    height: 18px;
    background: #3BB44A;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cpj-sp-badge-icon svg {
    width: 10px;
    height: 10px;
    fill: white;
}

.cpj-sp-logo-wrap {
    padding: 32px 24px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 110px;
}

.cpj-sp-logo-wrap img {
    max-width: 140px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.cpj-sp-logo-fallback {
    font-family: 'Cairo', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #0B1120;
    text-align: center;
}

.cpj-sp-desc {
    padding: 0 16px 18px;
    font-family: 'Cairo', sans-serif;
    font-size: 12px;
    color: #718096;
    text-align: center;
    line-height: 1.6;
    direction: rtl;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cpj-sp-desc-name {
    padding: 0 16px 18px;
    font-family: 'Cairo', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #4A5568;
    text-align: center;
    direction: rtl;
}

@media (max-width: 1024px) {
    .cpj-stores-page-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .cpj-stores-page-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .cpj-sp-logo-wrap {
        padding: 24px 16px 14px;
        min-height: 80px;
    }
    .cpj-sp-logo-wrap img {
        max-width: 100px;
        max-height: 44px;
    }
}

@media (max-width: 480px) {
    .cpj-stores-page-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .cpj-sp-logo-wrap img {
        max-width: 80px;
        max-height: 36px;
    }
    .cpj-sp-desc {
        font-size: 11px;
    }
}

/* ══════════════════════════════════════════════════
   STORE BANNER — [cpj_store_banner] / [cpj_current_store_banner]
   الألوان/الخلفية الديناميكية بتتحدد في <style> صغير لكل متجر
══════════════════════════════════════════════════ */

.cpj-store-banner {
    border-radius: 16px;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    direction: rtl;
}

.cpj-store-banner::before {
    content: '';
    position: absolute;
    top: -60px; left: -60px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}

.cpj-store-banner::after {
    content: '';
    position: absolute;
    bottom: -40px; right: -40px;
    width: 160px; height: 160px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}

.cpj-store-banner .banner-logo-wrap {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    padding: 8px;
}

.cpj-store-banner .banner-logo-wrap img {
    max-width: 64px;
    max-height: 64px;
    object-fit: contain;
}

.cpj-store-banner .banner-info {
    flex: 1;
    min-width: 0;
}

.cpj-store-banner .banner-title {
    font-family: 'Cairo', sans-serif !important;
    font-size: 22px !important;
    font-weight: 900 !important;
    color: #FFFFFF !important;
    margin: 0 0 6px !important;
    line-height: 1.3;
}

.cpj-store-banner .banner-subtitle {
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    margin: 0 0 14px;
    line-height: 1.5;
}

.cpj-store-banner .banner-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.cpj-store-banner .banner-badge-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(59,180,74,0.2);
    border: 1px solid rgba(59,180,74,0.4);
    color: #7FD98A;
    font-family: 'Cairo', sans-serif;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.cpj-store-banner .banner-badge-exclusive {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(245,166,35,0.2);
    border: 1px solid rgba(245,166,35,0.4);
    color: #F5C842;
    font-family: 'Cairo', sans-serif;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.cpj-store-banner .banner-code-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.cpj-store-banner .banner-code-label {
    font-family: 'Cairo', sans-serif;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

.cpj-store-banner .banner-code-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px dashed rgba(255,255,255,0.3);
    border-radius: 8px;
    padding: 7px 14px;
}

.cpj-store-banner .banner-code-text {
    font-family: 'Courier New', monospace !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: 3px;
    color: #FFFFFF !important;
}

.cpj-store-banner .banner-code-copy {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: white;
    font-family: 'Cairo', sans-serif;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.cpj-store-banner .banner-code-copy:hover {
    background: rgba(255,255,255,0.25);
}

.cpj-store-banner .banner-cta {
    display: inline-block;
    background: #3BB44A;
    color: white !important;
    font-family: 'Cairo', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(59,180,74,0.35);
}

.cpj-store-banner .banner-cta:hover {
    background: #2d9e3a;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59,180,74,0.45);
}

.cpj-store-banner .banner-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    flex-shrink: 0;
}

.cpj-store-banner .banner-stat {
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-family: 'Cairo', sans-serif;
    font-size: 11px;
}

.cpj-store-banner .banner-stat strong {
    display: block;
    font-size: 20px;
    font-weight: 900;
    color: #3BB44A;
}

@media (max-width: 768px) {
    .cpj-store-banner {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }
    .cpj-store-banner .banner-badges,
    .cpj-store-banner .banner-code-row {
        justify-content: center;
    }
    .cpj-store-banner .banner-actions {
        width: 100%;
        align-items: stretch;
    }
    .cpj-store-banner .banner-cta {
        text-align: center;
        display: block;
    }
}
