/* لینک‌های عمومی و صفحه معرفی: سبک، بدون کتابخانه، مناسب اینترنت کند */
.pub { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.pub-top { display: flex; align-items: center; justify-content: space-between; padding: calc(10px + var(--sa-safe-t)) 16px 10px; max-width: 1100px; width: 100%; margin: 0 auto; }
.pub-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-family: 'IRANSans', var(--sa-font); font-size: 1.05rem; }
.pub-login { text-decoration: none; font-weight: 700; color: var(--sa-lapis); padding: 8px 16px; border-radius: 12px; background: var(--sa-lapis-soft); }
.pub-main { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px 32px; }
.pub-foot { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; padding: 22px 16px calc(22px + var(--sa-safe-b)); color: var(--sa-muted); font-size: .84rem; border-top: 1px solid var(--sa-line); }
.pub-foot a { color: var(--sa-muted); }

.pub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 22px;
  border-radius: 14px;
  border: 0;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(145deg, #FF9A2E, #E25200);
  box-shadow: 0 8px 20px rgba(255, 122, 0, .3);
  cursor: pointer;
}
.pub-btn.ghost { background: transparent; color: var(--sa-lapis); box-shadow: none; border: 1.5px solid var(--sa-line-strong); }
.pub-btn.block { width: 100%; }

/* معرفی */
.pub-hero {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: 26px 20px;
  margin-top: 6px;
  border-radius: 28px;
  color: #fff;
  background: var(--sa-girih), radial-gradient(120% 140% at 100% 0%, #2E3B8F 0%, var(--sa-lapis) 50%, var(--sa-lapis-deep) 100%);
  background-size: 72px 72px, cover;
}
.pub-hero h1 { margin: 0 0 10px; font-size: clamp(1.7rem, 6vw, 2.8rem); line-height: 1.3; }
.pub-hero p { margin: 0; opacity: .9; max-width: 54ch; line-height: 1.9; }
.pub-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pub-hero .pub-btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.pub-ticket { background: #fff; color: var(--sa-ink); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 24px 50px rgba(5, 8, 30, .4); transform: rotate(-3deg); max-width: 320px; }
.pub-ticket b { font-size: 1.6rem; }
.pub-ticket small, .pub-ticket span { color: var(--sa-muted); font-size: .86rem; }
.pub-seats { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; margin: 6px 0; }
.pub-seats i { aspect-ratio: 1; border-radius: 50%; background: var(--sa-line-strong); }
.pub-seats i.on { background: var(--sa-saffron); }

.pub-how { padding: 30px 4px 10px; }
.pub-how h2, .pub-grid h3 { margin: 0 0 12px; }
.pub-how ol { margin: 0; padding-inline-start: 22px; display: grid; gap: 10px; line-height: 1.9; }
.pub-grid { display: grid; gap: 12px; padding: 18px 0; }
.pub-grid > div { background: var(--sa-surface); border: 1px solid var(--sa-line); border-radius: 18px; padding: 16px; }
.pub-grid p { margin: 0; color: var(--sa-muted); line-height: 1.8; }

/* نمای عمومی یک برنامه (بازی، رقابت، رویداد ...) */
.pub-card { background: var(--sa-surface); border: 1px solid var(--sa-line); border-radius: 24px; padding: 20px; margin-top: 10px; }
.pub-kicker { display: inline-flex; gap: 6px; align-items: center; font-size: .82rem; color: var(--sa-turquoise); font-weight: 700; }
.pub-card h1 { margin: 6px 0 12px; font-size: 1.5rem; line-height: 1.4; }
.pub-facts { display: grid; gap: 10px; margin: 0 0 18px; }
.pub-facts div { display: flex; gap: 10px; align-items: baseline; }
.pub-facts dt { color: var(--sa-muted); min-width: 84px; font-size: .86rem; }
.pub-facts dd { margin: 0; font-weight: 500; }
.pub-free { font-size: 2rem; font-weight: 700; color: var(--sa-pistachio); }
.pub-note { color: var(--sa-muted); font-size: .86rem; line-height: 1.8; }
.pub-women { text-align: center; padding: 40px 16px; }

/* درگاه شبیه‌سازی‌شده */
.pub-gw { display: grid; place-items: center; padding: 30px 0; text-align: center; }
.pub-gw-card { width: min(420px, 100%); background: var(--sa-surface); border-radius: 24px; border: 1px solid var(--sa-line); overflow: hidden; text-align: start; }
.pub-gw-head { display: flex; flex-direction: column; padding: 16px 18px; background: var(--sa-lapis); color: #fff; }
.pub-gw-head small { opacity: .8; }
.pub-gw-card dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; padding: 18px; margin: 0; }
.pub-gw-card dt { color: var(--sa-muted); }
.pub-gw-card dd { margin: 0; font-weight: 500; }
.pub-gw-amount { font-size: 1.3rem; font-weight: 700 !important; color: var(--sa-saffron-deep); }
.pub-gw-actions { display: flex; gap: 10px; padding: 0 18px 18px; }
.pub-gw-actions .pub-btn { flex: 1; }

.pub-doc { max-width: 70ch; margin: 0 auto; line-height: 2; padding-top: 10px; }
.pub-doc h1 { margin-bottom: 4px; }

/* تابلوی نمایش رقابت */
.board { min-height: 100vh; min-height: 100dvh; background: var(--sa-lapis-deep) var(--sa-girih); color: #fff; padding: 24px; }

@media (min-width: 860px) {
  .pub-hero { grid-template-columns: 1.4fr 1fr; padding: 48px; }
  .pub-grid { grid-template-columns: repeat(4, 1fr); }
}
