/* Ts3era Coupons — modern, clean, RTL (WaffarX-inspired) */
.tsc-wrap{direction:rtl;font-family:'Cairo',Tahoma,Arial,sans-serif;--tsc-cols:4;color:#0f172a;max-width:1160px;margin:0 auto}
.tsc-wrap *{box-sizing:border-box}

/* ---- Toolbar: search + sort ---- */
.tsc-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 18px}
.tsc-searchwrap{position:relative;flex:1;min-width:240px}
.tsc-searchwrap .tsc-searchicon{position:absolute;inset-inline-start:16px;top:50%;transform:translateY(-50%);font-size:16px;opacity:.6;pointer-events:none}
.tsc-search{width:100%;border:1px solid #e2e8f0;border-radius:999px;padding:13px 46px 13px 18px;font-family:inherit;font-size:14.5px;background:#fff;box-shadow:0 1px 3px rgba(15,23,42,.05);transition:border-color .15s,box-shadow .15s}
.tsc-search:focus{outline:none;border-color:#0a6fb0;box-shadow:0 0 0 3px rgba(10,111,176,.12)}
.tsc-sort{display:flex;gap:8px;flex-wrap:wrap}
.tsc-chip{border:1px solid #e2e8f0;background:#fff;border-radius:999px;padding:9px 16px;font-family:inherit;font-size:13px;color:#475569;cursor:pointer;transition:.15s;white-space:nowrap}
.tsc-chip:hover{border-color:#cbd5e1}
.tsc-chip.is-active{background:#0a6fb0;color:#fff;border-color:#0a6fb0}

/* ---- Section header ---- */
.tsc-section-h{display:flex;align-items:center;justify-content:space-between;margin:6px 0 16px}
.tsc-section-h h2{font-size:21px;font-weight:800;color:#0f172a;margin:0;position:relative;padding-inline-start:13px}
.tsc-section-h h2:before{content:"";position:absolute;inset-inline-start:0;top:6px;bottom:6px;width:4px;border-radius:3px;background:#f58625}

/* ---- Stats ---- */
.tsc-stats{display:flex;gap:10px;margin:0 0 18px;flex-wrap:wrap}
.tsc-stat{background:#fff;border:1px solid #eef2f7;border-radius:10px;padding:10px 18px;font-size:13px;color:#64748b}
.tsc-stat b{display:block;font-size:20px;color:#f58625;font-weight:800;line-height:1.2}

/* ---- Coupon grid ---- */
.tsc-grid{display:grid;grid-template-columns:repeat(var(--tsc-cols),1fr);gap:16px}
.tsc-card{background:#fff;border:1px solid #eef2f7;border-radius:12px;padding:16px;display:flex;flex-direction:column;box-shadow:0 1px 3px rgba(15,23,42,.04);transition:box-shadow .18s,transform .18s,border-color .18s}
.tsc-card:hover{box-shadow:0 12px 28px rgba(15,23,42,.10);transform:translateY(-3px);border-color:#e2e8f0}
.tsc-logo{height:74px;display:flex;align-items:center;justify-content:center;background:#fafcff;border:1px solid #f1f5f9;border-radius:10px;margin-bottom:12px;overflow:hidden}
.tsc-logo img{max-height:54px;max-width:80%;object-fit:contain}
.tsc-logo-link{display:flex;align-items:center;justify-content:center;width:100%;height:100%}
.tsc-logo-fb{font-weight:800;font-size:16px;color:#0f172a;align-items:center;justify-content:center;width:100%;height:100%;text-align:center;padding:6px;line-height:1.3}
.tsc-badge{align-self:flex-start;background:#fff3e8;color:#b3560a;font-weight:800;font-size:12.5px;padding:5px 11px;border-radius:7px;margin-bottom:8px}
.tsc-name{display:block;font-weight:800;font-size:15px;color:#0f172a;margin-bottom:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-decoration:none}
a.tsc-name:hover{color:#0a6fb0;text-decoration:underline}
.tsc-code{display:flex;border:1.5px dashed #f58625;border-radius:9px;overflow:hidden;margin-bottom:10px;background:#fff8f1}
.tsc-codeval{flex:1;min-width:0;padding:11px;font-family:monospace;font-weight:800;letter-spacing:1px;color:#b3560a;text-align:center;display:flex;align-items:center;justify-content:center;overflow:hidden;text-overflow:ellipsis}
.tsc-copy{border:0;background:#f58625;color:#fff;font-weight:700;font-size:13px;padding:0 16px;cursor:pointer;font-family:inherit;white-space:nowrap;transition:filter .15s}
.tsc-copy:hover{filter:brightness(.95)}
.tsc-copy.done{background:#16a34a}
.tsc-go{display:block;text-align:center;background:#0a6fb0;color:#fff;font-weight:800;font-size:13.5px;padding:12px;border-radius:9px;text-decoration:none;margin-top:auto;transition:filter .15s}
.tsc-go:hover{filter:brightness(.92);color:#fff}
.tsc-go--copy{background:#f1f5f9;color:#64748b;cursor:default}
.tsc-empty,.tsc-noresults{padding:44px;text-align:center;color:#64748b;font-family:'Cairo',Tahoma,Arial,sans-serif;direction:rtl;font-size:15px}

/* ---- Hero (store browse) ---- */
.tsc-hero{max-width:1160px;margin:0 auto 26px;text-align:center;padding:40px 22px 30px;background:linear-gradient(180deg,#fff8f1 0%,#ffffff 72%);border:1px solid #f3e6d8;border-radius:18px}
.tsc-hero-title{font-size:30px;font-weight:800;color:#0f172a;margin:0 0 8px;line-height:1.35}
.tsc-hero-sub{font-size:15px;color:#64748b;margin:0 auto 22px;max-width:620px;line-height:1.85}
.tsc-hero-search{position:relative;max-width:540px;margin:0 auto}
.tsc-hero-search .tsc-searchicon{position:absolute;inset-inline-start:18px;top:50%;transform:translateY(-50%);font-size:17px;opacity:.55;pointer-events:none}
.tsc-bsearch{width:100%;border:1px solid #e2e8f0;border-radius:999px;padding:15px 50px 15px 20px;font-family:'Cairo',Tahoma,Arial,sans-serif;font-size:15px;background:#fff;box-shadow:0 4px 18px rgba(15,23,42,.08)}
.tsc-bsearch:focus{outline:none;border-color:#f58625;box-shadow:0 0 0 4px rgba(245,134,37,.13)}
.tsc-hero-stats{display:flex;justify-content:center;gap:32px;margin-top:20px;flex-wrap:wrap}
.tsc-hero-stats span{font-size:12.5px;color:#64748b}
.tsc-hero-stats b{color:#f58625;font-weight:800;font-size:19px;display:block;line-height:1.2}
.tsc-bnoresults{padding:30px;text-align:center;color:#64748b;direction:rtl;font-family:'Cairo',Tahoma,Arial,sans-serif}
@media(max-width:560px){.tsc-hero{padding:30px 16px 24px}.tsc-hero-title{font-size:24px}}

/* hero slider variant */
.tsc-hero--slider{position:relative;overflow:hidden;padding:0;border:0;background:#0f172a;min-height:360px;display:flex;align-items:center;justify-content:center}
.tsc-hero--slider .tsc-slides{position:absolute;inset:0}
.tsc-hero--slider .tsc-slide{position:absolute;inset:0;background-size:cover;background-position:center;opacity:0;transition:opacity 1.1s ease}
.tsc-hero--slider .tsc-slide.is-active{opacity:1}
.tsc-hero-ov{position:absolute;inset:0;background:linear-gradient(180deg,rgba(15,23,42,.5) 0%,rgba(15,23,42,.74) 100%)}
.tsc-hero-inner{position:relative;z-index:2;text-align:center;width:100%;max-width:680px;padding:40px 22px 52px}
.tsc-hero-logo{max-height:46px;max-width:210px;object-fit:contain;display:block;margin:0 auto 18px;background:rgba(255,255,255,.96);padding:9px 18px;border-radius:12px;box-shadow:0 6px 20px rgba(0,0,0,.25)}
.tsc-hero--slider .tsc-hero-title{color:#fff;text-shadow:0 2px 14px rgba(0,0,0,.4)}
.tsc-hero--slider .tsc-hero-sub{color:#e8edf3}
.tsc-hero--slider .tsc-hero-stats span{color:#e8edf3}
.tsc-hero--slider .tsc-hero-stats b{color:#ffcf9e}
.tsc-hero-dots{position:absolute;z-index:3;bottom:16px;left:0;right:0;display:flex;justify-content:center;gap:7px}
.tsc-hero-dot{width:9px;height:9px;border-radius:50%;background:rgba(255,255,255,.55);cursor:pointer;border:0;padding:0;transition:.2s}
.tsc-hero-dot.is-active{background:#f58625;width:24px;border-radius:5px}
@media(max-width:560px){.tsc-hero--slider{min-height:310px}.tsc-hero-logo{max-height:38px}}

/* ---- Store directory (logo grid) ---- */
.tsc-brands{direction:rtl;font-family:'Cairo',Tahoma,Arial,sans-serif;max-width:1160px;margin:8px auto 0}
.tsc-brands-title{font-size:21px;font-weight:800;color:#0f172a;margin:0 0 16px;position:relative;padding-inline-start:13px}
.tsc-brands-title:before{content:"";position:absolute;inset-inline-start:0;top:6px;bottom:6px;width:4px;border-radius:3px;background:#f58625}
.tsc-brands-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(158px,1fr));gap:14px}
.tsc-brand-card{display:flex;flex-direction:column;align-items:center;gap:8px;background:#fff;border:1px solid #eef2f7;border-radius:12px;padding:18px 12px;text-decoration:none;box-shadow:0 1px 3px rgba(15,23,42,.04);transition:box-shadow .18s,transform .18s}
.tsc-brand-card:hover{box-shadow:0 12px 28px rgba(15,23,42,.10);transform:translateY(-3px)}
.tsc-brand-logo{height:56px;display:flex;align-items:center;justify-content:center;width:100%}
.tsc-brand-logo img{max-height:50px;max-width:90%;object-fit:contain}
.tsc-brand-fb{font-weight:800;color:#0f172a;font-size:13px;text-align:center}
.tsc-brand-name{font-weight:700;font-size:13.5px;color:#0f172a;text-align:center;line-height:1.4}
.tsc-brand-count{font-size:11px;color:#fff;background:#f58625;border-radius:999px;padding:2px 10px;font-weight:700}

/* ---- Responsive ---- */
@media(max-width:1024px){.tsc-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.tsc-grid{grid-template-columns:1fr}.tsc-brands-grid{grid-template-columns:repeat(2,1fr)}.tsc-toolbar{flex-direction:column;align-items:stretch}.tsc-sort{justify-content:center}}

/* ============ Redesigned hub + brand layout (tsc2) ============ */
.tsc2{direction:rtl;font-family:'Cairo',Tahoma,Arial,sans-serif;color:#0f172a;max-width:1200px;margin:0 auto;padding:0 14px 50px}
.tsc2 *{box-sizing:border-box}
.tsc2-hero{margin:14px 0 22px}
.tsc2-hero-imgwrap{display:block;border-radius:16px;overflow:hidden;box-shadow:0 10px 30px rgba(15,23,42,.12)}
.tsc2-hero-img{width:100%;height:auto;display:block}
.tsc2-hero-fb{position:relative;overflow:hidden;border-radius:16px;background:linear-gradient(120deg,#1b3b6f 0%,#2b57b3 48%,#f58625 125%);color:#fff;padding:38px 34px;display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:230px}
.tsc2-hero-fb-txt{max-width:64%}
.tsc2-hero-fb h1{font-size:30px;font-weight:800;margin:0 0 10px;line-height:1.3;color:#fff}
.tsc2-hero-fb h1 span{color:#ffd9b3}
.tsc2-hero-fb p{font-size:16px;margin:0 0 18px;opacity:.95;line-height:1.8}
.tsc2-hero-cta{display:inline-block;background:#f58625;color:#fff;font-weight:800;font-size:15px;text-decoration:none;padding:12px 26px;border-radius:10px;box-shadow:0 6px 18px rgba(245,134,37,.4)}
.tsc2-hero-fb-art{font-size:46px;opacity:.92;white-space:nowrap}
.tsc2-subbanner{display:block;margin:26px 0;border-radius:13px;overflow:hidden;box-shadow:0 6px 20px rgba(15,23,42,.1);transition:transform .18s}
.tsc2-subbanner:hover{transform:translateY(-2px)}
.tsc2-subbanner img{width:100%;height:auto;display:block}
.tsc2-toc{background:#fff8f1;border:1px solid #f3e6d8;border-radius:12px;padding:14px 18px;margin:0 0 6px}
.tsc2-toc>b{display:block;font-size:14px;margin-bottom:8px;color:#0f172a}
.tsc2-toc ul{margin:0;padding:0;list-style:none;display:flex;flex-wrap:wrap;gap:6px 18px}
.tsc2-toc li{position:relative;padding-inline-start:14px}
.tsc2-toc li:before{content:"‹";position:absolute;inset-inline-start:0;color:#f58625;font-weight:800}
.tsc2-toc a{color:#0a6fb0;text-decoration:none;font-size:13.5px}
.tsc2-toc a:hover{text-decoration:underline}
.tsc2-bestcode{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;background:linear-gradient(135deg,#fff8f1,#fff);border:1.5px solid #f58625;border-radius:13px;padding:15px 20px;margin:0 0 20px}
.tsc2-bestcode-info b{display:block;font-size:15px;color:#0f172a;margin-bottom:3px}
.tsc2-bestcode-info span{font-size:13px;color:#64748b}
.tsc2-bestcode-code{display:flex;align-items:stretch;border:1.5px dashed #f58625;border-radius:9px;overflow:hidden;background:#fff}
.tsc2-bestcode-code .v{display:flex;align-items:center;padding:0 16px;font-family:monospace;font-weight:800;letter-spacing:1px;color:#b3560a;font-size:15px}
.tsc2-bestcode-code .tsc-copy{border:0;background:#f58625;color:#fff;font-weight:700;font-size:13.5px;padding:11px 18px;cursor:pointer;font-family:inherit;white-space:nowrap}
.tsc2-bestcode-code .tsc-copy.done{background:#16a34a}
.tsc2-types{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:4px 0 8px}
.tsc2-type{background:#f8fafc;border:1px solid #eef2f7;border-radius:10px;padding:12px 14px}
.tsc2-type b{display:block;font-size:14px;margin-bottom:3px;color:#0a6fb0}
.tsc2-type span{font-size:13px;color:#64748b;line-height:1.7}
@media(max-width:560px){.tsc2-types{grid-template-columns:1fr}.tsc2-bestcode{flex-direction:column;align-items:stretch;text-align:center}.tsc2-bestcode-code{justify-content:center}}

/* ---- Mobile hardening (hub + brand pages) ---- */
@media(max-width:768px){
	.tsc2{padding:0 10px 42px}
	.tsc2-h1{font-size:20px}
	.tsc2-sech,.tsc2-edu h2{font-size:18px}
	.tsc2-hero{margin:10px 0 16px}
	.tsc2-edu{padding:18px 16px}
	.tsc2-subbanner{margin:18px 0}
	.tsc-brandpage{padding:18px 12px 46px !important}
	.tsc-brandpage > header h1{font-size:21px !important;line-height:1.35 !important}
	.tsc-section-h h2,.tsc-brands-title{font-size:18px}
}
@media(max-width:480px){
	.tsc-grid{grid-template-columns:1fr}
	.tsc2-cats{grid-template-columns:repeat(2,1fr)}
	.tsc-brands-grid{grid-template-columns:repeat(2,1fr)}
	.tsc2-bestcode{flex-direction:column;align-items:stretch;text-align:center}
	.tsc2-bestcode-code{justify-content:center}
	.tsc2-toc ul{gap:4px 12px}
	.tsc-card{padding:13px}
	.tsc-stats{gap:8px}.tsc-stat{padding:8px 12px;font-size:12px}
	.tsc2-hero-fb h1{font-size:21px}
	.tsc-brandpage > header{gap:10px}
}
.tsc2-layout{display:grid;grid-template-columns:1fr 300px;gap:24px;align-items:start}
.tsc2-content{min-width:0}
.tsc2-h1{font-size:25px;font-weight:800;margin:4px 0 6px}
.tsc2-intro{color:#64748b;font-size:14.5px;line-height:1.85;margin:0 0 18px}
.tsc2-sech{font-size:21px;font-weight:800;margin:34px 0 14px;position:relative;padding-inline-start:13px}
.tsc2-sech:before{content:"";position:absolute;inset-inline-start:0;top:5px;bottom:5px;width:4px;border-radius:3px;background:#f58625}
.tsc2 .tsc-wrap,.tsc2 .tsc-brands{max-width:none;margin:0}
.tsc2 .tsc-grid{gap:13px}
.tsc2-cats{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}
.tsc2-cat{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;height:108px;border-radius:13px;background-size:cover;background-position:center;color:#fff;text-decoration:none;font-weight:800;box-shadow:0 4px 14px rgba(15,23,42,.12);transition:transform .18s,box-shadow .18s}
.tsc2-cat:hover{transform:translateY(-3px);box-shadow:0 12px 26px rgba(15,23,42,.2);color:#fff}
.tsc2-cat-ic{font-size:30px;filter:drop-shadow(0 2px 4px rgba(0,0,0,.3))}
.tsc2-cat-name{font-size:14.5px;text-shadow:0 1px 6px rgba(0,0,0,.45)}
.tsc2-edu{background:#f8fafc;border:1px solid #eef2f7;border-radius:14px;padding:22px 24px;margin-top:34px}
.tsc2-edu h2{font-size:20px;font-weight:800;margin:0 0 10px}
.tsc2-edu h3{font-size:16px;font-weight:800;margin:18px 0 6px;color:#0a6fb0}
.tsc2-edu p{color:#475569;line-height:1.95;font-size:14.5px;margin:0}
.tsc2-faq{margin-top:30px}
.tsc2-faq-i{border:1px solid #eef2f7;border-radius:9px;padding:13px 15px;margin-bottom:8px;background:#fff}
.tsc2-faq-i summary{font-weight:800;cursor:pointer;color:#0f172a;font-size:14.5px}
.tsc2-faq-i p{color:#475569;margin:10px 0 0;line-height:1.95;font-size:14px}
.tsc2-side{display:flex;flex-direction:column;gap:16px;position:sticky;top:16px}
.tsc2-promo{background:linear-gradient(150deg,#f58625,#d96a12);color:#fff;border-radius:14px;padding:18px;text-align:center;box-shadow:0 8px 22px rgba(245,134,37,.32)}
.tsc2-promo-tag{display:inline-block;background:rgba(255,255,255,.22);font-weight:800;font-size:12px;padding:4px 12px;border-radius:999px;margin-bottom:8px}
.tsc2-promo b{display:block;font-size:18px;margin-bottom:5px}
.tsc2-promo-sub{display:block;font-size:12.5px;opacity:.92;line-height:1.7;margin-bottom:12px}
.tsc2-promo-cta{display:inline-block;background:#fff;color:#d96a12;font-weight:800;font-size:13.5px;text-decoration:none;padding:9px 18px;border-radius:8px}
.tsc2-widget{background:#fff;border:1px solid #eef2f7;border-radius:14px;padding:16px}
.tsc2-widget-h{font-size:16px;font-weight:800;margin:0 0 12px;padding-bottom:10px;border-bottom:1px solid #f1f5f9}
.tsc2-storelist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.tsc2-storelist a{display:flex;align-items:center;gap:10px;padding:7px;border-radius:9px;text-decoration:none;color:#0f172a;transition:background .15s}
.tsc2-storelist a:hover{background:#f8fafc}
.tsc2-store-logo{width:38px;height:38px;flex:0 0 38px;border:1px solid #f1f5f9;border-radius:8px;display:flex;align-items:center;justify-content:center;background:#fafcff;overflow:hidden}
.tsc2-store-logo img{max-width:80%;max-height:80%;object-fit:contain}
.tsc2-store-fb{font-weight:800;font-size:13px;color:#0a6fb0}
.tsc2-store-name{flex:1;font-size:13px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tsc2-store-cnt{font-size:11px;font-weight:800;color:#fff;background:#f58625;border-radius:999px;padding:2px 8px;min-width:24px;text-align:center}
.tsc2-tips{margin:0;padding-inline-start:18px;color:#475569;font-size:13.5px;line-height:2}
@media(max-width:980px){.tsc2-layout{grid-template-columns:1fr}.tsc2-side{position:static;flex-direction:row;flex-wrap:wrap}.tsc2-side>*{flex:1;min-width:240px}}
@media(max-width:560px){.tsc2-hero-fb{flex-direction:column;text-align:center;padding:26px 18px}.tsc2-hero-fb-txt{max-width:100%}.tsc2-hero-fb h1{font-size:23px}.tsc2-hero-fb-art{font-size:34px}.tsc2-cats{grid-template-columns:repeat(2,1fr)}.tsc2-side{flex-direction:column}}
/* ===== Manual AdSense placements (hybrid) — reserved space, RTL, labelled ===== */
.ts3era-ad{margin:18px 0;clear:both;text-align:center}
.ts3era-ad::before{content:"إعلان";display:block;font-size:11px;color:#94a3b8;margin-bottom:4px;letter-spacing:.5px}
.ts3era-ad ins.adsbygoogle{display:block}
.ts3era-ad--incontent{min-height:100px}
.ts3era-ad--sidebar{min-height:250px;position:sticky;top:90px}
@media(max-width:980px){.ts3era-ad--sidebar{position:static;top:auto}}
