/* ==========================================================================
   Univoa — طرح رسمی بخش عمومی سایت
   فقط روی صفحه‌های عمومی (body.site) بارگذاری می‌شود؛ پنل کاربر و مدیریت همچنان از univo.css استفاده می‌کنند.
   رنگ‌ها: سرمه‌ای عمیق (اعتماد) + آبی سازمانی (کنش) + طلایی (تأکید محدود).
   ========================================================================== */
body.site {
  --desk: #F3F5FA;
  --card: #FFFFFF;
  --card-2: #EEF2F8;
  --ink: #0E1B35;
  --ink-soft: #55637D;
  --line: #E2E8F2;
  --edge: #CBD5E4;
  --brand: #1F4FB8;
  --brand-strong: #173D91;
  --on-brand: #FFFFFF;
  --hi: #E5B94A;
  --navy: #0B1B3F;
  --shadow-sm: 0 1px 2px rgba(14, 27, 53, .06), 0 1px 3px rgba(14, 27, 53, .05);
  --shadow-md: 0 8px 24px rgba(14, 27, 53, .10);
  --radius: 14px;
  --font-body: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
  --font-display: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
  font-family: var(--font-body);
}
[data-theme="dark"] body.site {
  --desk: #091122;
  --card: #111D36;
  --card-2: #172643;
  --ink: #E8EDF8;
  --ink-soft: #9DABC6;
  --line: #1E2D4B;
  --edge: #2C3F63;
  --brand: #6C9CFF;
  --brand-strong: #8FB4FF;
  --on-brand: #0A1222;
  --hi: #E5B94A;
  --navy: #070E1F;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, .45);
}
.site h1, .site h2, .site h3 { font-family: var(--font-body); font-weight: 800; letter-spacing: 0; }
.site .display { font-family: var(--font-body); font-weight: 800; }

