/* ==========================================================================
   KAAM WALA — A TO Z SOLUTION
   Design system: white ground, deep navy structure, green action.
   Hand-authored (no build step).
   ========================================================================== */

:root {
  /* Brand */
  --navy-900: #06182f;
  --navy-800: #0a2244;
  --navy-700: #0e2e58;
  --navy-600: #143c6f;
  --navy-500: #1d4e8a;
  --navy-100: #e6edf6;
  --navy-050: #f2f6fb;

  --green-700: #0f7a3d;
  --green-600: #14a04f;
  --green-500: #1cb861;
  --green-400: #35cd79;
  --green-100: #e3f7ec;

  --amber-600: #c77a05;
  --amber-100: #fdf1dc;
  --red-600: #d13b3c;
  --red-100: #fdeaea;
  --blue-600: #1668c9;
  --blue-100: #e5f0fd;
  --violet-600: #6b45c9;
  --violet-100: #efe9fb;

  /* Neutrals */
  --ink: #0d1b2a;
  --ink-2: #40536b;
  --ink-3: #7789a0;
  --line: #e4eaf1;
  --line-2: #eef2f7;
  --surface: #ffffff;
  --canvas: #f5f8fc;

  /* Shape */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 26px;
  --r-full: 999px;

  --shadow-xs: 0 1px 2px rgba(13, 27, 42, .06);
  --shadow-sm: 0 2px 8px rgba(13, 27, 42, .06);
  --shadow-md: 0 6px 20px rgba(13, 27, 42, .08);
  --shadow-lg: 0 18px 44px rgba(6, 24, 47, .14);

  --nav-h: 68px;
  --sidebar-w: 264px;
  --header-h: 62px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 3px solid rgba(28, 184, 97, .45); outline-offset: 2px; }

/* ---------- Icons ----------
   Default size for any <x-icon>. Context rules (.btn svg, .tab svg, …) are
   more specific and override this. */
.ico {
  font-size: 15px;
  line-height: 1;
  display: inline-block;
  flex: 0 0 auto;
  width: 1.2em;
  text-align: center;
}

/* ---------- Typography helpers ---------- */
.h1 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.h2 { font-size: 19px; font-weight: 750; letter-spacing: -.015em; }
.h3 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.t-sm { font-size: 13px; }
.t-xs { font-size: 12px; }
.muted { color: var(--ink-3); }
.ink-2 { color: var(--ink-2); }
.strong { font-weight: 700; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp-2 {
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.upper { text-transform: uppercase; letter-spacing: .07em; font-size: 11px; font-weight: 700; }

/* ---------- Layout utilities ---------- */
.row { display: flex; align-items: center; gap: 12px; }
.row-top { display: flex; align-items: flex-start; gap: 12px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; }
.gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; }
.grow { flex: 1; min-width: 0; }
.mt-4{margin-top:4px}.mt-8{margin-top:8px}.mt-12{margin-top:12px}
.mt-16{margin-top:16px}.mt-20{margin-top:20px}.mt-24{margin-top:24px}
.mb-8{margin-bottom:8px}.mb-12{margin-bottom:12px}.mb-16{margin-bottom:16px}
.mb-20{margin-bottom:20px}.mb-24{margin-bottom:24px}
.hide { display: none !important; }

/* ==========================================================================
   APP SHELL (customer + technician)
   ========================================================================== */

.app {
  min-height: 100vh;
  display: flex;
  background: var(--canvas);
}

/* Desktop sidebar */
.side {
  display: none;
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: var(--navy-800);
  color: #fff;
  padding: 22px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.side-brand { display: flex; align-items: center; gap: 11px; padding: 0 6px 22px; }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-link {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  color: rgba(255,255,255,.74);
  font-weight: 600; font-size: 14.5px;
  transition: background .16s, color .16s;
}
.side-link:hover { background: rgba(255,255,255,.09); color: #fff; }
.side-link.is-active { background: var(--green-600); color: #fff; box-shadow: var(--shadow-sm); }
.side-link .ico { font-size: 17px;  }
.side-foot { margin-top: auto; padding-top: 22px; }

/* Main column */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* Top app bar */
.appbar {
  position: sticky; top: 0; z-index: 40;
  background: #fff;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 10px 14px;
  display: flex; align-items: center; gap: 12px;
  min-height: var(--header-h);
}
.appbar--plain { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); }
.appbar--plain .appbar-title { color: var(--ink); }
.appbar-title { font-size: 17px; font-weight: 750; letter-spacing: -.01em; color: var(--ink); }
.appbar-sub { font-size: 12px; color: var(--ink-3); }
.appbar-btn {
  width: 38px; height: 38px; flex: 0 0 38px;
  display: grid; place-items: center;
  border-radius: var(--r-full);
  background: var(--navy-050);
  border: 0; cursor: pointer; color: var(--navy-700);
}
.appbar--plain .appbar-btn { background: var(--navy-050); }
.appbar-btn .ico { font-size: 17px;  }
.appbar-badge {
  position: absolute; top: 6px; right: 6px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green-600); border: 2px solid #fff;
}

/* Compact location chip, sits in the header row beside the actions. */
.loc-chip {
  display: flex; align-items: center; gap: 7px;
  width: 122px; flex: 0 0 122px;
  min-width: 0;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--navy-050);
}
.loc-chip .ico { font-size: 13px; color: var(--green-700); }
.loc-chip-text { flex: 1; min-width: 0; }
.loc-chip-label {
  display: block;
  font-size: 8.5px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-3); line-height: 1.1;
}
.loc-chip-value {
  display: block;
  font-size: 11.5px; font-weight: 700; color: var(--ink);
  line-height: 1.25; margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 360px) {
  .loc-chip { width: 104px; flex-basis: 104px; }
}

