:root{
  --bg0:#0b0b0f;
  --bg1:#101018;
  --card: rgba(20,20,28,.72);
  --card2: rgba(20,20,28,.86);
  --gold:#CFAF5F;
  --gold2:#e6cf8a;
  --text:#f5f5f7;
  --muted:rgba(245,245,247,.68);
  --line:rgba(255,255,255,.10);
  --shadow: 0 18px 50px rgba(0,0,0,.45);
  --r:18px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --bg-img: none;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", "Vazirmatn", "Tahoma", Arial;
  color:var(--text);
  background: radial-gradient(1200px 600px at 50% -10%, rgba(207,175,95,.15), transparent 55%),
              radial-gradient(900px 420px at 80% 10%, rgba(25,39,75,.18), transparent 60%),
              linear-gradient(180deg, var(--bg0), var(--bg1));
  overflow-x:hidden;
}

/* Background layers (WORLD-CLASS, clear + cinematic, mobile-first)
   - Keeps existing class names to avoid HTML changes.
   - No heavy blur. Readability is via overlay/vignette/glow.
*/
.bg-layer{
  position:fixed;
  inset:0;
  z-index:-3;
  background-image: var(--bg-img);
  background-position:center;
  background-repeat:no-repeat;
  background-size:cover;          /* full screen without stretching */
  transform: scale(1.08);         /* subtle depth */
  will-change: transform;
  animation: bgFloat 18s ease-in-out infinite;
}

/* cinematic motion (subtle, premium) */
@keyframes bgFloat{
  0%   { transform: scale(1.08) translate3d(0,0,0); }
  50%  { transform: scale(1.12) translate3d(0,-12px,0); }
  100% { transform: scale(1.08) translate3d(0,0,0); }
}

/* overlay container (glow + readability + vignette + micro-noise) */
.bg-vignette{
  position:fixed;
  inset:0;
  z-index:-2;
  pointer-events:none;
  /* readability overlay (NO blur) */
  background:
    linear-gradient(to bottom,
      rgba(0,0,0,.10) 0%,
      rgba(0,0,0,.40) 45%,
      rgba(0,0,0,.78) 100%
    );
}

/* golden glow (brand feeling) */
.bg-vignette::before{
  content:"";
  position:absolute;
  inset:-20%;
  background:
    radial-gradient(40% 35% at 30% 20%, rgba(207,175,95,.22), transparent 60%),
    radial-gradient(35% 30% at 75% 30%, rgba(207,175,95,.12), transparent 65%);
  mix-blend-mode: screen;
  opacity: .95;
  animation: glowPulse 10s ease-in-out infinite;
  will-change: transform, opacity;
}

@keyframes glowPulse{
  0%   { transform: translate3d(0,0,0) scale(1);    opacity: .80; }
  50%  { transform: translate3d(0,-8px,0) scale(1.03); opacity: 1; }
  100% { transform: translate3d(0,0,0) scale(1);    opacity: .80; }
}

/* vignette + micro noise (premium texture) */
.bg-vignette::after{
  content:"";
  position:absolute;
  inset:-10%;
  /* two backgrounds: vignette + noise */
  background:
    radial-gradient(circle at center,
      rgba(0,0,0,0) 45%,
      rgba(0,0,0,.55) 78%,
      rgba(0,0,0,.78) 100%
    ),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
  background-repeat:no-repeat, repeat;
  background-size:cover, 220px 220px;
  opacity: .075;
  mix-blend-mode: overlay;
}

/* Accessibility: respect Reduce Motion */
@media (prefers-reduced-motion: reduce){
  .bg-layer{ animation: none !important; transform: none !important; }
  .bg-vignette::before{ animation: none !important; }
}
a{color:inherit; text-decoration:none}
.ico{width:20px;height:20px;fill:currentColor;display:block}

.app-header{
  position:sticky; top:0;
  padding: calc(10px + var(--safe-t)) 14px 10px;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(10,10,14,.84), rgba(10,10,14,.62));
  border-bottom: 1px solid var(--line);
  z-index:50;
}

