:root {
  --md-sys-color-primary: #6750a4;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #eaddff;
  --md-sys-color-on-primary-container: #21005d;
  --md-sys-color-secondary: #625b71;
  --md-sys-color-surface: #fef7ff;
  --md-sys-color-surface-container: #f3edf7;
  --md-sys-color-surface-container-high: #ece6f0;
  --md-sys-color-on-surface: #1d1b20;
  --md-sys-color-on-surface-variant: #49454f;
  --md-sys-color-outline: #79747e;
  --md-sys-color-outline-variant: #cac4d0;
  --md-sys-elev-1: 0 1px 2px rgba(0,0,0,.12), 0 1px 3px rgba(0,0,0,.08);
  --md-sys-elev-2: 0 2px 6px rgba(0,0,0,.14), 0 1px 4px rgba(0,0,0,.10);
  --md-sys-elev-3: 0 6px 16px rgba(0,0,0,.16);
  --md-sys-shape-sm: 12px;
  --md-sys-shape-md: 16px;
  --md-sys-shape-lg: 28px;
  --md-sys-font: "Vazirmatn", Tahoma, sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
[data-theme="dark"] {
  --md-sys-color-primary: #d0bcff;
  --md-sys-color-on-primary: #381e72;
  --md-sys-color-primary-container: #4f378b;
  --md-sys-color-on-primary-container: #eaddff;
  --md-sys-color-secondary: #ccc2dc;
  --md-sys-color-surface: #141218;
  --md-sys-color-surface-container: #211f26;
  --md-sys-color-surface-container-high: #2b2930;
  --md-sys-color-on-surface: #e6e0e9;
  --md-sys-color-on-surface-variant: #cac4d0;
  --md-sys-color-outline: #938f99;
  --md-sys-color-outline-variant: #49454f;
}
[data-palette="rose"] { --md-sys-color-primary:#b3261e; --md-sys-color-primary-container:#f9dedc; --md-sys-color-on-primary-container:#410e0b; }
[data-palette="teal"] { --md-sys-color-primary:#006a60; --md-sys-color-primary-container:#74f8e5; --md-sys-color-on-primary-container:#00201c; }
[data-palette="blue"] { --md-sys-color-primary:#195db1; --md-sys-color-primary-container:#d3e3ff; --md-sys-color-on-primary-container:#001c38; }
[data-palette="amber"] { --md-sys-color-primary:#7b5800; --md-sys-color-primary-container:#ffdea5; --md-sys-color-on-primary-container:#271900; }
[data-palette="green"] { --md-sys-color-primary:#216c2e; --md-sys-color-primary-container:#a7f5a7; --md-sys-color-on-primary-container:#002106; }
[data-theme="dark"][data-palette="rose"] { --md-sys-color-primary:#ffb4ab; --md-sys-color-primary-container:#93000a; --md-sys-color-on-primary-container:#ffdad6; }
[data-theme="dark"][data-palette="teal"] { --md-sys-color-primary:#53dbc9; --md-sys-color-primary-container:#005048; --md-sys-color-on-primary-container:#74f8e5; }
[data-theme="dark"][data-palette="blue"] { --md-sys-color-primary:#a3c9ff; --md-sys-color-primary-container:#00458e; --md-sys-color-on-primary-container:#d3e3ff; }
[data-theme="dark"][data-palette="amber"] { --md-sys-color-primary:#fabc49; --md-sys-color-primary-container:#5c4300; --md-sys-color-on-primary-container:#ffdea5; }
[data-theme="dark"][data-palette="green"] { --md-sys-color-primary:#8cd88d; --md-sys-color-primary-container:#005319; --md-sys-color-on-primary-container:#a7f5a7; }

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0; font-family:var(--md-sys-font); background:var(--md-sys-color-surface);
  color:var(--md-sys-color-on-surface); line-height:1.7; -webkit-font-smoothing:antialiased;
}
a{color:var(--md-sys-color-primary); text-decoration:none}
img{max-width:100%; display:block}
.container{width:min(1120px,100% - 2rem); margin-inline:auto}
.app-bar{
  position:sticky; top:0; z-index:40; backdrop-filter:blur(12px);
  background:color-mix(in srgb, var(--md-sys-color-surface) 88%, transparent);
  border-bottom:1px solid var(--md-sys-color-outline-variant);
}
.app-bar-inner{display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.85rem 0}
.brand{display:flex; align-items:center; gap:.7rem; color:inherit; font-weight:700; font-size:1.05rem}
.brand-mark{
  width:40px; height:40px; border-radius:12px; display:grid; place-items:center;
  background:var(--md-sys-color-primary-container); color:var(--md-sys-color-on-primary-container); font-weight:800;
}
.nav{display:flex; gap:.35rem; flex-wrap:wrap}
.nav a,.chip,.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.4rem;
  min-height:40px; padding:0 .95rem; border-radius:999px; border:0; cursor:pointer;
  font:inherit; transition:.18s ease;
}
.nav a{color:var(--md-sys-color-on-surface-variant); background:transparent}
.nav a:hover,.nav a.active{background:var(--md-sys-color-surface-container-high); color:var(--md-sys-color-on-surface)}
.btn-filled{background:var(--md-sys-color-primary); color:var(--md-sys-color-on-primary); box-shadow:var(--md-sys-elev-1)}
.btn-tonal{background:var(--md-sys-color-primary-container); color:var(--md-sys-color-on-primary-container)}
.btn-outline{background:transparent; color:var(--md-sys-color-primary); outline:1px solid var(--md-sys-color-outline)}
.btn:active{transform:scale(.98)}
.hero{
  margin:1.25rem 0 1.75rem; padding:1.5rem; border-radius:var(--md-sys-shape-lg);
  background:
    radial-gradient(1200px 400px at 100% -20%, color-mix(in srgb, var(--md-sys-color-primary) 22%, transparent), transparent 60%),
    var(--md-sys-color-surface-container);
  box-shadow:var(--md-sys-elev-1);
}
.hero h1{margin:0 0 .5rem; font-size:clamp(1.55rem,4vw,2.25rem); line-height:1.35}
.hero p{margin:0; color:var(--md-sys-color-on-surface-variant); max-width:42rem}
.grid{display:grid; gap:1rem}
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:900px){.grid-3,.grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){.grid-2,.grid-3,.grid-4{grid-template-columns:1fr}.nav{display:none}}
.card{
  background:var(--md-sys-color-surface-container); border-radius:var(--md-sys-shape-md);
  overflow:hidden; box-shadow:var(--md-sys-elev-1); display:flex; flex-direction:column;
}
.card-media{aspect-ratio:1/1; background:linear-gradient(135deg,var(--md-sys-color-primary-container),var(--md-sys-color-surface-container-high)); display:grid; place-items:center; font-size:2.4rem}
.card-body{padding:1rem 1.05rem 1.15rem; display:flex; flex-direction:column; gap:.35rem; flex:1}
.card-title{font-weight:700; margin:0; font-size:1rem}
.muted{color:var(--md-sys-color-on-surface-variant); font-size:.92rem}
.price{font-weight:800; color:var(--md-sys-color-primary); font-size:1.05rem}
.badge{display:inline-flex; padding:.15rem .55rem; border-radius:999px; background:var(--md-sys-color-primary-container); color:var(--md-sys-color-on-primary-container); font-size:.78rem; font-weight:700}
.surface{
  background:var(--md-sys-color-surface-container); border-radius:var(--md-sys-shape-md);
  padding:1.1rem; box-shadow:var(--md-sys-elev-1);
}
.field{display:flex; flex-direction:column; gap:.35rem; margin-bottom:.9rem}
.field label{font-size:.9rem; color:var(--md-sys-color-on-surface-variant)}
.field input,.field select,.field textarea{
  min-height:48px; border-radius:12px; border:1px solid var(--md-sys-color-outline-variant);
  background:var(--md-sys-color-surface); color:inherit; padding:.7rem .9rem; font:inherit;
}
.field textarea{min-height:110px; resize:vertical}
.bottom-nav{
  position:fixed; inset-inline:0; bottom:0; z-index:50;
  display:none; gap:.25rem; justify-content:space-around;
  padding:.45rem .5rem calc(.45rem + var(--safe-bottom));
  background:color-mix(in srgb, var(--md-sys-color-surface-container) 92%, transparent);
  backdrop-filter:blur(14px); border-top:1px solid var(--md-sys-color-outline-variant);
}
.bottom-nav a{flex:1; flex-direction:column; gap:.15rem; font-size:.72rem; color:var(--md-sys-color-on-surface-variant); min-height:52px; border-radius:16px}
.bottom-nav a.active{color:var(--md-sys-color-primary); background:var(--md-sys-color-primary-container)}
@media (max-width:720px){
  .bottom-nav{display:flex}
  body{padding-bottom:calc(72px + var(--safe-bottom))}
  .app-bar-inner{padding-block:.7rem}
}
.footer{margin:2.5rem 0 1.5rem; color:var(--md-sys-color-on-surface-variant); font-size:.88rem; text-align:center}
.site-footer-credit{margin-top:.5rem}
.theme-fab{
  position:fixed; left:1rem; bottom:calc(1rem + var(--safe-bottom)); z-index:60;
  width:52px; height:52px; border-radius:16px; border:0; cursor:pointer;
  background:var(--md-sys-color-primary); color:var(--md-sys-color-on-primary); box-shadow:var(--md-sys-elev-3);
}
@media (max-width:720px){.theme-fab{bottom:calc(5.2rem + var(--safe-bottom))}}
.theme-sheet{
  position:fixed; inset:auto 0 0 0; z-index:70; transform:translateY(110%);
  transition:.25s ease; background:var(--md-sys-color-surface-container); border-radius:24px 24px 0 0;
  padding:1.1rem 1.1rem calc(1.1rem + var(--safe-bottom)); box-shadow:var(--md-sys-elev-3);
}
.theme-sheet.open{transform:none}
.palette-row{display:flex; flex-wrap:wrap; gap:.55rem; margin:1rem 0}
.swatch{width:42px; height:42px; border-radius:50%; border:3px solid #fff; box-shadow:var(--md-sys-elev-1); cursor:pointer}
.status-dot{width:10px; height:10px; border-radius:50%; display:inline-block; background:var(--md-sys-color-primary)}
.table{width:100%; border-collapse:collapse}
.table th,.table td{padding:.75rem .5rem; border-bottom:1px solid var(--md-sys-color-outline-variant); text-align:right}
.calendar{display:grid; grid-template-columns:repeat(7,1fr); gap:.4rem}
.cal-cell{min-height:64px; border-radius:12px; background:var(--md-sys-color-surface); border:1px solid var(--md-sys-color-outline-variant); padding:.35rem; font-size:.82rem}
.cal-cell.bookable{cursor:pointer}
.cal-cell.bookable:hover,.cal-cell.selected{border-color:var(--md-sys-color-primary); background:var(--md-sys-color-primary-container)}
.kanban{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem}
@media (max-width:800px){.kanban{grid-template-columns:1fr}}
.kanban-col{background:var(--md-sys-color-surface-container); border-radius:16px; padding:.8rem; min-height:220px}
.toast{position:fixed; top:1rem; left:50%; transform:translateX(-50%); z-index:100; background:#1d1b20; color:#fff; padding:.7rem 1rem; border-radius:999px; box-shadow:var(--md-sys-elev-3)}
