@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap");

:root,
[data-theme="light"] {
  --bg: #ffffff;
  --fg: #0f172a;
  --navy: #0f172a;
  --slate: #334155;
  --muted: #475569;
  --text-subtle: #64748b;
  --border: #e2e8f0;
  --card: #ffffff;
  --card-hover: #ffffff;
  --surface-muted: rgba(148, 163, 184, 0.12);
  --subcard-bg: rgba(148, 163, 184, 0.08);
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
  --shadow-sm: 0 8px 20px rgba(2, 6, 23, 0.06);
  --primary: #ff6a00;
  --primary-ink: #ffffff;
  --ring: rgba(255, 106, 0, 0.35);
  --nav-link: rgba(71, 85, 105, 0.95);
  --input-bg: #ffffff;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-serif: "Outfit", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0f172a;
  --fg: #f1f5f9;
  --navy: #f1f5f9;
  --slate: #cbd5e1;
  --muted: #94a3b8;
  --text-subtle: #cbd5e1;
  --border: #334155;
  --card: #1e293b;
  --card-hover: #273449;
  --surface-muted: rgba(30, 41, 59, 0.55);
  --subcard-bg: rgba(15, 23, 42, 0.55);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 8px 25px rgba(0, 0, 0, 0.3);
  --primary: #ff8533;
  --ring: rgba(255, 133, 51, 0.25);
  --nav-link: #cbd5e1;
  --input-bg: #1e293b;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

textarea {
  resize: none;
}

html,
body {
  height: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.55;
}

.site,
main {
  max-width: 100%;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, calc(100% - 32px));
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.navbar-container {
  width: 100%;
  max-width: 100%;
  padding: 0 16px;
  margin: 0 auto;
  box-sizing: border-box;
  position: relative;
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  background: var(--primary);
  color: var(--primary-ink);
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 12px 30px rgba(255, 106, 0, .28), 0 4px 12px rgba(15, 23, 42, .1);
  transition: all .3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover {
  transform: translateY(-4px);
  filter: brightness(1.1);
  box-shadow: 0 20px 42px rgba(255, 106, 0, .35);
}

.btn:active {
  transform: translateY(-1px);
}

.btn.outline {
  background: transparent;
  color: var(--fg);
  border: 2px solid rgba(15, 23, 42, .18);
  box-shadow: 0 6px 15px rgba(15, 23, 42, .06);
}

.btn.outline:hover {
  background: rgba(15, 23, 42, .04);
  border-color: var(--fg);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.btn.secondary {
  background: var(--card);
  color: var(--fg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .btn.secondary {
  background: var(--card);
  color: var(--fg);
  border-color: var(--border);
}

.btn.book-now {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .22);
}

.btn.book-now:hover {
  box-shadow: 0 20px 36px rgba(15, 23, 42, .28);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 106, 0, .10);
  color: var(--primary);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
}

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(10px);
}

.navbar-inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
  max-width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-weight: 900;
  letter-spacing: -.02em;
  white-space: normal;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--primary);
  color: var(--primary-ink);
  display: grid;
  place-items: center;
  box-shadow: 0 18px 30px rgba(255, 106, 0, .22);
  font-weight: 900;
  flex-shrink: 0;
  align-self: center;
}

.brand span b {
  color: var(--primary);
}

.brand .txt {
  font-size: 24px;
}

@media (max-width: 768px) {
  .brand .txt {
    font-size: 20px;
  }
}

.nav-toggle {
  display: none;
  flex-shrink: 0;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 26px;
  color: var(--nav-link);
  font-weight: 700;
  font-size: 14px;
}

[data-theme="light"] .nav-links a {
  color: #334155;
}

[data-theme="light"] .nav-links a:hover {
  color: var(--primary);
}

@media (min-width: 1150px) {
  .nav-links {
    display: flex;
  }

  .navbar-inner {
    position: relative;
    z-index: 10;
    pointer-events: none;
  }

  .navbar-inner .brand,
  .navbar-inner .nav-right {
    pointer-events: auto;
    position: relative;
    z-index: 11;
  }

  #primaryNav.nav-links {
    display: flex !important;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 26px;
    width: auto;
    max-width: min(720px, calc(100% - 420px));
    height: 80px;
    margin: 0;
    padding: 0 12px;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
    z-index: 6;
    visibility: visible;
    opacity: 1;
    pointer-events: none;
  }

  #primaryNav.nav-links a {
    pointer-events: auto;
    position: relative;
    z-index: 7;
  }

  #primaryNav.nav-links .nav-mobile-actions {
    display: none !important;
  }

  /* Admin/staff sidebar uses .nav-links too — must stay clickable */
  .admin-shell .navbar-inner,
  .admin-shell .navbar-inner .nav-links,
  .admin-shell .navbar-inner .nav-links a,
  .admin-shell .admin-nav-drawer,
  .admin-shell .admin-nav-drawer a {
    pointer-events: auto;
  }
}

/* Admin mobile menu toggle (hidden on desktop sidebar) */
.admin-shell .admin-nav-toggle {
  display: none;
}

/* Admin dashboard & pages — phone layout */
@media (max-width: 1023px) {
  body.nav-menu-open:has(.admin-shell)::before {
    top: 64px;
  }

  .admin-shell .dash-hero {
    padding: 18px 16px;
  }

  .admin-shell .dash-hero h1 {
    font-size: clamp(1.35rem, 5.5vw, 1.65rem);
  }

  .admin-shell .dash-hero p {
    font-size: 14px;
  }

  .admin-shell .dash-actions {
    width: 100%;
  }

  .admin-shell .dash-actions .btn {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    text-align: center;
    font-size: 13px;
    padding: 10px 10px;
  }

  .admin-shell .dash-card {
    padding: 14px;
    overflow: hidden;
  }

  .admin-shell .dash-card-head {
    flex-wrap: wrap;
  }

  .admin-shell .dash-card-head h2 {
    font-size: 1.15rem;
  }

  .admin-shell .mini-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -4px;
    padding: 0 4px;
  }

  .admin-shell .mini-table {
    min-width: 480px;
  }

  .admin-shell .metric-value {
    font-size: 24px;
  }

  .admin-shell .card table {
    min-width: 0;
  }

  .admin-shell .table-scroll {
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .admin-shell .dash-actions .btn {
    flex: 1 1 100%;
  }

  .admin-shell .metric-value {
    font-size: 22px;
  }
}

.nav-links a {
  position: relative;
  padding: 8px 0;
  transition: color .15s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a.active {
  color: var(--primary);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-phone {
  display: none;
  font-weight: 800;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.nav-phone small {
  color: var(--muted);
  font-weight: 700;
}

.nav-phone-icon {
  display: none;
  flex-shrink: 0;
}

main {
  flex: 1;
}

.hero {
  position: relative;
  padding: 88px 0 120px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, .92) 38%, rgba(255, 255, 255, .25) 100%);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  width: 100%;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(42px, 5.5vw, 72px);
  line-height: 1.05;
  margin: 12px 0 18px;
  letter-spacing: -.03em;
  color: var(--fg);
}

.hero h1 em {
  font-style: normal;
  color: var(--primary);
  position: relative;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .hero h1 em {
    white-space: normal;
  }
}

.hero p {
  font-size: 18px;
  color: var(--text-subtle);
  max-width: 560px;
  margin: 0 0 24px;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.hero-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  width: 100%;
  max-width: 100%;
}

.hero-cta-buttons .btn {
  text-decoration: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
}

.hero .hero-cta-buttons .btn {
  padding: 16px 32px;
  font-size: 1.15rem;
}

.quote-section-cta {
  width: 100%;
  max-width: 420px;
}

.quote-form-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px;
  background: var(--surface-muted);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .quote-form-card {
  background: var(--surface-muted);
  border-color: var(--border);
}

.quote-section-cta .btn {
  border-radius: 999px;
  flex: 1 1 140px;
  min-width: 0;
  justify-content: center;
  padding: 16px 24px;
  font-size: 1.05rem;
}

@media (max-width: 640px) {
  .hero-cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta-buttons .btn,
  .hero .hero-cta-buttons .btn,
  .quote-section-cta .btn {
    width: 100%;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
    padding: 14px 20px;
    font-size: 1.05rem;
  }
}

button.btn.quote-modal-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-subtle);
  font-weight: 700;
  font-size: 13px;
}

.section {
  padding: 88px 0;
}

.section--tight {
  padding-top: 0;
}

.section.muted {
  background: var(--surface-muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  margin: 0 auto 44px;
  max-width: 720px;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.3vw, 48px);
  margin: 0 0 12px;
  letter-spacing: -.02em;
  color: var(--fg);
}

.section-header p {
  margin: 0;
  color: var(--text-subtle);
  font-size: 16px;
}

.trust {
  padding: 42px 0;
  background: rgba(148, 163, 184, .10);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.trust-item {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(255, 255, 255, .6);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 12px;
}

.trust-item b {
  display: block;
  color: var(--fg);
}

.trust-item span {
  display: block;
  font-size: 12px;
  color: var(--text-subtle);
  font-weight: 700;
}

.icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 106, 0, .10);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 24px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.cols-4 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid.cols-3 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid.cols-2 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.service-tile {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow: var(--shadow-sm);
  min-height: 240px;
  max-height: 280px;
}

.service-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform .4s ease;
}

.service-tile:hover img {
  transform: scale(1.04);
}

.service-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, .80) 0%, rgba(2, 6, 23, .15) 55%, rgba(2, 6, 23, 0) 100%);
}

.service-tile .content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px;
  z-index: 1;
  color: #fff;
}

.service-tile h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.service-tile p {
  margin: 0;
  color: rgba(255, 255, 255, .84);
  font-size: 13px;
}

/* Homepage — simplified services (Option B) */
.services-overview {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 28px 36px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.services-overview-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 16px;
}

.services-overview-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 18px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.services-overview-item:hover {
  border-color: rgba(255, 106, 0, 0.35);
  box-shadow: 0 4px 16px rgba(255, 106, 0, 0.08);
}

.services-overview-icon {
  flex-shrink: 0;
  font-size: 28px;
  line-height: 1;
}

.services-overview-item strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 4px;
}

.services-overview-item span:not(.services-overview-icon) {
  display: block;
  font-size: 14px;
  color: var(--text-subtle);
  line-height: 1.5;
}

.services-overview-note {
  margin: 0 0 20px;
  font-size: 15px;
  color: var(--text-subtle);
  line-height: 1.6;
  text-align: center;
}

.services-overview-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  margin-bottom: 28px;
  font-size: 14px;
  font-weight: 700;
  color: var(--fg);
}

.services-overview-trust .tick {
  color: var(--primary);
  margin-right: 4px;
}

.services-overview-cta {
  display: flex;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  justify-content: center;
  padding: 16px 32px;
  font-size: 1.05rem;
  border-radius: 999px;
  text-decoration: none;
}

@media (min-width: 640px) {
  .services-overview-list {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: flex-start;
}

.frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .10);
  box-shadow: var(--shadow-sm);
}

.frame img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.list {
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
}

.tick {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255, 106, 0, .12);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex: 0 0 20px;
  font-weight: 900;
}

.page-hero {
  padding: 56px 0;
  background: var(--surface-muted);
  border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .page-hero {
  background: var(--surface-muted);
}

.auth-page .page-hero {
  padding: 48px 0 36px;
}

.auth-page .page-hero .badge {
  margin: 0 auto 16px;
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(34px, 4.2vw, 62px);
  margin: 0 0 10px;
  letter-spacing: -.03em;
  text-align: center;
  color: var(--fg);
}

.page-hero p {
  margin: 0 auto;
  max-width: 760px;
  text-align: center;
  color: var(--text-subtle);
}

.service-breadcrumbs {
  margin: 0 auto 14px;
  max-width: 760px;
}

.service-breadcrumbs__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-subtle);
}

.service-breadcrumbs__list a {
  color: var(--text-subtle);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}

.service-breadcrumbs__list a:hover {
  color: var(--primary);
  border-bottom-color: rgba(255, 106, 0, 0.35);
}

.service-breadcrumbs__sep {
  flex: 0 0 auto;
  user-select: none;
  color: rgba(148, 163, 184, 0.95);
  font-weight: 400;
  font-size: 15px;
  line-height: 1;
}

.service-breadcrumbs__sep span {
  display: inline-block;
  transform: translateY(-1px);
}

.service-breadcrumbs__current {
  color: var(--fg);
  font-weight: 700;
  max-width: 100%;
}

.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 32px 28px;
}

[data-theme="dark"] .form-card {
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border-color: rgba(255, 255, 255, 0.05);
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid.cols-2 {
  grid-template-columns: 1fr;
}

.form-grid.cols-3 {
  grid-template-columns: 1fr;
}

.field label {
  display: block;
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 6px;
  color: var(--fg);
  opacity: 0.9;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 12px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  background: var(--bg);
  color: var(--fg);
  transition: box-shadow .15s ease, border-color .15s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--ring);
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

/* Password row: label + forgot link on one line */
.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.field-label-row label {
  margin-bottom: 0;
}

.form-forgot-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
  padding: 2px 4px;
  border-radius: 6px;
  flex-shrink: 0;
}

