@charset "utf-8";

:root {
  --sm-ink: #0d1b1e;
  --sm-body: #43575b;
  --sm-muted: #7a8c8f;
  --sm-emerald: #0f766e;
  --sm-emerald-dark: #0a5a54;
  --sm-mint: #14b8a6;
  --sm-mint-soft: #d8f4ee;
  --sm-cream: #fbf7f0;
  --sm-coral: #f4765d;
  --sm-line: #e6e1d6;
  --sm-shadow-sm: 0 2px 8px rgba(13, 27, 30, .06);
  --sm-shadow: 0 18px 40px -18px rgba(13, 27, 30, .28);
  --sm-shadow-lg: 0 40px 80px -40px rgba(13, 27, 30, .45);
  --sm-radius: 18px;
  --sm-ease: cubic-bezier(.2, .8, .2, 1);
}

html, body, button, input, textarea, select {
  font-family: Vazirmatn, Tahoma, sans-serif;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

.sm-app {
  min-height: 100vh;
  background:
    radial-gradient(1100px 520px at 88% -10%, rgba(20, 184, 166, .14), transparent 60%),
    radial-gradient(900px 480px at 0% 0%, rgba(244, 118, 93, .10), transparent 55%),
    var(--sm-cream);
  color: var(--sm-body);
  font-family: "Vazirmatn", "Segoe UI", Tahoma, "Iranian Sans", sans-serif;
  direction: rtl;
}

.sm-container { width: min(1180px, 100% - 40px); margin-inline: auto; }

.sm-nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  background: rgba(251, 247, 240, .82);
  border-bottom: 1px solid rgba(230, 225, 214, .8);
}
.sm-nav-inner { display: flex; align-items: center; gap: 28px; height: 78px; }
.sm-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--sm-ink); }
.sm-brand-mark {
  width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--sm-emerald), var(--sm-mint));
  color: #fff; box-shadow: 0 10px 22px -10px rgba(15, 118, 110, .8);
  animation: sm-float 6s var(--sm-ease) infinite;
}
.sm-brand-name { font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.sm-brand-sub { display: block; font-size: .72rem; color: var(--sm-muted); font-weight: 500; }
.sm-nav-links { display: flex; gap: 6px; margin-inline-start: auto; }
.sm-nav-links a {
  color: var(--sm-body); text-decoration: none; padding: 9px 14px; border-radius: 999px;
  font-weight: 600; font-size: .92rem; transition: background .25s var(--sm-ease), color .25s;
}
.sm-nav-links a:hover { background: var(--sm-mint-soft); color: var(--sm-emerald-dark); }

.sm-btn {
  --btn-bg: var(--sm-emerald); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 999px; padding: 12px 24px;
  background: var(--btn-bg); color: var(--btn-fg); font-weight: 700; font-size: .95rem;
  text-decoration: none; cursor: pointer; position: relative; overflow: hidden;
  transition: transform .25s var(--sm-ease), box-shadow .25s, background .25s;
  box-shadow: 0 12px 26px -14px rgba(15, 118, 110, .9);
}
.sm-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -16px rgba(15, 118, 110, .95); }
.sm-btn:active { transform: translateY(0) scale(.99); }
.sm-btn::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.35) 48%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--sm-ease);
}
.sm-btn:hover::after { transform: translateX(120%); }
.sm-btn-ghost { --btn-bg: transparent; --btn-fg: var(--sm-emerald-dark); border-color: rgba(15, 118, 110, .28); box-shadow: none; }
.sm-btn-ghost:hover { background: rgba(255,255,255,.7); }
.sm-btn-soft { --btn-bg: var(--sm-mint-soft); --btn-fg: var(--sm-emerald-dark); box-shadow: none; }
.sm-btn-coral { --btn-bg: var(--sm-coral); box-shadow: 0 12px 26px -14px rgba(244, 118, 93, .9); }
.sm-btn-sm { padding: 8px 16px; font-size: .85rem; }
.sm-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.sm-hero { position: relative; padding: 72px 0 56px; overflow: hidden; }
.sm-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.sm-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px;
  border-radius: 999px; background: rgba(20, 184, 166, .12); color: var(--sm-emerald-dark);
  font-weight: 700; font-size: .8rem; border: 1px solid rgba(20, 184, 166, .22);
}
.sm-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sm-mint); animation: sm-pulse 2.2s infinite; }
.sm-h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); line-height: 1.28; color: var(--sm-ink); margin: 20px 0 18px; font-weight: 800; letter-spacing: -.02em; }
.sm-h1 em { font-style: normal; color: var(--sm-emerald); position: relative; white-space: nowrap; }
.sm-lead { font-size: 1.06rem; line-height: 2; color: var(--sm-body); max-width: 34rem; }
.sm-hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.sm-hero-art { position: relative; }
.sm-hero-art img { width: 100%; border-radius: 32px; display: block; box-shadow: var(--sm-shadow-lg); animation: sm-rise .9s var(--sm-ease) both; }
.sm-orb { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .55; pointer-events: none; }
.sm-orb-a { width: 240px; height: 240px; background: #9be7d8; top: -40px; inset-inline-end: -30px; animation: sm-drift 12s ease-in-out infinite; }
.sm-orb-b { width: 200px; height: 200px; background: #ffd2c7; bottom: -50px; inset-inline-start: -20px; animation: sm-drift 14s ease-in-out infinite reverse; }
.sm-float-card {
  position: absolute; bottom: 18px; inset-inline-start: -18px;
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: rgba(255,255,255,.92); border-radius: 16px; box-shadow: var(--sm-shadow);
  font-size: .85rem; font-weight: 700; color: var(--sm-ink);
  animation: sm-float 5.5s var(--sm-ease) infinite;
}
.sm-float-card .tick { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--sm-mint-soft); color: var(--sm-emerald); }

.sm-section { padding: 56px 0; }
.sm-section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.sm-h2 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); color: var(--sm-ink); font-weight: 800; margin: 0 0 8px; letter-spacing: -.01em; }
.sm-sub { color: var(--sm-muted); margin: 0; }
.sm-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sm-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.sm-card {
  background: rgba(255,255,255,.86); border: 1px solid var(--sm-line); border-radius: var(--sm-radius);
  padding: 26px; box-shadow: var(--sm-shadow-sm);
  transition: transform .3s var(--sm-ease), box-shadow .3s, border-color .3s;
  position: relative; overflow: hidden;
}
.sm-card:hover { transform: translateY(-5px); box-shadow: var(--sm-shadow); border-color: rgba(20,184,166,.35); }
.sm-card::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--sm-mint), var(--sm-emerald), transparent);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--sm-ease);
}
.sm-card:hover::before { transform: scaleX(1); }
.sm-icon-tile { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--sm-mint-soft); color: var(--sm-emerald-dark); margin-bottom: 18px; font-size: 1.3rem; }
.sm-card h3 { color: var(--sm-ink); font-size: 1.08rem; margin: 0 0 8px; font-weight: 800; }
.sm-card p { margin: 0; color: var(--sm-body); line-height: 1.9; font-size: .92rem; }

