*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --orange: #D85A30;
  --orange-dark: #c04e26;
  --orange-light: #fef1ec;
  --orange-mid: #f5d5c8;
  --teal: #0F5B78;
  --teal-light: #e8f4f8;
  --green: #1a7a4a;
  --green-light: #e8f5ee;
  --red: #e53935;
  --red-light: #fdecea;
  --blue: #1565c0;
  --blue-light: #e3f0ff;
  --cyan: #0097a7;
  --cyan-light: #e0f7fa;
  --bg: #f2f3f5;
  --white: #ffffff;
  --text2:#595c5d;
  --accent-soft: rgba(59, 91, 219, 0.12);
  --border: #e8e8e8;
  --text: #111;
  --text-mid: #555;
  --text-muted: #aaa;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.15);
  --app-width: 100%;
}

body {
  background: #f3f4f6;
  min-height: 100vh;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  color: #101828;
  overflow-x: hidden;
}

/* ── App shell ── */
.app-shell {
  width: 100%;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  /* clip, not hidden: overflow-x:hidden forces overflow-y to auto, which makes
     this a scroll container — .cu-app-header's position:sticky then pins to
     this (never-scrolling) box instead of the viewport and scrolls away.
     body already has overflow-x:hidden as the horizontal-overflow backstop. */
  overflow-x: clip;
}

/* ── Screens ── */
.screen {
  display: none;
  flex-direction: column;
  min-height: 100vh;
}

.screen.active {
  display: flex;
}

/* ══════════════════════════════
   LOGIN SCREEN
══════════════════════════════ */
.login-screen {
  background: linear-gradient(160deg, #0F5B78 0%, #083d52 50%, #051e2a 100%);
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
  position: relative;
  overflow: hidden;
}

.login-screen::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(216, 90, 48, 0.25) 0%, transparent 70%);
  top: -80px;
  right: -80px;
  border-radius: 50%;
}

.login-screen::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  bottom: 60px;
  left: -40px;
  border-radius: 50%;
}

.login-logo {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-logo span {
  color: var(--orange);
}

.login-logo-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 40px;
}

.login-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 32px 24px;
  width: 100%;
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
}

.login-hi {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 4px;
}

.login-name {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 28px;
}

.pwd-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 8px;
  font-weight: 500;
}

.pwd-wrap {
  position: relative;
  margin-bottom: 14px;
}

.pwd-input {
  width: 100%;
  padding: 16px 48px 16px 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  color: #fff;
  font-size: 18px;
  font-family: inherit;
  letter-spacing: 3px;
  outline: none;
  transition: border-color 0.15s;
}

.pwd-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 1px;
  font-size: 14px;
}

.pwd-input:focus {
  border-color: var(--orange);
}

.pwd-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.45);
  font-size: 16px;
  padding: 4px;
}

.pwd-toggle:hover {
  color: rgba(255, 255, 255, 0.8);
}

.btn-login {
  width: 100%;
  padding: 16px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-login:hover {
  background: var(--orange-dark);
}

.btn-login:active {
  transform: scale(0.98);
}

.login-error {
  text-align: center;
  font-size: 12px;
  color: #ff6b6b;
  margin-top: 12px;
  min-height: 18px;
}


/* ══════════════════════════════
   PORTAL TOP BAR
══════════════════════════════ */
.top-bar {
  background: var(--white);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-bar-brand {
  font-size: 16px;
  font-weight: 800;
}

.top-bar-brand span {
  color: var(--orange);
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-bar-greeting {
  font-size: 12px;
  color: var(--text-muted);
}

.top-bar-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.logout-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--orange-light);
  border: none;
  cursor: pointer;
  color: var(--orange);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ══════════════════════════════
   HOME SCREEN
══════════════════════════════ */
.home-hero {
  background: linear-gradient(135deg, var(--teal), #083d52);
  padding: 24px 20px 28px;
  position: relative;
  overflow: hidden;
}

.home-hero::after {
  content: '';
  position: absolute;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(216, 90, 48, 0.3) 0%, transparent 70%);
  top: -40px;
  right: -20px;
  border-radius: 50%;
}

.hero-greeting {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 2px;
}

.hero-name {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}

.hero-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-tag {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
}

.home-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 20px 16px;
}

.home-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 16px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.18s;
  text-align: center;
  border: 1.5px solid transparent;
  position: relative;
  overflow: hidden;
}

.home-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  border-color: var(--orange-mid);
}

.home-card:active {
  transform: scale(0.97);
}

.home-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.icon-profile {
  background: var(--blue-light);
  color: var(--blue);
}

.icon-docs {
  background: var(--orange-light);
  color: var(--orange);
}

.icon-quotes {
  background: var(--green-light);
  color: var(--green);
}

.icon-policy {
  background: var(--cyan-light);
  color: var(--cyan);
}

.home-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}

.home-card-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.home-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--orange);
  color: #fff;
  border-radius: 10px;
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 700;
}

/* ══════════════════════════════
   INNER SCREENS (back header)
══════════════════════════════ */
.inner-bar {
  background: var(--white);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.back-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg);
  border: none;
  cursor: pointer;
  color: var(--text);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inner-bar-title {
  font-size: 16px;
  font-weight: 700;
}

.inner-bar-right {
  margin-left: auto;
}

/*.screen-content,
.edit-content {
  flex: 1;
  overflow-y: auto;
  padding: 400px;
  padding-top: 15px;
  padding-bottom: 40px;
}
*/

.screen-content,
.edit-content {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  /* .cu-bottom-nav (in the shared layout, rendered on every customer page)
     is position:fixed at bottom: max(12px, safe-area-inset-bottom), 76px
     tall — .cu-screen already accounts for this on the pages that use it,
     but this class didn't, so content (e.g. a card's Save button) could
     render underneath the floating nav with no way to reach it. Same
     clearance formula as .cu-screen. */
  padding-bottom: calc(104px + env(safe-area-inset-bottom));
  width: 100%;
}

@media (min-width: 768px) {

  .screen-content,
  .edit-content {
    max-width: 1200px;
    /* 1000px, 1200px, 1400px as per preference */
    margin: 0 auto;
    padding-left: 25px;
    padding-right: 25px;
  }
}

/* ══════════════════════════════
   PROFILE SCREEN
══════════════════════════════ */
.profile-avatar-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}

.profile-avatar {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--orange), #f07850);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-name {
  font-size: 18px;
  font-weight: 700;
}

