/* =========================================================================
   نگارستان — سامانه ارسال آثار حوزه هنری شیراز
   استایل اصلی (موبایل‌فرست، RTL)
   ========================================================================= */

/* ---------- فونت ---------- */
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }

/* ---------- توکن‌ها ---------- */
:root {
  --font: "Vazirmatn", "Tahoma", "Segoe UI", system-ui, sans-serif;
  --bg: #f7f3ec;
  --bg-2: #efe8dd;
  --surface: #fffdf9;
  --surface-2: #fffefb;
  --surface-3: #f4eee4;
  --glass: rgba(255, 253, 249, .78);
  --ink: #211d18;
  --ink-2: #443d34;
  --muted: #837a6c;
  --muted-2: #9b9183;
  --line: #e7ddcf;
  --line-strong: #d8cbba;
  --brand: #b4552c;
  --brand-2: #d47a4a;
  --brand-soft: #f6e2d5;
  --brand-ink: #8d3f1e;
  --teal: #0e6e68;
  --teal-soft: #dcebe9;
  --gold: #b98a34;
  --gold-soft: #f6ebd2;
  --success: #0e8a6f;
  --success-soft: #dff0e9;
  --danger: #bd493c;
  --danger-soft: #f8e2de;
  --info: #3d6c8e;
  --night: #17130f;
  --night-2: #241c15;
  --shadow-sm: 0 2px 10px rgba(53, 39, 25, .05);
  --shadow: 0 10px 30px -12px rgba(53, 39, 25, .18);
  --shadow-lg: 0 30px 70px -30px rgba(35, 25, 16, .38);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --header-h: 66px;
  --nav-h: 76px;
  --max: 1180px;
  --ease: cubic-bezier(.22, .8, .3, 1);
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23b4552c' stroke-opacity='.5' stroke-width='1'%3E%3Cpath d='M48 0 58 38 96 48 58 58 48 96 38 58 0 48 38 38Z'/%3E%3Ccircle cx='48' cy='48' r='9'/%3E%3Cpath d='M48 30v36M30 48h36'/%3E%3C/g%3E%3C/svg%3E");
}

[data-theme="dark"] {
  --bg: #12100d;
  --bg-2: #191510;
  --surface: #1c1813;
  --surface-2: #221d17;
  --surface-3: #282219;
  --glass: rgba(24, 20, 15, .8);
  --ink: #f4eee4;
  --ink-2: #d6cbbb;
  --muted: #a2988a;
  --muted-2: #877d70;
  --line: #312a22;
  --line-strong: #433a2e;
  --brand: #e08a5c;
  --brand-2: #e9a578;
  --brand-soft: #372419;
  --brand-ink: #f3b28d;
  --teal: #58b7ac;
  --teal-soft: #17322f;
  --gold: #daba72;
  --gold-soft: #332a19;
  --success: #4fbf9f;
  --success-soft: #14322a;
  --danger: #ef8577;
  --danger-soft: #3a1e1a;
  --info: #7fa9c9;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .3);
  --shadow: 0 12px 32px -12px rgba(0, 0, 0, .55);
  --shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, .7);
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23e08a5c' stroke-opacity='.4' stroke-width='1'%3E%3Cpath d='M48 0 58 38 96 48 58 58 48 96 38 58 0 48 38 38Z'/%3E%3Ccircle cx='48' cy='48' r='9'/%3E%3Cpath d='M48 30v36M30 48h36'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- ریست ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.75;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.sheet-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--brand); color: #fff; }
main { min-height: 60vh; }
.skip-link { position: fixed; inset-inline-start: 16px; top: -100px; z-index: 999; background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 0 0 12px 12px; transition: top .2s; }
.skip-link:focus { top: 0; }

