/* ============================================================
   upera-style VOD template — shared stylesheet
   Wired to site-builder modules via [data-module] markers.
   ============================================================ */

@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

:root {
  --bg:           #0a0a0a;
  --bg-2:         #121214;
  --surface:      #17171a;
  --surface-2:    #1f1f24;
  --card:         #1a1a1a;
  --card-hover:   #222;
  --border:       rgba(255,255,255,0.08);
  --text:         #f4f4f5;
  --text-muted:   #9a9aa3;
  --text-dim:     #6b6b73;
  --brand:        #E50914;
  --brand-2:      #ff2b36;
  --gold:         #f5c518;
  --success:      #1db954;
  --danger:       #e24b4a;
  --info:         #2563eb;
  --overlay:      rgba(10,10,10,0.85);

  --radius:    12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --gutter:    24px;
  --header-h:  68px;
  --shadow:    0 20px 50px -20px rgba(0,0,0,.8);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Vazirmatn', system-ui, Tahoma, sans-serif;
  direction: rtl;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--brand); color: #fff; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #2a2a2f; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a40; }

.container { max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }

/* ========================= BUTTONS ========================= */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 11px;
  font-size: 15px; font-weight: 700;
  transition: transform .15s, background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 22px -8px var(--brand); }
.btn-primary:hover { background: var(--brand-2); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 1.5px solid rgba(255,255,255,.3); color: #fff; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-light { background: #fff; color: #0b0b0c; }
.btn-light:hover { background: #e9e9ea; }
.btn-ghost { background: rgba(255,255,255,.08); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; padding: 14px; }

/* ========================= HEADER ========================= */
header.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .35s, backdrop-filter .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
header.site-header.scrolled {
  background: rgba(10,10,10,.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 24px; width: 100%; }
.logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 900; font-size: 22px; letter-spacing: -0.5px;
}
.logo .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 14px var(--brand);
}
nav.menu { display: flex; gap: 4px; margin-inline-start: 8px; }
nav.menu a {
  padding: 8px 14px; border-radius: 10px;
  color: var(--text-muted); font-size: 14.5px; font-weight: 500;
  transition: .2s;
}
nav.menu a:hover, nav.menu a.active { color: #fff; background: rgba(255,255,255,.06); }
.nav-right { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 11px; background: rgba(255,255,255,.06);
  border: 1px solid var(--border); color: #fff; transition: .2s;
}
.icon-btn:hover { background: rgba(255,255,255,.12); }
.icon-btn svg { width: 18px; height: 18px; }

/* user menu when logged in */
.user-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 6px; border-radius: 100px;
  background: rgba(255,255,255,.06); border: 1px solid var(--border);
  cursor: pointer; transition: .2s;
}
.user-chip:hover { background: rgba(255,255,255,.12); }
.user-chip .avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand); display: grid; place-items: center;
  font-weight: 700; font-size: 13px;
}
.user-chip .coins {
  display: flex; align-items: center; gap: 4px;
  font-size: 13px; color: var(--gold); font-weight: 700;
}
.user-chip .coins::before {
  content: ''; width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f7d147, #c9941b);
  box-shadow: inset 0 -2px 3px rgba(0,0,0,.3);
}

/* search bar */
.searchbar {
  position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 99;
  background: rgba(10,10,10,.96); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border); padding: 16px 0;
  transform: translateY(-130%); opacity: 0;
  transition: .3s; pointer-events: none;
}
.searchbar.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.searchbar .container { display: flex; gap: 12px; align-items: center; }
.searchbar input {
  flex: 1; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 18px;
  color: #fff; font-family: inherit; font-size: 15px; outline: none;
}
.searchbar input:focus { border-color: var(--brand); }

