/* ════════════════════════════════════════════════════════════════
   Jinn in Islam — mastories.com
   ATELIER layout (EHS AMA) · Jinn palette (teal + warm gold)
   ════════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@200;300;400;500;600;700&family=Inter:wght@400;500;600&family=Amiri:wght@400;700&display=swap');

:root {
  /* surfaces — charcoal from ATELIER */
  --bg: #0c0c0e;
  --bg2: #0a0a0c;
  --panel: #131315;
  --panel2: #17171a;
  --panel3: #1d1d21;
  --line: rgba(255,255,255,.07);
  --line2: rgba(255,255,255,.14);
  --line3: rgba(255,255,255,.26);
  /* ink */
  --txt: #efede8;
  --mut: #a3a19b;
  --dim: #6e6d68;
  /* Jinn accents — teal primary (replaces EHS gold) */
  --gold: #2dd4bf;
  --gold2: #5eead4;
  --gold-dim: rgba(45,212,191,.14);
  --warm: #d4af37;
  --warm2: #e8c178;
  --purple: #a78bfa;
  --teal: var(--gold);
  --grad: linear-gradient(100deg, #5eead4, #2dd4bf);
  --grad-warm: linear-gradient(100deg, #e8c178, #d4af37);
  /* geometry */
  --r: 2px;
  --r-lg: 4px;
  --shadow: 0 24px 70px rgba(0,0,0,.5);
  --shadow-sm: 0 10px 30px rgba(0,0,0,.35);
  --font: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  --font-ar: 'Amiri', 'Noto Naskh Arabic', serif;
  --track: .18em;
  --head-offset: 118px;
  /* legacy aliases */
  --card: var(--panel);
  --border: var(--line);
  --text: var(--txt);
  --muted: var(--mut);
  --radius: var(--r-lg);
  --gold-light: var(--warm2);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(1100px 600px at 78% -12%, rgba(255,255,255,.035), transparent 60%),
    radial-gradient(900px 700px at -10% 108%, rgba(45,212,191,.045), transparent 55%);
}
body[dir="rtl"] { font-family: var(--font-ar); }
body[dir="rtl"] .nav-links a.top,
body[dir="rtl"] .btn,
body[dir="rtl"] .label,
body[dir="rtl"] .kicker,
body[dir="rtl"] .micro { font-family: var(--font); }

a { color: var(--gold); text-decoration: none; transition: color .25s; }
a:hover { color: var(--gold2); }
::selection { background: var(--gold); color: #121212; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: #222226; }
::-webkit-scrollbar-thumb:hover { background: #3a3a36; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.18;
}

/* layout */
.wrap, .container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.sec, section { padding: 92px 0; position: relative; scroll-margin-top: var(--head-offset); }
.sec + .sec, section + section { border-top: 1px solid var(--line); }
.sec.bg2, section.alt { background: var(--bg2); }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }

/* micro-labels */
.micro, .label, .kicker, .tag {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: var(--track);
  text-transform: uppercase;
}
.label {
  display: inline-block;
  color: var(--gold);
  margin-bottom: 14px;
}
.section-head { margin-bottom: 48px; }
.section-head h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 500;
  color: #fff;
  margin-bottom: 0;
}
.section-head p { color: var(--mut); max-width: 640px; margin-top: 14px; font-size: .95rem; line-height: 1.75; }
.section-head.center, .section-head { text-align: start; }
.section-head.center p { margin-inline: auto; }

/* header */
.site-head, header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(11,11,13,.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap.nav, header .wrap.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 20px;
  height: auto;
  min-height: 72px;
  padding: 12px 0 14px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 78px;
}
.site-head .brand { order: 1; }
.site-head #lang-select { order: 2; margin-inline-start: auto; }
.site-head .burger, .site-head .menu-btn { order: 3; }
.site-head nav { order: 4; flex: 1 1 100%; width: 100%; }
.site-head nav ul {
  margin-inline-start: 0;
  justify-content: flex-start;
  gap: 2px 6px;
}
.brand { display: flex; align-items: center; color: var(--txt); flex-shrink: 0; }
.brand:hover { color: var(--txt); text-decoration: none; }
.brand-lockup {
  display: inline-flex;
  align-items: baseline;
  gap: .45em;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .32em;
  font-size: .92rem;
  text-transform: uppercase;
}
.brand-main { color: var(--txt); }
.brand-accent { color: var(--gold); font-weight: 500; }
.brand-sep { color: var(--dim); font-weight: 400; font-size: .92em; }
.logo { font-family: var(--font-display); font-weight: 600; letter-spacing: .12em; color: var(--txt); font-size: .85rem; text-transform: uppercase; }
.logo:hover { color: var(--gold); }