.form-forgot-link:hover {
  text-decoration: underline;
  background: rgba(249, 115, 22, 0.1);
}

.field-password {
  margin-bottom: 14px;
}

.form-submit-spaced {
  margin-top: 4px;
}

/* Auth pages (login, signup, forgot, reset, admin login) */
.auth-page .section--tight {
  padding-top: 0;
}

.auth-card-wrap {
  max-width: 480px;
  margin: 0 auto;
}

.auth-card-wrap--wide {
  max-width: 520px;
}

.auth-card.form-card {
  border-radius: 20px;
  padding: 32px 28px;
}

@media (min-width: 480px) {
  .auth-card.form-card {
    padding: 40px 36px;
  }
}

.btn--block {
  width: 100%;
  border-radius: 14px;
  height: 52px;
  font-size: 1.05rem;
  margin-top: 8px;
}

.btn--block-sm {
  width: 100%;
  border-radius: 14px;
  height: 48px;
  margin-top: 10px;
}

.auth-divider {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.auth-divider>p {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 16px;
}

.auth-social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 420px) {
  .auth-social-grid {
    grid-template-columns: 1fr;
  }
}

.auth-social-grid .btn.outline {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  font-weight: 600;
  color: var(--fg);
  border-color: var(--border);
  box-shadow: none;
}

.auth-footer-text {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--muted);
}

.auth-footer-text a {
  color: var(--primary);
  font-weight: 600;
}

.auth-footer-text a:hover {
  text-decoration: underline;
}

.auth-promo-card {
  padding: 24px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #f8fafc;
  border-color: rgba(148, 163, 184, 0.25);
}

.auth-promo-card h2 {
  font-family: var(--font-serif);
  margin: 12px 0 8px;
  color: #fff !important;
}

.auth-promo-card p {
  color: rgba(226, 232, 240, 0.9) !important;
}

.auth-promo-card .list li,
.auth-promo-card .list span,
.auth-promo-card .list strong {
  color: rgba(226, 232, 240, 0.9) !important;
}

.auth-promo-card .list strong {
  color: #f8fafc !important;
}

.auth-promo-card .badge {
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
}

.auth-split-intro {
  margin: 0 0 14px;
  color: var(--text-subtle);
  font-size: 14px;
}

.auth-layout-split .split {
  gap: 24px;
}

@media (max-width: 767px) {
  .auth-layout-split .split {
    gap: 20px;
  }
}

.alert-banner {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.alert-banner--success {
  background: #064e3b;
  border: 1px solid #10b981;
  color: #6ee7b7;
}

[data-theme="dark"] .alert-banner--success {
  background: rgba(6, 78, 59, 0.45);
  border-color: #10b981;
  color: #a7f3d0;
}

.alert-banner--dev {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 13px;
}

[data-theme="dark"] .alert-banner--dev {
  background: rgba(154, 52, 18, 0.2);
  border-color: rgba(251, 146, 60, 0.4);
  color: #fdba74;
}

.alert-banner--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

[data-theme="dark"] .alert-banner--error {
  background: rgba(153, 27, 27, 0.22);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.alert-banner--warn {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  color: #92400e;
}

[data-theme="dark"] .alert-banner--warn {
  background: rgba(146, 64, 14, 0.22);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fcd34d;
}

.alert-banner--info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

[data-theme="dark"] .alert-banner--info {
  background: rgba(30, 64, 175, 0.2);
  border-color: rgba(96, 165, 250, 0.35);
  color: #93c5fd;
}

/* Agreement financial section — orange-tinted card (auto dark-mode aware) */
.agr-financial-card {
  background: #fffaf5;
}

[data-theme="dark"] .agr-financial-card {
  background: rgba(255, 106, 0, 0.07);
}

.signup-otp-input {
  letter-spacing: 8px;
  font-size: 22px;
  text-align: center;
  font-weight: 700;
}

.field-hint {
  color: var(--muted);
  font-weight: 400;
}

/* Login/signup pages: hide redundant header CTAs */
.auth-chrome .nav-right .quote-modal-trigger,
.auth-chrome .nav-right .nav-auth-btn,
.auth-chrome .nav-right #nav-signup-btn {
  display: none !important;
}

/* Admin dashboard — theme-aware (replaces hardcoded light colors) */
.dash-hero {
  padding: 22px;
  border-radius: 16px;
  border: 1px solid var(--border);
  color: #fff;
  background: linear-gradient(130deg, #0f172a, #1e293b 58%, #1d4ed8);
  box-shadow: var(--shadow);
}

.dash-hero h1 {
  margin: 0;
  font-family: var(--font-serif);
  letter-spacing: -0.02em;
}

.dash-hero p {
  margin: 6px 0 0;
  color: rgba(241, 245, 249, 0.92);
}

.dash-actions .btn {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.dash-actions .btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.metric-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  background: var(--card);
}

.metric-title {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 700;
}

.metric-value {
  margin: 6px 0 2px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  color: var(--fg);
}

.metric-sub {
  font-size: 12px;
  color: var(--muted);
}

.dash-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.dash-card-head h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 23px;
  color: var(--fg);
}

.dash-card-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.dash-shell {
  display: grid;
  gap: 16px;
}

.dash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 980px) {
  .metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .metric-strip {
    grid-template-columns: 1fr;
  }
}

.dash-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 980px) {
  .dash-panels {
    grid-template-columns: 1fr;
  }
}

.dash-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.mini-table th,
.mini-table td {
  text-align: left;
  padding: 9px 6px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.mini-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  font-weight: 700;
}

.mini-table tr:last-child td {
  border-bottom: none;
}

.open-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 10px;
  color: var(--fg);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  background: var(--card);
}

.open-link:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.error {
  color: #b91c1c;
  font-size: 12px;
  margin-top: 6px;
  font-weight: 700;
}

.faq-category {
  margin: 0 0 30px;
}

.faq-category h2 {
  font-family: var(--font-serif);
  color: var(--primary);
  margin: 0 0 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
}

.faq-item button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  padding: 16px 16px;
  border: 0;
  background: var(--card);
  color: var(--fg);
  cursor: pointer;
  font-weight: 800;
}

.faq-item button:hover {
  background: var(--surface-muted);
}

.faq-item .panel {
  display: none;
  padding: 0 16px 16px;
  color: var(--text-subtle);
  font-size: 13px;
  border-top: 1px solid var(--border);
  background: var(--surface-muted);
}

.faq-item.open .panel {
  display: block;
}

.chev {
  transition: transform .2s ease;
}

.faq-item.open .chev {
  transform: rotate(180deg);
}

.reviews-rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--fg);
  border-radius: 18px;
  padding: 10px 14px;
  box-shadow: var(--shadow-sm);
}

.stars {
  color: #f59e0b;
  letter-spacing: 1px;
  font-size: 14px;
}

.review {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review .quote {
  color: rgba(255, 106, 0, .30);
  font-size: 28px;
  line-height: 1;
}

.review p {
  margin: 0;
  font-size: 13px;
  color: var(--fg);
}

.review .who {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid rgba(15, 23, 42, .08);
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 106, 0, .10);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-family: var(--font-serif);
}

.who b {
  display: block;
  font-size: 13px;
}

.who small {
  display: block;
  color: var(--text-subtle);
  font-weight: 700;
}

.cta {
  background: var(--primary);
  color: #fff;
  border-radius: 28px;
  padding: 34px 18px;
  text-align: center;
}

.cta h2 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  letter-spacing: -.02em;
}

.cta p {
  margin: 0 auto 18px;
  max-width: 640px;
  color: rgba(255, 255, 255, .84);
}

.footer {
  background: #020617;
  color: rgba(226, 232, 240, .9);
  border-top: 1px solid rgba(30, 41, 59, .9);
  padding: 54px 0;
}

.footer-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: 1fr;
  margin-bottom: 24px;
}

.footer h4 {
  margin: 0 0 12px;
  color: #f8fafc !important;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  font-size: 13px;
}

.footer a {
  color: rgba(203, 213, 225, .84);
}

.footer a:hover {
  color: var(--primary);
}

[data-theme="light"] .footer a {
  color: rgba(203, 213, 225, .9);
}

[data-theme="light"] .footer a:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: 16px;
  border-top: 1px solid rgba(30, 41, 59, .9);
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  color: rgba(148, 163, 184, .85);
  font-size: 13px;
}

.toast-wrap {
  position: fixed;
  z-index: 1000;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 10px;
}

.toast {
  width: min(360px, calc(100% - 32px));
  background: #0b1220;
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 20px 50px rgba(2, 6, 23, .45);
}

.toast b {
  display: block;
  margin-bottom: 2px;
}

.toast small {
  color: rgba(226, 232, 240, .78);
  font-weight: 700;
}

@media (min-width: 768px) {
  .trust-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .grid.cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid.cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split {
    grid-template-columns: 1fr 1fr;
    gap: 44px;
  }

  .form-grid.cols-2 {
    grid-template-columns: 1fr 1fr;
  }

  .form-grid.cols-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .grid.cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .frame {
    height: 100%;
    display: flex;
  }

  .frame img {
    height: 100%;
    min-height: 480px;
  }

  .services-category {
    align-items: flex-start;
  }

  .services-category .frame {
    height: 620px;
    width: 100%;
    flex-shrink: 0;
  }

  .services-category .frame img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    min-height: 0;
  }

  /* Ensuring the content column height matches the image column precisely */
  .services-category .split>div:nth-child(2) {
    height: 620px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .services-branch-block {
    margin-top: auto;
    padding-top: 15px;
  }

  .services-branch-heading {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin-bottom: 8px;
  }

  .branch-grid {
    gap: 8px;
  }

  .branch-card {
    padding: 10px 14px;
    min-height: 0;
  }

  .branch-card h3 {
    font-size: 14px;
    margin-bottom: 2px;
  }

  .branch-card p {
    font-size: 11px;
  }

  .hero {
    padding: 120px 0 160px;
  }

  .service-tile {
    max-height: none;
    min-height: 320px;
  }
}

/* Admin table polish */
.admin-shell .card table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  min-width: 900px;
  /* Reduced from 1080 */
  table-layout: auto;
}

/* Specific for small dashboard tables */
.admin-shell .grid.cols-2 .card table {
  min-width: 650px;
}

.admin-shell .card thead th {
  background: rgba(148, 163, 184, .10);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 14px;
  /* Matched body padding */
  border-bottom: 1px solid rgba(148, 163, 184, .12);
  text-align: left;
  /* Explicitly forced left */
}

.admin-shell .card tbody td {
  padding: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, .18);
  vertical-align: middle;
  font-size: 14px;
  color: var(--fg);
  white-space: nowrap;
  text-align: left;
  /* Explicitly forced left */
}

.admin-shell .card tbody tr:hover td {
  background: rgba(148, 163, 184, .08);
}

/* --- Animation Engine --- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for list items */
.reveal-1 {
  transition-delay: 0.1s;
}

.reveal-2 {
  transition-delay: 0.2s;
}

.reveal-3 {
  transition-delay: 0.3s;
}

.reveal-4 {
  transition-delay: 0.4s;
}

/* Interactive Hover Effects */
.service-tile,
.why-card,
.team-card,
.trust-item {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease !important;
}

.service-tile:hover,
.why-card:hover,
.team-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.hero-content h1,
.hero-content p,
.hero-service-wrap,
.hero-cta {
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-content h1 {
  animation-delay: 0.1s;
  opacity: 0;
}

.hero-content p {
  animation-delay: 0.3s;
  opacity: 0;
}

.hero-service-wrap {
  animation-delay: 0.4s;
  opacity: 0;
}

.hero-cta {
  animation-delay: 0.5s;
  opacity: 0;
}

.admin-shell .table-scroll {
  border: 1px solid rgba(148, 163, 184, .26);
  border-radius: 14px;
  overflow: auto;
}

.admin-shell .card form select,
.admin-shell .card form input {
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, .18);
  padding: 8px 10px;
  font-size: 14px;
}

.admin-shell .card form .btn {
  min-height: 42px;
  border-radius: 10px;
  padding: 0 14px;
}

.admin-shell .chip {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
  padding: 6px 10px;
}

/* Better visibility for admin table columns */
.admin-shell .card table th:nth-child(1),
.admin-shell .card table td:nth-child(1) {
  min-width: 70px;
}

.admin-shell .card table th:nth-child(2),
.admin-shell .card table td:nth-child(2) {
  min-width: 140px;
}

.admin-shell .card table th:nth-child(3),
.admin-shell .card table td:nth-child(3) {
  min-width: 220px;
}

.admin-shell .card table th:nth-child(4),
.admin-shell .card table td:nth-child(4) {
  min-width: 120px;
}

.admin-shell .card table th:nth-child(5),
.admin-shell .card table td:nth-child(5) {
  min-width: 110px;
}