.profile-id {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.info-card {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.info-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.info-card-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.info-card-title {
  font-size: 13px;
  font-weight: 700;
  flex: 1;
}

.info-card-body {
  padding: 16px;
}

.info-row {
  margin-bottom: 14px;
}

.info-row:last-child {
  margin-bottom: 0;
}

.info-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.info-row-2:last-child {
  margin-bottom: 0;
}

.info-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 2px;
  font-weight: 500;
}

.info-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.info-value.empty {
  color: var(--text-muted);
  font-weight: 400;
  font-style: italic;
  font-size: 13px;
}

.info-value.masked {
  letter-spacing: 2px;
}

/* Interest row in profile */
.interest-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal-light);
  color: var(--teal);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin: 4px 4px 4px 0;
}

/* ══════════════════════════════
   DOCUMENTS SCREEN
══════════════════════════════ */
.doc-section-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 4px;
  margin-bottom: 10px;
  margin-top: 4px;
}

.doc-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

.doc-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.doc-icon-empty {
  background: #f5f5f5;
  color: var(--text-muted);
}

.doc-icon-pdf {
  background: var(--red-light);
  color: var(--red);
}

.doc-icon-img {
  background: var(--blue-light);
  color: var(--blue);
}

.doc-icon-file {
  background: var(--green-light);
  color: var(--green);
}

.doc-info {
  flex: 1;
  min-width: 0;
}

.doc-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.doc-status {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}

.doc-action {
  flex-shrink: 0;
}

.btn-upload {
  background: var(--orange-light);
  color: var(--orange);
  border: 1.5px dashed var(--orange-mid);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-preview {
  background: var(--blue-light);
  color: var(--blue);
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}

.doc-uploaded-info {
  font-size: 11px;
  color: var(--green);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

/* ══════════════════════════════
   QUOTATIONS SCREEN
══════════════════════════════ */
.quote-card {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.quote-card-header {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}

.quote-type-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.quote-card-body {
  padding: 14px 16px;
}

.quote-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.quote-row:last-child {
  margin-bottom: 0;
}

.quote-premium {
  background: var(--orange-light);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quote-premium-label {
  font-size: 11px;
  color: var(--orange);
  font-weight: 600;
}

.quote-premium-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--orange);
}

.quote-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.btn-download {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-download:hover {
  background: var(--teal-light);
  color: var(--teal);
  border-color: var(--teal);
}

/* ══════════════════════════════
   EXISTING POLICIES SCREEN
══════════════════════════════ */
.policy-group {
  margin-bottom: 20px;
}

.policy-group-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 4px;
  margin-bottom: 10px;
}

.policy-group-label .group-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.policy-card {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.policy-card-top {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.policy-company {
  font-size: 14px;
  font-weight: 700;
}

.policy-type-chip {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.policy-card-body {
  padding: 14px 16px;
}

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

.renewal-bar {
  margin-top: 12px;
  background: var(--bg);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.renewal-label {
  font-size: 11px;
  color: var(--text-muted);
}

.renewal-date {
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
}

/* ══════════════════════════════
   MODAL / PREVIEW
══════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 500;
  display: none;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(3px);
}

.modal-overlay.open {
  display: flex;
}

.modal-sheet {
  background: var(--white);
  border-radius: 24px 24px 0 0;
  width: var(--app-width);
  max-height: 90vh;
  overflow-y: auto;
  animation: sheetUp 0.25s ease;
}

@keyframes sheetUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

.sheet-handle {
  width: 40px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 12px auto 16px;
}

.sheet-header {
  padding: 0 20px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.sheet-title {
  font-size: 16px;
  font-weight: 700;
}

.sheet-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg);
  border: none;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sheet-body {
  padding: 20px;
}

/* image preview */
.preview-img {
  width: 100%;
  border-radius: 12px;
  max-height: 400px;
  object-fit: contain;
}

/* home icon button in inner bars */
.home-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--orange-light);
  border: none;
  cursor: pointer;
  color: var(--orange);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

.home-btn:hover {
  background: var(--orange-mid);
}

/* ══════════════════════════════
   TOAST
══════════════════════════════ */
#toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1a1a1a;
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 13px;
  white-space: nowrap;
  z-index: 9999;
  opacity: 0;
  transition: all 0.25s;
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

#toast.success {
  background: var(--green);
}

/* ══════════════════════════════
   UPLOAD HIDDEN INPUT
══════════════════════════════ */
#file-input {
  display: none;
}

/* Colors per type */
.type-health {
  background: var(--cyan-light);
  color: var(--cyan);
}

.type-life {
  background: var(--blue-light);
  color: var(--blue);
}

.type-motor {
  background: #fff3e0;
  color: #e65100;
}

.type-term {
  background: #f3e5f5;
  color: #7b1fa2;
}

.type-travel {
  background: #e8f5e9;
  color: var(--green);
}

.type-home {
  background: #fce4ec;
  color: #c62828;
}

/* Shimmer for empty states */
.empty-state {
  text-align: center;
  padding: 40px 20px;
}

.empty-icon {
  font-size: 40px;
  color: var(--border);
  margin-bottom: 12px;
}

.empty-text {
  font-size: 14px;
  color: var(--text-muted);
}

/* shake for wrong password */
@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-6px);
  }

  40%,
  80% {
    transform: translateX(6px);
  }
}

.shake {
  animation: shake 0.4s ease;
}

.breadcrumb {
  font-size: 13px;
}

.breadcrumb-item+.breadcrumb-item::before {
  content: "›";
  font-size: 14px;
  color: #999;
}

.breadcrumb-item a:hover {
  color: var(--orange) !important;
}

/* ══════════════════════════════
   CUSTOMER PROFILE EDIT
══════════════════════════════ */
/* ── Center form in a small area on desktop ── */
/*.edit-form-wrapper {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}*/

/* ── Edit form inputs ── */
.edit-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 5px;
  font-weight: 500;
  display: block;
}

.edit-input,
.edit-select,
.edit-textarea {
  width: 100%;
  padding: 10px 13px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, background 0.15s;
  appearance: none;
  -webkit-appearance: none;
}

.edit-input:focus,
.edit-select:focus,
.edit-textarea:focus {
  border-color: var(--orange);
  background: var(--white);
}