nav ul, .nav-links {
  display: flex;
  gap: 2px;
  list-style: none;
  margin-inline-start: auto;
  flex-wrap: wrap;
}
[dir=rtl] nav ul, [dir=rtl] .nav-links { margin-inline-start: auto; margin-inline-end: 0; }
nav a, .nav-links a.top {
  display: block;
  padding: 8px 11px;
  color: var(--mut);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  position: relative;
  transition: color .25s;
  border-radius: 0;
  background: none;
}
nav a::after, .nav-links a.top::after {
  content: "";
  position: absolute;
  inset-inline-start: 12px;
  bottom: 4px;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width .3s;
}
nav a:hover, nav a.active, .nav-links a.top:hover {
  color: var(--txt);
  background: none;
}
nav a:hover::after, nav a.active::after, .nav-links a.top:hover::after { width: 22px; }

#lang-select {
  background: var(--panel2);
  color: var(--txt);
  border: 1px solid var(--line2);
  border-radius: var(--r);
  padding: 7px 11px;
  font-size: .72rem;
  font-family: var(--font);
  cursor: pointer;
  flex-shrink: 0;
}
#lang-select option { background: #121214; }

.burger, .menu-btn {
  display: none;
  margin-inline-start: auto;
  background: none;
  border: 1px solid var(--line2);
  color: var(--txt);
  border-radius: var(--r);
  padding: 7px 13px;
  font-size: 1rem;
  cursor: pointer;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: var(--r);
  border: 1px solid var(--gold);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: .3s;
  color: #141414;
  background: var(--gold);
  font-family: var(--font);
  text-decoration: none !important;
  line-height: 1.45;
}
.btn:hover { background: var(--gold2); border-color: var(--gold2); color: #121212; }
.btn:active { transform: translateY(1px); }
.btn.ghost, .btn-ghost {
  background: transparent;
  color: var(--txt);
  border-color: var(--line3);
}
.btn.ghost:hover, .btn-ghost:hover { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn.primary, .btn-gold { background: var(--gold); color: #141414; border-color: var(--gold); }
.btn.primary:hover, .btn-gold:hover { background: var(--gold2); color: #121212; transform: none; box-shadow: none; }
.hero-btns, .hero-cta-primary { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* hero */
.hero {
  position: relative;
  padding: 110px 0 90px;
  overflow: hidden;
  background: var(--bg2);
  min-height: auto;
  text-align: start;
  display: block;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(1000px 540px at 72% 30%, rgba(45,212,191,.06), transparent 62%);
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--line);
}
.hero .wrap { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(150px, 180px) 1fr;
  gap: 48px;
  align-items: start;
}
.hero-copy { max-width: 720px; }
.hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.35rem);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -.02em;
  color: #fff;
  margin: 0;
  background: none;
  -webkit-text-fill-color: unset;
}
.hero h1 .gx {
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .sub {
  font-size: clamp(1.05rem, 1.35vw, 1.18rem);
  color: #b8b6b0;
  max-width: 600px;
  margin-top: 24px;
  line-height: 1.75;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  margin-bottom: 30px;
}
.kicker .dot {
  width: 22px;
  height: 1.5px;
  background: var(--gold);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: none;
  border-radius: 0;
  color: var(--gold);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: var(--track);
  text-transform: uppercase;
  background: none;
}
.hero-cta { margin-top: 36px; }

.hero-index {
  padding-top: 6px;
  border-top: none;
  border-inline-start: 1px solid var(--line2);
  padding-inline-start: 28px;
  position: relative;
  z-index: 3;
}
.hero-index .idx-no {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 1.85rem);
  color: var(--txt);
  font-weight: 500;
  letter-spacing: .1em;
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 8px;
}
.hero-index .idx-no::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--gold);
}
.hero-index ul { list-style: none; margin-top: 0; }
.hero-index li { padding: 8px 0; font-size: .9rem; color: var(--mut); letter-spacing: .03em; transition: color .3s; }
.hero-index li a {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  font-size: inherit;
  transition: color .3s, transform .3s;
  position: relative;
  z-index: 1;
  pointer-events: auto;
  padding: 6px 4px;
  min-height: 44px;
  line-height: 1.4;
}
.hero-index li a:hover { color: var(--gold); transform: translateX(2px); }
[dir=rtl] .hero-index li a:hover { transform: translateX(-2px); }

/* cards */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  position: relative;
  transition: border-color .35s, box-shadow .35s;
}
.card:hover { border-color: var(--line2); transform: none; }
.card .ico {
  width: 44px;
  height: 44px;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: var(--panel3);
  border: 1px solid var(--line);
  margin-bottom: 18px;
}
.card h3 { font-size: 1.02rem; margin-bottom: 8px; font-weight: 500; color: var(--txt); font-family: var(--font); letter-spacing: 0; }
.card p { color: var(--mut); font-size: .86rem; margin-bottom: 0; }