/* ── دکمه‌ها: ساده و رسمی (بدون سایه‌ی آفست) ───────────────────────────── */
.site .btn { border: 1px solid var(--edge); border-radius: 10px; box-shadow: none; font-weight: 700; transition: background .15s, border-color .15s, box-shadow .15s, color .15s; }
.site .btn:hover { transform: none; box-shadow: none; background: var(--card-2); border-color: var(--brand); }
.site .btn-brand { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.site .btn-brand:hover { background: var(--brand-strong); border-color: var(--brand-strong); box-shadow: var(--shadow-sm); }
.site .btn-ghost { border-color: transparent; background: transparent; }
.site .btn-ghost:hover { background: var(--card-2); border-color: transparent; }
.site .btn-danger { color: var(--bad); border-color: var(--bad); }
.site .btn-gold { background: var(--hi); border-color: var(--hi); color: #0B1B3F; }
.site .btn-gold:hover { background: #F0C95E; border-color: #F0C95E; box-shadow: 0 6px 18px rgba(229, 185, 74, .35); color: #0B1B3F; }
.site .btn-outline-light { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
.site .btn-outline-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.site .btn-lg { padding: .8rem 1.5rem; font-size: 1rem; }

/* ── هدر ─────────────────────────────────────────────────────────────── */
.site .site-header { padding-block: 0; background: color-mix(in srgb, var(--card) 94%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.site .site-header .wrap { min-height: 68px; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; }
.brand-name { font-size: 1.45rem; font-weight: 800; letter-spacing: -.2px; color: var(--ink); line-height: 1; }
.site .main-nav { margin-inline-start: 1rem; gap: .15rem; }
.site .main-nav a { position: relative; padding: .5rem .9rem; border-radius: 8px; font-weight: 500; color: var(--ink-soft); }
.site .main-nav a:hover { background: var(--card-2); color: var(--ink); box-shadow: none; }
.site .main-nav a[aria-current="page"] { background: transparent; box-shadow: none; color: var(--brand); font-weight: 700; }
.site .main-nav a[aria-current="page"]::after { content: ""; position: absolute; inset-inline: .9rem; bottom: -13px; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand); }
.site .user-chip { border: 1px solid var(--line); background: var(--card); }

/* ── کادر صفحه و نوار بخش‌ها ─────────────────────────────────────────── */
.site .page { padding-block: 1.25rem 3rem; }
.site .breadcrumbs { background: transparent; border: 0; padding: .25rem 0; margin: 0 0 .75rem; }
.cat-bar { display: flex; gap: .45rem; overflow-x: auto; padding: .15rem .15rem .85rem; margin-bottom: 1rem; scrollbar-width: thin; }
.cat-pill { flex: none; display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .95rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-soft); font-size: .9rem; font-weight: 500; transition: border-color .15s, color .15s, background .15s; }
.cat-pill:hover { border-color: var(--brand); color: var(--brand); }
.cat-pill[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); font-weight: 700; }

/* ── هیرو صفحه‌ی اصلی ────────────────────────────────────────────────── */
.hero-home {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(900px 380px at 12% -10%, rgba(95, 140, 255, .35), transparent 60%),
    radial-gradient(700px 320px at 95% 110%, rgba(229, 185, 74, .20), transparent 60%),
    linear-gradient(135deg, #0A1836 0%, #11306A 55%, #1B4DB0 100%);
}
[data-theme="dark"] .hero-home { background:
    radial-gradient(900px 380px at 12% -10%, rgba(80, 120, 230, .28), transparent 60%),
    radial-gradient(700px 320px at 95% 110%, rgba(229, 185, 74, .14), transparent 60%),
    linear-gradient(135deg, #060D20 0%, #0B1F47 55%, #12388A 100%); }
.hero-home::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--hi), transparent); opacity: .7; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .85fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding-block: clamp(2.5rem, 6vw, 4.75rem); }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; color: var(--hi); font-weight: 700; font-size: .92rem; margin-bottom: .9rem; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--hi); border-radius: 2px; }
.hero-copy h1 { font-size: clamp(1.85rem, 4.2vw, 3rem); line-height: 1.55; font-weight: 800; max-width: 20ch; }
.hero-lead { margin-top: 1rem; max-width: 56ch; color: rgba(255, 255, 255, .82); font-size: 1.05rem; line-height: 2; }
.hero-search { margin-top: 1.75rem; display: flex; max-width: 640px; background: #fff; border-radius: 14px; padding: .35rem; box-shadow: 0 14px 34px rgba(3, 10, 30, .35); }
.hero-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: #0E1B35; padding: .75rem 1rem; outline: none; font-size: 1rem; }
.hero-search input::placeholder { color: #7A879F; }
.hero-search button { border: 0; border-radius: 10px; background: var(--navy); color: #fff; padding: 0 1.5rem; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: .45rem; transition: background .15s; }
.hero-search button:hover { background: #14346F; }
.hero-search:focus-within { box-shadow: 0 0 0 3px rgba(229, 185, 74, .7), 0 14px 34px rgba(3, 10, 30, .35); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.hero-panel { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: 18px; padding: 1.5rem; backdrop-filter: blur(6px); }
.hero-panel h2 { font-size: 1rem; font-weight: 700; color: rgba(255, 255, 255, .8); margin-bottom: 1rem; }
.hero-panel dl { margin: 0; display: grid; gap: .25rem; }
.hero-panel dl div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.hero-panel dt { color: rgba(255, 255, 255, .78); }
.hero-panel dd { margin: 0; font-size: 1.7rem; font-weight: 800; color: #fff; line-height: 1.2; }
.hero-points { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: .5rem; color: rgba(255, 255, 255, .85); font-size: .92rem; }
.hero-points li { display: flex; align-items: center; gap: .55rem; }
.hero-points li::before { content: "✓"; flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--hi); color: #0B1B3F; font-size: .72rem; font-weight: 800; }

/* ── بخش‌ها (section) و عنوان‌ها ─────────────────────────────────────── */
.site .section { margin-top: 2.75rem; }
.site .section:first-child { margin-top: 2rem; }
.site .section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.site .section-head h2 { font-size: 1.4rem; font-weight: 800; position: relative; padding-inline-start: .9rem; }
.site .section-head h2::before { content: ""; position: absolute; inset-inline-start: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 1.2em; border-radius: 4px; background: var(--hi); }
.site .section-head a { font-weight: 700; font-size: .93rem; color: var(--brand); }
.site .section-head a:hover { text-decoration: underline; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.cat-card { display: flex; align-items: center; gap: .95rem; padding: 1rem 1.1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s, transform .15s; }
.cat-card:hover, .cat-card:focus-visible { border-color: var(--brand); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cat-ic { flex: none; width: 52px; height: 52px; display: grid; place-items: center; font-size: 1.6rem; border-radius: 14px; background: color-mix(in srgb, var(--c, var(--brand)) 26%, var(--card)); }
.cat-text { display: grid; gap: .1rem; min-width: 0; }
.cat-text b { font-size: 1rem; font-weight: 800; }
.cat-text small { color: var(--ink-soft); font-size: .82rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── کارت آگهی ───────────────────────────────────────────────────────── */
.site .ad-grid { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.15rem; }
.site .ad-card { padding: 0; gap: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: box-shadow .18s, transform .18s, border-color .18s; }
.site .ad-card:hover, .site .ad-card:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--edge); }
.site .ad-card .thumb { aspect-ratio: 16 / 10; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); }
.site .ad-card > :not(.thumb) { padding-inline: 1.1rem; }
.site .ad-card-top { padding-top: 1rem; margin-bottom: .55rem; }
.site .ad-card .ad-title { font-size: 1.02rem; font-weight: 800; line-height: 1.6; }
.site .ad-card .ad-desc { margin-top: .35rem; font-size: .9rem; }
.site .ad-meta { margin-top: .5rem; }
.site .ad-foot { margin-top: .75rem; padding-block: .8rem; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--card-2) 55%, var(--card)); border-inline: 0; border-bottom: 0; }
.site .price { color: var(--brand); font-weight: 800; }
.site .chip-cat { background: color-mix(in srgb, var(--c, var(--brand)) 22%, var(--card)); color: var(--ink); border: 0; font-weight: 700; }
.site .badge-official { background: var(--navy); color: var(--hi); }
.site .ad-card .thumb-placeholder { aspect-ratio: 16 / 6; }
.site .ad-card .thumb-placeholder span { font-size: 2.1rem; }
.site .thumb-placeholder { background: linear-gradient(135deg, color-mix(in srgb, var(--c, var(--brand)) 22%, var(--card)), var(--card-2)); }

/* ── سربرگ صفحه (band) ───────────────────────────────────────────────── */
.site .band {
  background: linear-gradient(135deg, color-mix(in srgb, var(--c, var(--brand)) 20%, var(--card)), var(--card) 75%);
  border: 1px solid var(--line); border-radius: 18px; color: var(--ink); box-shadow: var(--shadow-sm);
  padding: clamp(1.2rem, 3vw, 1.9rem); margin-bottom: 1.5rem;
}
.site .band .emoji { display: grid; place-items: center; width: 64px; height: 64px; font-size: 2rem; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.site .band h1 { font-family: var(--font-body); font-weight: 800; font-size: clamp(1.4rem, 3.4vw, 2rem); line-height: 1.5; }
.site .band p { color: var(--ink-soft); font-weight: 400; }
.site .band .btn { background: var(--navy); border-color: var(--navy); color: #fff; }
.site .band .btn:hover { background: #14346F; border-color: #14346F; box-shadow: none; }
.site .sheet-body { padding: 0; }
.site .sheet-body.detail-text { padding: clamp(1.1rem, 3vw, 1.75rem); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); max-width: none; }
.site .sheet-body.error-page { text-align: center; padding: 3rem 1rem; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.site .error-page .code { font-size: 4.5rem; font-weight: 800; color: var(--brand); line-height: 1.1; }

/* ── ابزار فهرست، صفحه‌بندی، خالی ──────────────────────────────────── */
.site .toolbar { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .65rem; box-shadow: var(--shadow-sm); }
.site .search-inline { border: 1px solid var(--edge); border-radius: 10px; background: var(--card-2); }
.site .search-inline:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.site .chip { border: 1px solid var(--line); background: var(--card); color: var(--ink-soft); }
.site .chip:hover { border-color: var(--brand); color: var(--brand); }
.site .chip.is-active { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.site .pager a, .site .pager span { border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.site .pager a:hover { border-color: var(--brand); color: var(--brand); }
.site .pager .is-current { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.site .empty { border: 1px dashed var(--edge); background: var(--card); }

/* ── جزئیات آگهی / رویداد ───────────────────────────────────────────── */
.site .detail { gap: 1.5rem; }
.site .detail > article { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.1rem, 3vw, 1.75rem); box-shadow: var(--shadow-sm); }
.site .detail > article.detail-text { max-width: none; }
.site .box { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.site .kv div { border-bottom: 1px solid var(--line); }
.site .big-price { font-family: var(--font-body); font-weight: 800; color: var(--brand); font-size: 1.7rem; }
.site .cover { border: 1px solid var(--line); }
.site .attach { border: 1px solid var(--line); background: var(--card-2); }
.site .notice { border-radius: 12px; }

/* ── فرم‌ها و ورود/ثبت‌نام ─────────────────────────────────────────── */
.site .input, .site select.input, .site textarea.input { border: 1px solid var(--edge); border-radius: 10px; background: var(--card); }
.site .input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.site .auth-grid { background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-md); max-width: 980px; margin: 1rem auto 0; }
.site .auth-aside { background: linear-gradient(150deg, #0A1836, #14346F 70%, #1B4DB0); color: #fff; border-inline-end: 0; }
.site .auth-aside h2 { font-family: var(--font-body); font-weight: 800; font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.6; }
.site .auth-aside ul { display: grid; gap: .6rem; list-style: none; padding: 0; color: rgba(255, 255, 255, .88); }
.site .auth-aside li { display: flex; gap: .6rem; align-items: baseline; }
.site .auth-aside li::before { content: "✓"; color: var(--hi); font-weight: 800; }
.site .flash { border-radius: 12px; border-width: 1px; }

/* ── رویدادها (بلیت) ─────────────────────────────────────────────────── */
.site .ticket { border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: box-shadow .18s, transform .18s, border-color .18s; }
.site .ticket:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--edge); }
.site .ticket-stub { background: color-mix(in srgb, var(--c, var(--brand)) 28%, var(--card)); color: var(--ink); border-inline-end: 1px dashed var(--edge); }
.site .t-day { font-family: var(--font-body); font-weight: 800; }

/* ── مراحل کار و دعوت به اقدام ───────────────────────────────────────── */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; counter-reset: s; }
.steps li { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.25rem 1.25rem; box-shadow: var(--shadow-sm); }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--navy); color: var(--hi); font-weight: 800; font-size: 1.1rem; margin-bottom: .8rem; }
.steps h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.steps p { color: var(--ink-soft); font-size: .93rem; line-height: 1.9; }
.cta { margin-top: 2.75rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; padding: clamp(1.4rem, 4vw, 2.2rem); border-radius: 20px; color: #fff;
  background: radial-gradient(500px 220px at 90% 0%, rgba(229, 185, 74, .22), transparent 60%), linear-gradient(135deg, #0A1836, #14346F 70%, #1B4DB0); }
.cta h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); }
.cta p { margin-top: .4rem; color: rgba(255, 255, 255, .82); max-width: 52ch; }

/* ── فوتر ────────────────────────────────────────────────────────────── */
.site .site-footer { margin-top: 1rem; padding: 0; background: var(--navy); color: rgba(255, 255, 255, .72); font-size: .93rem; }
.site .site-footer .wrap { display: block; border: 0; padding-top: 0; }
.site .site-footer .footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; padding-block: 2.5rem 2rem; }
.footer-brand p { margin-top: .9rem; max-width: 34ch; line-height: 1.95; }
.site .site-footer .brand-name { color: #fff; }
.site .site-footer .footer-col { display: grid; gap: .55rem; align-content: start; }
.footer-col h3 { color: #fff; font-size: .98rem; margin-bottom: .3rem; }
.site .site-footer a:hover { color: var(--hi); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 1.1rem 1.4rem; color: rgba(255, 255, 255, .6); font-size: .88rem; }

/* ── واکنش‌گرایی ─────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { max-width: none; }
  .steps { grid-template-columns: 1fr; }
  .site .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .site .site-header .wrap { min-height: 60px; }
  .site .main-nav { box-shadow: var(--shadow-md); border: 1px solid var(--line); border-radius: 14px; }
  .site .main-nav a[aria-current="page"]::after { display: none; }
  .site .main-nav a[aria-current="page"] { background: var(--card-2); }
  .hero-search { flex-direction: column; padding: .5rem; gap: .4rem; }
  .hero-search button { padding: .75rem; justify-content: center; }
  .hero-actions .btn { flex: 1 1 100%; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .cat-card { flex-direction: column; align-items: flex-start; gap: .6rem; padding: .9rem; }
  .cat-text small { display: none; }
  .site .ad-grid { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; }
  .cta .btn { width: 100%; }
  .site .site-footer .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 340px) { .cat-grid { grid-template-columns: 1fr; } }