.edit-input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.edit-input:read-only {
  background: var(--soft, #f4f5f7);
  color: var(--text-muted);
  cursor: not-allowed;
}

.edit-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23aaa' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}

.edit-textarea {
  resize: vertical;
  min-height: 80px;
}

/* grid helpers */
.edit-row-2,
.edit-row-3,
.edit-row-4 {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.edit-row-2:last-child,
.edit-row-3:last-child,
.edit-row-4:last-child {
  margin-bottom: 0;
}

.edit-row-2 {
  grid-template-columns: 1fr 1fr;
}

.edit-row-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.edit-row-4 {
  grid-template-columns: 1fr 1fr 1fr 1fr;
}

@media (max-width: 600px) {

  .edit-row-2,
  .edit-row-3,
  .edit-row-4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 400px) {

  .edit-row-3,
  .edit-row-4 {
    grid-template-columns: 1fr;
  }
}

/* Family member card */
.family-member-card {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 14px;
  border: 1.5px solid var(--border);
}

.family-member-header {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Family toggle buttons */
.family-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-mid);
  transition: all 0.15s;
  user-select: none;
}

.btn-check:checked+.family-toggle-btn {
  background: var(--teal-light);
  color: var(--teal);
  border-color: var(--teal);
}

.family-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px dashed var(--teal);
  background: var(--teal-light);
  color: var(--teal);
  font-family: inherit;
  transition: all 0.15s;
}

.family-add-btn:hover {
  background: #d0eaf4;
}

.remove-child-btn {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1.5px solid var(--red);
  background: var(--red-light);
  color: var(--red);
  cursor: pointer;
  font-family: inherit;
}

/* Health questions */
.health-question {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.health-q-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.5;
}

.health-q-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
}

.radio-group {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.radio-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--white);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s;
  user-select: none;
}

.radio-pill input[type="radio"] {
  display: none;
}

.radio-pill:has(input:checked) {
  border-color: var(--orange);
  background: var(--orange-light);
  color: var(--orange);
}

.health-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 12px;
  color: #795548;
  margin-top: 12px;
}

/* Save button */
.btn-save-profile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.btn-save-profile:hover {
  background: var(--orange-dark);
}

.btn-save-profile:active {
  transform: scale(0.98);
}

/* ===== Profile View: force full-width info-rows ===== */
#screen-profile .info-card .info-card-body .info-row-2,
#screen-profile .info-card .info-card-body .info-row-1 {
  display: grid !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  gap: 16px 20px;
  margin-bottom: 14px;
}

#screen-profile .info-card .info-card-body .info-row-2 {
  grid-template-columns: 1fr 1fr !important;
}

#screen-profile .info-card .info-card-body .info-row-1 {
  grid-template-columns: 1fr !important;
}

#screen-profile .info-card .info-card-body .info-row-2>div,
#screen-profile .info-card .info-card-body .info-row-1>div {
  min-width: 0;
  width: 100%;
}

.login-card {
  width: 350px;
  margin: 0 auto;
}

.brand-icon {
  width: 75px;
  height: 73px;
  background: transparent;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: visible;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* Customer Login Section Starts */
.customer-login-brand {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.customer-login-brand img {
  width: 180px;
  max-width: 72vw;
  height: auto;
  display: block;
}

.customer-login-brand span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.customer-login-card {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(11, 43, 107, 0.12);
  box-shadow: 0 22px 54px rgba(11, 43, 107, 0.18);
}

.customer-login-card .login-hi,
.customer-login-card .pwd-label {
  color: #667085;
}

.customer-login-card .login-name {
  color: #101828;
}

.customer-login-card .mobile-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f4f7fb;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  color: #0b2b6b;
  padding: 14px 16px;
}

.customer-login-card .pwd-input {
  background: #fff;
  border-color: #dbe3ef;
  color: #101828;
}

.customer-login-card .pwd-input:focus {
  border-color: #0b2b6b;
}

.customer-login-card .btn-login {
  background: #0b2b6b;
}

.customer-login-card .btn-login:hover {
  background: #08245a;
}

.customer-login-badge {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef2fb;
  color: #0b2b6b;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 18px;
}
/* Customer Login Section Ends */

.agent-view-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.agent-view-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text2);
  margin-bottom: 6px;
}

.agent-view-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.agent-view-cell {
  padding: 18px 24px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Mobile stack */
@media (max-width: 576px) {
  #screen-profile .info-card .info-card-body .info-row-2 {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
}

.policy-company,
.agent-name,
.profile-name,
.info-card-title,
.radio-pill,.policy-preview-company,.value {
  color: var(--text);
}

/* ── QUOTATIONS LISTING PAGE (index.blade.php) ── */
.qt-wrap {
  padding: 14px 12px 80px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.qt-info-banner {
  background: rgba(59, 91, 219, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #1a2e6b;
}

.qt-info-banner i {
  color: #3b5bdb;
  margin-top: 2px;
  font-size: 14px;
  flex-shrink: 0;
}

.qt-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.qt-card-top {
  padding: 14px 16px 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.qt-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a2e6b;
  margin: 0 0 6px;
  line-height: 1.3;
}

.qt-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  color: #595c5d;
}

.qt-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.qt-meta-item i {
  color: #3b5bdb;
  font-size: 11px;
}

.qt-meta-item.qt-price {
  color: #1a2e6b;
  font-weight: 700;
}

.qt-date {
  font-size: 11.5px;
  color: #999;
  white-space: nowrap;
  flex-shrink: 0;
}

.qt-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: #f8f9fb;
  border-top: 1px solid #f0f0f0;
}

.qt-plans-count {
  font-size: 12px;
  color: #595c5d;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.qt-plans-count i {
  color: #999;
  font-size: 11px;
}

.qt-view-btn {
  background: linear-gradient(to top, #1a2e6b, #3b5bdb);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 7px 18px;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(26, 46, 107, 0.18);
  transition: transform .15s, box-shadow .15s;
  text-decoration: none;
}

.qt-view-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(26, 46, 107, 0.25);
  color: #fff;
}

.qt-view-btn i {
  font-size: 11px;
}

/* ── QUOTATION VIEW / COMPARISON PAGE (view.blade.php) ── */
.qv-page {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  background: #fff;
  padding-bottom: 100px;
}
.qv-page .qv-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid #ececec;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.qv-page .qv-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f5f6f7;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #2c2f30;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, color .15s;
}

.qv-page .qv-icon-btn:hover {
  background: rgba(59, 91, 219, 0.10);
  color: #3b5bdb;
}

.qv-page .qv-page-title {
  font-size: 17px;
  font-weight: 700;
  color: #1a2e6b;
  margin: 0;
  text-align: center;
  flex: 1;
}

