:root {
  --navy: #10233f;
  --teal: #15b8b4;
  --teal-dark: #0f9f9c;
  --coral: #ff5257;
  --purple: #8068ca;
  --gold: #f7b73e;
  --mint: #effbfa;
  --rose: #fff4f5;
  --line: #dfe8ec;
  --text: #243248;
  --muted: #68758a;
  --white: #ffffff;
  --shadow: 0 14px 36px rgba(16, 35, 63, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f8fbfc;
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1180px;
  margin: 16px auto 0;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(16, 35, 63, 0.06);
  backdrop-filter: blur(16px);
}

.brand img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  object-position: center;
  border-radius: 6px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  font-size: 20px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex: 1;
  flex-wrap: wrap;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.main-nav a i {
  color: var(--teal);
  font-size: 18px;
}

.main-nav a.active,
.main-nav a:hover {
  background: var(--mint);
  color: var(--teal-dark);
}

.nav-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--coral);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.nav-logout:hover {
  background: var(--rose);
}

.notification-menu {
  position: relative;
}

.notification-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.notification-trigger i {
  color: var(--teal);
  font-size: 18px;
}

.notification-trigger:hover,
.notification-trigger[aria-expanded="true"] {
  background: var(--mint);
  color: var(--teal-dark);
}

.notification-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 40;
  width: min(420px, calc(100vw - 32px));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 42px rgba(16, 35, 63, 0.16);
}

.notification-popover::before {
  content: "";
  position: absolute;
  top: -9px;
  right: 28px;
  width: 16px;
  height: 16px;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  background: var(--white);
  transform: rotate(45deg);
}

.notification-popover-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--navy);
}

.notification-popover-head button,
.popover-notification button {
  border: 0;
  border-radius: 8px;
  background: var(--teal);
  color: var(--white);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.notification-popover-head button {
  padding: 8px 10px;
}

.notification-popover-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  max-height: 420px;
  overflow: auto;
}