/* ---------- پس‌زمینه تزئینی ---------- */
.app-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.app-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--pattern);
  background-size: 96px 96px;
  opacity: .035;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
}
.app-bg .glow { position: absolute; width: 52vw; height: 52vw; border-radius: 50%; filter: blur(90px); opacity: .16; }
.app-bg .glow-a { background: radial-gradient(circle, #e0a15c, transparent 65%); top: -18vw; inset-inline-end: -12vw; }
.app-bg .glow-b { background: radial-gradient(circle, #2f8f88, transparent 65%); top: 30vw; inset-inline-start: -20vw; opacity: .12; }

/* ---------- عمومی ---------- */
.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.page { padding-top: 14px; animation: pageIn .5s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.stack { display: grid; gap: var(--gap, 16px); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.strong { font-weight: 700; }
.num { font-variant-numeric: tabular-nums; }
.ico { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: -.2em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; color: var(--brand);
  letter-spacing: 0;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .55; }
.eyebrow.no-line::before { display: none; }

.section { margin-top: 52px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.section-head h2 { font-size: clamp(21px, 3.4vw, 29px); font-weight: 800; line-height: 1.4; margin-top: 4px; }
.section-head p { color: var(--muted); font-size: 13.5px; margin-top: 4px; max-width: 48ch; }
.link-more { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 13.5px; font-weight: 700; color: var(--brand); padding: 8px 2px; }
.link-more .ico { transition: transform .25s var(--ease); }
.link-more:hover .ico { transform: translateX(-4px); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 20px; }

/* ---------- دکمه‌ها ---------- */
.btn {
  --btn-bg: var(--brand); --btn-ink: #fff; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--btn-bg); color: var(--btn-ink); border: 1px solid var(--btn-bd);
  min-height: 46px; padding: 10px 22px; border-radius: 14px;
  font-size: 14.5px; font-weight: 700; line-height: 1.4; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, opacity .2s;
  box-shadow: 0 10px 22px -14px color-mix(in srgb, var(--btn-bg) 80%, transparent);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -16px color-mix(in srgb, var(--btn-bg) 85%, transparent); }
.btn:active { transform: translateY(0) scale(.99); }
.btn .ico { width: 19px; height: 19px; }
.btn-primary { background: linear-gradient(135deg, #c05c2f, #a94b24); color: #fff; }
[data-theme="dark"] .btn-primary { background: linear-gradient(135deg, #e08a5c, #b9613a); color: #1b120b; }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); box-shadow: none; }
.btn-ghost:hover { background: var(--surface-3); }
.btn-soft { background: var(--brand-soft); color: var(--brand-ink); border-color: transparent; box-shadow: none; }
.btn-light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.3); backdrop-filter: blur(8px); box-shadow: none; }
.btn-light:hover { background: rgba(255,255,255,.22); }
.btn-white { background: #fffaf2; color: #221a13; border-color: transparent; }
.btn-danger { background: var(--danger-soft); color: var(--danger); box-shadow: none; }
.btn-sm { min-height: 38px; padding: 7px 15px; font-size: 13px; border-radius: 11px; }
.btn-lg { min-height: 54px; padding: 13px 28px; font-size: 15.5px; border-radius: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-2); background: transparent; border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  position: relative; flex: none;
}
.icon-btn:hover { background: var(--surface-3); color: var(--ink); }
.icon-btn:active { transform: scale(.95); }
.icon-btn .ico { width: 21px; height: 21px; }
.icon-btn.bordered { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-sm); }
.icon-btn.sm { width: 34px; height: 34px; border-radius: 10px; }
.icon-btn.sm .ico { width: 17px; height: 17px; }
.icon-btn.glass { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.25); color: #fff; backdrop-filter: blur(10px); }

/* ---------- برچسب/چیپ ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600; line-height: 1;
  padding: 7px 10px; border-radius: 999px;
  background: var(--surface-3); color: var(--ink-2); white-space: nowrap;
  border: 1px solid transparent;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent); }
.badge.status-open { color: var(--success); background: var(--success-soft); }
.badge.status-closing { color: var(--danger); background: var(--danger-soft); }
.badge.status-soon { color: var(--gold); background: var(--gold-soft); }
.badge.status-closed { color: var(--muted); background: var(--surface-3); }
.badge.glass { background: rgba(18,14,10,.42); color: #fff; backdrop-filter: blur(12px); border-color: rgba(255,255,255,.16); }
.badge.gold { color: #4a320c; background: linear-gradient(135deg, #eac57e, #d4a24a); }
.badge.brand { color: var(--brand-ink); background: var(--brand-soft); }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2); font-size: 12.5px; font-weight: 600;
  transition: border-color .2s, background .2s, color .2s, transform .2s;
  white-space: nowrap;
}
a.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip-sm { padding: 5px 9px; font-size: 11.5px; border-radius: 9px; }
.chip .cat-dot { display: inline-flex; color: var(--c); }
.chip .cat-dot .ico { width: 15px; height: 15px; }
.chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.cat-chip { background: var(--surface); }

/* ---------- پترن / تزئین ---------- */
.pattern-box { position: relative; isolation: isolate; overflow: hidden; }
.pattern-box::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--pattern); background-size: 110px 110px;
  opacity: .07; z-index: -1;
  mask-image: radial-gradient(circle at 80% 0%, #000, transparent 70%);
}

/* ---------- هدر ---------- */
.app-header {
  position: sticky; top: 0; z-index: 60;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.app-header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px -26px rgba(0,0,0,.4); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 11px; margin-inline-end: auto; min-width: 0; }
.brand-logo { width: 42px; height: 42px; flex: none; filter: drop-shadow(0 6px 12px rgba(180,85,44,.28)); }
.brand-text { display: grid; line-height: 1.25; min-width: 0; }
.brand-name { font-size: 18px; font-weight: 800; letter-spacing: -.2px; }
.brand-sub { font-size: 10.5px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.header-nav { display: none; align-items: center; gap: 2px; }
.header-nav a {
  padding: 9px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--muted);
  transition: color .2s, background .2s;
}
.header-nav a:hover { color: var(--ink); background: var(--surface-3); }
.header-nav a.is-active { color: var(--brand); background: var(--brand-soft); }
.header-actions { display: flex; align-items: center; gap: 3px; }
.header-actions .divider { width: 1px; height: 26px; background: var(--line); margin-inline: 7px; }
.header-avatar { display: inline-flex; padding: 3px; border-radius: 50%; border: 1px solid transparent; transition: border-color .2s; }
.header-avatar:hover { border-color: var(--brand); }
.header-avatar .avatar { --av-size: 34px !important; }
.notif-dot { position: absolute; top: 8px; inset-inline-end: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); border: 2px solid var(--bg); }

/* ---------- هیرو ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: var(--radius-xl);
  background: #1b140e; color: #fff; margin-top: 8px;
  min-height: 560px; display: flex; align-items: flex-end;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 50% 42%; transform: scale(1.03); animation: heroZoom 24s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.1); } to { transform: scale(1.03); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(17,12,8,.18) 0%, rgba(17,12,8,.38) 42%, rgba(17,12,8,.93) 100%),
    linear-gradient(90deg, rgba(17,12,8,.65) 0%, rgba(17,12,8,.1) 55%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: var(--pattern); background-size: 130px 130px; opacity: .09;
  mask-image: linear-gradient(105deg, #000, transparent 55%);
}
.hero-inner {
  position: relative; z-index: 2; width: 100%;
  padding: 30px 22px 24px; display: grid; gap: 26px; align-items: end;
}
.hero-copy { max-width: 640px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(10px); font-size: 11.5px; font-weight: 600; color: #f6e7d8; }
.hero-kicker .ico { width: 15px; height: 15px; color: #e9b67f; }
.hero h1 { font-size: clamp(31px, 6.4vw, 58px); font-weight: 800; line-height: 1.34; margin-top: 16px; letter-spacing: -.6px; text-shadow: 0 4px 30px rgba(0,0,0,.25); }
.hero h1 em { font-style: normal; color: #f0b67d; position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; inset-inline: 2px; bottom: 3px; height: 9px; border-radius: 5px; background: rgba(224,138,92,.28); z-index: -1; }
.hero-lead { color: rgba(255,247,238,.82); font-size: 14px; line-height: 1.85; margin-top: 12px; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.15); }
.hero-meta div { display: flex; align-items: baseline; gap: 6px; font-size: 12px; color: rgba(255,247,238,.66); }
.hero-meta b { color: #fff; font-size: 17px; font-weight: 700; }
.hero-card {
  background: rgba(23,17,11,.52); border: 1px solid rgba(255,255,255,.18);
  border-radius: 24px; padding: 18px; backdrop-filter: blur(22px) saturate(1.1);
  box-shadow: 0 24px 60px -34px rgba(0,0,0,.7);
  max-width: 380px;
}
.hero-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hero-card-top .label { font-size: 11.5px; color: rgba(255,247,238,.68); display: flex; align-items: center; gap: 6px; }
.hero-card h2 { font-size: 19px; font-weight: 800; margin-top: 10px; line-height: 1.5; }
.hero-card p { font-size: 12px; color: rgba(255,247,238,.65); margin-top: 2px; }
.hero-card .cd { margin-top: 14px; }
.hero-card-link { display: flex; align-items: center; justify-content: space-between; margin-top: 15px; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.14); font-size: 12.5px; font-weight: 600; color: #f2c79c; }
.hero-card-link:hover .ico { transform: translateX(-4px); }
.hero-card-link .ico { transition: transform .25s; }

/* ---------- شمارش معکوس ---------- */
.cd { display: flex; align-items: stretch; gap: 7px; direction: ltr; }
.cd-unit {
  flex: 1; min-width: 0; display: grid; justify-items: center; gap: 2px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px; padding: 8px 4px 6px; color: #fff;
  backdrop-filter: blur(6px);
}
.cd-unit b { font-size: clamp(19px, 3vw, 24px); font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.cd-unit small { font-size: 9.5px; color: rgba(255,255,255,.62); font-weight: 500; }
.cd-sep { align-self: center; color: rgba(255,255,255,.4); font-weight: 700; font-size: 13px; padding-bottom: 10px; }
.cd-over { width: 100%; }
.cd-ended { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 600; }
.cd-light .cd-unit { background: var(--surface); border-color: var(--line); color: var(--ink); }
.cd-light .cd-unit small { color: var(--muted); }
.cd-light .cd-sep { color: var(--muted-2); }
.cd-light .cd-ended { color: var(--muted); }
.cd-compact { gap: 4px; }
.cd-compact .cd-unit { padding: 5px 2px 3px; border-radius: 8px; }
.cd-compact .cd-unit b { font-size: 15px; }
.cd-compact .cd-unit small { font-size: 8px; }
.cd-compact .cd-sep { font-size: 10px; padding-bottom: 6px; }

/* ---------- برچسب وضعیت روی کارت ---------- */
.cover-badges { position: absolute; top: 12px; inset-inline-start: 12px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 3; }
.cover-badges.end { inset-inline-start: auto; inset-inline-end: 12px; }
.cover-badges .badge { backdrop-filter: blur(10px); }

/* ---------- کارت جشنواره ---------- */
.festival-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.fcard { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.fcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.fcard-cover { position: relative; aspect-ratio: 16 / 9.6; overflow: hidden; background: var(--surface-3); }
.fcard-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.fcard:hover .fcard-cover img { transform: scale(1.045); }
.fcard-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,7,4,.32) 0%, transparent 32%, transparent 55%, rgba(10,7,4,.55) 100%); pointer-events: none; }
.fcard-save { position: absolute; inset-inline-end: 10px; top: 10px; z-index: 4; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(16,12,8,.35); border: 1px solid rgba(255,255,255,.22); color: #fff; backdrop-filter: blur(10px); transition: background .2s, color .2s, transform .2s; }
.fcard-save:hover { background: rgba(16,12,8,.55); }
.fcard-save .ico { width: 17px; height: 17px; }
.fcard-save.is-saved { background: #fff7ec; color: var(--brand); border-color: #fff7ec; }
.fcard-save.is-saved .ico { fill: currentColor; }
.fcard-cover-bottom { position: absolute; inset-inline: 14px; bottom: 12px; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #fff; }
.fcard-kicker { font-size: 10.5px; font-weight: 600; color: rgba(255,255,255,.78); display: flex; align-items: center; gap: 6px; }
.fcard-body { padding: 17px 17px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.fcard h3 { font-size: 17px; font-weight: 800; line-height: 1.55; }
.fcard h3 a:hover { color: var(--brand); }
.fcard-desc { font-size: 12px; color: var(--muted); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fcard-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 11px; color: var(--muted); align-items: center; }
.fcard-meta span { display: inline-flex; align-items: center; gap: 5px; }
.fcard-meta .ico { width: 14px; height: 14px; color: var(--muted-2); }
.fcard-deadline { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 13px; background: var(--surface-3); margin-top: auto; }
.fcard-deadline .cd { flex: 1; max-width: 210px; }
.fcard-deadline .cd-light .cd-unit { background: var(--surface); }
.fcard-deadline-label { display: grid; gap: 2px; flex: none; }
.fcard-deadline-label b { font-size: 11px; font-weight: 700; color: var(--ink-2); }
.fcard-deadline-label small { font-size: 9.5px; color: var(--muted); }
.fcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 2px; }
.fcard-prize { font-size: 11.5px; color: var(--muted); }
.fcard-prize b { display: block; font-size: 12.5px; color: var(--ink); font-weight: 700; }
.fcard-arrow { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; flex: none; transition: background .2s, color .2s, transform .2s; }
.fcard:hover .fcard-arrow { background: var(--brand); color: #fff; transform: translateX(-3px); }

/* ---------- دسته‌بندی ---------- */
.cat-scroller { display: flex; gap: 9px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.cat-scroller::-webkit-scrollbar { display: none; }
.cat-tile { display: grid; justify-items: center; gap: 7px; flex: none; width: 82px; padding: 12px 4px 9px; border-radius: 17px; border: 1px solid transparent; transition: background .2s, border-color .2s, transform .2s; scroll-snap-align: start; }
.cat-tile:hover { background: var(--surface); border-color: var(--line); transform: translateY(-2px); }
.cat-tile-ico { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 11%, var(--surface)); color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 16%, transparent); }
.cat-tile-ico .ico { width: 23px; height: 23px; }
.cat-tile span { font-size: 11.5px; font-weight: 600; color: var(--ink-2); text-align: center; line-height: 1.4; }
.cat-tile small { font-size: 9.5px; color: var(--muted); margin-top: -5px; }

/* ---------- نگارخانه ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.art-card { position: relative; border-radius: 18px; overflow: hidden; background: var(--surface-3); aspect-ratio: 4 / 5; cursor: pointer; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.art-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.art-card:hover img { transform: scale(1.05); }
.art-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,7,4,.28) 0%, transparent 30%, transparent 48%, rgba(10,7,4,.82) 100%); }
.art-card-body { position: absolute; inset-inline: 13px; bottom: 12px; z-index: 2; color: #fff; }
.art-card-body h3 { font-size: 13.5px; font-weight: 700; line-height: 1.5; }
.art-card-body p { display: flex; align-items: center; gap: 5px; font-size: 10.5px; color: rgba(255,255,255,.72); margin-top: 1px; }
.art-card-top { position: absolute; inset: 10px 10px auto; z-index: 3; display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.art-card-top .badge { font-size: 9.5px; padding: 5px 8px; background: rgba(16,12,8,.4); color: #fff; backdrop-filter: blur(8px); border-color: rgba(255,255,255,.14); }
.like-btn { display: inline-flex; align-items: center; gap: 4px; background: rgba(16,12,8,.4); border: 1px solid rgba(255,255,255,.14); color: #fff; border-radius: 999px; padding: 5px 9px; font-size: 10.5px; font-weight: 600; backdrop-filter: blur(8px); transition: background .2s, color .2s, transform .2s; }
.like-btn .ico { width: 14px; height: 14px; }
.like-btn:hover { background: rgba(16,12,8,.62); }
.like-btn.is-liked { background: #fff6ea; color: var(--brand); border-color: #fff6ea; }
.like-btn.is-liked .ico { fill: currentColor; animation: pop .35s var(--ease); }
@keyframes pop { 50% { transform: scale(1.35); } }
.gallery-filters { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.gallery-filters::-webkit-scrollbar { display: none; }
.gallery-filters .chip { cursor: pointer; }
.gallery-filters .chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- برندگان ---------- */
.winners-band {
  position: relative; overflow: hidden; border-radius: var(--radius-xl); color: #f8efe2;
  background: radial-gradient(circle at 85% -20%, #6a4524 0%, transparent 50%), radial-gradient(circle at 0% 110%, #3a2117 0%, transparent 55%), #1d1610;
  padding: 28px 20px 24px; isolation: isolate;
  border: 1px solid rgba(255,255,255,.08);
}
.winners-band::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern); background-size: 120px; opacity: .07; z-index: -1; mask-image: linear-gradient(120deg, #000, transparent 60%); }
.winners-band-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.winners-band-head h2 { font-size: clamp(22px, 3.4vw, 30px); font-weight: 800; line-height: 1.4; }
.winners-band-head p { color: rgba(248,239,226,.6); font-size: 13px; margin-top: 4px; }
.winners-band-head .link-more { color: #e6b57f; }
.podium { display: grid; grid-template-columns: 1fr; gap: 12px; }
.podium-card { display: flex; gap: 13px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 12px; transition: background .25s, transform .25s; cursor: pointer; text-align: start; }
.podium-card:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }
.podium-thumb { width: 86px; height: 100px; border-radius: 12px; overflow: hidden; flex: none; position: relative; }
.podium-thumb img { width: 100%; height: 100%; object-fit: cover; }
.podium-rank { position: absolute; top: 5px; inset-inline-start: 5px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; background: linear-gradient(135deg, #f0cf8b, #c99b3f); color: #3d2707; font-size: 12px; font-weight: 800; }
.podium-card:nth-child(2) .podium-rank { background: linear-gradient(135deg, #e8e8e8, #b9b9b9); color: #333; }
.podium-card:nth-child(3) .podium-rank { background: linear-gradient(135deg, #e5b28b, #b9784a); color: #3c2110; }
.podium-info { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.podium-info small { font-size: 10px; color: #e2b275; font-weight: 600; }
.podium-info h3 { font-size: 14px; font-weight: 700; line-height: 1.5; }
.podium-info p { font-size: 11px; color: rgba(248,239,226,.6); }
.podium-info .artist-mini { display: flex; align-items: center; gap: 6px; margin-top: 5px; font-size: 11px; color: rgba(248,239,226,.8); }
.podium-info .avatar { --av-size: 22px !important; }
.podium-empty { color: rgba(255,255,255,.55); font-size: 13px; }

.tabs-pill { display: flex; gap: 6px; overflow-x: auto; padding: 4px; background: var(--surface-3); border-radius: 14px; scrollbar-width: none; }
.tabs-pill::-webkit-scrollbar { display: none; }
.tabs-pill button { flex: none; padding: 9px 15px; border-radius: 10px; font-size: 12.5px; font-weight: 600; color: var(--muted); transition: background .2s, color .2s, box-shadow .2s; }
.tabs-pill button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.tabs-pill button:hover { color: var(--ink); }

.winner-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
.winner-card { display: flex; gap: 12px; padding: 11px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s; text-align: start; }
.winner-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.winner-card .wthumb { width: 78px; height: 96px; border-radius: 12px; overflow: hidden; position: relative; flex: none; }
.winner-card .wthumb img { width: 100%; height: 100%; object-fit: cover; }
.winner-card .medal { position: absolute; top: 5px; inset-inline-start: 5px; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--gold); color: #3a2607; font-size: 11px; font-weight: 800; }
.winner-card.silver .medal { background: #cfcfcf; color: #2c2c2c; }
.winner-card.bronze .medal { background: #cd8d5b; color: #301a0a; }
.winner-card.mention .medal { background: var(--surface-3); color: var(--muted); }
.winner-info { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; }
.winner-info small { font-size: 10px; color: var(--muted); }
.winner-info h3 { font-size: 14px; font-weight: 700; }
.winner-info .artist-mini { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); margin-top: 3px; }
.winner-info .artist-mini .avatar { --av-size: 21px !important; }
.winner-note { font-size: 11px; color: var(--muted); margin-top: 5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.winner-hero { border-radius: var(--radius-lg); overflow: hidden; position: relative; min-height: 320px; display: flex; align-items: flex-end; color: #fff; background: #1a130d; }
.winner-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.winner-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,10,6,.15), rgba(15,10,6,.9)); }
.winner-hero-body { position: relative; z-index: 2; padding: 22px; display: grid; gap: 6px; }
.winner-hero-body h2 { font-size: clamp(21px, 4vw, 32px); font-weight: 800; }
.winner-hero-body p { font-size: 12.5px; color: rgba(255,247,238,.75); }
.winner-hero-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }

/* ---------- هنرمندان ---------- */
.artist-scroller { display: flex; gap: 10px; overflow-x: auto; padding: 2px 1px 10px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.artist-scroller::-webkit-scrollbar { display: none; }
.artist-mini-card { flex: none; width: 142px; scroll-snap-align: start; display: grid; justify-items: center; gap: 6px; padding: 15px 10px 12px; border-radius: 19px; background: var(--surface); border: 1px solid var(--line); text-align: center; transition: transform .25s, border-color .25s, box-shadow .25s; }
.artist-mini-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.artist-mini-card .avatar { --av-size: 58px !important; }
.artist-mini-card h3 { font-size: 12.5px; font-weight: 700; margin-top: 2px; }
.artist-mini-card p { font-size: 10px; color: var(--muted); }
.artist-mini-card small { font-size: 9.5px; color: var(--muted-2); display: flex; align-items: center; gap: 4px; }
.artist-mini-card small .ico { width: 12px; height: 12px; }
.artist-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.artist-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.artist-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.artist-card-cover { height: 84px; position: relative; overflow: hidden; background: var(--surface-3); }
.artist-card-cover img { width: 100%; height: 100%; object-fit: cover; opacity: .55; filter: saturate(.8); }
.artist-card-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, var(--surface)); }
.artist-card .avatar { --av-size: 52px !important; margin: -27px auto 0; position: relative; z-index: 2; border: 3px solid var(--surface); }
.artist-card-body { padding: 5px 12px 14px; text-align: center; display: grid; gap: 2px; }
.artist-card-body h3 { font-size: 13px; font-weight: 700; }
.artist-card-body p { font-size: 10.5px; color: var(--muted); }
.artist-card-body small { font-size: 9.5px; color: var(--muted-2); display: flex; align-items: center; justify-content: center; gap: 3px; }
.artist-card-body small .ico { width: 11px; height: 11px; }

/* ---------- آواتار ---------- */
.avatar { --av: #0e6e68; --av-size: 44px; width: var(--av-size); height: var(--av-size); flex: none; position: relative; display: inline-grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--av) 55%, #fff), var(--av)); color: #fff; font-weight: 700; font-size: calc(var(--av-size) * .34); overflow: hidden; isolation: isolate; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
.avatar::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 75% 15%, rgba(255,255,255,.38), transparent 40%), linear-gradient(145deg, transparent 40%, rgba(0,0,0,.22)); }
.avatar-portrait { background: none; }
.avatar-portrait::before { display: none; }
.avatar-art, .avatar-photo { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; display: block; }
.avatar-photo { object-fit: cover; object-position: center 38%; }
.avatar-ring { position: absolute; inset: 4px; border-radius: 50%; border: 1px dashed rgba(255,255,255,.3); }
.avatar-text { position: relative; z-index: 2; letter-spacing: -1px; text-shadow: 0 1px 4px rgba(0,0,0,.2); }

/* ---------- آمار ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat-card { display: flex; align-items: center; gap: 12px; padding: 15px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.stat-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.stat-ico .ico { width: 20px; height: 20px; }
.stat-card b { display: block; font-size: 20px; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat-card span { font-size: 10.5px; color: var(--muted); }

/* ---------- پاورقی ---------- */
.site-footer { margin-top: 58px; border-top: 1px solid var(--line); background: var(--surface); padding: 34px 0 110px; }
.footer-grid { display: grid; gap: 26px; }
.footer-brand p { color: var(--muted); font-size: 12.5px; line-height: 1.9; margin-top: 10px; max-width: 38ch; }
.footer-col h4 { font-size: 12.5px; font-weight: 700; margin-bottom: 10px; }
.footer-col a, .footer-col span { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--muted); padding: 3px 0; }
.footer-col a:hover { color: var(--brand); }
.footer-col .ico { width: 14px; height: 14px; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 10.5px; color: var(--muted-2); }
.footer-bottom .demo-note { display: inline-flex; align-items: center; gap: 5px; }

/* ---------- باتم نویگیشن ---------- */
.bottom-nav {
  position: fixed; z-index: 70; inset-inline: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--line);
  border-radius: 24px; padding: 6px 6px 7px;
  backdrop-filter: blur(24px) saturate(1.3);
  box-shadow: 0 18px 50px -22px rgba(35,24,14,.45), 0 2px 8px rgba(35,24,14,.05);
  max-width: 520px; margin-inline: auto;
}
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 2px 3px; border-radius: 15px; color: var(--muted); position: relative; transition: color .2s; }
.nav-ico { width: 39px; height: 33px; border-radius: 11px; display: grid; place-items: center; transition: background .25s var(--ease), color .25s, transform .25s; }
.nav-ico .ico { width: 20px; height: 20px; }
.nav-label { font-size: 9.5px; font-weight: 600; }
.nav-item.is-active { color: var(--brand); }
.nav-item.is-active .nav-ico { background: var(--brand-soft); }
.nav-item.is-active .nav-label { font-weight: 700; }
.nav-item:not(.nav-submit):hover .nav-ico { background: var(--surface-3); }
.nav-submit { color: var(--brand); }
.nav-submit .nav-ico {
  width: 52px; height: 52px; border-radius: 18px; margin-top: -24px; margin-bottom: 3px;
  background: linear-gradient(140deg, #cf6c3c, #a94b24); color: #fff;
  box-shadow: 0 10px 22px -8px rgba(169,75,36,.65), inset 0 1px 0 rgba(255,255,255,.25);
  border: 3px solid color-mix(in srgb, var(--surface) 92%, transparent);
}
.nav-submit .nav-ico .ico { width: 24px; height: 24px; }
.nav-submit.is-active .nav-ico { background: linear-gradient(140deg, #d97b49, #b4522b); }
.nav-submit:hover .nav-ico { transform: translateY(-2px); }
[data-theme="dark"] .nav-submit .nav-ico { background: linear-gradient(140deg, #e08a5c, #b9613a); color: #1b120b; }

/* ---------- سرصفحه صفحات ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin: 10px 0 22px; }
.page-head h1 { font-size: clamp(24px, 4.5vw, 34px); font-weight: 800; line-height: 1.4; }
.page-head p { color: var(--muted); font-size: 13px; margin-top: 3px; max-width: 55ch; }
.page-head .head-side { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.breadcrumb { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .ico { width: 12px; height: 12px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.search-inline { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; height: 42px; min-width: 200px; }
.search-inline .ico { color: var(--muted-2); width: 17px; height: 17px; }
.search-inline input { border: 0; background: none; outline: 0; width: 100%; font-size: 13px; }
.search-inline:focus-within { border-color: var(--brand); }

/* ---------- صفحه جشنواره ---------- */
.festival-hero { position: relative; border-radius: var(--radius-xl); overflow: hidden; min-height: 390px; display: flex; align-items: flex-end; background: #1a130d; color: #fff; isolation: isolate; }
.festival-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.festival-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,10,6,.15) 0%, rgba(15,10,6,.55) 55%, rgba(15,10,6,.94) 100%); }
.festival-hero-body { position: relative; z-index: 2; padding: 22px; width: 100%; }
.festival-hero-back { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 3; }
.festival-hero-save { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 3; }
.festival-hero h1 { font-size: clamp(25px, 5.4vw, 44px); font-weight: 800; line-height: 1.4; margin: 12px 0 8px; max-width: 22ch; }
.festival-hero p { color: rgba(255,247,238,.74); font-size: 13px; max-width: 62ch; line-height: 1.9; }
.festival-hero-foot { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 16px; font-size: 11.5px; color: rgba(255,247,238,.65); }
.festival-hero-foot span { display: inline-flex; align-items: center; gap: 6px; }
.festival-hero-foot .ico { width: 15px; height: 15px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 22px; min-width: 0; }
.detail-main { min-width: 0; display: grid; gap: 22px; align-content: start; }
.detail-aside { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-content: start; min-width: 0; }
.detail-aside > * { min-width: 0; }
.detail-card { padding: 20px; }
.detail-card h2, .detail-block h2 { font-size: 17px; font-weight: 800; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.detail-card h2 .ico, .detail-block h2 .ico { color: var(--brand); width: 19px; height: 19px; }
.prose { display: grid; gap: 10px; font-size: 13.5px; color: var(--ink-2); line-height: 2; }
.prose p { color: var(--muted); }
.detail-info { display: grid; gap: 0; }
.detail-info-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 12px; }
.detail-info-row:last-child { border-bottom: 0; }
.detail-info-row span { color: var(--muted); display: flex; align-items: center; gap: 6px; }
.detail-info-row b { font-weight: 600; font-size: 12px; }
.detail-info-row .ico { width: 15px; height: 15px; }
.progress { height: 7px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.progress > i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--gold)); transition: width 1.2s var(--ease); }
.progress-label { display: flex; align-items: center; justify-content: space-between; font-size: 10.5px; color: var(--muted); margin-top: 6px; }
.prize-list { display: grid; gap: 8px; }
.prize-row { display: flex; gap: 10px; align-items: center; padding: 11px 12px; border-radius: 13px; background: var(--surface-3); }
.prize-medal { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--gold-soft); color: var(--gold); }
.prize-medal .ico { width: 17px; height: 17px; }
.prize-row:nth-child(1) .prize-medal { background: linear-gradient(135deg, #f3d79a, #d9ac50); color: #3a2607; }
.prize-row:nth-child(2) .prize-medal { background: linear-gradient(135deg, #e6e6e6, #bdbdbd); color: #333; }
.prize-row:nth-child(3) .prize-medal { background: linear-gradient(135deg, #ecc09d, #c18a5f); color: #3a2312; }
.prize-row b { display: block; font-size: 12px; font-weight: 700; }
.prize-row span { display: block; font-size: 10.5px; color: var(--muted); }
.timeline { display: grid; gap: 0; }
.timeline-item { position: relative; padding: 0 24px 18px 0; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; inset-inline-start: 5px; top: 16px; bottom: 0; width: 1px; background: var(--line); }
.timeline-item:last-child::before { display: none; }
.timeline-dot { position: absolute; inset-inline-start: 0; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong); }
.timeline-item.is-done .timeline-dot { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.timeline-item.is-next .timeline-dot { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.timeline-item b { display: block; font-size: 12.5px; font-weight: 600; }
.timeline-item span { font-size: 10.5px; color: var(--muted); }
.rules-list { display: grid; gap: 8px; }
.rules-list li { display: flex; gap: 9px; font-size: 12.5px; color: var(--muted); line-height: 1.8; }
.rules-list li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); margin-top: 9px; flex: none; }
.jury-row { display: flex; flex-wrap: wrap; gap: 10px; }
.jury-person { display: flex; align-items: center; gap: 8px; padding: 7px 10px 7px 7px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; }
.jury-person .avatar { --av-size: 28px !important; }
.jury-person small { display: block; font-size: 8.5px; color: var(--muted); }
.sticky-cta { position: fixed; z-index: 65; inset-inline: 0; bottom: 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(20px); border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.sticky-cta .cd { flex: 1; }
.sticky-cta .btn { flex: none; }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 8px 12px; font-size: 11.5px; font-weight: 600; color: var(--ink-2); transition: border-color .2s, color .2s, background .2s; }
.chip-btn:hover { border-color: var(--brand); color: var(--brand); }
.chip-btn .ico { width: 15px; height: 15px; }

/* ---------- فیلتر صفحه پویش‌ها ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.filter-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; flex: 1; }
.filter-chips::-webkit-scrollbar { display: none; }
.filter-chips .chip { cursor: pointer; }
.filter-chips .chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.count-hint { font-size: 11px; color: var(--muted); white-space: nowrap; }

/* ---------- فرایند ارسال ---------- */
.flow-page { max-width: 760px; margin-inline: auto; padding-top: 6px; }
.flow-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.flow-top h1 { font-size: 20px; font-weight: 800; }
.flow-top p { font-size: 11px; color: var(--muted); }
.flow-top .icon-btn { border: 1px solid var(--line); background: var(--surface); }
.stepper { margin-bottom: 22px; }
.stepper-track { display: flex; align-items: flex-start; justify-content: space-between; position: relative; }
.stepper-track::before { content: ""; position: absolute; top: 15px; inset-inline: 20px; height: 2px; background: var(--line); }
.stepper-fill { position: absolute; top: 15px; inset-inline-start: 20px; height: 2px; background: var(--brand); transition: width .5s var(--ease); }
.step { position: relative; z-index: 2; display: grid; justify-items: center; gap: 5px; width: 25%; }
.step-dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 700; transition: all .3s var(--ease); }
.step span { font-size: 9.5px; color: var(--muted); font-weight: 600; text-align: center; }
.step.is-done .step-dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.step.is-done span { color: var(--ink-2); }
.step.is-active .step-dot { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 5px var(--brand-soft); }
.step.is-active span { color: var(--brand); }
.flow-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 20px; box-shadow: var(--shadow-sm); }
.flow-card > h2 { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.flow-card > .sub { color: var(--muted); font-size: 12px; margin-bottom: 18px; }
.field { margin-bottom: 15px; }
.label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); }
.label small { font-size: 10px; color: var(--muted); font-weight: 400; }
.input, .textarea, .select {
  width: 100%; border: 1px solid var(--line); background: var(--surface-2); border-radius: 12px;
  padding: 11px 13px; font-size: 13px; line-height: 1.7; color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s;
}
.input { height: 46px; }
.textarea { min-height: 108px; resize: vertical; }
.select { appearance: none; height: 46px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-inline-end: 34px; }
[dir="rtl"] .select { background-position: 18px 20px, 23px 20px; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); background: var(--surface); }
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.field.has-error .input, .field.has-error .textarea { border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
.err-msg { display: none; font-size: 10.5px; color: var(--danger); margin-top: 5px; }
.field.has-error .err-msg { display: block; }
.hint { font-size: 10px; color: var(--muted); margin-top: 5px; display: flex; align-items: center; gap: 4px; }
.hint .ico { width: 13px; height: 13px; }
.field-row { display: grid; gap: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
.cat-picker { display: flex; flex-wrap: wrap; gap: 7px; }
.cat-option { cursor: pointer; }
.cat-option input { position: absolute; opacity: 0; pointer-events: none; }
.cat-option .chip { padding: 9px 13px; }
.cat-option input:checked + .chip { background: var(--brand); border-color: var(--brand); color: #fff; }
.cat-option input:checked + .chip .cat-dot { color: #fff; }
.pick-grid { display: grid; gap: 10px; }
.pick-card { display: flex; gap: 12px; align-items: center; border: 1.5px solid var(--line); border-radius: 16px; padding: 10px; cursor: pointer; background: var(--surface-2); transition: border-color .2s, background .2s, transform .2s; text-align: start; width: 100%; }
.pick-card:hover { border-color: var(--line-strong); }
.pick-card.is-selected { border-color: var(--brand); background: var(--brand-soft); }
.pick-thumb { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; flex: none; position: relative; }
.pick-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pick-info { min-width: 0; display: grid; gap: 2px; flex: 1; }
.pick-info b { font-size: 12.5px; font-weight: 700; }
.pick-info small { font-size: 10px; color: var(--muted); }
.pick-info .badge { justify-self: start; margin-top: 4px; font-size: 9px; padding: 4px 7px; }
.pick-check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; color: transparent; flex: none; }
.pick-card.is-selected .pick-check { background: var(--brand); border-color: var(--brand); color: #fff; }
.pick-check .ico { width: 13px; height: 13px; }
.upload-zone {
  border: 1.5px dashed var(--line-strong); background: var(--surface-2); border-radius: 18px;
  padding: 26px 16px; display: grid; justify-items: center; gap: 6px; text-align: center;
  cursor: pointer; transition: border-color .2s, background .2s;
}
.upload-zone:hover, .upload-zone.is-drag { border-color: var(--brand); background: var(--brand-soft); }
.upload-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 3px; }
.upload-icon .ico { width: 25px; height: 25px; }
.upload-zone b { font-size: 13px; font-weight: 700; }
.upload-zone small { font-size: 10.5px; color: var(--muted); }
.file-preview { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-2); }
.file-preview img { width: 58px; height: 58px; border-radius: 10px; object-fit: cover; flex: none; }
.file-meta { flex: 1; min-width: 0; }
.file-meta b { display: block; font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta small { font-size: 10px; color: var(--muted); }
.file-remove { color: var(--danger); background: var(--danger-soft); width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.file-remove .ico { width: 15px; height: 15px; }
.review-box { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.review-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 14px; font-size: 12px; border-bottom: 1px solid var(--line); }
.review-row:last-child { border-bottom: 0; }
.review-row span { color: var(--muted); flex: none; }
.review-row b { font-weight: 600; text-align: end; }
.review-thumb { width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.checkbox { display: flex; gap: 9px; align-items: flex-start; font-size: 11.5px; color: var(--muted); line-height: 1.8; cursor: pointer; }
.checkbox input { width: 18px; height: 18px; margin-top: 4px; flex: none; accent-color: var(--brand); }
.success-wrap { text-align: center; padding: 26px 6px 12px; display: grid; justify-items: center; gap: 8px; }
.success-mark { width: 82px; height: 82px; border-radius: 50%; display: grid; place-items: center; background: var(--success-soft); color: var(--success); margin-bottom: 6px; animation: popIn .5s var(--ease) both; }
.success-mark .ico { width: 40px; height: 40px; }
@keyframes popIn { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
.success-wrap h2 { font-size: 22px; font-weight: 800; }
.success-wrap p { color: var(--muted); font-size: 12.5px; max-width: 38ch; }
.tracking { display: flex; align-items: center; gap: 10px; background: var(--surface-3); border: 1px dashed var(--line-strong); border-radius: 14px; padding: 9px 14px; margin: 8px 0; }
.tracking b { font-size: 16px; letter-spacing: 1px; font-variant-numeric: tabular-nums; direction: ltr; }
.tracking button { color: var(--brand); display: inline-flex; }
.flow-actions { display: flex; gap: 9px; margin-top: 18px; }
.flow-actions .btn { flex: 1; }
.flow-shell { padding-bottom: 80px; }

/* ---------- پروفایل ---------- */
.profile-head { border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--line); background: var(--surface); position: relative; }
.profile-cover { height: 138px; position: relative; overflow: hidden; }
.profile-cover img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.profile-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,14,9,.25), rgba(20,14,9,.6)); }
.profile-cover .pattern { position: absolute; inset: 0; background-image: var(--pattern); background-size: 80px; opacity: .18; }
.profile-body { padding: 0 18px 18px; margin-top: -38px; position: relative; display: grid; gap: 12px; }
.profile-id { display: flex; align-items: flex-end; gap: 12px; }
.profile-id .avatar { --av-size: 80px !important; border: 4px solid var(--surface); box-shadow: var(--shadow); }
.profile-name { padding-bottom: 4px; min-width: 0; }
.profile-name h1 { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.profile-name p { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.profile-name .ico { width: 13px; height: 13px; }
.profile-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 15px; overflow: hidden; }
.profile-stats div { padding: 10px 6px; text-align: center; border-inline-end: 1px solid var(--line); }
.profile-stats div:last-child { border-inline-end: 0; }
.profile-stats b { display: block; font-size: 17px; font-weight: 800; }
.profile-stats span { font-size: 9.5px; color: var(--muted); }
.profile-tabs { margin: 20px 0 16px; }
.my-work { display: flex; gap: 12px; padding: 11px; border: 1px solid var(--line); background: var(--surface); border-radius: 16px; align-items: center; }
.my-work-thumb { width: 66px; height: 74px; border-radius: 11px; overflow: hidden; flex: none; }
.my-work-thumb img { width: 100%; height: 100%; object-fit: cover; }
.my-work-info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.my-work-info b { font-size: 12.5px; font-weight: 700; }
.my-work-info small { font-size: 10px; color: var(--muted); }
.my-work-info .badge { justify-self: start; font-size: 9px; padding: 4px 7px; margin-top: 2px; }
.status-pending { color: var(--gold); background: var(--gold-soft); }
.status-approved { color: var(--success); background: var(--success-soft); }
.status-rejected { color: var(--danger); background: var(--danger-soft); }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.setting-row:last-child { border-bottom: 0; }
.setting-info { display: flex; align-items: center; gap: 10px; }
.setting-info .ico { color: var(--muted); width: 18px; height: 18px; }
.setting-info b { display: block; font-size: 12px; font-weight: 600; }
.setting-info small { font-size: 10px; color: var(--muted); }
.toggle { position: relative; width: 42px; height: 24px; border-radius: 999px; background: var(--line-strong); flex: none; transition: background .25s; }
.toggle::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: transform .25s var(--ease); }
.toggle[aria-checked="true"] { background: var(--success); }
.toggle[aria-checked="true"]::after { transform: translateX(-18px); }
[data-theme="dark"] .toggle[aria-checked="true"]::after { transform: translateX(-18px); }

/* ---------- صفحه هنرمند ---------- */
.artist-profile-cover { height: 210px; border-radius: var(--radius-lg); overflow: hidden; position: relative; background: var(--surface-3); }
.artist-profile-cover img { width: 100%; height: 100%; object-fit: cover; opacity: .8; }
.artist-profile-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, color-mix(in srgb, var(--bg) 92%, transparent)); }
.artist-profile-head { position: relative; z-index: 2; display: flex; align-items: flex-end; gap: 14px; padding: 0 18px; margin-top: -34px; flex-wrap: wrap; }
.artist-profile-head .avatar { --av-size: 88px !important; border: 4px solid var(--bg); }
.artist-profile-name { flex: 1; min-width: 150px; padding-bottom: 6px; }
.artist-profile-name h1 { font-size: clamp(20px, 4vw, 27px); font-weight: 800; display: flex; align-items: center; gap: 7px; }
.artist-profile-name h1 .ico { color: var(--teal); width: 19px; height: 19px; }
.artist-profile-name p { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 12px; }
.artist-profile-name p span { display: flex; align-items: center; gap: 4px; }
.artist-profile-name p .ico { width: 13px; height: 13px; }
.artist-stats { display: flex; gap: 18px; padding: 16px 18px; border-block: 1px solid var(--line); margin-top: 16px; }
.artist-stats div { text-align: center; flex: 1; }
.artist-stats b { font-size: 17px; font-weight: 800; display: block; }
.artist-stats span { font-size: 9.5px; color: var(--muted); }
.artist-about { display: grid; gap: 10px; padding: 18px; }
.artist-about p { color: var(--muted); font-size: 12.5px; line-height: 2; }
.skill-list { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- برندگان صفحه ---------- */
.winners-hero { position: relative; overflow: hidden; border-radius: var(--radius-xl); background: radial-gradient(circle at 80% 0%, #5d3d22, transparent 55%), #1c150f; color: #fff3e3; padding: 28px 20px; border: 1px solid rgba(255,255,255,.08); }
.winners-hero::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern); background-size: 120px; opacity: .06; }
.winners-hero > * { position: relative; z-index: 1; }
.winners-hero h1 { font-size: clamp(23px, 4.5vw, 36px); font-weight: 800; }
.winners-hero p { color: rgba(255,243,227,.65); font-size: 12.5px; margin-top: 5px; max-width: 55ch; }
.winners-hero .badge { margin-bottom: 12px; }

/* ---------- درباره ---------- */
.about-hero { border-radius: var(--radius-xl); overflow: hidden; position: relative; background: linear-gradient(140deg, #2c2016, #1a130d); color: #f6eadb; padding: 36px 24px; }
.about-hero::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern); background-size: 120px; opacity: .07; mask-image: radial-gradient(circle at 80% 50%, #000, transparent 70%); }
.about-hero > * { position: relative; }
.about-hero h1 { font-size: clamp(25px, 5vw, 42px); font-weight: 800; line-height: 1.4; }
.about-hero p { color: rgba(246,234,219,.7); font-size: 13px; margin-top: 10px; max-width: 60ch; line-height: 2; }
.value-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.value-card { padding: 18px; border: 1px solid var(--line); background: var(--surface); border-radius: 18px; }
.value-card .stat-ico { margin-bottom: 10px; }
.value-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.value-card p { font-size: 11.5px; color: var(--muted); line-height: 1.9; }
.contact-grid { display: grid; gap: 10px; }
.contact-row { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.contact-row .stat-ico { width: 36px; height: 36px; border-radius: 10px; }
.contact-row small { display: block; font-size: 9.5px; color: var(--muted); }
.contact-row b { font-size: 12px; font-weight: 600; direction: ltr; unicode-bidi: embed; }
.contact-row .ico { direction: ltr; }
.credits-list { display: grid; gap: 6px; font-size: 10.5px; color: var(--muted); }
.credits-list a { color: var(--teal); }
.faq-list { display: grid; gap: 8px; }
.faq-item { border: 1px solid var(--line); border-radius: 15px; background: var(--surface); overflow: hidden; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; text-align: start; font-size: 12.5px; font-weight: 600; }
.faq-q .ico { color: var(--muted); width: 17px; height: 17px; transition: transform .3s var(--ease); flex: none; }
.faq-item.is-open .faq-q .ico { transform: rotate(180deg); color: var(--brand); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a p { padding: 0 16px 15px; font-size: 11.5px; color: var(--muted); line-height: 2; }
.faq-item.is-open .faq-a { max-height: 260px; }

/* ---------- جستجو ---------- */
.search-layer { position: fixed; inset: 0; z-index: 120; display: flex; flex-direction: column; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(18px); padding: 12px 14px 0; animation: fadeIn .2s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.search-top { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.search-box { flex: 1; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 15px; height: 52px; padding: 0 14px; box-shadow: var(--shadow-sm); }
.search-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.search-box .ico { color: var(--muted); width: 20px; height: 20px; }
.search-box input { flex: 1; border: 0; background: none; outline: 0; font-size: 14px; min-width: 0; }
.search-body { flex: 1; overflow-y: auto; padding: 16px 2px 40px; max-width: 720px; width: 100%; margin: 0 auto; }
.search-suggests { display: flex; flex-wrap: wrap; gap: 6px; }
.search-group { margin-top: 22px; }
.search-group h4 { font-size: 11px; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.search-result { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 13px; transition: background .2s; }
.search-result:hover { background: var(--surface); }
.search-thumb { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; flex: none; }
.search-result b { display: block; font-size: 12px; font-weight: 600; }
.search-result small { display: block; font-size: 10px; color: var(--muted); }
.search-result .ico { margin-inline-start: auto; width: 16px; height: 16px; color: var(--muted-2); }
.search-empty { text-align: center; color: var(--muted); font-size: 12px; padding: 50px 0; display: grid; justify-items: center; gap: 8px; }
.search-empty .ico { width: 34px; height: 34px; opacity: .5; }

/* ---------- شیت ---------- */
.sheet-layer { position: fixed; inset: 0; z-index: 130; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(18,13,9,.48); backdrop-filter: blur(4px); opacity: 0; transition: opacity .28s; }
.sheet-layer.is-open .sheet-backdrop { opacity: 1; }
.sheet {
  position: relative; width: 100%; max-width: 560px; max-height: 90dvh; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 26px 26px 0 0;
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
  transform: translateY(36px); opacity: 0; transition: transform .32s var(--ease), opacity .28s;
  padding-bottom: env(safe-area-inset-bottom);
}
.sheet::before { content: ""; width: 38px; height: 4px; border-radius: 99px; background: var(--line-strong); margin: 8px auto 0; flex: none; }
.sheet-layer.is-open .sheet { transform: none; opacity: 1; }
.sheet-wide { max-width: 760px; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 18px 10px; flex: none; }
.sheet-head h3 { font-size: 16px; font-weight: 800; }
.sheet-head p { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.sheet-body { overflow-y: auto; padding: 4px 18px 20px; }
.sheet-foot { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; flex: none; }
.sheet-foot .btn { flex: 1; }
.sheet-plain::before { display: none; }
.sheet-float-close { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 4; background: rgba(16,12,8,.5); color: #fff; border-radius: 50%; backdrop-filter: blur(8px); }
.notif-item { display: flex; gap: 11px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.notif-item:last-child { border-bottom: 0; }
.notif-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--c); }
.notif-ico .ico { width: 18px; height: 18px; }
.notif-item b { font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.notif-item b .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.notif-item p { font-size: 10.5px; color: var(--muted); margin-top: 2px; line-height: 1.8; }
.notif-item small { font-size: 9px; color: var(--muted-2); }
.art-detail-img { border-radius: 18px; overflow: hidden; aspect-ratio: 4/3; background: var(--surface-3); }
.art-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.art-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin: 14px 0 4px; }
.art-detail-head h3 { font-size: 20px; font-weight: 800; }
.art-detail-head .like-btn { background: var(--surface-3); color: var(--ink-2); border-color: var(--line); }
.art-detail-head .like-btn.is-liked { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-soft); }
.art-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.art-detail-artist { display: flex; align-items: center; gap: 10px; padding: 11px; border: 1px solid var(--line); border-radius: 14px; margin-top: 14px; }
.art-detail-artist .avatar { --av-size: 40px !important; }
.art-detail-artist b { font-size: 12px; display: block; }
.art-detail-artist small { font-size: 9.5px; color: var(--muted); }
.art-detail-artist .ico { margin-inline-start: auto; color: var(--muted); }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.spec { padding: 9px 11px; border-radius: 11px; background: var(--surface-3); font-size: 10px; color: var(--muted); }
.spec b { display: block; font-size: 11.5px; color: var(--ink-2); font-weight: 600; margin-top: 1px; }
.sheet-art-actions { display: flex; gap: 8px; margin-top: 16px; }

/* ---------- Toast ---------- */
.toast-root { position: fixed; z-index: 200; inset-inline: 0; bottom: calc(100px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { display: flex; align-items: center; gap: 8px; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 13px; font-size: 12px; font-weight: 500; box-shadow: var(--shadow-lg); transform: translateY(12px); opacity: 0; transition: all .3s var(--ease); max-width: 92vw; }
.toast .ico { width: 17px; height: 17px; color: var(--success); }
.toast-error .ico { color: var(--danger); }
.toast.show { transform: none; opacity: 1; }

/* ---------- خالی ---------- */
.empty-state { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 40px 16px; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: 20px; background: var(--surface); }
.empty-icon { width: 54px; height: 54px; border-radius: 16px; background: var(--surface-3); color: var(--muted); display: grid; place-items: center; margin-bottom: 4px; }
.empty-icon .ico { width: 26px; height: 26px; }
.empty-state h3 { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.empty-state p { font-size: 11.5px; max-width: 34ch; line-height: 1.9; }
.empty-state .btn { margin-top: 8px; }

/* ---------- ریویل ---------- */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
[data-reveal].is-revealed { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }

/* ---------- بنر کوچک ---------- */
.mini-banner { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-radius: 16px; background: linear-gradient(120deg, var(--brand-soft), var(--gold-soft)); border: 1px solid color-mix(in srgb, var(--brand) 14%, transparent); }
.mini-banner .mb-ico { width: 38px; height: 38px; border-radius: 11px; background: var(--surface); display: grid; place-items: center; color: var(--brand); flex: none; }
.mini-banner b { display: block; font-size: 12px; font-weight: 700; }
.mini-banner p { font-size: 10.5px; color: var(--muted); margin-top: 1px; }
.mini-banner .btn { margin-inline-start: auto; }

/* ---------- حالت‌های واکنش‌گرا ---------- */
@media (min-width: 560px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .festival-grid { grid-template-columns: repeat(2, 1fr); }
  .artist-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .winner-grid { grid-template-columns: repeat(2, 1fr); }
  .podium { grid-template-columns: repeat(3, 1fr); }
  .podium-card { flex-direction: column; }
  .podium-thumb { width: 100%; height: 130px; }
  .podium-info h3 { font-size: 13px; }
  .field-row.two { grid-template-columns: 1fr 1fr; display: grid; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
  .hero-inner { padding: 34px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-col.contact { grid-column: auto; }
}
@media (min-width: 720px) {
  .detail-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, .9fr); align-items: start; }
  .detail-aside { position: sticky; top: calc(var(--header-h) + 14px); }
}
@media (min-width: 900px) {
  :root { --header-h: 74px; }
  .header-nav { display: flex; }
  .bottom-nav { display: none; }
  .app-header { background: color-mix(in srgb, var(--bg) 88%, transparent); }
  .brand-logo { width: 46px; height: 46px; }
  .brand-name { font-size: 20px; }
  .brand-sub { font-size: 11px; }
  .page { padding-top: 22px; }
  .hero { min-height: 620px; }
  .hero-inner { grid-template-columns: 1.25fr .75fr; align-items: end; gap: 40px; padding: 44px; }
  .hero-card { justify-self: end; width: 100%; }
  .festival-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .festival-grid .fcard.featured { grid-column: span 2; }
  .festival-grid .fcard.featured .fcard-cover { aspect-ratio: 21/9; }
  .festival-grid .fcard.featured .fcard-cover + .fcard-body { display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 26px; }
  .festival-grid .fcard.featured .fcard-body > * { grid-column: 1; }
  .festival-grid .fcard.featured .fcard-deadline { grid-column: 2; grid-row: 1 / span 4; align-self: stretch; margin: 0; min-width: 240px; flex-direction: column; align-items: stretch; justify-content: center; }
  .festival-grid .fcard.featured .fcard-foot { grid-column: 2; grid-row: 5; margin-top: 10px; }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .artist-grid { grid-template-columns: repeat(5, 1fr); }
  .section { margin-top: 68px; }
  .cat-scroller { flex-wrap: wrap; overflow: visible; justify-content: space-between; }
  .cat-tile { width: 76px; }
  .site-footer { padding-bottom: 40px; }
  .main-shell { padding-bottom: 0; }
  .festival-hero { min-height: 470px; }
  .festival-hero-body { padding: 34px; }
  .sticky-cta { display: none; }
  .winner-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: repeat(3, 1fr); }
  .detail-aside .sticky-cta-card { display: block; }
  .profile-head { display: grid; grid-template-columns: 1fr; }
  .profile-cover { height: 180px; }
  .about-hero { padding: 54px 42px; }
  .page-head { margin-top: 14px; }
  .flow-shell { padding-bottom: 20px; }
  .sheet { border-radius: 26px; margin-bottom: 4vh; max-height: 88dvh; }
  .sheet-layer { align-items: center; padding: 20px; }
  .sheet::before { display: none; }
  .toast-root { bottom: 30px; }
}
@media (min-width: 1100px) {
  .festival-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 360px) {
  .brand-sub { display: none; }
  .header-actions .icon-btn { width: 38px; height: 38px; }
  .hero { min-height: 520px; }
  .nav-label { font-size: 8.5px; }
  .cd-unit b { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero-media img { animation: none; }
}

/* ---------- چاپ ---------- */
@media print {
  .app-header, .bottom-nav, .site-footer, .sticky-cta, .fcard-save, .icon-btn { display: none !important; }
  body { background: #fff; color: #000; }
  .hero, .festival-hero, .winners-band { box-shadow: none; }
}

/* =========================================================================
   تکمیل‌ها و صفحه‌های ویژه
   ========================================================================= */

/* لود اولیه */
.boot-screen { min-height: 62vh; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; }
.boot-spinner { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* عنوان کارت‌های جزئیات */
.detail-h { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.detail-h .ico { color: var(--brand); width: 19px; height: 19px; }

/* تیک تأیید */
.verified-ico { width: 15px; height: 15px; color: var(--teal); vertical-align: -2px; fill: color-mix(in srgb, var(--teal) 12%, transparent); }
.artist-mini-card h3 .verified-ico { width: 13px; height: 13px; }
.artist-card h3 .verified-ico { width: 14px; height: 14px; }

/* کارت پویش: پایان‌یافته */
.fcard { cursor: pointer; }
.fcard-closed { display: flex; align-items: center; gap: 7px; background: var(--surface-3); border-radius: 13px; padding: 10px 12px; font-size: 11.5px; color: var(--ink-2); margin-top: auto; }
.fcard-closed .ico { width: 16px; height: 16px; color: var(--gold); }
.fcard-closed a { margin-inline-start: auto; color: var(--brand); font-weight: 700; font-size: 11px; }
.festival-hero-save.is-saved .ico, .fcard-save.is-saved .ico { fill: currentColor; }

/* نوار پیشرفت روی کارت تیره */
.hero-card .progress { background: rgba(255,255,255,.16); }
.hero-card .progress > i { background: linear-gradient(90deg, #e6b57f, #f2d7ae); }

/* دکمه‌های شیت */
.sheet-art-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.sheet-art-actions .btn { flex: 1; }

/* خط زمانی */
.timeline-item.is-pending .timeline-dot { background: var(--surface); border-color: var(--line-strong); }
.timeline-item.is-done b { color: var(--ink-2); }

/* جستجو */
body.search-open { overflow: hidden; }

/* حالت تمرکز فرایند ارسال */
body.flow-mode .app-header,
body.flow-mode .bottom-nav,
body.flow-mode .site-footer { display: none !important; }
body.flow-mode .app-main { padding-bottom: 0; }
body.flow-mode .flow-page { padding-top: 20px; padding-bottom: 34px; }
body.flow-mode .toast-root { bottom: 26px; }

/* فاصله برای نوار CTA پایین */
@media (max-width: 899px) {
  body.has-sticky .app-main { padding-bottom: 86px; }
}

/* پویش‌ساز */
.create-grid { display: grid; gap: 18px; align-items: start; }
.create-preview { min-width: 0; }
.cover-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.cover-choice { position: relative; cursor: pointer; display: block; }
.cover-choice input { position: absolute; opacity: 0; pointer-events: none; }
.cover-choice-img { display: block; position: relative; border-radius: 11px; overflow: hidden; border: 2px solid transparent; transition: border-color .2s, transform .2s; }
.cover-choice-img img { width: 100%; aspect-ratio: 1.25; object-fit: cover; }
.cover-choice-img span { position: absolute; inset-inline: 0; bottom: 0; background: linear-gradient(180deg, transparent, rgba(12,8,5,.8)); color: #fff; font-size: 8.5px; font-weight: 600; padding: 14px 5px 5px; text-align: center; }
.cover-choice:hover .cover-choice-img { transform: translateY(-1px); }
.cover-choice input:checked + .cover-choice-img { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

/* کارت هنرمند: اصلاحات کوچک */
.artist-profile-head { margin-bottom: 2px; }
.artist-profile-cover + .artist-profile-head { margin-top: -38px; }
.artist-mini-card p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* لینک‌های تماس */
a.contact-row:hover { border-color: var(--brand); background: var(--brand-soft); }

/* شبکه‌های صفحه جزئیات در موبایل */
@media (max-width: 559px) {
  .detail-grid { gap: 16px; }
  .gallery-grid { gap: 10px; }
  .form-grid { grid-template-columns: 1fr; }
  .cover-picker { grid-template-columns: repeat(4, 1fr); }
  .podium { grid-template-columns: 1fr; }
}
@media (min-width: 900px) {
  .create-grid { grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); }
  .create-preview { position: sticky; top: calc(var(--header-h) + 18px); }
}

/* =========================================================================
   اصلاح پروفایل در موبایل و نمایش نام مسئول
   ========================================================================= */
.profile-head, .profile-body, .profile-id, .profile-name { min-width: 0; max-width: 100%; }
.profile-body { margin-top: 0; padding: 12px 18px 18px; gap: 12px; }
.profile-id { position: relative; align-items: flex-end; min-height: 82px; }
.profile-id .avatar { position: relative; top: -46px; z-index: 3; flex: none; }
.profile-name { align-self: flex-end; padding-bottom: 2px; }
.profile-name h1 { flex-wrap: wrap; line-height: 1.5; }
.profile-name p { flex-wrap: wrap; line-height: 1.7; }
.profile-actions { margin-top: -4px; }

@media (max-width: 559px) {
  .profile-body { padding-inline: 14px; }
  .profile-id { gap: 9px; min-height: 78px; }
  .profile-id .avatar { --av-size: 72px !important; top: -42px; }
  .profile-id > .icon-btn { width: 36px; height: 36px; margin-bottom: 2px; }
  .profile-name h1 { font-size: 18px; }
  .profile-stats span { font-size: 9px; }
  .profile-actions .btn { flex: 1; }
}
@media (max-width: 359px) {
  .profile-actions { display: grid; grid-template-columns: 1fr; }
  .profile-id { display: block; padding-top: 48px; min-height: 0; }
  .profile-id .avatar { position: absolute; inset-inline-start: 0; top: -24px; --av-size: 64px !important; border-width: 3px; }
  .profile-id > .icon-btn { position: absolute; inset-inline-end: 0; top: 0; }
  .profile-name { padding-bottom: 0; }
  .profile-name h1 { font-size: 17px; }
}

/* =========================================================================
   واحدها و زیرمجموعه‌های حوزه هنری
   ========================================================================= */
.units-hero {
  display: grid; gap: 18px; padding: 24px; border-radius: var(--radius-xl);
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(180,85,44,.22), transparent 48%),
    radial-gradient(120% 140% at 0% 100%, rgba(14,110,104,.16), transparent 52%),
    var(--surface);
  border: 1px solid var(--line); overflow: hidden; position: relative; isolation: isolate;
}
.units-hero::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern); background-size: 96px; opacity: .035; z-index: -1; }
.units-hero h1 { font-size: clamp(23px, 5vw, 36px); line-height: 1.5; font-weight: 800; margin: 8px 0; }
.units-hero p { color: var(--muted); font-size: 13px; line-height: 2; max-width: 66ch; }
.units-hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.units-hero-meta .badge { gap: 7px; padding: 8px 11px; }
.units-hero-side { display: grid; gap: 10px; align-content: start; }
.units-note { display: flex; gap: 10px; align-items: flex-start; padding: 13px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); font-size: 11px; color: var(--muted); line-height: 1.9; }
.units-note .ico { color: var(--brand); flex: none; margin-top: 3px; }
.units-note b { color: var(--ink); font-size: 12px; display: block; }
.units-contact-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.units-contact-strip a, .units-contact-strip span { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; padding: 8px 11px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); }
.units-contact-strip a:hover { border-color: var(--brand); color: var(--brand); }
.units-contact-strip .ico { width: 14px; height: 14px; }

.unit-group-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 26px 0 12px; }
.unit-group-head h2 { font-size: 18px; font-weight: 800; }
.unit-group-head p { font-size: 11px; color: var(--muted); margin-top: 2px; }
.unit-group-head .badge { flex: none; }
.unit-grid { display: grid; gap: 12px; }
.unit-card {
  display: grid; gap: 14px; padding: 17px; border-radius: 20px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); scroll-margin-top: calc(var(--header-h) + 18px);
  position: relative; overflow: hidden;
}
.unit-card::after { content: ""; position: absolute; inset-inline-end: -50px; top: -60px; width: 150px; height: 150px; border-radius: 50%; background: color-mix(in srgb, var(--uc, var(--brand)) 9%, transparent); pointer-events: none; }
.unit-card-head { display: flex; gap: 11px; align-items: flex-start; position: relative; z-index: 1; }
.unit-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--uc, var(--brand)) 13%, var(--surface)); color: var(--uc, var(--brand)); border: 1px solid color-mix(in srgb, var(--uc, var(--brand)) 22%, transparent); }
.unit-ico .ico { width: 23px; height: 23px; }
.unit-card-head h2 { font-size: 15.5px; font-weight: 800; line-height: 1.6; }
.unit-card-head p { font-size: 10.5px; color: var(--muted); margin-top: 2px; line-height: 1.8; }
.unit-group-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 9px; color: var(--uc, var(--brand)); background: color-mix(in srgb, var(--uc, var(--brand)) 10%, transparent); padding: 3px 7px; border-radius: 999px; margin-bottom: 4px; }
.unit-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 13px; background: var(--surface-3); }
.unit-head .avatar { flex: none; }
.unit-head small { display: block; font-size: 9px; color: var(--muted); line-height: 1.4; }
.unit-head b { display: block; font-size: 12.5px; font-weight: 700; }
.unit-head span { display: block; font-size: 9.5px; color: var(--muted); }
.unit-duties h3 { font-size: 10.5px; font-weight: 700; color: var(--muted); margin-bottom: 5px; }
.unit-duties ul { display: grid; gap: 4px; }
.unit-duties li { display: flex; gap: 7px; font-size: 11.5px; color: var(--ink-2); line-height: 1.9; }
.unit-duties li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--uc, var(--brand)); flex: none; margin-top: 9px; }
.unit-contact { display: grid; gap: 6px; padding-top: 11px; border-top: 1px dashed var(--line); }
.unit-contact a, .unit-contact span { display: flex; align-items: center; gap: 7px; font-size: 10.5px; color: var(--muted); }
.unit-contact a:hover { color: var(--brand); }
.unit-contact .ico { width: 14px; height: 14px; flex: none; color: var(--uc, var(--brand)); }
.unit-contact b { font-weight: 600; color: var(--ink-2); direction: ltr; }
.unit-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.unit-tags .chip { font-size: 9px; padding: 4px 7px; background: var(--surface-2); }
.unit-footer-note { display: flex; align-items: flex-start; gap: 9px; padding: 13px 14px; border-radius: 15px; background: var(--brand-soft); color: var(--brand-ink); font-size: 11px; line-height: 1.9; margin-top: 18px; }
.unit-footer-note .ico { flex: none; margin-top: 3px; }
.unit-mini-grid { display: grid; gap: 10px; }
.unit-mini { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.unit-mini .unit-ico { width: 38px; height: 38px; border-radius: 11px; }
.unit-mini .unit-ico .ico { width: 19px; height: 19px; }
.unit-mini b { font-size: 11.5px; display: block; }
.unit-mini small { font-size: 9.5px; color: var(--muted); display: block; }
.unit-mini .ico.arrow { width: 15px; height: 15px; color: var(--muted); margin-inline-start: auto; }

@media (min-width: 560px) {
  .units-hero { padding: 30px; }
  .unit-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .unit-mini-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .units-hero { grid-template-columns: minmax(0, 1.5fr) minmax(260px, .5fr); align-items: start; padding: 40px; }
  .unit-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .unit-grid .unit-card:first-child { grid-column: span 2; }
  .unit-mini-grid { grid-template-columns: repeat(3, 1fr); }
}