.qv-page .qv-swipe-hint {
  text-align: center;
  padding: 12px 16px;
  font-size: 12px;
  color: #999;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}

.qv-page .qv-swipe-hint i {
  margin-right: 5px;
}

.qv-page .qv-table-wrap {
  padding: 18px;
  overflow-x: auto;
}

.qv-page .qv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 560px;
}

.qv-page .qv-table thead th {
  background: #1a2e6b;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 12px 14px;
  text-align: left;
  border-right: 1px solid rgba(255, 255, 255, 0.10);
}

.qv-page .qv-table thead th:last-child {
  border-right: none;
}

.qv-page .qv-table thead th.qv-th-feature {
  background: #2c2f30;
}

.qv-page .qv-section-row td {
  background: #3b5bdb;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 10px 14px;
}

.qv-page .qv-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: top;
  color: #2c2f30;
  background: #fff;
}

.qv-page .qv-row-label {
  background: #f8f9fb;
  font-weight: 600;
  color: #1a2e6b;
  min-width: 160px;
  width: 30%;
}

.qv-page .qv-table tbody tr:last-child td {
  border-bottom: none;
}

.qv-page .qv-tag-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.qv-page .qv-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #1a2e6b;
}

.qv-page .qv-tag i {
  color: #3b5bdb;
  font-size: 9px;
}

.qv-page .qv-agent-notes {
  padding: 24px 18px 18px;
  background: #f5f6f7;
}

.qv-page .qv-section-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #595c5d;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.qv-page .qv-note-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.qv-page .qv-note-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #1a2e6b;
  margin-bottom: 6px;
}

.qv-page .qv-note-head i {
  color: #3b5bdb;
  font-size: 12px;
}

.qv-page .qv-note-body {
  font-size: 13px;
  color: #595c5d;
  margin: 0;
  padding-left: 22px;
}

.qv-page .qv-actions {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 12px;
  padding: 14px 18px;
  background: #fff;
  border-top: 1px solid #ececec;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
}

.qv-page .qv-btn {
  flex: 1;
  border: none;
  border-radius: 8px;
  padding: 11px 18px;
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  font-family: inherit;
}

.qv-page .qv-btn-outline {
  background: #fff;
  color: #2c2f30;
  border: 1px solid #d6d8db;
}

.qv-page .qv-btn-outline:hover {
  background: #f5f6f7;
  border-color: #3b5bdb;
  color: #3b5bdb;
}

.qv-page .qv-btn-primary {
  background: linear-gradient(to top, #1a2e6b, #3b5bdb);
  color: #fff;
  box-shadow: 0 4px 12px rgba(26, 46, 107, 0.20);
}

.qv-page .qv-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(26, 46, 107, 0.28);
}

.qv-page .qv-btn i {
  font-size: 12px;
}
.section { padding: 16px 16px 0; }
.section-title {
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px;
  display: flex; align-items: center; justify-content: space-between;
}
.section-title .view-all { font-size: 11px; color: var(--orange); text-transform: none; cursor: pointer; font-weight: 500; }
.policy-preview {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px 16px; margin-bottom: 10px; cursor: pointer; transition: all 0.15s;
}
.policy-preview:active { transform: scale(0.98); }
.policy-preview-header { display: flex; align-items: center; justify-content: space-between; }
.policy-preview-type {
  font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 4px; text-transform: uppercase;
}
.type-health { background: var(--green-light); color: var(--green); }
.type-term { background: var(--red-light); color: var(--red); }
.type-motor { background: var(--blue-light); color: var(--blue); }
.type-life { background: #F0EBFF; color: #6B4FAB; }
.policy-preview-company { font-size: 14px; font-weight: 600; margin-top: 8px; }
.policy-preview-plan { font-size: 12px; color: var(--text-mid); }
.policy-preview-row { display: flex; justify-content: space-between; margin-top: 10px; gap: 8px; }
.policy-preview-cell .label { font-size: 10px; color: var(--text-muted); }
.policy-preview-cell .value { font-size: 13px; font-weight: 600; }
.policy-preview-cell .value.renewal { color: var(--orange); }
/* ── Pending docs ── */
.pending-docs-card {
  background: #FFF8F0; border: 1px solid #F5DCC5; border-radius: var(--radius-sm); padding: 14px 16px;
}
.pending-docs-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.pending-docs-header i { color: var(--orange); font-size: 16px; }
.pending-docs-header span { font-size: 13px; font-weight: 600; color: var(--orange-dark); }
.pending-doc-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px solid #F0DCC8;
}
.pending-doc-item:last-child { border-bottom: none; }
.pending-doc-item .doc-name { font-size: 12px; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.pending-doc-item .doc-name i { color: var(--text-muted); font-size: 13px; }
.upload-btn {
  padding: 4px 12px; background: var(--orange); color: #fff; border: none;
  border-radius: 6px; font-size: 11px; font-weight: 600; cursor: pointer;
  font-family: inherit; display: flex; align-items: center; gap: 4px;
}
.upload-btn:active { background: var(--orange-dark); }
a,
a:hover,
a:focus,
a:active {
    text-decoration: none !important;
}
@media (max-width: 600px) {
  .qv-page .qv-page-title {
    font-size: 15px;
  }

  .qv-page .qv-btn {
    font-size: 12.5px;
    padding: 10px 14px;
  }
}

/*Notification*/
/*Notification Dropdown in the header */
.udm-menu {
  width: 340px;
  padding: 0 !important;
  border-radius: 14px;
  overflow: hidden;
  margin-top: 8px !important;
}

.udm-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: var(--accent-soft);
  font-weight: 700;
  color: var(--accent);
}

.udm-count-pill {
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 99px;
}

.udm-notif-item {
  display: flex;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: var(--text);
}

.udm-notif-item:hover {
  background: var(--accent-soft);
}

.udm-notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent2);
  margin-top: 6px;
}

.udm-notif-title {
  font-weight: 600;
  font-size: 13.5px;
}

.udm-notif-msg {
  font-size: 12.5px;
  color: var(--text2);
}

.udm-notif-empty {
  text-align: center;
  padding: 30px;
  color: var(--text2);
}

.udm-notif-empty i {
  font-size: 28px;
  display: block;
  margin-bottom: 8px;
}

.udm-footer {
  padding: 12px;
  text-align: center;
  background: var(--accent-soft);
}

.udm-footer-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  font-size: 13px;
}

.hdr-icon-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--text2);
  font-size: 16px;
  position: relative;
  cursor: pointer;
}

.hdr-icon-btn:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.hdr-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  background: #b31b25;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 0px 5px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  line-height: 1;
}

