/* ===================== Mehrsan design system ===================== */
:root {
  --bg: #FBF8F2; --sand: #F3EEE3; --line: #E8E1D3; --line-2: #D9D0BE;
  --ink: #1B2A2F; --muted: #4A5A5E; --soft: #6B7A7D;
  --teal: #0F6E73; --deep: #0B3F44; --night: #13262A;
  --saffron: #E39B2D; --saffron-ink: #3D2A08; --peach: #F3E3C4; --mint: #E1EFEE; --mint-2: #B8D4D1;
  --ok-bg: #DCEFEA; --ok: #0B5A4A; --warn-bg: #FFF1D6; --warn: #6B3D00; --info-bg: #E1EAF6; --info: #1F3F6B;
  --danger: #8A3B2B; --danger-bg: #FBE3DC;
  --admin-bg: #EEF1F0; --admin-line: #D3DBD9;
  --f-head: 'Dana', 'Vazirmatn', 'IRANSans', Tahoma, sans-serif;
  --f-body: 'IRANSans', 'IRANSansX', 'Vazirmatn', Tahoma, sans-serif;
  --f-num: 'Yekan', 'Vazirmatn', Tahoma, sans-serif;
  --r-sm: 10px; --r: 14px; --r-lg: 22px; --r-xl: 28px;
  --shadow: 0 1px 2px rgba(11,63,68,.06), 0 8px 24px rgba(11,63,68,.06);
  --shadow-lg: 0 30px 80px rgba(0,0,0,.28);
  --wrap: 1240px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.8; }