/* quran / hadith */
.verse {
  background: var(--panel);
  border: 1px solid var(--line);
  border-inline-start: 2px solid var(--warm);
  padding: 20px 24px;
  border-radius: var(--r-lg);
  margin-bottom: 16px;
}
.verse .ar, .hadith-full .ar, .dua-box .ar {
  font-family: var(--font-ar);
  font-size: 1.15rem;
  color: var(--warm2);
  direction: rtl;
  text-align: right;
  line-height: 2;
  margin-bottom: .75rem;
}
.hadith {
  background: var(--panel);
  border: 1px solid var(--line);
  border-inline-start: 2px solid var(--gold);
  padding: 20px 24px;
  border-radius: var(--r-lg);
  margin-bottom: 16px;
  font-style: normal;
}
.hadith-full {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  margin-bottom: 20px;
}
.hadith-full h3 { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 16px; font-weight: 600; }
.hadith-full .src { font-size: .78rem; color: var(--dim); border-top: 1px solid var(--line); padding-top: 14px; margin: 0; }

.surah-block {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  margin-bottom: 32px;
}
.surah-verses { display: grid; gap: 0; }
.ayah-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.ayah-row:last-child { border-bottom: none; }
.ayah-num {
  min-width: 28px;
  height: 28px;
  border-radius: var(--r);
  flex-shrink: 0;
  background: var(--panel3);
  border: 1px solid var(--line2);
  color: var(--gold);
  font-size: .68rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
}
.ref-tag { font-size: .66rem; color: var(--gold); margin-bottom: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }

/* lists */
.row-list { list-style: none; display: grid; gap: 10px; }
.row-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 16px 20px;
  border-radius: var(--r-lg);
}
.num, .story-num {
  width: 32px;
  height: 32px;
  border-radius: var(--r);
  flex-shrink: 0;
  background: var(--panel3);
  border: 1px solid var(--line2);
  color: var(--gold);
  font-weight: 600;
  font-size: .72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
}

.like-box, .dislike-box { padding: 26px; border-radius: var(--r-lg); border: 1px solid var(--line); }
.like-box { background: rgba(45,212,191,.04); border-color: rgba(45,212,191,.2); }
.dislike-box { background: rgba(196,89,79,.04); border-color: rgba(196,89,79,.2); }
.like-box h3, .dislike-box h3 { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.like-box ul, .dislike-box ul { list-style: none; }
.like-box li, .dislike-box li { padding: 6px 0; color: var(--mut); padding-inline-start: 1.4rem; position: relative; font-size: .88rem; }
.like-box li::before { content: '✓'; position: absolute; inset-inline-start: 0; color: var(--gold); }
.dislike-box li::before { content: '✗'; position: absolute; inset-inline-start: 0; color: #c4594f; }

/* stories */
.story, .story-full {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  margin-bottom: 20px;
  transition: border-color .35s;
}
.story:hover, .story-full:hover { border-color: rgba(167,139,250,.35); }
.story .tag, .story-full .tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: var(--r);
  background: transparent;
  color: var(--purple);
  border: 1px solid rgba(167,139,250,.35);
  font-size: .62rem;
  margin-bottom: 0;
}
.story .src, .story-full .src {
  font-size: .78rem;
  color: var(--dim);
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.story-full h3 { font-size: 1.05rem; color: var(--txt); margin: 12px 0; font-weight: 500; }
.story-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.story-body { color: var(--mut); line-height: 1.85; font-size: .92rem; }
.story-body p { margin-bottom: .85rem; }
.story-body strong { color: var(--txt); }
.story-body em { color: var(--gold); font-style: normal; }
.stories-count-badge {
  display: inline-block;
  margin-top: 18px;
  padding: 8px 16px;
  background: var(--gold-dim);
  border: 1px solid rgba(45,212,191,.3);
  border-radius: var(--r);
  color: var(--gold);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.stories-count-badge #stories-count { font-weight: 600; font-size: .85rem; }

/* protection */
.protect-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-top: 32px; }
.protect-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  text-align: center;
}
.protect-item .ico { font-size: 1.4rem; margin-bottom: 10px; opacity: .85; }
.protect-item p { font-size: .84rem; color: var(--mut); margin: 0; }
.dua-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: 16px 0 32px; }
.dua-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
}
.dua-box .dua-note { font-size: .62rem; color: var(--gold); margin-bottom: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }

/* detail blocks */
.detail-block { margin: 24px 0; color: var(--mut); font-size: .92rem; }
.detail-block p { margin-bottom: .85rem; }
.detail-list { list-style: none; margin: .75rem 0; }
.detail-list li { padding: 6px 0; padding-inline-start: 1.2rem; position: relative; color: var(--mut); font-size: .88rem; }
.detail-list li::before { content: '•'; position: absolute; inset-inline-start: 0; color: var(--gold); }
.intro-note, .note {
  color: var(--mut);
  font-size: .88rem;
  margin: 16px 0;
  padding: 16px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.sub-head {
  color: var(--txt);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}
.steps { margin: 12px 0 20px; padding-inline-start: 1.5rem; color: var(--mut); font-size: .88rem; }
.steps li { margin-bottom: 6px; }
.myth-grid, .curiosity-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.myth-item { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.myth-x { display: block; font-size: .62rem; color: #c4594f; margin-bottom: 6px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.myth-v { display: block; font-size: .62rem; color: var(--gold); margin: 14px 0 6px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.myth-item p { font-size: .86rem; margin-bottom: .5rem; color: var(--mut); }
.curiosity-grid .card h4 { font-size: .92rem; margin-bottom: 8px; color: var(--txt); font-weight: 500; }

/* FAQ */
.faq {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  margin-bottom: 8px;
  overflow: hidden;
  background: var(--panel);
}
.faq-q {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--txt);
  padding: 18px 22px;
  text-align: start;
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  letter-spacing: -.01em;
}
.faq-a { display: none; padding: 0 22px 18px; color: var(--mut); font-size: .88rem; }
.faq.open .faq-a { display: block; }
.faq.open .chev { transform: rotate(180deg); }
.chev { transition: .2s; color: var(--gold); font-size: .75rem; }

/* footer */
.site-foot, footer {
  border-top: 1px solid var(--line);
  margin-top: 0;
  padding: 70px 0 36px;
  background: var(--bg2);
  position: relative;
}
.site-foot::before, footer::before {
  content: "";
  position: absolute;
  top: -1px;
  inset-inline-start: 32px;
  width: 44px;
  height: 2px;
  background: var(--gold);
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-grid h4 {
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--dim);
  margin-bottom: 18px;
  font-weight: 600;
  font-family: var(--font);
}
.footer-grid p { font-size: .84rem; color: var(--mut); margin: 0; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0; }
.footer-links a {
  display: block;
  color: var(--mut);
  font-size: .84rem;
  padding: 4px 0;
  transition: color .25s;
}
.footer-links a:hover { color: var(--gold); }
.partners { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.partner {
  flex: 1;
  min-width: 240px;
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 22px;
  color: var(--txt);
  transition: border-color .3s;
}
.partner:hover { border-color: var(--line2); color: var(--txt); }
.partner strong { display: block; font-size: .88rem; font-weight: 500; }
.partner small { display: block; color: var(--dim); font-size: .76rem; margin-top: 2px; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .78rem;
  color: var(--dim);
}

p { color: var(--mut); margin-bottom: 1rem; }
h2 { margin-bottom: 0; }
h3 { color: var(--txt); }

.ability-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 20px; }
.ability-card { border-color: rgba(45,212,191,.15); }
.ability-card h4 { font-size: .95rem; margin-bottom: 8px; color: var(--txt); font-weight: 500; }
.ability-tag {
  display: inline-block; padding: 4px 10px; margin-bottom: 12px;
  font-size: .62rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(45,212,191,.35); border-radius: var(--r);
}
.ability-card p { font-size: .86rem; color: var(--mut); margin: 0; line-height: 1.75; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.danger-box, .shams-banner {
  background: rgba(196,89,79,.08);
  border: 1px solid rgba(196,89,79,.35);
  border-inline-start: 2px solid #c4594f;
  padding: 22px 26px;
  border-radius: var(--r-lg);
  margin-bottom: 32px;
}
.danger-box h3, .shams-banner h3 { color: #dba49c; font-size: 1rem; margin-bottom: 14px; font-weight: 600; }
.shams-card { margin-bottom: 16px; }
.example-card { border-color: rgba(45,212,191,.2); }
.shams-story { border-color: rgba(196,89,79,.2); }
.shams-story:hover { border-color: rgba(196,89,79,.4); }
.verse-tr, .hadith-en, .dua-tr {
  color: var(--mut);
  font-size: .9rem;
  line-height: 1.75;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.hadith-ar-label { font-size: .95rem; opacity: .85; margin-top: 10px; }

.ability-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 20px; }
.ability-card { border-color: rgba(45,212,191,.15); }
.ability-card h4 { font-size: .95rem; margin-bottom: 8px; color: var(--txt); font-weight: 500; }
.ability-tag {
  display: inline-block; padding: 4px 10px; margin-bottom: 12px;
  font-size: .62rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(45,212,191,.35); border-radius: var(--r);
}
.ability-card p { font-size: .86rem; color: var(--mut); margin: 0; line-height: 1.75; }

.ability-card p { font-size: .86rem; color: var(--mut); margin: 0; line-height: 1.75; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-index {
    order: 2;
    padding-top: 22px;
    padding-inline-start: 0;
    border-inline-start: none;
    border-top: 1px solid var(--line2);
  }
  .hero-index ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
  }
  .hero-index li { padding: 4px 0; }
  .hero-index li a { min-height: 44px; padding: 8px 10px; }
}

@media (max-width: 1180px) {
  :root { --head-offset: 78px; }
  .site-head .wrap.nav { flex-wrap: nowrap; padding: 0; min-height: 78px; height: 78px; }
  .site-head nav { order: unset; flex: unset; width: auto; }
  .site-head nav ul { margin-inline-start: auto; justify-content: flex-end; flex-wrap: nowrap; gap: 0; }
  .burger, .menu-btn { display: block; }
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    background: rgba(11,11,13,.97);
    flex-direction: column;
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--line);
    gap: 0;
    z-index: 89;
    margin-inline-start: 0 !important;
    flex-wrap: nowrap;
  }
  nav ul.open { display: flex; }
  nav a { padding: 12px 0; font-size: .82rem; letter-spacing: .08em; }
  nav a::after { display: none; }
  .site-head .wrap.nav, header .wrap.nav { position: relative; }
  #lang-select { order: unset; margin-inline-start: 0; }
}

@media (max-width: 768px) {
  .wrap, .container { padding: 0 20px; }
  .sec, section { padding: 64px 0; scroll-margin-top: 78px; }
}

/* ═══ SURPRISE UPGRADE — cinematic layer ═══ */
.scroll-progress {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  height: 2px;
  width: 0;
  background: var(--grad);
  z-index: 200;
  box-shadow: 0 0 12px rgba(45,212,191,.45);
  transition: width .08s linear;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.site-head.is-scrolled {
  background: rgba(8,8,10,.94);
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
}
.site-head.is-scrolled .wrap.nav {
  min-height: 64px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.hero-orbs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.hero-orbs .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
  animation: orb-float 14s ease-in-out infinite;
}
.hero-orbs .o1 {
  width: 420px; height: 420px;
  background: rgba(45,212,191,.12);
  top: -8%; inset-inline-end: 5%;
}
.hero-orbs .o2 {
  width: 280px; height: 280px;
  background: rgba(212,175,55,.08);
  bottom: 10%; inset-inline-start: -5%;
  animation-delay: -4s;
  animation-duration: 18s;
}
.hero-orbs .o3 {
  width: 160px; height: 160px;
  background: rgba(167,139,250,.1);
  top: 40%; inset-inline-start: 42%;
  animation-delay: -7s;
  animation-duration: 11s;
}
@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(12px, -18px) scale(1.04); }
  66% { transform: translate(-8px, 10px) scale(.96); }
}