/* ========================= HERO ========================= */
.hero {
  position: relative; height: 78vh; min-height: 560px;
  overflow: hidden; margin-top: 0;
}
.slides { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 1s ease;
  display: flex; align-items: flex-end;
  background-size: cover; background-position: center;
}
.slide.active { opacity: 1; }
.slide::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--bg) 2%, rgba(10,10,10,.4) 55%, transparent),
    linear-gradient(to left, var(--bg) 0%, transparent 60%);
}
.slide-content {
  position: relative; z-index: 2;
  padding: 0 var(--gutter) 80px;
  max-width: 620px;
}
.badges { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.pill {
  font-size: 12px; font-weight: 700;
  padding: 5px 12px; border-radius: 100px;
  background: rgba(0,0,0,.5); border: 1px solid var(--border);
  backdrop-filter: blur(6px);
}
.pill.brand { background: var(--brand); border-color: var(--brand); }
.pill.gold { background: var(--gold); color: #000; border-color: var(--gold); }
.slide-content h1 {
  font-size: clamp(34px, 5vw, 56px); font-weight: 900;
  line-height: 1.15; letter-spacing: -1px;
  text-shadow: 0 4px 30px rgba(0,0,0,.6);
}
.slide-meta {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  color: var(--text-muted); margin: 12px 0 10px;
  font-weight: 600; font-size: 14px;
}
.slide-meta .imdb { color: var(--gold); }
.slide-content p {
  color: #d4d4d8; font-size: 16px; margin-bottom: 22px;
  max-width: 540px;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 5; width: 50px; height: 50px; border-radius: 50%;
  background: rgba(0,0,0,.4); border: 1px solid var(--border);
  color: #fff; display: grid; place-items: center;
  backdrop-filter: blur(6px); transition: .2s;
}
.hero-arrow:hover { background: var(--brand); }
.hero-arrow.next { right: 20px; }
.hero-arrow.prev { left: 20px; }
.dots {
  position: absolute; bottom: 24px; left: 0; right: 0; z-index: 5;
  display: flex; gap: 8px; justify-content: center;
}
.dots span {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,.3); cursor: pointer; transition: .25s;
}
.dots span.active {
  width: 26px; border-radius: 100px; background: var(--brand);
}

/* ========================= ROWS & CARDS ========================= */
.rows-wrap { padding: 14px 0 10px; }
.row { margin: 38px 0; position: relative; }
.row-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; padding: 0 4px;
}
.row-head h2 {
  font-size: 22px; font-weight: 800;
  display: flex; align-items: center; gap: 10px;
}
.row-head h2::before {
  content: ''; width: 5px; height: 22px;
  border-radius: 4px; background: var(--brand);
}
.more {
  color: var(--text-muted); font-size: 13.5px; font-weight: 600;
  display: flex; align-items: center; gap: 4px; transition: .2s;
}
.more:hover { color: var(--brand); }

.track-wrap { position: relative; }
.track {
  display: flex; gap: 14px; overflow-x: auto;
  scroll-behavior: smooth; padding: 6px 4px 14px;
  scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none; }
.scroll-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 6; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(10,10,10,.85); border: 1px solid var(--border);
  color: #fff; display: grid; place-items: center;
  cursor: pointer; opacity: 0; transition: .25s;
  backdrop-filter: blur(6px);
}
.track-wrap:hover .scroll-btn { opacity: 1; }
.scroll-btn.r { right: -10px; }
.scroll-btn.l { left: -10px; }
.scroll-btn:hover { background: var(--brand); }