.sm-stat { padding: 22px; border-radius: var(--sm-radius); background: #fff; border: 1px solid var(--sm-line); box-shadow: var(--sm-shadow-sm); }
.sm-stat-label { font-size: .8rem; color: var(--sm-muted); font-weight: 600; }
.sm-stat-value { font-size: 1.7rem; font-weight: 800; color: var(--sm-ink); letter-spacing: -.02em; margin-top: 6px; }
.sm-stat-value small { font-size: .8rem; font-weight: 600; color: var(--sm-muted); }
.sm-stat-delta { margin-top: 10px; font-size: .78rem; font-weight: 700; color: var(--sm-emerald); }

.sm-field { margin-bottom: 16px; }
.sm-label { display: block; font-size: .85rem; font-weight: 700; color: var(--sm-ink); margin-bottom: 7px; }
.sm-input, .sm-select, .sm-textarea {
  width: 100%; border: 1px solid var(--sm-line); background: #fff; color: var(--sm-ink);
  border-radius: 14px; padding: 12px 14px; font: inherit; font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
}
.sm-input:focus, .sm-select:focus, .sm-textarea:focus { outline: none; border-color: var(--sm-mint); box-shadow: 0 0 0 4px rgba(20,184,166,.14); }
.sm-hint { font-size: .78rem; color: var(--sm-muted); margin-top: 6px; }
.sm-error { font-size: .82rem; color: #c2410c; margin-top: 6px; }
.sm-alert { padding: 12px 16px; border-radius: 14px; font-size: .88rem; margin-bottom: 16px; }
.sm-alert-error { background: #fef1ee; color: #b93a1b; border: 1px solid #f8d3c8; }
.sm-alert-ok { background: #e9f9f3; color: #0b6b52; border: 1px solid #bfeadd; }

.sm-table-wrap { background: #fff; border: 1px solid var(--sm-line); border-radius: var(--sm-radius); overflow: auto; box-shadow: var(--sm-shadow-sm); }
.sm-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.sm-table th { text-align: start; padding: 14px 18px; background: #faf8f3; color: var(--sm-muted); font-weight: 700; font-size: .78rem; }
.sm-table td { padding: 15px 18px; border-top: 1px solid #f1ece1; color: var(--sm-ink); }
.sm-table tbody tr { transition: background .2s; }
.sm-table tbody tr:hover { background: #fbfaf6; }

.sm-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: .76rem; font-weight: 700; }
.sm-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sm-badge-pending { background: #fff5e5; color: #b26a00; }
.sm-badge-confirmed, .sm-badge-paid, .sm-badge-approved { background: #e7f8f1; color: #0b7a5c; }
.sm-badge-cancelled, .sm-badge-failed, .sm-badge-rejected { background: #fdeeea; color: #b93a1b; }
.sm-badge-completed { background: #e9f1ff; color: #2c58a8; }

.sm-auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.sm-auth-art { position: relative; overflow: hidden; background: linear-gradient(150deg, #0b4f4a, #0f766e 55%, #14b8a6); display: grid; place-items: center; padding: 48px; }
.sm-auth-art img { width: min(520px, 100%); border-radius: 28px; box-shadow: var(--sm-shadow-lg); animation: sm-rise .8s var(--sm-ease) both; }
.sm-auth-panel { display: grid; place-items: center; padding: 40px 24px; background: var(--sm-cream); }
.sm-auth-box { width: min(420px, 100%); background: #fff; border: 1px solid var(--sm-line); border-radius: 26px; padding: 34px; box-shadow: var(--sm-shadow); animation: sm-rise .6s var(--sm-ease) both; }
.sm-otp { display: flex; gap: 8px; direction: ltr; justify-content: center; }
.sm-otp input {
  width: 48px; height: 56px; text-align: center; font-size: 1.35rem; font-weight: 800;
  border: 1px solid var(--sm-line); border-radius: 14px; background: #fff; color: var(--sm-ink);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.sm-otp input:focus { outline: none; border-color: var(--sm-mint); box-shadow: 0 0 0 4px rgba(20,184,166,.14); transform: translateY(-2px); }

.sm-admin { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; background: #f7f4ee; }
.sm-sidebar { background: #0e2321; color: #cfe3df; padding: 22px 16px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.sm-sidebar .sm-brand { color: #fff; padding: 0 8px 18px; }
.sm-sidebar .sm-brand-sub { color: #7fa8a1; }
.sm-side-link { display: flex; align-items: center; gap: 10px; color: #b7cfca; text-decoration: none; padding: 11px 14px; border-radius: 12px; font-size: .9rem; font-weight: 600; transition: background .2s, color .2s, transform .2s; }
.sm-side-link:hover { background: rgba(255,255,255,.06); color: #fff; transform: translateX(-2px); }
.sm-side-link.active { background: linear-gradient(90deg, rgba(20,184,166,.24), rgba(20,184,166,.06)); color: #fff; }
.sm-main { padding: 28px 32px 48px; }
.sm-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; gap: 16px; }
.sm-page-title { font-size: 1.4rem; font-weight: 800; color: var(--sm-ink); margin: 0; }
.sm-page-sub { color: var(--sm-muted); font-size: .85rem; margin-top: 4px; }
.sm-chip { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--sm-line); border-radius: 999px; padding: 8px 14px; font-size: .84rem; font-weight: 600; }
.sm-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--sm-mint-soft); color: var(--sm-emerald-dark); display: grid; place-items: center; font-weight: 800; }

.sm-animate { animation: sm-rise .7s var(--sm-ease) both; }
.sm-stagger > * { animation: sm-rise .6s var(--sm-ease) both; }
.sm-stagger > *:nth-child(1) { animation-delay: .05s; }
.sm-stagger > *:nth-child(2) { animation-delay: .12s; }
.sm-stagger > *:nth-child(3) { animation-delay: .19s; }
.sm-stagger > *:nth-child(4) { animation-delay: .26s; }
.sm-stagger > *:nth-child(5) { animation-delay: .33s; }
.sm-stagger > *:nth-child(6) { animation-delay: .40s; }

@keyframes sm-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes sm-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes sm-drift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-18px, 14px) scale(1.08); } }
@keyframes sm-pulse { 0%, 100% { opacity: .4; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes sm-shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }

.sm-skeleton { border-radius: 12px; background: linear-gradient(90deg, #efeade 25%, #f8f4ec 50%, #efeade 75%); background-size: 800px 100%; animation: sm-shimmer 1.5s infinite linear; height: 16px; }

@media (max-width: 980px) {
  .sm-hero-grid, .sm-auth { grid-template-columns: 1fr; }
  .sm-grid-3, .sm-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .sm-admin { grid-template-columns: 1fr; }
  .sm-sidebar { position: static; height: auto; flex-direction: row; overflow-x: auto; }
  .sm-sidebar .sm-brand { display: none; }
  .sm-auth-art { display: none; }
}
@media (max-width: 640px) {
  .sm-grid-3, .sm-grid-4 { grid-template-columns: 1fr; }
  .sm-nav-links { display: none; }
  .sm-main { padding: 20px 16px 40px; }
  .sm-table { font-size: .82rem; }
}

/* ---------- Navigation account area ---------- */
.sm-nav-account { display: flex; align-items: center; gap: 10px; }
.sm-account-name {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  color: var(--sm-ink); font-size: .85rem; font-weight: 700; padding: 4px 10px 4px 4px;
  border-radius: 999px; border: 1px solid transparent; transition: background .2s, border-color .2s;
}
.sm-account-name:hover { background: #fff; border-color: var(--sm-line); }
.sm-account-links { display: flex; align-items: center; gap: 6px; }

/* ---------- Role switcher ---------- */
.sm-role-switch { position: relative; z-index: 60; }
.sm-role-btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  background: #fff; border: 1px solid var(--sm-line); border-radius: 14px;
  padding: 6px 10px; color: var(--sm-ink); font: inherit; text-align: right;
  box-shadow: var(--sm-shadow-sm); transition: border-color .2s, box-shadow .2s, transform .2s;
}
.sm-role-btn:hover { border-color: rgba(20,184,166,.55); box-shadow: 0 10px 24px -16px rgba(13,27,30,.5); }
.sm-role-text { display: flex; flex-direction: column; line-height: 1.25; }
.sm-role-text small { font-size: .66rem; color: var(--sm-muted); font-weight: 600; }
.sm-role-text strong { font-size: .85rem; font-weight: 800; }
.sm-role-caret { color: var(--sm-muted); font-size: .75rem; }
.sm-role-avatar {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  font-size: 1rem; font-weight: 800; flex: none;
  background: var(--sm-mint-soft); color: var(--sm-emerald-dark);
}
.accent-teal { background: #d9f1ee; color: #0e6b62; }
.accent-blue { background: #e3edff; color: #2c58a8; }
.accent-amber { background: #fff0d6; color: #a96800; }
.accent-violet { background: #efe7fd; color: #6d3fb5; }
.accent-coral { background: #ffe7e1; color: #b7432b; }
.sm-role-backdrop { position: fixed; inset: 0; z-index: 58; background: transparent; }
.sm-role-menu {
  position: absolute; inset-inline-start: 0; top: calc(100% + 8px); z-index: 59;
  width: 300px; background: #fff; border: 1px solid var(--sm-line); border-radius: 18px;
  box-shadow: var(--sm-shadow); padding: 10px; animation: sm-rise .22s var(--sm-ease) both;
}
.sm-role-menu-head { padding: 6px 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.sm-role-menu-head strong { font-size: .88rem; color: var(--sm-ink); }
.sm-role-menu-head span { font-size: .74rem; color: var(--sm-muted); }
.sm-role-item {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px;
  border: 1px solid transparent; background: transparent; border-radius: 13px;
  cursor: pointer; font: inherit; text-align: right; color: var(--sm-ink);
  transition: background .18s, border-color .18s;
}
.sm-role-item:hover { background: #f8f5ee; }
.sm-role-item.is-active { background: #f1faf7; border-color: rgba(20,184,166,.35); }
.sm-role-item-text { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.sm-role-item-text strong { font-size: .86rem; }
.sm-role-item-text small { font-size: .73rem; color: var(--sm-muted); line-height: 1.5; }
.sm-role-check { color: var(--sm-emerald); font-weight: 800; }
.sm-role-picker { display: flex; flex-direction: column; gap: 8px; }
.sm-role-choice {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px;
  border: 1px solid var(--sm-line); background: #fff; border-radius: 16px; cursor: pointer;
  font: inherit; text-align: right; color: var(--sm-ink);
  transition: transform .2s var(--sm-ease), border-color .2s, box-shadow .2s;
}
.sm-role-choice:hover { transform: translateY(-2px); border-color: rgba(20,184,166,.5); box-shadow: var(--sm-shadow-sm); }
.sm-role-choice span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.sm-role-choice strong { font-size: .9rem; }
.sm-role-choice small { font-size: .75rem; color: var(--sm-muted); }
.sm-role-go { color: var(--sm-muted); font-size: 1.2rem; }

/* ---------- Admin chrome additions ---------- */
.sm-topbar-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sm-sidebar-note {
  margin: 6px 6px 10px; padding: 12px; border-radius: 14px;
  background: rgba(20,184,166,.10); border: 1px solid rgba(20,184,166,.18);
  display: flex; flex-direction: column; gap: 4px;
}
.sm-sidebar-note strong { color: #fff; font-size: .85rem; }
.sm-sidebar-note span { color: #9fc4bd; font-size: .72rem; line-height: 1.7; }
.sm-side-logout {
  border: 0; background: transparent; cursor: pointer; font: inherit; text-align: right;
  width: 100%; font-size: .9rem; font-weight: 600;
}

/* ---------- Jalali date picker ---------- */
.sm-datepicker { position: relative; width: 100%; }
.sm-datepicker-control { position: relative; display: flex; align-items: center; }
.sm-datepicker-input { padding-inline-end: 44px; cursor: pointer; }
.sm-datepicker-toggle {
  position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 10px;
  background: transparent; color: var(--sm-emerald-dark); cursor: pointer;
}
.sm-datepicker-toggle:hover { background: var(--sm-mint-soft); }
.sm-datepicker-pop {
  position: absolute; z-index: 70; top: calc(100% + 6px); inset-inline-start: 0;
  width: 288px; padding: 12px; background: #fff; border: 1px solid var(--sm-line);
  border-radius: 18px; box-shadow: var(--sm-shadow); animation: sm-rise .2s var(--sm-ease) both;
}
.sm-datepicker-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 8px; }
.sm-datepicker-nav {
  width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--sm-line);
  background: #fff; color: var(--sm-ink); font-size: 1.1rem; cursor: pointer; line-height: 1;
}
.sm-datepicker-nav:hover { background: var(--sm-mint-soft); }
.sm-datepicker-title {
  border: 0; background: transparent; font: inherit; font-weight: 800; color: var(--sm-ink);
  cursor: pointer; font-size: .9rem;
}
.sm-datepicker-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 4px; }
.sm-datepicker-week span { text-align: center; font-size: .68rem; color: var(--sm-muted); font-weight: 700; padding: 4px 0; }
.sm-datepicker-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.sm-datepicker-day {
  aspect-ratio: 1; border-radius: 10px; border: 1px solid transparent; background: transparent;
  color: var(--sm-ink); font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer;
  transition: background .15s, color .15s;
}
.sm-datepicker-day:hover { background: #f1faf7; }
.sm-datepicker-day.is-today { border-color: var(--sm-mint); }
.sm-datepicker-day.is-selected { background: var(--sm-emerald); color: #fff; }
.sm-datepicker-day:disabled { color: #c9c3b7; cursor: not-allowed; text-decoration: line-through; }
.sm-datepicker-empty { aspect-ratio: 1; }
.sm-datepicker-foot { display: flex; justify-content: space-between; margin-top: 8px; border-top: 1px solid var(--sm-line); padding-top: 8px; }
.sm-datepicker-action { border: 0; background: transparent; color: var(--sm-emerald-dark); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.sm-datepicker-action.muted { color: var(--sm-muted); }

/* ---------- Layout helpers ---------- */
.sm-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.sm-toolbar {
  display: flex; align-items: end; gap: 12px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--sm-line); border-radius: var(--sm-radius);
  padding: 16px; box-shadow: var(--sm-shadow-sm); margin-bottom: 18px;
}
.sm-toolbar .sm-field { margin-bottom: 0; min-width: 150px; flex: 1 1 150px; }
.sm-toolbar .sm-label { font-size: .74rem; }
.sm-toolbar .sm-input, .sm-toolbar .sm-select { padding: 9px 12px; font-size: .85rem; }
.sm-kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.sm-kpi-card {
  background: #fff; border: 1px solid var(--sm-line); border-radius: 16px; padding: 16px 18px;
  box-shadow: var(--sm-shadow-sm); position: relative; overflow: hidden;
}
.sm-kpi-card span { font-size: .76rem; color: var(--sm-muted); font-weight: 600; }
.sm-kpi-card strong { display: block; margin-top: 6px; font-size: 1.45rem; font-weight: 800; color: var(--sm-ink); letter-spacing: -.02em; }
.sm-kpi-card small { display: block; margin-top: 4px; font-size: .72rem; color: var(--sm-emerald); font-weight: 700; }
.sm-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; background: #fff; border: 1px solid var(--sm-line); border-radius: 999px; padding: 6px; width: fit-content; max-width: 100%; overflow-x: auto; }
.sm-tab {
  border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: .85rem; font-weight: 700; color: var(--sm-body); white-space: nowrap;
  transition: background .2s, color .2s;
}
.sm-tab:hover { background: #f5f2ea; }
.sm-tab.is-active { background: var(--sm-ink); color: #fff; }
.sm-empty {
  text-align: center; padding: 40px 20px; border: 1px dashed var(--sm-line);
  border-radius: var(--sm-radius); background: rgba(255,255,255,.6); color: var(--sm-muted);
}
.sm-empty strong { display: block; color: var(--sm-ink); font-size: 1rem; margin-bottom: 6px; }

/* ---------- Booking wizard ---------- */
.sm-wizard { background: #fff; border: 1px solid var(--sm-line); border-radius: 24px; box-shadow: var(--sm-shadow); overflow: hidden; }
.sm-wizard-head { padding: 22px 26px 0; }
.sm-stepper { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.sm-step { display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; color: var(--sm-muted); }
.sm-step .n {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: #f2eee5; color: var(--sm-muted); font-size: .75rem; font-weight: 800;
}
.sm-step.is-active { color: var(--sm-ink); }
.sm-step.is-active .n { background: var(--sm-emerald); color: #fff; box-shadow: 0 0 0 4px rgba(15,118,110,.12); }
.sm-step.is-done { color: var(--sm-emerald-dark); }
.sm-step.is-done .n { background: var(--sm-mint-soft); color: var(--sm-emerald-dark); }
.sm-step-line { width: 34px; height: 1px; background: var(--sm-line); }
.sm-wizard-body { padding: 18px 26px 24px; }
.sm-wizard-foot {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  padding: 16px 26px; border-top: 1px solid var(--sm-line); background: #fbfaf6; flex-wrap: wrap;
}
.sm-choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.sm-choice-grid.is-3 { grid-template-columns: repeat(3, 1fr); }
.sm-choice {
  display: flex; flex-direction: column; gap: 4px; text-align: right; cursor: pointer;
  border: 1px solid var(--sm-line); background: #fff; border-radius: 16px; padding: 14px 16px;
  font: inherit; color: var(--sm-ink); transition: border-color .2s, box-shadow .2s, transform .2s;
}
.sm-choice:hover { border-color: rgba(20,184,166,.45); transform: translateY(-2px); }
.sm-choice.is-selected { border-color: var(--sm-emerald); box-shadow: 0 0 0 3px rgba(20,184,166,.12); background: #f4fbf9; }
.sm-choice strong { font-size: .9rem; font-weight: 800; }
.sm-choice small { font-size: .74rem; color: var(--sm-muted); line-height: 1.6; }
.sm-choice .sm-choice-foot { margin-top: 8px; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; color: var(--sm-emerald-dark); }
.sm-service-card {
  display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--sm-line);
  border-radius: 16px; padding: 16px; background: #fff; cursor: pointer; font: inherit;
  text-align: right; color: var(--sm-ink); transition: border-color .2s, box-shadow .2s, transform .2s;
}
.sm-service-card:hover { transform: translateY(-3px); box-shadow: var(--sm-shadow); }
.sm-service-card.is-selected { border-color: var(--sm-emerald); box-shadow: 0 0 0 3px rgba(20,184,166,.14); }
.sm-service-card .price { font-size: 1rem; font-weight: 800; color: var(--sm-emerald-dark); margin-top: 6px; }
.sm-service-card .price s { color: var(--sm-muted); font-weight: 600; font-size: .8rem; margin-inline-start: 8px; }
.sm-slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.sm-slot {
  border: 1px solid var(--sm-line); background: #fff; border-radius: 12px; padding: 10px 6px;
  font: inherit; font-size: .85rem; font-weight: 700; color: var(--sm-ink); cursor: pointer;
  transition: background .18s, border-color .18s, transform .18s;
}
.sm-slot:hover { border-color: var(--sm-mint); background: #f4fbf9; transform: translateY(-1px); }
.sm-slot.is-selected { background: var(--sm-emerald); border-color: var(--sm-emerald); color: #fff; }
.sm-slot:disabled { color: #bdb7ab; background: #f7f4ee; cursor: not-allowed; }
.sm-summary { background: #fbfaf6; border: 1px solid var(--sm-line); border-radius: 16px; padding: 16px 18px; }
.sm-summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: .87rem; border-bottom: 1px dashed rgba(230,225,214,.9); }
.sm-summary-row:last-child { border-bottom: 0; }
.sm-summary-row span { color: var(--sm-muted); }
.sm-summary-row strong { color: var(--sm-ink); font-weight: 700; }
.sm-summary-row.is-total strong { color: var(--sm-emerald-dark); font-size: 1rem; }
.sm-summary-row.is-due strong { color: var(--sm-coral); }
.sm-receipt { text-align: center; padding: 26px; }
.sm-receipt .tick {
  width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px;
  background: var(--sm-mint-soft); color: var(--sm-emerald-dark); font-size: 1.6rem;
  box-shadow: 0 0 0 10px rgba(20,184,166,.08);
}
.sm-table-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.sm-inline-form { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; }
.sm-inline-form .sm-field { margin-bottom: 0; }
.sm-section-note { background: #f7fbf9; border: 1px solid #dff1ea; border-radius: 14px; padding: 12px 14px; font-size: .82rem; color: #0b6b52; }

@media (max-width: 1100px) {
  .sm-kpi { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .sm-grid-2 { grid-template-columns: 1fr; }
  .sm-choice-grid, .sm-choice-grid.is-3 { grid-template-columns: 1fr; }
  .sm-role-menu { position: fixed; inset-inline: 16px; top: 84px; width: auto; }
  .sm-nav-account { gap: 6px; }
  .sm-account-name span:last-child, .sm-account-links a:first-child { display: none; }
}
@media (max-width: 640px) {
  .sm-kpi { grid-template-columns: 1fr; }
  .sm-wizard-head, .sm-wizard-body, .sm-wizard-foot { padding-inline: 16px; }
  .sm-step span:not(.n) { display: none; }
  .sm-step.is-active span:not(.n) { display: inline; }
  .sm-toolbar { padding: 12px; }
  .sm-role-btn .sm-role-text small { display: none; }
  .sm-datepicker-pop { width: min(288px, calc(100vw - 48px)); }
}

/* Public footer */
.sm-footer { margin-top: 40px; background: linear-gradient(180deg, #0f2a2c, #0b1f21); color: #cfe3e0; }
.sm-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 28px; padding: 40px 0 28px; }
.sm-footer-col { display: flex; flex-direction: column; gap: 8px; }
.sm-footer .sm-brand, .sm-footer .sm-brand * { color: #fff; }
.sm-footer-title { margin: 0 0 4px; font-size: .95rem; color: #fff; font-weight: 700; }
.sm-footer-text { margin: 0; font-size: .85rem; line-height: 1.9; color: #a9c4c0; }
.sm-footer-link { color: #cfe3e0; text-decoration: none; font-size: .9rem; width: fit-content; transition: color .2s var(--sm-ease); }
.sm-footer-link:hover { color: var(--sm-mint); }
.sm-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0 20px; font-size: .8rem; color: #8fa9a5; text-align: center; }
.sm-footer-bottom a { color: var(--sm-mint); text-decoration: none; }
.sm-footer-bottom a:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .sm-footer-grid { grid-template-columns: 1fr; gap: 20px; padding: 28px 0 20px; }
}

/* Staff management */
.sm-role-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.sm-role-option { text-align: right; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1.5px solid var(--sm-line); border-radius: 14px; background: #fff; cursor: pointer; font: inherit; color: var(--sm-ink); transition: border-color .2s var(--sm-ease), background .2s var(--sm-ease); }
.sm-role-option small { color: var(--sm-muted); font-size: .74rem; line-height: 1.7; }
.sm-role-option:hover { border-color: var(--sm-mint); }
.sm-role-option.is-selected { border-color: var(--sm-emerald); background: #ecfaf6; box-shadow: inset 0 0 0 1px var(--sm-emerald); }
.sm-chip-toggle { padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--sm-line); background: #fff; font: inherit; font-size: .85rem; cursor: pointer; color: var(--sm-body); }
.sm-chip-toggle.is-on { border-color: var(--sm-emerald); background: var(--sm-emerald); color: #fff; }
.sm-check { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--sm-body); cursor: pointer; }

/* Finance charts */
.sm-fin-filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sm-fin-card { margin-top: 16px; }
.sm-fin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.sm-fin-legend { display: flex; gap: 14px; font-size: .8rem; color: var(--sm-body); }
.sm-fin-legend span, .sm-fin-tip div { display: inline-flex; align-items: center; gap: 6px; }
.sm-fin-legend i, .sm-fin-tip i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.sm-fin-plot { position: relative; direction: ltr; }
.sm-fin-svg { width: 100%; height: auto; display: block; overflow: visible; }
.sm-fin-grid { stroke: var(--sm-line); stroke-width: 1; stroke-dasharray: 3 4; }
.sm-fin-baseline { stroke: #b9c4c2; stroke-width: 1; }
.sm-fin-axis { font-size: 10px; fill: var(--sm-muted); font-family: inherit; }
.sm-fin-hoverband { fill: rgba(13, 27, 30, .05); }
.sm-fin-tip { position: absolute; top: 4px; transform: translateX(-50%); direction: rtl; background: #fff; border: 1px solid var(--sm-line); border-radius: 12px; box-shadow: var(--sm-shadow); padding: 8px 12px; font-size: .78rem; color: var(--sm-ink); pointer-events: none; display: flex; flex-direction: column; gap: 3px; white-space: nowrap; z-index: 2; }
.sm-fin-catrow { display: grid; grid-template-columns: 110px 1fr auto; gap: 10px; align-items: center; padding: 6px 0; font-size: .84rem; }
.sm-fin-catname { color: var(--sm-body); }
.sm-fin-cattrack { height: 10px; background: #f2efe8; border-radius: 999px; overflow: hidden; display: block; }
.sm-fin-cattrack span { display: block; height: 100%; border-radius: 999px; }
.sm-fin-catval { color: var(--sm-ink); font-weight: 600; white-space: nowrap; }
@media (max-width: 640px) {
  .sm-fin-catrow { grid-template-columns: 90px 1fr; }
  .sm-fin-catval { grid-column: 2; font-size: .78rem; }
}