.hero h1,
.hero h1 span {
  background: linear-gradient(135deg, #fff 0%, #fff 45%, var(--gold2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-verse {
  font-family: var(--font-ar);
  font-size: clamp(.95rem, 1.2vw, 1.08rem);
  color: var(--warm2);
  line-height: 2;
  margin-top: 28px;
  padding: 16px 20px;
  border-inline-start: 2px solid var(--warm);
  background: rgba(212,175,55,.04);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  max-width: 620px;
}
[dir=ltr] .hero-verse { border-radius: var(--r-lg) 0 0 var(--r-lg); border-inline-start: none; border-inline-end: 2px solid var(--warm); }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.stat-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 16px;
  background: var(--panel);
  border: 1px solid var(--line2);
  border-radius: var(--r-lg);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
  transition: border-color .3s, transform .3s;
}
.stat-pill strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: .02em;
}
.stat-pill.accent strong { color: var(--warm2); }
.stat-pill:hover { border-color: rgba(45,212,191,.4); transform: translateY(-2px); }

.kicker .dot.pulse {
  animation: dot-pulse 2.4s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(45,212,191,.5);
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(45,212,191,.35); }
  50% { opacity: .7; box-shadow: 0 0 0 6px rgba(45,212,191,0); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.card {
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(45,212,191,.06), transparent 55%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }

.story-full, .story {
  position: relative;
  overflow: hidden;
}
.story-full::after, .story::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--grad);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.story-full:hover::after, .story:hover::after { transform: scaleY(1); }

.shams-banner {
  position: relative;
  overflow: hidden;
}
.shams-banner::before {
  content: "⛔";
  position: absolute;
  inset-inline-end: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  opacity: .06;
  pointer-events: none;
}

.back-top {
  position: fixed;
  inset-inline-end: 24px;
  bottom: 24px;
  z-index: 80;
  width: 44px;
  height: 44px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line2);
  background: rgba(19,19,21,.92);
  backdrop-filter: blur(8px);
  color: var(--gold);
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s, transform .3s, border-color .3s, background .3s;
}
.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-top:hover {
  border-color: var(--gold);
  background: var(--gold-dim);
}

nav a.active {
  color: var(--gold) !important;
}
nav a.active::after { width: 22px !important; }