/* card */
.card {
  flex: 0 0 auto; width: 180px;
  cursor: pointer; transition: transform .3s;
  display: block;
}
.poster {
  position: relative; aspect-ratio: 2/3;
  border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--border);
}
.poster img { width: 100%; height: 100%; object-fit: cover; }
.poster::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(0,0,0,.7), transparent 60%);
}
.badge {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 8px;
  backdrop-filter: blur(4px);
}
.badge.free   { background: var(--success); color: #fff; }
.badge.paid   { background: var(--brand);   color: #fff; }
.badge.excl   { background: var(--brand);   color: #fff; }
.badge.dub    { background: var(--info);    color: #fff; }
.badge.sub    { background: rgba(0,0,0,.6); color: #fff; border: 1px solid var(--border); }
.badge.new    { background: var(--success); color: #fff; }
.lock-badge {
  position: absolute; top: 10px; left: 10px; z-index: 3;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(0,0,0,.6); display: grid; place-items: center;
  backdrop-filter: blur(4px);
}
.lock-badge svg { width: 14px; height: 14px; }
.overlay {
  position: absolute; inset: 0; z-index: 4;
  background: rgba(10,10,10,.78); backdrop-filter: blur(3px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  opacity: 0; transition: .3s; padding: 14px; text-align: center;
}
.play-circle {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--brand); display: grid; place-items: center;
  box-shadow: 0 0 24px var(--brand);
}
.play-circle svg { width: 22px; height: 22px; fill: #fff; margin-right: -3px; }
.overlay .o-meta { font-size: 12px; color: var(--text-muted); }
.card:hover { transform: scale(1.06); z-index: 2; }
.card:hover .overlay { opacity: 1; }
.card:hover .poster {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand), 0 24px 50px -16px rgba(229,9,20,.4);
}
.card-info { padding: 10px 4px 0; }
.card-info .t {
  font-weight: 700; font-size: 14.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-info .m {
  color: var(--text-muted); font-size: 12px;
  display: flex; gap: 6px; align-items: center; margin-top: 4px;
}
.card-info .m .imdb { color: var(--gold); font-weight: 700; }
.card-progress {
  position: absolute; bottom: 0; right: 0; left: 0; z-index: 3;
  height: 3px; background: rgba(255,255,255,.2);
}
.card-progress > span {
  display: block; height: 100%; background: var(--brand);
}

/* wide card */
.card.wide { width: 320px; }
.card.wide .poster { aspect-ratio: 16/9; }

/* ========================= LIVE ========================= */
.live-card {
  flex: 0 0 auto; width: 340px;
  border-radius: 14px; overflow: hidden; position: relative;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  cursor: pointer; transition: .3s;
}
.live-card:hover { transform: translateY(-4px); border-color: var(--brand); }
.live-thumb {
  aspect-ratio: 16/9; position: relative;
  display: flex; align-items: flex-start; padding: 14px;
  background-size: cover; background-position: center;
}
.live-thumb::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.6), transparent);
}
.live-tag {
  position: relative; z-index: 2;
  background: var(--brand); color: #fff;
  font-size: 12px; font-weight: 800;
  padding: 5px 12px; border-radius: 8px;
  display: flex; align-items: center; gap: 7px;
}
.live-tag .blink {
  width: 8px; height: 8px; border-radius: 50%; background: #fff;
  animation: blink 1.1s infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .2; } }
.live-body { padding: 14px 16px; background: var(--surface); }
.live-body h3 { font-size: 16.5px; font-weight: 800; }
.live-body p { color: var(--text-muted); font-size: 13.5px; margin: 6px 0 12px; }
.live-time { color: var(--brand-2); font-weight: 700; font-size: 13px; }

/* ========================= STARS ========================= */
.star { flex: 0 0 auto; width: 120px; text-align: center; cursor: pointer; }
.star .ava {
  width: 108px; height: 108px; border-radius: 50%;
  margin: 0 auto; display: grid; place-items: center;
  font-weight: 900; font-size: 30px;
  border: 2px solid transparent;
  background-size: cover; background-position: center;
  transition: .3s; box-shadow: var(--shadow);
}
.star:hover .ava {
  border-color: var(--brand); transform: scale(1.07);
  box-shadow: 0 0 26px -6px var(--brand);
}
.star .sname { margin-top: 12px; font-weight: 700; font-size: 14px; }
.star .srole { color: var(--text-muted); font-size: 12px; }

/* ========================= FRANCHISE ========================= */
.fr-card {
  flex: 0 0 auto; width: 300px; aspect-ratio: 16/9;
  border-radius: 14px; overflow: hidden; position: relative;
  display: grid; place-items: center;
  cursor: pointer; border: 1px solid var(--border);
  box-shadow: var(--shadow); transition: .3s;
  background-size: cover; background-position: center;
}
.fr-card:hover { transform: scale(1.04); border-color: var(--brand); }
.fr-card .fr-logo {
  position: relative; z-index: 2;
  font-weight: 900; font-size: 26px; letter-spacing: 1px;
  text-shadow: 0 4px 20px rgba(0,0,0,.7);
}
.fr-card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at center, transparent, rgba(0,0,0,.55));
}

/* ========================= FILTER BAR ========================= */
.filter-bar {
  display: flex; gap: 10px; flex-wrap: wrap;
  padding: 24px 0 16px; align-items: center;
}
.filter-pill {
  padding: 9px 18px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: .2s;
}
.filter-pill:hover { color: #fff; border-color: var(--brand); }
.filter-pill.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ========================= GRID ========================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 22px;
  padding: 16px 0 60px;
}
.grid .card { width: auto; }

.page-header {
  padding: calc(var(--header-h) + 36px) 0 8px;
}
.page-title { font-size: 30px; font-weight: 800; }
.page-sub { color: var(--text-muted); margin-top: 6px; font-size: 15px; }

/* ========================= DETAIL ========================= */
.detail-hero {
  position: relative; min-height: 72vh;
  background-size: cover; background-position: center;
}
.detail-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--bg) 4%, rgba(10,10,10,.6) 50%, rgba(10,10,10,.4) 100%),
    linear-gradient(to left, var(--bg) 0%, transparent 70%);
}
.detail-hero-content {
  position: relative; z-index: 2;
  padding: calc(var(--header-h) + 50px) 0 40px;
  max-width: 720px;
}
.detail-title { font-size: clamp(32px, 4vw, 48px); font-weight: 900; margin-bottom: 12px; letter-spacing: -1px; }
.detail-en { font-size: 15px; color: var(--text-muted); font-weight: 400; margin-right: 8px; }
.detail-meta {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  font-size: 13.5px; color: var(--text-muted); margin-bottom: 16px;
}
.detail-meta .chip {
  padding: 4px 10px; border-radius: 100px;
  background: rgba(255,255,255,.08); font-weight: 600;
}
.detail-meta .imdb { color: var(--gold); font-weight: 700; }
.detail-desc { font-size: 15px; line-height: 1.9; color: #d4d4d8; margin-bottom: 22px; max-width: 600px; }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.detail-body {
  padding: 30px 0 60px;
  display: grid; grid-template-columns: 2.2fr 1fr; gap: 40px;
}
.detail-section { margin-bottom: 36px; }
.detail-section h3 {
  font-size: 19px; margin-bottom: 14px; font-weight: 700;
  display: flex; align-items: center; gap: 10px;
}
.detail-section h3::before {
  content: ''; width: 4px; height: 18px;
  border-radius: 4px; background: var(--brand);
}
.detail-section p { font-size: 14.5px; color: var(--text-muted); line-height: 1.9; }
.info-list { list-style: none; }
.info-list li {
  display: flex; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid var(--border); font-size: 14px;
}
.info-list li strong { color: var(--text); min-width: 90px; }
.info-list li span { color: var(--text-muted); }

