/* ==== Header band (hero) ==== */
.rmx-header {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(0,78,155,0.95) 0%, rgba(0,28,60,0.88) 100%),
    url('https://images.leadconnectorhq.com/image/f_webp/q_80/r_1200/u_https://assets.cdn.filesafe.space/gcRbh1s2WROIdnUcZoEy/media/680ba599d5b4760e6e7ceb2e.jpeg');
  background-size: cover;
  background-position: center;
  font-family: 'Poppins', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
.rmx-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: #E01C2F;
}
.rmx-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}
.rmx-left {}
.rmx-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.rmx-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #E01C2F;
  flex-shrink: 0;
}
.rmx-eyebrow-text {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.6);
}
.rmx-divider {
  width: 1px;
  height: 12px;
  background: rgba(255,255,255,0.25);
}
.rmx-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 400;
  line-height: 1.05;
  color: #fff;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.rmx-title .firstName {
  font-weight: 600;
}
.rmx-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.72);
  line-height: 1.55;
  font-weight: 400;
  margin: 0;
}
.rmx-agent-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 28px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 20px 24px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.rmx-info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rmx-info-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.45);
}
.rmx-info-value {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}
@media (max-width: 700px) {
  .rmx-content { padding: 36px 20px; flex-direction: column; align-items: flex-start; }
  .rmx-agent-info { grid-template-columns: 1fr 1fr; width: 100%; }
}

/* ==== Shared page system ==== */
:root {
  --blue: #004E9B;
  --blue-dark: #003B75;
  --red: #E01C2F;
  --bg: #F0F2F5;
  --card: #FFFFFF;
  --text: #0F1623;
  --muted: #6B7280;
  --border: #E2E5EA;
  --soft-blue: #EBF3FF;
  --shadow-sm: 0 1px 4px rgba(15,23,42,0.08), 0 6px 16px rgba(15,23,42,0.06);
  --shadow-md: 0 4px 16px rgba(15,23,42,0.09);
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
}

/* BAND SYSTEM */
.band {
  width: 100%;
  padding: 28px 20px;
}

.band--gray  { background: var(--bg); }
.band--white { background: var(--bg); }
.band--blue  { background: var(--bg); }

.band:first-of-type { padding-top: 24px; }
.band:last-of-type  { padding-bottom: 64px; }

.inner {
  max-width: 1180px;
  margin: 0 auto;
}

/* KPI STRIP */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.kpi {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.kpi-label {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}

.kpi-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
}

.kpi-note {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}

/* SECTION LABEL */
.section-label {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 10px;
  margin-top: 0;
  padding-left: 10px;
  border-left: 3px solid var(--red);
}

/* QUICK ACTIONS */
.actions-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.action-btn {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  box-shadow: var(--shadow-sm);
  text-align: left;
  width: 100%;
}

.action-btn:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 18px rgba(0,78,155,0.13);
  transform: translateY(-1px);
}

.action-icon {
  font-size: 18px;
  line-height: 1;
}

.action-label {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.action-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* TWO-COL LAYOUT */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

/* CARD */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.card-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
}

.card h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
}

.card p {
  font-size: 14px;
  line-height: 1.7;
}

/* ONBOARDING TASKS */
.task-list { display: grid; gap: 0; }

.task-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.task-row:last-child { border-bottom: none; }

.task-link {
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  padding: 3px 10px;
  border-radius: 999px;
}

.task-link.complete {
  color: #059669;
  background: #ECFDF5;
}

.task-link.todo {
  color: var(--blue);
  background: var(--soft-blue);
}

.task-link.info {
  color: #7C3AED;
  background: #F5F3FF;
}

/* STAT ROWS */
.stat-list { display: grid; gap: 0; }

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.stat-row:last-child { border-bottom: none; }
.stat-label { color: var(--muted); }
.stat-val { font-weight: 700; }

/* OFFICE INFO BLOCK */
.office-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.office-info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.office-info-card h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 10px;
}

.office-info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.office-info-item:last-child { border-bottom: none; padding-bottom: 0; }

.office-info-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.office-info-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.office-info-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* RESOURCE CENTER */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.resource-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.resource-card h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--blue);
  margin-bottom: 12px;
}

.link-list { display: grid; gap: 8px; }

.link-list a {
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  line-height: 1.4;
  display: block;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.link-list a:last-child { border-bottom: none; padding-bottom: 0; }

.link-list a:hover { color: var(--red); }

/* FEEDBACK FRAME */
.feedback-frame {
  width: 100%;
  min-height: 320px;
  border: none;
  border-radius: 10px;
  display: block;
}

/* FOOTER */
.footer {
  background: var(--blue);
  color: #fff;
  border-radius: 18px;
  padding: 24px;
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.footer h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  opacity: 0.85;
}

.footer p {
  font-size: 14px;
  line-height: 1.7;
  opacity: 1;
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .kpi-strip { grid-template-columns: repeat(2, 1fr); }
  .actions-grid { grid-template-columns: repeat(4, 1fr); }
  .two-col, .three-col, .resource-grid, .footer, .office-info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .band { padding: 20px 14px; }
  .kpi-strip { grid-template-columns: repeat(2, 1fr); }
  .actions-grid { grid-template-columns: repeat(3, 1fr); }
  .office-info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .actions-grid { grid-template-columns: repeat(2, 1fr); }
}