@media (prefers-reduced-motion: reduce) {
  .hero-orbs .orb, .kicker .dot.pulse { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-progress { transition: none; }
}

@media (max-width: 768px) {
  .hero-stats { gap: 8px; }
  .stat-pill { padding: 8px 12px; }
  .hero-verse { font-size: .88rem; padding: 12px 14px; }
  .back-top { inset-inline-end: 16px; bottom: 16px; }
}

/* ═══ Jinn cursor — small pointer + dark glow ═══ */
body.jinn-cursor-on,
body.jinn-cursor-on a,
body.jinn-cursor-on button,
body.jinn-cursor-on .btn,
body.jinn-cursor-on .faq-q,
body.jinn-cursor-on #lang-select,
body.jinn-cursor-on select,
body.jinn-cursor-on label {
  cursor: none !important;
}

.jinn-cursor,
.cursor-smear {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99999;
  will-change: transform;
}

.jinn-cursor {
  opacity: 0;
  transition: opacity .25s;
}
.jinn-cursor.is-visible { opacity: 1; }

.cursor-smear {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,0,0,.9) 0%, rgba(25,0,40,.45) 50%, transparent 72%);
  filter: blur(4px);
  opacity: 0;
  mix-blend-mode: multiply;
  transition: opacity .25s;
}
.cursor-smear.is-visible { opacity: .6; }

.cursor-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(0,0,0,.92) 0%,
    rgba(18,0,32,.65) 42%,
    rgba(45,212,191,.03) 58%,
    transparent 72%);
  filter: blur(6px);
  animation: cursor-breathe 3.2s ease-in-out infinite;
}

.cursor-pointer {
  position: absolute;
  top: 0;
  left: 0;
  width: 11px;
  height: 14px;
  background: linear-gradient(145deg, #222226 0%, #050505 55%, #0c0814 100%);
  clip-path: polygon(0 0, 0 12.5, 2.8 9.2, 5.2 13.5, 6.6 12.6, 4.2 8.2, 10.5 0);
  transform-origin: 1px 1px;
  filter:
    drop-shadow(0 0 3px rgba(0,0,0,1))
    drop-shadow(0 0 8px rgba(20,0,40,.85))
    drop-shadow(0 0 14px rgba(0,0,0,.7));
  box-shadow: inset 0 0 0 1px rgba(45,212,191,.08);
  transition: transform .15s ease, filter .15s ease;
}

[dir=rtl] .cursor-pointer {
  transform: scaleX(-1);
}

.jinn-cursor.is-hover .cursor-glow {
  width: 44px;
  height: 44px;
  margin: -8px 0 0 -8px;
  background: radial-gradient(circle,
    rgba(0,0,0,.98) 0%,
    rgba(35,0,22,.75) 45%,
    rgba(45,212,191,.06) 62%,
    transparent 78%);
}

.jinn-cursor.is-hover .cursor-pointer {
  transform: scale(1.06);
  filter:
    drop-shadow(0 0 4px rgba(0,0,0,1))
    drop-shadow(0 0 12px rgba(30,0,50,.95))
    drop-shadow(0 0 20px rgba(0,0,0,.85));
}

[dir=rtl] .jinn-cursor.is-hover .cursor-pointer {
  transform: scaleX(-1) scale(1.06);
}

@keyframes cursor-breathe {
  0%, 100% { opacity: .75; transform: scale(1); }
  50% { opacity: .95; transform: scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  body.jinn-cursor-on { cursor: auto !important; }
  body.jinn-cursor-on a,
  body.jinn-cursor-on button { cursor: pointer !important; }
  .jinn-cursor, .cursor-smear { display: none !important; }
  .unease-layer, .unease-vignette { display: none !important; }
  body.unease-on * { animation: none !important; }
}

/* ═══ Unease layer — random dark discomfort ═══ */
.unease-layer {
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none !important;
  overflow: hidden;
}
.unease-layer * {
  pointer-events: none !important;
}

.unease-vignette {
  position: fixed;
  inset: 0;
  z-index: 9989;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse at center,
    transparent 40%,
    rgba(0,0,0,.55) 75%,
    rgba(0,0,0,.92) 100%);
  transition: opacity .35s ease;
}
.unease-vignette.pulse { opacity: 1; }

.unease-orb {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  background: radial-gradient(circle,
    rgba(0,0,0,.98) 0%,
    rgba(25,0,45,.85) 30%,
    rgba(45,212,191,.03) 50%,
    transparent 68%);
  box-shadow:
    0 0 60px 25px rgba(0,0,0,.95),
    0 0 120px 50px rgba(15,0,30,.7),
    inset 0 0 40px rgba(0,0,0,1);
  filter: blur(6px);
  transition: opacity 1s ease, transform 1.2s ease;
}
.unease-orb.show {
  opacity: .75;
  transform: translate(-50%, -50%) scale(1);
}

.unease-whisper {
  position: absolute;
  margin: 0;
  font-size: clamp(.65rem, 1.1vw, .82rem);
  font-family: var(--font-ar);
  color: rgba(0,0,0,.92);
  text-shadow:
    0 0 8px rgba(0,0,0,1),
    0 0 20px rgba(30,0,50,.9),
    0 0 40px rgba(0,0,0,.85),
    0 0 2px rgba(110,109,104,.4);
  letter-spacing: .08em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .5s, transform .5s;
  user-select: none;
  max-width: 40vw;
}
.unease-whisper.rtl { direction: rtl; }
.unease-whisper.show {
  opacity: .55;
  transform: translateY(0);
}
.unease-whisper.fade {
  opacity: 0;
  transform: translateY(-4px);
}

.unease-shadow {
  position: fixed;
  background: linear-gradient(135deg, rgba(0,0,0,.92), rgba(20,0,35,.75));
  box-shadow:
    0 0 80px 40px rgba(0,0,0,.9),
    inset 0 0 60px rgba(0,0,0,.95);
  filter: blur(12px);
  opacity: 0;
  transition: opacity .25s;
}
.unease-shadow.show { opacity: .65; }

.unease-pixel {
  position: fixed;
  width: 3px;
  height: 3px;
  background: #000;
  box-shadow: 0 0 6px 2px rgba(0,0,0,1), 0 0 14px 4px rgba(40,0,60,.6);
  opacity: 0;
  transition: opacity .2s;
}
.unease-pixel.show { opacity: .85; }

.unease-blink {
  position: fixed;
  inset: 0;
  z-index: 99950;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .06s;
}
.unease-blink.show { opacity: .12; }

.unease-glitch {
  animation: unease-text-glitch .15s steps(2, end) 2;
  text-shadow:
    0 0 12px rgba(0,0,0,.9),
    2px 0 rgba(30,0,50,.8),
    -2px 0 rgba(0,0,0,.9);
}
@keyframes unease-text-glitch {
  0% { transform: translate(0); filter: blur(0); }
  25% { transform: translate(-2px, 1px) skewX(-2deg); filter: blur(.4px); }
  50% { transform: translate(2px, -1px); opacity: .7; }
  75% { transform: translate(-1px, 2px) skewX(1deg); }
  100% { transform: translate(0); filter: blur(0); }
}

nav a.unease-haunt {
  color: rgba(0,0,0,.85) !important;
  text-shadow:
    0 0 10px rgba(0,0,0,1),
    0 0 24px rgba(30,0,50,.9),
    0 0 40px rgba(0,0,0,.8);
  animation: unease-nav-shiver .12s steps(3, end) infinite;
}
@keyframes unease-nav-shiver {
  0%, 100% { transform: translateX(0); }
  33% { transform: translateX(-1px); }
  66% { transform: translateX(1px); }
}

.sec.unease-sec-flicker {
  box-shadow: inset 0 0 80px rgba(0,0,0,.45);
  outline: 1px solid rgba(0,0,0,.35);
  animation: unease-sec-pulse .2s ease 2;
}
@keyframes unease-sec-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(.82); }
}

