/* ===========================================================================
   لندینگ کمپین «پول برگردون تخفیفان» — جام جهانی ۲۰۲۶
   موبایل-فرست با بریک‌پوینت‌های دسکتاپ · RTL · وزیرمتن self-host
   =========================================================================== */

/* --- فونت Vazirmatn از npm (کپی‌شده در public/fonts، نه CDN) ---------------- */
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Variable.woff2") format("woff2-variations"),
       url("../fonts/Vazirmatn-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --red: #E5344A;
  --red-dim: rgba(229,52,74,0.1);
  --dark: #0B1426;
  --dark2: #0F2048;
  --gold: #F0A82E;
  --gold-dim: rgba(240,168,46,0.15);
  --silver: #94A3B8;
  --bronze: #C07837;
  --green-ok: #059669;
  --bg: #F2F1EE;
  --white: #FFFFFF;
  --text: #0F1923;
  --text2: #4A5568;
  --text3: #94A3B8;
  --border: rgba(0,0,0,0.07);
  --border2: rgba(0,0,0,0.12);
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 26px;
  --max: 480px;
  --max-wide: 1120px;
  --header-h: 64px;
}

body {
  font-family: 'Vazirmatn', system-ui, sans-serif;
  direction: rtl;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ===== NAV (هدر فیکس، بالای صفحه) ===== */
.hero-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 18px rgba(0,0,0,0.06);
}

.topbar-inner {
  width: 100%; max-width: var(--max); margin: 0 auto;
  height: var(--header-h);
  padding: 0 18px;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; gap: 8px; }
.nav-logo .brand-mark {
  height: 48px; width: auto;
  display: block; object-fit: contain; flex-shrink: 0;
  border-radius: 10px;
}

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

.nav-pts {
  display: none;
  align-items: center; gap: 5px;
  background: var(--red);
  border: none;
  border-radius: 20px; padding: 6px 14px;
  color: #fff; font-size: 12px; font-weight: 700;
}
.nav-pts.show { display: inline-flex; }

.nav-login-btn {
  background: var(--red); color: white; border: none;
  border-radius: 20px; padding: 7px 18px;
  font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: opacity 0.2s;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100svh;
  padding-top: var(--header-h);
  background: #071120 url("../img/hero-banner-mobile.jpg") center bottom / cover no-repeat;
  display: flex; flex-direction: column;
  overflow: hidden;
}

.hero-grid, .hero-circle { display: none; }

.hero-inner {
  position: relative; z-index: 2;
  flex: 1; width: 100%; max-width: var(--max); margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 20px 18px 56px;
}

.hero-copy {
  background: rgba(0,0,0,0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 18px 24px 14px;
  margin-bottom: 20px;
  text-align: center;
}

.hero-title {
  color: white; font-size: 30px; font-weight: 900;
  text-align: center; line-height: 1.38;
  margin-bottom: 9px; text-wrap: pretty;
}

.hero-title .brand { color: var(--red); text-shadow: 0 0 22px rgba(255,255,255,0.6), 0 0 8px rgba(255,255,255,0.5); }

.hero-sub {
  color: #FFFFFF; font-size: 14px; font-weight: 700;
  text-align: center; margin-bottom: 0;
  line-height: 1.7;
}

/* Match Card */
.match-card {
  position: relative; z-index: 2;
  width: 100%; max-width: 420px;
  margin-top: 100px;
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: var(--r-xl);
  padding: 22px 20px 20px;
  animation: cardGlow 3.5s ease-in-out infinite;
}

@keyframes cardGlow {
  0%,100% { box-shadow: 0 8px 36px rgba(0,80,20,0.22); }
  50%      { box-shadow: 0 12px 56px rgba(0,130,40,0.34); }
}

.mc-head {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-bottom: 18px;
}

.mc-live-dot {
  width: 7px; height: 7px; background: #4ade80;
  border-radius: 50%; flex-shrink: 0;
  animation: blinkDot 1.4s ease-in-out infinite;
}

@keyframes blinkDot { 0%,100%{opacity:1} 50%{opacity:0.25} }

.mc-lbl { color: rgba(255,255,255,0.52); font-size: 11.5px; }
.mc-lbl strong { color: white; font-weight: 700; }

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

.mc-team {
  display: flex; flex-direction: column;
  align-items: center; gap: 7px; flex: 1;
}

.mc-flag { font-size: 42px; line-height: 1; }
.mc-flag img { width: 42px; height: 42px; object-fit: cover; border-radius: 50%; border: 2px solid rgba(255,255,255,0.15); }
.mc-tname { color: white; font-size: 14px; font-weight: 700; }

.mc-vs {
  display: flex; flex-direction: column;
  align-items: center; gap: 7px; padding: 0 8px;
}

.mc-vs-txt {
  color: rgba(255,255,255,0.2);
  font-size: 18px; font-weight: 900; letter-spacing: 3px;
}

.mc-date-pill {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.52);
  font-size: 10.5px; padding: 3px 11px; border-radius: 8px;
  white-space: nowrap;
}