/* Page body */
.page {
  flex: 1;
  padding: 18px 16px calc(var(--nav-h) + 26px);
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}
.page--wide { max-width: 1400px; }

/* Bottom navigation (mobile) */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: #fff;
  border-top: 1px solid var(--line);
  display: flex;
  box-shadow: 0 -6px 24px rgba(13,27,42,.07);
}
.tab {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  color: var(--ink-3);
  font-size: 11px; font-weight: 650;
  border: 0; background: none; cursor: pointer;
  padding-top: 8px;
}
.tab .ico { font-size: 19px;  }
.tab.is-active { color: var(--green-600); }
.tab.is-active .tab-dot { opacity: 1; }
.tab-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--green-600); opacity: 0;
}

@media (min-width: 1024px) {
  .side { display: flex; flex-direction: column; }
  .tabbar { display: none; }
  .page { padding: 26px 32px 48px; }
  .only-mobile { display: none !important; }
}
@media (max-width: 1023px) {
  .only-desktop { display: none !important; }
}

/* ==========================================================================
   BRAND MARK
   ========================================================================== */
.logo { display: inline-flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; }
.logo-mark {
  width: 46px; height: 46px; flex: 0 0 46px;
  border-radius: 13px;
  background: linear-gradient(150deg, var(--green-500), var(--green-700));
  display: grid; place-items: center;
  color: #fff; font-weight: 900; font-size: 17px;
  box-shadow: 0 4px 12px rgba(20,160,79,.32);
  letter-spacing: -.03em;
}
/* ---- Uploaded logo ----
   Always shown whole: contained, never cropped, never clipped by a fixed box.
   On dark surfaces it sits on a white plate so any logo stays legible. */
.logo--img { align-items: center; }
.logo-plate {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  max-width: 100%;
  flex: 0 1 auto;
  min-width: 0;
}
.logo--onDark .logo-plate { background: #fff; padding: 5px 8px; }
.logo-full {
  display: block;
  height: 42px;
  width: auto;
  max-width: 230px;
  object-fit: contain;
}
.logo--sm .logo-full { height: 32px; max-width: 180px; }
.logo--lg .logo-full { height: 78px; max-width: 320px; }
@media (max-width: 1023px) {
  .logo-full { height: 42px; max-width: 210px; }
  .logo--lg .logo-full { height: 72px; max-width: 280px; }
}

/* Per-surface sizing so the logo fills the space it is given. */
.site-header .logo-full { height: 58px; max-width: 300px; }
.site-footer .logo-full { height: 54px; max-width: 260px; }
.side-brand .logo-full  { height: 48px; max-width: 200px; }
.appbar .logo-full      { height: 48px; max-width: 150px; }
.auth-card .logo-full   { height: 82px; max-width: 320px; }
@media (max-width: 1023px) {
  .auth-card .logo-full { height: 68px; max-width: 260px; }
}
.logo-text { line-height: 1.15; }
.logo-name { font-weight: 850; font-size: 15.5px; letter-spacing: -.01em; }
.logo-tag { font-size: 10.5px; font-weight: 650; opacity: .68; letter-spacing: .04em; text-transform: uppercase; }
.logo-mark--lg { width: 76px; height: 76px; flex-basis: 76px; border-radius: 20px; font-size: 31px; }

/* ==========================================================================
   CARDS & SURFACES
   ========================================================================== */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
}
.card-pad { padding: 14px; }
.card-pad-lg { padding: 18px; }
.card-head {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.card-body { padding: 14px; }
.card-foot { padding: 12px 14px; border-top: 1px solid var(--line-2); }
.divider { height: 1px; background: var(--line-2); margin: 14px 0; }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin: 18px 0 10px;
}
.section-head:first-child { margin-top: 0; }
.link-more { color: var(--green-600); font-weight: 700; font-size: 13px; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 20px;
  border-radius: var(--r-full);
  border: 1px solid transparent;
  font-weight: 700; font-size: 14.5px;
  cursor: pointer;
  transition: transform .06s ease, box-shadow .16s, background .16s, opacity .16s;
  white-space: nowrap;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn .ico { font-size: 15px;  }
.btn-primary { background: var(--green-600); color: #fff; box-shadow: 0 6px 16px rgba(20,160,79,.26); }
.btn-primary:hover { background: var(--green-700); }
.btn-navy { background: var(--navy-800); color: #fff; box-shadow: 0 6px 16px rgba(10,34,68,.22); }
.btn-navy:hover { background: var(--navy-900); }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--navy-500); color: var(--navy-700); }
.btn-ghost { background: var(--navy-050); color: var(--navy-700); }
.btn-ghost:hover { background: var(--navy-100); }
.btn-danger { background: var(--red-600); color: #fff; }
.btn-danger-soft { background: var(--red-100); color: var(--red-600); }
.btn-block { display: flex; width: 100%; }
.btn-lg { padding: 16px 24px; font-size: 15.5px; }
.btn-sm { padding: 9px 14px; font-size: 13px; }
.btn-xs { padding: 6px 11px; font-size: 12px; border-radius: var(--r-sm); }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: var(--r-full); }

.action-bar {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
/* Sticky booking CTA on service details */
.sticky-cta {
  position: sticky;
  bottom: calc(var(--nav-h) + 12px);
  z-index: 30;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 12px;
  box-shadow: var(--shadow-md);
  margin-top: 22px;
}
@media (min-width: 1024px) { .sticky-cta { bottom: 20px; } }

/* ==========================================================================
   BADGES / STATUS
   ========================================================================== */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px;
  border-radius: var(--r-full);
  font-size: 12px; font-weight: 700;
  background: var(--navy-050); color: var(--navy-700);
  white-space: nowrap;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--pending    { background: var(--amber-100); color: var(--amber-600); }
.badge--confirmed  { background: var(--blue-100); color: var(--blue-600); }
.badge--assigned   { background: var(--violet-100); color: var(--violet-600); }
.badge--on_the_way { background: var(--blue-100); color: var(--blue-600); }
.badge--started    { background: var(--navy-100); color: var(--navy-700); }
.badge--completed  { background: var(--green-100); color: var(--green-700); }
.badge--cancelled  { background: var(--red-100); color: var(--red-600); }
.badge--active     { background: var(--green-100); color: var(--green-700); }
.badge--inactive   { background: var(--line-2); color: var(--ink-3); }

/* ==========================================================================
   FORMS
   ========================================================================== */
.field { margin-bottom: 16px; }
.label {
  display: block; font-size: 13px; font-weight: 700;
  color: var(--ink-2); margin-bottom: 7px;
}
.label .req { color: var(--red-600); }
.input, .select, .textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  font-size: 15px;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 4px rgba(28,184,97,.13);
}
.textarea { min-height: 108px; resize: vertical; line-height: 1.55; }
/* Chevron drawn with two gradients — a <select> can't hold a pseudo-element. */
.select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink-3) 50%),
    linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: right 19px center, right 13px center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.input-group { display: flex; align-items: stretch; }