.topbar{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.brand{display:flex; align-items:center; gap:10px}
.brand-mark{
  width:40px;height:40px;border-radius:14px;
  display:grid;place-items:center;
  background: linear-gradient(135deg, rgba(207,175,95,.28), rgba(207,175,95,.10));
  border:1px solid rgba(207,175,95,.35);
  box-shadow: 0 10px 28px rgba(207,175,95,.10);
  color: var(--gold2);
  font-weight:800;
}
.brand-title{font-weight:800; letter-spacing:-.2px}
.brand-sub{font-size:12px; color:var(--muted); margin-top:2px}

.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:9px 12px;
  border-radius:999px;
  border:1px solid rgba(207,175,95,.30);
  background: rgba(18,18,26,.65);
  color: var(--gold2);
  box-shadow: 0 10px 28px rgba(0,0,0,.25);
}
.pill-admin .ico{width:18px;height:18px;opacity:.9}

.searchbar{
  display:flex; align-items:center;
  background: rgba(20,20,28,.72);
  border:1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  padding: 8px 10px;
  gap:10px;
  box-shadow: 0 14px 38px rgba(0,0,0,.30);
}
.search-ico{
  border:0; background:transparent; color:var(--muted);
  padding:6px; border-radius:12px;
}
.search-input{
  flex:1;
  border:0; outline:0;
  background:transparent;
  color:var(--text);
  font-size:14px;
}
.search-input::placeholder{color: rgba(245,245,247,.55)}

