/* ===== فونت‌ها: فایل‌ها را در assets/fonts بگذارید (راهنما در README) ===== */
@font-face { font-family: "YekanBakh"; src: url("fonts/YekanBakh-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "YekanBakh"; src: url("fonts/YekanBakh-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Estedad"; src: url("fonts/Estedad-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Estedad"; src: url("fonts/Estedad-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

/* ===== تم‌ها ===== */
:root, [data-theme="navy_blue"] {
  --bg: #050E24; --bg-hi: #0B2255; --bg-lo: #030917;
  --glass: rgba(16, 38, 86, .52); --glass-2: rgba(26, 56, 118, .5); --solid: #0B1D45; --field: rgba(6, 18, 44, .7);
  --line: rgba(104, 150, 255, .17); --line-2: rgba(120, 170, 255, .34);
  --text: #EAF1FF; --muted: #8DA2CB;
  --accent: #2F7BFF; --accent-2: #6AADFF; --accent-ink: #FFFFFF;
  --accent-grad: linear-gradient(160deg, #5AA2FF 0%, #2A6CF5 55%, #1B4FD0 100%);
  --glow: rgba(47, 123, 255, .5); --ring: rgba(106, 173, 255, .55);
  --logo: #FFFFFF;
  --danger: #FF6B7A; --ok: #3CCB8A; --warn: #F2C46B;
}
[data-theme="navy_gold"] {
  --bg: #08111F; --bg-hi: #13223F; --bg-lo: #050A14;
  --glass: rgba(20, 32, 60, .62); --glass-2: rgba(30, 46, 82, .6); --solid: #111D36; --field: rgba(6, 12, 26, .7);
  --line: rgba(228, 182, 96, .14); --line-2: rgba(228, 182, 96, .38);
  --accent: #E4B660; --accent-2: #F6D78F; --accent-ink: #1C1405;
  --accent-grad: linear-gradient(160deg, #F7DB96 0%, #E2B15A 50%, #B98434 100%);
  --glow: rgba(228, 182, 96, .38); --ring: rgba(246, 215, 143, .6);
}
[data-theme="navy_white"] {
  --bg: #07142E; --bg-hi: #10244C; --bg-lo: #040B1B;
  --glass: rgba(20, 40, 80, .55); --glass-2: rgba(30, 55, 105, .55); --solid: #0F2146; --field: rgba(5, 14, 34, .7);
  --line: rgba(255, 255, 255, .1); --line-2: rgba(255, 255, 255, .3);
  --accent: #FFFFFF; --accent-2: #DCE6F7; --accent-ink: #0A1834;
  --accent-grad: linear-gradient(160deg, #FFFFFF 0%, #DCE6F7 100%);
  --glow: rgba(255, 255, 255, .25); --ring: rgba(255, 255, 255, .5);
}
[data-theme="light"] {
  --bg: #EDF1F8; --bg-hi: #DCE6F7; --bg-lo: #E6ECF6;
  --glass: rgba(255, 255, 255, .78); --glass-2: #F2F6FC; --solid: #FFFFFF; --field: #F5F8FD;
  --line: #D6DFEE; --line-2: #B9C8E2;
  --text: #0A1834; --muted: #56688A;
  --accent: #1E5FE0; --accent-2: #3B82F6; --accent-ink: #FFFFFF;
  --accent-grad: linear-gradient(160deg, #3B82F6 0%, #1E5FE0 100%);
  --glow: rgba(30, 95, 224, .22); --ring: rgba(30, 95, 224, .4);
  --logo: #0F2A5C; --danger: #C8323F; --ok: #13875A; --warn: #9A6400;
}

:root {
  --font-head: "YekanBakh", "Estedad", "Vazirmatn", Tahoma, sans-serif;
  --font-body: "Estedad", "YekanBakh", "Vazirmatn", Tahoma, sans-serif;
  --r-sm: 10px; --r: 14px; --r-lg: 20px; --r-xl: 26px;
  --nav-w: 96px; --top-h: 76px;
  --st-pending: #8A97B3; --st-filming: #E0A458; --st-filmed: #C9873A; --st-editing: #3C82FF;
  --st-ready_to_upload: #36C2A0; --st-awaiting_client: #F2B53D; --st-uploaded: #2FB36E;
  /* رنگ برچسب نوع تسک: متن / زمینه */
  --t0: #B79BFF; --t0b: rgba(124, 88, 255, .22);
  --t1: #5FDB9C; --t1b: rgba(47, 179, 110, .2);
  --t2: #7FB8FF; --t2b: rgba(47, 123, 255, .22);
  --t3: #F2C46B; --t3b: rgba(228, 170, 70, .2);
  --t4: #FF9EC4; --t4b: rgba(236, 72, 153, .18);
  --t5: #A9B8D6; --t5b: rgba(140, 160, 200, .18);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--text);
  font-family: var(--font-body); font-size: 15px; line-height: 1.75;
  background:
    radial-gradient(1100px 620px at 85% -10%, var(--bg-hi) 0%, transparent 60%),
    radial-gradient(900px 700px at 0% 110%, var(--bg-hi) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-lo) 100%) fixed;
  background-color: var(--bg);
}
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.35; margin: 0; }
h1 { font-size: 1.7rem; letter-spacing: -.2px; } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
.muted { color: var(--muted); }
.ic { flex: none; }
.hint { font-size: 13px; color: var(--muted); }
.late { color: var(--danger) !important; }
.num { font-feature-settings: "tnum"; }
[hidden] { display: none !important; }

/* ===== شیشه ===== */
.glass, .panel, .stat, .col, .tcard, .card, .auth-box, .menu-pop, .sheet, .ptile {
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, 0) 40%), var(--glass);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 18px 40px -24px rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
[data-theme="light"] .glass, [data-theme="light"] .panel, [data-theme="light"] .stat, [data-theme="light"] .col,
[data-theme="light"] .tcard, [data-theme="light"] .card, [data-theme="light"] .auth-box, [data-theme="light"] .menu-pop,
[data-theme="light"] .sheet, [data-theme="light"] .ptile { box-shadow: 0 10px 30px -18px rgba(15, 42, 92, .35); }

/* ===== لوگو و آواتار ===== */
.logo {
  display: inline-block; width: 92px; height: 46px; background: var(--logo);
  -webkit-mask: url("img/logo-white.png") center / contain no-repeat;
          mask: url("img/logo-white.png") center / contain no-repeat;
}
.av {
  display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%;
  object-fit: cover; background: var(--glass-2); border: 1px solid var(--line-2); color: var(--text);
  font: 700 11px/1 var(--font-head);
}
.av-md { width: 42px; height: 42px; font-size: 14px; }
.av-lg { width: 64px; height: 64px; font-size: 20px; }

/* ===== نوار بالا ===== */
.topbar {
  position: sticky; top: 0; z-index: 30; height: calc(var(--top-h) + env(safe-area-inset-top));
  display: flex; align-items: center; gap: 18px;
  padding: env(safe-area-inset-top) 28px 0 28px; margin-right: var(--nav-w);
  background: linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 85%, transparent) 60%, transparent 100%);
}
.top-user { display: flex; align-items: center; gap: 12px; }
.me { display: flex; align-items: center; gap: 4px; cursor: pointer; list-style: none; color: var(--muted); }
.me::-webkit-details-marker { display: none; }
.icon-btn {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--glass); color: var(--text); text-decoration: none;
}
.icon-btn:hover { border-color: var(--line-2); }
.badge {
  position: absolute; top: 2px; left: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--accent); color: var(--accent-ink); font-size: 10px; line-height: 18px; text-align: center;
  box-shadow: 0 0 0 3px var(--bg);
}
.top-search {
  flex: 1; max-width: 520px; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px;
  border-radius: 23px; border: 1px solid var(--line); background: var(--field); color: var(--muted);
}
.top-search input { flex: 1; border: 0 !important; background: none !important; box-shadow: none !important; padding: 0 !important; color: var(--text); }
.top-search:focus-within { border-color: var(--ring); }
.brand { margin-right: auto; display: flex; text-decoration: none; }
.brand .logo { width: 84px; height: 42px; }
.menu { position: relative; }
.menu-pop { position: absolute; right: 0; top: 54px; min-width: 210px; padding: 8px; border-radius: var(--r); z-index: 40; background-color: var(--solid); }
.menu-pop a { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: var(--r-sm); text-decoration: none; }
.menu-pop a:hover { background: var(--glass-2); }
.menu-name { padding: 6px 10px 10px; font-weight: 500; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: grid; }
.menu-name small { color: var(--muted); font-weight: 400; }