.hero h1.unease-distort {
  animation: unease-h1-warp .2s ease;
  filter: blur(.5px);
  text-shadow: 0 0 30px rgba(0,0,0,.95);
}
@keyframes unease-h1-warp {
  0% { transform: skewX(0); letter-spacing: -.02em; }
  40% { transform: skewX(-3deg) scaleX(1.02); letter-spacing: .04em; }
  100% { transform: skewX(0); letter-spacing: -.02em; }
}

.card.unease-dark-glow,
.story-full.unease-dark-glow,
.faq.unease-dark-glow {
  box-shadow:
    0 0 40px 12px rgba(0,0,0,.85),
    0 0 80px 30px rgba(20,0,40,.55),
    inset 0 0 50px rgba(0,0,0,.35);
  border-color: rgba(0,0,0,.5) !important;
}

.stat-pill.unease-stat-wrong {
  border-color: rgba(0,0,0,.6) !important;
  box-shadow: 0 0 24px 8px rgba(0,0,0,.9);
  filter: contrast(1.3) brightness(.75);
}
.stat-pill.unease-stat-wrong strong {
  color: #000 !important;
  text-shadow: 0 0 12px rgba(0,0,0,1);
}

body.unease-on .grain {
  animation: unease-grain-shift 8s steps(4, end) infinite;
}
@keyframes unease-grain-shift {
  0%, 100% { opacity: .035; }
  25% { opacity: .055; }
  50% { opacity: .028; }
  75% { opacity: .06; }
}

#shams.unease-sec-flicker .shams-banner,
#shams .story-full.unease-dark-glow {
  box-shadow:
    0 0 50px 16px rgba(0,0,0,.95),
    0 0 100px 40px rgba(80,20,20,.25),
    inset 0 0 40px rgba(0,0,0,.5);
}