.chips{
  margin-top:10px;
  display:flex; gap:10px;
  overflow:auto;
  padding-bottom:6px;
  scroll-snap-type:x mandatory;
}
.chips::-webkit-scrollbar{height:0}
.chip{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 12px;
  border-radius:999px;
  background: rgba(20,20,28,.55);
  border:1px solid rgba(255,255,255,.10);
  color: rgba(245,245,247,.84);
  white-space:nowrap;
  scroll-snap-align:start;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.chip img{width:18px;height:18px;border-radius:6px;object-fit:cover}
.chip-ph{
  width:18px;height:18px;
  border-radius:6px;
  display:grid;place-items:center;
  font-size:11px;font-weight:900;
  color: rgba(20,20,20,.95);
  background: linear-gradient(180deg, rgba(207,175,95,.95), rgba(207,175,95,.65));
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 8px 18px rgba(0,0,0,.22);
}

/* Saved chip */
.chip-saved svg{opacity:.85}

/* Bookmark button on cards */
.card-media{position:relative}
.card-media .bookmark-btn{position:absolute;right:12px;left:auto;bottom:12px;width:36px;height:36px;border-radius:999px;border:1px solid rgba(255,255,255,.22);background:rgba(10,10,10,.45);backdrop-filter:blur(8px);display:inline-flex;align-items:center;justify-content:center;color:#fff;cursor:pointer;transition:transform .12s ease, background .12s ease, border-color .12s ease}
.icon-btn.bookmark-btn{position:relative;left:auto;bottom:auto;width:44px;height:44px;border:1px solid rgba(255,255,255,.16);background:rgba(12,12,12,.35);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.bookmark-btn:active{transform:scale(.96)}
.bookmark-btn.is-saved{background:rgba(207,175,95,.28);border-color:rgba(207,175,95,.55)}
.bookmark-btn .ico{pointer-events:none}

/* Respect mobile tap targets */
@media (max-width:480px){
  .card-media .bookmark-btn{width:40px;height:40px;right:12px;left:auto;bottom:12px}
}
.chip.active{
  border-color: rgba(207,175,95,.55);
  background: rgba(207,175,95,.12);
  color: var(--gold2);
}
.chip:active{transform: scale(.98)}

.app-main{padding: 14px 14px calc(90px + var(--safe-b));}
.section{margin: 14px 0 18px;}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:10px;margin-bottom:10px}
.section-title{margin:0;font-size:16px;font-weight:800}
.section-hint{font-size:12px;color:var(--muted)}
.icon-btn{border:0;background:transparent;color:rgba(245,245,247,.70);padding:8px;border-radius:12px}
.icon-btn:active{transform:scale(.98)}

.rail{
  display:flex; gap:12px;
  overflow:auto;
  padding-bottom:6px;
  scroll-snap-type:x mandatory;
}
.rail::-webkit-scrollbar{height:0}
.card{
  background: var(--card);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow:hidden;
  scroll-snap-align:start;
  transform: translateZ(0);
}
.shop-card{min-width: 210px}
.card-media{height:120px;background: rgba(255,255,255,.04);display:grid;place-items:center}
.card-media img{width:100%;height:100%;object-fit:cover}
.ph{color:rgba(245,245,247,.35);font-weight:700}
.card-body{padding:10px 10px 12px}

/* Caption typography (clear + premium) */
.card-title{font-weight:850;font-size:15px;line-height:1.25;letter-spacing:-.2px}
.card-meta{font-size:12.5px;color:var(--muted);margin-top:5px;line-height:1.35}

/* Clamp long meta nicely without cutting mid-line */
.card-meta{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* Stronger readability for captions under media (mobile screenshots showed low contrast) */
.shop-card .card-body{
  /* Make captions ALWAYS readable, regardless of background image */
  background:
    linear-gradient(180deg,
      rgba(10,10,12,.82) 0%,
      rgba(10,10,12,.92) 55%,
      rgba(8,8,10,.96) 100%
    );
  border-top: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 -10px 24px rgba(0,0,0,.22) inset;
}
.shop-card .card-title{color: rgba(245,245,247,.98); text-shadow: 0 2px 10px rgba(0,0,0,.55)}
.shop-card .card-meta{color: rgba(245,245,247,.74); text-shadow: 0 2px 10px rgba(0,0,0,.45)}

/* Slightly larger padding on narrow screens for better legibility */
@media (max-width: 420px){
  .card-body{padding:12px 12px 14px}
}

.empty{
  padding:14px;
  border:1px dashed rgba(255,255,255,.18);
  border-radius: var(--r);
  color: rgba(245,245,247,.70);
  background: rgba(0,0,0,.18);
}

.hero{margin-top: 8px}
.slider{
  position:relative;
  border-radius: 22px;
  overflow:hidden;
}
.slides{
  display:flex;
  overflow:auto;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  /* RTL fix: make horizontal slider deterministic across browsers */
  direction:ltr;
}
.slides::-webkit-scrollbar{height:0}
.slide{
  min-width:100%;
  position:relative;
  scroll-snap-align:start;
  background: rgba(255,255,255,.04);
  /* keep inner content RTL if any text appears later */
  direction:rtl;
}
.slide img{width:100%;height:100%;object-fit:contain;display:block;background: rgba(0,0,0,.25)}

/* Slider motion polish */
.slides{ -webkit-overflow-scrolling: touch; }
.slide{ transform: translateZ(0); }
.slide img{
  transition: transform 900ms ease, filter 900ms ease;
}
.slide.is-active img{
  transform: scale(1.04);
  filter: saturate(1.12) contrast(1.08);
}
.slide-overlay::after{
  content:"";
  position:absolute; inset:-40% -20%;
  background: linear-gradient(120deg, transparent 30%, rgba(255,215,120,.10) 45%, transparent 60%);
  transform: translateX(-30%) translateY(10%);
  opacity: 0;
}
.slide.is-active .slide-overlay::after{
  opacity: 1;
  animation: slideSheen 2.2s ease-in-out infinite;
}
@keyframes slideSheen{
  0%{ transform: translateX(-35%) translateY(12%); }
  100%{ transform: translateX(35%) translateY(-12%); }
}

/* =========================
   Hero Slider – Mobile Lock (no layout shift)
   - Locks slide box with aspect-ratio
   - Keeps images non-cropped (contain)
========================= */
.hero .slider{ border-radius: 22px; overflow:hidden; }
.hero .slides{
  display:flex;
  overflow:auto;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  direction:ltr;                 /* stable horizontal scroll in RTL */
  -webkit-overflow-scrolling: touch;
}
.hero .slides::-webkit-scrollbar{height:0}

.hero .slide{
  min-width:100%;
  scroll-snap-align:start;
  background: transparent;
  direction:rtl;
}

.hero .slide-media{
  width:100%;
  aspect-ratio: 16 / 9;          /* lock size to prevent jumping */
  border-radius: 22px;
  overflow:hidden;
  background: rgba(0,0,0,.25);
  position: relative;
}

.hero .slide-media img{
  width:100%;
  height:100%;
  display:block;
  object-fit: contain;           /* NO crop, NO stretch */
  object-position:center;
}

/* keep overlay & text inside locked media */
.hero .slide-overlay{ position:absolute; inset:0; }
.hero .slide-text{ position:absolute; right:14px; left:14px; bottom:14px; }

/* Dots as buttons */
.dots .dot{
  border: 0;
  background: rgba(255,255,255,.20);
  width: 7px;
  height: 7px;
  border-radius: 999px;
  margin: 0 3px;
  padding: 0;
  transition: width 220ms ease, background 220ms ease, transform 220ms ease;
}
.dots .dot.active{
  width: 18px;
  background: rgba(207,175,95,.85);
  transform: translateY(-1px);
}
.slide-overlay{
  position:absolute; inset:0;
  background: radial-gradient(700px 320px at 50% 0%, rgba(207,175,95,.18), transparent 55%),
              linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.70));
  pointer-events:none;
}
.slide-text{
  position:absolute;
  right:14px; left:14px; bottom:14px;
}
.slide-title{font-size:18px;font-weight:900;text-shadow: 0 10px 30px rgba(0,0,0,.55)}
.slide-sub{margin-top:6px;font-size:13px;color:rgba(245,245,247,.78);text-shadow: 0 10px 26px rgba(0,0,0,.55)}
.slide-fallback{height:100%;display:grid;place-items:center;color:rgba(245,245,247,.8)}
.dots{
  position:absolute;
  left:12px; bottom:12px;
  display:flex; gap:6px;
  z-index:2;
}
.dot{
  width:7px;height:7px;border-radius:999px;
  background: rgba(255,255,255,.28);
  border: 1px solid rgba(255,255,255,.18);
}
.dot.active{
  background: rgba(207,175,95,.85);
  border-color: rgba(207,175,95,.55);
  box-shadow: 0 8px 22px rgba(207,175,95,.18);
}

.banner-card{
  min-width: 220px;
  height: 140px;
  position:relative;
}
.banner-card img{width:100%;height:100%;object-fit:contain;display:block;background: rgba(0,0,0,.25)}
.badge{
  position:absolute; top:10px; right:10px;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(207,175,95,.35);
  color: var(--gold2);
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  backdrop-filter: blur(10px);
}

.grid-2{display:grid; grid-template-columns:1fr 1fr; gap:12px}
.grid-3{display:grid; grid-template-columns:1fr 1fr 1fr; gap:12px}

.story-card{height: 140px; position:relative}
.story-card img{width:100%;height:100%;object-fit:cover}
.story-overlay{
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.74));
}
.story-title{
  position:absolute; right:12px; left:12px; bottom:12px;
  font-weight:900; font-size:14px;
}