.popover-notification {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.popover-notification.unread {
  border-color: rgba(255, 82, 87, 0.38);
  background: var(--rose);
}

.popover-notification strong,
.popover-notification span,
.popover-notification small {
  display: block;
}

.popover-notification strong {
  color: var(--navy);
}

.popover-notification span {
  margin-top: 4px;
  color: var(--muted);
}

.popover-notification small {
  margin-top: 8px;
  color: var(--muted);
}

.popover-notification button {
  justify-self: start;
  padding: 9px 12px;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 11px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  border: 0;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.main-nav .role-badge,
.main-nav .role-badge:hover {
  color: var(--white);
}

.role-badge:hover {
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(16, 35, 63, 0.18);
}

.has-notifications {
  color: var(--coral) !important;
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 18px 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 48px;
  align-items: center;
  min-height: 520px;
  padding: 44px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-copy {
  max-width: 640px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 16px;
  color: var(--navy);
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.02;
  font-weight: 800;
  overflow-wrap: break-word;
}

h2 {
  color: var(--navy);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.12;
}

h3 {
  color: var(--navy);
  font-size: 20px;
  line-height: 1.25;
}

.hero p,
.page-hero p,
.split-section p {
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button,
.card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 20px;
  border: 0;
  border-radius: 7px;
  color: var(--white);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(16, 35, 63, 0.12);
}

.button-teal,
.card-button {
  background: var(--teal);
}

.button-coral,
.coral-button {
  background: var(--coral);
}

.full-button {
  width: 100%;
}

.hero-art {
  display: grid;
  place-items: center;
  margin: 0;
  min-height: 380px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
}

.hero-art img {
  width: 100%;
  height: 100%;
  max-height: 450px;
  object-fit: contain;
  object-position: center;
}

.section {
  margin-top: 28px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  min-width: 0;
}

.soft {
  background: #f3fbfa;
}

.section-heading {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.step {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-size: 22px;
  font-weight: 800;
}

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

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

.service-card,
.quote-form,
.flow-card,
.panel-card,
.policy-list article,
.accordion-item,
.contact-methods a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 26px rgba(16, 35, 63, 0.06);
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  min-width: 0;
}

.service-card p {
  color: var(--muted);
}

.service-card ul {
  display: grid;
  gap: 8px;
  margin: 0 0 8px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--mint);
  font-size: 28px;
}

.teal {
  color: var(--teal-dark);
}

.coral {
  color: var(--coral);
  background: var(--rose);
}

.purple {
  color: var(--purple);
  background: #f5f1ff;
}

.gold {
  color: var(--gold);
  background: #fff8e7;
}

.card-button {
  margin-top: auto;
  min-height: 44px;
  width: 100%;
  font-size: 14px;
}

.note-box {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid #bcebe8;
  border-radius: 8px;
  background: #eefcfb;
  color: var(--navy);
}

.note-box i {
  color: var(--teal-dark);
  font-size: 26px;
}

.note-box p {
  margin: 0;
}

.service-details {
  display: grid;
  gap: 22px;
}

.detail-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.detail-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.detail-heading h2 {
  margin-bottom: 0;
}

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

.detail-columns h3 {
  margin-bottom: 10px;
  color: var(--navy);
}

.detail-columns ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.service-tip,
.price-box,
.assurance-box,
.faq-highlight,
.warning-box {
  margin: 18px 0;
  padding: 16px;
  border-radius: 8px;
  background: var(--mint);
  color: var(--teal-dark);
  font-weight: 700;
}

.price-box,
.assurance-box {
  display: grid;
  gap: 8px;
}

.assurance-box {
  background: var(--rose);
  color: var(--coral);
}

.promo-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0;
}

.promo-strip div {
  padding: 20px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
}

.promo-strip span,
.promo-strip strong {
  display: block;
}

.promo-strip span {
  color: #bdeae7;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.promo-strip strong {
  margin-top: 6px;
  font-size: clamp(20px, 3vw, 28px);
}

.faq-highlight,
.warning-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.faq-highlight span,
.warning-box span {
  display: block;
  color: var(--muted);
  font-weight: 600;
}

.warning-box {
  background: var(--rose);
  color: var(--coral);
}

.policy-text {
  margin-top: 22px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.policy-text p {
  color: var(--muted);
}

label small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.quote-form [hidden] {
  display: none;
}

.payment-note {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid #bdeae7;
  border-radius: 8px;
  background: var(--mint);
  color: var(--teal-dark);
}

.payment-note strong,
.payment-note span {
  display: block;
}

.payment-note strong {
  color: var(--navy);
}

.weekday-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.weekday-group legend {
  padding: 0 4px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
}

.weekday-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.weekday-group input {
  width: auto;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.panel-card {
  padding: 28px;
}

.panel-heading {
  margin-bottom: 20px;
}

.stack-list,
.notification-list {
  display: grid;
  gap: 14px;
}

.list-item,
.notification-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.list-item i,
.notification-item i {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--teal-dark);
}

.list-item strong,
.notification-item strong {
  display: block;
  color: var(--navy);
}

.list-item span,
.list-item small,
.notification-item small {
  color: var(--muted);
}

.list-item p,
.notification-item p {
  margin: 6px 0;
  color: var(--muted);
}

.notification-item.unread {
  border-color: rgba(255, 82, 87, 0.45);
  background: var(--rose);
}

.notification-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}

.request-modal[hidden] {
  display: none;
}

.request-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(16, 35, 63, 0.48);
}

.request-modal-card {
  position: relative;
  width: min(760px, calc(100vw - 36px));
  max-height: min(90vh, 780px);
  overflow: auto;
  padding: 28px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 24px 60px rgba(16, 35, 63, 0.28);
}

.request-modal-card h2 {
  margin-bottom: 18px;
}

.request-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  font-size: 18px;
  cursor: pointer;
}

.request-modal-close:hover {
  background: var(--mint);
  color: var(--teal-dark);
}