/* Bendir sound toggle */
.bendir-mute {
  position: fixed;
  inset-inline-start: 24px;
  bottom: 24px;
  z-index: 100001;
  width: 44px;
  height: 44px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(0,0,0,.5);
  background: rgba(8,8,10,.92);
  backdrop-filter: blur(8px);
  color: var(--mut);
  font-size: 1rem;
  cursor: pointer;
  box-shadow:
    0 0 20px 6px rgba(0,0,0,.85),
    0 0 40px 12px rgba(20,0,35,.45);
  transition: border-color .3s, box-shadow .3s, transform .2s;
}
.bendir-mute:hover {
  border-color: rgba(0,0,0,.8);
  box-shadow:
    0 0 28px 10px rgba(0,0,0,.95),
    0 0 56px 20px rgba(30,0,50,.55);
}
.bendir-mute.is-live {
  border-color: rgba(45,212,191,.25);
  animation: bendir-btn-pulse 3s ease-in-out infinite;
}
.bendir-mute.is-live {
  box-shadow:
    0 0 24px 8px rgba(0,0,0,.9),
    0 0 48px 16px rgba(0,0,0,.7),
    inset 0 0 12px rgba(0,0,0,.6);
}
.bendir-mute.is-muted { opacity: .65; }
.bendir-mute.is-activating {
  border-color: rgba(45,212,191,.55);
  transform: scale(1.08);
  box-shadow:
    0 0 32px 12px rgba(45,212,191,.25),
    0 0 48px 16px rgba(0,0,0,.85);
}
@keyframes bendir-btn-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@media (max-width: 768px) {
  .bendir-mute { inset-inline-start: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .bendir-mute { animation: none !important; }
}

/* ═══ Premium video windows — jinn cases worldwide ═══ */
.video-topic-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.video-legend-pill {
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line2);
  background: rgba(12,12,14,.6);
  color: var(--mut);
}
.video-legend-pill strong { color: var(--gold); font-weight: 500; margin-inline-end: 6px; }

.video-premium-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.premium-window {
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(165deg, rgba(22,22,26,.98) 0%, rgba(10,10,12,.98) 100%);
  box-shadow:
    0 24px 48px rgba(0,0,0,.55),
    0 0 0 1px rgba(45,212,191,.04),
    inset 0 1px 0 rgba(255,255,255,.06);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.premium-window:hover {
  transform: translateY(-4px);
  border-color: rgba(45,212,191,.18);
  box-shadow:
    0 32px 64px rgba(0,0,0,.65),
    0 0 40px rgba(45,212,191,.06);
}

.pw-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(180deg, rgba(32,32,38,.95) 0%, rgba(18,18,22,.95) 100%);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.pw-title {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex: 1;
}
.pw-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pw-dot.red { background: #ff5f57; box-shadow: 0 0 6px rgba(255,95,87,.4); }
.pw-dot.yellow { background: #febc2e; box-shadow: 0 0 6px rgba(254,188,46,.35); }
.pw-dot.green { background: #28c840; box-shadow: 0 0 6px rgba(40,200,64,.35); }
.pw-flag { font-size: 1rem; flex-shrink: 0; }
.pw-label {
  font-size: .78rem;
  color: var(--mut);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}
.pw-close {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: rgba(255,255,255,.06);
  color: var(--mut);
  cursor: pointer;
  font-size: .85rem;
  line-height: 1;
  transition: background .2s, color .2s;
}
.pw-close:hover { background: rgba(255,95,87,.2); color: #ff8a84; }

.pw-body { padding: 0; }

.video-card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0a0a0c;
  overflow: hidden;
  cursor: pointer;
  border: none;
  width: 100%;
  display: block;
  padding: 0;
}
.video-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease, filter .3s;
  filter: saturate(.85) brightness(.88);
}
.video-card-thumb:hover img {
  transform: scale(1.04);
  filter: saturate(1) brightness(.95);
}
.video-card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.35);
  transition: background .25s;
}
.video-card-thumb:hover .video-card-play { background: rgba(0,0,0,.2); }
.video-card-play span {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(45,212,191,.92);
  color: #041210;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
  transition: transform .2s;
}
.video-card-thumb:hover .video-card-play span { transform: scale(1.08); }

.video-card-content { padding: 16px 16px 18px; }
.video-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.video-badge {
  font-size: .68rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 500;
}
.video-badge.country {
  background: rgba(45,212,191,.1);
  color: var(--gold);
  border: 1px solid rgba(45,212,191,.2);
}
.video-badge.topic {
  background: rgba(120,80,180,.12);
  color: #c4a8e8;
  border: 1px solid rgba(120,80,180,.25);
}
.video-card-content h3 {
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 8px;
  color: var(--txt);
}
.video-card-excerpt {
  font-size: .82rem;
  color: var(--mut);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}
.video-card-open {
  width: 100%;
  font-size: .78rem;
  padding: 10px 14px;
}

/* Modal */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 100010;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.video-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(8px);
}
.video-modal-shell {
  position: relative;
  width: min(920px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  transform: scale(.96) translateY(12px);
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.video-modal.is-open .video-modal-shell {
  transform: scale(1) translateY(0);
}
.video-modal-window .pw-body { padding: 0 0 20px; }
.video-modal-player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-modal-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.video-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 18px 0;
}
.video-modal-desc {
  padding: 14px 18px;
  font-size: .92rem;
  line-height: 1.75;
  color: var(--mut);
}
.video-yt-link { margin: 0 18px; display: inline-flex; }

@media (max-width: 640px) {
  .video-premium-grid { grid-template-columns: 1fr; }
  .video-modal { padding: 12px; }
}

