/* ==========================================================================
   Univo — «دفترچه‌ی دانشجو»
   ایده: همه‌ی بخش‌ها مثل برگه‌جداکن‌های رنگی یک ‌دفتر کنار هم‌اند و محتوا روی «برگه» است.
   ========================================================================== */
:root {
  --desk: #E8EAF6;
  --card: #FFFFFF;
  --card-2: #F4F5FB;
  --ink: #15183A;
  --ink-soft: #565B85;
  --line: #D8DBEE;
  --edge: #15183A;
  --brand: #3B34F0;
  --on-brand: #FFFFFF;
  --hi: #FFE14D;
  --ok: #138A5B;   --ok-bg: #DDF5EA;
  --warn: #8A5A00; --warn-bg: #FFF0C7;
  --bad: #C62F3C;  --bad-bg: #FFE0E3;
  --grid: rgba(59, 52, 240, .07);
  --radius: 14px;
  --font-body: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
  --font-display: "Lalezar", "Vazirmatn", Tahoma, sans-serif;
  color-scheme: light;
}
[data-theme="dark"] {
  --desk: #0B0D1F;
  --card: #161936;
  --card-2: #1D2144;
  --ink: #ECEDFF;
  --ink-soft: #A3A8D6;
  --line: #2A2F5C;
  --edge: #8E93D8;
  --brand: #8F8BFF;
  --on-brand: #0B0D1F;
  --ok: #4ADE9E;   --ok-bg: #12382B;
  --warn: #FFD66B; --warn-bg: #3A2F10;
  --bad: #FF8C96;  --bad-bg: #40181D;
  --grid: rgba(143, 139, 255, .09);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0; background: var(--desk); color: var(--ink);
  font: 400 16px/1.8 var(--font-body); min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.35; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; top: -60px; inset-inline-start: 1rem; background: var(--ink); color: var(--card); padding: .5rem 1rem; border-radius: 8px; z-index: 99; }
.skip:focus { top: 1rem; }
.wrap { width: min(1180px, 100% - 2rem); margin-inline: auto; }
.muted { color: var(--ink-soft); }
.display { font-family: var(--font-display); font-weight: 400; letter-spacing: 0; }
.ic { width: 1.2em; height: 1.2em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── دکمه‌ها ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; cursor: pointer;
  padding: .6rem 1.1rem; border-radius: 12px; border: 1.5px solid var(--edge);
  background: var(--card); color: var(--ink); font-weight: 700; font-size: .95rem; line-height: 1.4;
  transition: transform .12s, box-shadow .12s, background .12s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--edge); }
.btn:active { transform: none; box-shadow: none; }
.btn-brand { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.btn-brand:hover { box-shadow: 3px 3px 0 var(--ink); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--card-2); box-shadow: none; transform: none; }
.btn-danger { color: var(--bad); border-color: var(--bad); }
.btn-danger:hover { box-shadow: 3px 3px 0 var(--bad); }
.btn-sm { padding: .3rem .7rem; font-size: .85rem; border-radius: 9px; }
.btn-block { width: 100%; }
.icon-btn { width: 42px; height: 42px; padding: 0; border-radius: 12px; }
[data-theme="dark"] .only-light, :root:not([data-theme="dark"]) .only-dark { display: none; }

/* ── سربرگ سایت ────────────────────────────────────────────────────────── */
.site-header { padding-block: .85rem; position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--desk) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent); }
.site-header .wrap { display: flex; align-items: center; gap: 1.25rem; }
.logo { font-family: var(--font-display); font-size: 2rem; line-height: 1; position: relative; padding-inline: .15rem; }
.logo::after { content: ""; position: absolute; inset-inline: 0; bottom: .02em; height: .36em; background: var(--hi); z-index: -1; border-radius: 3px; transform: rotate(-1.2deg); }
[data-theme="dark"] .logo::after { opacity: .85; }
.logo-wrap { isolation: isolate; }
.main-nav { display: flex; gap: .25rem; margin-inline-start: .75rem; }
.main-nav a { padding: .35rem .8rem; border-radius: 10px; font-weight: 500; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); }
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: .5rem; }
.user-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .25rem .8rem .25rem .3rem; border: 1.5px solid var(--edge); border-radius: 999px; background: var(--card); font-weight: 500; font-size: .92rem; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font-weight: 800; font-size: .9rem; flex: none; }
.menu-btn { display: none; }