.mc-live-state {
  display: none;
  align-items: center; justify-content: center; gap: 8px;
  background: rgba(239,68,68,0.14);
  border: 1px solid rgba(239,68,68,0.38);
  border-radius: 10px; padding: 11px;
  color: #FCA5A5; font-size: 14px; font-weight: 700;
  margin-bottom: 18px;
}

.mc-live-state.show { display: flex; }

/* Countdown */
.mc-countdown {
  direction: ltr;
  display: flex; align-items: flex-start;
  justify-content: center; gap: 5px; margin-bottom: 18px;
}

.cd-box { display: flex; flex-direction: column; align-items: center; gap: 6px; }

.cd-num {
  background: var(--dark);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; color: var(--gold);
  font-size: 27px; font-weight: 900;
  font-variant-numeric: tabular-nums;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: -1px;
}

.cd-lbl { color: rgba(255,255,255,0.36); font-size: 10px; direction: rtl; }

.cd-sep {
  color: var(--gold); font-size: 22px; font-weight: 900;
  opacity: 0.42; padding-top: 14px;
}

.mc-cta {
  width: 100%; background: var(--red); color: white; border: none;
  border-radius: 14px; padding: 15px 20px;
  font-family: inherit; font-size: 14px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; gap: 8px;
  transition: opacity 0.2s, transform 0.1s;
}

.mc-cta:active { transform: scale(0.98); }
.mc-cta:disabled { opacity: 0.5; cursor: not-allowed; }

.mc-cta-pts {
  background: rgba(255,255,255,0.2);
  padding: 2px 9px; border-radius: 6px; font-size: 12px;
}

/* ===== SHARED SECTION STYLES ===== */
.section { padding: 52px 18px; }
.section.white { background: var(--white); }
.section.gray  { background: var(--bg); }

.sec-wrap { max-width: var(--max); margin: 0 auto; }

.sec-eyebrow {
  display: inline-block; font-size: 11px; font-weight: 700;
  padding: 4px 12px; border-radius: 18px; margin-bottom: 10px;
}