/* Notification page */
.notif-page {
  background: #fff;
  border-radius: 14px;
  padding: 24px 28px;
}

.notif-page-title {
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 18px;
}

.notif-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: #f3f3f3;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 500;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 6px;
  border-bottom: 1px solid #eee;
}

.notif-num {
  color: #999;
  font-size: 13px;
  min-width: 24px;
}

.notif-body {
  flex: 1;
  min-width: 0;
}

.notif-title {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 4px;
}

.notif-msg {
  display: block;
  font-size: 13px;
  color: var(--text2);
  text-decoration: underline;
}

.notif-time {
  font-size: 12px;
  color: var(--text2);
  text-decoration: underline;
  white-space: nowrap;
}

.notif-empty {
  text-align: center;
  padding: 40px;
  color: var(--text2);
}

.notif-empty i {
  font-size: 32px;
  display: block;
  margin-bottom: 10px;
}

.notif-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  font-size: 13px;
  color: var(--text2);
}

.notif-footer .pagination {
  gap: 0;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  display: inline-flex;
  background: #fff;
}

.notif-footer .page-link {
  border: none;
  border-radius: 0;
  color: var(--text2);
  font-size: 13px;
  padding: 6px 12px;
  background: #fff;
  border-right: 1px solid #e0e0e0;
}

.notif-footer .page-item:last-child .page-link {
  border-right: none;
}

.notif-footer .page-link:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.notif-footer .page-item.active .page-link {
  background: linear-gradient(to top, var(--accent), var(--accent2));
  color: #fff;
}

.notif-footer .page-item.disabled .page-link {
  color: #ccc;
  background: #fafafa;
}
.h-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  background: transparent;
  border: 0;
  color: var(--text2);
  font-size: 15px;
  transition: background var(--transition), color var(--transition), transform .15s;
  position: relative;
}

/* Customer App Refresh Section Starts */
:root {
  --cu-navy: #0b2b6b;
  --cu-gold: #f6a800;
  --cu-ink: #111827;
  --cu-muted: #667085;
  --cu-soft: #eef3ff;
  --cu-line: #e2e8f0;
  --cu-card: #ffffff;
  --cu-bg: #f3f6fb;
  --cu-shadow: 0 18px 42px rgba(11, 43, 107, 0.10);
}

.cu-screen {
  min-height: 100vh;
  background: radial-gradient(circle at 18% 0%, rgba(180, 198, 255, 0.38), transparent 34%), linear-gradient(180deg, #eef3ff 0%, var(--cu-bg) 38%, #ffffff 100%);
  color: var(--cu-ink);
  /* .cu-bottom-nav floats bottom: max(12px, env(safe-area-inset-bottom)), so on a
     device with a real inset the nav sits higher and the gap below it grows —
     pad by the same amount so content never ends up under it. */
  padding-bottom: calc(104px + env(safe-area-inset-bottom));
}

.cu-content {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 12px 16px 24px;
}

.cu-app-header {
  position: sticky;
  top: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(16px, env(safe-area-inset-top)) 18px 12px;
  background: rgba(238, 243, 255, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* Live-update banner — shown instead of a silent auto-refresh so an update
   arriving mid-scroll or mid-read doesn't yank content out from under you. */
.pu-live-banner {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  left: 16px;
  right: 16px;
  z-index: 260;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px 12px 18px;
  border-radius: 999px;
  background: var(--cu-navy);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--cu-shadow);
}

.pu-live-banner button {
  border: 0;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 800;
  background: var(--cu-gold);
  color: var(--cu-navy);
  cursor: pointer;
  flex-shrink: 0;
}

/* Toastr defaults to top:12px/right:12px with no CSS of its own loaded here
   previously (unstyled), and would also sit under the sticky app header. */
#toast-container.toast-top-right {
  top: calc(max(16px, env(safe-area-inset-top)) + 76px) !important;
  left: 16px !important;
  right: 16px !important;
  width: auto !important;
  z-index: 260;
}

#toast-container > div {
  opacity: 1;
  width: auto !important;
  max-width: none;
  border-radius: 16px;
  box-shadow: var(--cu-shadow);
  padding: 15px 18px 15px 52px;
}

#toast-container > div:hover {
  opacity: 1;
}

#toast-container .toast-title {
  font-weight: 800;
  margin-bottom: 3px;
}

#toast-container .toast-message {
  font-size: 13px;
  line-height: 1.45;
}

.cu-app-header__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.cu-app-header__brand img {
  height: 42px;
  width: auto;
  display: block;
  object-fit: contain;
}

.cu-app-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cu-icon-btn {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--cu-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(11, 43, 107, 0.08);
  text-decoration: none;
}

.cu-icon-btn--danger {
  color: #b91c1c;
}

.cu-notification-dot {
  position: absolute;
  top: -5px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--cu-gold);
  color: var(--cu-navy);
  font-size: 11px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.cu-notification-dot[hidden] {
  display: none;
}

.cu-notification-menu {
  border: 0;
  border-radius: 24px;
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

.cu-hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--cu-navy), #123d8d);
  color: #fff;
  box-shadow: var(--cu-shadow);
  position: relative;
  overflow: hidden;
}

.cu-hero-card::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -56px;
  top: -42px;
  border-radius: 50%;
  background: rgba(246, 168, 0, 0.22);
}

.cu-hero-card__copy,
.cu-hero-card__avatar {
  position: relative;
  z-index: 1;
}

.cu-eyebrow {
  display: inline-flex;
  color: var(--cu-gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.cu-hero-card h1 {
  margin: 0 0 6px;
  color: #fff;
  font-size: clamp(24px, 7vw, 38px);
  line-height: 1.05;
  font-weight: 900;
}

.cu-hero-card p {
  margin: 0;
  max-width: 440px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.5;
}

.cu-hero-card__avatar {
  width: 62px;
  height: 62px;
  border-radius: 22px;
  background: #fff;
  color: var(--cu-navy);
  font-size: 24px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cu-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0 24px;
}

.cu-stat-card {
  min-height: 142px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(11, 43, 107, 0.08);
  box-shadow: var(--cu-shadow);
  color: var(--cu-ink);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cu-stat-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cu-navy);
  background: #eef2fb;
  font-size: 18px;
}

.cu-stat-card__icon--quote {
  color: #1a7a4a;
  background: #e8f5ee;
}

.cu-stat-card__icon--doc {
  color: #0f5b78;
  background: #e8f4f8;
}

.cu-stat-card__icon--pending {
  color: #c47a00;
  background: #fff3d7;
}

.cu-stat-card__label {
  color: var(--cu-muted);
  font-size: 13px;
  font-weight: 800;
}

.cu-stat-card strong {
  color: var(--cu-ink);
  font-size: 32px;
  line-height: 1;
}

.cu-section {
  margin: 0 0 24px;
}

.cu-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 4px 0 18px;
}