/* ── دفتر: تب‌ها + برگه ─────────────────────────────────────────────────── */
.binder { margin-bottom: 3rem; }
.tabs { display: flex; align-items: flex-end; gap: 5px; overflow-x: auto; padding: 8px 14px 0; scrollbar-width: thin; }
.tab {
  flex: none; display: inline-flex; align-items: center; gap: .4rem; position: relative; top: 1.5px;
  padding: .5rem 1rem .4rem; border: 1.5px solid var(--edge); border-bottom: 0; border-radius: 14px 14px 0 0;
  background: var(--c, var(--card)); color: #15183A; font-weight: 700; font-size: .92rem; line-height: 1.5;
  transform: translateY(6px); transition: transform .14s ease;
}
.tab:hover { transform: translateY(2px); }
.tab[aria-current="page"] { transform: none; padding-block: .75rem .6rem; z-index: 2; }
.tab-plain { --c: var(--card); color: var(--ink); }
.tab .emoji { font-size: 1.05rem; line-height: 1; }
.sheet {
  position: relative; z-index: 1; background: var(--card); border: 1.5px solid var(--edge);
  border-radius: 0 0 22px 22px; overflow: hidden;
}
.sheet-body { padding: clamp(1.1rem, 3vw, 2rem); }
.band { background: var(--c); color: #15183A; padding: clamp(1.4rem, 4vw, 2.4rem) clamp(1.1rem, 3vw, 2rem); border-bottom: 1.5px solid var(--edge); display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.band .emoji { font-size: clamp(2.4rem, 6vw, 3.4rem); line-height: 1; }
.band h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 5vw, 3rem); }
.band p { max-width: 52ch; font-weight: 500; }
.band .band-action { margin-inline-start: auto; }
.band .btn { background: #15183A; color: #fff; border-color: #15183A; }
.band .btn:hover { box-shadow: 3px 3px 0 rgba(21, 24, 58, .35); }

/* ── صفحه‌ی اصلی ──────────────────────────────────────────────────────── */
.hero {
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.1rem, 3vw, 2.5rem) clamp(1.8rem, 4vw, 3rem);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px; border-bottom: 1.5px solid var(--edge);
}
.hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.3rem, 6.2vw, 4.6rem); line-height: 1.25; max-width: 18ch; }
.hero-lead { margin-top: 1rem; max-width: 52ch; color: var(--ink-soft); font-size: 1.1rem; }
.search { margin-top: 1.75rem; display: flex; max-width: 640px; border: 1.5px solid var(--edge); border-radius: 14px; background: var(--card); overflow: hidden; box-shadow: 4px 4px 0 var(--edge); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: .9rem 1.1rem; outline: none; }
.search button { border: 0; border-inline-start: 1.5px solid var(--edge); background: var(--hi); color: #15183A; padding: 0 1.4rem; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; }
.search:focus-within { box-shadow: 4px 4px 0 var(--brand); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: .5rem .9rem; margin-top: 1rem; color: var(--ink-soft); font-size: .88rem; font-weight: 700; }
.hero-trust span { display: inline-flex; align-items: center; gap: .25rem; }
.hero-stats { margin-top: 1.25rem; color: var(--ink-soft); font-size: .95rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.section-head h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.9rem; }
.section-head a { font-weight: 700; color: var(--brand); }

/* ── کارت آگهی ─────────────────────────────────────────────────────────── */
.ad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem; }
.ad-card {
  display: flex; flex-direction: column; gap: .65rem; padding: 1.1rem 1.15rem; background: var(--card);
  border: 1.5px solid var(--edge); border-radius: var(--radius); transition: transform .14s, box-shadow .14s;
}
.ad-card:hover, .ad-card:focus-visible { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 var(--c, var(--brand)); }
.ad-card:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.ad-card-top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.ad-card-top .chip-cat { margin: 0; }
.ad-meta { display: flex; flex-wrap: wrap; gap: .35rem .8rem; color: var(--ink-soft); font-size: .8rem; min-height: 1.4rem; }
.thumb-placeholder { display: grid; place-items: center; background: linear-gradient(135deg, var(--card-2), var(--c, var(--line))); }
.thumb-placeholder span { font-size: 2.5rem; filter: saturate(.9); }
.ad-card .ad-title { font-weight: 800; font-size: 1.05rem; line-height: 1.55; }
.ad-card .ad-desc { color: var(--ink-soft); font-size: .93rem; line-height: 1.75; flex: 1; }
.ad-foot { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding-top: .7rem; border-top: 1.5px dashed var(--line); font-size: .85rem; color: var(--ink-soft); }
.price { font-weight: 800; color: var(--ink); font-size: .98rem; }
.chip-cat { align-self: flex-start; display: inline-flex; gap: .3rem; align-items: center; padding: .12rem .65rem; border-radius: 999px; background: var(--c); color: #15183A; font-weight: 700; font-size: .8rem; border: 1.5px solid var(--edge); }
.thumb { aspect-ratio: 16/9; object-fit: cover; width: 100%; border-radius: 9px; border: 1.5px solid var(--line); background: var(--card-2); }
.file-tag { display: inline-flex; gap: .3rem; align-items: center; font-size: .8rem; color: var(--ink-soft); }

.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .05rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.badge-published { background: var(--ok-bg); color: var(--ok); }
.badge-pending { background: var(--warn-bg); color: var(--warn); }
.badge-rejected { background: var(--bad-bg); color: var(--bad); }
.badge-archived { background: var(--card-2); color: var(--ink-soft); }
.badge-official { background: var(--hi); color: #15183A; }

/* ── نوار ابزار فهرست ─────────────────────────────────────────────────── */
.toolbar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.search-inline { display: flex; flex: 1 1 260px; max-width: 420px; border: 1.5px solid var(--edge); border-radius: 12px; background: var(--card); overflow: hidden; }
.search-inline input { flex: 1; min-width: 0; border: 0; background: transparent; padding: .5rem .9rem; outline: none; }
.search-inline button { border: 0; background: transparent; padding: 0 .8rem; cursor: pointer; }
.chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.chip { padding: .22rem .85rem; border-radius: 999px; border: 1.5px solid var(--line); font-size: .88rem; font-weight: 500; background: var(--card); }
.chip:hover { border-color: var(--edge); }
.chip.is-active { background: var(--ink); color: var(--card); border-color: var(--ink); }

.pager { display: flex; gap: .35rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.pager a, .pager span { min-width: 40px; height: 40px; padding: 0 .8rem; display: inline-grid; place-items: center; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); font-weight: 700; }
.pager a:hover { border-color: var(--edge); }
.pager .is-current { background: var(--ink); color: var(--card); border-color: var(--ink); }

.empty { text-align: center; padding: 3rem 1rem; border: 2px dashed var(--line); border-radius: var(--radius); }
.empty .emoji { font-size: 2.6rem; }
.empty h3 { margin-top: .5rem; font-size: 1.15rem; }
.empty p { margin: .4rem auto 1.1rem; max-width: 40ch; color: var(--ink-soft); }

/* ── جزئیات آگهی ─────────────────────────────────────────────────────── */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; align-items: start; }
.detail-text { white-space: pre-line; line-height: 2; max-width: 68ch; }
.box { border: 1.5px solid var(--edge); border-radius: var(--radius); padding: 1.15rem; background: var(--card); }
.box + .box { margin-top: 1rem; }
.box h3 { font-size: 1rem; margin-bottom: .6rem; }
.kv { display: grid; gap: .6rem; margin: 0; }
.kv div { display: flex; justify-content: space-between; gap: 1rem; font-size: .93rem; border-bottom: 1.5px dashed var(--line); padding-bottom: .5rem; }
.kv div:last-child { border: 0; padding: 0; }
.kv dt { color: var(--ink-soft); } .kv dd { margin: 0; font-weight: 700; text-align: end; }
.big-price { font-family: var(--font-display); font-size: 2rem; line-height: 1.3; }
.cover { width: 100%; max-height: 460px; object-fit: contain; border-radius: var(--radius); border: 1.5px solid var(--line); background: var(--card-2); margin-bottom: 1.5rem; }
.attach { display: flex; align-items: center; gap: .85rem; padding: .9rem 1rem; border: 1.5px solid var(--edge); border-radius: var(--radius); margin-top: 1.5rem; background: var(--card-2); }
.attach .emoji { font-size: 1.8rem; }
.attach b { display: block; word-break: break-all; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; padding: .65rem .8rem; margin: .35rem 0 1rem; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--card) 82%, transparent); color: var(--ink-soft); font-size: .84rem; }
.breadcrumbs a { font-weight: 700; }
.breadcrumbs a:hover { color: var(--brand); }
.crumb-sep { color: var(--line); font-size: 1.15rem; line-height: 1; }
.crumb-current { color: var(--ink); font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: min(52vw, 34rem); }