.cast-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 16px;
}
.cast-item { text-align: center; }
.cast-item .ava {
  width: 80px; height: 80px; border-radius: 50%; margin: 0 auto;
  background: var(--surface); display: grid; place-items: center;
  font-weight: 800; font-size: 22px; color: var(--brand);
}
.cast-item .nm { font-size: 13px; font-weight: 600; margin-top: 8px; }
.cast-item .rl { font-size: 11.5px; color: var(--text-muted); }

/* episodes */
.episode-list { display: flex; flex-direction: column; gap: 10px; }
.episode {
  display: flex; gap: 14px; padding: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); cursor: pointer; transition: .2s;
}
.episode:hover { background: var(--surface-2); border-color: var(--brand); }
.episode-thumb {
  flex: 0 0 auto; width: 150px; aspect-ratio: 16/9;
  border-radius: var(--radius-sm); overflow: hidden;
  background: var(--bg-2); position: relative;
}
.episode-thumb img { width: 100%; height: 100%; object-fit: cover; }
.episode-num {
  position: absolute; top: 6px; right: 6px;
  background: rgba(0,0,0,.7); padding: 2px 8px;
  border-radius: 5px; font-size: 11px; font-weight: 700;
}
.episode-info { flex: 1; min-width: 0; }
.episode-title { font-size: 14.5px; font-weight: 700; margin-bottom: 4px; }
.episode-desc {
  font-size: 12.5px; color: var(--text-muted); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.episode-meta { font-size: 11.5px; color: var(--text-dim); margin-top: 6px; }

/* season tabs */
.season-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.season-tab {
  padding: 8px 16px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  cursor: pointer; transition: .2s;
}
.season-tab.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ========================= PLAYER ========================= */
.player-wrap {
  position: relative; width: 100%; aspect-ratio: 16/9;
  background: #000; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.player-wrap video { width: 100%; height: 100%; }
.player-gate {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
  padding: 30px; text-align: center;
  background: linear-gradient(135deg, rgba(229,9,20,.15), rgba(10,10,10,.95));
}
.player-gate .gate-icon {
  width: 70px; height: 70px; border-radius: 50%;
  background: rgba(229,9,20,.15); display: grid; place-items: center;
}
.player-gate .gate-icon svg { width: 32px; height: 32px; color: var(--brand); }
.player-gate h3 { font-size: 22px; font-weight: 800; }
.player-gate p { color: var(--text-muted); font-size: 14.5px; max-width: 460px; }
.player-gate .gate-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* standalone player page */
.player-page { padding: calc(var(--header-h) + 24px) 0 40px; }
.player-meta { margin-top: 20px; }
.player-meta h1 { font-size: 26px; font-weight: 800; margin-bottom: 8px; }

/* ========================= COMMENTS ========================= */
.comment-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; margin-bottom: 18px;
}
.comment-form textarea {
  width: 100%; min-height: 80px; resize: vertical;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 14px;
  color: #fff; font-family: inherit; font-size: 14px; outline: none;
}
.comment-form textarea:focus { border-color: var(--brand); }
.comment-form-foot {
  display: flex; justify-content: space-between; align-items: center; margin-top: 12px;
}
.rating-input { display: flex; gap: 4px; direction: ltr; }
.rating-input .star-btn {
  font-size: 22px; color: var(--text-dim); cursor: pointer; transition: .2s;
  background: none; border: none; padding: 0;
}
.rating-input .star-btn:hover, .rating-input .star-btn.active { color: var(--gold); }

.comment {
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.comment-head { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.comment-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--brand); display: grid; place-items: center;
  font-weight: 700; font-size: 14px;
}
.comment-name { font-size: 14px; font-weight: 700; }
.comment-date { font-size: 11.5px; color: var(--text-dim); margin-right: auto; }
.comment-rating { color: var(--gold); font-size: 13px; }
.comment-body { font-size: 14px; color: var(--text-muted); line-height: 1.9; }

/* ========================= PRICING / SUBSCRIPTION ========================= */
.pricing-wrap { padding: calc(var(--header-h) + 40px) 0 60px; }
.pricing-head { text-align: center; margin-bottom: 40px; }
.pricing-head .kicker {
  color: var(--brand); font-weight: 700; font-size: 13px;
  letter-spacing: 1.5px; margin-bottom: 8px;
}
.pricing-head h1 { font-size: 36px; font-weight: 900; letter-spacing: -1px; }
.pricing-head p { color: var(--text-muted); max-width: 600px; margin: 14px auto 0; font-size: 16px; }

.coin-packs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin-bottom: 48px;
}
.coin-pack {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 22px;
  text-align: center; position: relative;
  transition: .3s;
}
.coin-pack:hover { transform: translateY(-4px); border-color: var(--brand); }
.coin-pack.popular { border-color: var(--brand); }
.coin-pack.popular::before {
  content: 'محبوب‌ترین'; position: absolute; top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--brand); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 4px 14px; border-radius: 100px;
}
.coin-pack .coin-icon {
  width: 64px; height: 64px; margin: 0 auto 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f7d147, #c9941b);
  box-shadow: inset 0 -4px 6px rgba(0,0,0,.3), 0 6px 20px -8px var(--gold);
  display: grid; place-items: center;
  font-weight: 900; font-size: 18px; color: #6b4a00;
}
.coin-pack .amount { font-size: 32px; font-weight: 900; }
.coin-pack .discount {
  display: inline-block; margin: 6px 0 14px;
  background: rgba(29,185,84,.15); color: var(--success);
  font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 100px;
}
.coin-pack .price { font-size: 18px; font-weight: 700; color: var(--text-muted); margin-bottom: 16px; }
.coin-pack .price span { font-size: 13px; }

