/* SaloonTracker design system — platform surfaces (marketplace, auth, dashboard) */
:root {
  --ink: #16213A;
  --ink-2: #24314F;
  --porcelain: #F5F6FA;
  --white: #FFFFFF;
  --line: #E3E6EE;
  --steel: #5B6475;
  --brass: #B8913A;
  --brass-soft: #F4ECDA;
  --mint: #1F8A78;
  --mint-soft: #E2F3EF;
  --danger: #B42318;
  --danger-soft: #FDECEA;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --font-ui: "Manrope", "Hind Siliguri", system-ui, sans-serif;
  --font-display: "Instrument Serif", "Tiro Bangla", Georgia, serif;
}
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-ui); color: var(--ink); background: var(--porcelain); }
html[lang="bn"] body { font-size: 1.06rem; line-height: 1.7; }
.font-display { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; }
html[lang="bn"] .font-display { letter-spacing: 0; line-height: 1.25; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; border-radius: 6px; }

/* Buttons */
.st-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px;
  padding: .65rem 1.2rem; border-radius: 999px; font-weight: 700; font-size: .95rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.st-btn-primary { background: var(--ink); color: var(--white); }
.st-btn-primary:hover { background: var(--ink-2); }
.st-btn-brass { background: var(--brass); color: var(--white); }
.st-btn-brass:hover { background: #A07C2F; }
.st-btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.st-btn-ghost:hover { border-color: var(--ink); }
.st-btn-block { width: 100%; }
.st-btn-sm { min-height: 36px; padding: .4rem .9rem; font-size: .85rem; }
.st-link { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--brass); }

/* Forms */
.st-label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .35rem; }
.st-input, select.st-input, textarea.st-input { width: 100%; min-height: 48px; padding: .7rem .95rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--white); color: var(--ink); font: inherit; }
.st-input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(22,33,58,.12); }
.st-otp { letter-spacing: .6em; font-size: 1.5rem; text-align: center; font-weight: 700; }
.st-check { width: 20px; height: 20px; accent-color: var(--ink); }
.st-help { color: var(--steel); font-size: .82rem; margin-top: .3rem; }
.st-error { color: var(--danger); font-size: .85rem; margin-top: .3rem; font-weight: 600; }
.st-field { margin-bottom: 1.1rem; }
.st-errorbox { background: var(--danger-soft); color: var(--danger); border-radius: var(--radius-sm); padding: .75rem 1rem; font-weight: 600; margin-bottom: 1rem; }

/* Surfaces */
.st-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.st-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.st-chip-mint { background: var(--mint-soft); color: var(--mint); }
.st-chip-brass { background: var(--brass-soft); color: #7A5E1F; }
.st-chip-line { border: 1px solid var(--line); color: var(--steel); }

/* Language switch */
.st-lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--white); }
.st-lang a { padding: .25rem .7rem; border-radius: 999px; font-size: .82rem; font-weight: 700; text-decoration: none; color: var(--steel); }
.st-lang a[aria-current="true"] { background: var(--ink); color: var(--white); }

/* Toasts */
.st-toast { border-radius: var(--radius); padding: .8rem 1.1rem; font-weight: 600; box-shadow: 0 8px 30px rgba(22,33,58,.12); background: var(--white); border-left: 4px solid var(--ink); }
.st-toast.success { border-left-color: var(--mint); }
.st-toast.error { border-left-color: var(--danger); }
.st-toast.warning, .st-toast.info { border-left-color: var(--brass); }

/* Marketplace */
.st-hero-title { font-size: clamp(2.6rem, 6vw, 4.8rem); line-height: 1; }
.st-cover { position: relative; aspect-ratio: 16 / 7; border-radius: var(--radius); overflow: hidden; }
.st-cover img { width: 100%; height: 100%; object-fit: cover; }
.st-cover-fallback { width: 100%; height: 100%; display: flex; align-items: flex-end; padding: .9rem; color: rgba(255,255,255,.92);
  font-family: var(--font-display); font-size: 2.2rem; line-height: 1; }
