/*
	Theme Name: Z Coupons
	Theme URI: https://facebook.com/mohsen.elgamasy/
	Description: Fully Build from Scratch for Coupon site
	Author: Dr Mohsen
	Author URI: https://facebook.com/mohsen.elgamasy/
	Version: 1.0
	Text Domain: seoaquity
*/

/********** Template CSS **********/

/* ============================================================
   CSS VARIABLES & RESET
   ============================================================ */
:root {
    --primary: #E8193C;
    --primary-light: #FFF0F3;
    --primary-mid: #FFD6DE;
    --dark: #111318;
    --body-bg: #F7F8FA;
    --border: #ECEEF2;
    --border-dark: #DDE0E8;
    --text: #111318;
    --text-2: #4A5060;
    --text-3: #8892A4;
    --success: #00B67A;
    --warning: #F59E0B;
  }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}

h1,h2,h3,h4,h5,h6 { font-family: var(--font-head); font-weight: 700; }

img { max-width: 100%; }

a { text-decoration: none; transition: var(--transition); }

section { overflow: hidden; }

  body {
    font-family: 'Cairo', sans-serif;
    background: var(--body-bg);
    color: var(--text);
    direction: rtl;
    -webkit-font-smoothing: antialiased;
  }

  /* TOP BAR */
  .top-bar {
    background: var(--dark);
    text-align: center;
    padding: 9px 20px;
    font-size: 12.5px;
    color: rgba(255,255,255,0.7);
  }
  .top-bar b { color: white; }
  .top-bar .tb-code {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 1px 9px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1px;
    margin: 0 4px;
  }

  /* HEADER */
  header {
    background: white;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 999;
  }

  nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    height: 68px;
    max-width: 1360px;
    margin: 0 auto;
    gap: 24px;
  }

  .logo {
    font-family: 'Tajawal', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
  }

  .logo-mark {
    width: 34px; height: 34px;
    background: var(--primary);
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 16px;
  }

  .logo-dot { color: var(--primary); }

  .nav-links {
    display: flex; list-style: none; gap: 2px;
    flex: 1; justify-content: center;
  }

  .nav-links a {
    color: var(--text-2);
    text-decoration: none;
    padding: 7px 14px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.18s;
    white-space: nowrap;
  }

  .nav-links a:hover { background: var(--body-bg); color: var(--text); }
  .nav-links a.active { color: var(--primary); background: var(--primary-light); }

  .nav-right { display: flex; align-items: center; gap: 10px; }

  .search-wrap { position: relative; display: flex; align-items: center; }

  .search-wrap input {
    background: var(--body-bg);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 9px 16px 9px 40px;
    font-family: 'Cairo', sans-serif;
    font-size: 13px;
    color: var(--text);
    width: 210px;
    outline: none;
    transition: all 0.2s;
    direction: rtl;
  }

  .search-wrap input::placeholder { color: var(--text-3); }
  .search-wrap input:focus { border-color: var(--primary); background: white; box-shadow: 0 0 0 3px rgba(232,25,60,0.08); }

  .search-wrap .s-icon {
    position: absolute; left: 12px;
    color: var(--text-3); font-size: 14px; pointer-events: none;
  }

  .btn-login {
    background: white;
    border: 1.5px solid var(--border-dark);
    color: var(--text);
    padding: 8px 18px;
    border-radius: 9px;
    font-family: 'Cairo', sans-serif;
    font-size: 13px; font-weight: 700;
    cursor: pointer; transition: all 0.18s; white-space: nowrap;
  }

  .btn-login:hover { border-color: var(--primary); color: var(--primary); }

  .btn-primary {
    background: var(--primary);
    border: none; color: white;
    padding: 9px 20px; border-radius: 9px;
    font-family: 'Cairo', sans-serif;
    font-size: 13px; font-weight: 700;
    cursor: pointer; transition: background 0.18s; white-space: nowrap;
  }

  .btn-primary:hover { background: #C8102D; }

  /* ── BREADCRUMB ── */
  .breadcrumb {
    max-width: 1200px; margin: 0 auto;
    padding: 14px 32px;
    display: flex; align-items: center; gap: 7px;
    font-size: 13px; color: var(--text-3);
  }

  .breadcrumb a { color: var(--text-3); text-decoration: none; font-weight: 600; }
  .breadcrumb a:hover { color: var(--primary); }
  .breadcrumb .cur { color: var(--text); font-weight: 700; }

  /* ── STORE HEADER ── */
  .store-header {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 28px 32px;
  }

  .store-header-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; gap: 20px;
  }

  .store-avatar {
    width: 80px; height: 80px;
    background: var(--body-bg);
    border: 1.5px solid var(--border);
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; font-weight: 900;
    color: var(--dark); flex-shrink: 0;
  }

  .store-info { flex: 1; }

  .store-name-row {
    display: flex; align-items: center; gap: 10px; margin-bottom: 5px;
  }

  .store-name {
    font-family: 'Tajawal', sans-serif;
    font-size: 26px; font-weight: 800; color: var(--dark);
  }

  .verified {
    background: #EBF9F3; color: var(--success);
    border: 1px solid #B8EDDA;
    font-size: 11px; font-weight: 700;
    padding: 3px 9px; border-radius: 20px;
  }

  .store-meta {
    font-size: 13px; color: var(--text-3); font-weight: 600;
    display: flex; align-items: center; gap: 10px;
  }

  .store-meta span::before { content: '·'; margin-left: 10px; opacity: 0.4; }
  .store-meta span:first-child::before { content: ''; margin: 0; }

  .store-actions { display: flex; gap: 9px; margin-top: 14px; }

  .btn-visit {
    background: var(--dark); color: white; border: none;
    padding: 9px 20px; border-radius: 9px;
    font-family: 'Cairo', sans-serif; font-size: 13.5px; font-weight: 700;
    cursor: pointer; text-decoration: none;
    display: inline-flex; align-items: center; gap: 6px;
    transition: background 0.15s;
  }
  .btn-visit:hover { background: #2A2D38; }

  .btn-follow {
    background: white; border: 1.5px solid var(--border-dark);
    color: var(--text); padding: 9px 20px; border-radius: 9px;
    font-family: 'Cairo', sans-serif; font-size: 13.5px; font-weight: 700;
    cursor: pointer; transition: all 0.15s;
  }
  .btn-follow:hover { border-color: var(--primary); color: var(--primary); }
  .btn-follow.on { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }

  /* right side pills */
  .store-stats {
    display: flex; gap: 12px; flex-shrink: 0;
  }

  .st-pill {
    background: var(--body-bg); border: 1.5px solid var(--border);
    border-radius: 12px; padding: 12px 18px; text-align: center;
  }

  .st-pill-num {
    font-family: 'Tajawal', sans-serif;
    font-size: 20px; font-weight: 800; color: var(--dark); line-height: 1;
  }
  .st-pill-num span { color: var(--primary); }
  .st-pill-lbl { font-size: 11px; color: var(--text-3); font-weight: 600; margin-top: 3px; }

  /* ── MAIN ── */
  .main {
    max-width: 1200px; margin: 0 auto;
    padding: 28px 32px;
  }

  /* ── MODAL ── */
  .overlay {
    position: fixed; inset: 0;
    background: rgba(17,19,24,0.4);
    backdrop-filter: blur(5px);
    z-index: 999; display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.2s;
  }
  .overlay.open { opacity: 1; pointer-events: all; }

  .modal {
    background: white; border-radius: 18px;
    width: 440px; max-width: 94vw;
    border: 1.5px solid var(--border);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    transform: scale(0.95) translateY(12px);
    transition: transform 0.25s cubic-bezier(0.34,1.4,0.64,1);
    overflow: hidden;
  }
  .overlay.open .modal { transform: scale(1) translateY(0); }

  .modal-head {
    background: var(--primary);
    padding: 26px 22px 30px;
    text-align: center; position: relative;
  }

  .modal-close {
    position: absolute; top: 12px; left: 12px;
    width: 28px; height: 28px;
    background: rgba(255,255,255,0.15); border: none; border-radius: 7px;
    color: white; font-size: 14px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
  }
  .modal-close:hover { background: rgba(255,255,255,0.28); }

  .modal-disc {
    font-family: 'Tajawal', sans-serif;
    font-size: 58px; font-weight: 800; color: white; line-height: 1;
    margin-bottom: 8px;
  }

  .modal-store {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.18);
    padding: 4px 13px; border-radius: 30px;
    color: white; font-size: 13px; font-weight: 700;
  }

  .modal-body { padding: 22px; }

  .modal-title {
    font-size: 14.5px; font-weight: 700;
    color: var(--dark); line-height: 1.6;
    text-align: center; margin-bottom: 18px;
  }

  .modal-code {
    background: var(--body-bg);
    border: 2px dashed var(--border-dark);
    border-radius: 11px; padding: 13px 16px;
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px; cursor: pointer; transition: border-color 0.15s;
  }
  .modal-code:hover { border-color: var(--primary); background: var(--primary-light); }

  .modal-code-val {
    font-family: 'Courier New', monospace;
    font-size: 20px; font-weight: 700;
    letter-spacing: 3px; color: var(--dark);
  }

  .btn-copy-lg {
    background: var(--primary); color: white; border: none;
    padding: 8px 16px; border-radius: 8px;
    font-family: 'Cairo', sans-serif; font-size: 13px; font-weight: 700;
    cursor: pointer;
  }
  .btn-copy-lg:hover { background: #C8102D; }

  .btn-go {
    display: block; width: 100%;
    background: var(--dark); color: white; border: none;
    padding: 13px; border-radius: 10px;
    font-family: 'Cairo', sans-serif; font-size: 14px; font-weight: 700;
    cursor: pointer; transition: background 0.15s;
  }
  .btn-go:hover { background: #2A2D38; }

  /* ── TOAST ── */
  .toast {
    position: fixed; bottom: 24px; left: 50%;
    transform: translateX(-50%) translateY(70px);
    background: var(--dark); color: white;
    padding: 12px 22px; border-radius: 10px;
    font-size: 13.5px; font-weight: 600; z-index: 9999;
    transition: transform 0.3s cubic-bezier(0.34,1.4,0.64,1);
    display: flex; align-items: center; gap: 7px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2); white-space: nowrap;
  }
  .toast.show { transform: translateX(-50%) translateY(0); }

  @keyframes up {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .coupon-card:nth-child(1){animation-delay:.04s}
  .coupon-card:nth-child(2){animation-delay:.08s}
  .coupon-card:nth-child(3){animation-delay:.12s}
  .coupon-card:nth-child(4){animation-delay:.16s}
  .coupon-card:nth-child(5){animation-delay:.20s}
  .coupon-card:nth-child(6){animation-delay:.24s}

  /* ── SEO SECTION ── */
  .seo-section {
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    margin-top: 36px;
    overflow: hidden;
  }

  .seo-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 22px;
    cursor: pointer;
    font-size: 14px; font-weight: 700; color: var(--text-2);
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
    user-select: none;
  }
  .seo-header:hover { background: var(--body-bg); }

  .seo-arrow { font-size: 13px; transition: transform 0.25s; }
  .seo-arrow.open { transform: rotate(180deg); }

  .seo-body {
    padding: 28px 28px 32px;
    display: none;
  }
  .seo-body.open { display: block; }

  .seo-body h2 {
    font-family: 'Tajawal', sans-serif;
    font-size: 20px; font-weight: 800;
    color: var(--dark); margin-bottom: 12px;
  }

  .seo-body h3 {
    font-family: 'Tajawal', sans-serif;
    font-size: 16px; font-weight: 800;
    color: var(--dark); margin: 24px 0 10px;
  }

  .seo-body p {
    font-size: 14px; color: var(--text-2);
    line-height: 1.9; margin-bottom: 6px;
  }

  .seo-body strong { color: var(--dark); }

  .seo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px; margin-top: 6px;
  }

  .seo-card {
    background: var(--body-bg);
    border: 1.5px solid var(--border);
    border-radius: 11px; padding: 16px;
  }

  .seo-card-icon { font-size: 22px; margin-bottom: 8px; }

  .seo-card strong {
    display: block; font-size: 13.5px;
    font-weight: 700; color: var(--dark); margin-bottom: 5px;
  }

  .seo-card p {
    font-size: 12.5px; color: var(--text-3);
    line-height: 1.7; margin: 0;
  }

  /* FAQ */
  .faq { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }

  .faq-item {
    border: 1.5px solid var(--border);
    border-radius: 10px; overflow: hidden;
  }

  .faq-q {
    display: flex; align-items: center; justify-content: space-between;
    padding: 13px 16px;
    font-size: 13.5px; font-weight: 700; color: var(--dark);
    cursor: pointer; transition: background 0.15s;
    user-select: none;
  }
  .faq-q:hover { background: var(--body-bg); }
  .faq-q.open { color: var(--primary); background: var(--primary-light); }
  .faq-q .faq-icon { font-size: 16px; transition: transform 0.25s; flex-shrink: 0; }
  .faq-q.open .faq-icon { transform: rotate(45deg); color: var(--primary); }

  .faq-a {
    padding: 0 16px;
    font-size: 13.5px; color: var(--text-2); line-height: 1.8;
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s ease, padding 0.25s;
  }
  .faq-a.open { max-height: 400px; padding: 0 16px 16px; }

  /* ── STORE FAQs SECTION ── */
  .store-faqs-section {
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    margin-top: 28px;
  }

  .section-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1.5px solid var(--border);
  }

  .section-header h2 {
    font-family: 'Tajawal', sans-serif;
    font-size: 18px; font-weight: 800; color: var(--dark);
    display: flex; align-items: center; gap: 8px;
  }

  .section-header .sec-badge {
    font-size: 11px; font-weight: 700; padding: 2px 9px;
    border-radius: 20px; background: var(--primary-light);
    color: var(--primary); border: 1px solid var(--primary-mid);
  }

  .faqs-body { padding: 18px 22px; }

  .store-faq-item {
    border: 1.5px solid var(--border);
    border-radius: 10px; overflow: hidden;
    margin-bottom: 10px;
    transition: border-color 0.15s;
  }

  .store-faq-item:last-child { margin-bottom: 0; }
  .store-faq-item:hover { border-color: var(--primary-mid); }

  .sfaq-q {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px;
    font-size: 14px; font-weight: 700; color: var(--dark);
    cursor: pointer; transition: background 0.15s;
    user-select: none; gap: 12px;
  }

  .sfaq-q:hover { background: var(--body-bg); }
  .sfaq-q.open { background: var(--primary-light); color: var(--primary); }

  .sfaq-icon {
    width: 26px; height: 26px; flex-shrink: 0;
    background: var(--body-bg); border: 1.5px solid var(--border);
    border-radius: 7px; display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700; color: var(--text-3);
    transition: all 0.2s;
  }

  .sfaq-q.open .sfaq-icon {
    background: var(--primary); border-color: var(--primary);
    color: white; transform: rotate(45deg);
  }

  .sfaq-a {
    font-size: 13.5px; color: var(--text-2); line-height: 1.9;
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s ease, padding 0.25s;
    border-top: 0px solid var(--border);
  }

  .sfaq-a.open {
    max-height: 500px;
    padding: 14px 18px 18px;
    border-top: 1px solid var(--border);
  }

  /* ── RELATED STORES SECTION ── */
  .related-stores-section {
    margin-top: 28px;
  }

  .related-section-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px;
  }

  .related-section-head h2 {
    font-family: 'Tajawal', sans-serif;
    font-size: 20px; font-weight: 800; color: var(--dark);
    display: flex; align-items: center; gap: 8px;
  }

  .related-section-head a {
    font-size: 13px; font-weight: 700; color: var(--primary);
    text-decoration: none;
  }

  .related-section-head a:hover { text-decoration: underline; }

  .related-stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }

  .related-store-card {
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 16px 14px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.18s;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
  }

  .related-store-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 18px rgba(232,25,60,.1);
    transform: translateY(-2px);
  }

  .related-store-card.current-store {
    border-color: var(--primary);
    background: var(--primary-light);
    pointer-events: none;
  }

  .rsc-logo {
    width: 50px; height: 50px;
    background: var(--body-bg); border: 1.5px solid var(--border);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 700; color: var(--dark);
    flex-shrink: 0;
  }

  .related-store-card.current-store .rsc-logo {
    background: var(--primary-mid); border-color: var(--primary);
  }

  .rsc-name {
    font-size: 13.5px; font-weight: 700; color: var(--dark);
  }

  .rsc-count {
    font-size: 11.5px; color: var(--text-3); font-weight: 600;
  }

  .rsc-country {
    font-size: 12px; color: var(--text-3);
  }

  .rsc-current-badge {
    font-size: 10px; font-weight: 700; padding: 2px 8px;
    border-radius: 20px; background: var(--primary);
    color: white;
  }

	/* HERO */
  .hero {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 56px 48px 52px;
    text-align: center;
  }

  .hero-eyebrow {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid var(--primary-mid);
    padding: 5px 14px; border-radius: 30px;
    font-size: 12.5px; font-weight: 700;
    margin-bottom: 20px;
  }

  .hero h1 {
    font-family: 'Tajawal', sans-serif;
    font-size: 52px; font-weight: 800;
    color: var(--dark); line-height: 1.2; margin-bottom: 14px;
  }

  .hero h1 em { color: var(--primary); font-style: normal; }

  .hero p {
    font-size: 16px; color: var(--text-2);
    max-width: 500px; margin: 0 auto 36px; line-height: 1.9;
  }

  .hero-stats {
    display: inline-flex;
    background: var(--body-bg);
    border: 1px solid var(--border);
    border-radius: 14px; overflow: hidden;
  }

  .stat {
    padding: 18px 36px; text-align: center;
    border-left: 1px solid var(--border);
  }
  .stat:last-child { border-left: none; }

  .stat-num {
    font-family: 'Tajawal', sans-serif;
    font-size: 28px; font-weight: 800;
    color: var(--dark); line-height: 1;
  }
  .stat-num span { color: var(--primary); }

  .stat-label { font-size: 12px; color: var(--text-3); font-weight: 600; margin-top: 4px; }

  /* CATS */
  .cats-strip {
    background: white;
    border-bottom: 1px solid var(--border);
    position: sticky; top: 68px; z-index: 98;
  }

  .cats-inner {
    max-width: 1360px; margin: 0 auto;
    padding: 0 48px;
    display: flex; overflow-x: auto; scrollbar-width: none; gap: 2px;
  }
  .cats-inner::-webkit-scrollbar { display: none; }

  .cat-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 14px 16px; border: none; background: none;
    color: var(--text-3);
    font-family: 'Cairo', sans-serif; font-size: 13px; font-weight: 600;
    cursor: pointer; white-space: nowrap;
    border-bottom: 2.5px solid transparent;
    transition: all 0.18s; margin-bottom: -1px;
  }
  .cat-btn:hover { color: var(--text); border-bottom-color: var(--border-dark); }
  .cat-btn.active { color: var(--primary); border-bottom-color: var(--primary); }

  /* PAGE */
  .page-wrap {
    max-width: 1360px; margin: 0 auto; padding: 36px 48px;
  }

  .sec-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px;
  }

  .sec-title {
    font-family: 'Tajawal', sans-serif;
    font-size: 20px; font-weight: 800; color: var(--dark);
    display: flex; align-items: center; gap: 8px;
  }

  .sec-title-bar { width: 4px; height: 22px; background: var(--primary); border-radius: 2px; flex-shrink: 0; }

  .view-all {
    font-size: 13px; font-weight: 700; color: var(--primary);
    text-decoration: none; display: flex; align-items: center; gap: 4px;
    transition: gap 0.18s;
  }
  .view-all:hover { gap: 8px; }

  /* COUNTRIES */
  .countries-row {
    display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px;
  }

  .country-pill {
    display: flex; align-items: center; gap: 7px;
    background: white; border: 1.5px solid var(--border);
    border-radius: 30px; padding: 7px 16px;
    cursor: pointer; font-family: 'Cairo', sans-serif;
    font-size: 13px; font-weight: 600; color: var(--text-2);
    transition: all 0.18s;
  }
  .country-pill:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
  .country-pill.active { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
  .flag-emoji { font-size: 17px; line-height: 1; }

  /* FILTERS */
  .filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }

  .chip {
    padding: 6px 15px; border-radius: 30px;
    border: 1.5px solid var(--border);
    background: white; color: var(--text-2);
    font-family: 'Cairo', sans-serif; font-size: 12.5px; font-weight: 700;
    cursor: pointer; transition: all 0.18s;
  }
  .chip:hover { border-color: var(--primary); color: var(--primary); }
  .chip.active { background: var(--primary); color: white; border-color: var(--primary); }

  /* COUPON CARD — uniform white */
  .coupons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 16px; margin-bottom: 48px;
  }

  .coupon-card {
    background: white;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.22s;
    animation: fadeUp 0.4s ease backwards;
  }

  .coupon-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
  }

  /* single accent stripe at top */
  .card-stripe { height: 3px; background: var(--primary); }

  .card-body { padding: 16px 16px 0; }

  .card-top {
    display: flex; align-items: flex-start;
    gap: 12px; margin-bottom: 10px;
  }

  /* store avatar — neutral grey */
  .store-avatar {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: var(--body-bg);
    border: 1.5px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 800;
    color: var(--dark); flex-shrink: 0;
  }

  .card-meta { flex: 1; min-width: 0; }

  .badge-hot {
    font-size: 10px; font-weight: 700;
    padding: 2px 7px; border-radius: 20px;
    background: #FFF7ED; color: #C2410C;
    border: 1px solid #FED7AA;
  }

  .badge-new {
    font-size: 10px; font-weight: 700;
    padding: 2px 7px; border-radius: 20px;
    background: #EBF9F3; color: var(--success);
    border: 1px solid #B8EDDA;
  }

  .store-name-row {
    display: flex; align-items: center; gap: 6px; margin-bottom: 3px;
  }

  .store-name-txt {
    font-size: 11.5px; font-weight: 700;
    color: var(--text-3); letter-spacing: 0.3px;
  }

  .country-flag-sm { font-size: 14px; }

  .coupon-title {
    font-size: 14px; font-weight: 700;
    color: var(--dark); line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
  }

  /* discount badge — uniform red-light */
  .disc-badge {
    background: var(--primary-light);
    color: var(--primary);
    border: 1.5px solid var(--primary-mid);
    border-radius: 9px; padding: 6px 10px;
    text-align: center; flex-shrink: 0;
  }

  .disc-num {
    font-family: 'Tajawal', sans-serif;
    font-size: 18px; font-weight: 800; line-height: 1;
  }

  .disc-label { font-size: 10px; font-weight: 700; opacity: 0.75; margin-top: 2px; }

  /* tags */
  .card-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 12px; }

  .tag {
    font-size: 11px; font-weight: 700;
    padding: 3px 9px; border-radius: 20px;
    background: var(--body-bg);
    color: var(--text-2);
    border: 1px solid var(--border);
  }

  /* code box */
  .code-box {
    margin: 0 16px;
    background: var(--body-bg);
    border: 1.5px dashed var(--border-dark);
    border-radius: 10px; padding: 10px 12px;
    display: flex; align-items: center; justify-content: space-between;
    cursor: pointer; transition: all 0.18s;
  }

  .code-box:hover { border-color: var(--primary); background: var(--primary-light); }

  .code-hint { font-size: 10px; color: var(--text-3); font-weight: 600; margin-bottom: 2px; }

  .code-val {
    font-family: 'Courier New', monospace;
    font-size: 15px; font-weight: 700;
    color: var(--dark); letter-spacing: 2.5px;
    filter: blur(5px); transition: filter 0.25s; user-select: none;
  }

  .code-box:hover .code-val { filter: blur(0); }

  .btn-copy {
    background: var(--primary); color: white; border: none;
    padding: 6px 12px; border-radius: 7px;
    font-family: 'Cairo', sans-serif; font-size: 12px; font-weight: 700;
    cursor: pointer; transition: all 0.18s; flex-shrink: 0;
  }
  .btn-copy:hover { background: #C8102D; }

  .card-footer {
    padding: 10px 16px 14px;
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 12px;
  }

  .expiry-txt {
    font-size: 11.5px; color: var(--text-3);
    display: flex; align-items: center; gap: 4px; font-weight: 600;
  }
  .expiry-txt.urgent { color: var(--warning); }

  .used-txt { font-size: 11.5px; color: var(--text-3); font-weight: 600; }

  /* STORES */
  .stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px; margin-bottom: 48px;
  }

  .store-card {
    background: white; border: 1.5px solid var(--border);
    border-radius: var(--radius); padding: 20px 14px;
    text-align: center; text-decoration: none;
    color: inherit; display: block; transition: all 0.22s;
  }

  .store-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
  }

  .store-logo-box {
    width: 52px; height: 52px;
    background: var(--body-bg); border: 1.5px solid var(--border);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 800; color: var(--dark);
    margin: 0 auto 12px;
  }

  .store-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; color: var(--dark); }
  .store-coupon-count { font-size: 12px; color: var(--text-3); font-weight: 600; }

  /* BANNERS */
  .banners-row {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 14px; margin-bottom: 48px;
  }

  .banner {
    background: white; border: 1.5px solid var(--border);
    border-radius: var(--radius); padding: 24px 26px;
    display: flex; align-items: center; gap: 18px;
    cursor: pointer; transition: all 0.22s;
  }

  .banner:hover { border-color: var(--primary); box-shadow: var(--shadow-hover); }

  .banner-icon { font-size: 36px; flex-shrink: 0; line-height: 1; }

  .banner-text h3 {
    font-family: 'Tajawal', sans-serif;
    font-size: 16px; font-weight: 800;
    color: var(--dark); margin-bottom: 4px;
  }

  .banner-text p { font-size: 13px; color: var(--text-2); line-height: 1.6; }

  .banner-arrow {
    margin-right: auto; color: var(--primary);
    font-size: 20px; flex-shrink: 0; transition: transform 0.18s;
  }

  .banner:hover .banner-arrow { transform: translateX(-4px); }

  /* NEWSLETTER */
  .newsletter {
    background: var(--dark); border-radius: 16px;
    padding: 32px 36px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 30px; margin-bottom: 48px;
  }

  .nl-text h3 {
    font-family: 'Tajawal', sans-serif;
    font-size: 19px; font-weight: 800;
    color: white; margin-bottom: 5px;
  }
  .nl-text p { font-size: 13.5px; color: rgba(255,255,255,0.5); }

  .nl-form { display: flex; gap: 8px; }

  .nl-input {
    background: rgba(255,255,255,0.07);
    border: 1.5px solid rgba(255,255,255,0.12);
    border-radius: 10px; padding: 11px 18px;
    font-family: 'Cairo', sans-serif; font-size: 13px;
    color: white; width: 240px; outline: none;
    direction: rtl; transition: border-color 0.18s;
  }
  .nl-input::placeholder { color: rgba(255,255,255,0.3); }
  .nl-input:focus { border-color: var(--primary); }

  /* ── FOOTER ── */
  footer {
    background: white;
    border-top: 1px solid var(--border);
    margin-top: 60px;
  }

  .footer-inner {
    max-width: 1200px; margin: 0 auto;
    padding: 44px 32px 32px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
  }

  .footer-brand .logo { font-size: 22px; display: inline-flex; }

  .footer-brand p {
    font-size: 13.5px; color: var(--text-2);
    line-height: 1.85; margin-top: 14px; max-width: 260px;
  }

  .footer-col h4 {
    font-size: 14px; font-weight: 700;
    color: var(--dark); margin-bottom: 14px;
  }

  .footer-col ul { list-style: none; }
  .footer-col ul li { margin-bottom: 9px; }
  .footer-col ul li a {
    color: var(--text-2); text-decoration: none;
    font-size: 13.5px; transition: color 0.15s;
  }
  .footer-col ul li a:hover { color: var(--primary); }

  .footer-bottom {
    border-top: 1px solid var(--border);
    padding: 16px 32px; max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px; color: var(--text-3);
  }

  .social-links { display: flex; gap: 8px; }

  .social-link {
    width: 32px; height: 32px;
    background: var(--body-bg); border: 1.5px solid var(--border);
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    color: var(--text-2); text-decoration: none; font-size: 13px;
    transition: all 0.15s;
  }
  .social-link:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

  @media(max-width:768px){
    nav{padding:0 16px;}
    .nav-links{display:none;}
    .store-header{padding:20px 16px;}
    .store-stats{display:none;}
    .main{padding:20px 16px;}
    .breadcrumb{padding:10px 16px;}
    .grid{grid-template-columns:1fr;}
    .footer-inner{grid-template-columns:1fr 1fr;padding:28px 16px;}
    .footer-bottom{padding:14px 16px;flex-direction:column;gap:12px;text-align:center;}
    .seo-body{padding:20px 16px 24px;}
    .seo-grid{grid-template-columns:1fr 1fr;}
  }