.mini-card{height: 110px; position:relative}
.mini-card img{width:100%;height:100%;object-fit:cover}
.mini-title{
  position:absolute; right:10px; left:10px; bottom:10px;
  font-size:12px; font-weight:900;
  text-shadow: 0 10px 26px rgba(0,0,0,.55);
}

.brands .brand-pill{min-width: 160px}
.brand-pill{
  display:flex; align-items:center; gap:10px;
  padding:12px;
  background: var(--card2);
  border:1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.brand-pill img{width:34px;height:34px;border-radius:12px;object-fit:cover}
.brand-pill span{font-weight:800;font-size:13px;color:rgba(245,245,247,.86)}

.footer{
  margin-top: 8px;
  padding: 14px 8px 0;
  color: rgba(245,245,247,.66);
  text-align:center;
}
.footer-links{display:flex; align-items:center; justify-content:center; gap:12px}
.footer-links a{color: rgba(245,245,247,.80)}
.footer-links a:hover{color: var(--gold2)}
.dot{width:5px;height:5px;border-radius:999px;background: rgba(255,255,255,.25)}
.footer-copy{margin-top:10px;font-size:12px;color:rgba(245,245,247,.50)}

.bottom-nav{
  position:fixed;
  left:0; right:0; bottom:0;
  padding: 10px 12px calc(10px + var(--safe-b));
  background: rgba(10,10,14,.78);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,.10);
  z-index:60;
  display:flex; justify-content:space-between; gap:10px;
}
.bn-item{
  flex:1;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:6px;
  padding:8px 6px;
  border-radius: 14px;
  color: rgba(245,245,247,.65);
}
.bn-item .ico{opacity:.9}
.bn-item span{font-size:11px;font-weight:700}
.bn-item.active{
  background: rgba(207,175,95,.12);
  border:1px solid rgba(207,175,95,.25);
  color: var(--gold2);
}