img { max-width: 100%; display: block; }
a { color: var(--teal); }
a:hover { color: var(--deep); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.35; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 6px; }
.num, .ltr-num { font-family: var(--f-num); }
.ltr { direction: ltr; unicode-bidi: isolate; text-align: start; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; top: -60px; inset-inline-start: 12px; background: var(--deep); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip-link:focus { top: 12px; }
.boot { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 12px; font-family: var(--f-head); font-weight: 900; font-size: 22px; color: var(--deep); }
.boot img { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.9); opacity: .6; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.stack { display: flex; flex-direction: column; gap: var(--g, 16px); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--g, 12px); }
.between { justify-content: space-between; }
.grid { display: grid; gap: var(--g, 16px); grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 260px), 100%), 1fr)); }
.split { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.split > .main { flex: 999 1 520px; min-width: 0; }
.split > .side { flex: 1 1 320px; min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.kicker { color: var(--teal); font-weight: 700; font-size: 15px; }
.hide { display: none !important; }
fieldset { min-width: 0; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 4px 0; width: 100%; }

/* ---------- buttons ---------- */
.btn { --h: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--h); padding: 0 20px; border-radius: var(--r); border: 1.5px solid transparent; background: var(--teal); color: #fff; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s, transform .05s, box-shadow .15s; white-space: nowrap; }
.btn:hover { background: var(--deep); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-loading { opacity: .55; cursor: not-allowed; }
.btn.is-loading::after { content: ''; width: 16px; height: 16px; border: 2px solid currentColor; border-inline-end-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn-sm { --h: 40px; padding: 0 14px; font-size: 14px; border-radius: var(--r-sm); }
.btn-lg { --h: 56px; padding: 0 28px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-saffron { background: var(--saffron); color: var(--ink); }
.btn-saffron:hover { background: #F0AB45; color: var(--ink); }
.btn-deep { background: var(--deep); }
.btn-ghost { background: transparent; color: var(--deep); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--sand); color: var(--deep); }
.btn-light { background: #fff; color: var(--deep); border-color: var(--line-2); }
.btn-light:hover { background: var(--sand); color: var(--deep); }
.btn-danger { background: #fff; color: var(--danger); border-color: #E6CBC3; }
.btn-danger:hover { background: var(--danger-bg); color: var(--danger); }
.btn-onDark { background: transparent; color: #FBF8F2; border-color: rgba(251,248,242,.4); }
.btn-onDark:hover { background: rgba(251,248,242,.1); color: #fff; }
.btn-link { background: none; border: 0; color: var(--teal); padding: 0; min-height: 44px; font-weight: 700; cursor: pointer; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--sand); }
svg.i { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- cards, chips ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.card.pad-sm { padding: 18px; }
.card-sand { background: var(--sand); border-color: transparent; }
.card-deep { background: var(--deep); color: #FBF8F2; border-color: transparent; }
.card-deep .muted { color: var(--mint-2); }
.card h2 { font-size: 20px; }
.card-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; background: var(--sand); color: #4A3F2B; }
.chip.ok { background: var(--ok-bg); color: var(--ok); } .chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.info { background: var(--info-bg); color: var(--info); } .chip.teal { background: var(--mint); color: var(--deep); }
.chip.peach { background: var(--peach); color: #4A3A20; } .chip.danger { background: var(--danger-bg); color: var(--danger); }
.chip.grey { background: #EDE7DB; color: #4A3F2B; } .chip.dark { background: var(--deep); color: #fff; }
.badge { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--saffron); color: var(--ink); font: 800 12px/22px var(--f-num); text-align: center; }
.pill-group { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--sand); }
.pill-group button, .pill-group a { min-height: 40px; padding: 0 14px; border-radius: 9px; border: 0; background: transparent; cursor: pointer; text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.pill-group [aria-pressed="true"], .pill-group [aria-selected="true"], .pill-group .is-active { background: var(--deep); color: #fff; font-weight: 700; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); min-width: 0; }
.field > span:first-child { font-weight: 500; }
.field .hint { font-size: 12.5px; color: var(--soft); }
.input, .field input:not([type=checkbox]):not([type=radio]):not([type=file]), .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; color: var(--ink); font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.9; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,110,115,.18); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: 13px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; cursor: pointer; color: var(--ink); }
.check input { width: 20px; height: 20px; accent-color: var(--teal); flex-shrink: 0; }
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.drop { display: grid; place-items: center; gap: 6px; padding: 20px; min-height: 120px; border: 2px dashed #9FB8B5; border-radius: var(--r); background: #F6F8F8; color: var(--deep); text-align: center; cursor: pointer; font-size: 14px; }
.drop:hover, .drop.drag { background: var(--mint); }
.drop img { max-height: 160px; border-radius: 10px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { min-height: 52px; min-width: 110px; padding: 0 16px; border-radius: var(--r); border: 1px solid var(--line-2); background: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; }
.seg button[aria-checked="true"], .seg button[aria-pressed="true"] { border: 2px solid var(--teal); background: var(--teal); color: #fff; font-weight: 700; }
.seg .sym { font: 800 20px var(--f-num); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.t { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.t th { text-align: start; font-weight: 500; color: var(--muted); font-size: 13px; padding: 10px 12px; white-space: nowrap; }
table.t td { padding: 13px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
table.t tr.clickable { cursor: pointer; }
table.t tr.clickable:hover td { background: #FAFCFB; }
.admin table.t td { border-top-color: #E6EBEA; }

/* ---------- site header / footer ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(251,248,242,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--deep); }
.brand b { font: 900 24px/1.1 var(--f-head); display: block; }
.brand small { font-size: 12px; color: var(--muted); display: block; }
.nav { display: flex; gap: 4px 22px; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; padding: 10px 0; font-weight: 500; border-bottom: 2px solid transparent; }
.nav a[aria-current="page"] { color: var(--teal); font-weight: 800; border-bottom-color: var(--saffron); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; }
@media (max-width: 1060px) {
  .nav, .header-actions .hide-sm { display: none; }
  .menu-btn { display: inline-grid; }
}
.drawer { position: fixed; inset: 0; z-index: 60; display: none; }
.drawer.open { display: block; }
.drawer .scrim { position: absolute; inset: 0; background: rgba(19,38,42,.5); }
.drawer .panel { position: absolute; inset-block: 0; inset-inline-end: 0; width: min(340px, 88vw); background: var(--bg); padding: 20px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; animation: rise .2s; }
.drawer .panel a.item { min-height: 48px; display: flex; align-items: center; padding: 0 14px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 500; }
.drawer .panel a.item[aria-current="page"] { background: var(--teal); color: #fff; }
.site-footer { background: var(--night); color: #C9D6D4; margin-top: 0; }
.site-footer a { color: #C9D6D4; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .cols { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); padding: 64px 0 32px; }
.site-footer .bottom { border-top: 1px solid #2A4044; padding: 22px 0 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: #9DB0AD; }
.site-footer h3 { font-size: 15px; color: #fff; margin-bottom: 8px; }
.site-footer .col { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }

/* ---------- marketing sections ---------- */
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section h2.title { font-size: clamp(30px, 4vw, 44px); font-weight: 900; }
.hero { position: relative; overflow: hidden; background: var(--deep); color: #FBF8F2; }
.hero .girih { position: absolute; inset: 0; opacity: .14; pointer-events: none; }
.hero .wrap { position: relative; display: grid; gap: 56px; align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); padding-block: 80px 96px; }
.hero h1 { font-size: clamp(38px, 6vw, 60px); font-weight: 900; line-height: 1.25; }
.hero h1 em { font-style: normal; color: var(--saffron); }
.hero .lead { font-size: 19px; line-height: 2; color: #D5E6E4; max-width: 560px; }
.eyebrow { align-self: flex-start; padding: 8px 14px; border-radius: 999px; background: rgba(227,155,45,.16); color: #F4C877; font-size: 14px; font-weight: 500; }
.page-hero { background: var(--sand); }
.page-hero .wrap { padding-block: 56px 48px; display: flex; flex-direction: column; gap: 14px; }
.page-hero h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 900; }
.page-hero .lead { font-size: 18px; color: var(--muted); max-width: 760px; line-height: 2; }
.crumbs { font-size: 14px; color: var(--muted); display: flex; gap: 8px; }
.crumbs a { text-decoration: none; }
.mock-card { width: 100%; max-width: 440px; justify-self: center; background: var(--bg); color: var(--ink); border-radius: var(--r-xl); padding: 24px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 16px; }
.placeholder-img { border-radius: 18px; background: repeating-linear-gradient(135deg, #EFE8DA 0 12px, #E8DFCD 12px 24px); color: #6B5E45; display: grid; place-items: center; font-size: 14px; text-align: center; padding: 12px; }
.service-card { border-radius: var(--r-xl); padding: 28px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); display: flex; flex-direction: column; justify-content: space-between; gap: 20px; min-height: 260px; transition: transform .15s, box-shadow .15s; }
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.service-card h3 { font-size: 22px; font-weight: 800; }
.service-card p { color: var(--muted); font-size: 15px; line-height: 1.9; }
.service-card.feature { background: var(--teal); color: #FBF8F2; border: 0; }
.service-card.feature p { color: #D5E6E4; }
.service-card.warm { background: var(--peach); border: 0; }
.service-card.warm p { color: #4A3A20; }
.wide { grid-column: span 2; }
@media (max-width: 680px) { .wide { grid-column: auto; } }
.step-card { background: var(--bg); border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.step-card .n { font: 900 52px/1 var(--f-num); color: var(--teal); }
.step-card.dark { background: var(--deep); color: #FBF8F2; }
.step-card.dark .n { color: var(--saffron); }
.step-card p { font-size: 15px; color: var(--muted); line-height: 1.9; }
.step-card.dark p { color: #D5E6E4; }
.occasion-chip { padding: 16px 24px; border-radius: 999px; font: 800 20px var(--f-head); }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 2px 22px; }
.faq details + details { margin-top: 12px; }
.faq summary { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 26px; color: var(--teal); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 18px; color: var(--muted); font-size: 15px; line-height: 2; }
.cta-band { border-radius: 32px; background: var(--saffron); padding: 56px 48px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; }
.cta-band h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 900; }
.cta-band p { color: var(--saffron-ink); font-size: 17px; }
.timeline-v { list-style: none; margin: 0; padding: 0; }
.timeline-v li { display: flex; gap: 22px; }
.timeline-v .rail { display: flex; flex-direction: column; align-items: center; }
.timeline-v .dot { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; font: 900 26px var(--f-num); background: var(--teal); color: #FBF8F2; flex-shrink: 0; }
.timeline-v .line { width: 2px; flex: 1; background: var(--line-2); }
.timeline-v .body { padding-bottom: 44px; display: flex; flex-direction: column; gap: 8px; }
.timeline-v h3 { font-size: 24px; font-weight: 800; }
.big-fee { font: 900 clamp(80px, 12vw, 120px)/1 var(--f-num); color: var(--saffron); }

/* ---------- app shells (account & admin) ---------- */
.shell { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; max-width: 1320px; margin: 0 auto; padding: 24px; }
.shell > .sidebar { flex: 1 1 250px; min-width: 0; position: sticky; top: 16px; }
#main:focus { outline: none; }
.shell > .content { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 22px; animation: rise .2s; }
.account-bg { background: var(--sand); min-height: 100vh; }
.sidebar-card { background: var(--bg); border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-nav a { min-height: 46px; display: flex; align-items: center; gap: 12px; padding: 0 14px; border-radius: 12px; color: var(--ink); text-decoration: none; font-size: 15px; }
.side-nav a:hover { background: var(--sand); color: var(--ink); }
.side-nav a[aria-current="page"] { background: var(--teal); color: #fff; font-weight: 700; }
.side-nav a .badge { margin-inline-start: auto; }
.user-pill { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--sand); }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.avatar.sm { width: 36px; height: 36px; font-size: 14px; }
.avatar.saffron { background: var(--saffron); color: var(--ink); }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.page-head h1 { font-size: clamp(26px, 3.5vw, 32px); font-weight: 900; }
.page-head .sub { font-size: 14.5px; color: var(--muted); }
.admin { background: var(--admin-bg); min-height: 100vh; display: flex; align-items: stretch; }
.admin-side { width: 252px; flex-shrink: 0; background: var(--deep); color: #D5E6E4; padding: 22px 14px; display: flex; flex-direction: column; gap: 22px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-side .brand { color: #FBF8F2; padding: 0 8px; }
.admin-side .brand small { color: #9FC2BE; }
.admin-side nav { display: flex; flex-direction: column; gap: 3px; }
.admin-side nav a { min-height: 44px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border-radius: 12px; color: #D5E6E4; text-decoration: none; font-size: 15px; }
.admin-side nav a:hover { background: rgba(251,248,242,.06); color: #fff; }
.admin-side nav a[aria-current="page"] { background: rgba(227,155,45,.18); color: #F4C877; font-weight: 700; }
.admin-side nav a .badge { margin-inline-start: auto; }
.admin-side .me { margin-top: auto; padding: 12px; border-radius: 14px; background: rgba(251,248,242,.06); display: flex; align-items: center; gap: 10px; font-size: 13px; }
.admin-main { flex: 1; min-width: 0; padding: 24px 28px 56px; display: flex; flex-direction: column; gap: 22px; animation: rise .2s; }
.admin .card { border-color: transparent; border-radius: 20px; }
.admin .field input:not([type=checkbox]), .admin .field select, .admin .field textarea { border-color: var(--admin-line); }
.admin-topbar { display: none; }
@media (max-width: 900px) {
  .admin { flex-direction: column; }
  .admin-side { display: none; }
  .admin-topbar { display: flex; position: sticky; top: 0; z-index: 30; background: var(--deep); color: #fff; padding: 10px 16px; align-items: center; justify-content: space-between; gap: 12px; }
  .admin-topbar .brand { color: #fff; }
  .admin-topbar .icon-btn { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
  .admin-main { padding: 18px 16px 48px; }
  .shell { padding: 16px; }
  .shell > .sidebar { position: static; flex-basis: 100%; }
  .shell > .sidebar .side-nav { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .shell > .sidebar .side-nav a { white-space: nowrap; flex-shrink: 0; }
  .shell > .sidebar .hide-mobile { display: none; }
}
.drawer.admin-drawer .panel { background: var(--deep); color: #D5E6E4; }
.drawer.admin-drawer .panel a.item { color: #D5E6E4; }
.drawer.admin-drawer .panel a.item[aria-current="page"] { background: rgba(227,155,45,.18); color: #F4C877; }

/* ---------- stats & bars ---------- */
.stat { background: #fff; border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); }
.stat .v { font: 800 32px/1.2 var(--f-num); }
.stat .l { font-size: 14px; color: var(--muted); }
.stat.teal { background: var(--teal); color: #FBF8F2; } .stat.teal .l { color: #D5E6E4; }
.stat.warn .v { color: #8A4F06; }
a.stat:hover { box-shadow: var(--shadow); color: var(--ink); }
.bar { height: 8px; border-radius: 4px; background: #E6EBEA; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 4px; background: var(--teal); }
.bar.hot > i { background: #B4532A; }
.chart { display: grid; gap: 14px; align-items: end; height: 240px; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-bottom: 1px solid var(--admin-line); padding-top: 18px; }
.chart .col { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; }
.chart .col i { display: block; width: 100%; max-width: 56px; border-radius: 10px 10px 0 0; background: #9FC2BE; min-height: 4px; }
.chart .col:last-child i { background: var(--teal); }
.chart-labels { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 14px; text-align: center; font-size: 13px; color: var(--muted); }

/* ---------- order UI ---------- */
.stepper { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; grid-template-columns: repeat(auto-fit, minmax(min(120px, 100%), 1fr)); }
.stepper li { padding: 10px 12px; border-radius: 12px; font-size: 13.5px; background: #fff; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.stepper li b { font-family: var(--f-num); }
.stepper li.done { background: var(--ok-bg); color: var(--ok); }
.stepper li.now { background: var(--teal); color: #fff; font-weight: 700; }
.stepper li.cancel { background: var(--danger-bg); color: var(--danger); }
.item-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: #fff; transition: opacity .15s; }
.item-row.off { opacity: .5; }
.item-row .thumb { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--line); cursor: zoom-in; background: var(--sand); }
.item-row .thumb.empty { display: grid; place-items: center; font-size: 11px; color: var(--soft); cursor: default; text-align: center; }
.item-row .grow { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.item-row .price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-family: var(--f-num); }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.sum-row .k { color: var(--muted); }
.card-deep .sum-row .k { color: var(--mint-2); }
.total { font: 900 34px/1.2 var(--f-num); color: var(--saffron); }
.copy-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.copy-row .k { font-size: 12.5px; color: var(--muted); }
.copy-row.hl { background: var(--warn-bg); border-color: #F0D49B; }
.events { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.events li { display: flex; gap: 14px; }
.events .rail { display: flex; flex-direction: column; align-items: center; }
.events .rail i { width: 14px; height: 14px; border-radius: 50%; background: var(--teal); margin-top: 7px; flex-shrink: 0; }
.events .rail u { width: 2px; flex: 1; background: var(--line-2); text-decoration: none; }
.events li:last-child .rail i { background: var(--saffron); box-shadow: 0 0 0 5px #FFE7BF; }
.events li:last-child .rail u { display: none; }
.events .e { padding-bottom: 16px; display: flex; flex-direction: column; }
.waiting-dots { display: flex; gap: 10px; }
.waiting-dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--teal); animation: pulse 1.4s infinite; }
.waiting-dots i:nth-child(2) { animation-delay: .2s; } .waiting-dots i:nth-child(3) { animation-delay: .4s; }
.list-edit { display: grid; grid-template-columns: 28px minmax(0, 1fr) 120px 44px; gap: 10px; align-items: center; }
@media (max-width: 560px) { .list-edit { grid-template-columns: minmax(0, 1fr) 90px 40px; } .list-edit .n { display: none; } }

/* ---------- chat ---------- */
.chat { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: #F7F9F8; border-radius: 16px; max-height: 520px; overflow-y: auto; }
.bubble { max-width: 78%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.9; white-space: pre-wrap; word-wrap: break-word; }
.bubble.them { align-self: flex-start; background: #fff; border: 1px solid #E6EBEA; border-end-start-radius: 4px; }
.bubble.me { align-self: flex-end; background: var(--teal); color: #fff; border-end-end-radius: 4px; }
.bubble .meta { display: block; font-size: 11.5px; opacity: .75; margin-top: 2px; }
.thread-item { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 14px; text-decoration: none; color: var(--ink); }
.thread-item:hover { background: #F2F5F4; color: var(--ink); }
.thread-item[aria-current="page"] { background: var(--mint); }

/* ---------- kanban ---------- */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.lane { background: #E2E8E6; border-radius: 18px; padding: 10px; display: flex; flex-direction: column; gap: 10px; min-height: 120px; }
.lane h3 { font-size: 14.5px; font-weight: 800; display: flex; justify-content: space-between; align-items: center; padding: 4px 6px; font-family: var(--f-body); }
.lane .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-inline-end: 6px; }
.kcard { background: #fff; border-radius: 14px; padding: 13px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); box-shadow: 0 1px 2px rgba(11,63,68,.08); font-size: 14px; }
.kcard:hover { box-shadow: var(--shadow); color: var(--ink); }

/* ---------- modal, toast, misc ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; }
.modal .scrim { position: absolute; inset: 0; background: rgba(19,38,42,.55); }
.modal .box { position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--bg); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-lg); animation: rise .18s; display: flex; flex-direction: column; gap: 16px; }
.modal .box.wide { width: min(860px, 100%); }
.modal .box h2 { font-size: 21px; }
.modal .close { position: absolute; top: 14px; inset-inline-end: 14px; }
.lightbox .box { background: transparent; box-shadow: none; padding: 0; width: auto; }
.lightbox img { max-height: 86vh; border-radius: 14px; }
#toasts { position: fixed; z-index: 90; inset-inline: 16px; bottom: 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; background: var(--deep); color: #fff; padding: 12px 18px; border-radius: 14px; box-shadow: var(--shadow-lg); font-size: 15px; animation: rise .2s; max-width: 520px; }
.toast.err { background: var(--danger); }
.toast.ok { background: var(--ok); }
.empty { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 40px 20px; color: var(--muted); }
.empty svg.i { width: 44px; height: 44px; color: var(--mint-2); }
.skeleton { border-radius: 14px; background: linear-gradient(90deg, #ECE7DD 0, #F6F2EA 50%, #ECE7DD 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; min-height: 18px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.notice { padding: 14px 18px; border-radius: 14px; font-size: 14.5px; line-height: 1.9; display: flex; gap: 10px; align-items: flex-start; }
.notice.warn { background: var(--warn-bg); color: var(--warn); }
.notice.info { background: var(--mint); color: var(--deep); }
.notice.danger { background: var(--danger-bg); color: var(--danger); }
.notice.ok { background: var(--ok-bg); color: var(--ok); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 14.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.err-page { min-height: 60vh; display: grid; place-content: center; justify-items: center; gap: 16px; text-align: center; padding: 40px; }
.err-page .big { font: 900 96px/1 var(--f-num); color: var(--teal); }
.auth { min-height: 100vh; display: flex; flex-wrap: wrap; }
.auth .form-side { flex: 1 1 480px; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth .art-side { flex: 1 1 440px; min-height: 360px; position: relative; overflow: hidden; background: var(--deep); color: #FBF8F2; display: flex; align-items: flex-end; padding: 56px; }
.auth .art-side .girih { position: absolute; inset: 0; opacity: .16; }
@media (max-width: 860px) { .auth .art-side { display: none; } }
.otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; direction: ltr; }
.price-tag { font: 800 15px var(--f-num); }
.dl-row { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid #E6EBEA; font-size: 14px; }
.dl-row:first-child { border-top: 0; }
@media print { .site-header, .site-footer, .sidebar, .admin-side, .no-print { display: none !important; } }