.plan-callout {
  background: linear-gradient(120deg, rgba(229,9,20,.12), rgba(229,9,20,.04));
  border: 1px solid rgba(229,9,20,.3);
  border-radius: var(--radius-lg); padding: 30px;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px;
  margin-bottom: 40px;
}
.plan-callout h2 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.plan-callout p { color: var(--text-muted); font-size: 14px; }
.plan-callout .price-tag {
  display: flex; flex-direction: column; align-items: center;
  padding: 0 24px; border-right: 1px solid rgba(229,9,20,.3);
}
.plan-callout .price-tag b { font-size: 32px; color: var(--gold); font-weight: 900; }
.plan-callout .price-tag small { font-size: 12px; color: var(--text-muted); }

/* ========================= ABOUT / STATS ========================= */
.section { padding: 70px 0; border-top: 1px solid var(--border); }
.sec-head { text-align: center; margin-bottom: 44px; }
.sec-head .kicker { color: var(--brand); font-weight: 700; font-size: 13px; letter-spacing: 1.5px; margin-bottom: 8px; }
.sec-head h2 { font-size: 32px; font-weight: 900; letter-spacing: -1px; }
.sec-head p { color: var(--text-muted); max-width: 620px; margin: 14px auto 0; font-size: 16px; }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 22px; transition: .3s;
}
.feature:hover { transform: translateY(-6px); border-color: var(--brand); box-shadow: var(--shadow); }
.feature .fi {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(229,9,20,.12); color: var(--brand);
  display: grid; place-items: center; margin-bottom: 16px;
}
.feature h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.feature p { color: var(--text-muted); font-size: 14px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 38px; }
.stat {
  text-align: center;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 18px;
}
.stat .num { font-size: 34px; font-weight: 900; color: var(--brand-2); }
.stat .lbl { color: var(--text-muted); margin-top: 4px; font-weight: 600; font-size: 14px; }