.admin-shell .card table th:nth-child(6),
.admin-shell .card table td:nth-child(6) {
  min-width: 110px;
}

.admin-shell .card table th:nth-child(7),
.admin-shell .card table td:nth-child(7) {
  min-width: 100px;
}

.admin-shell .card table th:nth-child(8),
.admin-shell .card table td:nth-child(8) {
  min-width: 190px;
}

.admin-shell .card table td form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Category Modal Styles */
.category-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.category-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.category-modal-content {
  background: var(--bg);
  width: min(600px, 100%);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 50px rgba(2, 6, 23, 0.2);
  padding: 32px;
  position: relative;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-modal-overlay.active .category-modal-content {
  transform: translateY(0) scale(1);
}

.category-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--fg);
  transition: background 0.15s ease;
}

.category-modal-close:hover {
  background: rgba(15, 23, 42, 0.12);
}

.category-modal-header {
  margin-bottom: 24px;
}

.category-modal-header h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
}

.category-modal-header p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.branch-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 600px) {
  .branch-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.branch-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--card);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 100px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.branch-card:hover {
  background: var(--card-hover);
  border-color: var(--primary);
  box-shadow: 0 14px 30px rgba(255, 106, 0, 0.15);
  transform: translateY(-4px);
}

.branch-card h3 {
  margin: 0 0 6px 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
}

.branch-card span.arrow {
  color: var(--primary);
  font-weight: 900;
  font-size: 18px;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.2s ease;
  position: absolute;
  bottom: 12px;
  right: 16px;
}

.branch-card:hover span.arrow {
  opacity: 1;
  transform: translateX(0);
}

.services-page-grid {
  display: grid;
  gap: 64px;
}

.services-category {
  scroll-margin-top: 96px;
}

.services-branch-block {
  margin-top: 20px;
}

.services-branch-heading {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(71, 85, 105, 0.82);
  margin: 0 0 12px;
}

a.branch-card {
  text-decoration: none;
  color: inherit;
}

.quote-for-summary {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 106, 0, 0.08);
  border: 1px solid rgba(255, 106, 0, 0.22);
}

.quote-for-summary__label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(71, 85, 105, 0.88);
}

.quote-for-summary__text {
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.35;
}

.quote-for-summary__sep {
  display: inline-block;
  margin: 0 0.35em;
  color: rgba(148, 163, 184, 0.95);
  font-weight: 500;
}

.quote-for-summary__branch {
  font-weight: 800;
  color: var(--primary);
}