.ey-red  {
  background: var(--red-dim); color: var(--red);
  font-size: 13px; font-weight: 800;
  padding: 9px 18px; border-radius: 14px;
}
.ey-gold { background: var(--gold-dim); color: #9A6800; }
.ey-blue { background: rgba(37,99,235,0.09); color: #1D4ED8; }
.ey-dark { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); }

.sec-title {
  font-size: 22px; font-weight: 800;
  line-height: 1.3; margin-bottom: 6px;
}

.sec-title.lt { color: white; }

.sec-desc {
  font-size: 13.5px; color: var(--text2);
  margin-bottom: 26px; line-height: 1.7;
}

.sec-desc.lt { color: rgba(255,255,255,0.55); }

/* ===== HOW TO PLAY ===== */
.steps-list { display: flex; flex-direction: column; gap: 10px; }

.step-card {
  display: flex; flex-direction: row-reverse; align-items: center; gap: 14px;
  background: var(--bg); border-radius: var(--r);
  padding: 14px;
}

/* جعبهٔ تصویر هر کارت — مربع کوچک، سمت چپ کارت در موبایل.
   سایز پیشنهادی فایل تصویر: 800×800px (PNG/WebP، پس‌زمینه شفاف). */
.step-img-box {
  width: 88px; height: 88px; flex-shrink: 0;
  border-radius: 14px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}

.step-img { width: 100%; height: 100%; object-fit: contain; }

.step-body { flex: 1; min-width: 0; }
.step-name { font-size: 14px; font-weight: 800; margin-bottom: 4px; line-height: 1.45; }
.step-hint { font-size: 11.5px; color: var(--text2); line-height: 1.5; }
.step-hint strong { color: var(--red); font-weight: 800; }

/* ===== PRIZES ===== */
.prizes-grid { display: flex; flex-direction: column; gap: 14px; }
.prizes-stack { display: flex; flex-direction: column; gap: 14px; }

.prize-card {
  border-radius: var(--r-lg); padding: 22px 20px;
  position: relative; overflow: hidden;
}

.pc-daily  { background: linear-gradient(135deg,#FFF4F6 0%,#FFE4E9 100%); border: 1px solid rgba(229,52,74,0.14); }
.pc-weekly { background: linear-gradient(135deg,#EFF6FF 0%,#DBEAFE 100%); border: 1px solid rgba(37,99,235,0.14); }
.pc-final  { background: linear-gradient(135deg, #0F2048 0%, #162E5E 100%); border: 2px solid rgba(240,168,46,0.38); }

.prize-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700;
  padding: 4px 11px; border-radius: 18px; margin-bottom: 10px;
}

.pb-red  { background: var(--red); color: white; }
.pb-blue { background: #2563EB; color: white; }
.pb-gold { background: var(--gold); color: var(--dark); }

.prize-title {
  font-size: 17px; font-weight: 800;
  margin-bottom: 5px; line-height: 1.3;
}

.pc-final .prize-title { font-size: 21px; color: white; }
.pc-final .prize-sub { color: rgba(255,255,255,0.6); }

.prize-sub { font-size: 12.5px; color: var(--text2); line-height: 1.6; text-align: right; }

.final-ranks {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 14px; position: relative; z-index: 1;
}

.final-rank {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px; padding: 9px 12px;
}

.fr-medal { font-size: 22px; flex-shrink: 0; }
.fr-rank { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.5); margin-bottom: 2px; }
.fr-prize { font-size: 13px; font-weight: 800; line-height: 1.5; color: white; }
.fr-detail { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.55); }

/* ===== PREDICTION ===== */
.predict-card {
  background: var(--bg); border-radius: var(--r-xl);
  padding: 22px 18px;
}

.match-tabs-row {
  display: flex; gap: 8px;
  overflow-x: auto; scrollbar-width: none;
  margin-bottom: 14px; padding-bottom: 2px;
}

.match-tabs-row::-webkit-scrollbar { display: none; }

.match-tab {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: var(--bg); border: 2px solid transparent;
  border-radius: 12px; padding: 9px 12px; cursor: pointer;
  min-width: 96px; flex-shrink: 0;
  transition: all 0.15s; font-family: inherit;
}

.match-tab.active { border-color: var(--red); background: rgba(229,52,74,0.05); }

.mtab-flags { font-size: 15px; letter-spacing: 2px; display: inline-flex; gap: 4px; }
.mtab-flag { width: 18px; height: 18px; object-fit: cover; border-radius: 50%; border: 1px solid var(--border); }
.mtab-label { font-size: 10px; color: var(--text2); font-weight: 600; }
.mtab-date  { font-size: 9.5px; color: var(--text3); }
.mtab-lock  { font-size: 9px; color: var(--text3); }

.predict-teams {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 22px;
}

.pred-team {
  display: flex; flex-direction: column;
  align-items: center; gap: 6px; flex: 1;
}

.pred-flag { font-size: 38px; }
.pred-flag img { width: 38px; height: 38px; object-fit: cover; border-radius: 50%; border: 2px solid var(--border); }
.pred-name { font-size: 14px; font-weight: 700; text-align: center; }

.pred-vs-col {
  display: flex; flex-direction: column;
  align-items: center; gap: 5px; padding: 0 8px;
}

.pred-vs { font-size: 16px; font-weight: 800; color: var(--text3); }
.pred-date { font-size: 11px; color: var(--text3); }

.pred-timer {
  display: none;
  margin-bottom: 14px;
  font-size: 12px; color: var(--text2);
  text-align: center;
}
.pred-timer.show { display: block; }

.no-matches-today {
  width: 100%; padding: 16px; text-align: center;
  font-size: 14px; color: var(--text2); font-weight: 600;
}
.pred-timer-label { font-weight: 600; margin-left: 4px; }
.pred-timer-val { font-weight: 700; color: var(--red); }

.pred-opts { display: flex; gap: 8px; margin-bottom: 14px; }

.pred-opt {
  flex: 1; background: var(--white);
  border: 2px solid var(--border2);
  border-radius: 12px; padding: 13px 5px;
  font-family: inherit; font-size: 12px; font-weight: 600;
  cursor: pointer; text-align: center; color: var(--text);
  line-height: 1.4; transition: all 0.15s;
}

.pred-opt:hover:not(:disabled):not(.sel) { border-color: var(--red); color: var(--red); }
.pred-opt.sel { background: var(--red); border-color: var(--red); color: white; }
.pred-opt:disabled { cursor: default; }

.pred-submit {
  width: 100%; background: var(--red); color: white;
  border: none; border-radius: 12px; padding: 14px;
  font-family: inherit; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: opacity 0.2s; margin-bottom: 10px;
}

.pred-submit:disabled { opacity: 0.36; cursor: not-allowed; }

.pred-submit.done {
  background: var(--green-ok); opacity: 1; cursor: default;
}

.pred-done {
  display: none; text-align: center;
  margin-top: 12px; font-size: 12.5px; color: var(--text2); font-weight: 600;
}

.pred-done.show { display: block; }

.scroll-hint {
  text-align: center;
  margin-top: 20px;
  padding-bottom: 4px;
}
.scroll-arrow {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  animation: arrow-bounce 1.4s ease-in-out infinite;
}
.scroll-arrow svg {
  width: 28px; height: 28px;
  fill: none;
  stroke: var(--red);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.scroll-arrow:nth-child(1) { animation-delay: 0s; }
@keyframes arrow-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(7px); opacity: 1; }
}

.pred-locked {
  display: none; text-align: center;
  padding: 14px 0; color: var(--text2); font-size: 13px; font-weight: 600;
}

.pred-locked.show { display: block; }

.pred-login-wall {
  display: none; flex-direction: column;
  align-items: center; gap: 12px;
  padding: 16px 0 4px; text-align: center;
}

.pred-login-wall.show { display: flex; }
.pred-login-wall p { font-size: 13px; color: var(--text2); }

.btn-login-inline {
  background: var(--red); color: white; border: none;
  border-radius: 10px; padding: 11px 24px;
  font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}

/* ===== PARTNERS ===== */
.partners-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  max-width: 340px; margin: 0 auto;
  gap: 10px;
}

.partner-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center; padding: 8px;
}

.partner-logo {
  width: 56px; height: 56px; object-fit: contain;
  border-radius: 14px;
}

.partner-name { font-size: 13px; font-weight: 700; color: var(--text2); }

/* ===== ADD CARD ===== */
.addcard-inner {
  max-width: var(--max); margin: 0 auto;
  background: linear-gradient(135deg, #0F2048 0%, #162E5E 100%);
  border-radius: var(--r-xl); padding: 28px 24px;
  position: relative; overflow: hidden;
}

.addcard-inner::before {
  content: '';
  position: absolute; width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(240,168,46,0.18) 0%, transparent 70%);
  top: -100px; left: -80px; pointer-events: none;
}

.addcard-pts-num {
  font-size: 26px; font-weight: 900; color: var(--gold);
  line-height: 1.5; margin-bottom: 18px; position: relative;
}

.btn-addcard {
  display: block; width: 100%; background: var(--red); color: white;
  border: none; border-radius: 14px; padding: 16px;
  font-family: inherit; font-size: 15px; font-weight: 800;
  text-align: center; text-decoration: none;
  cursor: pointer; transition: opacity 0.2s;
}

.btn-addcard:active { opacity: 0.85; }

/* ===== DEALS (گرید همسان، ۳ ستون → ۵ ردیف برای ۱۵ دیل) ===== */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.deal-card {
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--white); border: 1px solid var(--border);
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: transform 0.15s;
}

.deal-card:active { transform: scale(0.97); }

.deal-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 198.25 / 122.91;
  background: var(--bg);
  overflow: hidden;
}