/* partners (customers module) */
.partners-strip {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.partner {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 16px;
  display: flex; align-items: center; gap: 12px;
  transition: .2s;
}
.partner:hover { border-color: var(--brand); transform: translateY(-2px); }
.partner .logo-box {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--bg-2); display: grid; place-items: center;
  font-weight: 800; color: var(--brand); flex-shrink: 0;
}
.partner .partner-info { min-width: 0; }
.partner .partner-name {
  font-size: 14px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.partner .partner-cat { font-size: 11.5px; color: var(--text-muted); }

/* CTA banner */
.cta { margin: 50px 0; }
.cta-box {
  background: linear-gradient(120deg, #3a0408, #0b0b0c 70%);
  border: 1px solid rgba(229,9,20,.3);
  border-radius: 24px; padding: 50px 40px;
  text-align: center; position: relative; overflow: hidden;
}
.cta-box::before {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(229,9,20,.35), transparent 70%);
  filter: blur(20px);
}
.cta-box h2 { font-size: 32px; font-weight: 900; position: relative; }
.cta-box p { color: #d4d4d8; margin: 12px 0 24px; position: relative; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.ci-item {
  display: flex; gap: 14px; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px;
}
.ci-ic {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(229,9,20,.12); color: var(--brand);
  display: grid; place-items: center; flex-shrink: 0;
}
.ci-t { font-size: 13px; color: var(--text-muted); }
.ci-v { font-weight: 700; font-size: 15px; direction: ltr; text-align: right; }
.contact-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
}
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; color: #d4d4d8; }
.field input, .field textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 11px; padding: 13px 16px;
  color: #fff; font-family: inherit; font-size: 14.5px; outline: none; transition: .2s;
}
.field input:focus, .field textarea:focus { border-color: var(--brand); }
.field textarea { resize: vertical; min-height: 110px; }