.quote-two-step {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.quote-category-card {
  background: rgba(148, 163, 184, 0.1);
  border-color: rgba(15, 23, 42, 0.08);
}

.quote-branch-card {
  border-color: rgba(255, 106, 0, 0.25);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
}

.quote-card-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

.quote-card-title {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.2vw, 26px);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.quote-card-lead {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.quote-category-card .btn {
  margin-top: 4px;
}

.quote-branch-form {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}

/* Multi-Step Quote Modal Styles */
.quote-modal-steps {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.quote-step {
  display: none;
  animation: fadeInStep 0.3s ease-out;
}

.quote-step.active {
  display: block;
}

@keyframes fadeInStep {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-back-btn {
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 16px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.modal-back-btn:hover {
  color: var(--primary);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.cat-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}

.cat-item:hover {
  background: var(--bg);
  border-color: var(--primary);
  box-shadow: 0 12px 30px rgba(255, 106, 0, .15);
  transform: translateY(-4px);
}

.cat-item .icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  font-size: 28px;
}

.cat-item h3 {
  font-family: var(--font-serif);
  font-size: 16px;
  margin: 0;
}

.quote-progress {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.quote-progress-dot {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
}

.quote-progress-dot.active {
  background: var(--primary);
}

@media (max-width: 480px) {
  .cat-grid {
    grid-template-columns: 1fr;
  }
}

/* Dark Mode Global Overrides */
[data-theme="dark"] .navbar {
  background: rgba(15, 23, 42, .85);
}

[data-theme="dark"] .hero-bg::after {
  background: linear-gradient(90deg, rgba(15, 23, 42, 1) 0%, rgba(15, 23, 42, .92) 38%, rgba(15, 23, 42, .35) 100%);
}

[data-theme="dark"] .field input,
[data-theme="dark"] .field select,
[data-theme="dark"] .field textarea {
  background: #1e293b;
  color: #f1f5f9;
}

[data-theme="dark"] .category-modal-content {
  background: #1e293b;
}

[data-theme="dark"] .cat-item:hover {
  background: #334155;
}

[data-theme="dark"] .btn.outline {
  color: #f1f5f9;
  border-color: rgba(148, 163, 184, .2);
}

[data-theme="dark"] .trust-item {
  background: rgba(30, 41, 59, .6);
}

[data-theme="dark"] section.muted {
  background: var(--surface-muted);
}

/* Theme Toggle Button */
.theme-toggle {
  background: rgba(148, 163, 184, .12);
  border: 1px solid var(--border);
  color: var(--fg);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
  padding: 0;
  transform: none;
}

.theme-toggle:active {
  transform: scale(0.94);
  background: rgba(255, 106, 0, .15);
  border-color: var(--primary);
  color: var(--primary);
}

.theme-toggle.is-tapping {
  transform: rotate(15deg) scale(0.94);
  background: rgba(255, 106, 0, .15);
  border-color: var(--primary);
  color: var(--primary);
}

@media (hover: hover) and (pointer: fine) {
  .theme-toggle:hover {
    background: rgba(255, 106, 0, .15);
    border-color: var(--primary);
    color: var(--primary);
    transform: rotate(15deg);
  }

  .theme-toggle:active {
    transform: rotate(15deg) scale(0.94);
  }
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

[data-theme="dark"] .theme-toggle .sun-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle .moon-icon {
  display: none;
}

.theme-toggle .sun-icon {
  display: none;
}

.theme-toggle .moon-icon {
  display: block;
}

.branch-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 100px;
  box-shadow: 0 6px 20px var(--shadow-sm);
}

.branch-card:hover {
  background: var(--bg);
  border-color: var(--primary);
  box-shadow: 0 18px 42px rgba(255, 106, 0, 0.2);
  transform: translateY(-6px);
}

/* Why-Card & Generic Card Enhancements */
.why-card,
.card {
  background: var(--card);
  border: 1.5px solid rgba(15, 23, 42, 0.15);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.05);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
}

.why-card:hover,
.card:not(.no-hover):hover {
  transform: translateY(-10px);
  background: var(--card-hover);
  border-color: var(--primary);
  box-shadow: 0 28px 60px rgba(255, 106, 0, 0.22), 0 10px 20px rgba(15, 23, 42, 0.08);
}

.card.auth-promo-card,
.card.auth-promo-card:hover {
  background: linear-gradient(135deg, #0f172a, #1e293b) !important;
  border-color: rgba(148, 163, 184, 0.25);
  color: #f8fafc;
}

.card.auth-promo-card:hover {
  border-color: rgba(255, 106, 0, 0.45);
}

.why-icon {
  font-size: 38px;
  margin-bottom: 20px;
  display: inline-flex;
  padding: 12px;
  background: rgba(255, 106, 0, 0.12);
  border-radius: 16px;
  line-height: 1;
}

.why-card h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.why-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-subtle);
  line-height: 1.6;
}

[data-theme="dark"] .why-card,
[data-theme="dark"] .card {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .why-card:hover,
[data-theme="dark"] .card:not(.no-hover):hover {
  background: #1e293b;
  border-color: var(--primary);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 106, 0, 0.1);
}

[data-theme="dark"] .why-icon {
  background: rgba(255, 133, 51, 0.18);
}

/* Secondary / muted text utility (do not use on <section>) */
p.muted,
.text-muted,
.faq-desc {
  color: var(--muted);
}

/* ================================================
   Cookie Consent Banner
   ================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 0 16px 16px;
  transform: translateY(110%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.cookie-banner.visible {
  transform: translateY(0);
  pointer-events: all;
}

.cookie-banner__inner {
  max-width: 1120px;
  margin: 0 auto;
  background: #0f172a;
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.55);
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.cookie-banner__icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
}

.cookie-banner__text {
  flex: 1 1 260px;
}

.cookie-banner__text strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: #f1f5f9;
  margin-bottom: 4px;
  font-family: var(--font-serif);
}

.cookie-banner__text p {
  margin: 0;
  font-size: 13px;
  color: rgba(148, 163, 184, 0.9);
  line-height: 1.5;
}

.cookie-banner__text a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cookie-btn-accept {
  appearance: none;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 106, 0, 0.35);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cookie-btn-accept:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 12px 30px rgba(255, 106, 0, 0.45);
}

.cookie-btn-decline {
  appearance: none;
  background: rgba(148, 163, 184, 0.12);
  color: rgba(226, 232, 240, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.22);
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cookie-btn-decline:hover {
  background: rgba(148, 163, 184, 0.2);
  color: #f1f5f9;
}

[data-theme="dark"] .cookie-banner__inner {
  background: #020617;
  border-color: rgba(148, 163, 184, 0.12);
}

@media (max-width: 600px) {
  .cookie-banner {
    position: fixed;
    bottom: 10px;
    left: 10px;
    right: 10px;
    padding: 0;
    z-index: 9999;
  }

  .cookie-banner__inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 12px 14px;
    gap: 6px;
    border-radius: 12px;
  }

  .cookie-banner__icon {
    display: none;
  }

  .cookie-banner__text {
    width: 100%;
    flex: none;
  }

  .cookie-banner__text strong {
    font-size: 13px;
    display: block;
    margin-bottom: 2px;
  }

  .cookie-banner__text p {
    font-size: 11px;
    margin: 0;
    line-height: 1.4;
    white-space: normal;
  }

  .cookie-banner__actions {
    display: flex;
    width: 100%;
    gap: 8px;
    margin-top: 4px;
  }

  .cookie-btn-accept,
  .cookie-btn-decline {
    flex: 1;
    height: 34px;
    font-size: 12px;
    display: flex;
    align-items: center;
  }
}

/* Team Card Styles */
.team-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.team-img {
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
}

.team-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-card:hover .team-img img {
  transform: scale(1.05);
}

@media (max-width: 1024px) {
  .team-img {
    aspect-ratio: 16/9;
  }
}

.team-content {
  padding: 24px;
  text-align: center;
}

.team-content h3 {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--fg);
}

.team-content span {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.team-content p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ==========================================================================
   ELEVATED THEME MODERNIZATION & GLOBAL POLISH
   ========================================================================== */

/* Modernized Global Interactive Transitions */
a,
button,
input,
select,
textarea,
.btn,
.card,
.service-tile,
.trust-item {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Premium Outlined Button Hover States in Dark Mode */
[data-theme="dark"] .btn.outline {
  border-color: rgba(241, 245, 249, 0.22) !important;
  color: var(--fg) !important;
}

[data-theme="dark"] .btn.outline:hover {
  background: rgba(241, 245, 249, 0.06) !important;
  border-color: var(--fg) !important;
}

/* Navbar polish + mobile drawer */
.navbar {
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom-color: rgba(226, 232, 240, 0.9);
}

[data-theme="dark"] .navbar {
  background: rgba(15, 23, 42, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.navbar-container {
  padding: 0 16px;
}

@media (min-width: 768px) {
  .navbar-container {
    padding: 0 24px;
  }
}

@media (min-width: 1150px) {
  .navbar-container {
    padding: 0 32px;
  }
}

.navbar-inner {
  height: 72px;
}

@media (min-width: 1150px) {
  .navbar-inner {
    height: 80px;
  }

  .nav-phone {
    display: inline-flex;
  }
}

/* Desktop link underline */
@media (min-width: 1150px) {
  .nav-links a {
    position: relative;
    padding: 8px 0;
  }

  .nav-links a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-links a:hover::after,
  .nav-links a.active::after {
    transform: scaleX(1);
    transform-origin: left;
  }

  .nav-mobile-actions {
    display: none !important;
  }

  .nav-phone-icon {
    display: none !important;
  }
}

/* Laptop / medium desktop: stop nav overlap (icon phone, tighter center links) */
@media (min-width: 1150px) and (max-width: 1600px) {
  .navbar-container {
    padding: 0 16px;
  }

  .brand {
    flex-shrink: 1;
    min-width: 0;
    max-width: min(300px, 26vw);
    font-size: 13px;
  }

  .brand .txt {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    line-height: 1.25;
    word-break: break-word;
  }

  #primaryNav.nav-links {
    max-width: min(520px, calc(100% - 520px));
    gap: 10px;
    padding: 0 6px;
  }

  #primaryNav.nav-links a {
    font-size: 12.5px;
  }

  .nav-right {
    gap: 6px;
    flex-shrink: 0;
  }

  .nav-right .btn {
    padding: 10px 12px;
    font-size: 13px;
  }

  .nav-auth-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    border-radius: 12px;
  }

  .nav-auth-btn span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .nav-phone {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 12px;
    background: rgba(255, 106, 0, 0.1);
    border: 1px solid rgba(255, 106, 0, 0.35);
    color: var(--primary);
    flex-shrink: 0;
  }

  .nav-phone small,
  .nav-phone-number {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .nav-phone-icon {
    display: block !important;
  }
}

@media (min-width: 1601px) {
  .nav-phone-icon {
    display: none !important;
  }
}

/* Mobile / tablet */
@media (max-width: 1149px) {
  .navbar {
    overflow-x: hidden;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .navbar-container {
    padding: 0 12px;
  }

  .brand {
    font-size: 13px;
    max-width: calc(100% - 108px);
    min-width: 0;
    flex: 1 1 auto;
    overflow: visible;
    white-space: normal;
  }

  .brand .txt {
    overflow: visible;
    white-space: normal;
    line-height: 1.25;
    word-break: break-word;
    text-overflow: clip;
  }

  .nav-right {
    gap: 10px;
    flex-shrink: 0;
  }

  .nav-auth-btn,
  .nav-right .btn,
  .nav-right .theme-toggle,
  .nav-right .user-nav-dropdown {
    display: none !important;
  }

  .nav-phone {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 12px;
    background: rgba(255, 106, 0, 0.1);
    border: 1px solid rgba(255, 106, 0, 0.35);
    color: var(--primary);
  }

  .nav-phone:hover {
    background: rgba(255, 106, 0, 0.18);
    border-color: var(--primary);
  }

  .nav-phone small,
  .nav-phone-number {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .nav-phone-icon {
    display: block !important;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid var(--border);
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    transition: background 0.2s ease, border-color 0.2s ease;
  }

  .nav-toggle:hover {
    background: rgba(255, 106, 0, 0.12);
    border-color: var(--primary);
  }

  .nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--fg);
    border-radius: 99px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
    transform-origin: center;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  #primaryNav.nav-links,
  .navbar-inner>.nav-links {
    display: none !important;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: 72px;
    right: 0;
    left: auto;
    width: min(340px, 92vw);
    bottom: 0;
    height: calc(100dvh - 72px);
    margin: 0 !important;
    padding: 24px 22px 28px;
    gap: 0;
    background: var(--bg);
    border-left: 1px solid var(--border);
    box-shadow: -12px 0 40px rgba(15, 23, 42, 0.14);
    z-index: 1001;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: none;
  }

  #primaryNav.nav-links.open,
  .navbar-inner>.nav-links.open {
    display: flex !important;
  }

  .nav-links a {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--fg);
    padding: 14px 4px;
    border-bottom: 1px solid var(--border);
    width: 100%;
    display: block;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: var(--primary);
    border-bottom-color: rgba(255, 106, 0, 0.35);
  }

  .nav-mobile-actions {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 20px;
    width: 100%;
  }

  .nav-drawer-btn,
  .nav-drawer-phone {
    width: 100%;
    justify-content: center;
    height: 46px;
    border-radius: 12px;
    font-weight: 700;
  }

  .nav-drawer-phone {
    border: 2px solid rgba(255, 106, 0, 0.35);
    color: var(--primary);
  }

  .nav-drawer-btn+.nav-drawer-btn,
  .nav-drawer-phone+.nav-drawer-btn {
    margin-top: 0;
  }

  .nav-drawer-btn.outline {
    border: 2px solid rgba(15, 23, 42, 0.15);
    color: var(--fg);
  }
}

body.nav-menu-open {
  overflow: hidden;
}

body.nav-menu-open::before {
  content: "";
  position: fixed;
  inset: 0;
  top: 72px;
  background: rgba(15, 23, 42, 0.45);
  z-index: 1000;
  pointer-events: auto;
}

@media (min-width: 1150px) {
  body.nav-menu-open::before {
    display: none;
  }
}

/* Hero quick-action buttons (index) */
.hero-service-wrap {
  margin-bottom: 28px;
  width: 100%;
  max-width: 440px;
}

.hero-service-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 15px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  width: 100%;
  text-align: center;
}

.hero-service-btn:hover {
  background: var(--primary);
  color: var(--primary-ink);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(255, 106, 0, 0.35);
}

a.hero-service-btn--link {
  display: block;
  text-decoration: none;
  box-sizing: border-box;
}

a.hero-service-btn--link:hover {
  color: var(--primary-ink);
}

/* ==========================================================================
   THEME: readable text on every surface (light + dark)
   ========================================================================== */
:root h1,
:root h2,
:root h3,
:root h4,
:root h5,
:root h6,
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6 {
  color: var(--fg);
}

[data-theme="dark"] {

  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  .section-header h2,
  .hero h1,
  .page-hero h1,
  .wizard-title,
  .card h3,
  .card h4,
  .why-card h3,
  .trust-item b {
    color: var(--fg);
  }

  p,
  .section-header p,
  .hero p,
  .hero-meta,
  .trust-item span,
  p.muted,
  .text-muted,
  .faq-desc {
    color: var(--text-subtle);
  }

  input,
  select,
  textarea {
    color: var(--fg);
    background: var(--input-bg);
  }

  /* Trust Grid Cards in Dark Mode */
  .trust-item {
    background: var(--card) !important;
    border-color: var(--border) !important;
    color: var(--fg) !important;
  }

  .trust-item span {
    color: var(--muted) !important;
  }

  /* Form Fields - Outlined Outline style */
  .fs-field label {
    background: var(--card) !important;
    color: var(--muted) !important;
  }

  .fs-field input,
  .fs-field select,
  .fs-field textarea {
    background: var(--card) !important;
    color: var(--fg) !important;
    border-color: var(--border) !important;
  }

  .fs-field input:focus,
  .fs-field select:focus,
  .fs-field textarea:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px var(--ring) !important;
  }

  /* Portal Dashboards (Admin / User / Staff) Contrast Alignments */
  .metric-card,
  .dash-card,
  .sidebar-card {
    background: var(--card) !important;
    border-color: var(--border) !important;
    color: var(--fg) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
  }

  .metric-value {
    color: var(--fg) !important;
  }

  .metric-title,
  .metric-sub,
  .dash-card-head p {
    color: var(--muted) !important;
  }

  /* Table Contrast Alignments */
  .mini-table,
  .dash-table,
  table {
    color: var(--fg) !important;
  }

  .mini-table th,
  .dash-table th,
  table th {
    color: var(--muted) !important;
    border-bottom-color: var(--border) !important;
  }

  .mini-table td,
  .dash-table td,
  table td {
    color: var(--fg) !important;
    border-bottom-color: var(--border) !important;
  }

  .mini-table tr:hover td,
  .dash-table tr:hover td,
  table tr:hover td {
    background: rgba(255, 255, 255, 0.03) !important;
  }

  /* Open links & navigation dropdown list overrides */
  .open-link {
    background: var(--card) !important;
    border-color: var(--border) !important;
    color: var(--fg) !important;
  }

  .open-link:hover {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
  }

  /* Wizard Live Summary Sidebar overlays */
  .sidebar-content {
    border-bottom-color: var(--border) !important;
  }

  .summary-line {
    color: var(--fg) !important;
  }

  .sidebar-accordion {
    border-bottom-color: var(--border) !important;
  }

  .sidebar-accordion summary {
    color: var(--fg) !important;
  }

  .acc-body {
    color: var(--muted) !important;
  }

  .hero-bg::after {
    background: linear-gradient(90deg, rgba(15, 23, 42, 1) 0%, rgba(15, 23, 42, 0.92) 38%, rgba(15, 23, 42, 0.25) 100%);
  }

  .faq-item,
  .faq-item button {
    background: var(--card);
    color: var(--fg);
  }

  .faq-item .panel {
    color: var(--text-subtle);
    background: var(--surface-muted);
  }

  .reviews-rating,
  .branch-card,
  .fs-list-item {
    background: var(--card);
    color: var(--fg);
  }

  .review p,
  .who b {
    color: var(--fg);
  }

  .who small {
    color: var(--text-subtle);
  }

  .services-branch-heading,
  .quote-for-summary__label {
    color: var(--text-subtle);
  }

  .quote-for-summary__text {
    color: var(--fg);
  }
}

/* ==========================================================================
   RESPONSIVE — consolidated mobile & small-tablet fixes
   Breakpoints used site-wide:
   - max 480px  : small phones
   - max 640px  : phones / hero CTAs
   - max 768px  : tablets portrait
   - max 1149px : mobile nav drawer
   - min 1150px : desktop nav
   ========================================================================== */

@media (max-width: 768px) {
  .container {
    width: calc(100% - 24px);
  }

  .hero {
    padding: 56px 0 72px;
  }

  .hero h1 {
    font-size: clamp(32px, 9vw, 44px);
  }

  .hero p {
    font-size: 16px;
  }

  .hero-bg::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.94) 45%, rgba(255, 255, 255, 0.55) 100%);
  }

  .section {
    padding: 48px 0;
  }

  .page-hero {
    padding: 40px 0;
  }

  .trust {
    padding: 28px 0;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .trust-item {
    justify-content: flex-start;
    text-align: left;
  }

  .badge {
    font-size: 12px;
    max-width: 100%;
    white-space: normal;
    line-height: 1.35;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .form-card,
  .quote-form-card {
    padding: 24px 18px !important;
  }

  .why-card,
  .card {
    padding: 24px 18px;
  }

  .services-overview {
    padding: 24px 18px;
  }

  .team-content {
    padding: 20px 16px;
  }

  .footer {
    padding: 40px 0;
  }

  .category-modal-overlay,
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .category-modal-content,
  .modal-content {
    padding: 20px 16px calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 90vh !important;
    max-height: 90dvh !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  #quote-modal-body,
  .quote-modal-steps,
  .quote-step.active,
  #quoteStep2 {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    flex: 1 !important;
    min-height: 0 !important;
    padding-bottom: 20px;
  }

  .category-modal-header h2 {
    font-size: 22px;
    padding-right: 36px;
  }

  /* Sticky buttons inside modals on mobile */
  .quote-branch-form button[type="submit"],
  #modal-login-panel #do-modal-login,
  #modal-signup-panel #do-modal-signup-send,
  #modal-signup-panel #do-modal-signup-verify {
    position: sticky;
    bottom: 0;
    z-index: 50;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
  }

  .toast-wrap {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .toast {
    width: 100%;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 16px;
    right: 16px;
  }

  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 480px) {
  .brand {
    font-size: 12px;
  }

  .brand .txt {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    max-width: none;
  }

  .hero-cta-buttons .btn {
    white-space: normal;
    text-align: center;
    line-height: 1.25;
  }

  .nav-drawer-phone {
    white-space: normal;
    line-height: 1.3;
    height: auto;
    min-height: 46px;
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 13px;
  }

  .services-page-grid {
    gap: 40px;
  }

  .cat-item {
    padding: 18px 12px;
  }

  .cat-item h3 {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  [data-theme="dark"] .hero-bg::after {
    background: linear-gradient(180deg, rgba(15, 23, 42, 1) 0%, rgba(15, 23, 42, 0.94) 45%, rgba(15, 23, 42, 0.55) 100%);
  }
}


/* FAQ dark-mode contrast fix */
[data-theme="dark"] #faq,
[data-theme="dark"] section#faq {
  background: var(--bg) !important;
  color: var(--fg) !important;
}

[data-theme="dark"] #faq h2,
[data-theme="dark"] #faq h3,
[data-theme="dark"] #faq h4,
[data-theme="dark"] #faq .section-header h2,
[data-theme="dark"] #faq .faq-question {
  color: var(--fg) !important;
}

[data-theme="dark"] #faq p,
[data-theme="dark"] #faq .faq-desc,
[data-theme="dark"] #faq .faq-answer,
[data-theme="dark"] #faq .faq-item .panel {
  color: var(--text-subtle) !important;
}

[data-theme="dark"] #faq .faq-item {
  background: var(--card) !important;
  border-color: var(--border) !important;
}

[data-theme="dark"] #faq .faq-item button {
  background: var(--card) !important;
  color: var(--fg) !important;
}

[data-theme="dark"] #faq .faq-item button:hover,
[data-theme="dark"] #faq .faq-question:hover {
  background: var(--surface-muted) !important;
}

[data-theme="dark"] #faq .faq-answer,
[data-theme="dark"] #faq .faq-item .panel {
  background: var(--surface-muted) !important;
  border-color: var(--border) !important;
}

/* Quote section alignment fix */
@media (min-width: 768px) {
  #quote>.container>.split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
  }

  #quote>.container>.split>div:first-child {
    min-width: 0;
    padding-right: 12px;
  }

  #quote>.container>.split>.quote-form-card {
    width: 100%;
    max-width: 520px;
    margin: 0 0 0 auto;
    box-sizing: border-box;
  }
}

@media (max-width: 767px) {
  #quote>.container>.split {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  #quote>.container>.split>.quote-form-card {
    width: 100%;
    max-width: none;
    margin: 0;
  }
}

/* FAQ vertical spacing fix */
#faq {
  padding-top: 32px !important;
  padding-bottom: 28px !important;
}

#faq>.container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#faq+#quote {
  padding-top: 36px !important;
}