/* page simple */
.page{background: linear-gradient(180deg, var(--bg0), var(--bg1));}
.page-wrap{padding: 18px 14px}
.page-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.page-head h1{margin:0;font-size:18px;font-weight:900}
.back{
  padding:10px 12px;border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(20,20,28,.55);
}
.page-card{
  padding:16px;border-radius: var(--r);
  border:1px solid rgba(255,255,255,.10);
  background: rgba(20,20,28,.55);
  color: rgba(245,245,247,.85);
  line-height:1.9;
}
.faq details{border:1px solid rgba(255,255,255,.10);border-radius:14px;padding:10px 12px;background: rgba(0,0,0,.14);margin:10px 0}
.faq summary{cursor:pointer;font-weight:900}
.faq p{color: rgba(245,245,247,.80);margin:8px 0 0}

/* reveal animation */
.reveal{
  animation: rise .45s ease both;
}
@keyframes rise{
  from{opacity:0; transform: translateY(10px)}
  to{opacity:1; transform: translateY(0)}
}

@media (max-width: 390px){
  .grid-3{grid-template-columns:1fr 1fr}
  .mini-card{height: 118px}
}


/* --- Reels grid (3x2 like Instagram explore) --- */
.reels-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.reel-tile{background:transparent;border:0;padding:0;cursor:pointer}
.reel-9x16{position:relative;width:100%;aspect-ratio:9/16;border-radius:14px;overflow:hidden;background:rgba(0,0,0,.35);border:1px solid rgba(207,175,95,.25)}
.reel-cover{width:100%;height:100%;object-fit:cover;display:block}
.reel-cover.fallback{width:100%;height:100%;background:linear-gradient(180deg,rgba(207,175,95,.15),rgba(0,0,0,.35))}
.reel-play-badge{position:absolute;inset:auto 10px 10px auto;background:rgba(0,0,0,.55);color:#fff;border:1px solid rgba(255,255,255,.18);border-radius:999px;padding:6px 10px;font-size:12px}

/* --- Reels viewer (vertical snap feed) --- */
.reels-viewer{position:fixed;inset:0;z-index:9999;display:none;background:#000}
.reels-viewer.is-open{display:block}
.reels-top{position:absolute;top:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between;padding:14px 14px 10px;color:#fff;z-index:2;background:linear-gradient(180deg,rgba(0,0,0,.65),rgba(0,0,0,0))}
.rv-close{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.18);color:#fff;border-radius:12px;padding:8px 10px}
.rv-title{font-size:14px;opacity:.9}
.reels-feed{position:absolute;inset:0;overflow-y:auto;scroll-snap-type:y mandatory}
.reel-screen{position:relative;height:100vh;scroll-snap-align:start;display:flex;align-items:center;justify-content:center}
.reel-video{width:100%;height:100%;object-fit:cover}
.reels-side{position:absolute;right:12px;bottom:110px;display:flex;flex-direction:column;gap:10px;z-index:2}
.rv-action{width:44px;height:44px;border-radius:999px;background:rgba(0,0,0,.45);border:1px solid rgba(255,255,255,.18);color:#fff;font-size:18px}


/* =========================
   Popular Brands – World Class
========================= */

.brands-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap:16px;
}

.brand-card{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:10px;
  padding:12px 8px;
  border-radius:18px;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.06),
    rgba(255,255,255,0.02)
  );
  backdrop-filter: blur(2px);
  text-decoration:none;
  transition: transform .25s ease, box-shadow .25s ease;
}

.brand-card:active{
  transform: scale(0.97);
}

.brand-logo{
  width:72px;
  height:72px;
  border-radius:50%;
  background:
    radial-gradient(circle at top,
      rgba(212,175,55,.35),
      rgba(212,175,55,.12)
    );
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:
    0 8px 18px rgba(0,0,0,.35),
    inset 0 0 0 1px rgba(212,175,55,.35);
}

.brand-logo img{
  width:64%;
  height:64%;
  object-fit:contain;
}

.brand-name{
  font-size:13px;
  font-weight:600;
  color:#f2f2f2;
  line-height:1.3;
}

/* Reels viewer top actions */
.reels-viewer .rv-top{
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 14px 10px;
}

.reels-viewer .rv-close,
.reels-viewer .rv-share,
.reels-viewer .rv-sound{
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(0,0,0,.45);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}

.reels-viewer .rv-close{
  position: absolute;
  left: 14px;      /* ✅ سمت چپ برای RTL */
  top: 14px;
}

.reels-viewer .rv-sound{
  position: absolute;
  right: 14px;     /* ✅ سمت راست برای صدا */
  top: 14px;
}

.reels-viewer .ico{
  width: 22px;
  height: 22px;
}

/* حالت mute: خط مورب روی آیکون */
.reels-viewer .rv-sound.is-muted::after{
  content:"";
  position:absolute;
  width: 26px;
  height: 2.5px;
  background:#fff;
  transform: rotate(-45deg);
  border-radius: 99px;
}

/* =========================
   Reels Viewer – Controls (RTL-safe, premium)
========================= */
.reels-viewer .rv-top{
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 14px 10px;
  background: linear-gradient(to bottom, rgba(0,0,0,.70), rgba(0,0,0,0));
}

.reels-viewer .rv-close,
.reels-viewer .rv-share,
.reels-viewer .rv-sound{
  position: absolute;
  top: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(0,0,0,.45);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}

.reels-viewer .rv-close{ left: 14px; }
.reels-viewer .rv-sound{ right: 14px; }
.reels-viewer .rv-share{ left: 62px; }

.reels-viewer .rv-sound.is-muted::after{
  content:"";
  position:absolute;
  width: 26px;
  height: 2.5px;
  background:#fff;
  transform: rotate(-45deg);
  border-radius: 99px;
}


/* =========================
   FINAL HERO STABILITY OVERRIDE
   Prevent wobble on touch (iOS/Android)
========================= */
.section.hero.reveal{
  transform: none !important;
  animation: none !important;
}

.section.hero .slides{
  overflow-y: hidden !important;
  touch-action: auto !important; /* allow vertical scroll; JS locks horizontal swipe */
}

.section.hero .slide{
  scroll-snap-stop: always;
}
/* =========================
   TOPBAR – RTL FIX (Logo Right)
========================= */

.topbar{
  display: flex;
  justify-content: flex-start;   /* در RTL یعنی سمت راست */
  align-items: center;
  padding: 12px 14px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  direction: rtl;                /* قفل RTL */
}

/* لوگو */
.brand-mark{
  width: 42px;
  height: 42px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.brand-mark img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* متن برند */
.brand-text{
  display: flex;
  flex-direction: column;
  text-align: right;
}

.brand-title{
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.brand-sub{
  font-size: 11px;
  opacity: .75;
}

/* =========================
   Tower Fresh Slider (تازه‌های برج) – attention grabber
========================= */
.tower-fresh{
  margin-top: 6px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
  border: 1px solid rgba(255,215,120,.18);
}
.tower-fresh .slides{ direction:ltr; }
.tower-fresh .slide{ direction:rtl; }

.tower-fresh .slide-media{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(0,0,0,.22);
}
.tower-fresh .slide-media img{
  width:100%;
  height:100%;
  display:block;
  object-fit: contain; /* طبق قانون پروژه: بدون crop */
  object-position:center;
  filter: saturate(1.08) contrast(1.06);
  transform: scale(1.02);
  transition: transform 1200ms ease, filter 1200ms ease;
}

.tower-fresh .tower-fresh-glow{
  position:absolute; inset:-40% -20%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,215,120,.18), transparent 55%),
    radial-gradient(circle at 70% 60%, rgba(255,170,80,.14), transparent 60%),
    linear-gradient(120deg, transparent 30%, rgba(255,215,120,.14) 50%, transparent 70%);
  opacity:.75;
  pointer-events:none;
  transform: translateX(-10%) translateY(6%);
}
.tower-fresh .slide.is-active .tower-fresh-glow{
  animation: towerGlow 4.2s ease-in-out infinite;
}
@keyframes towerGlow{
  0%{ transform: translateX(-12%) translateY(8%); opacity:.65; }
  50%{ transform: translateX(10%) translateY(-6%); opacity:.9; }
  100%{ transform: translateX(-12%) translateY(8%); opacity:.65; }
}

.tower-fresh .slide.is-active img{
  transform: scale(1.06);
  filter: saturate(1.16) contrast(1.10);
}

.tower-fresh-title{
  position:absolute;
  right: 14px;
  bottom: 14px;
  max-width: 80%;
  padding: 10px 12px;
  border-radius: 16px;
  font-weight: 800;
  font-size: 13px;
  color: rgba(255,255,255,.95);
  background: rgba(0,0,0,.32);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,215,120,.18);
  text-shadow: 0 8px 24px rgba(0,0,0,.45);
}