/* ========================= MODAL ========================= */
.modal-back {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.75); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-back.open { display: flex; }
.modal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 32px;
  width: 100%; max-width: 420px; box-shadow: var(--shadow);
  animation: pop .3s; position: relative;
}
@keyframes pop {
  from { transform: translateY(20px) scale(.96); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.modal h3 { font-size: 22px; font-weight: 900; text-align: center; margin-bottom: 6px; }
.modal .sub { color: var(--text-muted); text-align: center; margin-bottom: 24px; font-size: 13.5px; }
.modal .field input { background: var(--bg-2); }
.modal .switch { text-align: center; color: var(--text-muted); font-size: 13.5px; margin-top: 16px; }
.modal .switch a { color: var(--brand); font-weight: 700; cursor: pointer; }
.modal-close {
  position: absolute; top: 16px; left: 16px;
  cursor: pointer; color: var(--text-muted); background: none; border: none;
}
.otp-inputs { display: flex; gap: 8px; direction: ltr; justify-content: center; margin: 8px 0 16px; }
.otp-inputs input {
  width: 48px; height: 56px; text-align: center;
  font-size: 22px; font-weight: 700;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 10px; color: #fff; outline: none;
}
.otp-inputs input:focus { border-color: var(--brand); }

/* ============================================================
   WEBCASTING STANDARD AUTH  data-wbc-block="auth-modal"
   Shared identity-provider modal — the SAME structure & look
   across every webcasting-built site. Uses the webcasting
   blue→purple gradient (NOT the per-site brand color), so the
   tokens below are scoped to .wbc-auth and never inherit --brand.
   ============================================================ */
.wbc-auth {
  --wbc-g1:#E50914; --wbc-g2:#ff2b36;
  --wbc-grad:linear-gradient(120deg,var(--wbc-g1),var(--wbc-g2));
  --wbc-bg:#141416; --wbc-bg2:#0e0e10; --wbc-field:#1c1c1f;
  --wbc-line:rgba(255,255,255,.09); --wbc-muted:#9a9aa3;
  background:var(--wbc-bg); border:1px solid var(--wbc-line);
  border-radius:22px; padding:22px; max-width:440px; width:100%;
  text-align:right; box-shadow:0 40px 90px -30px rgba(0,0,0,.8);
}
.wbc-auth__head { display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; }
.wbc-auth__brand { display:flex; align-items:center; gap:12px; flex-direction:row-reverse; }
.wbc-auth__brand .logo-orb {
  width:42px; height:42px; border-radius:12px; flex:0 0 auto;
  background:var(--wbc-grad); display:grid; place-items:center;
  box-shadow:0 8px 20px -6px var(--wbc-g1);
}
.wbc-auth__brand .logo-orb svg { width:22px; height:22px; color:#fff; }
.wbc-auth__brand h3 { font-size:18px; font-weight:800; }
.wbc-auth__x {
  width:38px; height:38px; border-radius:11px; cursor:pointer;
  background:var(--wbc-field); border:1px solid var(--wbc-line);
  color:var(--wbc-muted); display:grid; place-items:center; transition:.2s;
}
.wbc-auth__x:hover { color:#fff; border-color:rgba(255,255,255,.25); }
.wbc-seg {
  display:grid; grid-template-columns:1fr 1fr; gap:6px; padding:6px;
  background:var(--wbc-bg2); border:1px solid var(--wbc-line);
  border-radius:14px; margin-bottom:14px;
}
.wbc-seg button {
  border:none; background:transparent; color:var(--wbc-muted);
  font-family:inherit; font-size:15px; font-weight:700; cursor:pointer;
  padding:12px 0; border-radius:10px; transition:.2s;
}
.wbc-seg button.active { background:var(--wbc-grad); color:#fff; box-shadow:0 8px 20px -8px var(--wbc-g1); }
.wbc-toggle {
  display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:18px;
}
.wbc-toggle button {
  display:flex; align-items:center; justify-content:center; gap:8px;
  background:var(--wbc-field); border:1px solid var(--wbc-line);
  color:var(--wbc-muted); font-family:inherit; font-size:14.5px; font-weight:700;
  padding:13px 0; border-radius:13px; cursor:pointer; transition:.2s;
}
.wbc-toggle button svg { width:17px; height:17px; }
.wbc-toggle button.active { color:#fff; border-color:var(--wbc-g1); box-shadow:0 0 0 1px var(--wbc-g1),0 8px 22px -12px var(--wbc-g1); }
.wbc-field { margin-bottom:14px; }
.wbc-field label { display:block; font-size:14px; font-weight:600; margin-bottom:8px; color:#d8d8de; }
.wbc-input { position:relative; }
.wbc-input input {
  width:100%; background:var(--wbc-field); border:1px solid var(--wbc-line);
  border-radius:13px; padding:14px 16px; padding-inline-start:46px;
  color:#fff; font-family:inherit; font-size:14.5px; outline:none; transition:.2s;
}
.wbc-input input:focus { border-color:var(--wbc-g1); box-shadow:0 0 0 3px rgba(229,9,20,.2); }
.wbc-input input::placeholder { color:#56617d; }
.wbc-input .ic {
  position:absolute; inset-inline-start:14px; top:50%; transform:translateY(-50%);
  width:19px; height:19px; color:var(--wbc-muted); pointer-events:none;
}
.wbc-input input[type="tel"]{ direction:ltr; text-align:right; }
.wbc-auth .btn-grad {
  width:100%; display:flex; align-items:center; justify-content:center; gap:10px;
  background:var(--wbc-grad); color:#fff; border:none; cursor:pointer;
  font-family:inherit; font-size:15.5px; font-weight:800; padding:15px 0;
  border-radius:14px; transition:.2s; box-shadow:0 14px 30px -12px var(--wbc-g1); margin-top:4px;
}
.wbc-auth .btn-grad:hover { filter:brightness(1.06); transform:translateY(-1px); }
.wbc-auth .btn-grad svg { width:18px; height:18px; }
.wbc-or {
  display:flex; align-items:center; gap:12px; color:var(--wbc-muted);
  font-size:12.5px; margin:18px 0;
}
.wbc-or::before, .wbc-or::after { content:''; height:1px; flex:1; background:var(--wbc-line); }
.wbc-auth .btn-ghost {
  width:100%; display:flex; align-items:center; justify-content:center; gap:10px;
  background:var(--wbc-field); color:#fff; border:1px solid var(--wbc-line); cursor:pointer;
  font-family:inherit; font-size:15px; font-weight:700; padding:15px 0;
  border-radius:14px; transition:.2s;
}
.wbc-auth .btn-ghost:hover { border-color:rgba(255,255,255,.25); background:#121b2e; }
.wbc-auth .btn-ghost svg { width:18px; height:18px; }
.wbc-fine { text-align:center; color:var(--wbc-muted); font-size:12.5px; margin-top:18px; }
.wbc-fine a { color:#9db0ff; text-decoration:underline; cursor:pointer; }
.wbc-auth .otp-inputs input { background:var(--wbc-field); border-color:var(--wbc-line); }
.wbc-auth .otp-inputs input:focus { border-color:var(--wbc-g1); }
.wbc-back { display:inline-flex; align-items:center; gap:6px; color:var(--wbc-muted); font-size:13.5px; cursor:pointer; margin-bottom:14px; background:none; border:none; font-family:inherit; }
.wbc-back:hover { color:#fff; }

/* paywall modal extra */
.paywall-body { text-align: center; }
.paywall-body .big-icon {
  width: 72px; height: 72px; margin: 0 auto 16px;
  border-radius: 50%; background: rgba(229,9,20,.15);
  display: grid; place-items: center;
}
.paywall-body .big-icon svg { width: 36px; height: 36px; color: var(--brand); }
.paywall-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; background: var(--bg-2); border-radius: 10px;
  margin-bottom: 10px; font-size: 14px;
}
.paywall-row b { color: var(--gold); font-weight: 800; }

/* ========================= FOOTER ========================= */
footer.site-footer {
  background: var(--bg-2); border-top: 1px solid var(--border);
  padding: 34px 0 18px; margin-top: 30px;
}
.foot-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--border);
  align-items: start;
}
.foot-about .logo { margin-bottom: 10px; }
.foot-about p { color: var(--text-muted); font-size: 12.5px; line-height: 1.7; max-width: 300px; }
.socials { display: flex; gap: 8px; margin-top: 12px; }
.socials a {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--surface); border: 1px solid var(--border);
  display: grid; place-items: center; color: var(--text-muted); transition: .2s;
}
.socials a:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.foot-col h4 { font-size: 14px; font-weight: 800; margin-bottom: 12px; }
.foot-col a {
  display: block; color: var(--text-muted); font-size: 13px;
  margin-bottom: 8px; transition: .2s;
}
.foot-col a:hover { color: #fff; padding-inline-start: 5px; }
.apps { display: flex; flex-direction: row; gap: 10px; }
.app-sq {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); transition: .2s;
}
.app-sq svg { width: 22px; height: 22px; }
.app-sq:hover { border-color: var(--brand); color: var(--brand); }
.app-btn {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 14px; transition: .2s;
}
.app-btn:hover { border-color: var(--brand); }
.app-btn .ai { color: var(--brand); }
.app-btn small { display: block; color: var(--text-muted); font-size: 11px; }
.app-btn b { font-size: 13.5px; }
.trust { display: flex; gap: 8px; margin-top: 14px; }
.enamad {
  width: 50px; height: 50px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  display: grid; place-items: center; text-align: center;
  font-size: 8.5px; color: var(--text-muted); font-weight: 700; line-height: 1.3;
}
.foot-bottom {
  padding-top: 16px; display: flex; justify-content: space-between;
  align-items: center; color: var(--text-muted); font-size: 12.5px;
  flex-wrap: wrap; gap: 10px;
}

/* ========================= TOAST ========================= */
.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--surface); border: 1px solid var(--border);
  padding: 14px 22px; border-radius: 12px;
  z-index: 300; opacity: 0; transition: .3s;
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { border-color: var(--success); }
.toast.error   { border-color: var(--danger); }

/* ========================= RESPONSIVE ========================= */
@media (max-width: 1024px) {
  .feature-grid, .coin-packs { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .detail-body { grid-template-columns: 1fr; }
  .plan-callout { grid-template-columns: 1fr; text-align: center; }
  .plan-callout .price-tag { border-right: none; border-top: 1px solid rgba(229,9,20,.3); padding-top: 18px; }
}
@media (max-width: 768px) {
  nav.menu, .hide-mobile { display: none; }
  .container { padding: 0 16px; }
  .hero { height: 64vh; min-height: 460px; }
  .slide-content h1 { font-size: 30px; }
  .sec-head h2, .pricing-head h1 { font-size: 26px; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-about { grid-column: 1 / -1; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero-arrow { display: none; }
}
@media (max-width: 480px) {
  .feature-grid, .coin-packs { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr; }
  .card { width: 140px; }
  .filter-bar { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }
  .filter-pill { white-space: nowrap; }
}
