:root {
  --brand: #2457d6;
  --brand-dark: #183da0;
  --ink: #172033;
  --muted-bg: #f5f7fb;
}

body {
  color: var(--ink);
}

.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(36, 87, 214, .12), transparent 28rem),
    linear-gradient(135deg, #f8faff 0%, #eef3ff 100%);
}

.site-brand,
.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
}

.site-logo,
.hero-logo {
  max-height: 42px;
  max-width: 180px;
  object-fit: contain;
  border-radius: .5rem;
}

.hero-logo {
  max-height: 56px;
}

.hero .btn-primary,
.btn-primary {
  background-color: var(--brand);
  border-color: var(--brand);
}

.btn-primary:hover {
  background-color: var(--brand-dark);
  border-color: var(--brand-dark);
}

.service-card,
.admin-card,
.empty-state {
  border: 1px solid #e8ebf2;
  border-radius: 1rem;
  box-shadow: 0 .4rem 1.5rem rgba(23, 32, 51, .045);
}

.service-card {
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 .7rem 1.8rem rgba(23, 32, 51, .1);
}

.service-image {
  height: 210px;
  object-fit: cover;
}

.promo-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 100px;
  overflow: hidden;
  padding: 1rem;
  color: var(--ink);
  text-decoration: none;
  background: #fff;
  border: 1px solid #e8ebf2;
  border-radius: .9rem;
  font-weight: 600;
}

.promo-card:hover {
  border-color: #b6c8ff;
}

.promo-card img {
  width: 110px;
  height: 74px;
  object-fit: cover;
  border-radius: .5rem;
}

.contact-section {
  background: var(--muted-bg);
}

.login-card {
  max-width: 440px;
  border: 0;
  border-radius: 1rem;
}

.install-card {
  max-width: 760px;
  border: 0;
  border-radius: 1rem;
}

.admin-body {
  background: #f6f7fb;
}

.admin-navbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  min-height: 72px;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid #e8ebf2;
  backdrop-filter: blur(12px);
}

.admin-brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--ink);
  font-size: 1.05rem;
}

.admin-brand:hover {
  color: var(--brand);
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #3974f6, #2149bf);
  border-radius: .75rem;
  box-shadow: 0 .3rem .8rem rgba(36, 87, 214, .2);
}

.menu-toggle {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #e5e9f1;
  border-radius: .75rem;
  background: #fff;
}

.menu-toggle:hover {
  border-color: #c9d6fb;
  background: #f7f9ff;
}

.menu-toggle-icon {
  display: flex;
  width: 18px;
  flex-direction: column;
  gap: 4px;
}

.menu-toggle-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background: #344054;
  border-radius: 2px;
}

.admin-navbar-label {
  color: #758096;
  font-size: .9rem;
}

.admin-offcanvas {
  width: min(320px, 88vw) !important;
  border: 0;
  box-shadow: 1rem 0 3rem rgba(23, 32, 51, .12);
}

.admin-menu-header {
  min-height: 72px;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #edf0f5;
}

.admin-menu-caption {
  color: #98a1b2;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
}

.admin-menu-nav {
  gap: .35rem;
}

.admin-menu-nav .nav-link,
.admin-menu-logout {
  display: flex;
  align-items: center;
  gap: .85rem;
  width: 100%;
  padding: .8rem .9rem;
  color: #566176;
  text-align: left;
  text-decoration: none;
  background: transparent;
  border: 0;
  border-radius: .75rem;
  font-weight: 600;
  transition: color .15s ease, background-color .15s ease;
}

.admin-menu-nav .nav-link:hover,
.admin-menu-logout:hover {
  color: var(--brand);
  background: #f3f6ff;
}

.admin-menu-nav .nav-link.active {
  color: var(--brand);
  background: #edf2ff;
}

.admin-menu-icon {
  display: inline-grid;
  width: 24px;
  place-items: center;
  color: #8792a6;
  font-size: 1.15rem;
}

.admin-menu-nav .active .admin-menu-icon {
  color: var(--brand);
}

.admin-menu-bottom {
  padding-top: 1rem;
  border-top: 1px solid #edf0f5;
}

.admin-menu-logout {
  color: #697386;
}

.admin-menu-site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1rem;
  color: #fff;
  text-decoration: none;
  background: var(--brand);
  border-radius: .8rem;
  font-weight: 600;
  transition: background-color .15s ease;
}

.admin-menu-site:hover {
  color: #fff;
  background: var(--brand-dark);
}

.admin-card {
  overflow: hidden;
}

.admin-page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-eyebrow {
  display: inline-block;
  margin-bottom: .35rem;
  color: #8691a5;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.content-tabs .nav-link {
  color: #647084;
  font-weight: 600;
}

.content-tabs .nav-link.active {
  color: var(--brand);
}

.email-body-editor {
  height: 12rem;
  min-height: 12rem;
  max-height: 50vh;
  overflow: auto;
  padding: .75rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d8deea;
  border-radius: .65rem;
  line-height: 1.6;
}

.email-body-editor:focus {
  border-color: #86a5ff;
  outline: 0;
  box-shadow: 0 0 0 .2rem rgba(36, 87, 214, .15);
}

.email-body-editor h3 {
  margin-top: 1.5rem;
  font-size: 1rem;
  font-weight: 700;
}

.email-body-editor ol {
  padding-left: 1.5rem;
}

.admin-table thead th {
  padding: 1rem;
  color: #667085;
  background: #fafbfe;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-table tbody td {
  padding: 1rem;
}

.ticket-action-button {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  padding: .375rem;
}

.ticket-action-button svg {
  width: 1rem;
  height: 1rem;
}

.content-thumb {
  width: 52px;
  height: 44px;
  flex: 0 0 52px;
  object-fit: cover;
  border-radius: .55rem;
  background: #eef2f8;
}

.content-thumb-empty {
  display: grid;
  place-items: center;
  color: #778198;
  font-weight: 700;
}

.content-description {
  max-width: 380px;
}

.content-link {
  display: inline-block;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.client-details-list dt {
  color: #647084;
  font-weight: 600;
}

.client-details-list dd {
  overflow-wrap: anywhere;
}

.client-details-overlay {
  position: fixed;
  z-index: 1080;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(15, 23, 42, .58);
}

.client-details-overlay[hidden] {
  display: none;
}

.client-details-dialog {
  width: min(100%, 560px);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  background: #fff;
  border-radius: .75rem;
  box-shadow: 0 1rem 3rem rgba(23, 32, 51, .24);
}

.activity-description {
  max-width: 48rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.evidence-link {
  display: block;
  width: 96px;
  height: 72px;
  overflow: hidden;
  border: 1px solid #e2e7ef;
  border-radius: .4rem;
  background: #f7f8fb;
}

.evidence-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 575.98px) {
  .admin-navbar-label {
    font-size: .78rem;
  }

  .admin-page-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}