.tower-fresh-progress{
  position:absolute;
  left: 14px;
  right: 14px;
  bottom: 10px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  overflow:hidden;
}
.tower-fresh-progress::after{
  content:"";
  display:block;
  height:100%;
  width:100%;
  transform: scaleX(0);
  transform-origin: right;
  background: linear-gradient(90deg, rgba(255,215,120,.20), rgba(255,215,120,.95));
}
.tower-fresh .slide.is-active .tower-fresh-progress::after{
  animation: towerProgress 4.2s linear forwards;
}
@keyframes towerProgress{
  from{ transform: scaleX(0); }
  to{ transform: scaleX(1); }
}




/* --- استایل‌های شمارشگر تور سریلانکا --- */
.sri-timer-container {
    margin-bottom: 24px;
      display: none;
}

.sri-timer-card {
    position: relative;
    background: linear-gradient(145deg, rgba(207,175,95,0.1) 0%, rgba(0,0,0,0.6) 100%);
    border: 1px solid rgba(207,175,95,0.3);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    overflow: hidden;
}

/* انیمیشن درخشش چرخشی در پس‌زمینه کارت */
.sri-timer-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(207,175,95,0.15) 0%, transparent 60%);
    animation: rotateGlow 15s linear infinite;
    z-index: 0;
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.sri-timer-header,
.sri-timer-clock {
    position: relative;
    z-index: 1; /* قرارگیری روی انیمیشن پس‌زمینه */
}