/* ── فرم‌ها ────────────────────────────────────────────────────────── */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .35rem; }
.field > label, .field > .label { font-weight: 700; font-size: .93rem; }
.input, select.input, textarea.input {
  width: 100%; padding: .65rem .9rem; border: 1.5px solid var(--edge); border-radius: 11px; background: var(--card); outline: none;
}
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
textarea.input { min-height: 160px; resize: vertical; line-height: 1.9; }
.input[aria-invalid="true"] { border-color: var(--bad); }
.hint { font-size: .83rem; color: var(--ink-soft); }
.err { font-size: .85rem; color: var(--bad); font-weight: 500; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.check { display: flex; gap: .6rem; align-items: center; cursor: pointer; }
.check input { width: 1.15rem; height: 1.15rem; accent-color: var(--brand); }
.file-drop { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; border: 2px dashed var(--line); border-radius: 12px; cursor: pointer; background: var(--card-2); }
.file-drop:hover { border-color: var(--edge); }
.file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.form-actions { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.narrow { max-width: 460px; margin-inline: auto; }
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; }
.auth-aside { padding: clamp(1.5rem, 4vw, 3rem); background: var(--c); color: #15183A; display: flex; flex-direction: column; justify-content: center; gap: 1rem; border-inline-end: 1.5px solid var(--edge); }
.auth-aside h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.auth-aside ul { margin: 0; padding-inline-start: 1.2rem; font-weight: 500; }
.auth-form { padding: clamp(1.5rem, 4vw, 3rem); }

.flash-area { display: grid; gap: .6rem; margin-bottom: 1rem; }
.flash { display: flex; align-items: center; gap: .75rem; padding: .7rem 1rem; border-radius: 12px; border: 1.5px solid; font-weight: 500; }
.flash-ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok); }
.flash-err, .flash-error { background: var(--bad-bg); color: var(--bad); border-color: var(--bad); }
.flash-info { background: var(--card); border-color: var(--edge); }
.flash-close { margin-inline-start: auto; border: 0; background: transparent; cursor: pointer; font-size: 1.2rem; line-height: 1; color: inherit; }