.request-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.request-detail-grid div {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.request-detail-grid .wide {
  grid-column: 1 / -1;
}

.request-detail-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.request-detail-grid strong {
  display: block;
  color: var(--navy);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.assign-form {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.assign-form label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-weight: 800;
}

.empty-state {
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.user-table-wrap {
  overflow-x: auto;
}

.user-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.user-table th,
.user-table td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.user-table th {
  color: var(--navy);
  font-size: 13px;
  text-transform: uppercase;
}

.role-select {
  min-width: 160px;
}

.profile-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 34px;
  font-weight: 800;
}

.profile-details h2 {
  margin-bottom: 18px;
}

.profile-meta {
  display: grid;
  gap: 12px;
}

.profile-meta span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.profile-meta i {
  color: var(--teal-dark);
  width: 22px;
}

.profile-meta strong {
  color: var(--navy);
  overflow-wrap: anywhere;
}

.why {
  background: #ecfbf9;
}

.why h2 {
  text-align: center;
  text-transform: uppercase;
  font-size: 24px;
}

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

.benefit-grid div {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-right: 1px solid #bdeae7;
}

.benefit-grid div:last-child {
  border-right: 0;
}

.benefit-grid i {
  color: var(--teal-dark);
  font-size: 24px;
}

.benefit-grid strong {
  color: var(--navy);
  font-size: 14px;
}

.benefit-grid span {
  color: var(--muted);
  font-size: 13px;
}

.page-hero {
  margin-bottom: 24px;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.question-hero {
  background: linear-gradient(135deg, #fff, #faf6ff);
}

.terms-hero {
  background: linear-gradient(135deg, #fff, #fff8e6);
}

.narrow-page {
  max-width: 900px;
}

.accordion-list,
.policy-list {
  display: grid;
  gap: 16px;
}

.accordion-item {
  overflow: hidden;
}

.accordion-item button {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 20px;
  border: 0;
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.accordion-item p {
  display: none;
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
}

.accordion-item.open p {
  display: block;
}

.accordion-item.open button i {
  transform: rotate(180deg);
}

.policy-list article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 6px 16px;
  padding: 24px;
}

.policy-list i {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #fff8e6;
  color: var(--gold);
  font-size: 24px;
}

.policy-list p {
  margin: 0;
  color: var(--muted);
}

.quote-layout,
.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
  gap: 28px;
  align-items: start;
}

.flow-card,
.quote-form {
  padding: 28px;
  min-width: 0;
}

.flow-steps {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.flow-steps span,
.mini-list span {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-weight: 700;
}

.flow-steps i,
.mini-list i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--teal-dark);
}

.quote-form {
  display: grid;
  gap: 16px;
}

.quote-form h2 {
  margin-bottom: 4px;
  font-size: 26px;
}

.quote-form label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 13px 14px;
  color: var(--text);
  font: inherit;
  background: var(--white);
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(21, 184, 180, 0.18);
  border-color: var(--teal);
}

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

.privacy {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.privacy i {
  color: var(--teal-dark);
}

.form-success {
  display: none;
  margin: 0;
  padding: 12px;
  border-radius: 7px;
  background: var(--mint);
  color: var(--teal-dark);
  font-weight: 800;
}

.form-success.show {
  display: block;
}

.split-section {
  min-height: 560px;
  align-items: center;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.split-section > * {
  min-width: 0;
}

.mini-list,
.contact-methods {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.contact-methods a {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 0 14px;
  align-items: center;
  padding: 16px;
  min-width: 0;
}

.contact-methods i {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--teal-dark);
  font-size: 22px;
}

.contact-methods span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.contact-methods strong {
  color: var(--navy);
  overflow-wrap: anywhere;
}

.social-coupon {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 18px;
  padding: 16px;
  border-radius: 8px;
  background: var(--rose);
  color: var(--coral);
  font-weight: 800;
}

.social-coupon span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 600;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px max(18px, calc((100vw - 1180px) / 2));
  background: var(--navy);
  color: var(--white);
}

.site-footer img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  object-position: center;
  border-radius: 6px;
}

.site-footer p {
  margin: 0;
  font-size: 14px;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.login-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(21, 184, 180, 0.14), transparent 32%),
    radial-gradient(circle at bottom right, rgba(255, 82, 87, 0.12), transparent 30%),
    #f8fbfc;
}

.login-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  max-width: 1180px;
  padding-block: 44px;
}