.input-prefix {
  display: flex; align-items: center;
  padding: 0 14px;
  border: 1.5px solid var(--line); border-right: 0;
  border-radius: var(--r-md) 0 0 var(--r-md);
  background: var(--navy-050);
  font-weight: 700; color: var(--ink-2);
}
.input-group .input { border-radius: 0 var(--r-md) var(--r-md) 0; }
.hint { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }
.err { font-size: 12.5px; color: var(--red-600); margin-top: 6px; font-weight: 600; }
.input.has-err, .textarea.has-err, .select.has-err { border-color: var(--red-600); }

.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.check input { width: 19px; height: 19px; margin: 1px 0 0; accent-color: var(--green-600); flex: 0 0 19px; }

/* Toggle switch */
.switch { display: inline-flex; align-items: center; gap: 11px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-track {
  width: 46px; height: 27px; border-radius: var(--r-full);
  background: #cfd9e5; position: relative; transition: background .18s; flex: 0 0 46px;
}
.switch-track::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 21px; height: 21px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-xs);
  transition: transform .18s;
}
.switch input:checked + .switch-track { background: var(--green-600); }
.switch input:checked + .switch-track::after { transform: translateX(19px); }

/* Radio card list (service options, time slots) */
.pick { display: grid; gap: 10px; }
.pick-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  background: #fff;
  transition: border-color .15s, background .15s;
}
.pick-item:hover { border-color: var(--navy-100); }
.pick-item input { accent-color: var(--green-600); width: 19px; height: 19px; flex: 0 0 19px; }
.pick-item.is-on { border-color: var(--green-500); background: var(--green-100); }

.chips { display: flex; gap: 9px; flex-wrap: wrap; }
.chip {
  padding: 10px 15px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: 13.5px; font-weight: 650;
  cursor: pointer;
  color: var(--ink-2);
  transition: all .15s;
}
.chip:hover { border-color: var(--navy-100); }
.chip.is-on { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }

.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 9px; }
.slot {
  padding: 12px 6px;
  text-align: center;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  font-size: 13.5px; font-weight: 700;
  cursor: pointer; background: #fff; color: var(--ink-2);
  transition: all .15s;
}
.slot.is-on { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.slot input { position: absolute; opacity: 0; pointer-events: none; }

/* Filter tabs */
.segment {
  display: flex; gap: 6px; padding: 5px;
  background: var(--navy-050);
  border-radius: var(--r-full);
  overflow-x: auto; scrollbar-width: none;
}
.segment::-webkit-scrollbar { display: none; }
.segment a, .segment button {
  flex: 1; padding: 9px 16px;
  border-radius: var(--r-full);
  font-size: 13.5px; font-weight: 700;
  color: var(--ink-2); text-align: center;
  border: 0; background: none; cursor: pointer;
  white-space: nowrap;
}
.segment .is-on { background: #fff; color: var(--navy-800); box-shadow: var(--shadow-xs); }

/* Filter tabs shouldn't stretch across a full desktop content column. */
@media (min-width: 1024px) { .segment { max-width: 620px; } }

/* Search */
.search { position: relative; }
.search .ico {
  width: auto;
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  font-size: 15px; color: var(--ink-3); pointer-events: none;
}
.search .input { padding-left: 42px; }

/* ==========================================================================
   ALERTS
   ========================================================================== */
.alert {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 13px 15px;
  border-radius: var(--r-md);
  font-size: 14px; font-weight: 600;
  margin-bottom: 16px;
  border: 1px solid transparent;
}
.alert .ico { font-size: 16px; margin-top: 1px;  }
.alert--success { background: var(--green-100); color: var(--green-700); border-color: #bfe9d1; }
.alert--error { background: var(--red-100); color: var(--red-600); border-color: #f6cfcf; }
.alert--info { background: var(--blue-100); color: var(--blue-600); border-color: #cfe2fa; }
.alert--warn { background: var(--amber-100); color: var(--amber-600); border-color: #f6e0b8; }

/* ==========================================================================
   HOME — hero, location bar, service grid
   ========================================================================== */
.hero {
  background: linear-gradient(140deg, var(--navy-800) 0%, var(--navy-700) 58%, var(--navy-600) 100%);
  color: #fff;
  border-radius: var(--r-xl);
  padding: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.hero::after {
  content: ""; position: absolute;
  right: -58px; top: -62px;
  width: 210px; height: 210px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(28,184,97,.55), rgba(28,184,97,0) 68%);
}
.hero-title { font-size: 23px; font-weight: 850; letter-spacing: -.02em; line-height: 1.22; position: relative; }
.hero-text { font-size: 14px; opacity: .82; margin-top: 8px; max-width: 42ch; position: relative; }
.hero-actions { display: flex; gap: 10px; margin-top: 18px; position: relative; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 22px; margin-top: 20px; position: relative; }
.hero-stat b { display: block; font-size: 19px; font-weight: 850; }
.hero-stat span { font-size: 11.5px; opacity: .72; font-weight: 650; }

.locbar {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
  width: 100%; text-align: left; cursor: pointer;
}
.locbar-icon {
  width: 38px; height: 38px; flex: 0 0 38px;
  border-radius: var(--r-full);
  background: var(--green-100); color: var(--green-700);
  display: grid; place-items: center;
}
.locbar-icon .ico { font-size: 16px;  }

.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 560px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .svc-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
@media (min-width: 1280px) { .svc-grid { grid-template-columns: repeat(5, 1fr); } }

.svc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 15px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .16s, box-shadow .16s, border-color .16s;
  min-height: 148px;
  position: relative;
  overflow: hidden;
}
.svc:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--navy-100); }
.svc-icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--navy-050);
  display: grid; place-items: center;
  font-size: 23px;
  overflow: hidden;
  flex: 0 0 46px;
}
.svc-icon img { width: 100%; height: 100%; object-fit: cover; }
.svc-name { font-size: 14px; font-weight: 750; line-height: 1.3; letter-spacing: -.01em; }
.svc-tag { font-size: 11.5px; color: var(--ink-3); line-height: 1.4; }
.svc-price { margin-top: auto; font-size: 12px; font-weight: 750; color: var(--green-700); }

/* Featured "how it works" strip */
.steps { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { display: flex; gap: 12px; align-items: flex-start; padding: 13px; }
.step-no {
  width: 30px; height: 30px; flex: 0 0 30px;
  border-radius: var(--r-full);
  background: var(--navy-800); color: #fff;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 800;
}

/* ==========================================================================
   SERVICE DETAILS
   ========================================================================== */
.svc-hero {
  border-radius: var(--r-xl);
  overflow: hidden;
  background: linear-gradient(140deg, var(--navy-800), var(--navy-600));
  color: #fff;
  min-height: 158px;
  display: flex; align-items: flex-end;
  padding: 20px;
  position: relative;
}
.svc-hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: .42;
}
.svc-hero-inner { position: relative; }
.svc-hero-emoji { font-size: 40px; line-height: 1; margin-bottom: 10px; }

.kv { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.kv:last-child { border-bottom: 0; }
.kv-k { flex: 0 0 116px; font-size: 13px; color: var(--ink-3); font-weight: 650; }
.kv-v { flex: 1; font-size: 14px; font-weight: 600; min-width: 0; word-break: break-word; }

.opt-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
}
.opt-row:last-child { border-bottom: 0; }

/* ==========================================================================
   BOOKING TIMELINE
   ========================================================================== */
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: ""; position: absolute;
  left: 9px; top: 8px; bottom: 8px;
  width: 2px; background: var(--line);
}
.tl-item { position: relative; padding: 0 0 20px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: -30px; top: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 2px solid var(--line);
  display: grid; place-items: center;
}
.tl-dot .ico { font-size: 10px; color: #fff;  }
.tl-item.is-done .tl-dot { background: var(--green-600); border-color: var(--green-600); }
.tl-item.is-now .tl-dot {
  background: var(--navy-800); border-color: var(--navy-800);
  box-shadow: 0 0 0 4px rgba(10,34,68,.13);
}
.tl-item.is-cancel .tl-dot { background: var(--red-600); border-color: var(--red-600); }
.tl-title { font-size: 14px; font-weight: 700; }
.tl-item:not(.is-done):not(.is-now) .tl-title { color: var(--ink-3); font-weight: 600; }
.tl-time { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

/* Booking list card */
.bk {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 13px;
  transition: box-shadow .16s, border-color .16s;
}
.bk:hover { box-shadow: var(--shadow-sm); border-color: var(--navy-100); }
.bk-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.bk-icon {
  width: 44px; height: 44px; flex: 0 0 44px;
  border-radius: 13px; background: var(--navy-050);
  display: grid; place-items: center; font-size: 21px;
  overflow: hidden;
}
.bk-icon img { width: 100%; height: 100%; object-fit: cover; }
.bk-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 11px; font-size: 12.5px; color: var(--ink-3); }
.bk-meta span { display: inline-flex; align-items: center; gap: 5px; }
.bk-meta .ico { font-size: 12px;  }

/* ==========================================================================
   VOICE RECORDER
   ========================================================================== */
.rec {
  border: 1.5px dashed var(--line);
  border-radius: var(--r-md);
  padding: 16px;
  text-align: center;
  background: var(--navy-050);
}
.rec.is-recording { border-color: var(--red-600); background: var(--red-100); border-style: solid; }
.rec.is-ready { border-color: var(--green-500); background: var(--green-100); border-style: solid; }
.rec-btn {
  width: 62px; height: 62px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: var(--red-600); color: #fff;
  display: grid; place-items: center;
  margin: 0 auto;
  box-shadow: 0 6px 18px rgba(209,59,60,.32);
  transition: transform .12s;
}
.rec-btn:active { transform: scale(.94); }
.rec-btn .ico { font-size: 22px;  }
.rec.is-recording .rec-btn { animation: pulse 1.35s infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(209,59,60,.45); }
  70%  { box-shadow: 0 0 0 16px rgba(209,59,60,0); }
  100% { box-shadow: 0 0 0 0 rgba(209,59,60,0); }
}
.rec-time { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 17px; margin-top: 10px; }
audio { width: 100%; margin-top: 12px; }