/* ===== منوی کناری ===== */
.sidenav {
  position: fixed; top: 0; right: 0; bottom: 0; width: var(--nav-w); z-index: 35;
  padding: 18px 10px 18px; display: flex; flex-direction: column; gap: 6px;
  background: color-mix(in srgb, var(--bg-lo) 70%, transparent);
  border-left: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.sidenav a {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 4px 10px;
  border-radius: 16px; text-decoration: none; color: var(--muted); font-size: 12.5px; text-align: center; line-height: 1.4;
  border: 1px solid transparent;
}
.sidenav a:hover { color: var(--text); background: var(--glass); }
.sidenav a.on {
  color: #fff; background: var(--accent-grad); border-color: var(--line-2);
  box-shadow: 0 10px 28px -8px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .35);
}
[data-theme="navy_gold"] .sidenav a.on, [data-theme="navy_white"] .sidenav a.on { color: var(--accent-ink); }
.sidenav .nav-settings { margin-top: auto; }
.bottomnav { display: none; }

.main { padding: 8px 28px 56px; max-width: 1560px; }
body.has-nav .main { margin-right: var(--nav-w); }
body.bare .main { margin: 0 auto; padding-top: 24px; }

/* ===== موبایل ===== */
@media (max-width: 860px) {
  :root { --top-h: 64px; }
  .sidenav { display: none; }
  .topbar { margin-right: 0; padding: env(safe-area-inset-top) 14px 0; gap: 10px; }
  .top-search { display: none; }
  .brand .logo { width: 70px; height: 34px; }
  body.has-nav .main { margin-right: 0; padding: 4px 14px calc(104px + env(safe-area-inset-bottom)); }
  .bottomnav {
    position: fixed; z-index: 35; right: 10px; left: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
    display: flex; justify-content: space-around; align-items: center; padding: 8px 6px; border-radius: 24px;
    background: color-mix(in srgb, var(--solid) 88%, transparent); border: 1px solid var(--line);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .7);
  }
  .bottomnav > a, .bottomnav summary {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 2px;
    color: var(--muted); font-size: 11px; text-decoration: none; list-style: none; cursor: pointer;
  }
  .bottomnav summary::-webkit-details-marker { display: none; }
  .bottomnav > a.on { color: var(--accent-2); }
  .bottomnav > a.on .ic {
    width: 44px; height: 44px; padding: 10px; margin-top: -22px; border-radius: 14px; color: var(--accent-ink);
    background: var(--accent-grad); box-shadow: 0 10px 24px -6px var(--glow);
  }
  [data-theme="navy_blue"] .bottomnav > a.on .ic { color: #fff; }
  .more { flex: 1; display: flex; }
  .sheet {
    position: fixed; right: 10px; left: 10px; bottom: calc(86px + env(safe-area-inset-bottom)); padding: 8px;
    border-radius: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background-color: var(--solid);
  }
  .sheet a { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; text-decoration: none; }
  .sheet a.on, .sheet a:hover { background: var(--glass-2); }
}