.cu-page-head h1 {
  margin: 0;
  color: var(--cu-navy);
  font-size: clamp(30px, 8vw, 44px);
  line-height: 1;
  font-weight: 950;
}

.cu-count-pill {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--cu-muted);
  border: 1px solid rgba(11, 43, 107, 0.08);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.cu-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.cu-section-head h2 {
  margin: 0;
  color: var(--cu-ink);
  font-size: 21px;
  font-weight: 900;
}

.cu-section-head a {
  color: var(--cu-gold);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.cu-list-card,
.cu-empty-card,
.cu-policy-card,
.cu-advisor-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(11, 43, 107, 0.08);
  box-shadow: var(--cu-shadow);
  border-radius: 24px;
}

.cu-list-card {
  overflow: hidden;
}

.cu-list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  color: var(--cu-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--cu-line);
}

.cu-list-row:last-child {
  border-bottom: 0;
}

.cu-list-row__icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #fff3d7;
  color: #c47a00;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cu-list-row__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.cu-list-row__body strong {
  color: var(--cu-ink);
  font-size: 14px;
}

.cu-list-row__body small {
  color: var(--cu-muted);
  font-size: 12px;
}

.cu-list-row__action {
  color: var(--cu-navy);
  font-size: 12px;
  font-weight: 900;
}

.cu-info-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  margin: 0 0 16px;
  border-radius: 18px;
  background: rgba(255, 247, 230, 0.9);
  color: #875700;
  border: 1px solid rgba(246, 168, 0, 0.18);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.cu-info-banner i {
  color: var(--cu-gold);
  margin-top: 2px;
}

.cu-info-banner--link {
  text-decoration: none;
  color: #875700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, transform 0.05s ease;
}

.cu-info-banner--link span {
  text-decoration: underline;
}

.cu-info-banner--link:active {
  background: rgba(246, 168, 0, 0.16);
  transform: scale(0.99);
}

.cu-policy-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  color: var(--cu-ink);
  text-decoration: none;
  margin-bottom: 12px;
}