@media (max-width: 767px) {
  #faq {
    padding-top: 24px !important;
    padding-bottom: 22px !important;
  }

  #faq+#quote {
    padding-top: 28px !important;
  }
}

/* Admin/staff dark-mode visibility audit fixes */
html[data-theme="dark"] .admin-shell,
html[data-theme="dark"] .auth-chrome {
  background: var(--bg) !important;
  color: var(--fg) !important;
}

html[data-theme="dark"] .admin-shell main,
html[data-theme="dark"] .admin-shell .section {
  background: transparent;
  color: var(--fg);
}

html[data-theme="dark"] .admin-shell .card,
html[data-theme="dark"] .admin-shell .form-card,
html[data-theme="dark"] .admin-shell .dash-card,
html[data-theme="dark"] .admin-shell .metric-card,
html[data-theme="dark"] .admin-shell .details-box,
html[data-theme="dark"] .admin-shell .chat-sidebar,
html[data-theme="dark"] .admin-shell .chat-main,
html[data-theme="dark"] .admin-shell .chat-input-area,
html[data-theme="dark"] .admin-shell .chat-user-item,
html[data-theme="dark"] .admin-shell .empty-chat,
html[data-theme="dark"] .auth-chrome .auth-card,
html[data-theme="dark"] .auth-chrome .auth-promo-card {
  background: var(--card) !important;
  color: var(--fg) !important;
  border-color: var(--border) !important;
}

html[data-theme="dark"] .admin-shell table,
html[data-theme="dark"] .admin-shell .table-scroll,
html[data-theme="dark"] .admin-shell .mini-table-wrap {
  background: var(--card) !important;
  color: var(--fg) !important;
  border-color: var(--border) !important;
}

html[data-theme="dark"] .admin-shell th {
  background: var(--surface-muted) !important;
  color: var(--fg) !important;
  border-color: var(--border) !important;
}

html[data-theme="dark"] .admin-shell td {
  color: var(--fg);
  border-color: var(--border) !important;
}

html[data-theme="dark"] .admin-shell input,
html[data-theme="dark"] .admin-shell textarea,
html[data-theme="dark"] .admin-shell select,
html[data-theme="dark"] .auth-chrome input,
html[data-theme="dark"] .auth-chrome textarea,
html[data-theme="dark"] .auth-chrome select {
  background: var(--input-bg, var(--card)) !important;
  color: var(--fg) !important;
  border-color: var(--border) !important;
}

html[data-theme="dark"] .admin-shell input::placeholder,
html[data-theme="dark"] .admin-shell textarea::placeholder,
html[data-theme="dark"] .auth-chrome input::placeholder,
html[data-theme="dark"] .auth-chrome textarea::placeholder {
  color: var(--muted) !important;
}

html[data-theme="dark"] .admin-shell .btn.outline,
html[data-theme="dark"] .admin-shell .btn.secondary,
html[data-theme="dark"] .admin-shell button.btn.outline,
html[data-theme="dark"] .auth-chrome .btn.outline {
  background: transparent !important;
  background-image: none !important;
  color: var(--fg) !important;
  -webkit-text-fill-color: var(--fg) !important;
  border-color: var(--border) !important;
}

html[data-theme="dark"] .admin-shell .btn.outline:hover,
html[data-theme="dark"] .admin-shell .btn.secondary:hover,
html[data-theme="dark"] .auth-chrome .btn.outline:hover {
  background: var(--surface-muted) !important;
  color: var(--fg) !important;
  border-color: var(--primary) !important;
}

html[data-theme="dark"] .admin-shell .muted,
html[data-theme="dark"] .admin-shell .metric-sub,
html[data-theme="dark"] .admin-shell small,
html[data-theme="dark"] .admin-shell .details-box p,
html[data-theme="dark"] .admin-shell .chat-user-name,
html[data-theme="dark"] .admin-shell .msg-time {
  color: var(--text-subtle) !important;
}

html[data-theme="dark"] .admin-shell .nav-links a,
html[data-theme="dark"] .admin-shell .nav-right,
html[data-theme="dark"] .admin-shell .admin-nav-drawer,
html[data-theme="dark"] .admin-shell .chat-sidebar-header,
html[data-theme="dark"] .admin-shell .chat-main-header {
  color: var(--fg) !important;
  border-color: var(--border) !important;
}

html[data-theme="dark"] .admin-shell .nav-links a:hover,
html[data-theme="dark"] .admin-shell .nav-links a.active,
html[data-theme="dark"] .admin-shell .chat-user-item:hover {
  background: var(--surface-muted) !important;
  color: var(--fg) !important;
}

html[data-theme="dark"] .admin-shell .msg-bubble,
html[data-theme="dark"] .admin-shell .chat-user-msg {
  background: var(--surface-muted) !important;
  color: var(--fg) !important;
  border-color: var(--border) !important;
}

