:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #eaf2ff;
  --ink: #171b2a;
  --text: #252936;
  --muted: #667085;
  --soft: #8b95a7;
  --bg: #f6f8fc;
  --panel: #f8fbff;
  --card: #ffffff;
  --line: #dde6f3;
  --line-soft: rgba(210, 218, 232, .72);
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #ef4444;
  --shadow: 0 18px 46px rgba(30, 58, 138, .08);
  --shadow-strong: 0 28px 70px rgba(30, 58, 138, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 88% 4%, rgba(37,99,235,.10), transparent 30%),
    radial-gradient(circle at 28% 0%, rgba(255,255,255,.95), transparent 26%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.app-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
}

.side-nav {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 12px 16px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 20px;
  background: rgba(248, 253, 255, .92);
  border-right: 1px solid rgba(37,99,235,.12);
  box-shadow: 8px 0 30px rgba(30,58,138,.05);
  backdrop-filter: blur(12px);
  z-index: 60;
}

.side-head {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px 0 4px;
}
.side-brand img { width: 146px; height: auto; }
.side-close {
  display: none;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #eef5ff;
  color: #34405a;
  font-size: 26px;
  line-height: 1;
}

.side-menu {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.side-link {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #27324a;
  background: transparent;
  font-size: 15px;
  font-weight: 760;
  text-align: left;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}
.side-link.as-button { width: 100%; }
.side-link:hover,
.side-link.active {
  color: #0d3a93;
  background: #dcecff;
}
.side-link.active { box-shadow: inset 3px 0 0 rgba(37,99,235,.76); }
.side-link.logout { margin-top: auto; color: #475467; }
.side-link.disabled { opacity: .58; cursor: default; pointer-events: none; }
.side-icon {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  color: #101828;
  font-size: 16px;
  line-height: 1;
}

.sidebar-scrim {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(15, 23, 42, .38);
  backdrop-filter: blur(4px);
}

.main-area {
  min-width: 0;
  padding: 0 38px 54px;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(246,248,252,.86);
  backdrop-filter: blur(14px);
}
.hamburger-btn,
.top-icon {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: #1d2939;
  background: #fff;
  box-shadow: 0 9px 22px rgba(30,58,138,.08);
}
.hamburger-btn { display: none; font-size: 20px; }
.mobile-brand { display: none; }
.mobile-brand img { width: 128px; }
.topbar-spacer { flex: 1; }
.top-icon {
  position: relative;
  font-size: 21px;
  font-weight: 900;
}
.bell-dot {
  position: absolute;
  top: 10px;
  right: 11px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,.16);
}
.profile-chip {
  min-height: 42px;
  padding: 4px 12px 4px 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #344054;
  background: #fff;
  box-shadow: 0 9px 22px rgba(30,58,138,.08);
  font-size: 13px;
  font-weight: 850;
}
.profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
}

.hero-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(420px, .95fr);
  gap: 28px;
  align-items: end;
  margin: 20px 0 28px;
}
.eyebrow {
  margin: 0 0 9px;
  color: var(--blue);
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
}
.hero-row h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(34px, 4vw, 50px);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 860;
}
.hero-row p:not(.eyebrow) {
  margin: 11px 0 0;
  color: #667085;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 650;
}
.money-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.money-card {
  min-height: 122px;
  padding: 17px;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
}
.money-card span {
  display: block;
  color: #667085;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 850;
}
.money-card strong {
  display: block;
  margin-top: 11px;
  color: #111827;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1;
  letter-spacing: -.04em;
  font-weight: 900;
}
.money-card small {
  display: block;
  margin-top: 10px;
  color: #98a2b3;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 750;
}