/* ── فوتر ────────────────────────────────────────────────────────────── */
.site-footer { padding-block: 2rem 2.5rem; color: var(--ink-soft); font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; border-top: 1.5px solid var(--line); padding-top: 1.5rem; }
.site-footer nav { display: flex; gap: 1.25rem; }
.site-footer a:hover { color: var(--ink); }

/* ── داشبورد (پنل کاربر و مدیر) ────────────────────────────────────────── */
.dash { display: grid; grid-template-columns: 270px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--card); border-inline-end: 1.5px solid var(--edge); padding: 1.25rem 1rem; display: flex; flex-direction: column; gap: 1.25rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sb-label { font-size: .78rem; color: var(--ink-soft); font-weight: 700; padding-inline: .8rem; margin: .8rem 0 .3rem; }
.sb-nav { display: grid; gap: .2rem; }
.sb-nav a { display: flex; align-items: center; gap: .7rem; padding: .6rem .8rem; border-radius: 11px; font-weight: 500; }
.sb-nav a:hover { background: var(--card-2); }
.sb-nav a[aria-current="page"] { background: var(--ink); color: var(--card); font-weight: 700; }
.sb-nav .count { margin-inline-start: auto; font-size: .75rem; padding: 0 .5rem; border-radius: 999px; background: var(--hi); color: #15183A; font-weight: 800; }
.sb-user { margin-top: auto; display: flex; align-items: center; gap: .7rem; padding: .7rem; border: 1.5px solid var(--line); border-radius: 12px; }
.sb-user b { display: block; font-size: .9rem; line-height: 1.4; }
.sb-user small { color: var(--ink-soft); }
.dash-main { padding: 0 clamp(1rem, 3vw, 2rem) 3rem; min-width: 0; }
.topbar { display: flex; align-items: center; gap: .75rem; padding-block: 1.2rem; }
.topbar h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 3vw, 2.2rem); }
.topbar .spacer { margin-inline-start: auto; display: flex; gap: .5rem; align-items: center; }
.drawer-btn { display: none; }
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border: 1.5px solid var(--edge); border-radius: var(--radius); background: var(--card); overflow: hidden; margin-bottom: 1.25rem; }
.stat { padding: 1rem 1.2rem; border-inline-start: 1.5px solid var(--line); }
.stat:first-child { border-inline-start: 0; }
.stat b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 2.2rem; line-height: 1.2; }
.stat span { font-size: .88rem; color: var(--ink-soft); display: inline-flex; gap: .4rem; align-items: center; }
.dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--c, var(--brand)); border: 1.5px solid var(--edge); display: inline-block; }
.cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.panel { border: 1.5px solid var(--edge); border-radius: var(--radius); background: var(--card); }
.panel + .panel { margin-top: 1.25rem; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1.2rem; border-bottom: 1.5px solid var(--line); }
.panel-head h2 { font-size: 1.02rem; font-weight: 800; }
.panel-body { padding: 1.2rem; }
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: start; font-size: .8rem; color: var(--ink-soft); font-weight: 700; padding: .7rem 1rem; background: var(--card-2); white-space: nowrap; }
.table td { padding: .8rem 1rem; border-top: 1.5px solid var(--line); vertical-align: middle; }
.table .t-title { font-weight: 700; max-width: 320px; }
.table .t-title small { display: block; color: var(--ink-soft); font-weight: 400; }
.row-actions { display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; }
.row-actions form { margin: 0; }
details.inline { position: relative; }
details.inline summary { list-style: none; cursor: pointer; }
details.inline summary::-webkit-details-marker { display: none; }
details.inline form { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 5; width: 260px; padding: .8rem; background: var(--card); border: 1.5px solid var(--edge); border-radius: 12px; display: grid; gap: .5rem; box-shadow: 4px 4px 0 var(--edge); }
.bars { display: grid; gap: .7rem; }
.bar-row { display: grid; grid-template-columns: 7.5rem 1fr 2rem; gap: .7rem; align-items: center; font-size: .9rem; }
.bar-track { height: 14px; border: 1.5px solid var(--edge); border-radius: 99px; background: var(--card-2); overflow: hidden; }
.bar-fill { height: 100%; background: var(--c); }
.bar-row b { text-align: end; }
.quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .8rem; }
.quick a { display: flex; align-items: center; gap: .7rem; padding: .85rem 1rem; border: 1.5px solid var(--edge); border-radius: 12px; background: var(--c); color: #15183A; font-weight: 800; transition: transform .12s, box-shadow .12s; }
.quick a:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--edge); }
.quick .emoji { font-size: 1.5rem; }
.list-plain { list-style: none; margin: 0; padding: 0; display: grid; }
.list-plain li { display: flex; align-items: center; gap: .75rem; padding: .7rem 0; border-top: 1.5px dashed var(--line); }
.list-plain li:first-child { border-top: 0; padding-top: 0; }
.swatch { width: 2.2rem; height: 2.2rem; border-radius: 10px; border: 1.5px solid var(--edge); display: grid; place-items: center; background: var(--c); font-size: 1.15rem; flex: none; }
.notice { padding: .8rem 1rem; border: 1.5px solid var(--edge); border-radius: 12px; background: var(--hi); color: #15183A; font-weight: 500; }

.error-page { text-align: center; padding: clamp(2.5rem, 8vw, 5rem) 1rem; }
.error-page .code { font-family: var(--font-display); font-size: clamp(5rem, 16vw, 9rem); line-height: 1; }

/* ── واکنش‌گرایی ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .detail, .cols, .auth-grid { grid-template-columns: 1fr; }
  .auth-aside { border-inline-end: 0; border-bottom: 1.5px solid var(--edge); }
  .dash { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset-block: 0; inset-inline-start: 0; width: min(290px, 86vw); z-index: 60; transform: translateX(100%); transition: transform .2s; }
  .sidebar.is-open { transform: none; box-shadow: 0 0 0 100vmax rgba(10, 12, 30, .55); }
  .drawer-btn { display: inline-flex; }
}
@media (max-width: 720px) {
  .site-header { padding-block: .65rem; }
  .wrap { width: min(100% - 1rem, 1180px); }
  .hero { padding-inline: 1rem; }
  .hero h1 { font-size: clamp(2rem, 12vw, 3.25rem); }
  .search { box-shadow: 3px 3px 0 var(--edge); }

  .main-nav { display: none; position: absolute; inset-inline: 1rem; top: calc(100% + .5rem); z-index: 50; flex-direction: column; background: var(--card); border: 1.5px solid var(--edge); border-radius: 14px; padding: .5rem; box-shadow: 4px 4px 0 var(--edge); margin: 0; }
  .main-nav.is-open { display: flex; }
  .site-header .wrap { position: relative; }
  .menu-btn { display: inline-flex; }
  .row2 { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  .breadcrumbs { margin-top: .15rem; padding: .55rem .65rem; }
  .crumb-current { max-width: 48vw; }
  .ad-grid { grid-template-columns: 1fr; }
  .ticket-row, .ticket-row-wide { grid-template-columns: 1fr; }
  .band .band-action { margin-inline-start: 0; }
}
@media (max-width: 520px) {
  .hero-actions .btn { width: 100%; }
  .events-head .btn { width: 100%; }
  .form-actions .btn { width: 100%; }
  .detail { gap: 1rem; }
  .box { padding: 1rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal .tab { animation: tab-in .5s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 45ms); }
  @keyframes tab-in { from { transform: translateY(40px); opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.file-drop { position: relative; }
.file-drop:focus-within { outline: 3px solid var(--brand); outline-offset: 2px; }
.file-drop .emoji { font-size: 1.6rem; }

/* ── رویدادهای حضوری: بلیت‌ها ─────────────────────────────────────────── */
.events-band { background: #15183A; color: #F4F5FF; border-bottom: 1.5px solid var(--edge); }
[data-theme="dark"] .events-band { background: #232766; }
.events-inner { padding: clamp(1.4rem, 3.5vw, 2.4rem) clamp(1.1rem, 3vw, 2rem); }
.events-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.4rem; }
.events-head h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.events-head p { color: #C9CCF0; }
.events-head .btn { background: var(--hi); color: #15183A; border-color: var(--hi); }
.events-head .btn:hover { box-shadow: 3px 3px 0 rgba(255, 255, 255, .35); }
.ticket-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.1rem; }
.ticket-row-wide { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.ticket { display: grid; grid-template-columns: 92px 1fr; background: var(--card); color: var(--ink); border-radius: var(--radius); border: 1.5px solid var(--edge); overflow: hidden; transition: transform .14s, box-shadow .14s; }
.ticket:hover { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 var(--c); }
.ticket-stub { background: var(--c); color: #15183A; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: .8rem .4rem; border-inline-end: 2px dashed #15183A; text-align: center; }
.t-day { font-family: var(--font-display); font-size: 2.6rem; line-height: 1.1; }
.t-month { font-weight: 800; font-size: .95rem; }
.ticket-main { padding: .95rem 1.1rem; display: flex; flex-direction: column; gap: .3rem; }
.ticket-main h3 { font-size: 1.05rem; font-weight: 800; line-height: 1.55; }
.ticket-meta { font-size: .87rem; color: var(--ink-soft); }
.is-past .ticket { opacity: .72; }

/* ── کیف امتیاز ───────────────────────────────────────────────────────── */
.wallet-balance .panel-body { display: grid; gap: .3rem; }
.wallet-amount { font-family: var(--font-display); font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: 1.2; }
.wallet-amount span { font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--ink-soft); }
.packs { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .6rem; }
.pack { cursor: pointer; }
.pack input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pack span { display: block; padding: .7rem .8rem; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); line-height: 1.5; }
.pack small { display: block; color: var(--ink-soft); font-size: .8rem; }
.pack input:checked + span { border-color: var(--edge); background: var(--hi); color: #15183A; box-shadow: 3px 3px 0 var(--edge); }
.pack input:checked + span small { color: #15183A; }
.pack input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.amt-plus { color: var(--ok); } .amt-minus { color: var(--bad); }
@media (max-width: 900px) { .cols[style] { grid-template-columns: 1fr !important; } }