.deal-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

.deal-disc {
  position: absolute; top: 6px; right: 6px;
  background: var(--red); color: white;
  font-size: 9.5px; font-weight: 800;
  padding: 2px 6px; border-radius: 6px; direction: rtl;
  max-width: calc(100% - 12px);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.deal-body { padding: 8px 9px 10px; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.deal-name { font-size: 11px; font-weight: 700; line-height: 1.4; }
.deal-sub { font-size: 9.5px; color: var(--text2); line-height: 1.5; }

.btn-deals-more {
  display: block; width: 100%; background: var(--red); color: white;
  border: none; border-radius: 14px; padding: 16px;
  font-family: inherit; font-size: 15px; font-weight: 800;
  text-align: center; text-decoration: none;
  cursor: pointer; transition: opacity 0.2s;
}

.btn-deals-more:active { opacity: 0.85; }

/* ===== MY POINTS ===== */
.pts-dash {
  background: linear-gradient(135deg,#0F2048 0%,#162E5E 100%);
  border-radius: var(--r-xl); padding: 26px 22px;
  margin-bottom: 14px; position: relative; overflow: hidden;
}

.pts-dash::before {
  content: '';
  position: absolute; width: 210px; height: 210px;
  background: radial-gradient(circle, rgba(240,168,46,0.2) 0%, transparent 70%);
  top: -72px; left: -64px; pointer-events: none;
}

.pts-lbl { color: rgba(255,255,255,0.5); font-size: 12px; margin-bottom: 4px; }

.pts-big {
  font-size: 60px; font-weight: 900; color: var(--gold);
  line-height: 1; direction: ltr; margin-bottom: 10px;
}

.pts-rank-tag {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  font-size: 12px; padding: 5px 12px; border-radius: 16px;
  margin-bottom: 16px;
}

.pts-breakdown { display: flex; gap: 8px; }

.pts-bk {
  flex: 1; background: rgba(255,255,255,0.08);
  border-radius: 10px; padding: 10px 12px;
}

.pts-bk-val {
  font-size: 18px; font-weight: 800; color: white;
  direction: ltr; margin-bottom: 2px;
}

.pts-bk-lbl { font-size: 10px; color: rgba(255,255,255,0.38); }

/* ===== LEADERBOARD ===== */
.lb-list { display: flex; flex-direction: column; gap: 8px; }

.lb-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: var(--r);
  background: var(--bg); border: 1px solid transparent;
}
.lb-row.r1 { background: linear-gradient(135deg,#FFFBEB,#FEF3C7); border-color: rgba(240,168,46,0.35); }
.lb-row.r2 { background: linear-gradient(135deg,#F8FAFC,#EFF4FA); border-color: rgba(148,163,184,0.3); }
.lb-row.r3 { background: linear-gradient(135deg,#FFF8F5,#FFE4D0); border-color: rgba(192,120,55,0.28); }
.lb-row.me { background: linear-gradient(135deg,#FFF4F6,#FFE4E9); border: 2px solid var(--red); }
.lb-divider { height: 1px; background: var(--border); margin: 4px 0; }

.lb-rank {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 900; flex-shrink: 0;
}
.lb-row.r1 .lb-rank { background: var(--gold); color: #451a03; }
.lb-row.r2 .lb-rank { background: var(--silver); color: white; }
.lb-row.r3 .lb-rank { background: var(--bronze); color: white; }
.lb-row.me .lb-rank { background: var(--red); color: white; font-size: 11px; }
.lb-row:not(.r1):not(.r2):not(.r3):not(.me) .lb-rank { background: rgba(0,0,0,0.07); color: var(--text2); font-size: 12px; }

.lb-phone-id {
  flex: 1; font-size: 14px; font-weight: 700;
  direction: ltr; letter-spacing: 0.3px; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lb-prize-tag {
  flex-shrink: 0; font-size: 10px; font-weight: 700;
  color: #92400E; background: rgba(245,158,11,0.18);
  border-radius: 6px; padding: 3px 7px; white-space: nowrap;
}
.lb-me-tag {
  flex-shrink: 0; font-size: 11px; font-weight: 800;
  color: white; background: var(--red);
  border-radius: 6px; padding: 3px 9px;
}
.lb-pts {
  font-size: 15px; font-weight: 800; color: var(--text);
  white-space: nowrap; flex-shrink: 0;
}
.lb-row.r1 .lb-pts { color: #92400E; }
.lb-row.me .lb-pts { color: var(--red); }
.lb-empty { text-align: center; color: var(--text3); font-size: 13px; padding: 20px 0; }

/* ===== MODAL ===== */
.modal-bg {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 200; display: flex;
  align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.28s;
}

.modal-bg.open { opacity: 1; pointer-events: all; }

.modal-sheet {
  background: var(--white);
  border-radius: 28px 28px 0 0;
  width: 100%; max-width: var(--max);
  padding: 28px 22px 52px;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32,0.72,0,1);
}

.modal-bg.open .modal-sheet { transform: translateY(0); }

.modal-drag {
  width: 36px; height: 4px; background: var(--border2);
  border-radius: 2px; margin: 0 auto 22px;
}

.modal-title { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.modal-sub { font-size: 13px; color: var(--text2); margin-bottom: 22px; }

.field { margin-bottom: 4px; }

.ph-input {
  width: 100%; border: 2px solid var(--border2);
  border-radius: 12px; padding: 14px 16px;
  font-family: inherit; font-size: 18px; direction: ltr;
  text-align: center; outline: none; letter-spacing: 2px;
  margin-bottom: 6px; transition: border-color 0.2s;
  color: var(--text);
}

.ph-input:focus { border-color: var(--red); }

.field .err {
  display: block; min-height: 16px;
  color: var(--red); font-size: 11px; padding: 0 4px 8px;
}

.btn-primary {
  width: 100%; background: var(--red); color: white;
  border: none; border-radius: 12px; padding: 15px;
  font-family: inherit; font-size: 14px; font-weight: 700;
  cursor: pointer; margin-bottom: 10px; transition: opacity 0.2s;
}
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-ghost {
  width: 100%; background: transparent; color: var(--text2);
  border: none; padding: 10px; font-family: inherit;
  font-size: 13px; cursor: pointer;
}
.btn-ghost:disabled { opacity: 0.6; cursor: not-allowed; }

.modal-close {
  display: block; width: 100%; text-align: center;
  background: none; border: none; font-family: inherit;
  font-size: 12.5px; color: var(--text3); cursor: pointer;
  padding: 6px;
}

.otp-back {
  display: flex; align-items: center; gap: 6px;
  background: none; border: none; font-family: inherit;
  font-size: 13px; color: var(--text2); cursor: pointer;
  margin-bottom: 16px; padding: 0;
}

.modal-step { display: none; }
.modal-step.active { display: block; }
.dev-note { text-align: center; font-size: 11px; color: var(--text3); margin-top: 8px; }

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--dark); color: white;
  padding: 12px 22px; border-radius: 24px;
  font-size: 13.5px; font-weight: 600; z-index: 300;
  transition: transform 0.3s cubic-bezier(0.32,0.72,0,1);
  white-space: nowrap; pointer-events: none;
  max-width: calc(100% - 36px);
  overflow: hidden; text-overflow: ellipsis;
}

.toast.show { transform: translateX(-50%) translateY(0); }

/* ===== ANIMATIONS ===== */
@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 0; transform: translateY(22px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .fade-up.in { opacity: 1; transform: none; }
}

/* ===== FOOTER ===== */
.page-footer {
  background: var(--dark); padding: 28px 18px;
  text-align: center;
}

.footer-brand {
  display: inline-flex; align-items: center;
  background: white; border-radius: 10px;
  padding: 8px 14px; margin-bottom: 12px;
}
.footer-brand .brand-mark {
  height: 28px; width: auto;
  display: block; object-fit: contain;
}

.page-footer p { color: rgba(255,255,255,0.28); font-size: 11.5px; }

/* ===== نمایش بخش‌های اختصاصیِ بعد از ورود ===== */
.post-login-only { display: none; }
body.logged-in .post-login-only { display: block; }

@media (max-width: 380px) {
  .hero-title { font-size: 23px; }
  .cd-num { width: 48px; height: 48px; font-size: 24px; }
  .cd-sep { font-size: 18px; }
}

/* ===========================================================================
   ریسپانسیو دسکتاپ — از موبایل فراتر می‌ریم بدون تغییر طرح موبایل
   =========================================================================== */
@media (min-width: 760px) {
  .sec-wrap, .addcard-inner { max-width: 700px; }

  .topbar-inner { max-width: 700px; }
  .hero-inner { max-width: 620px; }
  .hero-title { font-size: 34px; }
  .hero-sub { font-size: 14.5px; }

  .step-card { padding: 18px; }
  .step-img-box { width: 100px; height: 100px; }
  .step-name { font-size: 15px; margin-bottom: 6px; line-height: 1.5; }
  .step-hint { font-size: 12.5px; line-height: 1.6; }

  .prizes-grid { flex-direction: row; }
  .prize-card { flex: 1; }
  .prizes-stack { flex: 1; }

  .partners-grid { gap: 16px; }

  .deals-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .deal-name { font-size: 12.5px; }
  .deal-sub { font-size: 10.5px; }
  .lb-list, .pts-dash { max-width: 640px; margin-inline: auto; }
}

@media (min-width: 1024px) {
  :root { --header-h: 84px; }
  .topbar-inner { max-width: var(--max-wide); padding: 0 32px; }
  .nav-logo .brand-mark { height: 60px; border-radius: 12px; }

  .hero {
    background-image: url("../img/hero-banner-desktop.jpg");
    background-position: center;
  }
  .hero-inner {
    max-width: var(--max-wide);
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding: 0 32px 64px;
  }
  .hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
  .hero-title, .hero-sub { text-align: right; }
  .hero-title { font-size: 50px; max-width: none; margin-bottom: 18px; }
  .hero-sub { font-size: 18px; max-width: 36ch; margin-bottom: 28px; }
  .match-card { flex-shrink: 0; width: 420px; margin-top: 0; }

  .sec-wrap, .addcard-inner { max-width: var(--max-wide); }
  .sec-title { font-size: 30px; }
  .sec-desc { font-size: 15px; max-width: 64ch; }

  .steps-list { flex-direction: row; gap: 18px; }
  .step-card { flex: 1; padding: 24px; }
  .step-img-box { width: 110px; height: 110px; }
  .prizes-grid { gap: 18px; }
  .prizes-stack { gap: 18px; }

  .predict-card { max-width: 760px; margin: 0 auto; padding: 32px; }
  .match-tabs-row, .pred-timer, .pred-done { max-width: 760px; margin-inline: auto; }
  .match-tabs-row { justify-content: center; gap: 14px; }

  .match-tab { min-width: 140px; padding: 16px 20px; gap: 6px; border-radius: 16px; }
  .mtab-flags { font-size: 22px; gap: 6px; }
  .mtab-flag { width: 26px; height: 26px; }
  .mtab-label { font-size: 13px; }
  .mtab-date { font-size: 11.5px; }
  .mtab-lock { font-size: 11px; }

  .partners-grid { gap: 20px; max-width: 480px; }
  .partner-logo { width: 72px; height: 72px; }

  .addcard-inner {
    display: flex; flex-direction: row-reverse; align-items: center; gap: 56px;
    padding: 44px 52px;
  }
  .addcard-stat, .addcard-copy { flex: 1; min-width: 0; }
  .addcard-stat { text-align: center; }
  .addcard-pts-num { font-size: 34px; }
  .btn-addcard { max-width: 320px; }

  .modal-sheet { border-radius: 28px; max-width: 440px; margin-bottom: 6vh; }
  .modal-bg { align-items: center; }

  .deals-grid { max-width: 920px; margin: 0 auto 24px; gap: 20px; }
  .pts-dash, .lb-list { max-width: 760px; margin-inline: auto; }
  .pts-dash { display: flex; flex-direction: column; }
}