.sri-timer-title {
    color: var(--gold);
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 6px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.sri-timer-sub {
    color: #e0e0e0;
    font-size: 13px;
    margin-bottom: 16px;
    opacity: 0.9;
}

.sri-timer-clock {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.timer-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(207,175,95,0.25);
    border-radius: 12px;
    padding: 10px 12px;
    min-width: 65px;
    box-shadow: inset 0 0 10px rgba(255,255,255,0.02);
}

.timer-val {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 12px rgba(207,175,95,0.7);
    font-family: monospace; /* برای یکسان بودن عرض اعداد */
}

.timer-lbl {
    font-size: 11px;
    color: var(--gold);
    margin-top: 6px;
    font-family: inherit;
}

/* انیمیشن چشمک‌زن برای دونقطه‌های بین اعداد */
.timer-sep {
    font-size: 24px;
    color: var(--gold);
    font-weight: bold;
    animation: pulseSep 1s infinite;
    margin-bottom: 15px; /* تنظیم ارتفاع نقطه نسبت به باکس */
}

@keyframes pulseSep {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}


/* =========================
   Phase 2 – Facilities / Listings / Detail Cards
========================= */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 10px;
}

.facility-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 8px;
    border-radius: 16px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(207,175,95,.18);
    text-decoration: none;
    color: inherit;
    /* این دو خط اضافه شدند تا عکس از لبه‌های گرد کارت بیرون نزند */
    position: relative;
    overflow: hidden;
}

.facility-icon {
    /* عکس کل قاب را پر می‌کند و به زیر متن می‌رود */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    border: none;
    background: transparent;
    border-radius: 0;
    display: block;
}

.facility-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5; /* شفافیت برای اینکه متن روی عکس خوانا باشد */
}

/* متن‌ها یک لایه بالاتر می‌آیند تا روی عکس دیده شوند */
.facility-title,
.facility-sub {
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8); /* سایه برای خوانایی بهتر متن */
}