.login-card {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  width: min(940px, 100%);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.login-brand {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 42px;
  background: linear-gradient(180deg, #f0fbfa, #fff);
  border-right: 1px solid var(--line);
}

.login-brand img {
  width: 210px;
  height: 210px;
  object-fit: contain;
  object-position: center;
  border-radius: 6px;
}

.login-brand p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.login-brand h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.08;
}

.login-form {
  display: grid;
  gap: 18px;
  padding: 42px;
}

.login-form form {
  display: grid;
  gap: 18px;
}

.login-form h1 {
  margin-bottom: 10px;
  font-size: clamp(34px, 5vw, 52px);
}

.login-form p {
  color: var(--muted);
}

.login-form label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfc;
}

.auth-tab {
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.auth-tab.active {
  background: var(--white);
  color: var(--teal-dark);
  box-shadow: 0 8px 18px rgba(16, 35, 63, 0.08);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.google-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.google-button i {
  color: var(--coral);
}

.guest-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  width: 100%;
  border: 1px solid var(--teal);
  border-radius: 7px;
  background: var(--mint);
  color: var(--teal-dark);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.guest-button:hover {
  background: #dff7f5;
}

.password-field {
  display: grid;
  grid-template-columns: 1fr 48px;
}

.password-field input {
  border-radius: 7px 0 0 7px;
}

.password-toggle {
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 7px 7px 0;
  background: var(--white);
  color: var(--teal-dark);
  cursor: pointer;
}

.login-help {
  margin: 0;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 1020px) {
  .site-header {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .main-nav {
    display: none;
    flex-basis: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .main-nav.open {
    display: flex;
  }

  .hero,
  .quote-layout,
  .split-section,
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .site-header {
    margin: 0;
    border-radius: 0;
  }

  .brand img {
    width: 66px;
    height: 66px;
  }

  main {
    padding-inline: 14px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  main > * {
    width: 100%;
    max-width: calc(100vw - 28px);
  }

  .hero,
  .section,
  .page-hero,
  .split-section,
  .flow-card,
  .quote-form,
  .panel-card {
    padding: 22px;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy {
    width: min(100%, calc(100vw - 74px));
    max-width: calc(100vw - 74px);
  }

  h1 {
    font-size: 31px;
    line-height: 1.08;
  }

  .hero p,
  .page-hero p,
  .split-section p {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button,
  .card-button {
    width: 100%;
    max-width: 100%;
  }

  .hero-art {
    min-height: 280px;
  }

  .service-grid,
  .compact-grid,
  .benefit-grid,
  .form-row,
  .detail-columns,
  .promo-strip {
    grid-template-columns: 1fr;
  }

  .benefit-grid div {
    border-right: 0;
    border-bottom: 1px solid #bdeae7;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
  }

  .profile-card {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .profile-avatar {
    width: 96px;
    height: 96px;
    font-size: 28px;
  }

  .notification-actions {
    justify-content: stretch;
  }

  .notification-actions .button {
    width: 100%;
  }

  .notification-menu {
    width: 100%;
  }

  .notification-trigger {
    width: 100%;
  }

  .notification-popover {
    position: fixed;
    top: 86px;
    left: 14px;
    right: 14px;
    width: auto;
    max-height: calc(100vh - 108px);
    overflow: auto;
  }

  .notification-popover::before {
    display: none;
  }

  .request-modal {
    align-items: start;
    padding: 14px;
  }

  .request-modal-card {
    width: 100%;
    max-height: calc(100vh - 28px);
    padding: 22px;
  }

  .request-detail-grid {
    grid-template-columns: 1fr;
  }

  .request-detail-grid .wide {
    grid-column: auto;
  }

  .login-shell {
    min-height: 100vh;
  }

  .login-card {
    grid-template-columns: 1fr;
  }

  .login-brand {
    padding: 24px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .login-form {
    padding: 24px;
  }
}

@media (max-width: 360px) {
  h1 {
    font-size: 28px;
  }

  .login-shell {
    padding: 24px 14px;
  }

  .login-card {
    width: 100%;
    max-width: calc(100vw - 28px);
  }

  .login-brand,
  .login-form {
    padding: 22px;
  }

  .login-brand img {
    width: 176px;
    height: 176px;
  }

  .login-form h1 {
    font-size: 30px;
  }

  .contact-methods a {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 0 10px;
    padding: 14px;
  }

  .contact-methods i {
    width: 44px;
    height: 44px;
  }
}