.cu-policy-card--active {
  border: 2px solid var(--cu-navy, #0b2b6b);
  box-shadow: 0 0 0 3px rgba(11, 43, 107, 0.08);
}

.cu-chip {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 10px;
  background: #eef2fb;
  color: var(--cu-navy);
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 10px;
}

.cu-policy-card h3 {
  margin: 0 0 4px;
  color: var(--cu-ink);
  font-size: 16px;
  font-weight: 900;
}

.cu-policy-card p {
  margin: 0;
  color: var(--cu-muted);
  font-size: 13px;
}

.cu-policy-card__renewal {
  min-width: 72px;
  border-radius: 18px;
  background: #fff7e6;
  color: #c47a00;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cu-policy-card__renewal strong {
  font-size: 24px;
  line-height: 1;
}

.cu-policy-card__renewal span {
  font-size: 11px;
  font-weight: 800;
}

.cu-empty-card {
  min-height: 150px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  color: var(--cu-muted);
}

.cu-empty-card i {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: #eef2fb;
  color: var(--cu-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.cu-empty-card strong {
  color: var(--cu-ink);
}

.cu-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cu-action-card {
  min-height: 116px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(11, 43, 107, 0.08);
  box-shadow: var(--cu-shadow);
  color: var(--cu-ink);
  text-decoration: none;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-weight: 900;
}

.cu-action-card i {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #eef2fb;
  color: var(--cu-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cu-hospi-modal {
  position: fixed;
  inset: 0;
  z-index: 420;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.cu-hospi-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.cu-hospi-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.cu-hospi-modal__card {
  position: absolute;
  left: 50%;
  bottom: calc(98px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(calc(100vw - 28px), 420px);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(11, 43, 107, 0.10);
  box-shadow: 0 26px 64px rgba(15, 23, 42, 0.24);
  padding: 22px;
}

.cu-hospi-modal__eyebrow {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef2fb;
  color: var(--cu-navy);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cu-hospi-modal__card h2 {
  margin: 14px 0 8px;
  color: var(--cu-ink);
  font-size: 28px;
  font-weight: 950;
}

.cu-hospi-modal__card p {
  margin: 0;
  color: var(--cu-muted);
  font-size: 14px;
  line-height: 1.55;
}

.cu-hospi-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.cu-hospi-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 20px;
  margin-top: 16px;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff6e6, #ffe4ae);
  border: 1px solid rgba(246, 168, 0, 0.35);
  box-shadow: var(--cu-shadow);
  text-decoration: none;
}

.cu-hospi-prompt__top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cu-hospi-prompt__icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cu-gold);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 8px 16px rgba(246, 168, 0, 0.35);
}

.cu-hospi-prompt__title {
  margin: 2px 0 0;
  font-size: 18px;
  font-weight: 900;
  color: var(--cu-ink);
}

.cu-hospi-prompt__desc {
  margin: 0;
  max-width: 420px;
  color: var(--cu-muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.cu-hospi-prompt__cta {
  align-self: stretch;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--cu-navy);
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
}

.cu-hospi-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 16px;
}

.cu-hospi-panel,
.cu-hospi-card {
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(11, 43, 107, 0.08);
  box-shadow: var(--cu-shadow);
  min-width: 0;
}

.cu-hospi-panel {
  padding: 22px;
}

.cu-hospi-panel__head h2 {
  margin: 0 0 4px;
  color: var(--cu-ink);
  font-size: 26px;
  font-weight: 950;
}

.cu-hospi-panel__head p {
  margin: 0;
  color: var(--cu-muted);
  font-size: 14px;
}

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

.cu-hospi-stat {
  padding: 16px;
  border-radius: 20px;
  background: #f8fbff;
  border: 1px solid rgba(11, 43, 107, 0.08);
}

.cu-hospi-stat--wide {
  grid-column: 1 / -1;
}

.cu-hospi-stat span {
  display: block;
  margin-bottom: 6px;
  color: var(--cu-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cu-hospi-stat strong {
  display: block;
  color: var(--cu-ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.45;
}

.cu-hospi-members {
  margin-top: 18px;
}

.cu-hospi-members__label {
  display: block;
  margin-bottom: 8px;
  color: var(--cu-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cu-hospi-members__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  background: #f8fbff;
  border: 1px solid rgba(11, 43, 107, 0.08);
}

.cu-hospi-members__row + .cu-hospi-members__row {
  margin-top: 8px;
}

.cu-hospi-members__row span {
  color: var(--cu-ink);
  font-size: 14px;
  font-weight: 700;
}

.cu-hospi-members__row strong {
  color: var(--cu-muted);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.cu-hospi-declarations + .cu-hospi-declarations {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(11, 43, 107, 0.08);
}

.cu-hospi-declarations__member {
  margin: 0 0 8px;
  color: var(--cu-navy);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cu-hospi-declarations__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(11, 43, 107, 0.06);
}

.cu-hospi-declarations__item:last-child {
  border-bottom: none;
}

.cu-hospi-declarations__item span {
  color: var(--cu-muted);
  font-size: 13px;
  line-height: 1.5;
}

.cu-hospi-declarations__item strong {
  color: var(--cu-ink);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.cu-hospi-stack {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.cu-hospi-card {
  padding: 18px;
}

.cu-hospi-card h3 {
  margin: 0 0 10px;
  color: var(--cu-navy);
  font-size: 17px;
  font-weight: 900;
}

.cu-hospi-card p {
  margin: 0;
  color: var(--cu-ink);
  font-size: 14px;
  line-height: 1.65;
  white-space: normal;
}

.cu-hospi-card--warning {
  background: linear-gradient(180deg, #fffaf0 0%, #fffefb 100%);
  border-color: rgba(246, 168, 0, 0.18);
}

.cu-hospi-card--warning h3 {
  color: #9a6700;
}

.cu-detail-table-wrap {
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid rgba(11, 43, 107, 0.08);
}

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

.cu-detail-table th,
.cu-detail-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(11, 43, 107, 0.08);
  white-space: nowrap;
}

.cu-detail-table thead th {
  background: #f8fbff;
  color: var(--cu-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cu-detail-table tbody tr:last-child td {
  border-bottom: none;
}

.cu-detail-table td.cu-detail-table__empty {
  text-align: center;
  color: var(--cu-muted);
  white-space: normal;
}

.cu-quote-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(11, 43, 107, 0.08);
  box-shadow: var(--cu-shadow);
  color: var(--cu-ink);
  text-decoration: none;
  padding: 18px;
  margin-bottom: 12px;
}

.cu-quote-card__top,
.cu-quote-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.cu-quote-card__top h3 {
  margin: 0 0 4px;
  color: var(--cu-ink);
  font-size: 16px;
  font-weight: 900;
}

.cu-quote-card__top p,
.cu-quote-card__top > span,
.cu-quote-card__meta span {
  margin: 0;
  color: var(--cu-muted);
  font-size: 13px;
  font-weight: 700;
}

.cu-quote-card__meta {
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--cu-line);
}

.cu-quote-card__meta strong {
  color: var(--cu-navy);
  font-size: 14px;
  font-weight: 900;
  text-align: right;
}

.cu-document-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--cu-line);
}

.cu-document-row:last-child {
  border-bottom: 0;
}

.cu-list-row__icon--success {
  background: #e8f5ee;
  color: #15803d;
}

.cu-list-row__icon--danger {
  background: #fdeaea;
  color: #c0392b;
}

.cu-small-btn {
  border: 0;
  border-radius: 999px;
  padding: 9px 13px;
  background: #eef2fb;
  color: var(--cu-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.cu-small-btn--primary {
  background: var(--cu-navy);
  color: #fff;
}

.cu-profile-card,
.info-card {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(11, 43, 107, 0.08) !important;
  border-radius: 24px !important;
  box-shadow: var(--cu-shadow) !important;
}

.cu-profile-card {
  padding: 18px !important;
  margin-bottom: 16px !important;
}

.info-card {
  overflow: hidden;
  margin-bottom: 14px !important;
}

.info-card-header {
  background: transparent !important;
}

.cu-advisor-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  margin-bottom: 10px;
}

.cu-advisor-card__avatar {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: var(--cu-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
}

.cu-advisor-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.cu-advisor-card__body span,
.cu-advisor-card__body small {
  color: var(--cu-muted);
  font-size: 12px;
  font-weight: 700;
}

.cu-advisor-card__body strong {
  color: var(--cu-ink);
  font-size: 15px;
  font-weight: 900;
}

.cu-advisor-card__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cu-contact-btn {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 20px;
}

.cu-contact-btn--call {
  background: #eef2fb;
  color: var(--cu-navy);
}

.cu-contact-btn--whatsapp {
  background: #e8f5ee;
  color: #128c4a;
  font-size: 24px;
}

.cu-whatsapp-btn {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: #e8f5ee;
  color: #128c4a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 24px;
}

.cu-bottom-nav {
  position: fixed;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 300;
  width: min(calc(100% - 24px), 520px);
  height: 76px;
  border-radius: 28px;
  background: rgba(17, 24, 39, 0.94);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.30);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  padding: 8px;
}

.cu-bottom-nav__item {
  min-width: 0;
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  border-radius: 20px;
  transition: background-color .1s ease, transform .1s ease;
}

/* No loading indicator for navigation (deliberately, see client-nav.js) —
   but with nothing at all happening on tap, even a fast swap can feel
   unresponsive since there's no confirmation the tap registered. This is
   immediate (no network round-trip involved), unlike a spinner. */
.cu-bottom-nav__item:active {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(0.94);
}

.cu-bottom-nav__icon {
  width: 34px;
  height: 34px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.cu-bottom-nav__item.is-active {
  color: #fff;
}

.cu-bottom-nav__item.is-active .cu-bottom-nav__icon {
  background: var(--cu-gold);
  color: var(--cu-navy);
  box-shadow: 0 12px 26px rgba(246, 168, 0, 0.32);
}

@media (max-width: 767.98px) {
  .cu-content {
    padding: 8px 14px 20px;
  }

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

  .cu-stat-card {
    min-height: 132px;
  }

  .cu-action-grid {
    grid-template-columns: 1fr;
  }

  .cu-page-head {
    align-items: flex-start;
  }

  .cu-quote-card__top,
  .cu-quote-card__meta {
    align-items: flex-start;
  }

  .cu-document-row {
    align-items: flex-start;
  }

  .cu-document-row .cu-small-btn {
    padding: 8px 10px;
  }

  .cu-notification-menu {
    width: min(330px, calc(100vw - 28px));
    margin-top: 10px !important;
  }

  .cu-hospi-modal__card {
    bottom: calc(92px + env(safe-area-inset-bottom));
    padding: 20px;
  }

  .cu-hospi-modal__card h2 {
    font-size: 24px;
  }

  .cu-hospi-modal__actions {
    flex-direction: column-reverse;
  }

  .cu-hospi-modal__actions .cu-small-btn,
  .cu-hospi-modal__actions .cu-small-btn--primary {
    width: 100%;
    justify-content: center;
  }

  .cu-hospi-shell {
    grid-template-columns: 1fr;
  }

  .cu-hospi-grid {
    grid-template-columns: 1fr;
  }
}
/* Customer App Refresh Section Ends */

/* ── Notifications (mobile card list) ── */
.m-notif-card-wrap {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0 !important;
}

@media (min-width: 768px) {
  .m-notif-card-wrap {
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 1.5rem !important;
  }
}

.m-notif-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.m-notif-card {
  display: flex;
  align-items: stretch;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 12px;
}

.m-notif-card.is-unread {
  background: var(--orange-light);
  border-color: var(--orange-mid);
}

.m-notif-card__select {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 0 2px;
}

.m-notif-card__select .form-check-input {
  width: 18px;
  height: 18px;
}

.m-notif-card__body {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.m-notif-chip {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.m-notif-chip.is-navy { background: rgba(15, 91, 120, 0.10); color: var(--teal); }
.m-notif-chip.is-gold { background: rgba(216, 90, 48, 0.12); color: var(--orange); }
.m-notif-chip.is-green { background: var(--green-light); color: var(--green); }
.m-notif-chip.is-red { background: var(--red-light); color: var(--red); }

/* ── Notifications (desktop list) ── */
.cu-notif-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cu-notif-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.cu-notif-row:hover {
  border-color: var(--orange-mid);
  box-shadow: var(--shadow-lg);
  color: inherit;
}

.cu-notif-row.is-unread {
  background: var(--orange-light);
  border-color: var(--orange-mid);
}

.cu-notif-row__select {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.cu-notif-row__select .form-check-input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.cu-notif-chip {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.cu-notif-chip.is-navy { background: rgba(15, 91, 120, 0.10); color: var(--teal); }
.cu-notif-chip.is-gold { background: rgba(216, 90, 48, 0.12); color: var(--orange); }
.cu-notif-chip.is-green { background: var(--green-light); color: var(--green); }
.cu-notif-chip.is-red { background: var(--red-light); color: var(--red); }

.cu-notif-row__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cu-notif-row__title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
}

.cu-notif-row.is-unread .cu-notif-row__title {
  font-weight: 800;
}

.cu-notif-row__msg {
  font-size: 13px;
  color: var(--text-mid);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cu-notif-row__time {
  flex: 0 0 auto;
  font-size: 12.5px;
  color: var(--text-muted);
  white-space: nowrap;
}

.m-notif-card__text {
  flex: 1;
  min-width: 0;
}

.m-notif-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.is-unread .m-notif-card__title {
  font-weight: 800;
}

.m-notif-card__msg {
  font-size: 12.5px;
  color: var(--text-mid);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.m-notif-card__time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}

.m-notif-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 60px 20px;
  color: var(--text-mid);
  font-size: 14px;
}

.m-notif-empty i {
  font-size: 28px;
  opacity: 0.5;
}

@media (max-width: 767.98px) {
  #bulk-actions-bar {
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    border-radius: var(--radius-sm);
    color: var(--text);
  }
}

/* ── Header title (used by pages that pass $headerTitle to the header include) ── */
.cu-app-header__title {
  flex: 1;
  min-width: 0;
  margin: 0 12px;
  color: var(--cu-navy);
  font-size: 17px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── About the Developers ── */
.cu-dev-link {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(11, 43, 107, 0.08);
  border-radius: 24px;
  box-shadow: var(--cu-shadow);
  color: var(--cu-muted);
  text-decoration: none;
}

.cu-dev-link__icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #fff3d7;
  color: #c47a00;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cu-dev-link__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.cu-dev-link__text strong {
  color: var(--cu-ink);
  font-size: 14px;
}

.cu-dev-link__text small {
  font-size: 12px;
}

.cu-dev-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 32px 22px 26px;
  margin: 4px 0 16px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 94, 39, 0.22), transparent 62%),
    rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 94, 39, 0.2);
  border-radius: 30px;
  box-shadow: var(--cu-shadow);
}

.cu-dev-hero__logo {
  display: block;
  width: 68px;
  height: auto;
  margin: 0 auto 18px;
}

.cu-dev-hero__eyebrow {
  color: #ff5e27; /* matches the Pro Society logo */
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3em;
  margin-bottom: 14px;
}

.cu-dev-hero h1 {
  margin: 0 0 16px;
  color: var(--cu-ink);
  font-size: min(6.4vw, 30px);
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.cu-dev-hero h1 span {
  display: block;
  white-space: nowrap;
}

.cu-dev-hero p {
  margin: 0 auto 24px;
  color: var(--cu-muted);
  font-size: 14.5px;
  line-height: 1.7;
}

.cu-dev-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cu-dev-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.05s ease;
}

.cu-dev-btn i {
  font-size: 22px;
}

.cu-dev-btn:active {
  transform: scale(0.98);
}

.cu-dev-btn--whatsapp {
  background: #25d366;
  color: #062b15;
}

.cu-dev-btn--outline {
  background: transparent;
  color: var(--cu-ink);
  border: 1px solid rgba(11, 43, 107, 0.18);
}

.cu-dev-btn--outline i {
  color: #0a66c2; /* LinkedIn blue */
}

.cu-dev-site {
  margin-top: 8px;
  color: var(--cu-muted);
  font-size: 16px;
  text-decoration: none;
}

.cu-dev-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cu-dev-card {
  padding: 20px 20px 18px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(11, 43, 107, 0.1);
  border-radius: 28px;
  box-shadow: var(--cu-shadow);
}

.cu-dev-card h2 {
  margin: 0 0 8px;
  color: var(--cu-ink);
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.005em;
}

.cu-dev-card p {
  margin: 0;
  color: var(--cu-muted);
  font-size: 15px;
  line-height: 1.55;
}

.cu-dev-foot {
  margin: 20px 12px 0;
  text-align: center;
  color: var(--cu-muted);
  font-size: 14px;
  line-height: 1.5;
}