.facility-title {
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.facility-sub {
    font-size: 11px;
    opacity: .8;
    text-align: center;
    line-height: 1.4;
}

.facilities-grid {
    display: grid;
    /* ۲ ستون تا عرض کارت‌ها بزرگ بماند */
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.facility-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end; /* متن‌ها را کمی به سمت پایین مستطیل می‌برد */
    gap: 6px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(207,175,95,.18);
    text-decoration: none;
    color: #fff;
    overflow: hidden;

    /* ایجاد حالت مستطیل (عرض 4، ارتفاع 3) - ارتفاع کمتر شد */
    aspect-ratio: 4 / 3;
}

.facility-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.facility-icon img {
    width: 100%;
    height: 100%;
    /* پر کردن کامل کادر مستطیلی بدون دفرمه شدن عکس */
    object-fit: cover;
    opacity: 0.5;
}

/* یک سایه ملایم پایین کارت میندازیم که متن روی عکس کاملاً خوانا باشه */
.facility-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
    z-index: 1;
}

.facility-title,
.facility-sub {
    position: relative;
    z-index: 2;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}

.facility-title {
    font-size: 14px;
    font-weight: 700;
}

.facility-sub {
    font-size: 11px;
    opacity: .9;
    line-height: 1.4;
}

.detail-card{border-radius:18px;overflow:hidden;background:rgba(255,255,255,.06);border:1px solid rgba(207,175,95,.18);padding:12px;}
.detail-media{border-radius:16px;overflow:hidden;background:rgba(0,0,0,.25);margin-bottom:10px;}
.detail-media img{width:100%;height:auto;display:block;object-fit:contain;}
.detail-sub{font-size:12px;opacity:.85;margin:6px 0 10px;}
.detail-text{font-size:13px;line-height:1.9;opacity:.95}
.badge{display:inline-flex;padding:6px 10px;border-radius:999px;background:rgba(207,175,95,.12);border:1px solid rgba(207,175,95,.22);font-size:11px;margin:6px 6px 0 0;}
.unit-cover-fallback{padding:28px 12px;text-align:center;opacity:.75;}
.cta{display:block;margin-top:12px;text-align:center;padding:12px 12px;border-radius:14px;background:rgba(207,175,95,.16);border:1px solid rgba(207,175,95,.28);text-decoration:none;color:inherit;font-weight:800;}

@media (max-width:420px){.facilities-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.listing-card{min-width:84%;}}


/* ===== Share button (Enterprise) ===== */
.share-btn{
  position:absolute;
  width:36px;
  height:36px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(10,10,10,.45);
  backdrop-filter:blur(8px);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  cursor:pointer;
  transition:transform .12s ease, background .12s ease, border-color .12s ease, opacity .12s ease;
}
.share-btn:active{transform:scale(.96)}
.share-btn:hover{background:rgba(10,10,10,.58);border-color:rgba(255,255,255,.32)}

/* ===== Share / Topbar ordering (Phase2) ===== */
.topbar{direction:rtl;}
.topbar .share-btn{order:1}
.topbar .brand{order:2; flex:1; min-width:0}
.topbar .back-btn{order:3}
.icon-btn .ico{display:block}

/* Toast */
.toast{position:fixed;left:50%;bottom:18px;transform:translateX(-50%) translateY(12px);opacity:0;pointer-events:none;
  background:rgba(20,20,20,.72);border:1px solid rgba(207,175,95,.28);backdrop-filter: blur(10px);
  color:rgba(253,248,240,.95);padding:10px 12px;border-radius:14px;font-size:12px;z-index:9999;
  box-shadow:0 10px 30px rgba(0,0,0,.35);
  transition:opacity .18s ease, transform .18s ease;
}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}

/* ===== Share placements on home components ===== */
.reel-tile-wrap{position:relative;}
.reel-tile-wrap .share-btn--reel{top:10px;left:10px;z-index:6;}

.festival-bubble-wrap{position:relative;display:inline-flex;align-items:flex-start;justify-content:center;}
.festival-bubble-wrap .share-btn--story{bottom:8px;left:8px;right:auto;top:auto;z-index:6;width:32px;height:32px;border-radius:12px;}

/* For anchors/cards where share is inserted inside */
.banner-card, .tower-fresh-slide, .listing-card.slide, .slide, .facility-card{position:relative;}
.share-btn--media{bottom:12px;left:12px;right:auto;top:auto;z-index:6;}
.share-btn--card{bottom:12px;left:12px;right:auto;top:auto;z-index:6;}