.st-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: .7rem; display: grid; gap: .8rem; }
.st-card:hover { border-color: #C9CEDA; }
.st-rating { font-weight: 800; }
.st-rating .star { color: var(--brass); }
.st-map { height: calc(100vh - 7rem); position: sticky; top: 5.5rem; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.st-pin { background: var(--ink); color: #fff; border-radius: 999px; padding: 2px 8px; font-weight: 800; font-size: 12px; white-space: nowrap; box-shadow: 0 4px 10px rgba(0,0,0,.25); }
.st-pin.active { background: var(--brass); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Choice groups (checkbox/radio lists from Django widgets) */
.st-choices > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .5rem; }
.st-choices label { display: flex; align-items: center; gap: .6rem; padding: .6rem .8rem; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--white); font-weight: 600; cursor: pointer; }
.st-choices label:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.st-choices input { width: 18px; height: 18px; accent-color: var(--ink); }
.st-file { display: block; width: 100%; font-size: .9rem; }
.st-file::file-selector-button { margin-right: .8rem; padding: .5rem .9rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--white); font-weight: 700; cursor: pointer; }

/* Dashboard shell */
.st-side { background: var(--ink); color: rgba(255,255,255,.72); }
.st-side a { display: flex; align-items: center; gap: .6rem; padding: .6rem .9rem; border-radius: 10px; text-decoration: none; font-weight: 600; }
.st-side a:hover { background: rgba(255,255,255,.07); color: #fff; }
.st-side a[aria-current="page"] { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 3px 0 0 var(--brass); }
.st-side .soon { margin-left: auto; font-size: .68rem; padding: .1rem .45rem; border-radius: 999px; background: rgba(255,255,255,.1); }
.st-table { width: 100%; border-collapse: collapse; }
.st-table th { text-align: left; font-size: .8rem; color: var(--steel); font-weight: 700; padding: .6rem .8rem; border-bottom: 1px solid var(--line); }
.st-table td { padding: .8rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.st-table tr:last-child td { border-bottom: 0; }
.st-section-title { font-family: var(--font-display); font-size: 1.9rem; line-height: 1.1; }
.st-stat { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; }
.st-map-edit { height: 340px; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.st-theme-card { display: block; border: 2px solid var(--line); border-radius: var(--radius); padding: .5rem; cursor: pointer; }
.st-theme-card:has(input:checked) { border-color: var(--ink); }

/* Calendar */
.cal { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); position: relative; }
.cal-col { position: relative; border-left: 1px solid var(--line); }
.cal-head { position: sticky; top: 0; z-index: 3; background: var(--white); border-bottom: 1px solid var(--line); padding: .6rem .7rem; font-weight: 700; height: 52px; }
.cal-body { position: relative; }
.cal-hour { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--line); }
.cal-off { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, #EEF0F5 0 6px, #F7F8FB 6px 12px); }
.cal-block { position: absolute; left: 4px; right: 4px; border-radius: 10px; padding: .35rem .5rem; font-size: .78rem; line-height: 1.25;
  overflow: hidden; text-decoration: none; border-left: 4px solid var(--ink); background: #E9ECF4; color: var(--ink); }
.cal-block:hover { box-shadow: 0 4px 14px rgba(22,33,58,.18); z-index: 2; }
.cal-block.confirmed { background: #E6EEFC; border-left-color: #2F5BD3; }
.cal-block.checked_in, .cal-block.in_progress { background: var(--brass-soft); border-left-color: var(--brass); }
.cal-block.completed { background: var(--mint-soft); border-left-color: var(--mint); }
.cal-block.no_show { background: var(--danger-soft); border-left-color: var(--danger); }
.cal-block.pending_approval, .cal-block.pending_review, .cal-block.held { background: #FFF6E0; border-left-color: #C98A00; border-style: dashed; }
.cal-now { position: absolute; left: 0; right: 0; border-top: 2px solid var(--danger); z-index: 4; pointer-events: none; }
.cal-times { position: relative; width: 58px; }
.cal-times span { position: absolute; right: 8px; font-size: .72rem; color: var(--steel); transform: translateY(2px); }
.cal-add { position: absolute; left: 0; right: 0; height: 24px; }
.cal-add:hover { background: rgba(184,145,58,.12); }

/* ===== Dashboard shell v2 ===== */
.dash-side { position: fixed; inset: 0 auto 0 0; width: 264px; z-index: 50; display: flex; flex-direction: column;
  background: #0F172A; color: rgba(255,255,255,.72); border-right: 1px solid rgba(255,255,255,.06); overflow-y: auto; scrollbar-width: thin; }
.dash-side::-webkit-scrollbar { width: 6px } .dash-side::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 6px }
.dash-main { min-height: 100vh; }
@media (min-width: 1024px) { .dash-main { padding-left: 264px; } }
@media (max-width: 1023px) { .dash-side { transform: translateX(-100%); transition: transform .2s ease; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
  .dash-side.is-open { transform: none; } }
.dash-nav a { display: flex; align-items: center; gap: .75rem; padding: .55rem .75rem; border-radius: 10px; text-decoration: none;
  font-weight: 600; font-size: .9rem; color: rgba(255,255,255,.72); transition: background .15s, color .15s; }
.dash-nav a svg { flex: none; opacity: .75; }
.dash-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.dash-nav a[aria-current="page"] { background: rgba(184,145,58,.16); color: #fff; }
.dash-nav a[aria-current="page"] svg { opacity: 1; color: #D8B566; }
.dash-nav .dash-label { padding: 1.1rem .75rem .35rem; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.35); font-weight: 700; }
.dash-top { position: sticky; top: 0; z-index: 30; background: rgba(245,246,250,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.dash-container { max-width: 1240px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
@media (min-width: 640px) { .dash-container { padding: 2.25rem 2rem 4rem; } }
.dash-container h1.font-display { letter-spacing: -.01em; }
.st-panel { box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px -18px rgba(15,23,42,.18); }
.dash-avatar { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; flex: none; }
.dash-kpi { position: relative; overflow: hidden; }
.dash-kpi .dash-kpi-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--porcelain); color: var(--ink); }
/* status stepper */
.st-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; }
.st-step { display: grid; gap: .45rem; font-size: .75rem; font-weight: 700; color: var(--steel); }
.st-step::before { content: ""; height: 6px; border-radius: 999px; background: var(--line); }
.st-step.done::before { background: var(--mint); } .st-step.now::before { background: var(--brass); }
.st-step.done, .st-step.now { color: var(--ink); }
.st-timeline { position: relative; display: grid; gap: .9rem; }
.st-timeline li { position: relative; padding-left: 1.4rem; font-size: .82rem; }
.st-timeline li::before { content: ""; position: absolute; left: 0; top: .35rem; width: 9px; height: 9px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 3px var(--brass-soft); }
.st-timeline li:not(:last-child)::after { content: ""; position: absolute; left: 4px; top: 1.1rem; bottom: -.9rem; width: 1px; background: var(--line); }

/* Website look editor */
.st-theme-card { transition: border-color .15s, box-shadow .15s; }
.st-theme-card:hover { border-color: color-mix(in srgb, var(--ink) 35%, var(--line)); }
.st-theme-card:has(input:checked) { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 12%, transparent); }
.st-theme-swatch { display: flex; align-items: flex-end; gap: 6px; height: 64px; padding: 10px; border: 1px solid; border-radius: calc(var(--radius) - 4px); }
.st-theme-swatch span { display: block; height: 22px; flex: 1; border-radius: 5px; }
.st-theme-swatch span:nth-child(2) { height: 8px; flex: 1.4; margin-bottom: 7px; }
.st-theme-swatch span:nth-child(3) { flex: .9; border-radius: 999px; }
.st-mode-card { display: flex; align-items: center; gap: .5rem; border: 2px solid var(--line); border-radius: 12px; padding: .6rem .75rem; cursor: pointer; font-weight: 600; font-size: .9rem; }
.st-mode-card:has(input:checked) { border-color: var(--ink); }
.st-dot { width: 30px; height: 30px; border-radius: 999px; border: 2px solid var(--white); box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.st-dot:hover { transform: scale(1.1); }
.st-site-preview { border: 1px solid; border-radius: 16px; overflow: hidden; box-shadow: 0 12px 30px -12px rgba(15,23,42,.25); transition: background .2s, color .2s; }
.st-prev-btn { font-size: .75rem; font-weight: 700; padding: .4rem .75rem; border-radius: 999px; white-space: nowrap; }
.st-muted { color: var(--steel); }