/* ==========================================================================
   OTP INPUT
   ========================================================================== */
.otp-boxes { display: flex; gap: 9px; justify-content: center; }
.otp-box {
  width: 46px; height: 56px;
  text-align: center;
  font-size: 22px; font-weight: 800;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
}
.otp-box:focus {
  outline: none; border-color: var(--green-500);
  box-shadow: 0 0 0 4px rgba(28,184,97,.13);
}

/* Centered auth screen */
.auth {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
  background:
    radial-gradient(1100px 460px at 50% -12%, rgba(20,160,79,.16), transparent 62%),
    var(--canvas);
}
.auth-card {
  width: 100%; max-width: 420px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 30px 26px;
  box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   ADMIN
   ========================================================================== */
.admin { display: flex; min-height: 100vh; background: var(--canvas); }
.admin-side {
  width: var(--sidebar-w); flex: 0 0 var(--sidebar-w);
  background: var(--navy-900); color: #fff;
  padding: 20px 14px;
  position: fixed; inset: 0 auto 0 0;
  overflow-y: auto;
  z-index: 60;
  transform: translateX(-100%);
  transition: transform .22s ease;
}
.admin-side.is-open { transform: translateX(0); }
.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-topbar {
  position: sticky; top: 0; z-index: 40;
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 12px 18px;
  display: flex; align-items: center; gap: 14px;
  min-height: 62px;
}
.admin-page { padding: 20px 18px 40px; }
.admin-scrim {
  position: fixed; inset: 0; background: rgba(6,24,47,.5);
  z-index: 55; display: none;
}
.admin-scrim.is-open { display: block; }
.side-group { margin: 18px 0 7px; padding: 0 14px; font-size: 10.5px;
  text-transform: uppercase; letter-spacing: .1em; font-weight: 800; opacity: .42; }

@media (min-width: 1024px) {
  .admin-side { position: sticky; height: 100vh; transform: none; }
  .admin-scrim { display: none !important; }
  .admin-page { padding: 26px 30px 48px; }
}

/* Stat tiles */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1160px) { .stats { grid-template-columns: repeat(6, 1fr); } }
.stat {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 16px;
  display: flex; flex-direction: column; gap: 9px;
}
.stat-icon {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--navy-050); color: var(--navy-700);
}
.stat-icon .ico { font-size: 16px;  }
.stat-icon--green { background: var(--green-100); color: var(--green-700); }
.stat-icon--amber { background: var(--amber-100); color: var(--amber-600); }
.stat-icon--red { background: var(--red-100); color: var(--red-600); }
.stat-icon--blue { background: var(--blue-100); color: var(--blue-600); }
.stat-icon--violet { background: var(--violet-100); color: var(--violet-600); }
.stat-num { font-size: 25px; font-weight: 850; letter-spacing: -.02em; line-height: 1; }
.stat-lbl { font-size: 12.5px; color: var(--ink-3); font-weight: 650; }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { min-width: 660px; font-size: 14px; }
.table th {
  text-align: left; padding: 12px 14px;
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-3); font-weight: 800;
  background: var(--navy-050);
  white-space: nowrap;
}
.table th:first-child { border-top-left-radius: var(--r-sm); }
.table th:last-child { border-top-right-radius: var(--r-sm); }
.table td { padding: 13px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tbody tr:hover { background: var(--navy-050); }
.table tbody tr:last-child td { border-bottom: 0; }

.avatar {
  width: 38px; height: 38px; flex: 0 0 38px;
  border-radius: var(--r-full);
  background: var(--navy-100); color: var(--navy-700);
  display: grid; place-items: center;
  font-weight: 800; font-size: 14px;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--lg { width: 58px; height: 58px; flex-basis: 58px; font-size: 21px; }

.empty { text-align: center; padding: 44px 20px; }
.empty-icon {
  width: 66px; height: 66px; margin: 0 auto 15px;
  border-radius: var(--r-full);
  background: var(--navy-050); color: var(--navy-500);
  display: grid; place-items: center;
}
.empty-icon .ico { font-size: 25px;  }

/* Mini bar chart */
.chart { display: flex; align-items: flex-end; gap: 9px; height: 132px; padding-top: 10px; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; height: 100%; justify-content: flex-end; }
.chart-bar {
  width: 100%; max-width: 42px;
  background: linear-gradient(180deg, var(--green-500), var(--green-700));
  border-radius: 7px 7px 3px 3px;
  min-height: 4px;
  position: relative;
}
.chart-bar[data-zero] { background: var(--line); }
.chart-val { font-size: 11.5px; font-weight: 800; color: var(--ink-2); }
.chart-lbl { font-size: 11px; color: var(--ink-3); font-weight: 650; }

/* Pagination */
.pager { display: flex; justify-content: center; margin-top: 20px; }
.pager nav { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; }
.pager a, .pager span {
  display: grid; place-items: center;
  min-width: 38px; height: 38px; padding: 0 11px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: #fff; font-size: 13.5px; font-weight: 650;
}
.pager [aria-current="page"] span,
.pager .active span { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.pager .disabled span { opacity: .42; }
.pager .ico { font-size: 13px;  }

/* Grid helpers for forms */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
@media (min-width: 700px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.layout-2 { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: start; }
@media (min-width: 1024px) { .layout-2 { grid-template-columns: 1.6fr 1fr; } }

/* Repeatable option rows in the admin service form */
.opt-editor { display: flex; flex-direction: column; gap: 10px; }
.opt-item {
  display: grid; gap: 10px;
  grid-template-columns: 1fr;
  padding: 13px; border: 1px solid var(--line);
  border-radius: var(--r-md); background: var(--navy-050);
}
@media (min-width: 760px) {
  .opt-item { grid-template-columns: 1.2fr 1.4fr .7fr auto; align-items: center; }
}

/* Map preview */
.map-frame {
  width: 100%; height: 190px;
  border: 0; border-radius: var(--r-md);
  background: var(--navy-050);
}


/* ==========================================================================
   PUBLIC WEBSITE CHROME (desktop)
   The customer site reads as a normal website above 1024px — topbar, header,
   category nav, slider and footer — and as an app below it (appbar + tabbar).
   ========================================================================== */

.site { min-height: 100vh; display: flex; flex-direction: column; background: var(--canvas); }
.site .main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.shell { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--navy-900);
  color: rgba(255,255,255,.72);
  font-size: 12.5px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar .shell { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 40px; }
.topbar-list { display: flex; align-items: center; gap: 22px; }
.topbar a { display: inline-flex; align-items: center; gap: 7px; transition: color .15s; }
.topbar a:hover { color: #fff; }
.topbar .ico { font-size: 12px; color: var(--green-400);  }
.topbar-sep { width: 1px; height: 15px; background: rgba(255,255,255,.16); }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-header .shell {
  display: flex; align-items: center; gap: 28px;
  height: 92px;
}
.header-search { flex: 1; max-width: 520px; position: relative; }
.header-search .ico {
  width: auto;
  position: absolute; left: 17px; top: 50%; transform: translateY(-50%);
  font-size: 15px; color: var(--ink-3); pointer-events: none;
}
.header-search .input {
  padding: 12px 15px 12px 44px;
  border-radius: var(--r-full);
  background: var(--navy-050);
  border-color: transparent;
}
.header-search .input:focus { background: #fff; }
.header-cta { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.header-call { display: flex; align-items: center; gap: 11px; }
.header-call-icon {
  width: 42px; height: 42px; flex: 0 0 42px;
  border-radius: var(--r-full);
  background: var(--green-100); color: var(--green-700);
  display: grid; place-items: center;
}
.header-call-icon .ico { font-size: 16px;  }
/* Scoped to the link, so they can't override .header-call-icon (also a span). */
.header-call a b { display: block; font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.header-call a span { display: block; font-size: 11px; color: var(--ink-3); font-weight: 650; }

/* ---------- Category nav ---------- */
.catnav { background: var(--navy-800); position: sticky; top: 0; z-index: 45; }
.catnav .shell { display: flex; align-items: center; gap: 6px; height: 52px; }
.catnav-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px;
  border-radius: var(--r-sm);
  color: rgba(255,255,255,.78);
  font-size: 13.5px; font-weight: 650;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.catnav-link:hover { background: rgba(255,255,255,.1); color: #fff; }
.catnav-link.is-active { background: var(--green-600); color: #fff; }
.catnav-link .ico { font-size: 15px;  }
.catnav-all {
  background: var(--green-600); color: #fff;
  margin-right: 10px; font-weight: 750;
}
.catnav-all:hover { background: var(--green-700); color: #fff; }
.catnav-scroll { display: flex; align-items: center; gap: 4px; overflow: hidden; flex: 1; }
.catnav-right { margin-left: auto; display: flex; gap: 6px; }

/* ---------- Slider ---------- */
.slider { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-md); }
.slides { display: flex; transition: transform .55s cubic-bezier(.4,0,.2,1); }
.slide {
  flex: 0 0 100%;
  display: block;
  position: relative;
  background: var(--navy-050);
}
.slide picture { display: block; }
.slide img {
  display: block;
  width: 100%;
  aspect-ratio: 1600 / 500;
  object-fit: cover;
}
@media (max-width: 1023px) {
  .slide img { aspect-ratio: 900 / 560; }
}
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: var(--r-full);
  border: 0; cursor: pointer;
  background: rgba(255,255,255,.16); color: #fff;
  display: grid; place-items: center;
  backdrop-filter: blur(6px);
  transition: background .15s;
}
.slider-arrow:hover { background: rgba(255,255,255,.3); }
.slider-arrow .ico { font-size: 17px;  }
.slider-prev { left: 18px; }
.slider-next { right: 18px; }
.slider-dots {
  position: absolute; right: 20px; bottom: 16px;
  display: flex; gap: 8px;
}
.slider-dot {
  width: 9px; height: 9px; border-radius: var(--r-full);
  border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.35);
  transition: width .22s, background .22s;
}
.slider-dot.is-on { width: 28px; background: var(--green-500); }

@media (max-width: 1023px) {
      .slider-arrow { display: none; }
  .slider-dots { right: auto; left: 22px; bottom: 20px; }
}

/* ---------- Section container ----------
   Every band on the public site is a .section wrapping a .shell, so content
   lines up on one grid and bands can alternate background. */
.section { padding: 26px 0; }
.section--tight { padding: 16px 0; }
.section--alt { background: #fff; border-block: 1px solid var(--line); }
.section--flush { padding-top: 18px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
@media (max-width: 1023px) {
  .section { padding: 16px 0; }
  .section--tight { padding: 10px 0; }
  .section-title { margin-bottom: 10px; }
}

/* ---------- Category strip ---------- */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (min-width: 700px)  { .cats { grid-template-columns: repeat(6, 1fr); gap: 12px; } }
@media (min-width: 1100px) { .cats { grid-template-columns: repeat(8, 1fr); } }
.cat {
  display: block;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  text-align: center;
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.cat:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--green-500); }
.cat-media {
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  overflow: hidden;
  background: linear-gradient(140deg, var(--navy-050), var(--navy-100));
}
.cat-media img { width: 100%; height: 100%; object-fit: cover; }
.cat-media-icon { font-size: 22px; color: var(--navy-600); width: auto; }
.cat-name {
  padding: 7px 6px 9px;
  font-size: 11.5px; font-weight: 700; line-height: 1.25;
  min-height: 2.5em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Image service card (title only) ---------- */
.tile {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--navy-100); }
.tile-media {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  overflow: hidden;
  /* Backdrop for the icon fallback; a cover image paints over it. */
  background: linear-gradient(140deg, var(--navy-800), var(--navy-600));
}
.tile-media img { width: 100%; height: 100%; object-fit: cover; }
.tile-media-icon { font-size: 34px; color: #fff; opacity: .92; width: auto; }
.tile:hover .tile-media img { transform: scale(1.05); }
.tile-media img { transition: transform .35s ease; }
.tile-title {
  padding: 8px 8px 10px;
  font-size: 12px; font-weight: 700;
  letter-spacing: -.005em;
  line-height: 1.3;
  text-align: center;
}
/* Three across on phones, widening on bigger screens. */
.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 700px)  { .tile-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
@media (min-width: 1024px) { .tile-grid { grid-template-columns: repeat(5, 1fr); gap: 16px; } }
@media (min-width: 1180px) { .tile-grid { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 1024px) { .tile-title { font-size: 13.5px; padding: 11px 10px 13px; } }

/* ---------- Trust strip ---------- */
/* auto-fit so the strip also works inside the narrower detail column */
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(214px, 1fr)); gap: 12px; }
.trust-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.trust-icon {
  width: 42px; height: 42px; flex: 0 0 42px;
  border-radius: var(--r-md);
  background: var(--green-100); color: var(--green-700);
  display: grid; place-items: center;
}
.trust-icon .ico { font-size: 18px;  }

/* ---------- Page head band (desktop sub-pages) ---------- */
.page-head { background: #fff; border-bottom: 1px solid var(--line); padding: 24px 0; }
.page-head .shell { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); margin-top: 5px; }
.crumbs a:hover { color: var(--green-700); }
.crumbs .ico { font-size: 11px;  }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,.66);
  margin-top: 52px;
  padding-bottom: calc(var(--nav-h) + 16px);
  font-size: 13.5px;
}
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 32px;
  padding: 44px 0 36px;
}
@media (min-width: 720px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 44px; } }
.footer-title {
  color: #fff; font-size: 14px; font-weight: 750;
  margin-bottom: 16px; letter-spacing: -.01em;
}
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a { transition: color .15s, padding-left .15s; }
.footer-links a:hover { color: var(--green-400); padding-left: 4px; }
.footer-contact { display: flex; flex-direction: column; gap: 14px; }
.footer-contact li { display: flex; gap: 11px; align-items: flex-start; }
.footer-contact .ico { font-size: 15px; color: var(--green-400); margin-top: 2px;  }
.footer-bar {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  font-size: 12.5px;
}
.footer-panels { display: flex; gap: 20px; }
.footer-panels a:hover { color: var(--green-400); }

@media (min-width: 1024px) {
  .site-footer { padding-bottom: 0; }
  .site .page { padding: 0 0 8px; max-width: none; }
  .catnav { top: 0; }
}
@media (max-width: 1023px) {
  .shell { padding: 0 16px; }
  .site .page { padding: 0 0 4px; max-width: none; }
  .footer-grid { padding: 32px 0 26px; }
}

/* ==========================================================================
   PROFILE (app-style, on every screen size)
   ========================================================================== */
.profile-head {
  background: linear-gradient(150deg, var(--navy-900) 0%, var(--navy-700) 60%, var(--green-700) 165%);
  border-radius: var(--r-xl);
  padding: 22px 18px 18px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.profile-head::after {
  content: ""; position: absolute; right: -60px; top: -70px;
  width: 210px; height: 210px; border-radius: 50%;
  background: radial-gradient(circle at 32% 32%, rgba(28,184,97,.5), rgba(28,184,97,0) 70%);
}
.profile-id { display: flex; align-items: center; gap: 14px; position: relative; }
.profile-avatar {
  width: 62px; height: 62px; flex: 0 0 62px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,.14);
  border: 2px solid rgba(255,255,255,.28);
  display: grid; place-items: center;
  font-size: 23px; font-weight: 850;
}
.profile-name { font-size: 18px; font-weight: 800; letter-spacing: -.015em; }
.profile-mobile { font-size: 13px; opacity: .78; margin-top: 2px; }
.profile-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; margin-top: 18px; position: relative;
  background: rgba(255,255,255,.16);
  border-radius: var(--r-md);
  overflow: hidden;
}
.profile-stat { background: rgba(255,255,255,.08); padding: 11px 8px; text-align: center; }
.profile-stat b { display: block; font-size: 18px; font-weight: 850; }
.profile-stat span { font-size: 10.5px; opacity: .74; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }

.menu-list { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.menu-row {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line-2);
  width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0;
  cursor: pointer; text-align: left;
  transition: background .14s;
}
.menu-row:last-child { border-bottom: 0; }
.menu-row:hover { background: var(--navy-050); }
.menu-icon {
  width: 36px; height: 36px; flex: 0 0 36px;
  border-radius: var(--r-md);
  background: var(--navy-050); color: var(--navy-700);
  display: grid; place-items: center;
}
.menu-icon .ico { font-size: 15px; }
.menu-icon--green { background: var(--green-100); color: var(--green-700); }
.menu-icon--red { background: var(--red-100); color: var(--red-600); }
.menu-label { flex: 1; min-width: 0; font-size: 14px; font-weight: 650; }
.menu-label small { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 500; margin-top: 1px; }
.menu-row > .ico { color: var(--ink-3); font-size: 13px; }

/* Keep the profile a phone-width column even on a wide screen. */
.profile-wrap { max-width: 520px; margin: 0 auto; }

/* Logo preview tiles in admin settings — contained, both backdrops. */
.logo-preview {
  display: inline-flex; align-items: center; justify-content: center;
  width: 150px; height: 76px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  padding: 8px;
}
.logo-preview img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.logo-preview--light { background: #fff; }
.logo-preview--dark { background: var(--navy-800); border-color: var(--navy-800); }

/* ---------- Mobile type scale ---------- */
@media (max-width: 1023px) {
  body { font-size: 14px; }
  .h1 { font-size: 20px; }
  .h2 { font-size: 16.5px; }
  .h3 { font-size: 14.5px; }
  .t-sm { font-size: 12.5px; }
  .t-xs { font-size: 11px; }
  .cat-name { font-size: 10.5px; }
  .tile-title { font-size: 11px; padding: 7px 5px 9px; }
  .badge { font-size: 11px; padding: 4px 9px; }
  .btn { padding: 11px 16px; font-size: 13.5px; }
  .btn-lg { padding: 14px 20px; font-size: 14.5px; }
  .btn-sm { padding: 8px 12px; font-size: 12.5px; }
  .card-pad, .card-body { padding: 12px; }
  .card-pad-lg { padding: 14px; }
}

/* ---------- PWA install button ---------- */
.pwa-install {
  position: fixed;
  right: 0; top: 50%;
  transform: translateY(-50%);
  z-index: 70;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 13px 9px;
  border: 0; cursor: pointer;
  border-radius: var(--r-md) 0 0 var(--r-md);
  background: var(--green-600); color: #fff;
  font-size: 9.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  writing-mode: vertical-rl;
  box-shadow: -3px 4px 16px rgba(20,160,79,.4);
  transition: background .16s, padding .16s;
}
.pwa-install:hover { background: var(--green-700); padding-right: 13px; }
.pwa-install .ico { font-size: 15px; width: auto; transform: rotate(90deg); }
.pwa-install[hidden] { display: none !important; }

/* Print */
@media print {
  .side, .tabbar, .appbar, .admin-side, .admin-topbar, .btn, .no-print,
  .topbar, .catnav, .site-footer, .slider { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border-color: #ccc; }
}