/* Staff chat UI polish v2 */
.staff-chat-page {
  --sc-surface: var(--card, #fff);
  --sc-page: var(--bg, #f8fafc);
  --sc-text: var(--fg, #0f172a);
  --sc-muted: var(--text-subtle, #64748b);
  --sc-border: var(--border, #e2e8f0);
  max-width: 1360px !important;
  margin: 0 auto !important;
  padding: clamp(28px, 4vw, 54px) clamp(16px, 3vw, 42px) !important;
  color: var(--sc-text) !important
}

.staff-chat-page h1 {
  color: var(--sc-text) !important;
  font-size: clamp(1.7rem, 2.6vw, 2.35rem) !important;
  letter-spacing: -.04em !important
}

.staff-chat-page .chat-layout {
  display: grid !important;
  grid-template-columns: minmax(250px, 300px) minmax(0, 1fr) !important;
  height: min(720px, calc(100vh - 220px)) !important;
  min-height: 570px !important;
  max-height: none !important;
  background: var(--sc-surface) !important;
  border: 1px solid var(--sc-border) !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  box-shadow: 0 20px 55px rgba(15, 23, 42, .12) !important
}

.staff-chat-page .chat-sidebar {
  width: auto !important;
  min-width: 0 !important;
  background: var(--sc-page) !important;
  border-right: 1px solid var(--sc-border) !important
}

.staff-chat-page .chat-sidebar-header {
  min-height: 66px !important;
  padding: 18px 20px !important;
  color: var(--sc-text) !important;
  background: var(--sc-surface) !important;
  border-bottom: 1px solid var(--sc-border) !important;
  font-size: 13px !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important
}

.staff-chat-page .chat-sidebar-header button,
.staff-chat-page .chat-input-area button {
  border-radius: 12px !important;
  background: var(--primary, #ff7a18) !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(255, 122, 24, .2) !important
}

.staff-chat-page .chat-user-list {
  padding: 10px !important;
  overflow-y: auto !important
}

.staff-chat-page .chat-user-item {
  display: block !important;
  margin: 4px 0 !important;
  padding: 14px 15px !important;
  border: 1px solid transparent !important;
  border-left: 3px solid transparent !important;
  border-radius: 14px !important;
  color: var(--sc-text) !important;
  background: transparent !important
}

.staff-chat-page .chat-user-item:hover {
  background: rgba(255, 122, 24, .08) !important;
  border-color: rgba(255, 122, 24, .22) !important
}

.staff-chat-page .chat-user-item.active {
  background: rgba(255, 122, 24, .12) !important;
  border-color: rgba(255, 122, 24, .28) !important;
  border-left-color: var(--primary, #ff7a18) !important
}

.staff-chat-page .chat-user-item strong,
.staff-chat-page .chat-user-item span {
  color: inherit !important
}

.staff-chat-page .chat-user-item small,
.staff-chat-page .chat-user-item .muted {
  color: var(--sc-muted) !important
}

.staff-chat-page .chat-main {
  min-width: 0 !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  background: var(--sc-surface) !important
}

.staff-chat-page .chat-header {
  min-height: 78px !important;
  padding: 16px 24px !important;
  background: var(--sc-surface) !important;
  border-bottom: 1px solid var(--sc-border) !important;
  color: var(--sc-text) !important
}

.staff-chat-page .chat-header strong,
.staff-chat-page .chat-header span {
  color: inherit !important
}

.staff-chat-page .chat-messages {
  flex: 1 !important;
  min-height: 0 !important;
  padding: clamp(20px, 3vw, 34px) !important;
  background: var(--sc-page) !important;
  gap: 12px !important
}

.staff-chat-page .msg-row {
  display: flex !important;
  width: 100% !important;
  margin: 0 !important
}

.staff-chat-page .msg-row.admin,
.staff-chat-page .msg-row.staff {
  justify-content: flex-end !important
}

.staff-chat-page .msg-row.user {
  justify-content: flex-start !important
}

.staff-chat-page .msg-bubble {
  max-width: min(72%, 620px) !important;
  padding: 12px 15px !important;
  border-radius: 17px !important;
  border: 1px solid var(--sc-border) !important;
  background: var(--sc-surface) !important;
  color: var(--sc-text) !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .06) !important;
  line-height: 1.5 !important
}

.staff-chat-page .msg-row.admin .msg-bubble,
.staff-chat-page .msg-row.staff .msg-bubble {
  background: linear-gradient(135deg, var(--primary, #ff7a18), #ff9b3d) !important;
  border-color: transparent !important;
  color: #fff !important
}

.staff-chat-page .msg-row.user .msg-bubble {
  background: var(--sc-surface) !important;
  color: var(--sc-text) !important
}

.staff-chat-page .msg-time {
  display: block !important;
  margin-top: 5px !important;
  color: var(--sc-muted) !important;
  font-size: 11px !important
}

.staff-chat-page .msg-row.admin .msg-time,
.staff-chat-page .msg-row.staff .msg-time {
  color: rgba(255, 255, 255, .78) !important
}

.staff-chat-page .chat-input-area {
  display: flex !important;
  gap: 10px !important;
  padding: 16px 20px !important;
  background: var(--sc-surface) !important;
  border-top: 1px solid var(--sc-border) !important
}

.staff-chat-page .chat-input-area input {
  min-width: 0 !important;
  flex: 1 !important;
  height: 48px !important;
  padding: 0 15px !important;
  border: 1px solid var(--sc-border) !important;
  border-radius: 13px !important;
  background: var(--sc-page) !important;
  color: var(--sc-text) !important;
  outline: none !important
}

.staff-chat-page .chat-input-area input:focus {
  border-color: var(--primary, #ff7a18) !important;
  box-shadow: 0 0 0 4px rgba(255, 122, 24, .16) !important
}

.staff-chat-page .chat-input-area button {
  min-width: 92px !important;
  height: 48px !important;
  padding: 0 18px !important;
  border: 0 !important
}

.staff-chat-page .empty-chat {
  padding: 30px !important;
  color: var(--sc-muted) !important;
  text-align: center !important
}

@media(max-width:860px) {
  .staff-chat-page {
    padding: 24px 14px 40px !important
  }

  .staff-chat-page .chat-layout {
    grid-template-columns: 1fr !important;
    height: auto !important;
    min-height: 0 !important
  }

  .staff-chat-page .chat-sidebar {
    max-height: 280px !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--sc-border) !important
  }

  .staff-chat-page .chat-main {
    min-height: 560px !important
  }

  .staff-chat-page .msg-bubble {
    max-width: 88% !important
  }
}

/* Admin dashboard hero contrast fix */
html[data-theme="light"] .admin-shell .dash-hero h1,
html[data-theme="dark"] .admin-shell .dash-hero h1,
.admin-shell .dash-hero h1 {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

html[data-theme="light"] .admin-shell .dash-hero p,
html[data-theme="dark"] .admin-shell .dash-hero p,
.admin-shell .dash-hero p {
  color: rgba(241, 245, 249, 0.94) !important;
}

html[data-theme="light"] .admin-shell .dash-hero .dash-actions .btn,
html[data-theme="dark"] .admin-shell .dash-hero .dash-actions .btn,
.admin-shell .dash-hero .dash-actions .btn {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.38) !important;
}



/* Public Live Chat — repaired widget styles */
.chat-widget {
  position: relative;
  font-family: inherit;
}

.chat-toggle-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 4px solid rgba(255, 255, 255, .96);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #ff6a00 0%, #ff9a3d 100%);
  box-shadow: 0 14px 32px rgba(255, 106, 0, .34), 0 5px 14px rgba(15, 23, 42, .18);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.chat-toggle-btn:hover,
.chat-toggle-btn:focus-visible {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 18px 38px rgba(255, 106, 0, .42), 0 7px 16px rgba(15, 23, 42, .2);
  outline: none;
}

.chat-badge {
  position: absolute;
  top: -5px;
  right: -4px;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: #dc2626;
  font-size: 11px;
  font-weight: 800;
  line-height: 17px;
  text-align: center;
}

.chat-window {
  position: absolute;
  right: 0;
  bottom: 74px;
  display: flex;
  flex-direction: column;
  width: min(370px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 210px));
  min-height: 360px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .32);
  border-radius: 20px;
  background: var(--card, #fff);
  color: var(--fg, #0f172a);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .24), 0 4px 18px rgba(15, 23, 42, .12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(.97);
  transform-origin: bottom right;
  transition: opacity .2s ease, transform .2s ease;
}

.chat-window.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 16px;
  color: #fff;
  background: linear-gradient(135deg, #172033 0%, #26344f 100%);
}

.chat-header strong,
.chat-header small {
  display: block;
}

.chat-header strong {
  font-size: 15px;
  letter-spacing: .01em;
}

.chat-header small {
  margin-top: 4px;
  color: rgba(226, 232, 240, .76);
  font-size: 11px;
}

.chat-close-btn {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 10px;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.chat-close-btn:hover,
.chat-close-btn:focus-visible {
  background: rgba(255, 255, 255, .18);
  outline: none;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px 14px;
  background: var(--bg, #f8fafc);
}

.live-chat-welcome,
.live-chat-login-state {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0 auto 16px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 14px;
  color: var(--muted, #64748b);
  background: rgba(148, 163, 184, .08);
  font-size: 12px;
  line-height: 1.45;
}

.live-chat-welcome strong,
.live-chat-login-state strong {
  color: var(--fg, #0f172a);
  font-size: 13px;
}

.live-chat-login-state {
  align-items: center;
  min-height: 154px;
  justify-content: center;
  text-align: center;
}

.chat-login-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 7px;
  padding: 0 15px;
  border-radius: 10px;
  color: #fff !important;
  background: linear-gradient(135deg, #ff6a00, #ff9136);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.chat-message-row {
  display: flex;
  margin: 8px 0;
}

.chat-message-row.user {
  justify-content: flex-end;
}

.chat-message-row.admin {
  justify-content: flex-start;
}

.chat-message-bubble {
  max-width: 82%;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 15px 15px 15px 5px;
  color: var(--fg, #0f172a);
  background: var(--card, #fff);
  font-size: 13px;
  line-height: 1.45;
  box-shadow: 0 3px 10px rgba(15, 23, 42, .06);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.chat-message-row.user .chat-message-bubble {
  border-color: rgba(255, 106, 0, .3);
  border-radius: 15px 15px 5px 15px;
  color: #fff;
  background: linear-gradient(135deg, #ff6a00, #ff9136);
}

.chat-message-bubble small {
  display: block;
  margin-top: 5px;
  opacity: .68;
  font-size: 10px;
}

.chat-input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(148, 163, 184, .25);
  background: var(--card, #fff);
}

.chat-input-wrapper[hidden] {
  display: none;
}

.chat-input-wrapper input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--border, #cbd5e1);
  border-radius: 12px;
  color: var(--fg, #0f172a);
  background: var(--input, #fff);
  font: inherit;
  font-size: 13px;
}

.chat-input-wrapper input:focus {
  border-color: #ff6a00;
  outline: 3px solid rgba(255, 106, 0, .14);
}

.chat-input-wrapper button {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: #ff6a00;
  cursor: pointer;
}

.chat-input-wrapper button:hover {
  background: #e85d00;
}

[data-theme="dark"] .chat-window {
  border-color: #334155;
  background: #111b2e;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .48);
}

[data-theme="dark"] .chat-messages {
  background: #0b1322;
}

[data-theme="dark"] .live-chat-welcome,
[data-theme="dark"] .live-chat-login-state {
  border-color: #334155;
  background: #162238;
  color: #94a3b8;
}

[data-theme="dark"] .live-chat-welcome strong,
[data-theme="dark"] .live-chat-login-state strong {
  color: #f8fafc;
}

[data-theme="dark"] .chat-message-bubble {
  border-color: #334155;
  color: #e2e8f0;
  background: #162238;
}

[data-theme="dark"] .chat-input-wrapper {
  border-color: #334155;
  background: #111b2e;
}

[data-theme="dark"] .chat-input-wrapper input {
  border-color: #475569;
  color: #f8fafc;
  background: #0e1729;
}

@media (max-width:768px) {
  .chat-toggle-btn {
    width: 54px;
    height: 54px;
  }

  .chat-window {
    right: 0;
    bottom: 66px;
    height: min(560px, calc(100vh - 180px));
    min-height: 340px;
  }
}

@media (max-width:480px) {
  .chat-window {
    width: calc(100vw - 24px);
    right: -2px;
    border-radius: 17px;
  }
}




/* Admin Live Chat UI repair — scoped to admin/chats.php */
.admin-shell .chat-layout {
  display: grid !important;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr) !important;
  width: 100% !important;
  height: calc(100vh - 178px) !important;
  min-height: 560px !important;
  max-height: none !important;
  overflow: hidden !important;
  border: 1px solid var(--border, #dbe3ee) !important;
  border-radius: 16px !important;
  background: var(--card, #fff) !important;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .10) !important;
}

.admin-shell .chat-layout .chat-sidebar {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  border-right: 1px solid var(--border, #dbe3ee) !important;
  background: var(--card, #fff) !important;
}

.admin-shell .chat-layout .chat-sidebar-header,
.admin-shell .chat-layout .chat-main-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  min-height: 68px !important;
  padding: 16px 18px !important;
  border-bottom: 1px solid var(--border, #dbe3ee) !important;
  color: var(--fg, #0f172a) !important;
  background: var(--card, #fff) !important;
}

.admin-shell .chat-layout .chat-sidebar-header h3,
.admin-shell .chat-layout .chat-main-header h2,
.admin-shell .chat-layout .chat-main-header h3,
.admin-shell .chat-layout .chat-main-header strong {
  margin: 0 !important;
  color: var(--fg, #0f172a) !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: -.01em !important;
}

.admin-shell .chat-layout .chat-sidebar-header .btn,
.admin-shell .chat-layout .chat-sidebar-header button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 34px !important;
  padding: 0 11px !important;
  border: 0 !important;
  border-radius: 9px !important;
  color: #fff !important;
  background: linear-gradient(135deg, #ff6a00, #ff963f) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
}

.admin-shell .chat-layout .chat-user-list {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  padding: 8px !important;
  background: var(--card, #fff) !important;
}

.admin-shell .chat-layout .chat-user-item,
.admin-shell .chat-layout .user-item {
  display: flex !important;
  align-items: center !important;
  gap: 11px !important;
  width: 100% !important;
  min-height: 68px !important;
  margin: 3px 0 !important;
  padding: 11px 12px !important;
  border: 1px solid transparent !important;
  border-radius: 11px !important;
  color: var(--fg, #0f172a) !important;
  background: transparent !important;
  text-align: left !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: background .16s ease, border-color .16s ease, transform .16s ease !important;
}

.admin-shell .chat-layout .chat-user-item:hover,
.admin-shell .chat-layout .user-item:hover {
  border-color: rgba(255, 106, 0, .24) !important;
  background: rgba(255, 106, 0, .08) !important;
  transform: translateX(2px) !important;
}

.admin-shell .chat-layout .chat-user-item.active,
.admin-shell .chat-layout .user-item.active {
  border-color: rgba(255, 106, 0, .28) !important;
  background: rgba(255, 106, 0, .12) !important;
}

.admin-shell .chat-layout .chat-user-name {
  display: block !important;
  overflow: hidden !important;
  color: var(--fg, #0f172a) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.admin-shell .chat-layout .chat-user-msg {
  display: block !important;
  overflow: hidden !important;
  margin-top: 4px !important;
  color: var(--muted, #64748b) !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.admin-shell .chat-layout .badge-unread {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 20px !important;
  height: 20px !important;
  padding: 0 6px !important;
  border-radius: 999px !important;
  color: #fff !important;
  background: #ef4444 !important;
  font-size: 10px !important;
  font-weight: 800 !important;
}

.admin-shell .chat-layout .chat-main {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  background: var(--bg, #f8fafc) !important;
}

.admin-shell .chat-layout .chat-main-header {
  flex: 0 0 auto !important;
  background: var(--card, #fff) !important;
}

.admin-shell .chat-layout .chat-messages {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  padding: 24px !important;
  background: var(--bg, #f8fafc) !important;
}

.admin-shell .chat-layout .empty-chat {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  height: 100% !important;
  min-height: 300px !important;
  padding: 32px !important;
  color: var(--muted, #64748b) !important;
  text-align: center !important;
}

.admin-shell .chat-layout .empty-chat svg,
.admin-shell .chat-layout .empty-chat i {
  color: #94a3b8 !important;
  opacity: .9 !important;
}

.admin-shell .chat-layout .empty-chat strong,
.admin-shell .chat-layout .empty-chat h3 {
  margin: 0 !important;
  color: var(--fg, #0f172a) !important;
  font-size: 16px !important;
}

.admin-shell .chat-layout .empty-chat p {
  max-width: 340px !important;
  margin: 0 !important;
  color: var(--muted, #64748b) !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

.admin-shell .chat-layout .msg-bubble {
  max-width: min(620px, 78%) !important;
  padding: 11px 14px !important;
  border: 1px solid var(--border, #dbe3ee) !important;
  border-radius: 14px !important;
  color: var(--fg, #0f172a) !important;
  background: var(--card, #fff) !important;
  box-shadow: 0 5px 16px rgba(15, 23, 42, .06) !important;
  line-height: 1.45 !important;
}

.admin-shell .chat-layout .msg-time {
  display: block !important;
  margin-top: 5px !important;
  color: var(--muted, #64748b) !important;
  font-size: 10px !important;
}

.admin-shell .chat-layout .chat-input-area {
  display: flex !important;
  flex: 0 0 auto !important;
  gap: 10px !important;
  padding: 14px 18px !important;
  border-top: 1px solid var(--border, #dbe3ee) !important;
  background: var(--card, #fff) !important;
}

.admin-shell .chat-layout .chat-input-area input,
.admin-shell .chat-layout .chat-input-area textarea {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  border: 1px solid var(--border, #cbd5e1) !important;
  border-radius: 10px !important;
  color: var(--fg, #0f172a) !important;
  background: var(--input, #fff) !important;
}

.admin-shell .chat-layout .chat-input-area button {
  min-width: 84px !important;
  border: 0 !important;
  border-radius: 10px !important;
  color: #fff !important;
  background: #ff6a00 !important;
  font-weight: 800 !important;
}

[data-theme="dark"] .admin-shell .chat-layout {
  border-color: #334155 !important;
  background: #111b2e !important;
  box-shadow: 0 22px 55px rgba(0, 0, 0, .32) !important;
}

[data-theme="dark"] .admin-shell .chat-layout .chat-sidebar,
[data-theme="dark"] .admin-shell .chat-layout .chat-user-list {
  border-color: #334155 !important;
  background: #111b2e !important;
}

[data-theme="dark"] .admin-shell .chat-layout .chat-sidebar-header,
[data-theme="dark"] .admin-shell .chat-layout .chat-main-header,
[data-theme="dark"] .admin-shell .chat-layout .chat-input-area {
  border-color: #334155 !important;
  color: #f8fafc !important;
  background: #162238 !important;
}

[data-theme="dark"] .admin-shell .chat-layout .chat-sidebar-header h3,
[data-theme="dark"] .admin-shell .chat-layout .chat-main-header h2,
[data-theme="dark"] .admin-shell .chat-layout .chat-main-header h3,
[data-theme="dark"] .admin-shell .chat-layout .chat-main-header strong,
[data-theme="dark"] .admin-shell .chat-layout .chat-user-name,
[data-theme="dark"] .admin-shell .chat-layout .empty-chat strong,
[data-theme="dark"] .admin-shell .chat-layout .empty-chat h3 {
  color: #f8fafc !important;
}

[data-theme="dark"] .admin-shell .chat-layout .chat-user-msg,
[data-theme="dark"] .admin-shell .chat-layout .empty-chat,
[data-theme="dark"] .admin-shell .chat-layout .empty-chat p,
[data-theme="dark"] .admin-shell .chat-layout .msg-time {
  color: #94a3b8 !important;
}

[data-theme="dark"] .admin-shell .chat-layout .chat-main,
[data-theme="dark"] .admin-shell .chat-layout .chat-messages {
  background: #0b1322 !important;
}

[data-theme="dark"] .admin-shell .chat-layout .chat-user-item:hover,
[data-theme="dark"] .admin-shell .chat-layout .user-item:hover {
  background: rgba(255, 106, 0, .13) !important;
}

[data-theme="dark"] .admin-shell .chat-layout .chat-user-item.active,
[data-theme="dark"] .admin-shell .chat-layout .user-item.active {
  border-color: rgba(255, 154, 61, .42) !important;
  background: rgba(255, 106, 0, .18) !important;
}

[data-theme="dark"] .admin-shell .chat-layout .msg-bubble {
  border-color: #334155 !important;
  color: #e2e8f0 !important;
  background: #162238 !important;
}

[data-theme="dark"] .admin-shell .chat-layout .chat-input-area input,
[data-theme="dark"] .admin-shell .chat-layout .chat-input-area textarea {
  border-color: #475569 !important;
  color: #f8fafc !important;
  background: #0e1729 !important;
}

.admin-shell #newChatModal>div {
  border: 1px solid var(--border, #dbe3ee) !important;
  background: var(--card, #fff) !important;
  color: var(--fg, #0f172a) !important;
}

[data-theme="dark"] .admin-shell #newChatModal>div {
  border-color: #334155 !important;
  background: #162238 !important;
  color: #f8fafc !important;
}

@media (max-width: 900px) {
  .admin-shell .chat-layout {
    grid-template-columns: minmax(220px, 34%) minmax(0, 1fr) !important;
  }
}

@media (max-width: 680px) {
  .admin-shell .chat-layout {
    grid-template-columns: 1fr !important;
    height: auto !important;
    min-height: 650px !important;
  }

  .admin-shell .chat-layout .chat-sidebar {
    min-height: 230px !important;
    max-height: 280px !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--border, #dbe3ee) !important;
  }

  .admin-shell .chat-layout .chat-main {
    min-height: 420px !important;
  }
}




/* Admin Live Chat page spacing and title alignment */
.admin-shell main:has(.chat-layout) {
  padding-top: 24px !important;
  padding-bottom: 24px !important;
}

.admin-shell main:has(.chat-layout) .section {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.admin-shell main:has(.chat-layout) .container {
  width: 100% !important;
  max-width: none !important;
}

.admin-shell main:has(.chat-layout) h1,
.admin-shell main:has(.chat-layout) h2.page-title,
.admin-shell main:has(.chat-layout) .page-title {
  margin: 0 0 18px !important;
  color: var(--fg, #0f172a) !important;
  font-size: clamp(22px, 2.2vw, 30px) !important;
  font-weight: 850 !important;
}

[data-theme="dark"] .admin-shell main:has(.chat-layout) h1,
[data-theme="dark"] .admin-shell main:has(.chat-layout) h2.page-title,
[data-theme="dark"] .admin-shell main:has(.chat-layout) .page-title {
  color: #f8fafc !important;
}




/* Admin Live Chat — New Chat modal repair */
.admin-shell #newChatModal {
  padding: 24px !important;
  background: rgba(2, 6, 23, .72) !important;
  backdrop-filter: blur(8px) !important;
}

.admin-shell #newChatModal>div {
  width: min(92vw, 480px) !important;
  max-width: 480px !important;
  max-height: min(680px, calc(100vh - 48px)) !important;
  overflow: hidden !important;
  padding: 26px !important;
  border: 1px solid var(--border, #dbe3ee) !important;
  border-radius: 18px !important;
  color: var(--fg, #0f172a) !important;
  background: var(--card, #fff) !important;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .28) !important;
}

.admin-shell #newChatModal h2 {
  margin: 0 !important;
  color: var(--fg, #0f172a) !important;
  font-size: 21px !important;
  line-height: 1.2 !important;
  letter-spacing: -.02em !important;
}

.admin-shell #newChatModal p {
  margin: 10px 0 17px !important;
  color: var(--muted, #64748b) !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

.admin-shell #newChatModal #userSearchInput {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: 42px !important;
  margin: 0 0 12px !important;
  padding: 0 13px !important;
  border: 1px solid var(--border, #cbd5e1) !important;
  border-radius: 10px !important;
  color: var(--fg, #0f172a) !important;
  background: var(--input, #fff) !important;
  font: inherit !important;
  font-size: 13px !important;
  outline: none !important;
}

.admin-shell #newChatModal #userSearchInput::placeholder {
  color: var(--muted, #64748b) !important;
  opacity: .9 !important;
}

.admin-shell #newChatModal #userSearchInput:focus {
  border-color: #ff6a00 !important;
  box-shadow: 0 0 0 3px rgba(255, 106, 0, .14) !important;
}

.admin-shell #newChatModal #userList {
  max-height: min(330px, calc(100vh - 270px)) !important;
  overflow-y: auto !important;
  margin: 0 !important;
  padding: 4px !important;
  border: 1px solid var(--border, #dbe3ee) !important;
  border-radius: 12px !important;
  background: var(--bg, #f8fafc) !important;
  scrollbar-color: #94a3b8 transparent !important;
}

.admin-shell #newChatModal #userList .user-item {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  min-height: 64px !important;
  margin: 0 !important;
  padding: 12px 13px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--border, #e2e8f0) !important;
  border-radius: 8px !important;
  color: var(--fg, #0f172a) !important;
  background: transparent !important;
  text-align: left !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: background .16s ease, color .16s ease !important;
}

.admin-shell #newChatModal #userList .user-item:last-child {
  border-bottom: 0 !important;
}

.admin-shell #newChatModal #userList .user-item:hover,
.admin-shell #newChatModal #userList .user-item:focus-visible {
  color: var(--fg, #0f172a) !important;
  background: rgba(255, 106, 0, .10) !important;
  outline: none !important;
}

.admin-shell #newChatModal #userList .user-item strong,
.admin-shell #newChatModal #userList .user-item b {
  display: block !important;
  color: var(--fg, #0f172a) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
}

.admin-shell #newChatModal #userList .user-item small,
.admin-shell #newChatModal #userList .user-item span,
.admin-shell #newChatModal #userList .user-item div {
  color: var(--muted, #64748b) !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
}

.admin-shell #newChatModal button[onclick*="newChatModal"],
.admin-shell #newChatModal button[onclick*="close"],
.admin-shell #newChatModal button[type="button"] {
  min-width: 74px !important;
  min-height: 36px !important;
  margin-top: 16px !important;
  padding: 0 14px !important;
  border: 1px solid var(--border, #cbd5e1) !important;
  border-radius: 9px !important;
  color: var(--fg, #334155) !important;
  background: var(--surface, #e2e8f0) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
}

.admin-shell #newChatModal button[onclick*="newChatModal"]:hover,
.admin-shell #newChatModal button[onclick*="close"]:hover,
.admin-shell #newChatModal button[type="button"]:hover {
  border-color: #ff6a00 !important;
  color: #c2410c !important;
  background: rgba(255, 106, 0, .12) !important;
}

[data-theme="dark"] .admin-shell #newChatModal>div {
  border-color: #334155 !important;
  color: #f8fafc !important;
  background: #162238 !important;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .50) !important;
}

[data-theme="dark"] .admin-shell #newChatModal h2,
[data-theme="dark"] .admin-shell #newChatModal #userList .user-item strong,
[data-theme="dark"] .admin-shell #newChatModal #userList .user-item b {
  color: #f8fafc !important;
}

[data-theme="dark"] .admin-shell #newChatModal p,
[data-theme="dark"] .admin-shell #newChatModal #userList .user-item small,
[data-theme="dark"] .admin-shell #newChatModal #userList .user-item span,
[data-theme="dark"] .admin-shell #newChatModal #userList .user-item div {
  color: #94a3b8 !important;
}

[data-theme="dark"] .admin-shell #newChatModal #userSearchInput {
  border-color: #475569 !important;
  color: #f8fafc !important;
  background: #0e1729 !important;
}

[data-theme="dark"] .admin-shell #newChatModal #userList {
  border-color: #334155 !important;
  background: #0b1322 !important;
}

[data-theme="dark"] .admin-shell #newChatModal #userList .user-item {
  border-color: #334155 !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .admin-shell #newChatModal #userList .user-item:hover,
[data-theme="dark"] .admin-shell #newChatModal #userList .user-item:focus-visible {
  background: rgba(255, 106, 0, .16) !important;
}

[data-theme="dark"] .admin-shell #newChatModal button[onclick*="newChatModal"],
[data-theme="dark"] .admin-shell #newChatModal button[onclick*="close"],
[data-theme="dark"] .admin-shell #newChatModal button[type="button"] {
  border-color: #475569 !important;
  color: #e2e8f0 !important;
  background: #24324a !important;
}

@media (max-width: 560px) {
  .admin-shell #newChatModal {
    padding: 14px !important;
  }

  .admin-shell #newChatModal>div {
    padding: 20px !important;
    border-radius: 15px !important;
  }
}




/* Clean replacement for the admin Live Chat New Chat modal */
.admin-shell .admin-new-chat-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 100000 !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px !important;
  background: rgba(2, 6, 23, .76) !important;
  backdrop-filter: blur(8px) !important;
}

.admin-shell .admin-new-chat-card {
  display: flex !important;
  flex-direction: column !important;
  width: min(92vw, 490px) !important;
  max-height: min(700px, calc(100vh - 48px)) !important;
  overflow: hidden !important;
  padding: 26px !important;
  border: 1px solid #dbe3ee !important;
  border-radius: 18px !important;
  color: #0f172a !important;
  background: #ffffff !important;
  box-shadow: 0 30px 90px rgba(15, 23, 42, .32) !important;
}

.admin-shell .admin-new-chat-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 18px !important;
}

.admin-shell .admin-new-chat-eyebrow {
  display: block !important;
  margin-bottom: 7px !important;
  color: #ff6a00 !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  letter-spacing: .14em !important;
}

.admin-shell .admin-new-chat-card h3 {
  margin: 0 !important;
  color: #0f172a !important;
  font-size: 22px !important;
  font-weight: 850 !important;
  line-height: 1.15 !important;
}

.admin-shell .admin-new-chat-close {
  display: grid !important;
  place-items: center !important;
  flex: 0 0 auto !important;
  width: 34px !important;
  height: 34px !important;
  margin: -4px -5px 0 0 !important;
  padding: 0 !important;
  border: 1px solid #dbe3ee !important;
  border-radius: 10px !important;
  color: #64748b !important;
  background: #f1f5f9 !important;
  font-size: 23px !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

.admin-shell .admin-new-chat-close:hover {
  border-color: #ff6a00 !important;
  color: #c2410c !important;
  background: #fff7ed !important;
}

.admin-shell .admin-new-chat-description {
  margin: 12px 0 20px !important;
  color: #64748b !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

.admin-shell .admin-new-chat-label {
  display: block !important;
  margin-bottom: 7px !important;
  color: #334155 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

.admin-shell .admin-new-chat-search {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: 44px !important;
  margin: 0 0 12px !important;
  padding: 0 13px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  color: #0f172a !important;
  background: #f8fafc !important;
  font: inherit !important;
  font-size: 13px !important;
}

.admin-shell .admin-new-chat-search:focus {
  border-color: #ff6a00 !important;
  outline: 3px solid rgba(255, 106, 0, .14) !important;
}

.admin-shell .admin-new-chat-list {
  flex: 1 1 auto !important;
  min-height: 120px !important;
  max-height: min(350px, calc(100vh - 290px)) !important;
  overflow-y: auto !important;
  padding: 4px !important;
  border: 1px solid #dbe3ee !important;
  border-radius: 12px !important;
  background: #f8fafc !important;
}

.admin-shell .admin-new-chat-user {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: 68px !important;
  margin: 0 !important;
  padding: 11px 12px !important;
  border-bottom: 1px solid #e2e8f0 !important;
  border-radius: 9px !important;
  color: #0f172a !important;
  background: transparent !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

.admin-shell .admin-new-chat-user:last-child {
  border-bottom: 0 !important;
}

.admin-shell .admin-new-chat-user:hover {
  background: #fff7ed !important;
  transform: translateX(2px) !important;
}

.admin-shell .admin-new-chat-avatar {
  display: grid !important;
  place-items: center !important;
  flex: 0 0 36px !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 11px !important;
  color: #fff !important;
  background: linear-gradient(135deg, #ff6a00, #ff9a3d) !important;
  font-size: 14px !important;
  font-weight: 900 !important;
}

.admin-shell .admin-new-chat-user-copy {
  display: block !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

.admin-shell .admin-new-chat-user-copy strong {
  display: block !important;
  overflow: hidden !important;
  color: #0f172a !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.admin-shell .admin-new-chat-user-copy small {
  display: block !important;
  overflow: hidden !important;
  margin-top: 4px !important;
  color: #64748b !important;
  font-size: 11px !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.admin-shell .admin-new-chat-arrow {
  flex: 0 0 auto !important;
  color: #94a3b8 !important;
  font-size: 18px !important;
}

.admin-shell .admin-new-chat-empty {
  padding: 28px 16px !important;
  color: #64748b !important;
  font-size: 13px !important;
  text-align: center !important;
}

.admin-shell .admin-new-chat-footer {
  display: flex !important;
  justify-content: flex-end !important;
  padding-top: 16px !important;
}

.admin-shell .admin-new-chat-cancel {
  min-height: 38px !important;
  padding: 0 16px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  color: #334155 !important;
  background: #e2e8f0 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
}

.admin-shell .admin-new-chat-cancel:hover {
  border-color: #ff6a00 !important;
  color: #c2410c !important;
  background: #fff7ed !important;
}

[data-theme="dark"] .admin-shell .admin-new-chat-card {
  border-color: #334155 !important;
  color: #f8fafc !important;
  background: #162238 !important;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .54) !important;
}

[data-theme="dark"] .admin-shell .admin-new-chat-card h3,
[data-theme="dark"] .admin-shell .admin-new-chat-user-copy strong {
  color: #f8fafc !important;
}

[data-theme="dark"] .admin-shell .admin-new-chat-description,
[data-theme="dark"] .admin-shell .admin-new-chat-user-copy small,
[data-theme="dark"] .admin-shell .admin-new-chat-empty {
  color: #94a3b8 !important;
}

[data-theme="dark"] .admin-shell .admin-new-chat-label {
  color: #cbd5e1 !important;
}

[data-theme="dark"] .admin-shell .admin-new-chat-close {
  border-color: #475569 !important;
  color: #cbd5e1 !important;
  background: #24324a !important;
}

[data-theme="dark"] .admin-shell .admin-new-chat-close:hover {
  color: #fdba74 !important;
  background: #3a2a25 !important;
}

[data-theme="dark"] .admin-shell .admin-new-chat-search {
  border-color: #475569 !important;
  color: #f8fafc !important;
  background: #0e1729 !important;
}

[data-theme="dark"] .admin-shell .admin-new-chat-list {
  border-color: #334155 !important;
  background: #0b1322 !important;
}

[data-theme="dark"] .admin-shell .admin-new-chat-user {
  border-color: #334155 !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .admin-shell .admin-new-chat-user:hover {
  background: rgba(255, 106, 0, .15) !important;
}

[data-theme="dark"] .admin-shell .admin-new-chat-cancel {
  border-color: #475569 !important;
  color: #e2e8f0 !important;
  background: #24324a !important;
}

@media (max-width:560px) {
  .admin-shell .admin-new-chat-modal {
    padding: 14px !important;
  }

  .admin-shell .admin-new-chat-card {
    padding: 20px !important;
    border-radius: 15px !important;
  }
}


/* Floating contact controls grouped */
.floating-actions-container {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  pointer-events: none;
}

.floating-actions-container>* {
  pointer-events: auto;
}

@media (max-width: 768px) {
  .floating-actions-container {
    right: 16px;
    bottom: 20px;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .floating-actions-container {
    right: 12px;
    bottom: 16px;
  }
}

/* Hide floating buttons ONLY when inside an iframe to prevent duplicates */
body.is-modal-frame .floating-actions-container {
  display: none !important;
}

.call-float,
.whatsapp-float {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
  transition: transform .2s ease, box-shadow .2s ease;
}

.call-float {
  color: #fff;
  background: var(--primary, #ff6b00);
}

.whatsapp-float {
  color: #fff;
  background: #25d366;
}

.call-float:hover,
.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .28);
}

.call-float svg,
.whatsapp-float svg {
  width: 28px;
  height: 28px;
  display: block;
}

@media (max-width: 768px) {

  .call-float,
  .whatsapp-float {
    width: 54px;
    height: 54px;
  }

  .call-float svg,
  .whatsapp-float svg {
    width: 25px;
    height: 25px;
  }
}


/* Admin New Chat modal state hardening */
.admin-shell #newChatModal.admin-new-chat-modal[hidden] {
  display: none !important;
}

.admin-shell #newChatModal.admin-new-chat-modal.is-open {
  position: fixed !important;
  inset: 0 !important;
  z-index: 100000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.admin-shell #newChatModal.admin-new-chat-modal.is-open .admin-new-chat-card {
  position: relative !important;
  z-index: 1 !important;
}


/* Admin New Chat modal: body-level fallback (modal is intentionally moved under body) */
#newChatModal,
#newChatModal * {
  box-sizing: border-box;
}

#newChatModal.admin-new-chat-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 100000 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px !important;
  overflow: auto !important;
  background: rgba(2, 6, 23, .76) !important;
}

#newChatModal.admin-new-chat-modal[hidden] {
  display: none !important;
}

#newChatModal.admin-new-chat-modal.is-open {
  display: flex !important;
}

#newChatModal .admin-new-chat-card {
  position: relative !important;
  width: min(100%, 520px) !important;
  max-height: min(760px, calc(100vh - 48px)) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  padding: 22px !important;
  border: 1px solid #dbe3ee !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  color: #172033 !important;
  box-shadow: 0 30px 90px rgba(2, 6, 23, .42) !important;
}

#newChatModal .admin-new-chat-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 16px !important;
}

#newChatModal .admin-new-chat-eyebrow {
  display: block !important;
  margin: 0 0 5px !important;
  color: #f05a00 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: .12em !important;
}

#newChatModal .admin-new-chat-card h3 {
  margin: 0 !important;
  color: #172033 !important;
  font-size: 22px !important;
  line-height: 1.2 !important;
}

#newChatModal .admin-new-chat-close {
  width: 34px !important;
  height: 34px !important;
  flex: 0 0 auto !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  background: #f8fafc !important;
  color: #475569 !important;
  font-size: 23px !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

#newChatModal .admin-new-chat-description {
  margin: 12px 0 20px !important;
  color: #64748b !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

#newChatModal .admin-new-chat-label {
  display: block !important;
  margin: 0 0 7px !important;
  color: #334155 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
}

#newChatModal .admin-new-chat-search {
  display: block !important;
  width: 100% !important;
  height: 44px !important;
  margin: 0 0 12px !important;
  padding: 0 13px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  outline: none !important;
  background: #ffffff !important;
  color: #172033 !important;
  font-size: 13px !important;
}

#newChatModal .admin-new-chat-search:focus {
  border-color: #ff6a00 !important;
  box-shadow: 0 0 0 3px rgba(255, 106, 0, .14) !important;
}

#newChatModal .admin-new-chat-list {
  min-height: 120px !important;
  max-height: min(350px, calc(100vh - 290px)) !important;
  overflow-y: auto !important;
  padding: 4px !important;
  border: 1px solid #dbe3ee !important;
  border-radius: 12px !important;
  background: #f8fafc !important;
}

#newChatModal .admin-new-chat-user {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  min-height: 68px !important;
  margin: 0 !important;
  padding: 11px 12px !important;
  border-bottom: 1px solid #e2e8f0 !important;
  border-radius: 9px !important;
  color: #172033 !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

#newChatModal .admin-new-chat-user:last-child {
  border-bottom: 0 !important;
}

#newChatModal .admin-new-chat-user:hover {
  background: #fff7ed !important;
}

#newChatModal .admin-new-chat-user[hidden] {
  display: none !important;
}

#newChatModal .admin-new-chat-avatar {
  display: grid !important;
  width: 36px !important;
  height: 36px !important;
  flex: 0 0 36px !important;
  place-items: center !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #ff8a3d, #f05a00) !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

#newChatModal .admin-new-chat-user-copy {
  display: grid !important;
  min-width: 0 !important;
  gap: 3px !important;
}

#newChatModal .admin-new-chat-user-copy strong {
  overflow: hidden !important;
  color: #172033 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

#newChatModal .admin-new-chat-user-copy small {
  overflow: hidden !important;
  color: #64748b !important;
  font-size: 12px !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

#newChatModal .admin-new-chat-arrow {
  margin-left: auto !important;
  color: #f05a00 !important;
  font-size: 18px !important;
}

#newChatModal .admin-new-chat-empty {
  padding: 28px 14px !important;
  color: #64748b !important;
  text-align: center !important;
}

#newChatModal .admin-new-chat-footer {
  display: flex !important;
  justify-content: flex-end !important;
  padding-top: 16px !important;
}

#newChatModal .admin-new-chat-cancel {
  min-height: 38px !important;
  padding: 0 16px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  background: #e2e8f0 !important;
  color: #334155 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
}

#newChatModal .admin-new-chat-cancel:hover,
#newChatModal .admin-new-chat-close:hover {
  border-color: #ff6a00 !important;
  color: #c2410c !important;
  background: #fff7ed !important;
}

html[data-theme="dark"] #newChatModal .admin-new-chat-card {
  border-color: #334155 !important;
  background: #162238 !important;
  color: #f8fafc !important;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .54) !important;
}

html[data-theme="dark"] #newChatModal .admin-new-chat-card h3,
html[data-theme="dark"] #newChatModal .admin-new-chat-user-copy strong {
  color: #f8fafc !important;
}

html[data-theme="dark"] #newChatModal .admin-new-chat-description,
html[data-theme="dark"] #newChatModal .admin-new-chat-user-copy small,
html[data-theme="dark"] #newChatModal .admin-new-chat-empty {
  color: #94a3b8 !important;
}

html[data-theme="dark"] #newChatModal .admin-new-chat-label {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] #newChatModal .admin-new-chat-search {
  border-color: #475569 !important;
  background: #24324a !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] #newChatModal .admin-new-chat-list {
  border-color: #334155 !important;
  background: #0f1b2d !important;
}

html[data-theme="dark"] #newChatModal .admin-new-chat-user {
  border-color: #334155 !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] #newChatModal .admin-new-chat-user:hover {
  background: rgba(255, 106, 0, .15) !important;
}

html[data-theme="dark"] #newChatModal .admin-new-chat-close,
html[data-theme="dark"] #newChatModal .admin-new-chat-cancel {
  border-color: #475569 !important;
  background: #24324a !important;
  color: #e2e8f0 !important;
}

@media (max-width: 560px) {
  #newChatModal.admin-new-chat-modal {
    padding: 14px !important;
  }

  #newChatModal .admin-new-chat-card {
    padding: 18px !important;
    border-radius: 14px !important;
  }

  #newChatModal .admin-new-chat-card h3 {
    font-size: 19px !important;
  }
}



/* Customer login hero-to-form spacing */
.auth-page>.section.section--tight {
  padding-top: clamp(20px, 2.5vw, 32px);
}

/* ══════════════════════════════════════════════
   📱 ADMIN MOBILE RESPONSIVE CSS
   ══════════════════════════════════════════════ */

/* ── Admin container ── */
@media (max-width: 900px) {
  .container { padding-left: 14px; padding-right: 14px; }
  .section { padding-top: 20px; padding-bottom: 20px; }
}

/* ── Admin header / hero ── */
@media (max-width: 768px) {
  /* Dash hero header */
  .dash-hero > div,
  .card > div[style*="justify-content:space-between"],
  .card > div[style*="justify-content: space-between"] {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .dash-actions {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }
  .dash-actions a.btn {
    font-size: 12.5px;
    padding: 7px 12px;
    white-space: nowrap;
  }
}

/* ── Admin tables ── */
@media (max-width: 768px) {
  /* Make ALL admin tables horizontally scrollable */
  .table-responsive, .admin-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
  }
  .table, .blog-admin-table, .admin-accounts-table {
    min-width: 560px;
  }
  /* Reduce cell padding on mobile */
  .table td, .table th,
  .blog-admin-table td, .blog-admin-table th {
    padding: 10px 10px !important;
    font-size: 12.5px;
  }
}

/* ── Metric strip ── */
@media (max-width: 640px) {
  .metric-strip {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }
  .metric-card { padding: 14px !important; }
  .metric-value { font-size: 26px !important; }
}

@media (max-width: 380px) {
  .metric-strip { grid-template-columns: 1fr !important; }
}

/* ── Dash panels ── */
@media (max-width: 768px) {
  .dash-panels { grid-template-columns: 1fr !important; }
}

/* ── Admin roles & manage_admins layout ── */
@media (max-width: 860px) {
  .roles-table-grid { grid-template-columns: 1fr !important; }
  .roles-grid { grid-template-columns: 1fr !important; }
}

/* ── Blog admin table ── */
@media (max-width: 768px) {
  .blog-admin-table .col-author,
  .blog-admin-table .col-views,
  .blog-admin-table .col-date { display: none; } /* hide less-critical cols on small screens */
  .blog-admin-table .col-title { min-width: 160px; }
  .blog-title-link { max-width: 160px; }
}

/* ── Admin cards: 2-col grids go 1-col ── */
@media (max-width: 768px) {
  div[style*="grid-template-columns: 2fr 1fr"],
  div[style*="grid-template-columns:2fr 1fr"],
  div[style*="grid-template-columns: repeat(2"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── Admin action buttons ── */
@media (max-width: 520px) {
  .admin-action-cell {
    flex-direction: column;
    align-items: flex-start;
  }
  .admin-action-cell .action-btn-sm {
    width: 100%;
    text-align: center;
  }
}

/* ── Admin header card ── */
@media (max-width: 600px) {
  header.card > div { flex-direction: column; align-items: flex-start; }
  header.card h1 { font-size: 20px !important; }
  header.card .btn { font-size: 12px; padding: 7px 12px; }
}

/* ── Quote view / booking view two-column grids ── */
@media (max-width: 768px) {
  .quote-grid, .booking-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── Settings form ── */
@media (max-width: 640px) {
  .settings-grid,
  div[style*="display:grid"][style*="minmax(280px"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── Blog public page ── */
@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  .blog-card { height: auto !important; min-height: 360px; }
  .blog-featured { flex-direction: column !important; }
}

/* ── Chips and badges ── */
@media (max-width: 480px) {
  .chip, .role-badge-super, .role-badge-manager {
    font-size: 10.5px;
    padding: 2px 8px;
  }
}

/* ── Page headings ── */
@media (max-width: 640px) {
  h1 { font-size: clamp(18px, 5vw, 26px) !important; }
  h2 { font-size: clamp(16px, 4vw, 22px) !important; }
}