.application-card,
.proof-card,
.service-card {
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow);
}
.application-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 26px;
  align-items: end;
  padding: 28px;
  border-radius: 28px;
  margin-bottom: 24px;
}
.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.card-meta-row span:first-child {
  color: var(--blue);
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
}
.soft-pill,
.mini-pill,
.mini-btn,
.logout-btn {
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
}
.soft-pill {
  padding: 10px 15px;
  color: var(--blue);
  background: #e8efff;
}
.soft-pill.attention { color: #0b5ed7; background: #dbeafe; }
.soft-pill.progress { color: #1d4ed8; background: #e8efff; }
.soft-pill.success { color: #137333; background: #dcfce7; }
.application-card h2,
.section-title-row h2 {
  margin: 0;
  color: #202636;
  letter-spacing: -.045em;
  font-weight: 850;
}
.application-card h2 { font-size: 30px; line-height: 1.05; }
.application-card p {
  max-width: 670px;
  margin: 14px 0 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 650;
}
.progress-block {
  max-width: 680px;
  margin-top: 22px;
}
.progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #7a8497;
  font-size: 12px;
  font-weight: 800;
}
.progress-label strong { color: #445069; font-weight: 850; }
.progress-track {
  height: 9px;
  margin-top: 9px;
  border-radius: 999px;
  background: #e5ecf6;
  overflow: hidden;
}
.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
}
.application-action {
  display: grid;
  gap: 12px;
  justify-items: stretch;
}
.primary-btn {
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  box-shadow: 0 16px 28px rgba(37,99,235,.22);
  font-size: 14px;
  font-weight: 900;
  transition: transform .16s ease, box-shadow .16s ease;
}
.primary-btn:hover,
.mini-btn:hover { transform: translateY(-1px); }
.primary-btn.is-static {
  cursor: default;
  pointer-events: none;
  box-shadow: none;
  background: #e7eefc;
  color: #1d4ed8;
}
.application-action small {
  color: #7c8799;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 750;
  text-align: center;
}

.proof-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 370px);
  gap: 24px;
  align-items: start;
  padding: 28px;
  margin: 0 0 24px;
  border-radius: 28px;
}
.proof-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--blue);
  background: #e8efff;
  font-size: 12px;
  font-weight: 900;
}
.proof-copy h2 {
  margin: 0;
  color: #202636;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -.045em;
  font-weight: 850;
}
.proof-copy p {
  margin: 12px 0 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 650;
}
.proof-admin-note,
.proof-success,
.proof-error {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 750;
}
.proof-admin-note { background: #fff7ed; color: #92400e; }
.proof-success { background: #dcfce7; color: #137333; }
.proof-error { background: #fee2e2; color: #991b1b; }
.proof-upload-form { display: grid; gap: 13px; }
.proof-file-field,
.proof-note-field {
  display: grid;
  gap: 8px;
  color: #445069;
  font-size: 13px;
  font-weight: 850;
}
.proof-file-field input,
.proof-note-field textarea {
  width: 100%;
  border: 1px solid #d9e2f2;
  border-radius: 18px;
  background: #f8fbff;
  color: var(--text);
  outline: none;
}
.proof-file-field input { padding: 13px; }
.proof-note-field textarea {
  min-height: 92px;
  padding: 14px 16px;
  resize: vertical;
}
.proof-upload-form small {
  color: #7c8799;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 750;
}
.proof-waiting-box {
  min-height: 180px;
  padding: 24px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  gap: 10px;
  text-align: center;
  color: #445069;
  background: #f8fbff;
  border: 1px solid #e4e9f2;
}
.proof-waiting-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  font-size: 26px;
  font-weight: 900;
}
.proof-waiting-box strong { font-size: 16px; }
.proof-waiting-box span { color: #7c8799; font-size: 12px; font-weight: 750; }

.services-section { margin-top: 6px; }
.section-title-row { margin-bottom: 16px; }
.section-title-row h2 { font-size: 28px; line-height: 1; }
.section-title-row p {
  margin: 10px 0 0;
  color: #8a94a6;
  font-size: 14px;
  font-weight: 650;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.service-card {
  min-height: 190px;
  padding: 22px;
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.service-card.disabled { opacity: .82; }
.service-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  font-size: 20px;
}
.service-copy h3 {
  margin: 0;
  color: #344054;
  font-size: 16px;
  line-height: 1.15;
  font-weight: 850;
}
.service-copy p {
  margin: 8px 0 0;
  color: #758095;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 650;
}
.mini-btn,
.mini-pill {
  min-width: 64px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}
.mini-btn { color: #fff; background: linear-gradient(135deg, var(--blue), var(--blue-dark)); transition: transform .16s ease; }
.mini-pill { color: #8190a8; background: #e9eef6; }
.mini-pill.success { color: #137333; background: #dcfce7; }

/* Customer Messenger-style Chat */
.customer-chat-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  font-family: inherit;
}
.customer-chat-launcher {
  min-height: 56px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  box-shadow: 0 18px 36px rgba(37,99,235,.26);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}
.chat-launch-icon { font-size: 20px; line-height: 1; }
.chat-unread-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239,68,68,.18);
}
.customer-chat-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: min(380px, calc(100vw - 28px));
  height: min(560px, calc(100vh - 110px));
  border-radius: 24px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  background: rgba(255, 255, 255, .98);
  border: 1px solid rgba(210, 218, 232, .88);
  box-shadow: 0 28px 70px rgba(88, 100, 128, .22);
  backdrop-filter: blur(12px);
}
.customer-chat-head {
  min-height: 72px;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
}
.customer-chat-head strong { display: block; font-size: 16px; line-height: 1; }
.customer-chat-head span { display: block; margin-top: 6px; color: rgba(255,255,255,.78); font-size: 12px; font-weight: 750; }
.customer-chat-head button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255,255,255,.16);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.customer-chat-messages {
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f8fbff;
}
.customer-chat-empty {
  margin: auto;
  max-width: 250px;
  color: #6b7280;
  text-align: center;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}
.chat-message { max-width: 82%; display: grid; gap: 4px; }
.chat-message-bubble {
  padding: 11px 13px;
  border-radius: 18px;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 13.5px;
  line-height: 1.38;
  font-weight: 650;
}
.chat-message-time { color: #8b95a7; font-size: 10.5px; font-weight: 750; }
.chat-message.customer { align-self: flex-end; }
.chat-message.customer .chat-message-bubble { color: #fff; background: linear-gradient(135deg, var(--blue), var(--blue-dark)); border-bottom-right-radius: 6px; }
.chat-message.customer .chat-message-time { text-align: right; }
.chat-message.admin { align-self: flex-start; }
.chat-message.admin .chat-message-bubble { color: #252936; background: #fff; border: 1px solid #e4e9f2; border-bottom-left-radius: 6px; }
.customer-chat-form {
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  background: #fff;
  border-top: 1px solid rgba(210, 218, 232, .82);
}
.customer-chat-form textarea {
  min-height: 46px;
  max-height: 120px;
  resize: vertical;
  border: 1px solid #d9e2f2;
  border-radius: 18px;
  padding: 12px 14px;
  color: #252936;
  background: #f8fbff;
  outline: none;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
}
.customer-chat-form textarea:focus { border-color: rgba(37,99,235,.55); box-shadow: 0 0 0 4px rgba(37,99,235,.10); }
.customer-chat-form button {
  min-width: 76px;
  border: 0;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}
.customer-chat-form button:disabled { opacity: .6; cursor: not-allowed; }
.customer-chat-panel[hidden] { display: none !important; }

@media (max-width: 1180px) {
  .app-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .main-area { padding-left: 28px; padding-right: 28px; }
  .hero-row { grid-template-columns: 1fr; align-items: start; }
  .money-overview { max-width: 980px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card { min-height: 152px; }
}

@media (max-width: 820px) {
  body.sidebar-open { overflow: hidden; }
  .app-layout { display: block; }
  .side-nav {
    position: fixed;
    left: 0;
    top: 0;
    width: min(86vw, 390px);
    transform: translateX(-104%);
    transition: transform .22s ease;
    border-radius: 0 28px 28px 0;
    box-shadow: 24px 0 70px rgba(15,23,42,.24);
  }
  body.sidebar-open .side-nav { transform: translateX(0); }
  .side-close { display: grid; place-items: center; }
  .main-area { padding: 0 18px 36px; }
  .topbar { min-height: 70px; }
  .hamburger-btn { display: inline-grid; }
  .mobile-brand { display: inline-flex; }
  .profile-name { display: none; }
  .profile-chip { padding-right: 5px; }
  .top-icon { width: 40px; height: 40px; }
  .hero-row { margin-top: 14px; gap: 18px; }
  .hero-row h1 { font-size: 34px; }
  .money-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .money-card {
    min-height: 104px;
    padding: 16px;
  }
  .money-card span {
    font-size: 11.5px;
    line-height: 1.2;
  }
  .money-card strong {
    margin-top: 10px;
    font-size: 28px;
  }
  .money-card small {
    margin-top: 8px;
    font-size: 10.8px;
  }
  .application-card {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 23px 20px;
    border-radius: 24px;
  }
  .application-card h2 { font-size: 26px; }
  .application-action small { text-align: left; }
  .proof-card { grid-template-columns: 1fr; padding: 22px 20px; border-radius: 24px; }
  .proof-copy h2 { font-size: 24px; }
  .service-grid { grid-template-columns: 1fr; gap: 12px; }
  .service-card {
    min-height: 104px;
    padding: 18px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }
  .customer-chat-widget { right: 14px; bottom: 14px; }
  .customer-chat-launcher { min-height: 52px; padding: 0 16px; }
  .chat-launch-text { display: none; }
  .customer-chat-panel { right: -2px; bottom: 66px; height: min(530px, calc(100vh - 96px)); border-radius: 22px; }
}

@media (max-width: 430px) {
  .main-area { padding-left: 14px; padding-right: 14px; }
  .hero-row h1 { font-size: 31px; }
  .topbar { gap: 8px; }
  .mobile-brand img { width: 116px; }
  .money-overview { gap: 9px; }
  .money-card {
    min-height: 92px;
    padding: 14px;
    border-radius: 20px;
  }
  .money-card span { font-size: 11px; }
  .money-card strong {
    margin-top: 8px;
    font-size: 25px;
  }
  .money-card small {
    margin-top: 7px;
    font-size: 10px;
    line-height: 1.18;
  }
  .application-card,
  .proof-card { padding: 20px 16px; }
  .service-card { grid-template-columns: auto 1fr; }
  .mini-btn,
  .mini-pill { grid-column: 2; justify-self: start; }
}

/* =========================
   Workable dashboard pages
========================= */
.page-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 20px 0 24px;
}
.page-title-row h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(34px, 4vw, 50px);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 860;
}
.page-title-row p:not(.eyebrow) {
  max-width: 680px;
  margin: 11px 0 0;
  color: #667085;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 650;
}
.portal-card {
  margin-bottom: 24px;
  padding: 26px;
  border: 1px solid var(--line-soft);
  border-radius: 28px;
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow);
}
.primary-btn.compact {
  width: fit-content;
  min-height: 46px;
  padding: 0 20px;
}
.empty-state {
  min-height: 190px;
  padding: 26px;
  border: 1px dashed #c8d5ea;
  border-radius: 24px;
  display: grid;
  place-items: center;
  gap: 10px;
  text-align: center;
  background: #f8fbff;
  color: #667085;
}
.empty-state strong {
  color: #202636;
  font-size: 20px;
  font-weight: 900;
}
.empty-state span {
  max-width: 520px;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 650;
}
.customer-detail-grid,
.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.detail-tile {
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: #f8fbff;
}
.detail-tile span {
  display: block;
  color: #667085;
  font-size: 12px;
  font-weight: 850;
}
.detail-tile strong {
  display: block;
  margin-top: 12px;
  color: #111827;
  font-size: 19px;
  line-height: 1.2;
  font-weight: 900;
  word-break: break-word;
}
.info-card-grid,
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.info-card-grid article,
.support-contact-card {
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  background: #f8fbff;
}
.info-card-grid span,
.support-contact-card span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}
.info-card-grid strong,
.support-contact-card strong {
  display: block;
  margin-top: 9px;
  color: #202636;
  font-size: 20px;
  line-height: 1.15;
  font-weight: 900;
}
.info-card-grid p,
.support-contact-card p {
  margin: 10px 0 16px;
  color: #667085;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 650;
}
.table-panel table {
  width: 100%;
  border-collapse: collapse;
}
.table-panel th,
.table-panel td {
  padding: 13px 12px;
  border-bottom: 1px solid #e5ecf6;
  text-align: left;
  font-size: 13px;
}
.table-panel th {
  color: #667085;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.responsive-table { overflow-x: auto; }
.notification-list { display: grid; gap: 12px; }
.notification-item {
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  background: #f8fbff;
}
.notification-item.unread {
  border-color: rgba(37,99,235,.28);
  box-shadow: inset 4px 0 0 var(--blue);
}
.notification-item strong {
  display: block;
  color: #202636;
  font-size: 15px;
  font-weight: 900;
}
.notification-item p {
  margin: 7px 0 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 650;
}
.notification-item time {
  flex: 0 0 auto;
  color: #98a2b3;
  font-size: 12px;
  font-weight: 750;
}
.message-center-card {
  min-height: 350px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  gap: 12px;
}
.message-center-icon {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  font-size: 30px;
}
.message-center-card h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -.045em;
}
.message-center-card p {
  max-width: 520px;
  margin: 0;
  color: #667085;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 650;
}
.support-grid { margin-bottom: 24px; }
.support-contact-card { min-height: 210px; display: flex; flex-direction: column; align-items: flex-start; }
.support-contact-card .mini-btn,
.support-contact-card .mini-pill { margin-top: auto; border: 0; }
.support-form-card { max-width: 820px; }
.portal-form { display: grid; gap: 14px; }
.portal-form label { display: grid; gap: 8px; color: #445069; font-size: 13px; font-weight: 850; }
.portal-form input,
.portal-form textarea {
  width: 100%;
  border: 1px solid #d9e2f2;
  border-radius: 18px;
  background: #f8fbff;
  color: var(--text);
  outline: none;
}
.portal-form input { min-height: 52px; padding: 0 16px; }
.portal-form textarea { padding: 14px 16px; resize: vertical; }
.portal-form input:focus,
.portal-form textarea:focus { border-color: rgba(37,99,235,.55); box-shadow: 0 0 0 4px rgba(37,99,235,.10); }

@media (max-width: 1180px) {
  .detail-grid,
  .customer-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info-card-grid,
  .support-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .page-title-row { margin-top: 14px; }
  .page-title-row h1 { font-size: 34px; }
  .portal-card { padding: 22px 20px; border-radius: 24px; }
  .detail-grid,
  .customer-detail-grid { grid-template-columns: 1fr; }
  .notification-item { flex-direction: column; }
}

/* My Portal destination setup */
.portal-title-split {
  align-items: stretch;
}
.portal-status-card {
  min-width: 280px;
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
}
.portal-status-card span,
.form-section-head span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.portal-status-card strong {
  display: block;
  margin-top: 8px;
  color: #111827;
  font-size: 20px;
  line-height: 1.15;
  font-weight: 900;
}
.portal-status-card small {
  display: block;
  margin-top: 8px;
  color: #667085;
  font-size: 13px;
  font-weight: 650;
}
.portal-alert {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 800;
}
.portal-alert.success { background: #ecfdf3; color: #027a48; border: 1px solid #abefc6; }
.portal-alert.error { background: #fff1f3; color: #b42318; border: 1px solid #fecdd6; }
.destination-form-card { overflow: visible; }
.portal-destination-form {
  display: grid;
  gap: 22px;
}
.form-section-head { display: grid; gap: 7px; }
.form-section-head.compact { margin-top: 8px; }
.form-section-head h2 {
  margin: 0;
  color: #111827;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -.04em;
  font-weight: 900;
}
.form-section-head p {
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 650;
}
.destination-choice-grid,
.method-picker,
.mobile-app-grid {
  display: grid;
  gap: 12px;
}
.destination-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.method-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mobile-app-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.choice-tile,
.method-tile,
.mobile-app-tile {
  position: relative;
  min-height: 118px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  display: grid;
  align-content: start;
  gap: 9px;
  background: #f8fbff;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background .16s ease;
}
.choice-tile:hover,
.method-tile:hover,
.mobile-app-tile:hover {
  transform: translateY(-1px);
  border-color: rgba(37,99,235,.32);
  box-shadow: 0 14px 34px rgba(30,58,138,.09);
}
.choice-tile input,
.method-tile input,
.mobile-app-tile input {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}
.choice-tile:has(input:checked),
.method-tile:has(input:checked),
.mobile-app-tile:has(input:checked) {
  background: #eef6ff;
  border-color: rgba(37,99,235,.55);
  box-shadow: inset 0 0 0 1px rgba(37,99,235,.2), var(--shadow);
}
.choice-icon,
.method-icon,
.app-logo {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: #eaf2ff;
  font-size: 21px;
  font-weight: 900;
  color: #0d3a93;
}
.choice-tile strong,
.method-tile strong,
.mobile-app-tile strong {
  color: #202636;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 900;
}
.choice-tile small {
  color: #667085;
  font-size: 12.5px;
  line-height: 1.45;
  font-weight: 650;
}
.destination-panel,
.direct-method-panel,
.guest-pay-fields,
.portal-login-fields,
.manual-portal-panel {
  display: grid;
  gap: 16px;
}
.destination-panel[hidden],
.direct-method-panel[hidden],
.guest-pay-fields[hidden],
.portal-login-fields[hidden],
.manual-portal-panel[hidden] { display: none !important; }
.portal-question-box,
.portal-mini-note,
.authorization-box {
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: #f8fbff;
}
.portal-question-box > label {
  display: block;
  margin-bottom: 12px;
  color: #2d3748;
  font-size: 14px;
  font-weight: 900;
}
.inline-radio-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.inline-radio-row label {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid #d9e2f2;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #344054;
  font-size: 13px;
  font-weight: 850;
}
.inline-radio-row input { accent-color: var(--blue); }
.portal-field-grid {
  display: grid;
  gap: 14px;
}
.portal-field-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-label {
  display: grid;
  gap: 8px;
  color: #445069;
  font-size: 13px;
  font-weight: 850;
}
.field-label.full { grid-column: 1 / -1; }
.field-label input,
.field-label textarea,
.field-label select {
  width: 100%;
  min-height: 52px;
  border: 1px solid #d9e2f2;
  border-radius: 18px;
  padding: 0 16px;
  background: #fff;
  color: var(--text);
  outline: none;
  font-weight: 700;
}
.field-label textarea { min-height: 112px; padding: 14px 16px; resize: vertical; }
.field-label input:focus,
.field-label textarea:focus,
.field-label select:focus { border-color: rgba(37,99,235,.55); box-shadow: 0 0 0 4px rgba(37,99,235,.10); }
.portal-search-wrap { position: relative; }
.portal-search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: 82px;
  z-index: 40;
  max-height: 365px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid rgba(37,99,235,.18);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 22px 55px rgba(30,58,138,.16);
}
.search-result-item {
  width: 100%;
  min-height: 60px;
  padding: 8px 10px;
  border: 0;
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  text-align: left;
}
.search-result-item:hover { background: #eef6ff; }
.search-result-icon,
.search-result-fallback {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: #eef6ff;
  color: #0d3a93;
  font-size: 12px;
  font-weight: 900;
  overflow: hidden;
}
.search-result-icon img,
.app-logo img { width: 24px; height: 24px; object-fit: contain; }
.search-result-item strong { display:block; color:#1d2939; font-size: 14px; font-weight: 900; }
.search-result-item small { display:block; margin-top:3px; color:#667085; font-size: 12px; font-weight: 650; }
.search-result-empty { padding: 14px; color: #667085; font-size: 13px; font-weight: 750; }
.manual-portal-btn {
  justify-self: start;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 12.5px;
  font-weight: 900;
  padding: 0;
}
.card-badges {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 42px;
}
.card-badges b {
  min-width: 38px;
  height: 25px;
  padding: 0 7px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #111827;
  color: #fff;
  font-size: 10px;
  letter-spacing: .02em;
}
.authorization-box {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}
.authorization-box input { margin-top: 2px; accent-color: var(--blue); }
.portal-form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.mini-btn.light {
  background: #eef6ff;
  color: #0d3a93;
}
.submitted-summary-card { margin-top: 20px; }
@media (max-width: 980px) {
  .portal-title-split,
  .destination-choice-grid,
  .method-picker,
  .portal-field-grid.two { grid-template-columns: 1fr; }
  .mobile-app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-search-results { position: static; margin-top: -3px; }
}
@media (max-width: 560px) {
  .mobile-app-grid { grid-template-columns: 1fr; }
  .choice-tile, .method-tile, .mobile-app-tile { min-height: auto; }
  .portal-form-actions .primary-btn, .portal-form-actions .mini-btn { width: 100%; justify-content: center; }
}

/* =========================
   Rentrel customer UI foundation v1
   Modern floating sidebar + dashboard home shell
========================= */
:root {
  --rentrel-blue: #145DFF;
  --rentrel-blue-2: #0B46D8;
  --rentrel-sky: #EAF3FF;
  --rentrel-ink: #081633;
  --rentrel-muted: #6B7895;
  --rentrel-soft-bg: #F3F7FF;
  --rentrel-card: rgba(255,255,255,.88);
  --rentrel-border: rgba(179, 197, 230, .58);
  --rentrel-glow: 0 30px 90px rgba(20, 93, 255, .13);
  --rentrel-card-shadow: 0 18px 55px rgba(11, 43, 97, .08);
}
body {
  background:
    radial-gradient(circle at 88% 12%, rgba(20,93,255,.16), transparent 26%),
    radial-gradient(circle at 18% 2%, rgba(100,181,255,.18), transparent 28%),
    linear-gradient(135deg, #f9fcff 0%, #f1f6ff 48%, #eef4ff 100%);
  color: var(--rentrel-ink);
}
.app-layout {
  grid-template-columns: 284px minmax(0, 1fr);
  gap: 0;
  padding: 22px 26px 22px 18px;
}
.side-nav {
  position: sticky;
  top: 22px;
  height: calc(100vh - 44px);
  padding: 24px 18px 18px;
  border: 1px solid rgba(198, 213, 238, .58);
  border-radius: 30px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 28px 90px rgba(9, 35, 84, .09);
  backdrop-filter: blur(22px);
  overflow: hidden;
}
.side-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.74), rgba(255,255,255,.44));
  pointer-events: none;
}
.side-head,
.side-menu { position: relative; z-index: 1; }
.side-brand img { width: 152px; }
.side-menu { gap: 9px; padding-top: 6px; }
.side-link {
  min-height: 50px;
  border-radius: 18px;
  padding: 0 14px;
  color: #42516D;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: -.01em;
}
.side-link:hover {
  color: var(--rentrel-blue);
  background: rgba(231, 240, 255, .72);
  transform: translateX(2px);
}
.side-link.active {
  color: var(--rentrel-blue);
  background: linear-gradient(135deg, rgba(232,241,255,.98), rgba(245,249,255,.88));
  box-shadow: inset 0 0 0 1px rgba(20,93,255,.10), 0 10px 24px rgba(20,93,255,.08);
}
.side-link.active::before {
  content: "";
  width: 4px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--rentrel-blue), #63A1FF);
  position: absolute;
  left: 0;
}
.side-link.logout { margin-top: auto; }
.side-icon {
  width: 30px;
  height: 30px;
  border-radius: 12px;
  background: rgba(20,93,255,.07);
  color: #1c376c;
  font-size: 15px;
}
.side-link.active .side-icon {
  color: #fff;
  background: linear-gradient(135deg, var(--rentrel-blue), var(--rentrel-blue-2));
  box-shadow: 0 10px 20px rgba(20,93,255,.2);
}
.main-area {
  padding: 0 18px 46px 28px;
  max-width: 1560px;
  width: 100%;
  margin: 0 auto;
}
.topbar {
  min-height: 76px;
  top: 16px;
  margin: 0 0 10px;
  padding: 0 2px;
  background: rgba(247,250,255,.72);
  border-radius: 26px;
  backdrop-filter: blur(20px);
}
.top-icon,
.profile-chip,
.hamburger-btn {
  border: 1px solid rgba(198, 213, 238, .58);
  box-shadow: 0 14px 34px rgba(9,35,84,.08);
}
.profile-chip { padding: 5px 13px 5px 5px; }
.profile-avatar { background: linear-gradient(135deg, var(--rentrel-blue), var(--rentrel-blue-2)); }
.home-welcome-row,
.hero-row,
.page-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin: 18px 0 28px;
}
.home-welcome-row h1,
.hero-row h1,
.page-title-row h1 {
  color: var(--rentrel-ink);
  font-size: clamp(40px, 4.2vw, 64px);
  line-height: .92;
  letter-spacing: -.07em;
  font-weight: 920;
}
.home-welcome-row p:not(.eyebrow),
.hero-row p:not(.eyebrow),
.page-title-row p:not(.eyebrow) {
  max-width: 720px;
  color: #60708F;
  font-size: 16px;
  line-height: 1.5;
}
.wave { font-size: .6em; vertical-align: .18em; }
.home-mini-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 14px;
}
.mini-stat-card {
  min-width: 170px;
  padding: 18px 20px;
  border: 1px solid var(--rentrel-border);
  border-radius: 24px;
  background: var(--rentrel-card);
  box-shadow: var(--rentrel-card-shadow);
}
.mini-stat-card span {
  display: block;
  color: var(--rentrel-muted);
  font-size: 12px;
  font-weight: 900;
}
.mini-stat-card strong {
  display: block;
  margin-top: 9px;
  color: var(--rentrel-ink);
  font-size: 17px;
  font-weight: 920;
}
.home-focus-grid {
  display: grid;
  grid-template-columns: minmax(360px, .88fr) minmax(420px, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}
.next-step-panel,
.status-timeline-card,
.amount-summary-section,
.portal-card,
.application-card,
.proof-card,
.money-card,
.service-card {
  border: 1px solid var(--rentrel-border) !important;
  box-shadow: var(--rentrel-card-shadow) !important;
}
.next-step-panel {
  min-height: 278px;
  padding: 32px;
  border-radius: 34px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  align-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 90% 15%, rgba(255,255,255,.32), transparent 24%),
    linear-gradient(135deg, #1262ff 0%, #0747d3 58%, #0936a6 100%);
  box-shadow: 0 28px 80px rgba(20, 93, 255, .26) !important;
}
.next-step-panel::after {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
}
.next-step-copy { position: relative; z-index: 1; }
.next-step-copy span:first-child {
  display: block;
  color: rgba(255,255,255,.76);
  font-size: 13px;
  font-weight: 920;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.next-step-copy h2 {
  margin: 12px 0 0;
  color: #fff;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
  letter-spacing: -.055em;
  font-weight: 920;
}
.next-step-copy p {
  max-width: 460px;
  margin: 14px 0 24px;
  color: rgba(255,255,255,.84);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 650;
}
.white-btn {
  width: fit-content;
  min-width: 190px;
  color: var(--rentrel-blue) !important;
  background: #fff !important;
  box-shadow: 0 18px 38px rgba(0,0,0,.12) !important;
  gap: 10px;
}
.next-step-visual {
  position: relative;
  z-index: 1;
  min-height: 170px;
}
.floating-paper {
  position: absolute;
  right: 18px;
  top: 20px;
  width: 134px;
  height: 112px;
  border-radius: 22px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 22px 50px rgba(2, 25, 75, .18);
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 22px;
}
.floating-paper span {
  height: 10px;
  border-radius: 999px;
  background: #dce9ff;
}
.floating-paper span:nth-child(1) { width: 44px; background: #9ec2ff; }
.floating-paper span:nth-child(2) { width: 76px; }
.floating-paper span:nth-child(3) { width: 56px; }
.floating-check {
  position: absolute;
  right: 0;
  bottom: 18px;
  width: 62px;
  height: 62px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.28);
  font-size: 32px;
  font-weight: 900;
  box-shadow: 0 20px 45px rgba(0,0,0,.14);
}
.status-timeline-card,
.amount-summary-section,
.journey-card,
.help-card-modern {
  padding: 28px;
  border-radius: 34px;
  background: var(--rentrel-card);
  backdrop-filter: blur(18px);
}
.section-title-row.tight {
  margin: 0 0 22px;
  align-items: start;
}
.section-title-row.tight h2 {
  font-size: 22px;
  letter-spacing: -.04em;
  color: var(--rentrel-ink);
}
.section-title-row.tight p {
  margin-top: 6px;
  color: var(--rentrel-muted);
}
.status-timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  position: relative;
  gap: 12px;
  padding-top: 18px;
}
.status-timeline::before {
  content: "";
  position: absolute;
  top: 43px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, rgba(20,93,255,.65), rgba(185,198,221,.6));
}
.timeline-step {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 8px;
}
.timeline-dot {
  width: 50px;
  height: 50px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #fff;
  color: #64748B;
  border: 2px solid #CBD7EA;
  font-weight: 920;
}
.timeline-step.done .timeline-dot,
.timeline-step.current .timeline-dot {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--rentrel-blue), var(--rentrel-blue-2));
  box-shadow: 0 16px 32px rgba(20,93,255,.22);
}
.timeline-step strong {
  color: var(--rentrel-ink);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 920;
}
.timeline-step span {
  color: var(--rentrel-muted);
  font-size: 12px;
  font-weight: 750;
}
.timeline-step.current span { color: var(--rentrel-blue); }
.amount-summary-section { margin-bottom: 24px; }
.rent-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.rent-metric-card,
.money-card {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  padding: 22px;
  border-radius: 26px;
  background: rgba(255,255,255,.74);
}
.rent-metric-card {
  display: flex;
  align-items: center;
  gap: 16px;
}
.metric-icon {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 920;
}
.rent-metric-card.blue .metric-icon { color: var(--rentrel-blue); background: #EAF2FF; }
.rent-metric-card.green .metric-icon { color: #087443; background: #E6F8EF; }
.rent-metric-card.amber .metric-icon { color: #B56703; background: #FFF2DA; }
.rent-metric-card.purple .metric-icon { color: #6D38D8; background: #F1EAFE; }
.rent-metric-card span:not(.metric-icon),
.money-card span {
  display: block;
  color: var(--rentrel-muted);
  font-size: 12px;
  font-weight: 920;
}
.rent-metric-card strong,
.money-card strong {
  display: block;
  margin-top: 8px;
  color: var(--rentrel-ink);
  font-size: clamp(24px, 2.1vw, 32px);
  letter-spacing: -.045em;
  font-weight: 930;
}
.rent-metric-card small,
.money-card small {
  display: block;
  margin-top: 7px;
  color: #8390A7;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 720;
}
.home-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .72fr);
  gap: 24px;
}
.journey-line {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  position: relative;
}
.journey-line::before {
  content: "";
  position: absolute;
  left: 9%;
  right: 9%;
  top: 29px;
  height: 2px;
  background: #D7E2F2;
}
.journey-line div {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}
.journey-line span {
  width: 58px;
  height: 58px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  color: var(--rentrel-blue);
  background: #EAF2FF;
  border: 1px solid rgba(20,93,255,.12);
  font-weight: 930;
}
.journey-line strong { color: var(--rentrel-ink); font-size: 14px; font-weight: 920; }
.journey-line small { color: var(--rentrel-muted); font-size: 12px; line-height: 1.35; font-weight: 720; }
.support-action-row {
  min-height: 78px;
  padding: 15px 16px;
  border: 1px solid rgba(198, 213, 238, .58);
  border-radius: 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  background: rgba(248,251,255,.84);
}
.support-action-row > span {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #EAF2FF;
}
.support-action-row strong { display:block; color: var(--rentrel-ink); font-size: 14px; font-weight: 920; }
.support-action-row small { display:block; margin-top:4px; color: var(--rentrel-muted); font-size: 12px; font-weight: 720; }
.support-action-row b { color: var(--rentrel-blue); font-size: 22px; }
.services-section { display: none !important; }
.portal-card {
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(18px);
  border-radius: 32px;
}
.page-title-row .portal-status-card {
  border-radius: 26px;
  background: rgba(255,255,255,.78);
}
.field-label input,
.field-label textarea,
.field-label select,
.portal-form input,
.portal-form textarea {
  border-radius: 18px;
  background: rgba(255,255,255,.88);
}
.choice-tile,
.method-tile,
.mobile-app-tile {
  border-radius: 24px;
  background: rgba(248,251,255,.86);
}
.customer-chat-launcher {
  box-shadow: 0 20px 48px rgba(20,93,255,.26);
  background: linear-gradient(135deg, var(--rentrel-blue), var(--rentrel-blue-2));
}
@media (max-width: 1280px) {
  .app-layout { grid-template-columns: 258px minmax(0, 1fr); padding-right: 18px; }
  .home-focus-grid, .home-bottom-grid { grid-template-columns: 1fr; }
  .rent-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .home-welcome-row, .hero-row, .page-title-row { grid-template-columns: 1fr; align-items: start; }
  .home-mini-duo { max-width: 100%; }
  .status-timeline { grid-template-columns: repeat(5, minmax(95px, 1fr)); overflow-x: auto; padding-bottom: 8px; }
}
@media (max-width: 820px) {
  .app-layout { padding: 0; }
  .side-nav {
    top: 0;
    height: 100vh;
    border-radius: 0 30px 30px 0;
    border-left: 0;
  }
  .main-area { padding: 0 18px 38px; }
  .topbar { top: 0; min-height: 76px; border-radius: 0; }
  .home-welcome-row h1, .hero-row h1, .page-title-row h1 { font-size: 38px; }
  .home-focus-grid { gap: 18px; }
  .next-step-panel { grid-template-columns: 1fr; min-height: auto; padding: 26px; }
  .next-step-visual { display: none; }
  .status-timeline-card, .amount-summary-section, .journey-card, .help-card-modern { padding: 22px; border-radius: 28px; }
  .rent-metric-grid { grid-template-columns: 1fr; gap: 12px; }
  .journey-line { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journey-line::before { display: none; }
}
@media (max-width: 520px) {
  .home-mini-duo { grid-template-columns: 1fr; }
  .home-welcome-row h1, .hero-row h1, .page-title-row h1 { font-size: 34px; }
  .next-step-copy h2 { font-size: 30px; }
  .rent-metric-card { align-items: flex-start; }
  .status-timeline { grid-template-columns: repeat(5, 100px); }
  .journey-line { grid-template-columns: 1fr; }
}


/* =========================
   Rentrel customer UI foundation v3
   Mobile repair + cleaner typography + non-sticky topbar
========================= */
:root {
  --rentrel-radius: 26px;
  --rentrel-radius-lg: 30px;
  --rentrel-font-main: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
body {
  font-family: var(--rentrel-font-main);
  font-weight: 500;
  letter-spacing: -.012em;
}
.app-layout {
  align-items: start;
}
.main-area {
  min-height: calc(100vh - 44px);
}
.topbar {
  position: relative !important;
  top: auto !important;
  min-height: 58px !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
.top-icon,
.profile-chip,
.hamburger-btn {
  box-shadow: 0 10px 26px rgba(9,35,84,.07) !important;
}
.profile-chip {
  font-weight: 700 !important;
}
.side-link {
  font-weight: 650 !important;
  letter-spacing: -.015em !important;
}
.side-link span:last-child {
  line-height: 1;
}
.side-icon {
  font-weight: 700 !important;
}
.eyebrow {
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .01em !important;
}
.home-welcome-row,
.hero-row,
.page-title-row {
  margin-top: 12px !important;
  margin-bottom: 24px !important;
}
.home-welcome-row h1,
.hero-row h1,
.page-title-row h1 {
  font-size: clamp(36px, 3.6vw, 54px) !important;
  line-height: 1 !important;
  letter-spacing: -.055em !important;
  font-weight: 780 !important;
}
.home-welcome-row p:not(.eyebrow),
.hero-row p:not(.eyebrow),
.page-title-row p:not(.eyebrow) {
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.55 !important;
}
.next-step-copy h2 {
  font-weight: 760 !important;
  letter-spacing: -.04em !important;
}
.next-step-copy p,
.section-title-row.tight p,
.rent-metric-card small,
.money-card small,
.timeline-step span,
.journey-line small,
.support-action-row small {
  font-weight: 500 !important;
}
.section-title-row.tight h2,
.status-timeline-card h2,
.amount-summary-section h2,
.journey-card h2,
.help-card-modern h2,
.portal-card h2 {
  font-weight: 740 !important;
  letter-spacing: -.035em !important;
}
.mini-stat-card strong,
.rent-metric-card strong,
.money-card strong {
  font-weight: 780 !important;
  letter-spacing: -.035em !important;
}
.mini-stat-card span,
.rent-metric-card span:not(.metric-icon),
.money-card span,
.timeline-step strong,
.journey-line strong,
.support-action-row strong {
  font-weight: 650 !important;
}
.next-step-panel {
  min-height: 236px !important;
  border-radius: 30px !important;
}
.status-timeline-card,
.amount-summary-section,
.journey-card,
.help-card-modern,
.portal-card,
.application-card,
.proof-card {
  border-radius: var(--rentrel-radius-lg) !important;
}
.rent-metric-card,
.money-card,
.mini-stat-card,
.support-action-row {
  border-radius: var(--rentrel-radius) !important;
}

@media (min-width: 821px) {
  .mobile-brand { display: none !important; }
  .hamburger-btn { display: none !important; }
  .side-close { display: none !important; }
  .topbar-spacer { flex: 1; }
}

@media (max-width: 1180px) {
  .app-layout {
    grid-template-columns: 246px minmax(0, 1fr) !important;
    padding: 18px 18px 18px 14px !important;
  }
  .main-area {
    padding: 0 10px 38px 22px !important;
  }
}

@media (max-width: 820px) {
  html, body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  body {
    min-height: 100dvh !important;
    background:
      radial-gradient(circle at 92% 4%, rgba(20,93,255,.12), transparent 32%),
      linear-gradient(135deg, #fbfdff 0%, #f3f7ff 55%, #eef5ff 100%) !important;
  }
  body.sidebar-open {
    overflow: hidden !important;
  }
  .app-layout {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 100dvh !important;
    padding: 0 !important;
  }
  .main-area {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 100dvh !important;
    margin: 0 !important;
    padding: 12px 14px 88px !important;
  }
  .topbar {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    position: relative !important;
    top: auto !important;
    z-index: 20 !important;
    width: 100% !important;
    min-height: 54px !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }
  .hamburger-btn {
    display: inline-grid !important;
    flex: 0 0 auto !important;
    width: 42px !important;
    height: 42px !important;
    background: rgba(255,255,255,.88) !important;
  }
  .mobile-brand {
    display: inline-flex !important;
    align-items: center !important;
    min-width: 0 !important;
  }
  .mobile-brand img {
    width: 118px !important;
    height: auto !important;
  }
  .topbar-spacer {
    flex: 1 1 auto !important;
  }
  .top-icon {
    display: inline-grid !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 18px !important;
  }
  .profile-chip {
    min-height: 40px !important;
    padding: 4px !important;
    gap: 0 !important;
  }
  .profile-name {
    display: none !important;
  }
  .profile-avatar {
    width: 32px !important;
    height: 32px !important;
    font-size: 13px !important;
  }
  .side-nav {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    z-index: 1000 !important;
    width: min(82vw, 330px) !important;
    height: 100dvh !important;
    max-height: none !important;
    padding: 22px 16px 16px !important;
    border-radius: 0 26px 26px 0 !important;
    transform: translateX(-106%) !important;
    transition: transform .22s ease !important;
    overflow-y: auto !important;
  }
  body.sidebar-open .side-nav {
    transform: translateX(0) !important;
  }
  .side-close {
    display: grid !important;
    place-items: center !important;
  }
  .sidebar-scrim:not([hidden]) {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 900 !important;
  }
  .side-brand img {
    width: 132px !important;
  }
  .side-link {
    min-height: 46px !important;
    border-radius: 16px !important;
    font-size: 14px !important;
    font-weight: 650 !important;
  }
  .side-icon {
    width: 28px !important;
    height: 28px !important;
    border-radius: 11px !important;
  }
  .home-welcome-row,
  .hero-row,
  .page-title-row {
    display: block !important;
    margin: 6px 0 18px !important;
  }
  .home-welcome-row h1,
  .hero-row h1,
  .page-title-row h1 {
    font-size: 30px !important;
    line-height: 1.05 !important;
    letter-spacing: -.045em !important;
    font-weight: 760 !important;
  }
  .home-welcome-row p:not(.eyebrow),
  .hero-row p:not(.eyebrow),
  .page-title-row p:not(.eyebrow) {
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin-top: 8px !important;
  }
  .home-mini-duo {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin-top: 14px !important;
  }
  .mini-stat-card {
    min-width: 0 !important;
    padding: 14px !important;
    border-radius: 20px !important;
  }
  .mini-stat-card strong {
    font-size: 15px !important;
  }
  .home-focus-grid,
  .home-bottom-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    margin-bottom: 14px !important;
  }
  .next-step-panel {
    display: block !important;
    min-height: 0 !important;
    padding: 22px !important;
    border-radius: 24px !important;
  }
  .next-step-copy span:first-child {
    font-size: 11px !important;
  }
  .next-step-copy h2 {
    font-size: 28px !important;
    line-height: 1.06 !important;
  }
  .next-step-copy p {
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin-bottom: 18px !important;
  }
  .white-btn,
  .primary-btn {
    min-width: 0 !important;
    width: 100% !important;
    min-height: 48px !important;
    justify-content: center !important;
  }
  .next-step-visual {
    display: none !important;
  }
  .status-timeline-card,
  .amount-summary-section,
  .journey-card,
  .help-card-modern,
  .portal-card,
  .proof-card,
  .application-card {
    padding: 18px !important;
    border-radius: 24px !important;
  }
  .section-title-row.tight {
    display: block !important;
    margin-bottom: 16px !important;
  }
  .section-title-row.tight h2 {
    font-size: 20px !important;
  }
  .section-title-row.tight p {
    font-size: 13px !important;
  }
  .status-timeline {
    display: grid !important;
    grid-template-columns: repeat(5, 92px) !important;
    gap: 10px !important;
    overflow-x: auto !important;
    padding: 10px 2px 8px !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .status-timeline::before {
    left: 48px !important;
    right: auto !important;
    width: 386px !important;
    top: 34px !important;
  }
  .timeline-dot {
    width: 42px !important;
    height: 42px !important;
    border-radius: 15px !important;
    font-size: 13px !important;
  }
  .timeline-step strong {
    font-size: 12px !important;
  }
  .timeline-step span {
    font-size: 11px !important;
  }
  .rent-metric-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .rent-metric-card,
  .money-card {
    min-height: 0 !important;
    padding: 16px !important;
    border-radius: 20px !important;
  }
  .rent-metric-card {
    align-items: center !important;
  }
  .metric-icon {
    width: 46px !important;
    height: 46px !important;
    border-radius: 16px !important;
    font-size: 18px !important;
  }
  .rent-metric-card strong,
  .money-card strong {
    font-size: 25px !important;
    margin-top: 4px !important;
  }
  .journey-line {
    grid-template-columns: 1fr 1fr !important;
    gap: 14px !important;
  }
  .journey-line::before {
    display: none !important;
  }
  .journey-line span {
    width: 46px !important;
    height: 46px !important;
    border-radius: 16px !important;
  }
  .support-action-row {
    min-height: 66px !important;
    padding: 12px !important;
    border-radius: 18px !important;
  }
  .support-action-row > span {
    width: 42px !important;
    height: 42px !important;
    border-radius: 15px !important;
  }
  .customer-chat-widget {
    right: 14px !important;
    bottom: 14px !important;
    z-index: 100 !important;
  }
  .customer-chat-launcher {
    min-width: 52px !important;
    min-height: 52px !important;
    padding: 0 15px !important;
    border-radius: 999px !important;
  }
  .chat-launch-text {
    display: none !important;
  }
  .customer-chat-panel {
    right: 0 !important;
    bottom: 66px !important;
    width: min(360px, calc(100vw - 28px)) !important;
    max-width: calc(100vw - 28px) !important;
    height: min(520px, calc(100dvh - 98px)) !important;
    border-radius: 22px !important;
  }
}

@media (max-width: 430px) {
  .main-area {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .mobile-brand img {
    width: 110px !important;
  }
  .top-icon {
    width: 38px !important;
    height: 38px !important;
  }
  .home-welcome-row h1,
  .hero-row h1,
  .page-title-row h1 {
    font-size: 28px !important;
  }
  .home-mini-duo {
    grid-template-columns: 1fr !important;
  }
  .status-timeline {
    grid-template-columns: repeat(5, 88px) !important;
  }
  .journey-line {
    grid-template-columns: 1fr !important;
  }
}

/* =========================
   Rentrel customer UI foundation v4
   Fixed desktop sidebar + fixed mobile topbar + tighter shell spacing
========================= */
@media (min-width: 821px) {
  body {
    overflow-x: hidden !important;
  }
  .app-layout {
    display: block !important;
    min-height: 100vh !important;
    padding: 22px 26px 22px 18px !important;
  }
  .side-nav {
    position: fixed !important;
    left: 18px !important;
    top: 22px !important;
    bottom: 22px !important;
    width: 264px !important;
    height: auto !important;
    max-height: none !important;
    z-index: 80 !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
  }
  .main-area {
    width: auto !important;
    min-width: 0 !important;
    min-height: calc(100vh - 44px) !important;
    margin-left: 294px !important;
    padding: 0 0 54px !important;
  }
  .topbar {
    position: fixed !important;
    top: 34px !important;
    right: 38px !important;
    left: auto !important;
    width: auto !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    pointer-events: none !important;
    z-index: 90 !important;
  }
  .topbar .top-icon,
  .topbar .profile-chip {
    pointer-events: auto !important;
  }
  .home-welcome-row,
  .hero-row,
  .page-title-row {
    margin-top: 8px !important;
  }
  .home-welcome-row h1,
  .hero-row h1,
  .page-title-row h1 {
    font-weight: 740 !important;
    letter-spacing: -.048em !important;
  }
}

@media (min-width: 821px) and (max-width: 1180px) {
  .app-layout {
    padding: 18px 18px 18px 14px !important;
  }
  .side-nav {
    left: 14px !important;
    top: 18px !important;
    bottom: 18px !important;
    width: 236px !important;
  }
  .main-area {
    margin-left: 258px !important;
    padding: 0 0 42px !important;
  }
  .topbar {
    top: 28px !important;
    right: 28px !important;
  }
}

@media (max-width: 820px) {
  body {
    overflow-x: hidden !important;
  }
  .app-layout {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }
  .main-area {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 78px 14px 94px !important;
  }
  .topbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 850 !important;
    width: 100% !important;
    min-height: 64px !important;
    height: 64px !important;
    margin: 0 !important;
    padding: 10px 14px !important;
    background: rgba(244, 248, 255, .86) !important;
    border-bottom: 1px solid rgba(185, 202, 232, .42) !important;
    box-shadow: 0 10px 34px rgba(9,35,84,.07) !important;
    backdrop-filter: blur(18px) !important;
  }
  .hamburger-btn,
  .top-icon,
  .profile-chip {
    box-shadow: 0 8px 22px rgba(9,35,84,.08) !important;
  }
  .mobile-brand img {
    width: 118px !important;
  }
  .home-welcome-row,
  .hero-row,
  .page-title-row {
    margin-top: 0 !important;
    margin-bottom: 16px !important;
  }
  .eyebrow {
    margin-bottom: 8px !important;
  }
  .home-welcome-row h1,
  .hero-row h1,
  .page-title-row h1 {
    font-size: 28px !important;
    font-weight: 720 !important;
    line-height: 1.08 !important;
    letter-spacing: -.042em !important;
  }
  .home-welcome-row p:not(.eyebrow),
  .hero-row p:not(.eyebrow),
  .page-title-row p:not(.eyebrow) {
    font-size: 14px !important;
    line-height: 1.55 !important;
  }
  .home-mini-duo {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin-top: 14px !important;
  }
  .mini-stat-card {
    min-height: 74px !important;
  }
  .next-step-panel {
    overflow: hidden !important;
  }
  .next-step-copy h2 {
    font-size: 27px !important;
    line-height: 1.07 !important;
    max-width: 100% !important;
    word-break: normal !important;
  }
  .next-step-copy p {
    max-width: 100% !important;
  }
  .status-timeline-card {
    overflow: hidden !important;
  }
  .status-timeline {
    max-width: 100% !important;
    overflow-x: auto !important;
    scrollbar-width: thin !important;
  }
  .amount-summary-section,
  .journey-card,
  .help-card-modern,
  .portal-card,
  .application-card,
  .proof-card {
    max-width: 100% !important;
    overflow: hidden !important;
  }
  .customer-chat-widget {
    bottom: 16px !important;
  }
}

@media (max-width: 430px) {
  .main-area {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .topbar {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .mobile-brand img {
    width: 112px !important;
  }
  .home-welcome-row h1,
  .hero-row h1,
  .page-title-row h1 {
    font-size: 27px !important;
  }
  .next-step-copy h2 {
    font-size: 25px !important;
  }
}

/* =========================
   Rentrel My Portal wizard v1
   Step-by-step flow with mobile-first spacing
========================= */
.myportal-title-row {
  align-items: center !important;
  margin-bottom: 16px !important;
}
.myportal-title-row h1 {
  max-width: 780px;
}
.compact-status {
  min-width: 260px !important;
  padding: 18px 20px !important;
  border-radius: 22px !important;
}
.myportal-wizard-card {
  padding: 22px !important;
  overflow: visible !important;
}
.myportal-wizard {
  gap: 18px !important;
}
.wizard-mobile-status {
  display: none;
}
.wizard-progress {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(198, 213, 238, .55);
  border-radius: 22px;
  background: rgba(248, 251, 255, .82);
}
.wizard-progress-step {
  min-height: 60px;
  border: 0;
  border-radius: 17px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  justify-items: start;
  gap: 9px;
  padding: 0 12px;
  color: #64748b;
  background: transparent;
  text-align: left;
  font-weight: 780;
}
.wizard-progress-step span {
  width: 30px;
  height: 30px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #0b46d8;
  background: #eaf2ff;
  border: 1px solid rgba(20, 93, 255, .14);
  font-size: 12px;
  font-weight: 850;
}
.wizard-progress-step strong {
  font-size: 12.5px;
  line-height: 1.15;
  font-weight: 780;
}
.wizard-progress-step.active {
  color: #0b46d8;
  background: #eef6ff;
}
.wizard-progress-step.active span,
.wizard-progress-step.done span {
  color: #fff;
  background: linear-gradient(135deg, var(--rentrel-blue), var(--rentrel-blue-2));
  border-color: transparent;
}
.wizard-progress-step.done strong { color: #1d4ed8; }
.wizard-step {
  display: none;
  min-height: 350px;
}
.wizard-step.active {
  display: grid;
  gap: 16px;
  animation: wizardFadeIn .16s ease-out;
}
@keyframes wizardFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.wizard-step-head {
  max-width: 820px;
  margin: 0 !important;
}
.wizard-step-head h2 {
  font-size: clamp(25px, 2.4vw, 34px) !important;
  font-weight: 760 !important;
  letter-spacing: -.045em !important;
}
.wizard-step-head p {
  max-width: 720px;
  font-weight: 560 !important;
}
.wizard-choice-grid,
.wizard-method-picker {
  margin-top: 4px;
}
.wizard-big-choice {
  min-height: 142px !important;
  padding: 22px !important;
}
.wizard-question-card {
  padding: 18px !important;
}
.wizard-pill-row label {
  min-height: 42px;
  padding: 0 16px;
}
.wizard-compact-note {
  padding: 13px 15px !important;
  font-size: 13px !important;
  line-height: 1.45;
}
.mobile-method-quick {
  display: grid;
  gap: 10px;
}
.mobile-method-quick[hidden] { display: none !important; }
.mini-field-title {
  margin: 0;
  color: #445069;
  font-size: 13px;
  font-weight: 850;
}
.wizard-field-grid {
  gap: 12px !important;
}
.wizard-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.wizard-review-grid div {
  min-height: 88px;
  padding: 16px;
  border: 1px solid rgba(198, 213, 238, .58);
  border-radius: 20px;
  background: rgba(248,251,255,.88);
}
.wizard-review-grid span {
  display: block;
  color: #667085;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.wizard-review-grid strong {
  display: block;
  margin-top: 9px;
  color: var(--rentrel-ink);
  font-size: 16px;
  line-height: 1.25;
  font-weight: 760;
  word-break: break-word;
}
.wizard-auth-box {
  margin-top: 2px;
}
.wizard-actions {
  position: sticky;
  bottom: 14px;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(198, 213, 238, .64);
  border-radius: 22px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 16px 42px rgba(9,35,84,.11);
  backdrop-filter: blur(16px);
}
.wizard-actions .wizard-message { margin-right: auto; }
.wizard-back[hidden],
.wizard-next[hidden],
.wizard-submit[hidden] { display: none !important; }
.myportal-summary-card {
  margin-top: 18px;
}
.compact-empty {
  min-height: 130px !important;
}

@media (max-width: 980px) {
  .myportal-title-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .compact-status {
    min-width: 0 !important;
  }
  .wizard-review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .myportal-title-row {
    margin-bottom: 12px !important;
  }
  .myportal-title-row .portal-status-card {
    display: none !important;
  }
  .myportal-wizard-card {
    padding: 14px !important;
    border-radius: 24px !important;
  }
  .myportal-wizard {
    gap: 12px !important;
  }
  .wizard-progress {
    display: none !important;
  }
  .wizard-mobile-status {
    position: sticky;
    top: 74px;
    z-index: 35;
    display: grid;
    gap: 5px;
    padding: 10px 12px;
    border: 1px solid rgba(198, 213, 238, .68);
    border-radius: 18px;
    background: rgba(255,255,255,.91);
    box-shadow: 0 10px 28px rgba(9,35,84,.08);
    backdrop-filter: blur(14px);
  }
  .wizard-mobile-status span {
    color: var(--rentrel-blue);
    font-size: 11px;
    line-height: 1;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .04em;
  }
  .wizard-mobile-status strong {
    color: var(--rentrel-ink);
    font-size: 16px;
    line-height: 1.1;
    font-weight: 760;
  }
  .wizard-mobile-status div {
    height: 5px;
    border-radius: 999px;
    overflow: hidden;
    background: #e5edf8;
  }
  .wizard-mobile-status i {
    display: block;
    width: 20%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--rentrel-blue), var(--rentrel-blue-2));
    transition: width .18s ease;
  }
  .wizard-step {
    min-height: 0 !important;
  }
  .wizard-step.active {
    gap: 12px !important;
  }
  .wizard-step-head {
    gap: 5px !important;
  }
  .wizard-step-head h2 {
    font-size: 24px !important;
    line-height: 1.08 !important;
    font-weight: 730 !important;
  }
  .wizard-step-head p {
    font-size: 13px !important;
    line-height: 1.45 !important;
  }
  .wizard-choice-grid,
  .wizard-method-picker,
  .wizard-mobile-app-grid {
    grid-template-columns: 1fr !important;
    gap: 9px !important;
  }
  .choice-tile,
  .method-tile,
  .mobile-app-tile,
  .wizard-big-choice {
    min-height: 0 !important;
    padding: 13px 48px 13px 13px !important;
    border-radius: 18px !important;
    grid-template-columns: auto 1fr !important;
    align-items: center !important;
    align-content: center !important;
    column-gap: 11px !important;
    row-gap: 4px !important;
  }
  .choice-tile input,
  .method-tile input,
  .mobile-app-tile input {
    top: 50% !important;
    right: 14px !important;
    transform: translateY(-50%) !important;
  }
  .choice-icon,
  .method-icon,
  .app-logo {
    grid-row: span 2;
    width: 38px !important;
    height: 38px !important;
    border-radius: 14px !important;
    font-size: 18px !important;
  }
  .choice-tile strong,
  .method-tile strong,
  .mobile-app-tile strong {
    font-size: 14px !important;
    line-height: 1.18 !important;
  }
  .choice-tile small {
    font-size: 11.8px !important;
    line-height: 1.35 !important;
  }
  .card-badges {
    grid-row: span 2;
    min-height: 38px !important;
    align-self: center;
  }
  .card-badges b {
    min-width: 32px !important;
    height: 22px !important;
    font-size: 8.5px !important;
    border-radius: 7px !important;
  }
  .portal-question-box,
  .portal-mini-note,
  .authorization-box {
    padding: 12px !important;
    border-radius: 18px !important;
  }
  .portal-question-box > label {
    margin-bottom: 10px !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
  }
  .wizard-pill-row {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .wizard-pill-row label {
    min-height: 38px !important;
    justify-content: center !important;
    padding: 0 8px !important;
    font-size: 12px !important;
  }
  .portal-field-grid.two,
  .wizard-field-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .field-label {
    gap: 6px !important;
    font-size: 12.2px !important;
    font-weight: 780 !important;
  }
  .field-label input,
  .field-label textarea,
  .field-label select {
    min-height: 46px !important;
    border-radius: 16px !important;
    padding-left: 13px !important;
    padding-right: 13px !important;
    font-size: 13px !important;
    font-weight: 620 !important;
  }
  .field-label textarea {
    min-height: 86px !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }
  .portal-search-results {
    max-height: 265px !important;
    border-radius: 18px !important;
    padding: 6px !important;
  }
  .search-result-item {
    min-height: 54px !important;
    padding: 7px 8px !important;
    border-radius: 14px !important;
  }
  .search-result-icon,
  .search-result-fallback {
    width: 34px !important;
    height: 34px !important;
    border-radius: 12px !important;
  }
  .search-result-item strong {
    font-size: 13px !important;
  }
  .search-result-item small {
    font-size: 11px !important;
  }
  .wizard-review-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .wizard-review-grid div {
    min-height: 68px !important;
    padding: 12px !important;
    border-radius: 16px !important;
  }
  .wizard-review-grid span {
    font-size: 10.5px !important;
  }
  .wizard-review-grid strong {
    margin-top: 6px !important;
    font-size: 14px !important;
  }
  .wizard-auth-box {
    font-size: 12.5px !important;
    line-height: 1.4 !important;
  }
  .wizard-actions {
    bottom: 10px !important;
    padding: 9px !important;
    border-radius: 18px !important;
    gap: 8px !important;
  }
  .wizard-actions .wizard-message {
    display: none !important;
  }
  .wizard-actions .mini-btn,
  .wizard-actions .primary-btn {
    width: auto !important;
    min-width: 0 !important;
    min-height: 44px !important;
    padding: 0 14px !important;
    border-radius: 16px !important;
    font-size: 13px !important;
  }
  .wizard-actions .wizard-back {
    flex: 0 0 34% !important;
  }
  .wizard-actions .wizard-next,
  .wizard-actions .wizard-submit {
    flex: 1 1 auto !important;
  }
  .myportal-summary-card {
    margin-top: 12px !important;
  }
  .compact-empty {
    min-height: 110px !important;
  }
}

@media (max-width: 430px) {
  .myportal-wizard-card {
    padding: 12px !important;
  }
  .wizard-mobile-status {
    top: 72px;
    padding: 9px 10px;
    border-radius: 16px;
  }
  .wizard-step-head h2 {
    font-size: 22px !important;
  }
  .wizard-pill-row {
    grid-template-columns: 1fr !important;
  }
  .choice-tile,
  .method-tile,
  .mobile-app-tile,
  .wizard-big-choice {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }
  .wizard-actions {
    left: 12px;
    right: 12px;
  }
}

/* =========================
   Rentrel My Portal wizard polish v2
   Compact title, no status overlap, cleaner mobile wizard
========================= */
@media (min-width: 821px) {
  .myportal-title-row {
    display: block !important;
    margin-top: 2px !important;
    margin-bottom: 14px !important;
    padding-right: 0 !important;
  }
  .myportal-title-row h1 {
    font-size: clamp(34px, 3vw, 46px) !important;
    line-height: 1.02 !important;
    letter-spacing: -.052em !important;
    font-weight: 740 !important;
    max-width: 720px !important;
  }
  .myportal-title-row p:not(.eyebrow) {
    max-width: 650px !important;
    font-size: 14.5px !important;
    font-weight: 500 !important;
  }
  .myportal-title-row .portal-status-card {
    position: absolute !important;
    top: 86px !important;
    right: 38px !important;
    width: min(315px, 27vw) !important;
    min-width: 0 !important;
    padding: 14px 17px !important;
    border-radius: 20px !important;
    box-shadow: 0 16px 40px rgba(9,35,84,.08) !important;
  }
  .myportal-title-row .portal-status-card strong {
    font-size: 18px !important;
    line-height: 1.15 !important;
    margin-top: 6px !important;
    font-weight: 740 !important;
  }
  .myportal-title-row .portal-status-card small {
    font-size: 12.5px !important;
    line-height: 1.35 !important;
    margin-top: 6px !important;
    font-weight: 500 !important;
  }
  .myportal-wizard-card {
    padding: 20px !important;
    margin-top: 8px !important;
  }
  .wizard-progress {
    padding: 8px !important;
    border-radius: 20px !important;
  }
  .wizard-progress-step {
    min-height: 50px !important;
    border-radius: 15px !important;
    padding: 0 10px !important;
    gap: 8px !important;
  }
  .wizard-progress-step span {
    width: 27px !important;
    height: 27px !important;
    border-radius: 10px !important;
    font-size: 11px !important;
  }
  .wizard-progress-step strong {
    font-size: 12px !important;
    font-weight: 690 !important;
  }
  .wizard-step { min-height: 280px !important; }
  .wizard-step-head h2 {
    font-size: clamp(24px, 2vw, 30px) !important;
    font-weight: 720 !important;
  }
  .wizard-step-head p { font-size: 13.5px !important; }
  .wizard-big-choice {
    min-height: 112px !important;
    padding: 18px 56px 18px 18px !important;
  }
  .wizard-actions .wizard-message { display: none !important; }
}

@media (min-width: 821px) and (max-width: 1180px) {
  .myportal-title-row .portal-status-card {
    right: 28px !important;
    top: 78px !important;
    width: 285px !important;
  }
}

@media (max-width: 820px) {
  .myportal-title-row {
    display: block !important;
    margin: 0 0 10px !important;
  }
  .myportal-title-row h1 {
    font-size: 28px !important;
    line-height: 1.06 !important;
    letter-spacing: -.045em !important;
    font-weight: 730 !important;
  }
  .myportal-title-row p:not(.eyebrow) {
    font-size: 13.2px !important;
    line-height: 1.42 !important;
    margin-top: 7px !important;
    max-width: 100% !important;
  }
  .myportal-title-row .portal-status-card { display: none !important; }
  .myportal-wizard-card {
    padding: 12px !important;
    border-radius: 22px !important;
    margin-bottom: 12px !important;
  }
  .wizard-mobile-status {
    position: sticky !important;
    top: 70px !important;
    z-index: 36 !important;
    padding: 8px 10px !important;
    border-radius: 15px !important;
    gap: 4px !important;
  }
  .wizard-mobile-status span {
    font-size: 10px !important;
    font-weight: 780 !important;
  }
  .wizard-mobile-status strong {
    font-size: 14px !important;
    font-weight: 680 !important;
  }
  .wizard-mobile-status div { height: 4px !important; }
  .wizard-step.active { gap: 10px !important; }
  .wizard-step-head h2 {
    font-size: 21px !important;
    line-height: 1.08 !important;
    letter-spacing: -.035em !important;
    font-weight: 720 !important;
  }
  .wizard-step-head p {
    font-size: 12.5px !important;
    line-height: 1.38 !important;
  }
  .choice-tile,
  .method-tile,
  .mobile-app-tile,
  .wizard-big-choice {
    padding: 11px 44px 11px 11px !important;
    border-radius: 16px !important;
  }
  .choice-icon,
  .method-icon,
  .app-logo {
    width: 34px !important;
    height: 34px !important;
    border-radius: 12px !important;
    font-size: 16px !important;
  }
  .choice-tile strong,
  .method-tile strong,
  .mobile-app-tile strong {
    font-size: 13px !important;
    font-weight: 720 !important;
  }
  .choice-tile small {
    font-size: 11.2px !important;
    line-height: 1.28 !important;
  }
  .portal-question-box,
  .portal-mini-note,
  .authorization-box {
    padding: 10px !important;
    border-radius: 16px !important;
  }
  .portal-question-box > label { font-size: 12.2px !important; }
  .field-label input,
  .field-label textarea,
  .field-label select {
    min-height: 44px !important;
    border-radius: 14px !important;
  }
  .wizard-actions {
    position: sticky !important;
    bottom: 8px !important;
    padding: 8px !important;
    border-radius: 16px !important;
  }
  .wizard-actions .wizard-message { display: none !important; }
  .myportal-summary-card { display: none; }
}

@media (max-width: 430px) {
  .myportal-title-row h1 { font-size: 26px !important; }
  .wizard-mobile-status { top: 68px !important; }
  .wizard-step-head h2 { font-size: 20px !important; }
  .wizard-actions { left: 10px !important; right: 10px !important; }
}

/* =========================
   Rentrel My Portal wizard polish v3
   Fix hamburger, reduce text clutter, remove overlap, tighter mobile
========================= */

.myportal-title-row .portal-status-card.compact-status {
  display: none !important;
}
.myportal-title-row { margin-bottom: 12px !important; }
.myportal-title-row h1 { max-width: 680px !important; }
.myportal-title-row p:not(.eyebrow) { color: #53627c !important; }
.myportal-wizard-card { margin-top: 6px !important; }
.wizard-step-head p:empty { display: none !important; }
.wizard-step-head { max-width: 760px !important; }
.wizard-step-head h2 { margin-bottom: 6px !important; }
.wizard-big-choice small,
.choice-tile small { color: #60708c !important; font-weight: 520 !important; }
.wizard-actions { justify-content: flex-end !important; }

@media (min-width: 821px) {
  .myportal-title-row h1 { font-size: clamp(32px, 2.8vw, 42px) !important; }
  .myportal-title-row p:not(.eyebrow) { font-size: 14px !important; }
  .wizard-step { min-height: 235px !important; }
  .wizard-step-head h2 { font-size: clamp(23px, 1.8vw, 28px) !important; line-height: 1.08 !important; }
  .wizard-step-head p { font-size: 13px !important; }
  .wizard-big-choice { min-height: 96px !important; padding: 16px 52px 16px 16px !important; }
  .choice-icon, .method-icon, .app-logo { width: 40px !important; height: 40px !important; }
  .wizard-progress-step { min-height: 46px !important; }
}

@media (max-width: 820px) {
  .topbar { display: flex !important; align-items: center !important; gap: 10px !important; }
  .hamburger-btn { display: inline-grid !important; flex: 0 0 42px !important; width: 42px !important; height: 42px !important; z-index: 901 !important; }
  .mobile-brand { display: inline-flex !important; align-items: center !important; min-width: 0 !important; }
  .topbar-spacer { flex: 1 1 auto !important; min-width: 0 !important; }
  .side-nav { z-index: 900 !important; }
  .sidebar-scrim { z-index: 890 !important; }
  .page-title-row.myportal-title-row { margin-bottom: 8px !important; }
  .myportal-title-row .eyebrow { display: none !important; }
  .myportal-title-row h1 { font-size: 24px !important; line-height: 1.07 !important; margin: 0 !important; }
  .myportal-title-row p:not(.eyebrow) { display: none !important; }
  .myportal-wizard-card { padding: 10px !important; border-radius: 20px !important; margin-top: 8px !important; }
  .wizard-mobile-status { top: 66px !important; padding: 8px 10px !important; margin: -2px -2px 6px !important; }
  .wizard-mobile-status strong { font-size: 13.5px !important; }
  .wizard-step.active { gap: 8px !important; }
  .wizard-step-head { margin-top: 2px !important; }
  .wizard-step-head span { font-size: 10px !important; letter-spacing: .04em !important; }
  .wizard-step-head h2 { font-size: 19px !important; line-height: 1.1 !important; margin: 0 !important; }
  .wizard-step-head p { display: none !important; }
  .wizard-choice-grid, .wizard-method-picker, .wizard-mobile-app-grid { gap: 8px !important; }
  .choice-tile, .method-tile, .mobile-app-tile, .wizard-big-choice { padding: 10px 42px 10px 10px !important; border-radius: 15px !important; column-gap: 9px !important; }
  .choice-icon, .method-icon, .app-logo { width: 32px !important; height: 32px !important; border-radius: 11px !important; font-size: 15px !important; }
  .choice-tile strong, .method-tile strong, .mobile-app-tile strong { font-size: 12.8px !important; }
  .choice-tile small, .method-tile small, .mobile-app-tile small { display: none !important; }
  .portal-question-box, .portal-mini-note, .authorization-box { padding: 9px !important; border-radius: 15px !important; }
  .portal-question-box > label { margin-bottom: 8px !important; }
  .field-label span { font-size: 11.5px !important; }
  .field-label input, .field-label textarea, .field-label select { min-height: 42px !important; border-radius: 13px !important; font-size: 12.8px !important; }
  .wizard-compact-note { font-size: 11.8px !important; line-height: 1.35 !important; }
  .wizard-actions { bottom: 8px !important; padding: 8px !important; border-radius: 15px !important; }
  .wizard-actions .mini-btn, .wizard-actions .primary-btn { min-height: 42px !important; border-radius: 14px !important; }
}

@media (max-width: 430px) {
  .main-area { padding-left: 10px !important; padding-right: 10px !important; }
  .profile-chip { min-width: 42px !important; }
  .profile-avatar { width: 32px !important; height: 32px !important; }
  .top-icon { width: 40px !important; height: 40px !important; }
  .myportal-title-row h1 { font-size: 23px !important; }
}

/* My Portal mobile drawer visibility fix v4
   Keep the hamburger drawer readable. Do not blur the page or the sidebar when menu opens. */
@media (max-width: 820px) {
  body.sidebar-open,
  body.sidebar-open .app-layout,
  body.sidebar-open .main-area,
  body.sidebar-open .topbar,
  body.sidebar-open .side-nav,
  body.sidebar-open .page-shell,
  body.sidebar-open .myportal-wizard-card {
    filter: none !important;
    -webkit-filter: none !important;
  }

  .sidebar-scrim,
  .sidebar-scrim:not([hidden]) {
    background: rgba(15, 23, 42, .06) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .side-nav {
    background: rgba(255, 255, 255, .98) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 1 !important;
  }

  body.sidebar-open .side-nav,
  body.sidebar-open .side-nav * {
    filter: none !important;
    -webkit-filter: none !important;
    opacity: 1 !important;
  }
}


/* My Portal mobile drawer navigation fix v5
   Keep the drawer above the dim layer and let nav links navigate normally. */
@media (max-width: 820px) {
  body.sidebar-open .side-nav {
    z-index: 1300 !important;
    pointer-events: auto !important;
  }

  body.sidebar-open .side-nav,
  body.sidebar-open .side-nav .side-menu,
  body.sidebar-open .side-nav .side-link,
  body.sidebar-open .side-nav .side-close,
  body.sidebar-open .side-nav a {
    pointer-events: auto !important;
  }

  body.sidebar-open .side-nav .side-link {
    position: relative !important;
    z-index: 1302 !important;
    touch-action: manipulation !important;
  }

  .sidebar-scrim:not([hidden]) {
    z-index: 1200 !important;
    left: min(82vw, 330px) !important;
    right: 0 !important;
    width: auto !important;
    pointer-events: auto !important;
    background: rgba(15, 23, 42, .08) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .side-nav {
    width: min(82vw, 330px) !important;
  }
}

/* =====================================================================
   Rentrel My Portal dynamic setup v6
   Simple dynamic setup, portal grid, compact mobile flow
   ===================================================================== */
.dynamic-title-row {
  align-items: flex-start !important;
  gap: 18px !important;
  margin-bottom: 14px !important;
}
.dynamic-title-row h1 {
  font-size: clamp(28px, 3vw, 40px) !important;
  letter-spacing: -0.035em !important;
  line-height: 1.02 !important;
  margin: 2px 0 6px !important;
  font-weight: 720 !important;
}
.dynamic-title-row p:not(.eyebrow) {
  font-size: 14.5px !important;
  color: #64748b !important;
  margin: 0 !important;
}
.dynamic-status-card {
  min-width: 220px !important;
  padding: 14px 16px !important;
  border-radius: 18px !important;
}
.dynamic-portal-card {
  padding: 18px !important;
  border-radius: 28px !important;
  overflow: visible !important;
}
.portal-dynamic-setup [hidden] {
  display: none !important;
}
.portal-dynamic-setup {
  display: grid !important;
  gap: 14px !important;
}
.dynamic-progress-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}
.dynamic-progress-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.dynamic-progress-chips span.active {
  background: #e8f0ff;
  color: #1d4ed8;
}
.dynamic-section,
.dynamic-inner-panel {
  display: none;
}
.dynamic-section.is-visible,
.dynamic-panel.is-visible,
.dynamic-inner-panel.is-visible {
  display: block;
  animation: rentrelDynIn .18s ease-out;
}
@keyframes rentrelDynIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.dynamic-section-head {
  margin-bottom: 12px;
}
.dynamic-section-head span {
  display: block;
  font-size: 11px;
  font-weight: 720;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 4px;
}
.dynamic-section-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 720;
}
.dynamic-section-head.compact-head h2 {
  font-size: clamp(20px, 1.6vw, 25px);
}
.dynamic-section-head.tiny-head {
  margin: 2px 0 10px;
}
.dynamic-section-head.tiny-head h2 {
  font-size: 18px;
}
.dynamic-choice-grid,
.dynamic-method-grid,
.access-choice-grid,
.dynamic-mobile-grid {
  display: grid;
  gap: 10px;
}
.main-destination-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.dynamic-method-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.access-choice-grid,
.dynamic-mobile-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.dynamic-choice-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 78px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  padding: 14px 48px 14px 14px;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background .16s ease;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .04);
}
.dynamic-choice-card:hover {
  border-color: #9fc1ff;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(37, 99, 235, .10);
}
.dynamic-choice-card.selected,
.dynamic-choice-card:has(input:checked),
.mobile-app-tile.selected,
.mobile-app-tile:has(input:checked),
.portal-square.selected {
  border-color: #2563eb !important;
  background: linear-gradient(180deg, #f7fbff, #eef5ff) !important;
  box-shadow: 0 16px 36px rgba(37, 99, 235, .14) !important;
}
.dynamic-choice-card input[type="radio"],
.mobile-app-tile input[type="radio"] {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  accent-color: #2563eb;
}
.dynamic-choice-card strong,
.mobile-app-tile strong,
.portal-square strong {
  color: #0f172a;
  font-size: 14px;
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.dynamic-choice-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #edf4ff;
  flex: 0 0 auto;
  font-size: 18px;
}
.method-card .card-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3px;
  width: 46px;
  min-width: 46px;
}
.method-card .card-badges b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 16px;
  padding: 0 4px;
  border-radius: 5px;
  background: #eef2ff;
  color: #1d4ed8;
  font-size: 8px;
  font-weight: 800;
}
.dynamic-panel,
.dynamic-inner-panel {
  border: 1px solid #e5edf8;
  border-radius: 22px;
  padding: 16px;
  background: rgba(248, 251, 255, .78);
}
.dynamic-inner-panel {
  margin-top: 12px;
  background: #fff;
}
.portal-grid-tools {
  margin: 0 0 12px;
}
.portal-search-lite {
  display: grid;
  gap: 6px;
}
.portal-search-lite span,
.portal-dynamic-setup .field-label span {
  color: #475569;
  font-size: 12px;
  font-weight: 680;
  letter-spacing: -0.01em;
}
.portal-search-lite input,
.portal-dynamic-setup .field-label input,
.portal-dynamic-setup .field-label select,
.portal-dynamic-setup .field-label textarea {
  min-height: 46px !important;
  border-radius: 15px !important;
  border: 1px solid #dbe5f2 !important;
  background: #fff !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #0f172a !important;
  box-shadow: none !important;
}
.portal-search-lite input:focus,
.portal-dynamic-setup .field-label input:focus,
.portal-dynamic-setup .field-label select:focus,
.portal-dynamic-setup .field-label textarea:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .10) !important;
  outline: none !important;
}
.popular-portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 10px;
}
.portal-square {
  appearance: none;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 17px;
  min-height: 98px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background .16s ease;
}
.portal-square:hover {
  transform: translateY(-1px);
  border-color: #a9c7ff;
  box-shadow: 0 12px 25px rgba(15, 23, 42, .08);
}
.portal-square strong {
  font-size: 12.5px;
  text-align: center;
  max-width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.portal-logo,
.portal-logo-fallback,
.app-logo {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef5ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
}
.portal-logo img,
.app-logo img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.portal-logo-fallback.plus {
  font-size: 22px;
}
.manual-square {
  border-style: dashed;
}
.compact-fields {
  gap: 10px !important;
}
.dynamic-mobile-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.compact-app {
  min-height: 90px !important;
  padding: 10px !important;
  border-radius: 16px !important;
  flex-direction: column !important;
  justify-content: center !important;
  text-align: center !important;
}
.compact-app input[type="radio"] {
  top: 8px !important;
  right: 8px !important;
  transform: none !important;
  width: 15px !important;
  height: 15px !important;
}
.dynamic-auth-box {
  margin-top: 2px !important;
  padding: 12px 14px !important;
  border-radius: 18px !important;
  font-size: 13px !important;
}
.dynamic-save-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .05);
}
.dynamic-save-bar span {
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}
.dynamic-save-bar .primary-btn {
  min-height: 44px !important;
  border-radius: 15px !important;
  padding: 0 20px !important;
  white-space: nowrap;
}
.submitted-summary-card.myportal-summary-card {
  margin-top: 14px !important;
}

@media (max-width: 820px) {
  .dynamic-title-row {
    display: grid !important;
    gap: 8px !important;
    margin-bottom: 8px !important;
  }
  .dynamic-title-row h1 {
    font-size: 25px !important;
    margin-bottom: 3px !important;
  }
  .dynamic-title-row p:not(.eyebrow) {
    font-size: 12.5px !important;
  }
  .dynamic-status-card {
    min-width: 0 !important;
    padding: 10px 12px !important;
    border-radius: 15px !important;
  }
  .dynamic-portal-card {
    padding: 10px !important;
    border-radius: 20px !important;
  }
  .portal-dynamic-setup {
    gap: 10px !important;
  }
  .dynamic-progress-chips {
    position: sticky;
    top: 58px;
    z-index: 12;
    background: rgba(246, 249, 255, .96);
    backdrop-filter: blur(10px);
    padding: 7px 2px;
    margin: -2px -2px 0;
  }
  .dynamic-progress-chips span {
    min-height: 24px;
    padding: 0 9px;
    font-size: 10.5px;
  }
  .dynamic-section-head {
    margin-bottom: 9px;
  }
  .dynamic-section-head span {
    font-size: 9.5px;
    margin-bottom: 3px;
  }
  .dynamic-section-head h2,
  .dynamic-section-head.compact-head h2 {
    font-size: 18px;
    line-height: 1.08;
  }
  .main-destination-grid,
  .dynamic-method-grid,
  .access-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .access-choice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .dynamic-choice-card {
    min-height: 70px;
    padding: 10px 30px 10px 10px;
    border-radius: 16px;
    gap: 8px;
  }
  .dynamic-choice-card strong,
  .mobile-app-tile strong,
  .portal-square strong {
    font-size: 11.8px;
  }
  .dynamic-choice-card input[type="radio"] {
    right: 8px;
    width: 15px;
    height: 15px;
  }
  .dynamic-choice-icon {
    width: 31px;
    height: 31px;
    border-radius: 11px;
    font-size: 15px;
  }
  .mini-choice {
    min-height: 48px;
    justify-content: center;
    text-align: center;
    padding: 8px 22px 8px 8px;
  }
  .dynamic-panel,
  .dynamic-inner-panel {
    padding: 10px;
    border-radius: 17px;
  }
  .popular-portal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }
  .portal-square {
    min-height: 78px;
    border-radius: 14px;
    padding: 7px 5px;
    gap: 6px;
  }
  .portal-logo,
  .portal-logo-fallback,
  .app-logo {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    font-size: 10px;
  }
  .portal-logo img,
  .app-logo img {
    width: 20px;
    height: 20px;
  }
  .portal-search-lite span,
  .portal-dynamic-setup .field-label span {
    font-size: 11px;
  }
  .portal-search-lite input,
  .portal-dynamic-setup .field-label input,
  .portal-dynamic-setup .field-label select,
  .portal-dynamic-setup .field-label textarea {
    min-height: 40px !important;
    border-radius: 13px !important;
    font-size: 13px !important;
  }
  .compact-fields {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .dynamic-mobile-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
  }
  .compact-app {
    min-height: 72px !important;
    padding: 7px 4px !important;
    border-radius: 14px !important;
  }
  .compact-app input[type="radio"] {
    width: 13px !important;
    height: 13px !important;
    top: 6px !important;
    right: 6px !important;
  }
  .dynamic-auth-box {
    padding: 9px 10px !important;
    border-radius: 14px !important;
    font-size: 11.8px !important;
    line-height: 1.35 !important;
  }
  .dynamic-save-bar {
    position: sticky;
    bottom: 8px;
    z-index: 14;
    padding: 8px;
    border-radius: 16px;
    gap: 8px;
  }
  .dynamic-save-bar span {
    font-size: 11px;
    line-height: 1.25;
  }
  .dynamic-save-bar .primary-btn {
    min-height: 40px !important;
    padding: 0 13px !important;
    border-radius: 13px !important;
    font-size: 13px !important;
  }
}

@media (max-width: 390px) {
  .popular-portal-grid {
    gap: 6px;
  }
  .portal-square {
    min-height: 74px;
  }
  .portal-square strong {
    font-size: 11px;
  }
  .dynamic-mobile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Rentrel Square sandbox payment page */
.payment-title-row {
  align-items: flex-end;
  gap: 18px;
}
.payment-title-row h1 {
  max-width: 720px;
}
.payment-status-mini {
  min-width: 210px;
  padding: 18px 20px;
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  background: rgba(255,255,255,.9);
  box-shadow: var(--shadow);
}
.payment-status-mini span,
.payment-kicker,
.payment-dl dt {
  display: block;
  color: #667085;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
}
.payment-status-mini strong {
  display: block;
  margin-top: 8px;
  color: #111827;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 800;
}
.portal-alert {
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
}
.portal-alert.warning { color: #92400e; background: #fffbeb; border: 1px solid #fde68a; }
.portal-alert.danger { color: #991b1b; background: #fef2f2; border: 1px solid #fecaca; }
.payment-hero-card {
  margin: 18px 0 24px;
  padding: 28px;
  border: 1px solid rgba(37,99,235,.14);
  border-radius: 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: stretch;
  background:
    radial-gradient(circle at 92% 0%, rgba(37,99,235,.10), transparent 38%),
    rgba(255,255,255,.88);
  box-shadow: var(--shadow-strong);
}
.payment-hero-copy h2 {
  margin: 10px 0 8px;
  color: #061433;
  font-size: clamp(42px, 6vw, 70px);
  line-height: .95;
  letter-spacing: -.065em;
  font-weight: 820;
}
.payment-hero-copy p {
  max-width: 560px;
  margin: 0;
  color: #667085;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
}
.payment-breakdown-inline {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.payment-breakdown-inline div {
  padding: 15px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: rgba(255,255,255,.76);
}
.payment-breakdown-inline span {
  display: block;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}
.payment-breakdown-inline strong {
  display: block;
  margin-top: 8px;
  color: #111827;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 800;
}
.payment-hero-action {
  padding: 24px;
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(140deg, #0b5cff, #1d4ed8);
  color: #fff;
  overflow: hidden;
  position: relative;
}
.payment-hero-action::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  right: -55px;
  bottom: -70px;
  border-radius: 999px;
  background: rgba(255,255,255,.13);
}
.square-badge {
  width: max-content;
  padding: 9px 12px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(255,255,255,.14);
  font-size: 12px;
  font-weight: 850;
}
.pay-now-btn {
  width: 100%;
  min-height: 54px;
  justify-content: center;
  background: #fff !important;
  color: #0b5cff !important;
  box-shadow: 0 16px 36px rgba(0,0,0,.12) !important;
}
.pay-now-btn:disabled {
  opacity: .75;
  cursor: not-allowed;
}
.payment-hero-action small {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,.82);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 650;
}
.payment-grid-two {
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.payment-info-card {
  padding: 24px;
  border-radius: 28px;
}
.payment-info-card h2,
.payment-history-card h2,
.payment-result-card h1 {
  margin: 0 0 10px;
  color: #111827;
  letter-spacing: -.035em;
  font-weight: 760;
}
.payment-info-card p {
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}
.payment-steps-mini {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.payment-steps-mini div {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid var(--line-soft);
}
.payment-steps-mini span {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-size: 13px;
  font-weight: 800;
}
.payment-dl {
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
}
.payment-dl div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
}
.payment-dl dd {
  margin: 0;
  color: #111827;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 750;
  text-align: right;
}
.payment-history-card {
  padding: 24px;
  border-radius: 28px;
}
.payment-history-list {
  display: grid;
  gap: 10px;
}
.payment-history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
}
.payment-history-row strong,
.payment-history-row span {
  display: block;
}
.payment-history-row strong {
  color: #111827;
  font-size: 17px;
  font-weight: 800;
}
.payment-history-row div span {
  margin-top: 4px;
  color: #667085;
  font-size: 12px;
  font-weight: 650;
}
.payment-status-pill {
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
  color: #1d4ed8;
  background: #eaf2ff;
}
.payment-status-pill.success { color: #137333; background: #dcfce7; }
.payment-status-pill.danger { color: #991b1b; background: #fee2e2; }
.payment-result-shell {
  min-height: calc(100vh - 110px);
  display: grid;
  place-items: center;
  padding: 28px 0;
}
.payment-result-card {
  width: min(640px, 100%);
  padding: 34px;
  border: 1px solid var(--line-soft);
  border-radius: 32px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow-strong);
  text-align: center;
}
.payment-result-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--success);
  font-size: 32px;
  font-weight: 900;
}
.payment-result-icon.muted { background: #f59e0b; }
.payment-result-card p {
  color: #667085;
  font-weight: 600;
  line-height: 1.5;
}
.payment-result-summary {
  margin: 22px auto;
  max-width: 360px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  text-align: left;
}
.payment-result-summary span,
.payment-result-summary strong {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fbff;
}
.payment-result-summary span { color: #667085; font-weight: 700; }
.payment-result-summary strong { color: #111827; text-align: right; }
.payment-result-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.portal-btn.secondary {
  color: #1d4ed8;
  background: #eaf2ff;
  box-shadow: none;
}
@media (max-width: 920px) {
  .payment-title-row { align-items: stretch; }
  .payment-status-mini { min-width: 0; }
  .payment-hero-card,
  .payment-grid-two { grid-template-columns: 1fr; }
  .payment-breakdown-inline { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .payment-hero-card { padding: 16px; border-radius: 24px; gap: 14px; }
  .payment-hero-copy h2 { font-size: 44px; }
  .payment-hero-action { padding: 18px; border-radius: 22px; }
  .payment-info-card,
  .payment-history-card,
  .payment-result-card { padding: 18px; border-radius: 22px; }
  .payment-history-row { align-items: flex-start; flex-direction: column; }
  .payment-status-pill { width: max-content; }
}

/* Rentrel Payment page alignment v2 - matches My Portal dynamic UI */
.payment-title-clean {
  margin-bottom: 14px;
  align-items: end;
}
.payment-title-clean h1 {
  font-size: clamp(34px, 3.2vw, 44px) !important;
  line-height: .98 !important;
  letter-spacing: -.045em !important;
  font-weight: 780 !important;
}
.payment-title-clean p:not(.eyebrow) {
  max-width: 620px;
  font-size: 14px !important;
  line-height: 1.45 !important;
  font-weight: 560 !important;
}
.payment-title-clean .payment-status-mini {
  min-width: 210px;
  padding: 16px 18px;
  border-radius: 22px;
}
.payment-title-clean .payment-status-mini strong {
  font-size: 18px;
  font-weight: 760;
  letter-spacing: -.02em;
}
.payment-title-clean .payment-status-mini small {
  display: block;
  margin-top: 6px;
  color: #667085;
  font-size: 12px;
  font-weight: 650;
}
.payment-main-card {
  margin: 16px 0 18px;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255,255,255,.90);
  box-shadow: var(--shadow);
}
.payment-main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: stretch;
}
.payment-main-copy {
  min-height: 190px;
  padding: 24px;
  border: 1px solid rgba(37,99,235,.12);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(37,99,235,.10), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(248,251,255,.88));
}
.payment-main-copy h2 {
  margin: 8px 0 6px;
  color: #061433;
  font-size: clamp(44px, 5vw, 58px);
  line-height: .92;
  letter-spacing: -.06em;
  font-weight: 780;
}
.payment-main-copy p {
  margin: 0;
  max-width: 560px;
  color: #667085;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 560;
}
.payment-scenario-pill {
  display: inline-flex;
  width: max-content;
  margin-top: 14px;
  padding: 8px 11px;
  border-radius: 999px;
  color: #0d3a93;
  background: #eaf2ff;
  font-size: 12px;
  line-height: 1;
  font-weight: 760;
}
.payment-square-panel {
  padding: 20px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  color: #fff;
  background: linear-gradient(145deg, #0b5cff, #1d4ed8);
  box-shadow: 0 22px 48px rgba(37,99,235,.20);
  overflow: hidden;
  position: relative;
}
.payment-square-panel::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -60px;
  bottom: -70px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
}
.payment-square-panel form,
.payment-square-panel small,
.payment-square-panel .square-badge {
  position: relative;
  z-index: 1;
}
.payment-square-panel small {
  color: rgba(255,255,255,.84);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
}
.payment-square-panel .square-badge {
  padding: 8px 11px;
  font-size: 11px;
  font-weight: 760;
}
.payment-square-panel .pay-now-btn {
  min-height: 48px;
  border-radius: 16px;
  font-weight: 780;
}
.payment-summary-strip {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.payment-summary-strip div {
  min-height: 82px;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: rgba(255,255,255,.78);
}
.payment-summary-strip span {
  display: block;
  color: #667085;
  font-size: 11px;
  line-height: 1.1;
  font-weight: 760;
}
.payment-summary-strip strong {
  display: block;
  margin-top: 8px;
  color: #061433;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -.025em;
  font-weight: 760;
}
.payment-grid-clean {
  gap: 16px;
  margin-bottom: 18px;
}
.payment-grid-clean .payment-info-card,
.payment-history-clean {
  padding: 20px;
  border-radius: 24px;
}
.payment-grid-clean .payment-info-card h2,
.payment-history-clean h2 {
  font-size: 22px;
  font-weight: 720;
  letter-spacing: -.035em;
}
.payment-guide-card .payment-steps-mini {
  gap: 10px;
  margin-top: 14px;
}
.payment-guide-card .payment-steps-mini div {
  padding: 10px 12px;
  border-radius: 16px;
}
.payment-guide-card .payment-steps-mini span {
  width: 28px;
  height: 28px;
  font-size: 12px;
  font-weight: 760;
}
.payment-guide-card .payment-steps-mini p {
  font-size: 13px;
  font-weight: 560;
}
.payment-dl dt {
  font-size: 11px;
  font-weight: 760;
}
.payment-dl dd {
  font-weight: 650;
}
@media (max-width: 920px) {
  .payment-title-clean { grid-template-columns: 1fr; align-items: start; }
  .payment-title-clean .payment-status-mini { width: 100%; }
  .payment-main-layout,
  .payment-grid-clean { grid-template-columns: 1fr; }
  .payment-summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .payment-title-clean { margin-top: 6px; margin-bottom: 10px; }
  .payment-title-clean h1 { font-size: 32px !important; }
  .payment-title-clean p:not(.eyebrow) { font-size: 13px !important; }
  .payment-main-card { padding: 12px; border-radius: 22px; }
  .payment-main-copy { min-height: auto; padding: 16px; border-radius: 20px; }
  .payment-main-copy h2 { font-size: 40px; }
  .payment-square-panel { padding: 16px; border-radius: 20px; }
  .payment-summary-strip { grid-template-columns: 1fr; gap: 8px; }
  .payment-summary-strip div { min-height: 72px; padding: 12px 14px; }
  .payment-grid-clean .payment-info-card,
  .payment-history-clean { padding: 16px; border-radius: 20px; }
}

/* =========================================================
   Square embedded payment v1
   ========================================================= */
.embedded-payment-title h1 {
  font-size: clamp(32px, 3.2vw, 48px) !important;
  letter-spacing: -0.055em;
  font-weight: 760;
}
.embedded-payment-title p:not(.eyebrow) {
  font-size: 14px;
  color: #53627c;
}
.embedded-payment-card {
  padding: 18px !important;
}
.embedded-payment-layout {
  align-items: stretch;
  gap: 18px;
}
.embedded-payment-copy h2 {
  font-size: clamp(42px, 5vw, 66px) !important;
  line-height: .92;
  letter-spacing: -0.06em;
  font-weight: 780;
  margin: 10px 0 12px;
}
.embedded-square-panel {
  display: grid;
  gap: 12px;
  min-width: min(420px, 100%);
  padding: 18px;
  border: 1px solid rgba(214, 226, 246, .95);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, .16), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,.95), rgba(247,250,255,.9));
  box-shadow: 0 18px 48px rgba(15, 23, 42, .08);
}
.square-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.card-brands {
  color: #65728c;
  font-size: 12px;
  font-weight: 700;
}
.square-card-container {
  min-height: 92px;
  padding: 12px;
  border: 1px solid rgba(213, 225, 245, .95);
  border-radius: 18px;
  background: #fff;
}
.embedded-pay-btn {
  width: 100%;
  min-height: 52px;
  justify-content: center;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 760;
}
.embedded-square-panel small {
  display: block;
  color: #62718c;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
}
.square-payment-status {
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  background: #eef4ff;
  color: #174ea6;
  border: 1px solid rgba(37, 99, 235, .18);
}
.square-payment-status.error {
  color: #b42318;
  background: #fff1f3;
  border-color: #fecdd6;
}
.square-payment-status.success {
  color: #027a48;
  background: #ecfdf3;
  border-color: #abefc6;
}
.square-payment-status.warning {
  color: #b54708;
  background: #fffaeb;
  border-color: #fedf89;
}
.payment-summary-strip.embedded-summary-strip {
  margin-top: 18px;
}
.payment-latest-card h2,
.payment-guide-card h2 {
  font-size: 22px !important;
  letter-spacing: -0.035em;
  font-weight: 720;
}
@media (max-width: 900px) {
  .embedded-payment-layout {
    grid-template-columns: 1fr !important;
  }
  .embedded-square-panel {
    min-width: 0;
  }
}
@media (max-width: 640px) {
  .embedded-payment-title h1 {
    font-size: 25px !important;
  }
  .embedded-payment-card {
    padding: 12px !important;
  }
  .embedded-payment-copy h2 {
    font-size: 48px !important;
  }
  .embedded-square-panel {
    padding: 12px;
    border-radius: 20px;
  }
  .square-card-container {
    padding: 10px;
    min-height: 86px;
  }
  .card-brands {
    font-size: 11px;
  }
  .payment-summary-strip.embedded-summary-strip {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
}

/* =========================================================
   Rentrel embedded payment UI v2 - centered checkout + paid state
   ========================================================= */
.portal-alert.success {
  color: #087443;
  background: #ecfdf3;
  border: 1px solid #9ee7c3;
}
.payment-status-mini.is-paid,
.portal-status-card.is-paid {
  border-color: rgba(34, 197, 94, .25) !important;
  background: linear-gradient(180deg, rgba(240,253,244,.96), rgba(255,255,255,.92)) !important;
}
.payment-status-mini.is-paid strong,
.portal-status-card.is-paid strong {
  color: #087443 !important;
}
.rentrel-payment-title-v2 {
  margin-bottom: 16px !important;
}
.rentrel-payment-title-v2 h1 {
  font-size: clamp(34px, 3.1vw, 44px) !important;
  font-weight: 760 !important;
  letter-spacing: -0.045em !important;
}
.rentrel-payment-title-v2 p:not(.eyebrow) {
  font-size: 14px !important;
  font-weight: 560 !important;
  color: #53627c !important;
}
.rentrel-pay-card-v2 {
  margin: 16px 0 12px;
  padding: 18px !important;
  border-radius: 30px !important;
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(360px, 1.15fr);
  gap: 18px;
  align-items: stretch;
  background: rgba(255,255,255,.92) !important;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .08) !important;
}
.rentrel-pay-left {
  min-height: 280px;
  padding: 28px;
  border: 1px solid rgba(37, 99, 235, .12);
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, .12), transparent 36%),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(247,250,255,.90));
}
.rentrel-pay-left h2 {
  margin: 8px 0 8px;
  color: #061433;
  font-size: clamp(48px, 6vw, 72px);
  line-height: .9;
  letter-spacing: -0.065em;
  font-weight: 760;
}
.rentrel-pay-left p {
  margin: 0;
  max-width: 520px;
  color: #62718c;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 560;
}
.rentrel-pay-center {
  min-height: 280px;
  display: grid;
  align-items: center;
}
.rentrel-card-entry {
  width: min(540px, 100%);
  margin: 0 auto;
  padding: 22px !important;
  border-radius: 26px !important;
  border: 1px solid rgba(205, 219, 242, .95) !important;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, .10), transparent 34%),
    rgba(255,255,255,.96) !important;
  box-shadow: 0 22px 60px rgba(15, 23, 42, .08) !important;
}
.rentrel-card-entry .square-panel-head {
  margin-bottom: 2px;
}
.rentrel-card-entry .square-badge {
  color: #1d4ed8;
  background: #eaf2ff;
}
.rentrel-card-entry .card-brands {
  color: #53627c;
  font-size: 12px;
  font-weight: 700;
}
.rentrel-card-entry .square-card-container {
  min-height: 98px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(205, 219, 242, .95);
  background: #fff;
}
.rentrel-card-entry .embedded-pay-btn {
  min-height: 50px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 760;
  color: #fff !important;
  background: linear-gradient(135deg, #0b5cff, #1d4ed8) !important;
  box-shadow: 0 18px 40px rgba(37,99,235,.18) !important;
}
.rentrel-card-entry small {
  color: #667085;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 560;
}
.payment-done-box {
  width: min(540px, 100%);
  margin: 0 auto;
  padding: 34px 26px;
  border-radius: 28px;
  border: 1px solid rgba(34, 197, 94, .22);
  background:
    radial-gradient(circle at top right, rgba(34,197,94,.10), transparent 34%),
    linear-gradient(180deg, rgba(240,253,244,.98), rgba(255,255,255,.94));
  text-align: center;
  box-shadow: 0 22px 58px rgba(15, 23, 42, .07);
}
.payment-done-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #16a34a;
  font-size: 28px;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(22, 163, 74, .24);
}
.payment-done-box h3 {
  margin: 0 0 8px;
  color: #061433;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -.035em;
  font-weight: 760;
}
.payment-done-box p {
  margin: 0 auto;
  max-width: 360px;
  color: #53627c;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 560;
}
.payment-done-meta {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.payment-done-meta span,
.payment-done-meta a {
  padding: 9px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 760;
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(205, 219, 242, .95);
  color: #0d3a93;
}
.payment-summary-v2 {
  margin: 0 0 18px !important;
  padding: 0 !important;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.payment-summary-v2 div {
  min-height: 82px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,.86);
}
.payment-summary-v2 div.paid {
  border-color: rgba(34,197,94,.25);
  background: #f0fdf4;
}
.payment-summary-v2 small {
  display: block;
  margin-top: 5px;
  color: #087443;
  font-size: 11px;
  font-weight: 800;
}
.payment-after-grid-v2 {
  margin-top: 18px !important;
}
.money-card.paid,
.rent-metric-card.paid {
  border-color: rgba(34, 197, 94, .25) !important;
  background: linear-gradient(180deg, #f0fdf4, rgba(255,255,255,.88)) !important;
}
.money-card.paid small,
.rent-metric-card.paid small {
  color: #087443 !important;
  font-weight: 800 !important;
}
@media (max-width: 980px) {
  .rentrel-pay-card-v2 {
    grid-template-columns: 1fr;
  }
  .rentrel-pay-left,
  .rentrel-pay-center {
    min-height: auto;
  }
  .payment-summary-v2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .rentrel-payment-title-v2 h1 {
    font-size: 30px !important;
  }
  .rentrel-payment-title-v2 p:not(.eyebrow) {
    font-size: 13px !important;
  }
  .rentrel-pay-card-v2 {
    padding: 12px !important;
    gap: 12px;
    border-radius: 24px !important;
  }
  .rentrel-pay-left {
    padding: 18px;
    border-radius: 20px;
  }
  .rentrel-pay-left h2 {
    font-size: 48px;
  }
  .rentrel-card-entry,
  .payment-done-box {
    padding: 16px !important;
    border-radius: 20px !important;
  }
  .rentrel-card-entry .square-card-container {
    min-height: 88px;
    padding: 10px;
  }
  .payment-summary-v2 {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  .payment-summary-v2 div {
    min-height: 70px;
    padding: 12px;
  }
}

/* =========================================================
   Rentrel embedded payment UI v3 - due balance + centered card form
   ========================================================= */
.rentrel-payment-title-v3 {
  position: relative;
  z-index: 2;
}
@media (min-width: 981px) {
  .rentrel-payment-title-v3 .payment-status-mini {
    margin-right: 132px !important;
  }
}
.payment-checkout-shell {
  margin: 14px 0 14px !important;
  padding: 18px !important;
  border-radius: 30px !important;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 16px;
  align-items: stretch;
  background: rgba(255,255,255,.86) !important;
}
.payment-due-summary {
  min-height: 260px;
  padding: 28px 30px;
  border: 1px solid rgba(37,99,235,.12);
  border-radius: 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 98% 0%, rgba(37,99,235,.10), transparent 35%),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(248,251,255,.92));
}
.payment-due-summary h2 {
  margin: 8px 0 8px;
  color: #061433;
  font-size: clamp(52px, 5.2vw, 76px);
  line-height: .92;
  letter-spacing: -.065em;
  font-weight: 780;
}
.payment-due-summary p {
  margin: 0;
  max-width: 520px;
  color: #53627c;
  font-size: 14px;
  line-height: 1.48;
  font-weight: 560;
}
.payment-due-tags {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.paid-mini-pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: #087443;
  background: #dcfce7;
  font-size: 12px;
  line-height: 1;
  font-weight: 780;
}
.payment-checkout-center {
  min-height: 260px;
  display: grid;
  place-items: center;
}
.checkout-card-box,
.centered-paid-box {
  width: min(520px, 100%);
  margin: 0 auto;
}
.checkout-card-box {
  padding: 22px !important;
  border: 1px solid rgba(205,219,242,.90) !important;
  border-radius: 24px !important;
  background: rgba(255,255,255,.94) !important;
  box-shadow: 0 20px 48px rgba(30,58,138,.08) !important;
}
.checkout-card-box .square-panel-head {
  margin-bottom: 12px;
  align-items: center;
}
.checkout-card-box .square-badge {
  color: #0d3a93 !important;
  background: #eaf2ff !important;
  padding: 7px 10px !important;
}
.checkout-card-box .card-brands {
  color: #53627c !important;
  font-size: 12px !important;
  font-weight: 680 !important;
}
.checkout-card-box .square-card-container {
  min-height: 96px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(205,219,242,.95);
  background: #fff;
  overflow: hidden;
}
.checkout-card-box .embedded-pay-btn {
  margin-top: 14px;
  min-height: 50px !important;
  border: 0 !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, var(--rentrel-blue), var(--rentrel-blue-2)) !important;
  color: #fff !important;
  box-shadow: 0 16px 34px rgba(20,93,255,.23) !important;
  font-size: 14px !important;
  font-weight: 780 !important;
}
.checkout-card-box small {
  display: block;
  margin-top: 10px;
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 560;
  text-align: center;
}
.payment-checkout-shell.is-paid .payment-due-summary {
  border-color: rgba(34,197,94,.22);
  background:
    radial-gradient(circle at 98% 0%, rgba(34,197,94,.10), transparent 35%),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(240,253,244,.88));
}
.payment-checkout-shell.is-paid .payment-due-summary h2 {
  color: #087443;
}
.payment-summary-v3 {
  margin: 0 0 18px !important;
  padding: 0 !important;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.payment-summary-v3 div {
  min-height: 78px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,.86);
}
.payment-summary-v3 div.paid {
  border-color: rgba(34,197,94,.25);
  background: #f0fdf4;
}
.payment-summary-v3 small {
  display: block;
  margin-top: 5px;
  color: #087443;
  font-size: 11px;
  font-weight: 800;
}
@media (max-width: 1100px) {
  .payment-checkout-shell {
    grid-template-columns: 1fr;
  }
  .payment-due-summary,
  .payment-checkout-center {
    min-height: auto;
  }
  .payment-summary-v3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .rentrel-payment-title-v3 .payment-status-mini {
    display: none !important;
  }
  .payment-checkout-shell {
    padding: 12px !important;
    border-radius: 24px !important;
    gap: 12px;
  }
  .payment-due-summary {
    padding: 18px;
    border-radius: 20px;
  }
  .payment-due-summary h2 {
    font-size: 48px;
  }
  .checkout-card-box,
  .centered-paid-box {
    width: 100%;
  }
  .checkout-card-box {
    padding: 16px !important;
    border-radius: 20px !important;
  }
  .payment-summary-v3 {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  .payment-summary-v3 div {
    min-height: 70px;
    padding: 12px;
  }
}

/* =========================================================
   Rentrel embedded payment UI v4
   Fix desktop top-right status overlap + mobile paid card order
   ========================================================= */
@media (min-width: 1181px) {
  .rentrel-payment-title-v3 .payment-status-mini {
    margin-right: 230px !important;
    min-width: 220px !important;
  }
}

@media (min-width: 981px) and (max-width: 1180px) {
  .rentrel-payment-title-v3 .payment-status-mini {
    margin-right: 190px !important;
    min-width: 200px !important;
  }
}

@media (max-width: 980px) {
  .rentrel-payment-title-v3 .payment-status-mini {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .payment-checkout-shell.is-paid {
    display: flex !important;
    flex-direction: column !important;
  }
  .payment-checkout-shell.is-paid .payment-checkout-center {
    order: 1 !important;
  }
  .payment-checkout-shell.is-paid .payment-due-summary {
    order: 2 !important;
  }
  .payment-checkout-shell.is-paid .centered-paid-box {
    padding: 22px 16px !important;
  }
  .payment-checkout-shell.is-paid .payment-done-icon {
    width: 58px !important;
    height: 58px !important;
    font-size: 34px !important;
  }
  .payment-checkout-shell.is-paid .payment-due-summary {
    min-height: 0 !important;
  }
}

/* =========================================================
   Rentrel payment UI v5 - badge alignment, payment record cleanup, nav cleanup
   ========================================================= */
.payment-due-tags .payment-scenario-pill {
  margin-top: 0 !important;
  min-height: 30px !important;
  display: inline-flex !important;
  align-items: center !important;
}
.payment-due-tags .paid-mini-pill {
  min-height: 30px !important;
  display: inline-flex !important;
  align-items: center !important;
}
.payment-card-brand-display {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  min-width: 0;
}
.payment-card-brand-display img {
  display: inline-block;
  width: 54px;
  height: auto;
  max-height: 20px;
  object-fit: contain;
  vertical-align: middle;
}
.payment-card-brand-display .card-brand-text {
  color: #0d3a93;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .02em;
}
.payment-card-brand-display span:last-child {
  color: #061433;
  font-size: 13px;
  line-height: 1;
  font-weight: 760;
}
@media (max-width: 640px) {
  .payment-due-tags {
    gap: 7px !important;
  }
  .payment-due-tags .payment-scenario-pill,
  .payment-due-tags .paid-mini-pill {
    min-height: 28px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
  }
  .payment-card-brand-display {
    justify-content: flex-start !important;
  }
  .payment-card-brand-display img {
    width: 48px;
    max-height: 18px;
  }
}

/* =========================================================
   Rentrel payment UI v6 - real card brand badges / no logo stretch
   ========================================================= */
.accepted-card-logos {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}
.accepted-card-logos img {
  display: block !important;
  width: auto !important;
  height: 18px !important;
  max-width: 74px !important;
  object-fit: contain !important;
  border-radius: 4px !important;
  background: #fff !important;
  box-shadow: 0 6px 16px rgba(9, 28, 74, .06) !important;
}
.payment-card-brand-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 9px !important;
  min-width: 0 !important;
}
.payment-card-brand-badge img {
  display: block !important;
  width: auto !important;
  height: 19px !important;
  max-width: 82px !important;
  object-fit: contain !important;
  object-position: center !important;
  border-radius: 4px !important;
  background: #fff !important;
  box-shadow: 0 4px 12px rgba(9, 28, 74, .05) !important;
}
.payment-card-brand-badge.brand-amex img {
  height: 22px !important;
}
.payment-card-brand-badge.brand-mastercard img {
  height: 23px !important;
}
.payment-card-last4 {
  color: #061433 !important;
  font-size: 13px !important;
  line-height: 1 !important;
  font-weight: 760 !important;
  white-space: nowrap !important;
}
.payment-done-card-brand,
.payment-done-card-brand .payment-card-brand-badge {
  display: inline-flex !important;
  align-items: center !important;
}
.payment-done-meta .payment-done-card-brand {
  padding: 0 12px !important;
}
.payment-card-brand-display {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 0 !important;
}
.payment-card-brand-display > img {
  display: none !important;
}
.payment-card-brand-display .card-brand-text {
  color: #0d3a93 !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  letter-spacing: .02em !important;
}
@media (max-width: 640px) {
  .accepted-card-logos {
    gap: 6px !important;
  }
  .accepted-card-logos img {
    height: 16px !important;
    max-width: 66px !important;
  }
  .payment-card-brand-display,
  .payment-card-brand-badge {
    justify-content: flex-start !important;
  }
  .payment-card-brand-badge img {
    height: 18px !important;
    max-width: 76px !important;
  }
  .payment-card-brand-badge.brand-amex img,
  .payment-card-brand-badge.brand-mastercard img {
    height: 20px !important;
  }
}

/* Rentrel customer history timeline */
.history-title-row .history-status-card strong{
  max-width:240px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.history-shell-card{
  padding:26px;
  margin-top:22px;
}
.history-filter-bar{
  display:flex;
  align-items:center;
  gap:10px;
  overflow-x:auto;
  padding:4px 2px 18px;
  scrollbar-width:none;
}
.history-filter-bar::-webkit-scrollbar{display:none;}
.history-filter-btn{
  border:1px solid rgba(39,99,230,.14);
  background:rgba(255,255,255,.76);
  color:#52627b;
  border-radius:999px;
  padding:10px 14px;
  display:inline-flex;
  align-items:center;
  gap:9px;
  font-weight:750;
  font-size:13px;
  line-height:1;
  cursor:pointer;
  transition:.18s ease;
  white-space:nowrap;
}
.history-filter-btn b{
  min-width:22px;
  height:22px;
  display:inline-grid;
  place-items:center;
  border-radius:999px;
  background:#eef4ff;
  color:#2763e6;
  font-size:12px;
}
.history-filter-btn.active{
  background:#2763e6;
  border-color:#2763e6;
  color:#fff;
  box-shadow:0 14px 30px rgba(39,99,230,.20);
}
.history-filter-btn.active b{
  background:rgba(255,255,255,.20);
  color:#fff;
}
.history-timeline{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.history-day-heading{
  margin:12px 0 2px;
  color:#76859d;
  font-size:12px;
  font-weight:850;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.history-item-card{
  display:grid;
  grid-template-columns:48px minmax(0,1fr);
  gap:14px;
  padding:18px;
  border:1px solid rgba(147,170,210,.28);
  background:rgba(255,255,255,.82);
  border-radius:24px;
  box-shadow:0 16px 38px rgba(21,45,95,.06);
}
.history-item-icon{
  width:44px;
  height:44px;
  border-radius:16px;
  display:grid;
  place-items:center;
  background:#edf4ff;
  color:#2763e6;
  font-weight:900;
  font-size:18px;
}
.history-item-icon.category-payments{background:#e7fff0;color:#0a8d44;}
.history-item-icon.category-portal{background:#edf4ff;color:#2763e6;}
.history-item-icon.category-application{background:#fff5dd;color:#aa6800;}
.history-item-icon.category-support{background:#f1ecff;color:#7047d7;}
.history-item-icon.category-account{background:#f3f6fb;color:#51627c;}
.history-item-main{min-width:0;}
.history-item-top{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-start;
}
.history-item-top h2{
  margin:0;
  color:#0d1b37;
  font-size:18px;
  line-height:1.18;
  font-weight:800;
}
.history-item-top p{
  margin:6px 0 0;
  color:#5d6c86;
  font-size:13px;
  line-height:1.45;
  font-weight:600;
}
.history-item-side{
  display:flex;
  align-items:flex-end;
  gap:8px;
  flex-direction:column;
  white-space:nowrap;
}
.history-item-side strong{
  color:#0d1b37;
  font-size:17px;
  font-weight:850;
}
.history-status-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:24px;
  padding:5px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:850;
  background:#eef4ff;
  color:#2763e6;
}
.history-status-pill.success{background:#e6faee;color:#087b3f;}
.history-status-pill.danger{background:#fee9ee;color:#b42340;}
.history-status-pill.progress{background:#eef4ff;color:#2763e6;}
.history-item-meta{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px 14px;
  margin-top:14px;
  color:#71809a;
  font-size:12px;
  font-weight:700;
}
.history-item-meta b{
  color:#475670;
  font-weight:850;
}
.history-card-brand{
  display:inline-flex;
  align-items:center;
  gap:7px;
  vertical-align:middle;
}
.history-card-brand img{
  display:block;
  width:auto;
  max-width:54px;
  height:16px;
  object-fit:contain;
}
.history-card-brand span{
  color:#0d1b37;
  font-weight:850;
}
.history-empty-state,.history-filter-empty{margin-top:10px;}
@media (max-width: 760px){
  .history-shell-card{padding:16px;margin-top:14px;border-radius:24px;}
  .history-title-row .history-status-card{display:none;}
  .history-filter-bar{gap:8px;padding-bottom:14px;margin-left:-2px;margin-right:-2px;}
  .history-filter-btn{padding:9px 12px;font-size:12px;}
  .history-filter-btn b{min-width:20px;height:20px;font-size:11px;}
  .history-day-heading{margin:10px 0 0;font-size:11px;}
  .history-item-card{grid-template-columns:38px minmax(0,1fr);gap:11px;padding:14px;border-radius:20px;}
  .history-item-icon{width:36px;height:36px;border-radius:13px;font-size:15px;}
  .history-item-top{gap:10px;}
  .history-item-top h2{font-size:15px;}
  .history-item-top p{font-size:12px;margin-top:4px;}
  .history-item-side strong{font-size:14px;}
  .history-status-pill{font-size:11px;min-height:22px;padding:4px 8px;}
  .history-item-meta{margin-top:10px;font-size:11px;gap:7px 10px;}
  .history-card-brand img{max-width:46px;height:14px;}
}
@media (max-width: 430px){
  .history-item-top{flex-direction:column;align-items:flex-start;}
  .history-item-side{align-items:flex-start;flex-direction:row;flex-wrap:wrap;}
}

/* History compact timeline v3 */
.history-title-simple{
  display:block !important;
  max-width: 920px;
  margin-bottom: 14px;
}
.history-title-simple h1{
  font-size: clamp(34px, 3.1vw, 54px);
  letter-spacing: -.04em;
  margin-bottom: 8px;
}
.history-title-simple p:not(.eyebrow){
  max-width: 680px;
  line-height: 1.45;
}
.history-compact-shell{
  padding: 18px 20px !important;
  border-radius: 26px !important;
}
.history-compact-shell .history-filter-bar,
.history-compact-shell .history-filter-empty,
.history-compact-shell .history-empty-state{
  display:none !important;
}
.history-compact-timeline{
  display:flex;
  flex-direction:column;
  gap:8px !important;
}
.history-compact-timeline .history-day-heading{
  margin: 6px 0 2px !important;
  font-size: 10px !important;
  letter-spacing: .08em;
  color:#66748e;
}
.history-compact-item{
  grid-template-columns: 32px minmax(0,1fr) !important;
  gap:10px !important;
  padding: 10px 12px !important;
  border-radius: 16px !important;
  min-height: auto !important;
}
.history-compact-item .history-item-icon{
  width:30px !important;
  height:30px !important;
  border-radius:11px !important;
  font-size:13px !important;
}
.history-compact-line{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.history-compact-copy{
  min-width:0;
}
.history-compact-copy h2{
  margin:0;
  font-size:14px !important;
  line-height:1.22;
  letter-spacing:-.015em;
  color:#101a33;
}
.history-compact-copy p{
  margin:3px 0 0;
  font-size:12px !important;
  line-height:1.35;
  color:#60708a;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width: 760px;
}
.history-compact-side{
  display:flex !important;
  align-items:center !important;
  flex-direction:row !important;
  gap:8px !important;
  flex-shrink:0;
}
.history-compact-side strong{
  font-size:13px !important;
  line-height:1;
}
.history-compact-side .history-status-pill{
  min-height:20px !important;
  padding:3px 8px !important;
  font-size:10px !important;
  border-radius:999px !important;
}
.history-compact-meta{
  margin-top:5px !important;
  gap:6px 12px !important;
  font-size:10.5px !important;
  color:#6e7d96;
  line-height:1.3;
}
.history-compact-meta span{
  display:inline-flex;
  align-items:center;
  gap:4px;
}
.history-compact-meta b{
  font-size:inherit !important;
  color:#56657d;
}
.history-compact-meta .history-card-brand{
  gap:6px;
}
.history-compact-meta .history-card-brand img{
  width:auto !important;
  height:12px !important;
  max-width:40px !important;
  object-fit:contain !important;
}
.history-compact-meta .history-card-brand span{
  font-size:10.5px !important;
}
@media (max-width: 720px){
  .history-title-simple{
    margin-bottom:10px;
  }
  .history-title-simple h1{
    font-size:32px;
  }
  .history-title-simple p:not(.eyebrow){
    font-size:13px;
  }
  .history-compact-shell{
    padding:12px !important;
    border-radius:22px !important;
  }
  .history-compact-timeline{
    gap:7px !important;
  }
  .history-compact-item{
    grid-template-columns:28px minmax(0,1fr) !important;
    gap:8px !important;
    padding:9px 10px !important;
    border-radius:15px !important;
  }
  .history-compact-item .history-item-icon{
    width:28px !important;
    height:28px !important;
    border-radius:10px !important;
    font-size:12px !important;
  }
  .history-compact-line{
    gap:8px;
    align-items:flex-start;
  }
  .history-compact-copy h2{
    font-size:13.5px !important;
  }
  .history-compact-copy p{
    font-size:11.5px !important;
    white-space:normal;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
  }
  .history-compact-side{
    gap:5px !important;
    flex-direction:column !important;
    align-items:flex-end !important;
  }
  .history-compact-meta{
    margin-top:5px !important;
    font-size:10px !important;
    gap:4px 8px !important;
  }
}


/* =========================================================
   Rentrel Support Ticket UI v1
   Simple ticket-only support page + hidden removed zero-noise sections
   ========================================================= */
.support-title-row h1 {
  font-size: clamp(38px, 4.2vw, 58px) !important;
  line-height: .98 !important;
  letter-spacing: -.055em !important;
  font-weight: 740 !important;
}
.support-title-row p:not(.eyebrow) {
  max-width: 680px !important;
  font-size: 14.5px !important;
  line-height: 1.48 !important;
  font-weight: 500 !important;
}
.support-ticket-card {
  max-width: 780px;
  padding: 24px !important;
}
.support-ticket-head {
  margin-bottom: 16px;
}
.support-ticket-head span {
  display: block;
  color: #2563eb;
  font-size: 12px;
  line-height: 1;
  font-weight: 780;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.support-ticket-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.05;
  letter-spacing: -.04em;
  font-weight: 720;
}
.support-ticket-head p {
  margin: 8px 0 0;
  max-width: 620px;
  color: #64748b;
  font-size: 13.5px;
  line-height: 1.45;
  font-weight: 500;
}
.support-ticket-form {
  gap: 13px !important;
}
.support-ticket-form .field-label span {
  color: #475569;
  font-size: 12px;
  font-weight: 680;
  letter-spacing: -0.01em;
}
.support-ticket-form input,
.support-ticket-form textarea {
  width: 100%;
  border: 1px solid #dbe5f2 !important;
  border-radius: 16px !important;
  background: #fff !important;
  color: #0f172a !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}
.support-ticket-form input {
  min-height: 48px !important;
  padding: 0 15px !important;
}
.support-ticket-form textarea {
  min-height: 146px !important;
  padding: 14px 15px !important;
  resize: vertical;
}
.support-ticket-form input:focus,
.support-ticket-form textarea:focus {
  border-color: #2563eb !important;
  outline: none !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .10) !important;
}
.support-ticket-actions {
  display: flex;
  justify-content: flex-start;
  padding-top: 2px;
}
.support-ticket-alert {
  margin-bottom: 14px;
}
@media (max-width: 820px) {
  .support-title-row h1 {
    font-size: 30px !important;
    line-height: 1.04 !important;
    letter-spacing: -.045em !important;
  }
  .support-title-row p:not(.eyebrow) {
    font-size: 13.2px !important;
    line-height: 1.42 !important;
  }
  .support-ticket-card {
    padding: 14px !important;
    border-radius: 22px !important;
  }
  .support-ticket-head {
    margin-bottom: 12px;
  }
  .support-ticket-head h2 {
    font-size: 22px !important;
  }
  .support-ticket-head p {
    font-size: 12.5px !important;
    line-height: 1.38 !important;
  }
  .support-ticket-form {
    gap: 10px !important;
  }
  .support-ticket-form input {
    min-height: 44px !important;
    border-radius: 14px !important;
  }
  .support-ticket-form textarea {
    min-height: 128px !important;
    border-radius: 14px !important;
  }
  .support-ticket-actions .primary-btn {
    width: 100%;
    justify-content: center;
  }
}
@media (max-width: 430px) {
  .support-ticket-card { padding: 12px !important; }
  .support-title-row h1 { font-size: 28px !important; }
}

/* =========================================================
   Rentrel Support Ticket UI Fix v2
   Centered support form + slightly wider card
   ========================================================= */
.support-title-row {
  text-align: center !important;
  justify-content: center !important;
}
.support-title-row > div {
  width: 100% !important;
  max-width: 760px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.support-title-row p:not(.eyebrow) {
  margin-left: auto !important;
  margin-right: auto !important;
}
.support-ticket-card {
  width: min(100%, 860px) !important;
  max-width: 860px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 28px !important;
}
.support-ticket-head {
  text-align: center !important;
  max-width: 720px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.support-ticket-head p {
  margin-left: auto !important;
  margin-right: auto !important;
}
.support-ticket-form {
  width: 100% !important;
  max-width: 760px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.support-ticket-form .field-label {
  width: 100% !important;
}
.support-ticket-actions {
  justify-content: center !important;
  padding-top: 8px !important;
}
.support-ticket-actions .primary-btn {
  min-width: 160px !important;
  justify-content: center !important;
}

@media (max-width: 820px) {
  .support-title-row {
    text-align: left !important;
  }
  .support-title-row > div,
  .support-title-row p:not(.eyebrow) {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .support-ticket-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px !important;
  }
  .support-ticket-head {
    text-align: left !important;
  }
  .support-ticket-form {
    max-width: 100% !important;
  }
  .support-ticket-actions {
    justify-content: stretch !important;
    padding-top: 4px !important;
  }
  .support-ticket-actions .primary-btn {
    width: 100% !important;
  }
}
/* =========================================================
   Rentrel Dashboard Final Flow v1
   Home copy, progress states, installment timeline
   ========================================================= */
.dashboard-final-title-row {
  align-items: flex-start !important;
}
.dashboard-final-title-row .home-mini-duo {
  display: none !important;
}
.dashboard-final-progress-card .section-title-row p {
  max-width: 620px;
}
.dashboard-final-timeline .timeline-step.pending .timeline-dot {
  background: #ffffff;
  color: #64748b;
  border-color: #cbd7ea;
  box-shadow: none;
}
.dashboard-final-timeline .timeline-step.pending span {
  color: var(--rentrel-muted);
}
.dashboard-installments-card .section-title-row p {
  max-width: 520px;
}
.installment-line {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  margin-top: 16px;
}
.installment-line::before {
  left: 16% !important;
  right: 16% !important;
  background: linear-gradient(90deg, rgba(20,93,255,.55), #d7e2f2) !important;
}
.installment-step.done span,
.installment-step.current span {
  color: #fff !important;
  background: linear-gradient(135deg, var(--rentrel-blue), var(--rentrel-blue-2)) !important;
  border-color: transparent !important;
  box-shadow: 0 16px 32px rgba(20,93,255,.22);
}
.installment-step.done strong,
.installment-step.current strong {
  color: var(--rentrel-ink) !important;
}
.installment-step.done small,
.installment-step.current small {
  color: var(--rentrel-blue) !important;
}
.installment-step.pending span {
  background: #eaf2ff !important;
  color: var(--rentrel-blue) !important;
  border: 1px solid rgba(20,93,255,.12) !important;
}
.next-step-copy > span {
  text-transform: uppercase;
  letter-spacing: .04em;
}
@media (max-width: 820px) {
  .dashboard-final-title-row {
    margin-bottom: 14px !important;
  }
  .dashboard-final-timeline {
    overflow-x: auto !important;
    grid-template-columns: repeat(5, minmax(96px, 1fr)) !important;
    padding-bottom: 4px;
  }
  .installment-line {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .installment-line::before {
    display: none !important;
  }
  .installment-step {
    grid-template-columns: auto 1fr !important;
    justify-items: start !important;
    text-align: left !important;
    column-gap: 12px !important;
    align-items: center;
  }
  .installment-step span {
    grid-row: span 2;
    width: 44px !important;
    height: 44px !important;
    border-radius: 16px !important;
  }
  .installment-step strong,
  .installment-step small {
    text-align: left !important;
  }
}
/* =========================================================
   Rentrel Dashboard Mobile Final Fix v3
   Mobile only: progress fit, 2x2 amount summary, installments row
   ========================================================= */
@media (max-width: 820px) {
  /* Rent Support Progress: fit all 5 steps without horizontal scroll */
  .dashboard-final-progress-card {
    padding: 16px 12px !important;
    overflow: hidden !important;
  }
  .dashboard-final-progress-card .section-title-row {
    margin-bottom: 10px !important;
  }
  .dashboard-final-progress-card .section-title-row h2 {
    font-size: 20px !important;
    line-height: 1.12 !important;
    font-weight: 720 !important;
    letter-spacing: -.03em !important;
  }
  .dashboard-final-progress-card .section-title-row p {
    font-size: 12px !important;
    line-height: 1.3 !important;
    font-weight: 500 !important;
  }
  .status-timeline.dashboard-final-timeline,
  .dashboard-final-timeline {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 0 !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    padding: 8px 0 0 !important;
    scrollbar-width: none !important;
  }
  .dashboard-final-timeline::-webkit-scrollbar {
    display: none !important;
  }
  .dashboard-final-timeline::before {
    left: 9% !important;
    right: 9% !important;
    top: 25px !important;
    height: 2px !important;
  }
  .dashboard-final-timeline .timeline-step {
    min-width: 0 !important;
    width: 100% !important;
    padding: 0 1px !important;
    gap: 5px !important;
    text-align: center !important;
  }
  .dashboard-final-timeline .timeline-dot {
    width: 34px !important;
    height: 34px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    font-weight: 760 !important;
    margin-bottom: 4px !important;
  }
  .dashboard-final-timeline .timeline-step strong {
    max-width: 100% !important;
    font-size: 9.5px !important;
    line-height: 1.08 !important;
    font-weight: 650 !important;
    letter-spacing: -.01em !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }
  .dashboard-final-timeline .timeline-step span {
    font-size: 9px !important;
    line-height: 1.05 !important;
    font-weight: 500 !important;
    white-space: normal !important;
  }

  /* Amount Summary: 2 cards per row on mobile */
  .amount-summary-section {
    padding: 17px 14px !important;
  }
  .amount-summary-section .section-title-row h2 {
    font-size: 20px !important;
    line-height: 1.12 !important;
    font-weight: 720 !important;
  }
  .amount-summary-section .section-title-row p {
    font-size: 12px !important;
    line-height: 1.35 !important;
    font-weight: 500 !important;
  }
  .amount-summary-section .rent-metric-grid,
  .rent-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .amount-summary-section .rent-metric-card {
    min-height: 112px !important;
    padding: 13px 10px !important;
    display: grid !important;
    grid-template-columns: 34px 1fr !important;
    gap: 9px !important;
    align-items: center !important;
  }
  .amount-summary-section .metric-icon {
    width: 34px !important;
    height: 34px !important;
    border-radius: 13px !important;
    font-size: 15px !important;
  }
  .amount-summary-section .rent-metric-card span:not(.metric-icon) {
    font-size: 10.5px !important;
    line-height: 1.1 !important;
    font-weight: 650 !important;
  }
  .amount-summary-section .rent-metric-card strong {
    font-size: 22px !important;
    line-height: 1.05 !important;
    font-weight: 740 !important;
  }
  .amount-summary-section .rent-metric-card small {
    font-size: 10.5px !important;
    line-height: 1.15 !important;
    font-weight: 500 !important;
  }

  /* Installments: keep all 3 items in one row on mobile */
  .dashboard-installments-card {
    padding: 17px 14px !important;
    overflow: hidden !important;
  }
  .dashboard-installments-card .section-title-row {
    margin-bottom: 12px !important;
  }
  .dashboard-installments-card .section-title-row h2 {
    font-size: 20px !important;
    line-height: 1.12 !important;
    font-weight: 720 !important;
  }
  .dashboard-installments-card .section-title-row p {
    font-size: 12px !important;
    line-height: 1.32 !important;
    font-weight: 500 !important;
  }
  .dashboard-installments-card .section-title-row .mini-btn {
    min-height: 30px !important;
    padding: 0 11px !important;
    font-size: 11px !important;
  }
  .installment-line {
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0 !important;
    margin-top: 6px !important;
    padding: 0 0 4px !important;
    overflow: visible !important;
  }
  .installment-line::before {
    display: block !important;
    left: 16% !important;
    right: 16% !important;
    top: 18px !important;
    height: 2px !important;
  }
  .installment-step {
    min-width: 0 !important;
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    text-align: center !important;
    gap: 4px !important;
    padding: 0 2px !important;
  }
  .installment-step span {
    grid-row: auto !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 13px !important;
    font-size: 13px !important;
    font-weight: 760 !important;
    margin-bottom: 3px !important;
  }
  .installment-step strong {
    font-size: 10px !important;
    line-height: 1.1 !important;
    font-weight: 650 !important;
    text-align: center !important;
    letter-spacing: -.01em !important;
  }
  .installment-step small {
    font-size: 9.5px !important;
    line-height: 1.1 !important;
    font-weight: 500 !important;
    text-align: center !important;
  }
}

@media (max-width: 390px) {
  .dashboard-final-timeline .timeline-dot {
    width: 30px !important;
    height: 30px !important;
    border-radius: 11px !important;
    font-size: 12px !important;
  }
  .dashboard-final-timeline::before {
    top: 23px !important;
  }
  .dashboard-final-timeline .timeline-step strong {
    font-size: 8.8px !important;
  }
  .dashboard-final-timeline .timeline-step span {
    font-size: 8.4px !important;
  }
  .amount-summary-section .rent-metric-card {
    min-height: 104px !important;
    grid-template-columns: 30px 1fr !important;
    padding: 11px 9px !important;
  }
  .amount-summary-section .metric-icon {
    width: 30px !important;
    height: 30px !important;
    border-radius: 11px !important;
  }
  .amount-summary-section .rent-metric-card strong {
    font-size: 20px !important;
  }
  .installment-step span {
    width: 32px !important;
    height: 32px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
  }
  .installment-line::before {
    top: 16px !important;
  }
  .installment-step strong {
    font-size: 9.2px !important;
  }
  .installment-step small {
    font-size: 8.8px !important;
  }
}
/* =========================================================
   Rentrel Dashboard Mobile Progress Line Fix v4
   Mobile only: stop the progress connector at step 5
   ========================================================= */
@media (max-width: 820px) {
  .dashboard-final-progress-card .dashboard-final-timeline::before,
  .dashboard-final-progress-card .status-timeline.dashboard-final-timeline::before {
    left: calc(10% + 1px) !important;
    right: calc(10% + 8px) !important;
    width: auto !important;
  }
}

@media (max-width: 390px) {
  .dashboard-final-progress-card .dashboard-final-timeline::before,
  .dashboard-final-progress-card .status-timeline.dashboard-final-timeline::before {
    left: calc(10% + 1px) !important;
    right: calc(10% + 7px) !important;
    width: auto !important;
  }
}
/* Rentrel My Portal saved summary collapse patch v1 */
.myportal-saved-summary-card {
  position: relative;
  display: grid;
  gap: 18px;
  max-width: 1120px;
  margin-bottom: 18px;
  padding: 22px !important;
}
.myportal-saved-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.myportal-saved-head h2 {
  margin: 0;
  color: var(--rentrel-ink, #061633);
  font-size: clamp(24px, 2.1vw, 32px);
  line-height: 1.05;
  letter-spacing: -.045em;
  font-weight: 730;
}
.myportal-saved-head p:not(.eyebrow) {
  margin: 7px 0 0;
  color: var(--rentrel-muted, #64748b);
  font-size: 13.5px;
  line-height: 1.45;
  font-weight: 540;
}
.edit-portal-btn {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 16px;
  color: #0b46d8;
  background: #eef6ff;
  border: 1px solid rgba(20, 93, 255, .18);
  font-weight: 780;
}
.myportal-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.myportal-summary-item {
  min-height: 82px;
  padding: 15px 16px;
  border: 1px solid rgba(198, 213, 238, .7);
  border-radius: 18px;
  background: rgba(248, 251, 255, .86);
}
.myportal-summary-item span {
  display: block;
  color: #667085;
  font-size: 11px;
  line-height: 1.15;
  font-weight: 820;
  text-transform: uppercase;
  letter-spacing: .035em;
}
.myportal-summary-item strong {
  display: block;
  margin-top: 8px;
  color: var(--rentrel-ink, #061633);
  font-size: 15.5px;
  line-height: 1.28;
  font-weight: 720;
  word-break: break-word;
}
.portal-save-loader {
  position: absolute;
  inset: 0;
  z-index: 9;
  display: grid;
  place-items: center;
  gap: 12px;
  border-radius: inherit;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
}
.portal-save-loader strong {
  color: var(--rentrel-ink, #061633);
  font-size: 15px;
  font-weight: 760;
}
.portal-save-spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 4px solid #dbeafe;
  border-top-color: var(--rentrel-blue, #145dff);
  animation: rentrelSpin .75s linear infinite;
}
@keyframes rentrelSpin { to { transform: rotate(360deg); } }
.portal-dynamic-setup.is-saving {
  position: relative;
  pointer-events: none;
  opacity: .76;
}
.portal-dynamic-setup.is-saving::after {
  content: 'Saving portal details...';
  position: sticky;
  left: 50%;
  bottom: 18px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--rentrel-blue, #145dff), #0b46d8);
  box-shadow: 0 18px 38px rgba(20, 93, 255, .22);
  font-size: 13px;
  font-weight: 780;
}
#myPortalEditCard[hidden],
#myPortalSavedSummary[hidden] {
  display: none !important;
}
#myPortalEditCard.is-editing-open {
  animation: rentrelPortalOpen .18s ease-out;
}
@keyframes rentrelPortalOpen {
  from { opacity: .35; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 820px) {
  .myportal-saved-summary-card {
    padding: 14px !important;
    border-radius: 24px !important;
    gap: 12px;
  }
  .myportal-saved-head {
    display: grid;
    gap: 12px;
  }
  .myportal-saved-head h2 {
    font-size: 22px;
    letter-spacing: -.035em;
  }
  .myportal-saved-head p:not(.eyebrow) {
    font-size: 12.8px;
  }
  .edit-portal-btn {
    width: 100%;
    min-height: 44px;
  }
  .myportal-summary-grid {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .myportal-summary-item {
    min-height: 68px;
    padding: 11px 12px;
    border-radius: 16px;
  }
  .myportal-summary-item span {
    font-size: 9.8px;
  }
  .myportal-summary-item strong {
    margin-top: 6px;
    font-size: 13px;
  }
}
@media (max-width: 430px) {
  .myportal-summary-grid {
    grid-template-columns: 1fr;
  }
}
/* =========================================================
   Rentrel Dashboard Portal Missing Fix v5
   Only adds red progress state when upfront is paid before My Portal setup.
   ========================================================= */
.dashboard-final-timeline .timeline-step.blocked .timeline-dot {
  color: #ffffff !important;
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  border-color: transparent !important;
  box-shadow: 0 16px 32px rgba(220, 38, 38, .20) !important;
}
.dashboard-final-timeline .timeline-step.blocked strong,
.dashboard-final-timeline .timeline-step.blocked span {
  color: #dc2626 !important;
}
.dashboard-final-timeline .timeline-step.blocked::after {
  background: #fca5a5 !important;
}
@media (max-width: 820px) {
  .dashboard-final-timeline .timeline-step.blocked .timeline-dot {
    box-shadow: 0 10px 22px rgba(220, 38, 38, .16) !important;
  }
}

/* =========================================================
   Profile menu + dark/light appearance upgrade v1
   ========================================================= */
html.theme-dark-preload,
body.theme-dark {
  background: #0c1222;
}
body.theme-transitioning,
body.theme-transitioning *,
body.theme-transitioning *::before,
body.theme-transitioning *::after {
  transition: background-color .52s ease, color .52s ease, border-color .52s ease, box-shadow .52s ease, fill .52s ease, opacity .52s ease !important;
}
body.theme-dark {
  --bg: #0c1222;
  --panel: #111a2f;
  --card: #111827;
  --ink: #f8fbff;
  --text: #e6edf8;
  --muted: #9aa7bd;
  --soft: #6f7b91;
  --line: rgba(148,163,184,.26);
  --line-soft: rgba(148,163,184,.18);
  --blue-soft: rgba(37,99,235,.14);
  --shadow: 0 18px 46px rgba(0,0,0,.24);
  --shadow-strong: 0 28px 70px rgba(0,0,0,.36);
  background:
    radial-gradient(circle at 88% 4%, rgba(37,99,235,.22), transparent 30%),
    radial-gradient(circle at 16% 0%, rgba(96,165,250,.12), transparent 26%),
    var(--bg) !important;
  color: var(--text) !important;
}
body.theme-dark .main-area,
body.theme-dark .topbar {
  background: transparent !important;
}
body.theme-dark .topbar {
  background: rgba(12,18,34,.76) !important;
}
body.theme-dark .side-nav {
  background: rgba(10,16,30,.92) !important;
  border-right-color: rgba(148,163,184,.16) !important;
  box-shadow: 8px 0 30px rgba(0,0,0,.24) !important;
}
body.theme-dark .side-brand img,
body.theme-dark .mobile-brand img {
  filter: brightness(0) invert(1);
}
body.theme-dark .side-link {
  color: #d8e2f2 !important;
}
body.theme-dark .side-link:hover,
body.theme-dark .side-link.active {
  color: #ffffff !important;
  background: rgba(37,99,235,.22) !important;
}
body.theme-dark .side-icon,
body.theme-dark .top-icon,
body.theme-dark .profile-chip,
body.theme-dark .hamburger-btn,
body.theme-dark .side-close {
  background: rgba(255,255,255,.08) !important;
  color: #eef4ff !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.22) !important;
}
body.theme-dark .portal-card,
body.theme-dark .money-card,
body.theme-dark .application-card,
body.theme-dark .next-step-panel,
body.theme-dark .status-timeline-card,
body.theme-dark .rent-metric-card,
body.theme-dark .dynamic-setup-shell,
body.theme-dark .dynamic-payment-card,
body.theme-dark .payment-form-card,
body.theme-dark .detail-tile,
body.theme-dark .profile-form-card,
body.theme-dark .profile-dropdown,
body.theme-dark .side-profile-mobile,
body.theme-dark .side-profile-actions {
  background: rgba(17,24,39,.88) !important;
  color: var(--text) !important;
  border-color: rgba(148,163,184,.20) !important;
  box-shadow: 0 18px 46px rgba(0,0,0,.26) !important;
}
body.theme-dark h1,
body.theme-dark h2,
body.theme-dark h3,
body.theme-dark strong,
body.theme-dark .hero-row h1,
body.theme-dark .money-card strong,
body.theme-dark .rent-metric-card strong {
  color: #f8fbff !important;
}
body.theme-dark p,
body.theme-dark small,
body.theme-dark .subtle,
body.theme-dark .money-card span,
body.theme-dark .detail-tile span,
body.theme-dark .portal-card p,
body.theme-dark .section-title-row p {
  color: #9aa7bd !important;
}
body.theme-dark input,
body.theme-dark textarea,
body.theme-dark select {
  background: rgba(15,23,42,.92) !important;
  color: #f8fbff !important;
  border-color: rgba(148,163,184,.24) !important;
}
body.theme-dark input::placeholder,
body.theme-dark textarea::placeholder { color: #6f7b91 !important; }

.profile-menu-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.profile-chip {
  border: 0;
  cursor: pointer;
  position: relative;
}
.profile-chip:focus-visible,
.theme-switch:focus-visible,
.side-profile-toggle:focus-visible {
  outline: 3px solid rgba(37,99,235,.28);
  outline-offset: 3px;
}
.profile-avatar.has-photo,
.profile-dropdown-avatar.has-photo,
.side-profile-avatar.has-photo,
.settings-photo-preview.has-photo {
  background: transparent !important;
  overflow: hidden;
}
.profile-avatar img,
.profile-dropdown-avatar img,
.side-profile-avatar img,
.settings-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}
.profile-caret {
  color: #7b8798;
  font-size: 13px;
  margin-left: -2px;
}
.profile-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(330px, calc(100vw - 28px));
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 28px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 24px 70px rgba(30,58,138,.18);
  backdrop-filter: blur(18px);
  z-index: 1000;
  transform-origin: top right;
  animation: rentrelProfileDrop .18s ease both;
}
@keyframes rentrelProfileDrop {
  from { opacity: 0; transform: translateY(-8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.profile-dropdown-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 12px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 8px;
}
.profile-dropdown-avatar,
.side-profile-avatar,
.settings-photo-preview {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  font-weight: 900;
  flex: 0 0 auto;
}
.profile-dropdown-head strong { display: block; color: var(--ink); font-size: 15px; line-height: 1.15; }
.profile-dropdown-head span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; max-width: 230px; }
.profile-drop-link {
  min-height: 44px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 10px;
  color: var(--text);
  font-weight: 850;
  transition: background .16s ease, transform .16s ease;
}
.profile-drop-link:hover { background: rgba(37,99,235,.09); transform: translateX(2px); }
.profile-drop-link span { width: 28px; height: 28px; border-radius: 10px; display: grid; place-items: center; background: rgba(37,99,235,.10); }
.profile-drop-link.logout-link { color: #ef4444; }
.profile-appearance-box {
  margin: 10px 0;
  padding: 13px;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(37,99,235,.045);
}
.profile-appearance-box strong,
.profile-theme-row strong { display: block; color: var(--ink); font-size: 13px; font-weight: 900; }
.profile-appearance-box span,
.profile-theme-row span { display: block; color: var(--muted); font-size: 12px; font-weight: 760; }
.theme-switch {
  width: 76px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 9px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #93c5fd, #60a5fa);
  box-shadow: inset 0 1px 3px rgba(255,255,255,.55), 0 10px 24px rgba(37,99,235,.18);
  overflow: hidden;
}
.theme-switch .sun,
.theme-switch .moon {
  position: relative;
  z-index: 2;
  font-size: 15px;
  line-height: 1;
  transition: color .28s ease, opacity .28s ease;
}
.theme-switch .sun { color: #fbbf24; }
.theme-switch .moon { color: #1f2937; opacity: .45; }
.theme-switch .switch-knob {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 7px 18px rgba(15,23,42,.22);
  transition: transform .36s cubic-bezier(.2,.8,.2,1), background .36s ease;
}
.theme-switch[aria-pressed="true"] {
  background: linear-gradient(135deg, #09090b, #3f3f46);
  box-shadow: inset 0 1px 3px rgba(255,255,255,.08), 0 10px 24px rgba(0,0,0,.28);
}
.theme-switch[aria-pressed="true"] .switch-knob { transform: translateX(38px); }
.theme-switch[aria-pressed="true"] .sun { opacity: .42; }
.theme-switch[aria-pressed="true"] .moon { color: #f8fafc; opacity: 1; }
.side-profile-mobile { display: none; }
.side-profile-toggle {
  width: 100%;
  border: 0;
  border-radius: 22px;
  padding: 10px;
  background: rgba(255,255,255,.86);
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  color: var(--text);
  box-shadow: 0 12px 28px rgba(30,58,138,.07);
}
.side-profile-toggle span { min-width: 0; flex: 1; }
.side-profile-toggle strong { display: block; color: var(--ink); font-size: 14px; line-height: 1.1; }
.side-profile-toggle small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-profile-toggle b { color: var(--muted); transition: transform .2s ease; }
.side-profile-toggle[aria-expanded="true"] b { transform: rotate(180deg); }
.side-profile-actions {
  margin-top: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  padding: 8px;
  background: rgba(255,255,255,.84);
}
.side-profile-actions a,
.side-profile-actions .profile-theme-row {
  min-height: 38px;
  border-radius: 14px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
}
.side-profile-actions a:hover { background: rgba(37,99,235,.08); }
.side-profile-actions .danger-link { color: #ef4444; }
.profile-theme-row.compact .theme-switch { transform: scale(.84); transform-origin: right center; }

.profile-form-grid {
  display: grid;
  grid-template-columns: minmax(240px, .38fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.profile-form-card {
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: 26px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
}
.profile-photo-panel {
  text-align: center;
}
.profile-photo-panel .settings-photo-preview {
  width: 112px;
  height: 112px;
  margin: 0 auto 14px;
  font-size: 38px;
}
.profile-file-field {
  display: block;
  margin-top: 14px;
}
.profile-file-field input { width: 100%; }
.profile-form-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.profile-form-fields label,
.password-form-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.profile-form-fields input,
.password-form-grid input {
  width: 100%;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 13px 14px;
  background: #fff;
  color: var(--text);
  font-weight: 750;
}
.profile-form-fields .full-span,
.password-form-grid .full-span { grid-column: 1 / -1; }
.readonly-input { background: rgba(148,163,184,.10) !important; color: var(--muted) !important; }
.form-message {
  margin: 0 0 14px;
  padding: 13px 15px;
  border-radius: 16px;
  font-weight: 800;
}
.form-message.success { background: rgba(22,163,74,.12); color: #15803d; border: 1px solid rgba(22,163,74,.18); }
.form-message.error { background: rgba(239,68,68,.10); color: #dc2626; border: 1px solid rgba(239,68,68,.18); }
.password-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; }
.settings-appearance-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.settings-appearance-card .theme-switch { width: 92px; height: 44px; }
.settings-appearance-card .theme-switch .switch-knob { width: 34px; height: 34px; }
.settings-appearance-card .theme-switch[aria-pressed="true"] .switch-knob { transform: translateX(48px); }

@media (max-width: 820px) {
  .side-profile-mobile { display: block; margin: 0 0 10px; }
  .profile-dropdown { display: none !important; }
  .profile-caret { display: none; }
  .profile-chip { padding-right: 5px !important; }
  .profile-form-grid { grid-template-columns: 1fr; }
  .profile-form-fields,
  .password-form-grid { grid-template-columns: 1fr; }
  .settings-appearance-card { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 430px) {
  .profile-photo-panel .settings-photo-preview { width: 96px; height: 96px; }
  .profile-form-card { padding: 18px; border-radius: 22px; }
}