/* ===== اجزای عمومی ===== */
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin: 6px 0 22px; }
.page-head p { margin: 2px 0 0; color: var(--muted); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border-radius: 12px; border: 1px solid transparent; background: var(--accent-grad); color: var(--accent-ink);
  font: 500 14.5px/1.4 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: 0 10px 24px -12px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .3);
}
[data-theme="navy_blue"] .btn:not(.ghost):not(.danger):not(.ok) { color: #fff; }
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: var(--glass); color: var(--text); border-color: var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--line-2); }
.btn.danger { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 55%, transparent); box-shadow: none; }
.btn.ok { background: linear-gradient(160deg, #3FD394, #1E9F63); color: #fff; box-shadow: 0 10px 22px -12px rgba(47, 179, 110, .7); }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn.icon-only { padding: 0; width: 44px; }
.btn.sm.icon-only { width: 34px; }

.panel { border-radius: var(--r-lg); padding: 20px; }
.panel + .panel { margin-top: 18px; }
.panel h2 { margin-bottom: 14px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.panel-head h2 { margin: 0; }
.panel-head a { font-size: 13px; color: var(--accent-2); text-decoration: none; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.mt { margin-top: 18px; }

/* کارت آمار (طرح: آیکون مربعی رنگی، عدد درشت، لینک) */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat { display: flex; align-items: flex-start; gap: 14px; padding: 18px; border-radius: var(--r-lg); text-decoration: none; }
.stat:hover { border-color: var(--line-2); }
.stat-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; color: #fff; background: var(--accent-grad); box-shadow: 0 10px 22px -10px var(--glow); flex: none; }
.stat.tone-danger .stat-ic { background: linear-gradient(160deg, #FF7A8A, #E03A52); box-shadow: 0 10px 22px -10px rgba(224, 58, 82, .7); }
.stat.tone-muted .stat-ic { background: linear-gradient(160deg, #56688F, #34466B); box-shadow: none; }
.stat.tone-ok .stat-ic { background: linear-gradient(160deg, #3FD394, #1E9F63); box-shadow: 0 10px 22px -10px rgba(47, 179, 110, .6); }
.stat.tone-warn .stat-ic { background: linear-gradient(160deg, #F7D27A, #D9A13A); color: #2A1C02; box-shadow: 0 10px 22px -10px rgba(217, 161, 58, .6); }
.stat-body { display: grid; flex: 1; }
.stat-label { color: var(--muted); font-size: 13.5px; }
.stat b { font: 700 2.1rem/1.15 var(--font-head); }
.stat-link { font-size: 12.5px; color: var(--accent-2); }
.stat.tone-danger b { color: var(--danger); }
.stat.tone-danger .stat-link { color: var(--danger); }
@media (max-width: 620px) {
  .stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat { flex-direction: column; align-items: center; text-align: center; padding: 12px 6px; gap: 6px; }
  .stat-ic { width: 38px; height: 38px; border-radius: 11px; }
  .stat b { font-size: 1.5rem; order: -1; }
  .stat-label { font-size: 11.5px; } .stat-link { display: none; }
}

/* فرم‌ها */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
label.field { display: grid; gap: 6px; font-size: 13.5px; color: var(--muted); }
input[type=text], input[type=password], input[type=tel], input[type=email], input[type=search], input[type=url],
input[type=time], input[type=number], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--field); color: var(--text); font: 400 15px/1.5 var(--font-body);
}
select { appearance: none; -webkit-appearance: none; padding-left: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238DA2CB' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 12px center; }
select option { background: var(--solid); color: var(--text); }
textarea { min-height: 100px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ring); box-shadow: 0 0 0 4px var(--glow); }
input[disabled], select[disabled], textarea[disabled] { opacity: .7; }
.check { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 14px; cursor: pointer; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--accent); }
fieldset { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin: 0; }
legend { padding: 0 6px; color: var(--muted); font-size: 13px; }

.imgfield { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px dashed var(--line-2); border-radius: var(--r); cursor: pointer; }
.imgfield-prev { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: var(--field); color: var(--muted); flex: none; }
.imgfield-prev img { width: 100%; height: 100%; object-fit: cover; }
.imgfield-text { display: grid; flex: 1; }
.imgfield input { max-width: 100%; font-size: 13px; color: var(--muted); }

/* پیام‌ها */
.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 14px; border: 1px solid color-mix(in srgb, var(--ok) 45%, transparent); background: color-mix(in srgb, var(--ok) 13%, transparent); }
.flash-err { border-color: color-mix(in srgb, var(--danger) 50%, transparent); background: color-mix(in srgb, var(--danger) 13%, transparent); }
.flash-info { border-color: var(--line-2); background: var(--glass); }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); display: grid; justify-items: center; gap: 14px; }
.empty .ic { width: 44px; height: 44px; opacity: .6; }

/* جدول و فهرست */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: right; font-weight: 500; color: var(--muted); font-size: 12.5px; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table a { text-decoration: none; }
.table a:hover { color: var(--accent-2); }
.table tfoot td { font-weight: 700; }
.list { list-style: none; margin: 0; padding: 0; display: grid; }
.list li { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list a { text-decoration: none; }
.list a:hover { color: var(--accent-2); }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 11px; border-radius: 999px; font-size: 12px; font-weight: 500; line-height: 1.9; background: var(--glass-2); border: 1px solid var(--line); white-space: nowrap; }
.pill.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.pill.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.pill.danger { color: var(--danger); background: color-mix(in srgb, var(--danger) 14%, transparent); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.pill.accent { color: var(--accent-2); background: color-mix(in srgb, var(--accent) 14%, transparent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.progress { height: 7px; border-radius: 99px; background: var(--field); overflow: hidden; border: 1px solid var(--line); }
.progress i { display: block; height: 100%; border-radius: 99px; background: var(--accent-grad); box-shadow: 0 0 12px var(--glow); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; padding: 5px; border-radius: 14px; border: 1px solid var(--line); background: var(--field); width: fit-content; max-width: 100%; overflow-x: auto; }
.tabs a { padding: 7px 16px; border-radius: 10px; text-decoration: none; color: var(--muted); font-size: 14px; white-space: nowrap; }
.tabs a.on { background: var(--accent-grad); color: var(--accent-ink); }
[data-theme="navy_blue"] .tabs a.on { color: #fff; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.filters input, .filters select { width: auto; min-width: 170px; min-height: 42px; }
.filters input[type=search] { min-width: 230px; }
.board-bar select, .page-head select { width: auto; min-height: 44px; }

/* ===== صفحه خانه: چرخ ===== */
.home { position: relative; display: grid; justify-items: center; gap: 6px; padding-top: 4px; min-height: calc(100vh - var(--top-h) - 40px); }
.home-greet { text-align: center; }
.home-greet h1 { font-size: 1.9rem; }
.home-greet p { margin: 0; color: var(--muted); }
.wheel { width: min(680px, 94vw); height: auto; overflow: visible; margin-top: -6px; }
.wheel .slice { cursor: pointer; outline: none; }
.wheel .slice-shape {
  fill: url(#sliceFill); stroke: url(#sliceFill); stroke-width: 18; stroke-linejoin: round;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.wheel .slice-edge { fill: none; stroke: var(--line-2); stroke-width: 1.2; opacity: .8; pointer-events: none; }
.wheel .slice-body { transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.wheel .slice:hover .slice-body, .wheel .slice:focus-visible .slice-body { transform: translate(var(--dx), var(--dy)); }
.wheel .slice:focus-visible .slice-shape { stroke: var(--ring); }
.wheel .s-icon { color: var(--accent-2); }
.wheel .s-label { fill: var(--text); font: 700 21px var(--font-head); }
.wheel .slice.focus .slice-body { transform: translate(calc(var(--dx) * 1.4), calc(var(--dy) * 1.4)); }
.wheel .slice.focus .slice-shape { fill: url(#sliceActive); stroke: url(#sliceActive); filter: url(#glow); }
.wheel .slice.focus .slice-edge { stroke: rgba(255, 255, 255, .7); }
.wheel .slice.focus .s-icon { color: #fff; }
.wheel .slice.focus .s-label { fill: #fff; }
[data-theme="navy_gold"] .wheel .slice.focus .s-icon, [data-theme="navy_white"] .wheel .slice.focus .s-icon { color: var(--accent-ink); }
[data-theme="navy_gold"] .wheel .slice.focus .s-label, [data-theme="navy_white"] .wheel .slice.focus .s-label { fill: var(--accent-ink); }
.wheel .s-pill rect { fill: rgba(255, 255, 255, .88); }
.wheel .s-pill text { fill: #0B2255; font: 700 15px var(--font-head); }
[data-theme="navy_gold"] .wheel .s-pill rect { fill: #1C1405; }
[data-theme="navy_gold"] .wheel .s-pill text { fill: #F6D78F; }
.wheel .hub-halo { fill: none; stroke: var(--ring); stroke-width: 2.5; filter: url(#glow); }
.wheel .hub { fill: url(#hubFill); stroke: var(--line-2); stroke-width: 1; }
.wheel .hub-logo { fill: var(--logo); }
[data-theme="light"] .wheel .s-label { fill: var(--text); }
[data-theme="light"] .wheel .slice:not(.focus) .slice-shape { filter: drop-shadow(0 8px 16px rgba(15, 42, 92, .13)); }
[data-theme="light"] .wheel .hub { fill: #0F2A5C; }
[data-theme="light"] .wheel .hub-logo { fill: #fff; }
@media (prefers-reduced-motion: reduce) { .wheel .slice-body, .wheel .slice-shape { transition: none; } }

.quick { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 4px; }
.quick a, .quick form button, .quick .qchip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--glass); color: var(--text); text-decoration: none; font: 400 14px/1.4 var(--font-body); cursor: pointer;
}
.quick a:hover, .quick form button:hover { border-color: var(--line-2); }
.quick .qchip.done { color: var(--ok); }
.quick form { margin: 0; }
.home-foot { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: auto; padding-top: 30px; color: var(--muted); font-size: 13px; }
.home-foot .sig { display: grid; line-height: 1.3; direction: ltr; text-align: left; }
.home-foot .sig b { font: 400 18px/1.2 var(--font-head); letter-spacing: 6px; color: var(--text); }
.home-foot .sig span { font-size: 9.5px; letter-spacing: 3px; }
.home-foot .tag { display: flex; align-items: center; gap: 10px; }
.home-foot .tag::after { content: ""; width: 34px; height: 2px; background: var(--accent); border-radius: 2px; }
.wave { position: fixed; left: 0; bottom: 0; width: 52vw; max-width: 820px; height: auto; pointer-events: none; z-index: -1; opacity: .55; }
@media (max-width: 620px) { .home-greet h1 { font-size: 1.5rem; } .home-foot { flex-direction: column-reverse; gap: 8px; } .wheel .s-label { font-size: 23px; } }

/* ===== برد تسک ===== */
.board-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--field); }
.seg a { display: grid; place-items: center; width: 38px; height: 34px; border-radius: 9px; color: var(--muted); }
.seg a.on { background: var(--glass-2); color: var(--text); }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(290px, 1fr); gap: 16px; overflow-x: auto; padding-bottom: 12px; align-items: start; }
.col { border-radius: var(--r-lg); padding: 12px; min-height: 180px; }
.col.drag-over { border-color: var(--ring); box-shadow: 0 0 0 3px var(--glow); }
.col-head { display: flex; align-items: center; gap: 10px; padding: 4px 6px 12px; font-family: var(--font-head); font-weight: 700; }
.col-head .count {
  margin-right: auto; display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 50%;
  border: 1.5px solid var(--c, var(--line-2)); color: var(--c, var(--text)); font-size: 13px;
}
.col-body { display: grid; gap: 10px; min-height: 60px; }
.tcard { display: flex; gap: 12px; padding: 10px; border-radius: 16px; background-color: color-mix(in srgb, var(--solid) 60%, transparent); cursor: default; }
.tcard[draggable="true"] { cursor: grab; }
.tcard.dragging { opacity: .45; }
.tcard:hover { border-color: var(--line-2); }
.t-main { flex: 1; min-width: 0; display: grid; align-content: start; gap: 2px; }
.t-title { font-weight: 500; text-decoration: none; line-height: 1.55; }
.t-title:hover { color: var(--accent-2); }
.t-sub { font-size: 12.5px; color: var(--muted); }
.t-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.t-foot .who { display: inline-flex; align-items: center; gap: 6px; }
.t-foot .due { margin-right: auto; }
.t-cover { width: 76px; height: 86px; border-radius: 12px; overflow: hidden; flex: none; background: var(--field); display: grid; place-items: center; color: var(--muted); order: 2; }
.t-cover img { width: 100%; height: 100%; object-fit: cover; }
.tag { display: inline-flex; padding: 1px 10px; border-radius: 8px; font-size: 12px; font-weight: 500; line-height: 1.9; }
.tag.t0 { color: var(--t0); background: var(--t0b); } .tag.t1 { color: var(--t1); background: var(--t1b); }
.tag.t2 { color: var(--t2); background: var(--t2b); } .tag.t3 { color: var(--t3); background: var(--t3b); }
.tag.t4 { color: var(--t4); background: var(--t4b); } .tag.t5 { color: var(--t5); background: var(--t5b); }
[data-theme="light"] .tag { filter: saturate(1.4) brightness(.7); }
.status-select { min-height: 32px !important; padding: 4px 30px 4px 10px !important; font-size: 12.5px !important; border-radius: 9px !important; background-position: left 8px center !important; margin-top: 6px; }
.decision { font-size: 12px; }
.st-chips { display: none; }
@media (max-width: 860px) {
  .st-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; }
  .st-chips button {
    flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 14px;
    border: 1px solid var(--line); background: var(--glass); color: var(--text); font: 500 14px/1.4 var(--font-body); cursor: pointer;
  }
  .st-chips button b { display: grid; place-items: center; min-width: 22px; height: 22px; border-radius: 50%; background: var(--field); font-size: 12px; }
  .st-chips button.on { background: var(--accent-grad); color: var(--accent-ink); border-color: transparent; }
  [data-theme="navy_blue"] .st-chips button.on { color: #fff; }
  .board.mobile { display: block; overflow: visible; }
  .board.mobile .col { display: none; padding: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .board.mobile .col.show { display: block; }
  .board.mobile .col-head { display: none; }
  .t-cover { width: 96px; height: 96px; }
}

/* ===== فرم با ستون کناری ===== */
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1100px) { .split { grid-template-columns: 1fr; } }
.comments { display: grid; gap: 12px; }
.cmt { display: flex; gap: 10px; }
.cmt-body { flex: 1; padding: 10px 14px; border-radius: 4px 14px 14px 14px; background: var(--field); border: 1px solid var(--line); }
.cmt.client .cmt-body { border-color: color-mix(in srgb, var(--warn) 40%, transparent); background: color-mix(in srgb, var(--warn) 8%, var(--field)); }
.cmt-meta { font-size: 12px; color: var(--muted); display: flex; gap: 8px; }
.cover-big { width: 100%; aspect-ratio: 4 / 5; max-height: 360px; object-fit: cover; border-radius: var(--r); display: block; margin-bottom: 12px; }

/* ===== مشتری‌ها ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.card { border-radius: var(--r-lg); padding: 16px; display: grid; gap: 12px; text-decoration: none; }
a.card:hover { border-color: var(--line-2); }
.card-top { display: flex; gap: 12px; align-items: center; }
.card-top .logo-sq { width: 54px; height: 54px; border-radius: 14px; object-fit: cover; background: var(--field); display: grid; place-items: center; font: 700 18px var(--font-head); color: var(--accent-2); flex: none; border: 1px solid var(--line); }
.card-top h3 { font-size: 1.05rem; }
.kv { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.kv b { color: var(--text); font-weight: 500; }

/* ===== تقویم ===== */
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.cal-head h2 { margin: 0; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal .dow { text-align: center; font-size: 12.5px; color: var(--muted); padding: 4px 0; }
.cal .day {
  min-height: 108px; padding: 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--field);
  text-decoration: none; display: flex; flex-direction: column; gap: 3px; overflow: hidden;
}
.cal .day:hover { border-color: var(--line-2); }
.cal .day.out { opacity: .35; }
.cal .day.today { border-color: var(--ring); box-shadow: 0 0 0 3px var(--glow); }
.cal .day.sel { background: var(--glass-2); border-color: var(--line-2); }
.cal .dn { font: 700 14px var(--font-head); }
.cal .day.fri .dn { color: var(--danger); }
.ev { display: block; font-size: 11.5px; line-height: 1.5; padding: 1px 6px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev.k-meeting { background: var(--t2b); color: var(--t2); }
.ev.k-shoot { background: var(--t3b); color: var(--t3); }
.ev.k-publish { background: var(--t1b); color: var(--t1); }
.ev.k-other { background: var(--t5b); color: var(--t5); }
.ev.k-task { background: transparent; color: var(--muted); border: 1px dashed var(--line-2); }
.ev-more { font-size: 11px; color: var(--muted); }
@media (max-width: 760px) {
  .cal { gap: 3px; }
  .cal .day { min-height: 52px; align-items: center; padding: 4px 2px; }
  .cal .ev { display: none; }
  .cal .ev-dots { display: flex; gap: 2px; }
  .cal .ev-more { display: none; }
}
.ev-dots { display: none; }
.ev-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-2); }

/* ===== حضور و غیاب ===== */
.clock-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.clock-now { font: 700 2.6rem/1 var(--font-head); font-feature-settings: "tnum"; }
.clock-times { display: flex; gap: 24px; }
.clock-times div { display: grid; }
.clock-times b { font: 700 1.3rem var(--font-head); }

/* ===== فاکتور ===== */
.inv-items .it-row { display: grid; grid-template-columns: minmax(0, 3fr) 90px minmax(0, 1.4fr) 44px; gap: 8px; align-items: center; margin-bottom: 8px; }
.inv-sum { display: grid; gap: 6px; justify-content: end; text-align: left; }
.inv-sum div { display: flex; gap: 24px; justify-content: space-between; min-width: 260px; }
.inv-sum .total { font: 700 1.2rem var(--font-head); border-top: 1px solid var(--line); padding-top: 8px; }
@media (max-width: 620px) { .inv-items .it-row { grid-template-columns: 1fr 70px; } .inv-items .it-row input[name="price[]"] { grid-column: 1; } }

.print-sheet { background: #fff; color: #111; border-radius: 16px; padding: 36px; max-width: 860px; margin: 0 auto; }
.print-sheet .table th, .print-sheet .table td { border-color: #E3E7EF; color: #111; }
.print-sheet .muted, .print-sheet .hint { color: #5A6478; }
.print-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 28px; }
.print-head .logo { background: #0A1834; width: 110px; height: 55px; }
@media print {
  body { background: #fff !important; }
  .topbar, .sidenav, .bottomnav, .no-print, .flash, .p-top, .preview-bar { display: none !important; }
  .portal { padding: 0; }
  body.has-nav .main { margin: 0; padding: 0; }
  .print-sheet { padding: 0; border-radius: 0; }
}

/* ===== ورود و صفحه‌های ساده ===== */
.auth { min-height: calc(100vh - 48px); display: grid; place-items: center; padding: 20px; }
.auth-box { width: min(430px, 100%); padding: 32px 28px; border-radius: var(--r-xl); display: grid; gap: 16px; text-align: center; }
.auth-box .logo { margin: 0 auto 4px; width: 110px; height: 55px; }
.auth-box p { margin: 0; color: var(--muted); }
.auth-box .form, .auth-box.form { text-align: right; }
.otp-input { text-align: center; letter-spacing: 12px; font: 700 26px var(--font-head) !important; direction: ltr; }

/* ===== تنظیمات ===== */
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.theme-opt { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; }
.theme-opt:has(input:checked) { border-color: var(--ring); box-shadow: 0 0 0 3px var(--glow); }
.theme-opt input { position: absolute; opacity: 0; }
.swatch { display: flex; height: 38px; border-radius: 10px; overflow: hidden; }
.swatch i { flex: 1; }

/* ===== پنل مشتری ===== */
.portal { max-width: 1180px; margin: 0 auto; padding: calc(14px + env(safe-area-inset-top)) 18px 40px; }
.p-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.p-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.p-brand .logo { width: 70px; height: 35px; }
.p-brand b { display: block; font: 700 1.25rem/1.1 var(--font-head); letter-spacing: 4px; direction: ltr; }
.p-brand span { font-size: 12.5px; color: var(--muted); }
.p-hero { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
.p-hero img, .p-hero .logo-sq { width: 120px; height: 100px; border-radius: 16px; object-fit: cover; background: var(--field); display: grid; place-items: center; font: 700 28px var(--font-head); color: var(--accent-2); }
.p-hero h1 { font-size: 1.5rem; }
.p-progress { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.p-progress .progress { flex: 1; height: 9px; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
@media (max-width: 520px) { .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .vcard h3 { font-size: .85rem; } .p-hero img, .p-hero .logo-sq { width: 84px; height: 76px; } }
.vcard { display: grid; gap: 8px; padding: 8px; border-radius: 16px; }
.vthumb { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: var(--field); }
.vthumb img { width: 100%; height: 100%; object-fit: cover; }
.vthumb .play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .4)); }
.vthumb .play .ic { width: 42px; height: 42px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); }
.vcard h3 { font-size: .95rem; text-align: center; }
.vcard form { margin: 0; }
.vcard .btn { width: 100%; min-height: 38px; }
.vcard details summary { list-style: none; }
.vcard details summary::-webkit-details-marker { display: none; }
.vcard details[open] summary { display: none; }
.vcard textarea { min-height: 80px; font-size: 14px; }
.ptile { border-radius: 14px; padding: 12px; }
.mini-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; font-size: 12.5px; }
.mini-cal span { padding: 5px 0; border-radius: 8px; position: relative; }
.mini-cal .h { color: var(--muted); }
.mini-cal .has::after { content: ""; position: absolute; bottom: 1px; right: 50%; transform: translateX(50%); width: 4px; height: 4px; border-radius: 50%; background: var(--ok); }
.mini-cal .today { background: var(--accent-grad); color: var(--accent-ink); font-weight: 700; }
.mini-cal .has.pub { outline: 1.5px solid var(--accent-2); }
.preview-bar { padding: 10px 14px; border-radius: 12px; margin-bottom: 14px; background: color-mix(in srgb, var(--warn) 16%, transparent); border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); }
