:root {
  --blue: #003b7a;
  --blue-dark: #003b7a;
  --gold: #f4c542;
  --ink: #172033;
  --muted: #64748b;
  --line: #d8e2ee;
  --surface: #ffffff;
  --soft: #f4f8fc;
}

/* Main app shell and page styles */
.app-shell {
  max-width: 920px;
  margin: 18px auto;
  padding: 18px;
  box-sizing: border-box;
}

body.riders-mode .app-shell {
  max-width: 920px;
  width: auto;
  margin: 18px auto;
  padding: 18px;
}

body.riders-mode .rider-card,
body.riders-mode .rider-detail-card,
body.riders-mode .rider-totals,
body.riders-mode .rider-actions,
body.riders-mode .save-message {
  margin-left: 0;
  margin-right: 0;
}

.page-heading {
  background: linear-gradient(90deg, var(--blue), var(--blue-dark));
  color: white;
  padding: 18px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(3, 46, 102, 0.14);
}
.page-heading .eyebrow {
  margin: 0 0 6px 0;
  opacity: 0.95;
}
.page-heading h1 {
  margin: 0;
  font-size: 1.25rem;
}
.heading-note {
  margin: 8px 0 0;
  color: rgba(255,255,255,0.9);
}

.tabs {
  display: flex;
  gap: 8px;
  margin: 14px 0;
}
.tab-button {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue-dark);
}
.tab-button.active {
  background: linear-gradient(90deg, var(--blue), var(--blue-dark));
  color: white;
  border-color: transparent;
}

.form-grid {
  display: grid;
  gap: 14px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 8px 20px rgba(6,36,98,0.06);
}
.panel h2 {
  margin: 0 0 12px 0;
  color: var(--blue-dark);
}
.fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.95rem;
  color: var(--ink);
}
input[type="text"], input[type="number"], select {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}
.money-input {
  text-align: left;
}
.actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 6px;
}
.actions button {
  padding: 12px 18px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
}
.actions button[type="submit"] {
  background: var(--gold);
  color: #123;
  font-weight: 700;
}
.actions .secondary {
  background: white;
  border: 1px solid var(--line);
}

.results .table-wrap {
  overflow: auto;
  margin-top: 10px;
}
.results table {
  width: 100%;
  border-collapse: collapse;
}
.results thead th {
  background: linear-gradient(90deg, var(--blue-dark), var(--blue));
  color: #fff;
  padding: 10px 12px;
  text-align: left;
  font-weight: 700;
}
.results tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid #eef4fb;
}
.disclaimer {
  margin-top: 12px;
  color: var(--muted);
}

.eyebrow { font-weight: 700; }

/* Action bar and responsive tweaks */
.bottom-actions {
  position: sticky;
  bottom: 12px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  max-width: 920px;
  margin: 18px auto;
  padding: 12px;
}
.primary-button {
  background: linear-gradient(90deg, var(--gold), #d6a92a);
  padding: 12px 18px;
  border-radius: 10px;
  border: none;
  font-weight: 700;
}
.secondary-button {
  background: white;
  border: 1px solid var(--line);
  padding: 12px 18px;
  border-radius: 10px;
}

@media (max-width: 480px) {
  .app-shell { max-width: 430px; padding: 12px; }
  body.riders-mode .app-shell { padding: 12px !important; }
  .fields { grid-template-columns: 1fr; }
  .bottom-actions { padding: 8px; gap: 8px; }
  .page-heading h1 { font-size: 1.05rem; }
}

body.riders-mode {
  background: #f8fbff;
}

body.riders-mode .page-heading,
body.riders-mode > .app-shell > .tabs {
  display: none;
}

body.riders-mode .app-shell {
  width: min(100%, 430px);
  padding: 0 0 14px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 35, 95, 0.14);
}

body.riders-mode #ridersTab {
  color: #070b34;
}

body.riders-mode .rider-hero {
  min-height: 228px;
  margin: 0;
  padding: 14px 18px 86px;
  border: 0;
  border-radius: 0 0 28px 28px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 18%, rgba(58, 137, 255, 0.64), transparent 30%),
    linear-gradient(145deg, #003b7a 0%, #003b7a 48%, #003b7a 100%);
  box-shadow: none;
}

body.riders-mode .rider-statusbar,
body.riders-mode .rider-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body.riders-mode .rider-statusbar {
  font-size: 1.02rem;
  font-weight: 800;
}

body.riders-mode .rider-nav {
  margin-top: 22px;
}

body.riders-mode .rider-nav h2,
body.riders-mode .rider-nav p {
  margin: 0;
  color: #fff;
  text-align: center;
}

body.riders-mode .rider-nav h2 {
  font-size: 1.62rem;
  line-height: 1.05;
}

body.riders-mode .rider-nav p {
  margin-top: 4px;
  font-size: 1rem;
}

body.riders-mode .rider-nav-button {
  width: 42px;
  min-height: 42px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  color: #fff;
  background: transparent;
  font-size: 1.7rem;
  line-height: 1;
}

body.riders-mode #riderBackButton {
  border-color: transparent;
  font-size: 2.55rem;
}

body.riders-mode .rider-customer-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.26fr;
  gap: 18px;
  margin: -58px 17px 0;
  padding: 17px 20px;
  border: 1px solid rgba(213, 224, 245, 0.9);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(6, 36, 98, 0.12);
}

body.riders-mode .rider-customer-left,
body.riders-mode .rider-customer-money {
  display: grid;
  gap: 9px;
  min-width: 0;
}

body.riders-mode .rider-customer-money {
  padding-left: 17px;
  border-left: 1px solid #c9d7f6;
}

body.riders-mode .rider-customer-card strong {
  color: #070b34;
  font-size: 1.1rem;
}

body.riders-mode .rider-customer-card span {
  color: #10164b;
  font-size: 0.9rem;
}

body.riders-mode #riderCustomerMeta::before {
  content: "♙";
  margin-right: 8px;
  color: #3a5ca8;
}

body.riders-mode #riderCustomerPhone::before {
  content: "☏";
  margin-right: 8px;
  color: #3a5ca8;
}

body.riders-mode .rider-card,
body.riders-mode .rider-detail-card,
body.riders-mode .rider-totals,
body.riders-mode .rider-actions,
body.riders-mode .save-message {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.riders-mode .rider-card {
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.riders-mode .rider-section-heading h3 {
  color: #070b34;
  font-size: 1.02rem;
}

body.riders-mode .rider-section-heading span {
  color: #10164b;
}

body.riders-mode .rider-product-buttons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px 9px;
}

body.riders-mode .rider-pill {
  display: flex;
  min-width: 0;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 8px;
  border: 1.4px solid #b7cfff;
  border-radius: 24px;
  color: #5d6fa6;
  background: #fff;
  box-shadow: none;
  font-size: 1.02rem;
}

body.riders-mode .rider-pill small {
  display: none;
}

body.riders-mode .rider-pill.active,
body.riders-mode .rider-pill.selected {
  border-color: #003b7a;
  color: #fff;
  background: linear-gradient(145deg, #003b7a, #003b7a);
  box-shadow: 0 8px 18px rgba(5, 92, 255, 0.24);
}

body.riders-mode .rider-detail-card {
  margin-top: 16px;
  padding: 10px;
  border: 1.5px solid #003b7a;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

body.riders-mode .rider-detail-head {
  align-items: flex-start;
  padding: 4px 2px 10px;
}

body.riders-mode .rider-detail-head p {
  display: inline-block;
  margin: 0 8px 4px 0;
  padding: 6px 10px;
  border-radius: 7px;
  color: #fff;
  background: #003b7a;
  font-weight: 800;
}

body.riders-mode .rider-detail-head h3 {
  color: #070b34;
  font-size: 1rem;
}

body.riders-mode .rider-detail-head span {
  margin-top: 8px;
  color: #17317e;
}

body.riders-mode .rider-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: #0959e8;
  background: #edf4ff;
  font-size: 0;
}

body.riders-mode .rider-icon::before {
  content: "◇";
  font-size: 1.45rem;
}

body.riders-mode .rider-icon.small {
  color: #0bb983;
  background: #eafff6;
}

body.riders-mode .info-button {
  border: 1px solid #7485bd;
  color: #31447f;
  background: #fff;
}

body.riders-mode .rider-value-grid {
  margin-top: 8px;
  padding: 15px 14px;
  border: 1px solid #dbe5f6;
  border-radius: 8px;
}

body.riders-mode .rider-value-grid > div,
body.riders-mode .rider-totals > div {
  padding: 0;
  background: transparent;
}

body.riders-mode .rider-value-grid > div + div,
body.riders-mode .rider-totals > div + div {
  padding-left: 18px;
  border-left: 1px solid #c9d7f6;
}

body.riders-mode .rider-value-grid span,
body.riders-mode .rider-totals span {
  color: #070b34;
}

body.riders-mode .rider-value-grid strong,
body.riders-mode .rider-totals strong {
  color: #003b7a;
  font-size: 1.42rem;
}

body.riders-mode .stepper {
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  gap: 14px;
  align-items: center;
}

body.riders-mode .stepper input {
  display: none;
}

body.riders-mode .stepper button {
  width: 46px;
  border-radius: 50%;
  color: #071047;
  background: #f0f3fa;
  font-size: 1.55rem;
}

body.riders-mode #riderAmountRange {
  width: calc(100% - 120px);
  margin: -42px 60px 0;
  accent-color: #003b7a;
}

body.riders-mode .quick-amount {
  min-height: 40px;
  border: 1.2px solid #b7cfff;
  border-radius: 7px;
  color: #10164b;
  background: #fff;
}

body.riders-mode .quick-amount.active {
  color: #fff;
  background: #003b7a;
}

body.riders-mode .rider-range-note {
  color: #566aa8;
}

body.riders-mode .selected-rider-list {
  gap: 0;
  overflow: hidden;
  border: 1px solid #dbe5f6;
  border-radius: 10px;
  background: #fff;
}

body.riders-mode .selected-rider {
  grid-template-columns: 48px minmax(0, 1fr) 104px auto;
  gap: 12px;
  padding: 12px 10px;
  border: 0;
  border-radius: 0;
}

body.riders-mode .selected-rider + .selected-rider {
  border-top: 1px solid #e1e8f5;
}

body.riders-mode .selected-rider::before {
  content: "Phí (năm)\A" attr(data-premium);
  grid-column: 3;
  grid-row: 1;
  white-space: pre;
  color: #070b34;
  font-weight: 800;
  line-height: 1.45;
}

body.riders-mode .selected-rider .rider-icon {
  grid-column: 1;
  grid-row: 1;
}

body.riders-mode .selected-rider div:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

body.riders-mode .selected-rider .toggle {
  grid-column: 4;
  grid-row: 1;
}

body.riders-mode .selected-rider span {
  color: #10266d;
}

body.riders-mode .selected-rider strong {
  color: #070b34;
}

body.riders-mode .toggle span {
  width: 42px;
  height: 24px;
  background: #d7e0ef;
}

body.riders-mode .toggle span::after {
  top: 3px;
  left: 3px;
}

body.riders-mode .toggle input:checked + span {
  background: #003b7a;
}

body.riders-mode .rider-totals {
  display: flex;
  gap: 0;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid #cfe0ff;
  border-radius: 8px;
  background: #eef6ff;
  box-shadow: none;
}

body.riders-mode .rider-totals > div {
  position: relative;
  padding-left: 44px;
}

body.riders-mode .rider-totals > div::before {
  content: "▱";
  position: absolute;
  left: 8px;
  top: 9px;
  color: #003b7a;
  font-size: 1.7rem;
}

body.riders-mode .rider-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

body.riders-mode .rider-actions button {
  min-height: 56px;
  border: 1.5px solid #003b7a;
  border-radius: 8px;
  font-size: 0.98rem;
}

body.riders-mode .rider-actions button:not(.secondary-button) {
  color: #fff;
  background: linear-gradient(145deg, #003b7a, #003b7a);
}

body.riders-mode .secondary-button {
  color: #003b7a;
  background: #fff;
}

@media (min-width: 821px) {
  body.riders-mode .app-shell {
    margin-top: 18px;
    margin-bottom: 18px;
    overflow: hidden;
    border-radius: 28px;
  }
}

@media (max-width: 380px) {
  body.riders-mode .rider-product-buttons {
    grid-template-columns: repeat(4, 1fr);
  }

  body.riders-mode .rider-customer-card,
  body.riders-mode .rider-value-grid,
  body.riders-mode .rider-totals {
    grid-template-columns: 1fr;
  }

  body.riders-mode .selected-rider {
    grid-template-columns: 40px minmax(0, 1fr) auto;
  }

  body.riders-mode .selected-rider::before {
    grid-column: 2 / 3;
    grid-row: 2;
    margin-top: 4px;
  }

  body.riders-mode .selected-rider .toggle {
    grid-column: 3;
    grid-row: 1 / 3;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(180deg, #edf5fb 0%, #ffffff 52%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 44px;
}

.page-heading,
.result-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  color: var(--blue-dark);
  font-size: clamp(1.7rem, 5vw, 2.55rem);
  line-height: 1.12;
}

h2 {
  margin-bottom: 16px;
  color: var(--blue-dark);
  font-size: 1.15rem;
}

.heading-note,
#resultMeta {
  max-width: 360px;
  margin-bottom: 4px;
  color: var(--muted);
  line-height: 1.5;
}

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

.tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 16px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.tab-button {
  flex: 1;
  min-height: 42px;
  border-radius: 6px;
  background: transparent;
  color: var(--blue-dark);
}

.tab-button.active {
  color: #fff;
  background: var(--blue);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.panel,
.results {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(0, 63, 125, 0.08);
}

.panel {
  padding: 20px;
}

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

label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

label span {
  color: #334155;
  font-size: 0.88rem;
  font-weight: 700;
}

.field-note {
  min-height: 17px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
  white-space: nowrap;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #b9c8d8;
  border-radius: 6px;
  padding: 9px 11px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

input:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 91, 170, 0.14);
  outline: none;
}

input[readonly] {
  background: var(--soft);
  color: var(--blue-dark);
  font-weight: 700;
}

.actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
}

button {
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  padding: 0 22px;
  color: #06203a;
  background: var(--gold);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

button:hover {
  filter: brightness(0.97);
}

.results {
  margin-top: 24px;
  padding: 20px;
}

.table-wrap {
  max-height: 68vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.94rem;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  text-align: right;
  white-space: nowrap;
}

th:first-child,
td:first-child {
  text-align: left;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #fff;
  background: var(--blue);
  font-weight: 800;
}

tbody tr:nth-child(even) {
  background: #f8fbff;
}

tbody tr.milestone-row {
  background: #fff4c6;
}

tbody tr:hover {
  background: #fff8df;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.disclaimer {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.rider-hero,
.rider-card,
.rider-detail-card,
.rider-customer-card,
.rider-totals {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 63, 125, 0.08);
}

.rider-hero {
  padding: 18px 20px;
  color: #fff;
  background: var(--blue);
}

.rider-hero .eyebrow,
.rider-hero h2 {
  color: #fff;
}

.rider-hero h2 {
  margin: 0;
  font-size: 1.45rem;
}

.rider-customer-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding: 16px;
}

.rider-customer-card div,
.rider-customer-money {
  display: grid;
  gap: 6px;
}

.rider-customer-card strong {
  color: var(--blue-dark);
}

.rider-customer-card span,
.rider-range-note,
.save-message {
  color: var(--muted);
}

.rider-range-note.is-error,
.rider-stbh-error {
  color: #d92d20;
}

.rider-stbh-error {
  margin: 6px 0 0;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
}

.rider-card,
.rider-detail-card,
.rider-totals {
  margin-top: 14px;
  padding: 16px;
}

.rider-section-heading,
.rider-detail-head,
.rider-value-grid,
.rider-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rider-section-heading h3,
.rider-detail-head h3 {
  margin: 0;
  color: var(--blue-dark);
}

.rider-section-heading span {
  color: var(--muted);
  font-weight: 700;
}

.rider-product-buttons,
.quick-amounts,
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.rider-pill,
.quick-amount {
  width: auto;
  min-height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue-dark);
}

.rider-pill {
  display: grid;
  min-width: 86px;
  padding: 8px 12px;
}

.rider-pill small {
  color: var(--muted);
  font-weight: 600;
}

.rider-pill.active,
.rider-pill.selected,
.quick-amount.active {
  border-color: var(--blue);
  color: #fff;
  background: var(--blue);
}

.rider-pill.active small,
.rider-pill.selected small {
  color: #eaf4ff;
}

.rider-pill:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.rider-detail-card {
  border-color: rgba(0, 91, 170, 0.45);
}

.rider-detail-head {
  align-items: flex-start;
}

.rider-detail-head p {
  margin-bottom: 4px;
  color: var(--blue);
  font-weight: 800;
}

.rider-detail-head span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.rider-icon {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
}

.rider-icon.small {
  flex-basis: 40px;
  width: 40px;
  height: 40px;
}

.info-button {
  width: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 50%;
  color: var(--blue-dark);
  background: #edf5fb;
}

.rider-value-grid {
  margin-top: 16px;
}

.rider-value-grid > div,
.rider-totals > div {
  flex: 1;
  min-width: 0;
  padding: 14px;
  border-radius: 8px;
  background: var(--soft);
}

.rider-value-grid span,
.rider-totals span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.rider-value-grid strong,
.rider-totals strong {
  color: var(--blue-dark);
  font-size: 1.18rem;
}

.amount-controls {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.stepper {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  gap: 8px;
}

.stepper button {
  width: 46px;
  padding: 0;
}

input[type="range"] {
  padding: 0;
}

.compact-field {
  margin-top: 14px;
}

.checkbox-chip {
  display: inline-flex;
  width: auto;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.checkbox-chip input,
.switch-row input,
.toggle input {
  width: auto;
  min-height: 0;
}

.rider-warning {
  margin: 10px 0 0;
  color: #b42318;
  font-weight: 700;
}

.rider-ok {
  margin: 10px 0 0;
  color: #067647;
  font-weight: 700;
}

.switch-row {
  display: flex;
  width: auto;
  align-items: center;
  gap: 8px;
}

.selected-rider-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.selected-rider {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.selected-rider div:nth-child(2) {
  display: grid;
  gap: 4px;
}

.selected-rider span,
.selected-rider em {
  color: var(--muted);
  font-size: 0.9rem;
}

.selected-rider em {
  color: #b42318;
  font-style: normal;
}

.toggle span {
  display: block;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
}

.toggle span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.18s ease;
}

.toggle input {
  position: absolute;
  opacity: 0;
}

.toggle input:checked + span {
  background: var(--blue);
}

.toggle input:checked + span::after {
  transform: translateX(20px);
}

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

.rider-totals {
  display: flex;
  gap: 12px;
}

.rider-actions {
  margin-top: 14px;
}

.secondary-button {
  color: var(--blue-dark);
  background: #e7f1fb;
}

.save-message {
  min-height: 22px;
  margin: 10px 0 0;
  font-weight: 700;
}

@media (max-width: 820px) {
  .app-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 18px;
  }

  .page-heading,
  .result-heading,
  .form-grid,
  .fields,
  .rider-customer-card,
  .rider-section-heading,
  .rider-detail-head,
  .rider-value-grid,
  .rider-totals,
  .rider-actions {
    display: block;
  }

  .heading-note,
  #resultMeta {
    max-width: none;
    margin-top: 10px;
  }

  .panel + .panel {
    margin-top: 14px;
  }

  label + label {
    margin-top: 12px;
  }

  .field-note {
    white-space: normal;
  }

  .actions {
    margin-top: 14px;
  }

  button {
    width: 100%;
  }

  .tabs {
    position: sticky;
    top: 0;
    z-index: 2;
  }

  .rider-section-heading > *,
  .rider-detail-head > *,
  .rider-value-grid > *,
  .rider-totals > *,
  .rider-actions > * {
    margin-top: 10px;
  }

  .rider-pill,
  .quick-amount {
    width: auto;
    flex: 1 1 calc(33.333% - 8px);
  }

  .selected-rider {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .selected-rider .toggle {
    grid-column: 1 / -1;
  }

  .rider-actions {
    position: sticky;
    bottom: 0;
    padding: 10px 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.8), #fff 40%);
  }

  .results {
    padding: 14px;
  }
}

/* Main illustration mobile app skin */
body:not(.riders-mode) {
  color: #070b34;
  background: #eef3fa;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body:not(.riders-mode) .page-heading,
body:not(.riders-mode) > .app-shell > .tabs,
body:not(.riders-mode) #illustrationForm > .actions {
  display: none;
}

body:not(.riders-mode) .app-shell {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 13px 86px;
  background: #fff;
  box-shadow: 0 20px 64px rgba(0, 35, 95, 0.15);
}

.main-mobile-header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 140px;
  align-items: center;
  gap: 8px;
  min-height: 88px;
  margin: 0 -13px 15px;
  padding: 20px 13px 13px;
  color: #fff;
  background: linear-gradient(135deg, #075df4 0%, #0044bf 48%, #002d92 100%);
}

.main-mobile-header h1 {
  margin: 0;
  color: #fff;
  font-size: 1.36rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}

.main-back-button {
  position: relative;
  width: 44px;
  min-height: 44px;
  padding: 0;
  background: transparent;
}

.main-back-button::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 11px;
  width: 17px;
  height: 17px;
  border-left: 5px solid #fff;
  border-bottom: 5px solid #fff;
  transform: rotate(45deg);
}

.brand-mark {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.brand-mark i {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background:
    linear-gradient(38deg, transparent 42%, rgba(255,255,255,0.78) 43% 47%, transparent 48%),
    linear-gradient(105deg, transparent 45%, rgba(255,255,255,0.55) 46% 49%, transparent 50%),
    radial-gradient(circle at 34% 30%, #fff0ad 0 16%, #e6a51b 52%, #a96308 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.56);
}

.brand-mark span:last-child {
  color: #ffbd34;
}

.tool-notice,
body:not(.riders-mode) .panel,
body:not(.riders-mode) .results {
  border: 1px solid #dce5ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 7px rgba(31, 68, 115, 0.08);
}

.tool-notice {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 9px;
  padding: 12px 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #f1f5fb 100%);
}

.notice-icon,
.section-badge {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #0356c9;
}

.notice-icon {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: transparent;
}

.notice-icon::before {
  content: "";
  width: 34px;
  height: 39px;
  border: 3px solid #0752bf;
  border-radius: 18px 18px 22px 22px;
  clip-path: polygon(50% 0, 92% 15%, 86% 74%, 50% 100%, 14% 74%, 8% 15%);
}

.notice-icon::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 8px;
  border-left: 3px solid #0752bf;
  border-bottom: 3px solid #0752bf;
  transform: rotate(-45deg);
}

.tool-notice strong {
  display: block;
  margin-bottom: 4px;
  color: #0149b0;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.15;
}

.tool-notice p {
  margin: 0;
  color: #667085;
  font-size: 0.85rem;
  line-height: 1.35;
}

body:not(.riders-mode) .form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

body:not(.riders-mode) .panel,
body:not(.riders-mode) .results {
  padding: 10px 8px 8px;
}

body:not(.riders-mode) .panel h2,
body:not(.riders-mode) .result-heading h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px 10px;
  color: #0048ad;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.15;
}

.section-badge {
  position: relative;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
}

.section-badge::before,
.section-badge::after,
.field-row::before {
  content: "";
  position: absolute;
}

.customer-badge::before {
  width: 16px;
  height: 16px;
  top: 10px;
  border: 3px solid #fff;
  border-radius: 50%;
}

.customer-badge::after {
  width: 28px;
  height: 14px;
  bottom: 9px;
  border: 3px solid #fff;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  border-bottom: 0;
}

.illustration-badge::before {
  width: 18px;
  height: 24px;
  border: 3px solid #fff;
  border-radius: 2px;
}

.illustration-badge::after {
  width: 3px;
  height: 17px;
  box-shadow: -6px 6px 0 #fff, 0 2px 0 #fff, 6px -3px 0 #fff;
  background: #fff;
}

.result-badge::before {
  bottom: 12px;
  width: 4px;
  height: 16px;
  background: #fff;
  box-shadow: -9px 7px 0 #fff, 9px -8px 0 #fff;
}

.result-badge::after {
  left: 12px;
  bottom: 11px;
  width: 24px;
  height: 20px;
  border-left: 3px solid #fff;
  border-bottom: 3px solid #fff;
}

body:not(.riders-mode) .fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

body:not(.riders-mode) .field-row {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) minmax(116px, max-content);
  gap: 10px;
  align-items: center;
  min-height: 53px;
  margin: 0;
  padding: 0 10px 0 8px;
  border-bottom: 1px solid #e8edf3;
}

body:not(.riders-mode) .field-row:last-child {
  border-bottom: 0;
}

body:not(.riders-mode) .field-row::before {
  position: relative;
  display: block;
  width: 26px;
  height: 26px;
  justify-self: center;
  color: #0752bf;
  border: 2px solid #0752bf;
}

body:not(.riders-mode) .field-row span {
  min-width: 0;
  color: #090d36;
  font-size: 0.91rem;
  font-weight: 600;
  line-height: 1.22;
  overflow-wrap: normal;
  word-break: normal;
}

body:not(.riders-mode) input,
body:not(.riders-mode) select {
  width: auto;
  min-width: 0;
  max-width: 176px;
  justify-self: end;
  min-height: 38px;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: #0048ad;
  background: transparent;
  box-shadow: none;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: right;
}

body:not(.riders-mode) input::placeholder {
  color: #8d96a6;
  opacity: 1;
  font-weight: 600;
}

body:not(.riders-mode) select {
  appearance: auto;
}

body:not(.riders-mode) .field-note {
  display: none;
}

body:not(.riders-mode) .main-extra-field {
  display: none;
}

.icon-user::before {
  border-radius: 50%;
  border-top-color: transparent !important;
}

.icon-calendar::before {
  border-radius: 3px;
  box-shadow: inset 0 7px 0 rgba(7, 82, 191, 0.12);
}

.icon-info::before {
  content: "i" !important;
  display: grid !important;
  place-items: center;
  border-radius: 50%;
  font-weight: 700;
  font-style: normal;
}

.icon-shield::before {
  border-radius: 15px 15px 18px 18px;
  clip-path: polygon(50% 0, 94% 16%, 86% 76%, 50% 100%, 14% 76%, 6% 16%);
}

.icon-plus::before,
.icon-percent::before {
  display: grid !important;
  place-items: center;
  border-radius: 50%;
  font-weight: 700;
}

.icon-plus::before {
  content: "+" !important;
}

.icon-percent::before {
  content: "%" !important;
}

.icon-briefcase::before {
  border-radius: 4px;
}

body:not(.riders-mode) .results {
  margin-top: 9px;
}

body:not(.riders-mode) .result-heading {
  display: block;
  margin: 0;
}

body:not(.riders-mode) #resultMeta {
  margin: -4px 8px 8px 66px;
  color: #607086;
  font-size: 0.82rem;
}

.result-toggle {
  display: flex;
  gap: 13px;
  margin: 0 0 7px 64px;
}

.result-toggle button {
  width: 82px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #cfd8e4;
  border-radius: 5px;
  color: #0048ad;
  background: #fff;
  font-size: 0.86rem;
  font-weight: 700;
}

.result-toggle button.active {
  color: #fff;
  border-color: #0752bf;
  background: linear-gradient(180deg, #075fec, #004bb9);
}

body:not(.riders-mode) .table-wrap {
  max-height: none;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

body:not(.riders-mode) table {
  min-width: 0;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.84rem;
}

body:not(.riders-mode) th,
body:not(.riders-mode) td {
  padding: 9px 7px;
  border-bottom: 1px solid #e8edf3;
  color: #001a61;
  text-align: center;
  white-space: normal;
}

body:not(.riders-mode) thead th {
  position: static;
  color: #001a61;
  background: #fff;
  font-weight: 700;
  line-height: 1.25;
}

body:not(.riders-mode) thead th:first-child,
body:not(.riders-mode) tbody td:first-child {
  width: 76px;
  color: #fff;
  background: linear-gradient(180deg, #075fec, #004bb9);
}

body:not(.riders-mode) tbody td:first-child {
  padding: 7px 6px;
}

body:not(.riders-mode) tbody td:first-child strong,
body:not(.riders-mode) tbody td:first-child span {
  display: block;
}

body:not(.riders-mode) tbody td:first-child strong {
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.05;
}

body:not(.riders-mode) tbody td:first-child span {
  color: #fff;
  margin-top: 2px;
  font-weight: 500;
}

body:not(.riders-mode) tbody tr:nth-child(even),
body:not(.riders-mode) tbody tr.milestone-row,
body:not(.riders-mode) tbody tr:hover {
  background: #fff;
}

body:not(.riders-mode) tbody td {
  font-size: 0.93rem;
  font-weight: 700;
}

body:not(.riders-mode) .cash-value {
  color: #e47700;
  font-size: 1.08rem;
}

body:not(.riders-mode) thead th:last-child {
  color: #d87400;
}

body:not(.riders-mode) .disclaimer {
  position: relative;
  margin: 8px 0 0;
  padding: 10px 10px 10px 50px;
  border-radius: 7px;
  color: #0048ad;
  background: #eef5ff;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
}

body:not(.riders-mode) .disclaimer::before {
  content: "i";
  position: absolute;
  left: 15px;
  top: 50%;
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 2px solid #0752bf;
  border-radius: 50%;
  color: #0752bf;
  font-weight: 700;
  transform: translateY(-50%);
}

body:not(.riders-mode) .bottom-actions {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 7px;
  width: min(100%, 430px);
  margin: 0;
  padding: 7px 13px 9px;
  background: #fff;
  transform: translateX(-50%);
}

body:not(.riders-mode) .bottom-actions button {
  min-height: 54px;
  border-radius: 6px;
  font-size: 0.96rem;
  font-weight: 700;
}

body:not(.riders-mode) .bottom-actions .secondary-button {
  position: relative;
  border: 1px solid #0752bf;
  color: #0048ad;
  background: #fff;
}

body:not(.riders-mode) .bottom-actions .primary-button {
  color: #fff;
  background: linear-gradient(180deg, #e6a10a, #d58b00);
}

body:not(.riders-mode) .bottom-actions .secondary-button::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 9px;
  border: 3px solid #0752bf;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: -4px;
}

body:not(.riders-mode) .bottom-actions .primary-button::before {
  content: "";
  display: inline-block;
  width: 19px;
  height: 25px;
  margin-right: 10px;
  border: 2px solid #fff;
  border-radius: 2px;
  vertical-align: -7px;
  box-shadow: inset 0 7px 0 rgba(255,255,255,0.18);
}

@media (min-width: 431px) {
  body:not(.riders-mode) .app-shell {
    min-height: auto;
  }
}

@media (max-width: 390px) {
  .main-mobile-header {
    grid-template-columns: 40px minmax(0, 1fr) 116px;
  }

  .brand-mark {
    font-size: 0.6rem;
  }

  .brand-mark i {
    width: 27px;
    height: 27px;
  }

  body:not(.riders-mode) .field-row {
    grid-template-columns: 34px minmax(0, 1fr) minmax(104px, max-content);
    padding-right: 8px;
  }

  body:not(.riders-mode) .field-row span,
  body:not(.riders-mode) input,
  body:not(.riders-mode) select {
    font-size: 0.86rem;
  }

  body:not(.riders-mode) input,
  body:not(.riders-mode) select {
    max-width: 142px;
  }
}

/* Ultra-light modern typography pass */
body:not(.riders-mode) {
  color: #061238;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable", "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body:not(.riders-mode) .main-mobile-header {
  min-height: 64px;
  padding-top: 12px;
  padding-bottom: 9px;
}

body:not(.riders-mode) .main-mobile-header h1 {
  font-size: 18px;
  font-weight: 600;
}

body:not(.riders-mode) .brand-mark {
  font-size: 8.5px;
  font-weight: 600;
}

body:not(.riders-mode) .brand-mark i {
  width: 26px;
  height: 26px;
}

body:not(.riders-mode) .tool-notice {
  min-height: 78px;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 14px;
}

body:not(.riders-mode) .notice-icon {
  width: 42px;
  height: 48px;
}

body:not(.riders-mode) .notice-icon::before {
  width: 30px;
  height: 35px;
  border-width: 2.2px;
}

body:not(.riders-mode) .notice-icon::after {
  width: 13px;
  height: 7px;
  border-left-width: 2.2px;
  border-bottom-width: 2.2px;
}

body:not(.riders-mode) .tool-notice strong {
  color: #004db3;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.12;
}

body:not(.riders-mode) .tool-notice p {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.42;
}

body:not(.riders-mode) .panel,
body:not(.riders-mode) .results {
  padding: 9px 8px;
}

body:not(.riders-mode) .panel h2,
body:not(.riders-mode) .result-heading h2 {
  gap: 9px;
  margin-left: 8px;
  margin-bottom: 9px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.12;
}

body:not(.riders-mode) .section-badge {
  flex-basis: 42px;
  width: 42px;
  height: 42px;
}

body:not(.riders-mode) .customer-badge::before {
  width: 14px;
  height: 14px;
  top: 9px;
  border-width: 2.4px;
}

body:not(.riders-mode) .customer-badge::after {
  width: 25px;
  height: 12px;
  bottom: 8px;
  border-width: 2.4px;
}

body:not(.riders-mode) .field-row {
  grid-template-columns: 35px minmax(0, 1fr) minmax(112px, max-content);
  gap: 9px;
  min-height: 48px;
  padding-right: 10px;
  padding-left: 9px;
}

body:not(.riders-mode) .field-row::before {
  width: 25px;
  height: 25px;
}

body:not(.riders-mode) .field-row span {
  color: #050b2e;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
}

body:not(.riders-mode) input,
body:not(.riders-mode) select {
  max-width: 168px;
  min-height: 32px;
  color: #004db3;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.1;
}

body:not(.riders-mode) input::placeholder {
  color: #8f98a8;
  font-weight: 400;
}

body:not(.riders-mode) .icon-info::before,
body:not(.riders-mode) .icon-plus::before,
body:not(.riders-mode) .icon-percent::before {
  border-width: 1.7px !important;
  font-size: 15px;
  font-weight: 400;
}

body:not(.riders-mode) .icon-percent::before {
  font-size: 13px;
}

body:not(.riders-mode) #resultMeta,
body:not(.riders-mode) .disclaimer {
  font-weight: 400;
}

body:not(.riders-mode) .result-toggle button {
  font-size: 13px;
  font-weight: 500;
}

body:not(.riders-mode) thead th {
  font-weight: 500;
}

body:not(.riders-mode) tbody td {
  font-size: 14px;
  font-weight: 600;
}

body:not(.riders-mode) tbody td:first-child strong {
  font-size: 14px;
  font-weight: 600;
}

body:not(.riders-mode) tbody td:first-child span {
  font-weight: 400;
}

body:not(.riders-mode) .cash-value {
  font-size: 17px;
  font-weight: 600;
}

body:not(.riders-mode) .bottom-actions button {
  min-height: 50px;
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 390px) {
  body:not(.riders-mode) .field-row {
    grid-template-columns: 32px minmax(0, 1fr) minmax(98px, max-content);
    min-height: 46px;
  }

  body:not(.riders-mode) .field-row span,
  body:not(.riders-mode) input,
  body:not(.riders-mode) select {
    font-size: 13px;
  }
}

/* Absolute final override for Bao Viet thin blue UI */
body:not(.riders-mode) {
  --bv-blue: #003b7a;
  --bv-blue-strong: #003b7a;
  --bv-blue-dark: #003b7a;
  --bv-line: #dbe6f2;
  --bv-soft: #f8fbff;
  color: var(--bv-blue-dark);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body:not(.riders-mode) .tool-notice,
body:not(.riders-mode) .panel,
body:not(.riders-mode) .results {
  border-color: var(--bv-line);
  box-shadow: 0 1px 5px rgba(0, 63, 143, 0.08);
}

body:not(.riders-mode) .tool-notice {
  grid-template-columns: 50px minmax(0, 1fr);
  min-height: 80px;
  padding: 12px 15px;
  background: var(--bv-soft);
}

body:not(.riders-mode) .notice-icon::before {
  width: 40px;
  height: 44px;
  border: 0;
  border-radius: 0;
  background: var(--bv-blue-strong);
  clip-path: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 40 44' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 2.5 35 8.5v12.4c0 9.2-6.5 15.8-15 20.5C11.5 36.7 5 30.1 5 20.9V8.5L20 2.5Z' fill='none' stroke='black' stroke-width='3' stroke-linejoin='round'/%3E%3Cpath d='m13.5 22 4.5 4.7L27.5 16' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 40 44' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 2.5 35 8.5v12.4c0 9.2-6.5 15.8-15 20.5C11.5 36.7 5 30.1 5 20.9V8.5L20 2.5Z' fill='none' stroke='black' stroke-width='3' stroke-linejoin='round'/%3E%3Cpath d='m13.5 22 4.5 4.7L27.5 16' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

body:not(.riders-mode) .notice-icon::after,
body:not(.riders-mode) .customer-badge::after,
body:not(.riders-mode) .illustration-badge::after,
body:not(.riders-mode) .result-badge::after {
  display: none;
}

body:not(.riders-mode) .tool-notice strong,
body:not(.riders-mode) .panel h2,
body:not(.riders-mode) .result-heading h2 {
  color: var(--bv-blue-strong);
  font-weight: 600;
}

body:not(.riders-mode) .tool-notice p {
  color: #4f6580;
  font-weight: 400;
}

body:not(.riders-mode) .section-badge {
  background: var(--bv-blue-strong);
}

body:not(.riders-mode) .customer-badge::before,
body:not(.riders-mode) .illustration-badge::before,
body:not(.riders-mode) .result-badge::before {
  border: 0;
  background: #fff;
  box-shadow: none;
}

body:not(.riders-mode) .customer-badge::before {
  inset: 8px 8px 7px;
  width: auto;
  height: auto;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 28 28' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='14' cy='10' r='5'/%3E%3Cpath d='M4.5 24c1.6-5 5-7.5 9.5-7.5S21.9 19 23.5 24'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 28 28' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='14' cy='10' r='5'/%3E%3Cpath d='M4.5 24c1.6-5 5-7.5 9.5-7.5S21.9 19 23.5 24'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

body:not(.riders-mode) .illustration-badge::before {
  inset: 9px 10px;
  width: auto;
  height: auto;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 28' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='24' rx='2'/%3E%3Cpath d='M7 21V9h3v12M14 21V6h3v15'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 28' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='24' rx='2'/%3E%3Cpath d='M7 21V9h3v12M14 21V6h3v15'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

body:not(.riders-mode) .result-badge::before {
  inset: 9px;
  width: auto;
  height: auto;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 28 28' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 24h20'/%3E%3Cpath d='M7 24V14M14 24V6M21 24V10'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 28 28' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 24h20'/%3E%3Cpath d='M7 24V14M14 24V6M21 24V10'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

body:not(.riders-mode) .field-row span,
body:not(.riders-mode) input,
body:not(.riders-mode) select,
body:not(.riders-mode) th,
body:not(.riders-mode) td {
  color: var(--bv-blue-dark);
}

body:not(.riders-mode) .field-row span {
  font-weight: 500;
}

body:not(.riders-mode) input,
body:not(.riders-mode) select {
  color: var(--bv-blue-strong);
  font-weight: 600;
}

body:not(.riders-mode) .field-row::before {
  background-color: var(--bv-blue-strong);
}

body:not(.riders-mode) .icon-info::before,
body:not(.riders-mode) .icon-plus::before,
body:not(.riders-mode) .icon-percent::before {
  border-color: var(--bv-blue-strong) !important;
  color: var(--bv-blue-strong);
  background: #fff;
}

body:not(.riders-mode) thead th {
  font-weight: 500;
}

body:not(.riders-mode) tbody td {
  font-weight: 600;
}

body:not(.riders-mode) tbody td:first-child {
  color: #fff;
  background: var(--bv-blue-strong);
}

body:not(.riders-mode) .cash-value,
body:not(.riders-mode) thead th:last-child {
  color: #e17a00;
}

/* Absolute final result table polish */
body:not(.riders-mode) .results {
  padding: 10px 8px 10px;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
}

body:not(.riders-mode) .results .result-heading h2 {
  margin: 0 0 10px 10px;
  gap: 10px;
  color: var(--bv-blue-strong);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.15;
}

body:not(.riders-mode) .results .result-badge {
  width: 46px;
  height: 46px;
  flex-basis: 46px;
}

body:not(.riders-mode) .results #resultMeta {
  margin: -2px 8px 9px 66px;
  color: #60748c;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

body:not(.riders-mode) .results .result-toggle {
  gap: 9px;
  margin: 0 0 10px 66px;
}

body:not(.riders-mode) .results .result-toggle button {
  width: 82px;
  min-height: 34px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
}

body:not(.riders-mode) .results .result-toggle button.active {
  background: var(--bv-blue-strong);
}

body:not(.riders-mode) .results .table-wrap {
  overflow-x: auto;
  overflow-y: visible;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

body:not(.riders-mode) .results table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-family: inherit;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

body:not(.riders-mode) .results th:nth-child(2),
body:not(.riders-mode) .results td:nth-child(2),
body:not(.riders-mode) .results th:nth-child(3),
body:not(.riders-mode) .results td:nth-child(3),
body:not(.riders-mode) .results th:nth-child(4),
body:not(.riders-mode) .results td:nth-child(4) {
  width: 18%;
}

body:not(.riders-mode) .results th:nth-child(5),
body:not(.riders-mode) .results td:nth-child(5) {
  width: 22%;
}

body:not(.riders-mode) .results th,
body:not(.riders-mode) .results td {
  height: 53px;
  padding: 8px 6px;
  border-bottom: 1px solid #e8edf3;
  color: var(--bv-blue-dark);
  line-height: 1.2;
  text-align: center;
  vertical-align: middle;
}

body:not(.riders-mode) .results thead th {
  height: 42px;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
}

body:not(.riders-mode) .results thead th:first-child,
body:not(.riders-mode) .results tbody td:first-child {
  width: 78px;
  color: #fff;
  background: var(--bv-blue-strong);
}

body:not(.riders-mode) .results thead th:last-child {
  color: #e17a00;
  font-weight: 700;
}

body:not(.riders-mode) .results tbody td {
  font-size: 13px;
  font-weight: 700;
}

body:not(.riders-mode) .results tbody td:first-child {
  padding: 6px 4px;
}

body:not(.riders-mode) .results tbody td:first-child strong {
  display: block;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
}

body:not(.riders-mode) .results tbody td:first-child span {
  display: block;
  margin-top: 2px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.15;
}

body:not(.riders-mode) .results .cash-value {
  color: #e17a00;
  font-size: 14px;
  font-weight: 700;
}

body:not(.riders-mode) .results .empty-result-row td {
  height: 74px;
  padding: 16px 14px;
  color: #60748c;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

body:not(.riders-mode) .results .disclaimer {
  margin-top: 9px;
  padding: 10px 10px 10px 48px;
  color: var(--bv-blue-strong);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
}

/* Result section clarity pass */
body:not(.riders-mode) .results {
  padding: 10px 8px 10px;
  border-radius: 8px;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
}

body:not(.riders-mode) .result-heading h2 {
  margin: 0 0 8px 8px;
  gap: 10px;
  color: var(--bv-blue-strong);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

body:not(.riders-mode) .result-badge {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
}

body:not(.riders-mode) #resultMeta {
  margin: 0 8px 9px 58px;
  color: #60748c;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
}

body:not(.riders-mode) .result-toggle {
  justify-content: flex-start;
  gap: 10px;
  margin: 0 0 10px 58px;
}

body:not(.riders-mode) .result-toggle button {
  width: 78px;
  min-height: 32px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.15;
}

body:not(.riders-mode) .result-toggle button.active {
  background: var(--bv-blue-strong);
}

body:not(.riders-mode) .results .table-wrap {
  overflow-x: auto;
  overflow-y: visible;
  border-color: var(--bv-line);
  border-radius: 7px;
}

body:not(.riders-mode) .results table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--bv-blue-dark);
  font-family: inherit;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

body:not(.riders-mode) .results th,
body:not(.riders-mode) .results td {
  height: 48px;
  padding: 7px 5px;
  border-bottom: 1px solid #e5edf6;
  color: var(--bv-blue-dark);
  line-height: 1.2;
  text-align: center;
  vertical-align: middle;
}

body:not(.riders-mode) .results thead th {
  height: 44px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
}

body:not(.riders-mode) .results thead th:first-child,
body:not(.riders-mode) .results tbody td:first-child {
  width: 78px;
  color: #fff;
  background: var(--bv-blue-strong);
}

body:not(.riders-mode) .results thead th:first-child {
  border-top-left-radius: 6px;
}

body:not(.riders-mode) .results thead th:last-child {
  color: #e17a00;
  font-weight: 600;
}

body:not(.riders-mode) .results tbody td {
  font-size: 13px;
  font-weight: 600;
}

body:not(.riders-mode) .results tbody td:first-child {
  padding: 6px 4px;
}

body:not(.riders-mode) .results tbody td:first-child strong {
  display: block;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.15;
}

body:not(.riders-mode) .results tbody td:first-child span {
  display: block;
  margin-top: 2px;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.15;
}

body:not(.riders-mode) .results .cash-value {
  color: #e17a00;
  font-size: 14px;
  font-weight: 600;
}

body:not(.riders-mode) .results .empty-result-row td {
  height: 74px;
  padding: 16px 14px;
  color: #60748c;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

body:not(.riders-mode) .results .disclaimer {
  margin-top: 9px;
  padding: 10px 10px 10px 48px;
  border-radius: 7px;
  color: var(--bv-blue-strong);
  background: #eef5ff;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
}

body:not(.riders-mode) .results .disclaimer::before {
  left: 14px;
  width: 25px;
  height: 25px;
  border-color: var(--bv-blue-strong);
  color: var(--bv-blue-strong);
  font-size: 15px;
  font-weight: 500;
}

/* Bao Viet clean visual lock */
body:not(.riders-mode) {
  --bv-blue: #003b7a;
  --bv-blue-strong: #003b7a;
  --bv-blue-dark: #003b7a;
  --bv-line: #dbe6f2;
  --bv-soft: #f8fbff;
  color: var(--bv-blue-dark);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body:not(.riders-mode) .app-shell {
  padding-left: 14px;
  padding-right: 14px;
}

body:not(.riders-mode) .main-mobile-header {
  margin-left: -14px;
  margin-right: -14px;
  background: linear-gradient(135deg, #075fe7 0%, #004bb8 52%, #003386 100%);
}

body:not(.riders-mode) .main-mobile-header h1 {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}

body:not(.riders-mode) .tool-notice,
body:not(.riders-mode) .panel,
body:not(.riders-mode) .results {
  border-color: var(--bv-line);
  background: #fff;
  box-shadow: 0 1px 5px rgba(0, 63, 143, 0.08);
}

body:not(.riders-mode) .tool-notice {
  grid-template-columns: 50px minmax(0, 1fr);
  min-height: 80px;
  padding: 12px 15px;
  background: var(--bv-soft);
}

body:not(.riders-mode) .notice-icon {
  width: 42px;
  height: 48px;
}

body:not(.riders-mode) .notice-icon::before {
  width: 40px;
  height: 44px;
  border: 0;
  border-radius: 0;
  background: var(--bv-blue-strong);
  clip-path: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 40 44' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 2.5 35 8.5v12.4c0 9.2-6.5 15.8-15 20.5C11.5 36.7 5 30.1 5 20.9V8.5L20 2.5Z' fill='none' stroke='black' stroke-width='3' stroke-linejoin='round'/%3E%3Cpath d='m13.5 22 4.5 4.7L27.5 16' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 40 44' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 2.5 35 8.5v12.4c0 9.2-6.5 15.8-15 20.5C11.5 36.7 5 30.1 5 20.9V8.5L20 2.5Z' fill='none' stroke='black' stroke-width='3' stroke-linejoin='round'/%3E%3Cpath d='m13.5 22 4.5 4.7L27.5 16' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

body:not(.riders-mode) .notice-icon::after {
  display: none;
}

body:not(.riders-mode) .tool-notice strong,
body:not(.riders-mode) .panel h2,
body:not(.riders-mode) .result-heading h2 {
  color: var(--bv-blue-strong);
  font-weight: 600;
}

body:not(.riders-mode) .tool-notice strong {
  font-size: 16px;
}

body:not(.riders-mode) .tool-notice p {
  color: #4f6580;
  font-size: 13px;
  font-weight: 400;
}

body:not(.riders-mode) .panel h2,
body:not(.riders-mode) .result-heading h2 {
  align-items: center;
  font-size: 17px;
  line-height: 1.15;
}

body:not(.riders-mode) .section-badge {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  background: var(--bv-blue-strong);
}

body:not(.riders-mode) .section-badge::before,
body:not(.riders-mode) .section-badge::after {
  content: "";
  position: absolute;
  border: 0;
  background: #fff;
}

body:not(.riders-mode) .customer-badge::before {
  inset: 8px 8px 7px;
  width: auto;
  height: auto;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 28 28' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='14' cy='10' r='5'/%3E%3Cpath d='M4.5 24c1.6-5 5-7.5 9.5-7.5S21.9 19 23.5 24'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 28 28' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='14' cy='10' r='5'/%3E%3Cpath d='M4.5 24c1.6-5 5-7.5 9.5-7.5S21.9 19 23.5 24'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

body:not(.riders-mode) .customer-badge::after {
  display: none;
}

body:not(.riders-mode) .illustration-badge::before {
  inset: 9px 10px;
  width: auto;
  height: auto;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 28' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='24' rx='2'/%3E%3Cpath d='M7 21V9h3v12M14 21V6h3v15'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 28' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='24' rx='2'/%3E%3Cpath d='M7 21V9h3v12M14 21V6h3v15'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

body:not(.riders-mode) .illustration-badge::after {
  display: none;
}

body:not(.riders-mode) .result-badge::before {
  inset: 9px 9px 8px;
  width: auto;
  height: auto;
  box-shadow: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 28 28' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 24h20'/%3E%3Cpath d='M7 24V14M14 24V6M21 24V10'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 28 28' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 24h20'/%3E%3Cpath d='M7 24V14M14 24V6M21 24V10'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

body:not(.riders-mode) .result-badge::after {
  display: none;
}

body:not(.riders-mode) .fields {
  border-color: var(--bv-line);
}

body:not(.riders-mode) .field-row {
  grid-template-columns: 34px minmax(0, 1fr) minmax(112px, max-content);
  min-height: 48px;
  border-bottom-color: #e4edf6;
}

body:not(.riders-mode) .field-row::before {
  width: 24px;
  height: 24px;
  background-color: var(--bv-blue-strong);
}

body:not(.riders-mode) .field-row span,
body:not(.riders-mode) input,
body:not(.riders-mode) select,
body:not(.riders-mode) th,
body:not(.riders-mode) td {
  color: var(--bv-blue-dark);
}

body:not(.riders-mode) .field-row span {
  font-size: 14px;
  font-weight: 500;
}

body:not(.riders-mode) input,
body:not(.riders-mode) select {
  color: var(--bv-blue-strong);
  font-size: 14px;
  font-weight: 600;
}

body:not(.riders-mode) input::placeholder {
  color: #8493a6;
  font-weight: 400;
}

body:not(.riders-mode) .icon-info::before,
body:not(.riders-mode) .icon-plus::before,
body:not(.riders-mode) .icon-percent::before {
  border-color: var(--bv-blue-strong) !important;
  color: var(--bv-blue-strong);
  background: #fff;
}

body:not(.riders-mode) thead th {
  color: var(--bv-blue-dark);
  font-weight: 500;
}

body:not(.riders-mode) tbody td {
  color: var(--bv-blue-dark);
  font-weight: 600;
}

body:not(.riders-mode) tbody td:first-child {
  color: #fff;
  background: var(--bv-blue-strong);
}

body:not(.riders-mode) .cash-value,
body:not(.riders-mode) thead th:last-child {
  color: #e17a00;
}

/* Precision pass for the main illustration screen */
body:not(.riders-mode) {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif;
  background: #edf3fb;
}

body:not(.riders-mode) .app-shell {
  width: min(100%, 430px);
  padding: 0 13px 76px;
  background: #fff;
}

body:not(.riders-mode) .main-mobile-header {
  position: relative;
  display: flex;
  min-height: 70px;
  margin: 0 -13px 14px;
  padding: 15px 13px 11px;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #075fe7 0%, #0049c7 48%, #00308f 100%);
}

body:not(.riders-mode) .main-mobile-header h1 {
  position: absolute;
  left: 50%;
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  transform: translateX(-50%);
}

body:not(.riders-mode) .main-back-button {
  width: 40px;
  min-height: 40px;
}

body:not(.riders-mode) .main-back-button::before {
  left: 13px;
  top: 9px;
  width: 17px;
  height: 17px;
  border-left-width: 4px;
  border-bottom-width: 4px;
}

body:not(.riders-mode) .brand-mark {
  gap: 3px;
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

body:not(.riders-mode) .brand-mark i {
  width: 30px;
  height: 30px;
}

body:not(.riders-mode) .tool-notice {
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  min-height: 86px;
  margin: 0 0 10px;
  padding: 13px 16px;
  border-color: #dbe5f0;
  border-radius: 8px;
  background: #f8fbff;
  box-shadow: 0 1px 4px rgba(18, 54, 102, 0.07);
}

body:not(.riders-mode) .notice-icon {
  width: 48px;
  height: 54px;
}

body:not(.riders-mode) .tool-notice strong {
  margin-bottom: 5px;
  color: #004bb3;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
}

body:not(.riders-mode) .tool-notice p {
  color: #5f6878;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
}

body:not(.riders-mode) .form-grid {
  gap: 10px;
}

body:not(.riders-mode) .panel,
body:not(.riders-mode) .results {
  padding: 10px 8px 10px;
  border-color: #dbe5f0;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(18, 54, 102, 0.07);
}

body:not(.riders-mode) .panel h2,
body:not(.riders-mode) .result-heading h2 {
  gap: 10px;
  margin: 0 0 10px 9px;
  color: #004bb3;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.1;
}

body:not(.riders-mode) .section-badge {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  background: #0757c9;
}

body:not(.riders-mode) .fields {
  border-color: #e0e7f0;
  border-radius: 8px;
}

body:not(.riders-mode) .field-row {
  grid-template-columns: 38px minmax(0, 1fr) minmax(118px, max-content);
  gap: 10px;
  min-height: 51px;
  padding: 0 12px 0 10px;
  border-bottom-color: #e6edf5;
}

body:not(.riders-mode) .field-row::before {
  width: 28px;
  height: 28px;
  border: 0 !important;
  color: #0757c9;
  background-color: #0757c9;
  background-image: none;
  box-shadow: none;
}

body:not(.riders-mode) .field-row span {
  color: #060a2f;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.18;
}

body:not(.riders-mode) input,
body:not(.riders-mode) select {
  width: auto;
  max-width: 176px;
  min-height: 34px;
  justify-self: end;
  color: #004bb3;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
}

body:not(.riders-mode) input::placeholder {
  color: #8f98a8;
  font-weight: 500;
}

body:not(.riders-mode) .icon-user::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

body:not(.riders-mode) .icon-calendar::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='16' rx='2'/%3E%3Cpath d='M8 2.5v4M16 2.5v4M3 9h18'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='16' rx='2'/%3E%3Cpath d='M8 2.5v4M16 2.5v4M3 9h18'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

body:not(.riders-mode) .icon-shield::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2.5 20 6v6.2c0 5-3.5 8.1-8 9.3-4.5-1.2-8-4.3-8-9.3V6l8-3.5Z' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2.5 20 6v6.2c0 5-3.5 8.1-8 9.3-4.5-1.2-8-4.3-8-9.3V6l8-3.5Z' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

body:not(.riders-mode) .icon-info::before,
body:not(.riders-mode) .icon-plus::before,
body:not(.riders-mode) .icon-percent::before {
  display: grid !important;
  place-items: center;
  border: 2px solid #0757c9 !important;
  border-radius: 50%;
  color: #0757c9;
  background: transparent;
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
  -webkit-mask: none;
  mask: none;
}

body:not(.riders-mode) .icon-info::before {
  content: "i" !important;
}

body:not(.riders-mode) .icon-plus::before {
  content: "+" !important;
}

body:not(.riders-mode) .icon-percent::before {
  content: "%" !important;
  font-size: 15px;
}

body:not(.riders-mode) .results {
  margin-top: 10px;
}

body:not(.riders-mode) #resultMeta {
  margin: -4px 8px 8px 65px;
  font-size: 13px;
}

body:not(.riders-mode) .result-toggle {
  gap: 13px;
  margin: 0 0 7px 64px;
}

body:not(.riders-mode) .result-toggle button {
  width: 82px;
  min-height: 32px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 700;
}

body:not(.riders-mode) table {
  font-size: 13px;
}

body:not(.riders-mode) th,
body:not(.riders-mode) td {
  padding: 8px 6px;
}

body:not(.riders-mode) tbody td {
  font-size: 15px;
  font-weight: 700;
}

body:not(.riders-mode) .cash-value {
  font-size: 18px;
}

body:not(.riders-mode) .bottom-actions {
  grid-template-columns: 1fr 1.18fr;
  gap: 7px;
  padding: 7px 13px 9px;
}

body:not(.riders-mode) .bottom-actions button {
  min-height: 52px;
  font-size: 15px;
  font-weight: 700;
}

@media (max-width: 390px) {
  body:not(.riders-mode) .main-mobile-header {
    min-height: 66px;
  }

  body:not(.riders-mode) .main-mobile-header h1 {
    font-size: 18px;
  }

  body:not(.riders-mode) .brand-mark {
    font-size: 9px;
  }

  body:not(.riders-mode) .brand-mark i {
    width: 26px;
    height: 26px;
  }

  body:not(.riders-mode) .field-row {
    grid-template-columns: 34px minmax(0, 1fr) minmax(104px, max-content);
    min-height: 49px;
  }

  body:not(.riders-mode) .field-row span,
  body:not(.riders-mode) input,
  body:not(.riders-mode) select {
    font-size: 14px;
  }
}

/* Final visual lock: thin, compact, modern main tab */
body:not(.riders-mode) {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable", "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body:not(.riders-mode) .main-mobile-header {
  min-height: 64px;
  padding: 12px 13px 9px;
}

body:not(.riders-mode) .main-mobile-header h1 {
  font-size: 18px;
  font-weight: 600;
}

body:not(.riders-mode) .brand-mark {
  font-size: 8.5px;
  font-weight: 600;
}

body:not(.riders-mode) .brand-mark i {
  width: 26px;
  height: 26px;
}

body:not(.riders-mode) .tool-notice {
  min-height: 78px;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 14px;
}

body:not(.riders-mode) .notice-icon {
  width: 42px;
  height: 48px;
}

body:not(.riders-mode) .notice-icon::before {
  width: 30px;
  height: 35px;
  border-width: 2.2px;
}

body:not(.riders-mode) .notice-icon::after {
  width: 13px;
  height: 7px;
  border-left-width: 2.2px;
  border-bottom-width: 2.2px;
}

body:not(.riders-mode) .tool-notice strong {
  font-size: 16px;
  font-weight: 600;
}

body:not(.riders-mode) .tool-notice p {
  font-size: 13px;
  font-weight: 400;
}

body:not(.riders-mode) .panel,
body:not(.riders-mode) .results {
  padding: 9px 8px;
}

body:not(.riders-mode) .panel h2,
body:not(.riders-mode) .result-heading h2 {
  font-size: 17px;
  font-weight: 600;
}

body:not(.riders-mode) .section-badge {
  flex-basis: 42px;
  width: 42px;
  height: 42px;
}

body:not(.riders-mode) .field-row {
  grid-template-columns: 35px minmax(0, 1fr) minmax(112px, max-content);
  gap: 9px;
  min-height: 48px;
  padding-left: 9px;
  padding-right: 10px;
}

body:not(.riders-mode) .field-row::before {
  width: 25px;
  height: 25px;
}

body:not(.riders-mode) .field-row span {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
}

body:not(.riders-mode) input,
body:not(.riders-mode) select {
  max-width: 168px;
  min-height: 32px;
  font-size: 14px;
  font-weight: 600;
}

body:not(.riders-mode) input::placeholder {
  font-weight: 400;
}

body:not(.riders-mode) .icon-info::before,
body:not(.riders-mode) .icon-plus::before,
body:not(.riders-mode) .icon-percent::before {
  border-width: 1.7px !important;
  font-size: 15px;
  font-weight: 400;
}

body:not(.riders-mode) .icon-percent::before {
  font-size: 13px;
}

body:not(.riders-mode) .result-toggle button {
  font-size: 13px;
  font-weight: 500;
}

body:not(.riders-mode) thead th {
  font-weight: 500;
}

body:not(.riders-mode) tbody td {
  font-size: 14px;
  font-weight: 600;
}

body:not(.riders-mode) tbody td:first-child strong {
  font-size: 14px;
  font-weight: 600;
}

body:not(.riders-mode) tbody td:first-child span,
body:not(.riders-mode) .disclaimer,
body:not(.riders-mode) #resultMeta {
  font-weight: 400;
}

body:not(.riders-mode) .cash-value {
  font-size: 17px;
  font-weight: 600;
}

body:not(.riders-mode) .bottom-actions button {
  min-height: 50px;
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 390px) {
  body:not(.riders-mode) .field-row {
    grid-template-columns: 32px minmax(0, 1fr) minmax(98px, max-content);
    min-height: 46px;
  }

  body:not(.riders-mode) .field-row span,
  body:not(.riders-mode) input,
  body:not(.riders-mode) select {
    font-size: 13px;
  }
}

/* Absolute final override for Bao Viet thin blue UI */
body:not(.riders-mode) {
  --bv-blue: #003b7a;
  --bv-blue-strong: #003b7a;
  --bv-blue-dark: #003b7a;
  --bv-line: #dbe6f2;
  --bv-soft: #f8fbff;
  color: var(--bv-blue-dark);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body:not(.riders-mode) .tool-notice,
body:not(.riders-mode) .panel,
body:not(.riders-mode) .results {
  border-color: var(--bv-line);
  box-shadow: 0 1px 5px rgba(0, 63, 143, 0.08);
}

body:not(.riders-mode) .tool-notice {
  grid-template-columns: 50px minmax(0, 1fr);
  min-height: 80px;
  padding: 12px 15px;
  background: var(--bv-soft);
}

body:not(.riders-mode) .notice-icon::before {
  width: 40px;
  height: 44px;
  border: 0;
  border-radius: 0;
  background: var(--bv-blue-strong);
  clip-path: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 40 44' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 2.5 35 8.5v12.4c0 9.2-6.5 15.8-15 20.5C11.5 36.7 5 30.1 5 20.9V8.5L20 2.5Z' fill='none' stroke='black' stroke-width='3' stroke-linejoin='round'/%3E%3Cpath d='m13.5 22 4.5 4.7L27.5 16' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 40 44' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 2.5 35 8.5v12.4c0 9.2-6.5 15.8-15 20.5C11.5 36.7 5 30.1 5 20.9V8.5L20 2.5Z' fill='none' stroke='black' stroke-width='3' stroke-linejoin='round'/%3E%3Cpath d='m13.5 22 4.5 4.7L27.5 16' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

body:not(.riders-mode) .notice-icon::after,
body:not(.riders-mode) .customer-badge::after,
body:not(.riders-mode) .illustration-badge::after,
body:not(.riders-mode) .result-badge::after {
  display: none;
}

body:not(.riders-mode) .tool-notice strong,
body:not(.riders-mode) .panel h2,
body:not(.riders-mode) .result-heading h2 {
  color: var(--bv-blue-strong);
  font-weight: 600;
}

body:not(.riders-mode) .tool-notice p {
  color: #4f6580;
  font-weight: 400;
}

body:not(.riders-mode) .section-badge {
  background: var(--bv-blue-strong);
}

body:not(.riders-mode) .section-badge::before,
body:not(.riders-mode) .section-badge::after {
  border: 0;
  background: #fff;
  box-shadow: none;
}

body:not(.riders-mode) .customer-badge::before {
  inset: 8px 8px 7px;
  width: auto;
  height: auto;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 28 28' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='14' cy='10' r='5'/%3E%3Cpath d='M4.5 24c1.6-5 5-7.5 9.5-7.5S21.9 19 23.5 24'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 28 28' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='14' cy='10' r='5'/%3E%3Cpath d='M4.5 24c1.6-5 5-7.5 9.5-7.5S21.9 19 23.5 24'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

body:not(.riders-mode) .illustration-badge::before {
  inset: 9px 10px;
  width: auto;
  height: auto;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 28' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='24' rx='2'/%3E%3Cpath d='M7 21V9h3v12M14 21V6h3v15'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 28' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='24' rx='2'/%3E%3Cpath d='M7 21V9h3v12M14 21V6h3v15'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

body:not(.riders-mode) .result-badge::before {
  inset: 9px;
  width: auto;
  height: auto;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 28 28' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 24h20'/%3E%3Cpath d='M7 24V14M14 24V6M21 24V10'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 28 28' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 24h20'/%3E%3Cpath d='M7 24V14M14 24V6M21 24V10'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

body:not(.riders-mode) .field-row span,
body:not(.riders-mode) input,
body:not(.riders-mode) select,
body:not(.riders-mode) th,
body:not(.riders-mode) td {
  color: var(--bv-blue-dark);
}

body:not(.riders-mode) .field-row span {
  font-weight: 500;
}

body:not(.riders-mode) input,
body:not(.riders-mode) select {
  color: var(--bv-blue-strong);
  font-weight: 600;
}

body:not(.riders-mode) .field-row::before {
  background-color: var(--bv-blue-strong);
}

body:not(.riders-mode) .icon-info::before,
body:not(.riders-mode) .icon-plus::before,
body:not(.riders-mode) .icon-percent::before {
  border-color: var(--bv-blue-strong) !important;
  color: var(--bv-blue-strong);
  background: #fff;
}

body:not(.riders-mode) thead th {
  font-weight: 500;
}

body:not(.riders-mode) tbody td {
  font-weight: 600;
}

body:not(.riders-mode) tbody td:first-child {
  color: #fff;
  background: var(--bv-blue-strong);
}

body:not(.riders-mode) .cash-value,
body:not(.riders-mode) thead th:last-child {
  color: #e17a00;
}

/* Absolute final result table polish */
body:not(.riders-mode) .results {
  padding: 10px 8px 10px;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
}

body:not(.riders-mode) .results .result-heading h2 {
  margin: 0 0 8px 8px;
  gap: 10px;
  color: var(--bv-blue-strong);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

body:not(.riders-mode) .results .result-badge {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
}

body:not(.riders-mode) .results #resultMeta {
  margin: 0 8px 9px 58px;
  color: #60748c;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
}

body:not(.riders-mode) .results .result-toggle {
  gap: 10px;
  margin: 0 0 10px 58px;
}

body:not(.riders-mode) .results .result-toggle button {
  width: 78px;
  min-height: 32px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.15;
}

body:not(.riders-mode) .results .result-toggle button.active {
  background: var(--bv-blue-strong);
}

body:not(.riders-mode) .results .table-wrap {
  overflow-x: auto;
  overflow-y: visible;
  border-color: var(--bv-line);
  border-radius: 7px;
}

body:not(.riders-mode) .results table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-family: inherit;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

body:not(.riders-mode) .results th,
body:not(.riders-mode) .results td {
  height: 48px;
  padding: 7px 5px;
  border-bottom: 1px solid #e5edf6;
  color: var(--bv-blue-dark);
  line-height: 1.2;
  text-align: center;
  vertical-align: middle;
}

body:not(.riders-mode) .results thead th {
  height: 44px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
}

body:not(.riders-mode) .results thead th:first-child,
body:not(.riders-mode) .results tbody td:first-child {
  width: 78px;
  color: #fff;
  background: var(--bv-blue-strong);
}

body:not(.riders-mode) .results thead th:last-child {
  color: #e17a00;
  font-weight: 600;
}

body:not(.riders-mode) .results tbody td {
  font-size: 13px;
  font-weight: 600;
}

body:not(.riders-mode) .results tbody td:first-child {
  padding: 6px 4px;
}

body:not(.riders-mode) .results tbody td:first-child strong {
  display: block;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.15;
}

body:not(.riders-mode) .results tbody td:first-child span {
  display: block;
  margin-top: 2px;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.15;
}

body:not(.riders-mode) .results .cash-value {
  color: #e17a00;
  font-size: 14px;
  font-weight: 600;
}

body:not(.riders-mode) .results .empty-result-row td {
  height: 74px;
  padding: 16px 14px;
  color: #60748c;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

body:not(.riders-mode) .results .disclaimer {
  margin-top: 9px;
  padding: 10px 10px 10px 48px;
  color: var(--bv-blue-strong);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
}

/* Result section final sync with the input panels */
body:not(.riders-mode) .results .result-heading h2 {
  margin: 0 0 10px 10px;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.15;
}

body:not(.riders-mode) .results .result-badge {
  width: 46px;
  height: 46px;
  flex-basis: 46px;
}

body:not(.riders-mode) .results #resultMeta {
  display: none;
}

body:not(.riders-mode) .results .result-toggle {
  display: flex;
  gap: 10px;
  margin: 0 0 10px;
}

body:not(.riders-mode) .results .result-toggle button {
  flex: 1 1 0;
  width: auto;
  min-height: 34px;
  font-weight: 700;
  white-space: nowrap;
}

body:not(.riders-mode) .results .table-wrap {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow-x: auto;
  overflow-y: visible;
}

body:not(.riders-mode) .results th,
body:not(.riders-mode) .results td {
  height: 53px;
  padding: 8px 6px;
  border-bottom-color: #e8edf3;
}

body:not(.riders-mode) .results thead th {
  height: 42px;
  font-weight: 700;
  line-height: 1.15;
}

body:not(.riders-mode) .results th:nth-child(2),
body:not(.riders-mode) .results td:nth-child(2),
body:not(.riders-mode) .results th:nth-child(3),
body:not(.riders-mode) .results td:nth-child(3),
body:not(.riders-mode) .results th:nth-child(4),
body:not(.riders-mode) .results td:nth-child(4) {
  width: 18%;
}

body:not(.riders-mode) .results th:nth-child(5),
body:not(.riders-mode) .results td:nth-child(5) {
  width: 22%;
}

body:not(.riders-mode) .results tbody td,
body:not(.riders-mode) .results thead th:last-child,
body:not(.riders-mode) .results tbody td:first-child strong,
body:not(.riders-mode) .results .cash-value {
  font-weight: 700;
}

body:not(.riders-mode) .results tbody td:first-child span {
  font-weight: 600;
}

body:not(.riders-mode) .results .empty-result-row td:first-child {
  color: #60748c;
  background: #fff;
}

body:not(.riders-mode) .field-row[hidden] {
  display: none !important;
}

body:not(.riders-mode) .main-extra-field {
  display: grid;
}

body:not(.riders-mode) .hidden-main-field {
  display: none;
}

body:not(.riders-mode) .single-line-field {
  grid-template-columns: 35px minmax(160px, 1fr) minmax(96px, max-content);
}

body:not(.riders-mode) .single-line-field span {
  white-space: nowrap;
  font-size: 13px;
}

body:not(.riders-mode) #interestRate {
  text-align: right;
}

body:not(.riders-mode) .panel h2,
body:not(.riders-mode) .results .result-heading h2 {
  color: var(--bv-blue-strong);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.15;
}

body:not(.riders-mode) .main-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: auto;
  margin: 0 0 11px;
  padding: 10px 17px 12px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #0759d4 0%, #0048ad 58%, #00337f 100%);
  box-shadow: 0 4px 14px rgba(0, 64, 150, 0.18);
}

body:not(.riders-mode) .main-banner-content {
  display: grid;
  gap: 3px;
  min-width: 0;
}

body:not(.riders-mode) .main-banner-brand {
  color: #dceaff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

body:not(.riders-mode) .main-banner-content strong {
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

body:not(.riders-mode) .main-banner-action {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 6px;
  color: var(--bv-blue-strong);
  background: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
  box-shadow: 0 2px 8px rgba(0, 35, 95, 0.16);
}

/* SPBK final sync with the main illustration screen */
body.riders-mode {
  color: #070b34;
  background: #eef3fa;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif;
}

body.riders-mode .app-shell {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 13px 18px;
  background: #fff;
  box-shadow: 0 20px 64px rgba(0, 35, 95, 0.15);
}

body.riders-mode #ridersTab {
  display: block;
  padding: 0;
}

body.riders-mode .rider-hero {
  min-height: 96px;
  margin: 0 0 11px;
  padding: 16px 17px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #0759d4 0%, #0048ad 58%, #00337f 100%);
  box-shadow: 0 4px 14px rgba(0, 64, 150, 0.18);
}

body.riders-mode .rider-statusbar {
  display: none;
}

body.riders-mode .rider-nav {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
  margin: 0;
}

body.riders-mode .rider-nav h2,
body.riders-mode .rider-nav p {
  margin: 0;
  color: #fff;
  text-align: left;
}

body.riders-mode .rider-nav h2 {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
}

body.riders-mode .rider-nav p {
  margin-top: 5px;
  color: #dceaff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

body.riders-mode .rider-nav-button {
  width: 42px;
  min-height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  color: #fff;
  background: transparent;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

body.riders-mode .rider-nav-button:last-child {
  visibility: hidden;
}

body.riders-mode .rider-customer-card,
body.riders-mode .rider-card,
body.riders-mode .rider-detail-card,
body.riders-mode .rider-totals,
body.riders-mode .save-message {
  margin: 0 0 11px;
  border: 1px solid #dce5ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 7px rgba(31, 68, 115, 0.08);
}

body.riders-mode .rider-customer-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

body.riders-mode .rider-customer-left,
body.riders-mode .rider-customer-money {
  display: grid;
  gap: 0;
  min-width: 0;
  padding: 0;
  border: 0;
}

body.riders-mode .rider-customer-card strong,
body.riders-mode .rider-customer-card span,
body.riders-mode .rider-customer-money span {
  min-height: 44px;
  padding: 0 12px;
  border-bottom: 1px solid #e8edf3;
  color: var(--bv-blue-dark);
  font-size: 13px;
  font-weight: 700;
  line-height: 44px;
}

body.riders-mode .rider-customer-card span {
  font-weight: 600;
}

body.riders-mode .rider-customer-money strong {
  float: right;
  min-height: 0;
  padding: 0;
  border: 0;
  color: var(--bv-blue-strong);
  font-size: 13px;
  line-height: inherit;
}

body.riders-mode #riderCustomerMeta::before,
body.riders-mode #riderCustomerPhone::before {
  content: none;
}

body.riders-mode .rider-card,
body.riders-mode .rider-detail-card {
  padding: 10px 8px 8px;
}

body.riders-mode .rider-section-heading,
body.riders-mode .rider-detail-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px 10px;
  padding: 0;
}

body.riders-mode .rider-section-heading h3,
body.riders-mode .rider-detail-head h3 {
  margin: 0;
  color: var(--bv-blue-strong);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.15;
}

body.riders-mode .rider-section-heading::before,
body.riders-mode .rider-detail-head .rider-icon {
  content: "";
  display: grid;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--bv-blue-strong);
  font-size: 13px;
  font-weight: 800;
}

body.riders-mode .rider-section-heading::before {
  content: "+";
  font-size: 22px;
}

body.riders-mode .rider-section-heading span,
body.riders-mode .switch-row span,
body.riders-mode .rider-detail-head span,
body.riders-mode .rider-range-note {
  color: #60748c;
  font-size: 12px;
  font-weight: 600;
}

body.riders-mode .rider-product-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

body.riders-mode .rider-pill,
body.riders-mode .quick-amount,
body.riders-mode .checkbox-chip span {
  min-height: 38px;
  border: 1px solid #cfd8e4;
  border-radius: 6px;
  color: var(--bv-blue-strong);
  background: #fff;
  box-shadow: none;
  font-size: 13px;
  font-weight: 700;
}

body.riders-mode .rider-pill.active,
body.riders-mode .rider-pill.selected,
body.riders-mode .quick-amount.active,
body.riders-mode .checkbox-chip input:checked + span {
  border-color: var(--bv-blue-strong);
  color: #fff;
  background: var(--bv-blue-strong);
  box-shadow: none;
}

body.riders-mode .rider-pill small {
  display: none;
}

body.riders-mode .rider-detail-head {
  align-items: flex-start;
}

body.riders-mode .rider-detail-head .rider-icon {
  font-size: 12px;
}

body.riders-mode .rider-detail-head .rider-icon::before {
  content: none;
}

body.riders-mode .rider-detail-head p {
  display: none;
}

body.riders-mode .info-button {
  flex: 0 0 28px;
  width: 28px;
  min-height: 28px;
  border: 1px solid var(--bv-blue-strong);
  border-radius: 50%;
  color: var(--bv-blue-strong);
  background: #fff;
  font-weight: 800;
}

body.riders-mode .rider-value-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

body.riders-mode .rider-value-grid > div,
body.riders-mode .rider-totals > div {
  display: flex;
  min-height: 53px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  border: 0;
  border-bottom: 1px solid #e8edf3;
  background: #fff;
}

body.riders-mode .rider-value-grid > div:last-child,
body.riders-mode .rider-totals > div:last-child {
  border-bottom: 0;
}

body.riders-mode .rider-value-grid span,
body.riders-mode .rider-totals span {
  color: var(--bv-blue-dark);
  font-size: 13px;
  font-weight: 700;
}

body.riders-mode .rider-value-grid strong,
body.riders-mode .rider-totals strong {
  color: var(--bv-blue-strong);
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

body.riders-mode .amount-controls,
body.riders-mode .compact-field,
body.riders-mode .checkbox-group {
  margin-top: 10px;
}

body.riders-mode .stepper {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  gap: 8px;
}

body.riders-mode .stepper input {
  display: block;
  width: 100%;
  max-width: none;
  min-height: 38px;
  border: 1px solid #dce5ef;
  border-radius: 6px;
  padding: 0 10px;
  color: var(--bv-blue-strong);
  background: #fff;
  font-weight: 700;
  text-align: center;
}

body.riders-mode .stepper button {
  width: 38px;
  min-height: 38px;
  border-radius: 50%;
  color: var(--bv-blue-strong);
  background: #fff;
  border: 1px solid var(--bv-blue-strong);
  font-size: 20px;
}

body.riders-mode #riderAmountRange {
  width: 100%;
  margin: 10px 0 0;
  accent-color: var(--bv-blue-strong);
}

body.riders-mode .quick-amounts,
body.riders-mode .checkbox-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

body.riders-mode .compact-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  align-items: center;
  min-height: 53px;
  padding: 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

body.riders-mode .compact-field span {
  color: var(--bv-blue-dark);
  font-size: 13px;
  font-weight: 700;
}

body.riders-mode .compact-field input,
body.riders-mode .compact-field select {
  width: 100%;
  min-height: 38px;
  border: 0;
  color: var(--bv-blue-strong);
  background: transparent;
  font-weight: 700;
  text-align: right;
}

body.riders-mode .rider-ok,
body.riders-mode .rider-warning {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

body.riders-mode .rider-ok {
  color: var(--bv-blue-strong);
  background: #eef6ff;
}

body.riders-mode .rider-warning {
  color: #b42318;
  background: #fff1f0;
}

body.riders-mode .selected-rider-list {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

body.riders-mode .selected-rider {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid #e8edf3;
  border-radius: 0;
}

body.riders-mode .selected-rider:last-child {
  border-bottom: 0;
}

body.riders-mode .selected-rider::before {
  content: none;
}

body.riders-mode .selected-rider .rider-icon.small {
  grid-column: auto;
  grid-row: auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #fff;
  background: var(--bv-blue-strong);
  font-size: 12px;
}

body.riders-mode .selected-rider div:nth-child(2),
body.riders-mode .selected-rider .toggle {
  grid-column: auto;
  grid-row: auto;
}

body.riders-mode .selected-rider strong {
  color: var(--bv-blue-dark);
  font-size: 13px;
  font-weight: 700;
}

body.riders-mode .selected-rider span,
body.riders-mode .selected-rider em,
body.riders-mode .empty-state {
  color: #60748c;
  font-size: 12px;
  font-weight: 600;
}

body.riders-mode .empty-state {
  padding: 18px 12px;
  text-align: center;
}

body.riders-mode .toggle span {
  width: 42px;
  height: 24px;
  background: #d7e0ef;
}

body.riders-mode .toggle input:checked + span {
  background: var(--bv-blue-strong);
}

body.riders-mode .rider-totals {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
}

body.riders-mode .rider-totals > div::before {
  content: none;
}

body.riders-mode .rider-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 10px;
}

body.riders-mode .rider-actions button {
  min-height: 44px;
  border: 1px solid var(--bv-blue-strong);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
}

body.riders-mode .rider-actions button:not(.secondary-button) {
  color: #fff;
  background: var(--bv-blue-strong);
}

body.riders-mode .secondary-button {
  color: var(--bv-blue-strong);
  background: #fff;
}

body.riders-mode .save-message {
  min-height: 0;
  padding: 0;
  border: 0;
  color: var(--bv-blue-strong);
  background: transparent;
  box-shadow: none;
  font-size: 12px;
  font-weight: 600;
}

/* SPBK reference layout polish */
body.riders-mode {
  background: #eef3fa;
}

body.riders-mode .app-shell {
  padding: 0 16px 16px;
  overflow: hidden;
}

body.riders-mode .rider-hero {
  min-height: 96px;
  margin: 0 0 11px;
  padding: 16px 17px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 12%, rgba(58, 137, 255, 0.42), transparent 30%),
    linear-gradient(145deg, #003b7a 0%, #003b7a 50%, #003b7a 100%);
  box-shadow: none;
}

body.riders-mode .rider-statusbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

body.riders-mode .rider-nav {
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  margin-top: 0;
}

body.riders-mode .rider-nav h2,
body.riders-mode .rider-nav p {
  text-align: center;
}

body.riders-mode .rider-nav h2 {
  font-size: 22px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

body.riders-mode .rider-nav p {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 500;
}

body.riders-mode .rider-nav-button {
  width: 44px;
  min-height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  font-size: 26px;
}

body.riders-mode #riderBackButton {
  border-color: transparent;
  font-size: 42px;
  font-weight: 400;
}

body.riders-mode .rider-nav-button:last-child {
  visibility: visible;
  font-size: 24px;
}

body.riders-mode .rider-customer-card {
  position: relative;
  z-index: 1;
  grid-template-columns: 1fr 1.08fr;
  gap: 0;
  margin: 0 0 11px;
  padding: 20px 22px;
  overflow: visible;
  border: 1px solid rgba(213, 224, 245, 0.92);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(6, 36, 98, 0.12);
}

body.riders-mode .rider-customer-left,
body.riders-mode .rider-customer-money {
  gap: 10px;
}

body.riders-mode .rider-customer-money {
  padding-left: 22px;
  border-left: 1px solid #c9d7f6;
}

body.riders-mode .rider-customer-card strong,
body.riders-mode .rider-customer-card span,
body.riders-mode .rider-customer-money span {
  min-height: 0;
  padding: 0;
  border: 0;
  line-height: 1.25;
}

body.riders-mode .rider-customer-card > .rider-customer-left > strong {
  color: #070b34;
  font-size: 16px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.riders-mode .rider-customer-card span {
  color: #10266d;
  font-size: 13px;
}

body.riders-mode .rider-customer-money span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #070b34;
  font-size: 13px;
  font-weight: 500;
}

body.riders-mode .rider-customer-money strong {
  float: none;
  color: #070b34;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

body.riders-mode .rider-card,
body.riders-mode .rider-detail-card,
body.riders-mode .rider-totals,
body.riders-mode .rider-actions,
body.riders-mode .save-message {
  margin-left: 22px;
  margin-right: 22px;
}

body.riders-mode .rider-card {
  margin-bottom: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.riders-mode .rider-section-heading {
  margin: 0 2px 10px;
  justify-content: space-between;
}

body.riders-mode .rider-section-heading::before {
  content: none;
}

body.riders-mode .rider-section-heading h3 {
  color: #070b34;
  font-size: 13px;
  font-weight: 700;
}

body.riders-mode .rider-section-heading span,
body.riders-mode .switch-row span {
  color: #10266d;
  font-size: 12px;
  font-weight: 500;
}

body.riders-mode .switch-row {
  gap: 6px;
}

body.riders-mode .rider-product-buttons {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

body.riders-mode .rider-pill {
  min-width: 0;
  min-height: 42px;
  padding: 0 8px;
  border: 1.3px solid #b7cfff;
  border-radius: 21px;
  color: #5d6fa6;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

body.riders-mode .rider-pill.active,
body.riders-mode .rider-pill.selected {
  border-color: #003b7a;
  background: linear-gradient(145deg, #003b7a, #003b7a);
  box-shadow: 0 8px 18px rgba(5, 92, 255, 0.22);
}

body.riders-mode .rider-detail-card {
  margin-top: 6px;
  margin-bottom: 18px;
  padding: 10px;
  border: 1.5px solid #003b7a;
  border-radius: 10px;
  box-shadow: none;
}

body.riders-mode .rider-detail-head {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 24px;
  align-items: start;
  gap: 9px;
  margin: 0 0 10px;
}

body.riders-mode .rider-detail-head .rider-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #003b7a;
  background: #edf4ff;
  font-size: 0;
}

body.riders-mode .rider-detail-head .rider-icon::before {
  content: "";
  width: 22px;
  height: 22px;
  background: #003b7a;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 3 27 7v8c0 7-4.8 11.2-11 14C9.8 26.2 5 22 5 15V7l11-4Z'/%3E%3Cpath d='m10.5 17.5 3.5 3.5 7.5-8'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 3 27 7v8c0 7-4.8 11.2-11 14C9.8 26.2 5 22 5 15V7l11-4Z'/%3E%3Cpath d='m10.5 17.5 3.5 3.5 7.5-8'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

body.riders-mode .rider-detail-head p {
  display: inline-block;
  margin: 0 6px 0 0;
  padding: 5px 8px;
  border-radius: 6px;
  color: #fff;
  background: #003b7a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

body.riders-mode .rider-detail-head h3 {
  display: inline;
  color: #070b34;
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

body.riders-mode .rider-detail-head span {
  display: none;
}

body.riders-mode .info-button {
  width: 24px;
  min-height: 24px;
  border-color: #7485bd;
  color: #31447f;
}

body.riders-mode .rider-value-grid {
  grid-template-columns: 1.18fr 1fr;
  padding: 10px;
  border-color: #dbe5f6;
  border-radius: 10px;
}

body.riders-mode .rider-value-grid > div {
  display: grid;
  min-height: 0;
  align-content: start;
  justify-content: stretch;
  gap: 4px;
  padding: 0;
  border-bottom: 0;
}

body.riders-mode .rider-value-grid > div + div {
  padding-left: 20px;
  border-left: 1px solid #c9d7f6;
}

body.riders-mode .rider-value-grid span {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.15;
}

body.riders-mode .rider-value-grid strong {
  color: #003b7a;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.15;
  text-align: left;
  overflow-wrap: anywhere;
}

body.riders-mode .stepper {
  grid-template-columns: 30px minmax(0, 1fr) 30px;
  gap: 8px;
  margin-top: 6px;
  align-items: center;
}

body.riders-mode .stepper button {
  width: 30px;
  min-height: 30px;
  border: 0;
  color: #071047;
  background: #f0f3fa;
  font-size: 17px;
}

body.riders-mode .stepper input {
  display: none;
}

body.riders-mode #riderAmountRange {
  display: block;
  height: 16px;
  margin: -20px 38px 0;
  width: calc(100% - 76px);
}

body.riders-mode .amount-controls {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  column-gap: 8px;
  row-gap: 6px;
  align-items: center;
  margin-top: 6px;
}

body.riders-mode .amount-controls .stepper {
  display: contents;
}

body.riders-mode #decreaseRiderAmount {
  grid-column: 1;
}

body.riders-mode #increaseRiderAmount {
  grid-column: 3;
}

body.riders-mode .amount-controls .stepper button {
  width: 28px;
  min-height: 28px;
  font-size: 16px;
}

body.riders-mode #riderAmountRange {
  grid-column: 2;
  width: 100%;
  height: 14px;
  margin: 0;
}

body.riders-mode .amount-controls .quick-amounts {
  grid-column: 1 / -1;
  margin-top: 0;
}

body.riders-mode .quick-amounts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 8px;
}

body.riders-mode .quick-amount {
  min-width: 0;
  min-height: 36px;
  padding: 0 6px;
  border-color: #b7cfff;
  border-radius: 7px;
  color: #10164b;
  font-size: 12px;
  font-weight: 600;
  white-space: normal;
}

body.riders-mode .quick-amount.active {
  color: #fff;
  background: #003b7a;
}

body.riders-mode .rider-range-note {
  margin: 10px 0 0;
  color: #566aa8;
  font-size: 12px;
  font-weight: 500;
}

body.riders-mode .rider-ok,
body.riders-mode .rider-warning {
  display: none;
}

body.riders-mode .selected-rider-list {
  border-color: #dbe5f6;
  border-radius: 10px;
}

body.riders-mode .selected-rider {
  grid-template-columns: 34px minmax(0, 1fr) 78px auto;
  gap: 9px;
  padding: 10px;
}

body.riders-mode .selected-rider .rider-icon.small {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #0bb983;
  background: #eafff6;
  font-size: 0;
}

body.riders-mode .selected-rider .rider-icon.small::before {
  content: "";
  width: 22px;
  height: 22px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17.5c0-5 3.7-9 8.3-9 2.7 0 4.6 1.4 5.8 3.2 1.2-1.8 3.1-3.2 5.8-3.2 4.6 0 8.1 4 8.1 9 0 7-13.9 13.2-13.9 13.2S7 24.5 7 17.5Z' transform='scale(.78) translate(1 0)'/%3E%3Cpath d='M5 18h6l2.2-4.5 3.6 9 2.2-4.5h8'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17.5c0-5 3.7-9 8.3-9 2.7 0 4.6 1.4 5.8 3.2 1.2-1.8 3.1-3.2 5.8-3.2 4.6 0 8.1 4 8.1 9 0 7-13.9 13.2-13.9 13.2S7 24.5 7 17.5Z' transform='scale(.78) translate(1 0)'/%3E%3Cpath d='M5 18h6l2.2-4.5 3.6 9 2.2-4.5h8'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

body.riders-mode .selected-rider:nth-child(2) .rider-icon.small {
  color: #f58220;
  background: #fff3e8;
}

body.riders-mode .selected-rider:nth-child(3) .rider-icon.small {
  color: #9b51e0;
  background: #f5edff;
}

body.riders-mode .selected-rider:nth-child(4) .rider-icon.small {
  color: #003b7a;
  background: #edf4ff;
}

body.riders-mode .selected-rider::before {
  content: "Phí (năm)\A" attr(data-premium);
  display: block;
  grid-column: 3;
  grid-row: 1;
  color: #070b34;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
  white-space: pre;
}

body.riders-mode .selected-rider strong {
  color: #070b34;
  font-size: 12px;
  overflow-wrap: anywhere;
}

body.riders-mode .selected-rider span {
  color: #10266d;
  font-size: 11px;
}

body.riders-mode .selected-rider .toggle {
  grid-column: 4;
}

body.riders-mode .rider-totals {
  grid-template-columns: 1fr 1fr;
  margin-top: 16px;
  padding: 0;
  border: 1px solid #cfe0ff;
  border-radius: 10px;
  background: #eef6ff;
}

body.riders-mode .rider-totals > div {
  display: grid;
  justify-content: stretch;
  min-height: 76px;
  align-content: center;
  gap: 5px;
  padding: 12px 18px;
  background: transparent;
}

body.riders-mode .rider-totals > div + div {
  border-left: 1px solid #c9d7f6;
}

body.riders-mode .rider-totals span {
  font-size: 12px;
  font-weight: 500;
}

body.riders-mode .rider-totals strong {
  color: #003b7a;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  overflow-wrap: anywhere;
}

body.riders-mode .rider-actions {
  gap: 14px;
  margin-top: 12px;
}

body.riders-mode .rider-actions button {
  min-height: 46px;
  border: 1.5px solid #003b7a;
  border-radius: 8px;
  font-size: 13px;
}

body.riders-mode .rider-actions button:not(.secondary-button) {
  background: linear-gradient(145deg, #003b7a, #003b7a);
}

@media (max-width: 390px) {
  body.riders-mode .rider-hero {
    padding: 15px 14px;
  }

  body.riders-mode .rider-customer-card,
  body.riders-mode .rider-card,
  body.riders-mode .rider-detail-card,
  body.riders-mode .rider-totals,
  body.riders-mode .rider-actions,
  body.riders-mode .save-message {
    margin-left: 12px;
    margin-right: 12px;
  }

  body.riders-mode .rider-product-buttons {
    grid-template-columns: repeat(4, 1fr);
  }

  body.riders-mode .rider-value-grid,
  body.riders-mode .rider-totals {
    grid-template-columns: 1fr;
  }

  body.riders-mode .rider-value-grid > div + div,
  body.riders-mode .rider-totals > div + div {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid #c9d7f6;
  }

  body.riders-mode .quick-amounts {
    grid-template-columns: repeat(3, 1fr);
  }

  body.riders-mode .selected-rider {
    grid-template-columns: 46px minmax(0, 1fr) auto;
  }

  body.riders-mode .selected-rider::before {
    grid-column: 2;
    grid-row: 2;
  }

  body.riders-mode .selected-rider .toggle {
    grid-column: 3;
  }
}

body.riders-mode #ridersTab *,
body.riders-mode #ridersTab *::before,
body.riders-mode #ridersTab *::after {
  box-sizing: border-box;
}

body.riders-mode button,
body.riders-mode input,
body.riders-mode select {
  max-width: 100%;
}

body.riders-mode .rider-pill span,
body.riders-mode .quick-amount,
body.riders-mode .rider-actions button {
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 430px) {
  body.riders-mode .rider-hero {
    min-height: 92px;
    margin: 0 0 10px;
    border-radius: 8px;
  }

  body.riders-mode .rider-nav h2 {
    font-size: 20px;
  }

  body.riders-mode .rider-nav p {
    font-size: 13px;
  }

  body.riders-mode .rider-customer-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    margin-left: 0;
    margin-right: 0;
    padding: 16px;
  }

  body.riders-mode .rider-customer-money {
    padding-left: 14px;
  }

  body.riders-mode .rider-product-buttons {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body.riders-mode .rider-pill {
    min-height: 38px;
    font-size: 12px;
  }

  body.riders-mode .rider-detail-head h3 {
    font-size: 13px;
  }

  body.riders-mode .rider-value-grid strong {
    font-size: 15px;
  }

  body.riders-mode .stepper button {
    width: 30px;
    min-height: 30px;
    font-size: 17px;
  }

  body.riders-mode .quick-amounts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.riders-mode .rider-actions {
    gap: 8px;
  }
}

/* SPBK compact refinement */
body.riders-mode .rider-nav-button:last-child {
  visibility: hidden;
  pointer-events: none;
}

body.riders-mode #riderCustomerPhone {
  display: none;
}

body.riders-mode .rider-customer-card {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: stretch;
  padding: 12px 14px;
}

body.riders-mode .rider-customer-left,
body.riders-mode .rider-customer-money {
  align-content: center;
  gap: 8px;
}

body.riders-mode .rider-customer-money {
  padding-left: 14px;
  border-left: 1px solid #d6e0ef;
}

body.riders-mode .rider-customer-card > .rider-customer-left > strong {
  font-size: 14px;
  line-height: 1.2;
}

body.riders-mode .rider-customer-card span,
body.riders-mode .rider-customer-money span,
body.riders-mode .rider-customer-money strong {
  font-size: 12px;
  line-height: 1.2;
}

body.riders-mode .rider-customer-money span {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

body.riders-mode .rider-customer-money strong {
  text-align: right;
  line-height: 1.2;
}

body.riders-mode .rider-product-buttons {
  gap: 7px;
}

body.riders-mode .rider-pill {
  min-height: 34px;
  padding: 0 6px;
  border-radius: 18px;
  font-size: 11px;
  box-shadow: none;
}

body.riders-mode .rider-pill.active,
body.riders-mode .rider-pill.selected {
  box-shadow: 0 4px 10px rgba(5, 92, 255, 0.16);
}

body.riders-mode .spbk-stbh-toggle {
  grid-column: 4 !important;
  grid-row: 2 !important;
  border-color: #f59e0b !important;
  color: #8a4b00 !important;
  background: #fff7e6 !important;
  font-weight: 800 !important;
}

body.riders-mode .spbk-stbh-toggle.is-hidden {
  border-color: #0b6bcb !important;
  color: #fff !important;
  background: #0b6bcb !important;
}

body.riders-mode .rider-detail-card.spbk-detail-hidden {
  display: none !important;
}

/* Keep SPBK amount slider controls on one compact row */
body.riders-mode .amount-controls {
  display: grid !important;
  grid-template-columns: 28px minmax(0, 1fr) 28px !important;
  column-gap: 8px !important;
  row-gap: 6px !important;
  align-items: center !important;
  margin-top: 6px !important;
}

body.riders-mode .amount-controls .stepper {
  display: contents !important;
}

body.riders-mode .amount-controls .stepper input {
  display: none !important;
}

body.riders-mode #decreaseRiderAmount {
  grid-column: 1 !important;
  grid-row: 1 !important;
}

body.riders-mode #riderAmountRange {
  grid-column: 2 !important;
  grid-row: 1 !important;
  width: 100% !important;
  height: 14px !important;
  margin: 0 !important;
  touch-action: pan-y !important;
  will-change: contents !important;
}

body.riders-mode #increaseRiderAmount {
  grid-column: 3 !important;
  grid-row: 1 !important;
}

body.riders-mode .amount-controls .stepper button {
  width: 28px !important;
  min-height: 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #1f2937 !important;
  font-size: 16px !important;
}

body.riders-mode .amount-controls .stepper button img {
  width: 16px !important;
  height: 16px !important;
  display: block !important;
  pointer-events: none !important;
}

body.riders-mode .amount-controls .quick-amounts {
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;
  margin-top: 0 !important;
}

body.riders-mode .amount-controls .rider-range-note {
  grid-column: 1 / -1 !important;
  grid-row: 3 !important;
  margin: 6px 0 0 !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

body.riders-mode .amount-controls .rider-stbh-error {
  grid-column: 1 / -1 !important;
  grid-row: 4 !important;
  margin: 0 !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

body:not(.riders-mode) .occupation-field {
  position: relative;
  z-index: 5;
}

body:not(.riders-mode) .visible-occupation-field {
  display: grid !important;
  grid-column: 1 / -1;
}

body:not(.riders-mode) .occupation-field {
  grid-template-columns: 38px minmax(0, 1fr) minmax(92px, max-content);
  row-gap: 6px;
}

body:not(.riders-mode) .occupation-search-box {
  grid-column: 2 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  justify-self: stretch;
  width: 100%;
}

body:not(.riders-mode) .occupation-search-box img {
  width: 14px;
  height: 14px;
  opacity: 0.58;
}

body:not(.riders-mode) .occupation-field input {
  max-width: none;
  width: 100%;
  min-height: 30px;
  text-align: left;
  font-size: 0.24rem;
  font-weight: 400;
}

body:not(.riders-mode) #occupationJobNote {
  display: block;
  grid-column: 2 / -1;
  justify-self: end;
  max-width: 100%;
  min-height: 0;
  color: #9f1239;
  font-size: 10px;
  line-height: 1.2;
  text-align: right;
  white-space: normal;
}

body:not(.riders-mode) #occupationGroup:disabled {
  grid-column: 3;
  grid-row: 1;
  max-width: none;
  opacity: 1;
  color: #0048ad;
  font-size: 0.91rem;
  font-weight: 600;
  cursor: default;
}

body:not(.riders-mode) .occupation-suggestions {
  position: fixed;
  z-index: 1000;
  width: min(720px, calc(100vw - 24px));
  max-height: 30vh;
  overflow-y: auto;
  border: 1px solid #c7d6ea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
}

body:not(.riders-mode) .occupation-option {
  width: 100%;
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid #edf2f7;
  border-radius: 0;
  padding: 8px 10px;
  color: #123263;
  background: #fff;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
}

body:not(.riders-mode) .occupation-option:hover,
body:not(.riders-mode) .occupation-option:focus-visible {
  background: #edf6ff;
}

body:not(.riders-mode) .occupation-option span {
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  line-height: 1.3;
}

body:not(.riders-mode) .occupation-option strong {
  color: #0057b8;
  font-size: 11px;
  white-space: nowrap;
}

body:not(.riders-mode) .occupation-empty {
  padding: 10px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 640px) {
  body:not(.riders-mode) .fields {
    overflow: visible !important;
  }

  body:not(.riders-mode) .occupation-field {
    z-index: 40;
  }

  body:not(.riders-mode) .occupation-suggestions {
    position: absolute;
    left: 8px;
    right: 8px;
    top: calc(100% - 2px);
    width: auto;
    max-height: 30vh;
  }
}

/* R26 controls polish */
body.riders-mode .compact-field {
  grid-template-columns: minmax(0, 1fr) 112px;
  min-height: 46px;
  margin-top: 10px;
  padding: 0 10px;
  border-color: #dbe5f6;
  border-radius: 8px;
  background: #fff;
}

body.riders-mode .compact-field span {
  min-width: 0;
  color: var(--bv-blue-dark);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

body.riders-mode .compact-field select {
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid #dbe5f6;
  border-radius: 7px;
  color: var(--bv-blue-dark);
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

body.riders-mode .checkbox-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

body.riders-mode .checkbox-chip {
  position: relative;
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body.riders-mode .checkbox-chip input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

body.riders-mode .checkbox-chip span {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid #dbe5f6;
  border-radius: 8px;
  color: var(--bv-blue-dark);
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}

body.riders-mode .checkbox-chip input:not(:checked) + span {
  color: var(--bv-blue-dark) !important;
  background: #fff !important;
}

body.riders-mode .checkbox-chip input:checked + span {
  border-color: var(--bv-blue-strong) !important;
  color: #fff !important;
  background: var(--bv-blue-strong) !important;
  box-shadow: 0 4px 10px rgba(5, 92, 255, 0.16);
}

body.riders-mode .r26-config {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

body.riders-mode .r26-plan-panel,
body.riders-mode .r26-benefit-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dbe5f6;
  border-radius: 8px;
  background: #fff;
}

body.riders-mode .r26-control-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body.riders-mode .r26-control-title strong {
  color: var(--bv-blue-dark);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

body.riders-mode .r26-control-title span {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--bv-blue-strong);
  background: #eef6ff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

body.riders-mode .r26-plan-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

body.riders-mode .r26-plan-button,
body.riders-mode .r26-benefit-card {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #d5e0ee;
  border-radius: 8px;
  color: var(--bv-blue-dark);
  background: #f8fbff;
  box-shadow: none;
  cursor: pointer;
  font-family: inherit;
}

body.riders-mode .r26-plan-button {
  min-height: 36px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}

body.riders-mode .r26-plan-button.active {
  border-color: var(--bv-blue-strong) !important;
  color: var(--bv-blue-strong) !important;
  background: #eef6ff !important;
  box-shadow: inset 0 0 0 1px rgba(5, 92, 255, 0.12);
}

body.riders-mode .r26-benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body.riders-mode .r26-benefit-card {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 9px 10px;
  text-align: left;
}

body.riders-mode .r26-benefit-card strong,
body.riders-mode .r26-benefit-card small {
  display: block;
  min-width: 0;
  line-height: 1.2;
}

body.riders-mode .r26-benefit-card strong {
  color: inherit;
  font-size: 12px;
  font-weight: 800;
}

body.riders-mode .r26-benefit-card small {
  margin-top: 2px;
  color: #60748c;
  font-size: 10px;
  font-weight: 600;
}

body.riders-mode .r26-benefit-check {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid #b8c9dc;
  border-radius: 50%;
  background: #fff;
}

body.riders-mode .r26-benefit-check::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
}

body.riders-mode .r26-benefit-card.active {
  border-color: var(--bv-blue-strong) !important;
  color: var(--bv-blue-strong) !important;
  background: #eef6ff !important;
  box-shadow: inset 0 0 0 1px rgba(5, 92, 255, 0.1);
}

body.riders-mode .r26-benefit-card:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  background: #f3f6fa;
}

body.riders-mode .r26-benefit-card.active strong,
body.riders-mode .r26-benefit-card.active small {
  color: var(--bv-blue-strong) !important;
}

body.riders-mode .r26-benefit-card.active .r26-benefit-check {
  border-color: var(--bv-blue-strong);
  background: #fff;
}

body.riders-mode .r26-benefit-card.active .r26-benefit-check::before {
  content: "✓";
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  color: var(--bv-blue-strong);
  background: transparent;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  transform: translate(3px, -4px);
}

@media (max-width: 420px) {
  body.riders-mode .r26-plan-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.riders-mode .r26-benefit-grid {
    grid-template-columns: 1fr;
  }
}

html {
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  max-width: 100%;
  overflow-x: hidden;
}

input,
select,
textarea {
  font-size: 16px !important;
}

@media (hover: none) and (pointer: coarse) {
  input,
  select,
  textarea,
  button {
    touch-action: manipulation;
  }
}

body.riders-mode .switch-row {
  display: grid;
  grid-template-rows: 28px auto;
  justify-items: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

body.riders-mode .switch-row input {
  position: relative;
  display: block;
  width: 46px !important;
  max-width: 46px !important;
  height: 26px;
  min-height: 26px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  appearance: none;
  -webkit-appearance: none;
  background: #d7e0ef;
  box-shadow: inset 0 0 0 1px rgba(96, 116, 140, 0.12);
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

body.riders-mode .switch-row input::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(15, 35, 65, 0.18);
  transition: transform 0.18s ease;
}

body.riders-mode .switch-row input:checked {
  background: var(--bv-blue-strong);
  box-shadow: inset 0 0 0 1px rgba(5, 92, 255, 0.18);
}

body.riders-mode .switch-row input:checked::after {
  transform: translateX(20px);
}

body.riders-mode .toggle {
  position: relative;
  display: inline-grid;
  width: 46px;
  height: 26px;
  align-items: center;
  cursor: pointer;
}

body.riders-mode .toggle input {
  position: absolute;
  inset: 0;
  width: 46px !important;
  height: 26px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

body.riders-mode .toggle span {
  position: relative;
  display: block;
  width: 46px !important;
  height: 26px !important;
  border-radius: 999px;
  background: #d7e0ef;
  box-shadow: inset 0 0 0 1px rgba(96, 116, 140, 0.12);
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

body.riders-mode .toggle span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(15, 35, 65, 0.18);
  transition: transform 0.18s ease;
}

body.riders-mode .toggle input:checked + span {
  background: var(--bv-blue-strong) !important;
  box-shadow: inset 0 0 0 1px rgba(5, 92, 255, 0.18);
}

body.riders-mode .toggle input:checked + span::after {
  transform: translateX(20px);
}

body.terms-open {
  overflow: hidden;
}

body.riders-mode .rider-detail-head {
  grid-template-columns: 38px minmax(0, 1fr) 30px;
}

body.riders-mode .info-button.terms-button {
  display: inline-grid;
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  place-items: center;
  padding: 0;
  border: 1px solid #bfd2ff;
  border-radius: 8px;
  background: #f5f8ff;
  color: #003b7a;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(5, 92, 255, 0.08);
}

body.riders-mode .info-button.terms-button:hover,
body.riders-mode .info-button.terms-button:focus-visible {
  border-color: #003b7a;
  background: #eaf1ff;
  outline: none;
}

body.riders-mode .terms-button-icon {
  position: relative;
  display: block !important;
  width: 17px;
  height: 18px;
  border: 2px solid currentColor;
  border-left-width: 4px;
  border-radius: 3px 5px 5px 3px;
  background: transparent;
  box-sizing: border-box;
}

body.riders-mode .terms-button-icon::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  right: 3px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

body.riders-mode .terms-button-icon::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 4px;
  right: 5px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

body.riders-mode .terms-info-icon {
  display: grid !important;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  color: #003b7a;
  background: transparent;
  font-size: 13px;
  font-weight: 900;
  font-style: normal;
  line-height: 1;
}

/* Custom SVG icon set */
.field-row::before,
body:not(.riders-mode) .field-row::before {
  content: "" !important;
  position: static !important;
  display: block !important;
  width: 22px !important;
  height: 22px !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  clip-path: none !important;
  color: inherit !important;
  background-color: transparent !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  -webkit-mask: none !important;
  mask: none !important;
}

.icon-user::before,
body:not(.riders-mode) .icon-user::before {
  background-image: url("icons/user.svg") !important;
}

.icon-calendar::before,
body:not(.riders-mode) .icon-calendar::before {
  background-image: url("icons/calendar.svg") !important;
}

.icon-info::before,
body:not(.riders-mode) .icon-info::before {
  background-image: url("icons/info.svg") !important;
}

.icon-briefcase::before,
body:not(.riders-mode) .icon-briefcase::before {
  background-image: url("icons/briefcase.svg") !important;
}

.icon-shield::before,
body:not(.riders-mode) .icon-shield::before {
  background-image: url("icons/shield.svg") !important;
}

.icon-money::before,
body:not(.riders-mode) .icon-money::before {
  background-image: url("icons/money.svg") !important;
}

.icon-plus::before,
body:not(.riders-mode) .icon-plus::before {
  background-image: url("icons/plus.svg") !important;
}

.icon-percent::before,
body:not(.riders-mode) .icon-percent::before {
  background-image: url("icons/percentage.svg") !important;
}

.section-badge::before,
.customer-badge::before,
.illustration-badge::before,
.result-badge::before,
body:not(.riders-mode) .section-badge::before,
body:not(.riders-mode) .customer-badge::before,
body:not(.riders-mode) .illustration-badge::before,
body:not(.riders-mode) .result-badge::before {
  content: "" !important;
  position: absolute !important;
  inset: 10px !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background-color: transparent !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  filter: brightness(0) invert(1) !important;
  -webkit-mask: none !important;
  mask: none !important;
}

.section-badge::after,
.customer-badge::after,
.illustration-badge::after,
.result-badge::after,
body:not(.riders-mode) .section-badge::after,
body:not(.riders-mode) .customer-badge::after,
body:not(.riders-mode) .illustration-badge::after,
body:not(.riders-mode) .result-badge::after {
  display: none !important;
}

.customer-badge::before,
body:not(.riders-mode) .customer-badge::before {
  background-image: url("icons/customer.svg") !important;
}

.illustration-badge::before,
body:not(.riders-mode) .illustration-badge::before {
  background-image: url("icons/illustration.svg") !important;
}

.result-badge::before,
body:not(.riders-mode) .result-badge::before {
  background-image: url("icons/result.svg") !important;
}

body:not(.riders-mode) .notice-icon::before,
body.riders-mode .rider-detail-head .rider-icon::before,
body.riders-mode .selected-rider .rider-icon.small::before,
body.riders-mode .terms-info-icon,
body.riders-mode .terms-button-icon {
  content: "" !important;
  display: block !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: inherit !important;
  background-color: transparent !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  -webkit-mask: none !important;
  mask: none !important;
}

body:not(.riders-mode) .notice-icon::before,
body.riders-mode .rider-detail-head .rider-icon::before,
body.riders-mode .selected-rider .rider-icon.small::before {
  width: 24px !important;
  height: 24px !important;
  background-image: url("icons/shield.svg") !important;
}

body.riders-mode .terms-info-icon {
  width: 18px !important;
  height: 18px !important;
  font-size: 0 !important;
  background-image: url("icons/info.svg") !important;
}

body.riders-mode .terms-button-icon {
  width: 18px !important;
  height: 18px !important;
  background-image: url("icons/illustration.svg") !important;
}

body.riders-mode .terms-button-icon::before,
body.riders-mode .terms-button-icon::after {
  display: none !important;
}

body.riders-mode .rider-detail-head {
  align-items: center !important;
}

body.riders-mode .rider-detail-head .rider-icon,
body.riders-mode .info-button.terms-button {
  display: grid !important;
  place-items: center !important;
  align-self: center !important;
  padding: 0 !important;
  line-height: 1 !important;
}

body.riders-mode .rider-detail-head .rider-icon::before,
body.riders-mode .terms-info-icon {
  margin: auto !important;
  background-position: 50% 50% !important;
}

/* Shared banner and navigation for SPC/SPBK */
.banner-slot,
body:not(.riders-mode) .banner-slot,
body.riders-mode .banner-slot {
  display: block !important;
  position: relative;
  width: 100%;
  min-height: 96px;
  margin: 0 0 10px !important;
  overflow: hidden;
  border: 1px dashed #bfd2ff;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.banner-slot img,
body:not(.riders-mode) .banner-slot img,
body.riders-mode .banner-slot img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 96px;
  object-fit: cover;
}

body:not(.riders-mode) > .app-shell > .tabs,
body.riders-mode > .app-shell > .tabs,
.tabs {
  position: static !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin: 0 0 11px !important;
  padding: 4px !important;
  border: 1px solid #d6e4ff;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 5px rgba(0, 63, 143, 0.08);
}

.tab-button,
body:not(.riders-mode) .tab-button,
body.riders-mode .tab-button {
  width: 100% !important;
  min-height: 38px !important;
  padding: 8px 10px !important;
  border: 0 !important;
  border-radius: 6px !important;
  color: var(--bv-blue-strong);
  background: transparent;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
  box-shadow: none !important;
}

.tab-button.active,
body:not(.riders-mode) .tab-button.active,
body.riders-mode .tab-button.active {
  color: #fff !important;
  background: var(--bv-blue-strong) !important;
}

body .tab-button[data-tab] {
  color: var(--bv-blue-strong) !important;
  background: transparent !important;
}

body:not(.riders-mode) .tab-button[data-tab="main"],
body.main-mode .tab-button[data-tab="main"] {
  color: #fff !important;
  background: var(--bv-blue-strong) !important;
}

body.riders-mode .tab-button[data-tab="main"] {
  color: var(--bv-blue-strong) !important;
  background: transparent !important;
}

body.riders-mode .tab-button[data-tab="riders"] {
  color: #fff !important;
  background: var(--bv-blue-strong) !important;
}

body:not(.riders-mode) .main-banner,
body.riders-mode .rider-hero {
  display: none !important;
}

body.riders-mode .rider-customer-card {
  margin-top: 0 !important;
}

/* Final tab state guard */
main.app-shell > nav.tabs {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  column-gap: 8px !important;
  align-items: stretch !important;
}

main.app-shell > nav.tabs > .tab-button {
  display: block !important;
  min-width: 0 !important;
  width: 100% !important;
  justify-self: stretch !important;
  max-width: none !important;
  grid-row: 1 !important;
  color: var(--bv-blue-strong) !important;
  background: #fff !important;
  white-space: nowrap !important;
  text-align: center !important;
}

main.app-shell > nav.tabs > .tab-main {
  grid-column: 1 !important;
}

main.app-shell > nav.tabs > .tab-riders {
  grid-column: 2 !important;
}

body:not(.riders-mode) main.app-shell > nav.tabs > .tab-main,
body.main-mode main.app-shell > nav.tabs > .tab-main {
  color: #fff !important;
  background: var(--bv-blue-strong) !important;
}

body:not(.riders-mode) main.app-shell > nav.tabs > .tab-riders,
body.main-mode main.app-shell > nav.tabs > .tab-riders {
  color: var(--bv-blue-strong) !important;
  background: #fff !important;
}

body.riders-mode main.app-shell > nav.tabs > .tab-main {
  color: var(--bv-blue-strong) !important;
  background: #fff !important;
}

body.riders-mode main.app-shell > nav.tabs > .tab-riders {
  color: #fff !important;
  background: var(--bv-blue-strong) !important;
}

/* SPBK edge-aligned layout */
body.riders-mode .app-shell {
  padding-left: 18px !important;
  padding-right: 18px !important;
}

body.riders-mode .banner-slot,
body.riders-mode > .app-shell > .tabs,
body.riders-mode .rider-customer-card,
body.riders-mode .rider-card,
body.riders-mode .rider-detail-card,
body.riders-mode .rider-totals,
body.riders-mode .rider-actions,
body.riders-mode .save-message {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.riders-mode .rider-card,
body.riders-mode .rider-detail-card {
  padding-left: 10px !important;
  padding-right: 10px !important;
}

body.riders-mode .rider-customer-card {
  padding-left: 14px !important;
  padding-right: 14px !important;
}

body.riders-mode .rider-product-buttons,
body.riders-mode .quick-amounts {
  gap: 7px !important;
}

@media (max-width: 430px) {
  body.riders-mode .app-shell {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  body.riders-mode .rider-card,
  body.riders-mode .rider-detail-card {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
}
.terms-modal[hidden] {
  display: none;
}

.terms-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
}

.terms-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 11, 52, 0.56);
  backdrop-filter: blur(4px);
}

.terms-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: min(100%, 980px);
  height: min(92vh, 820px);
  overflow: hidden;
  border: 1px solid #cfe0ff;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(1, 20, 68, 0.28);
}

.terms-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: start;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid #e1e9f8;
  background: linear-gradient(180deg, #ffffff, #f6f9ff);
}

.terms-code {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border-radius: 6px;
  color: #fff;
  background: #003b7a;
  font-size: 13px;
  font-weight: 800;
}

.terms-header h2 {
  margin: 8px 0 2px;
  color: #070b34;
  font-size: 21px;
  line-height: 1.2;
}

.terms-header p {
  margin: 0;
  color: #40537f;
  font-size: 14px;
  line-height: 1.35;
}

.terms-close {
  display: grid;
  width: 42px;
  height: 42px;
  min-height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid #d7e2f4;
  border-radius: 50%;
  background: #fff;
  color: #172033;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.terms-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #e1e9f8;
  background: #fff;
}

.terms-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid #003b7a;
  border-radius: 8px;
  background: #003b7a;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.terms-link.secondary {
  background: #fff;
  color: #003b7a;
}

.terms-reader {
  position: relative;
  min-height: 0;
  background: #eef3fb;
}

.terms-reader iframe {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.terms-fallback {
  position: absolute;
  inset: auto 18px 18px 18px;
  display: none;
  gap: 4px;
  padding: 12px;
  border: 1px solid #d7e2f4;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: #40537f;
  font-size: 13px;
  pointer-events: none;
}

.terms-fallback strong {
  color: #070b34;
}

@media (max-width: 640px) {
  .terms-modal {
    padding: 0;
    place-items: stretch;
  }

  .terms-dialog {
    width: 100%;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
    border-inline: 0;
  }

  .terms-header {
    grid-template-columns: minmax(0, 1fr) 38px;
    padding: 12px;
  }

  .terms-header h2 {
    font-size: 18px;
  }

  .terms-close {
    width: 38px;
    height: 38px;
    min-height: 38px;
  }

  .terms-toolbar {
    padding: 10px 12px;
  }

  .terms-link {
    flex: 1;
  }
}

body:not(.riders-mode) .field-row > span,
body:not(.riders-mode) .single-line-field > span {
  font-weight: 700 !important;
}

body:not(.riders-mode) .field-row > .required-label {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  white-space: nowrap;
  font-size: 13px;
}

body.riders-mode .switch-row input:checked,
body.riders-mode .toggle input:checked + span {
  background: #dcecff !important;
  box-shadow: inset 0 0 0 1px rgba(0, 59, 122, 0.28) !important;
}

body.riders-mode .switch-row input:checked::after,
body.riders-mode .toggle input:checked + span::after {
  background: #003b7a !important;
  transform: translateX(20px);
}

body:not(.riders-mode) .field-row > .required-label::after {
  content: "*";
  flex: 0 0 auto;
  display: inline-block;
  margin-left: 0;
  color: #d92d20;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  vertical-align: -2px;
}

/* Main form label consistency */
body:not(.riders-mode) .field-row > span,
body:not(.riders-mode) .single-line-field > span,
body:not(.riders-mode) .field-row > .required-label {
  min-width: 0 !important;
  color: var(--bv-blue-dark) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

/* Unified page gutters for SPC and SPBK */
body:not(.riders-mode) .app-shell,
body.riders-mode .app-shell {
  width: min(100%, 430px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-top: 0 !important;
  padding-left: 13px !important;
  padding-right: 13px !important;
}

/* Keep the main sum assured range visible under the value field */
body:not(.riders-mode) .death-sum-field {
  grid-template-columns: 35px minmax(118px, 1fr) minmax(98px, max-content) !important;
  grid-template-rows: auto auto !important;
  column-gap: 9px !important;
  row-gap: 2px !important;
  min-height: 58px !important;
  align-items: center !important;
}

body:not(.riders-mode) .death-sum-field #deathSumAssuredRange {
  grid-column: 2 / -1 !important;
  grid-row: 2 !important;
  justify-self: start !important;
  align-self: start !important;
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin-top: 0 !important;
  color: #376092 !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  text-align: left !important;
  white-space: nowrap !important;
}

body:not(.riders-mode) .death-sum-field #deathSumAssuredRange.is-error {
  color: #c2410c !important;
}

body:not(.riders-mode) .banner-slot,
body.riders-mode .banner-slot,
body:not(.riders-mode) > .app-shell > .tabs,
body.riders-mode > .app-shell > .tabs,
body.riders-mode .rider-customer-card,
body.riders-mode .rider-card,
body.riders-mode .rider-detail-card,
body.riders-mode .rider-totals,
body.riders-mode .save-message {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body:not(.riders-mode) .banner-slot,
body.riders-mode .banner-slot {
  width: calc(100% + 26px) !important;
  max-width: calc(100% + 26px) !important;
  margin-left: -13px !important;
  margin-right: -13px !important;
}

body:not(.riders-mode) .banner-slot img,
body.riders-mode .banner-slot img {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  object-fit: contain !important;
}

.spbk-benefit-popup[hidden] {
  display: none;
}

.spbk-benefit-popup {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 18px;
}

.spbk-benefit-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 11, 52, 0.58);
  backdrop-filter: blur(4px);
}

.spbk-benefit-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(100%, 840px);
  max-height: min(88dvh, 760px);
  overflow: hidden;
  border: 1px solid #cfe0ff;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(1, 20, 68, 0.28);
}

.spbk-benefit-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 12px;
  align-items: start;
  padding: 16px;
  border-bottom: 1px solid #e1e9f8;
  background: linear-gradient(180deg, #ffffff, #f6f9ff);
}

.spbk-benefit-header h2 {
  margin: 0 0 5px;
  color: #070b34;
  font-size: 21px;
  line-height: 1.2;
}

.spbk-benefit-header p {
  margin: 0;
  color: #40537f;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.spbk-benefit-close {
  display: grid;
  width: 42px;
  height: 42px;
  min-height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid #d7e2f4;
  border-radius: 50%;
  background: #fff;
  color: #172033;
  font-size: 28px;
  line-height: 1;
}

.spbk-benefit-close-icon {
  display: block;
  width: 18px;
  height: 18px;
  background: url("icons/x.svg") center / contain no-repeat;
}

.spbk-benefit-body {
  min-height: 0;
  overflow: auto;
  padding: 14px 16px;
  background: #fff;
}

.spbk-benefit-table {
  display: grid;
  gap: 0;
  border: 1px solid #dbe5f6;
  border-radius: 10px;
  overflow: hidden;
}

.spbk-benefit-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(170px, 1fr) minmax(170px, 1.08fr);
  border-top: 1px solid #e8eef8;
}

.spbk-benefit-row:first-child {
  border-top: 0;
}

.spbk-benefit-row > div {
  min-width: 0;
  padding: 11px 12px;
  color: #172033;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.spbk-benefit-row > div + div {
  border-left: 1px solid #e8eef8;
}

.spbk-benefit-table-head {
  background: #eef6ff;
}

.spbk-benefit-table-head > div {
  color: #003b7a;
  font-weight: 900;
}

.spbk-benefit-row:not(.spbk-benefit-table-head) > div:nth-child(2) {
  color: #b42318;
  font-weight: 900;
}

.spbk-benefit-row.spbk-benefit-group-inpatient {
  background: #ffffff;
}

.spbk-benefit-row.spbk-benefit-group-outpatient {
  background: #f1f8ff;
}

.spbk-benefit-row.spbk-benefit-group-dental {
  background: #f6fbf3;
}

.spbk-benefit-row.spbk-benefit-group-maternity {
  background: #fff6f8;
}

.spbk-benefit-row.spbk-benefit-group-outpatient > div:first-child,
.spbk-benefit-row.spbk-benefit-group-dental > div:first-child,
.spbk-benefit-row.spbk-benefit-group-maternity > div:first-child {
  border-left: 4px solid transparent;
}

.spbk-benefit-row.spbk-benefit-group-outpatient > div:first-child {
  border-left-color: #2f80ed;
}

.spbk-benefit-row.spbk-benefit-group-dental > div:first-child {
  border-left-color: #3f9f52;
}

.spbk-benefit-row.spbk-benefit-group-maternity > div:first-child {
  border-left-color: #d94f85;
}

.spbk-benefit-note {
  margin: 0;
  padding: 12px 16px;
  border-top: 1px solid #e1e9f8;
  background: #fff8ed;
  color: #7a4a00;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.spbk-benefit-empty {
  padding: 18px;
  border: 1px dashed #bfd2ff;
  border-radius: 10px;
  background: #f7fbff;
  color: #40537f;
  font-weight: 800;
  line-height: 1.45;
}

body.riders-mode .benefit-button {
  margin-left: auto;
}

body.riders-mode .benefit-button-icon {
  display: block;
  width: 19px;
  height: 19px;
  font-size: 0;
  line-height: 1;
  background: url("icons/calculator.svg") center / contain no-repeat;
}

body.riders-mode .rider-detail-head .benefit-button + .terms-button {
  margin-left: 0;
}

body.riders-mode .rider-detail-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  column-gap: 8px !important;
  row-gap: 0 !important;
  align-items: center !important;
}

body.riders-mode .rider-detail-head > div:not(.rider-detail-actions) {
  min-width: 0 !important;
}

body.riders-mode .rider-detail-head h3 {
  min-width: 0 !important;
  overflow-wrap: anywhere !important;
}

body.riders-mode .rider-detail-actions {
  display: inline-flex !important;
  grid-column: 2 !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  margin-left: 4px !important;
}

body.riders-mode .rider-detail-actions .info-button {
  display: grid !important;
  flex: 0 0 32px !important;
  width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  place-items: center !important;
  padding: 0 !important;
  border: 1px solid #b7cfff !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #003b7a !important;
  opacity: 1 !important;
  line-height: 1 !important;
}

body.riders-mode .benefit-button {
  margin-left: 0 !important;
}

body.riders-mode .benefit-button-icon {
  position: relative !important;
  display: block !important;
  width: 19px !important;
  height: 19px !important;
  margin: 0 !important;
  color: #003b7a !important;
  background-color: transparent !important;
  background-image: url("icons/calculator.svg") !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  font-size: 0 !important;
  line-height: 1 !important;
}

body.riders-mode .benefit-button-icon::before,
body.riders-mode .benefit-button-icon::after {
  display: none !important;
  content: none !important;
}

body.riders-mode .rider-detail-actions .terms-info-icon {
  margin: 0 !important;
  width: 19px !important;
  height: 19px !important;
  font-size: 0 !important;
  background-image: url("icons/book.svg") !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
}

body.spbk-benefit-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .spbk-benefit-popup {
    padding: 0;
    place-items: stretch;
  }

  .spbk-benefit-dialog {
    width: 100%;
    max-height: 100dvh;
    border-radius: 0;
    border-inline: 0;
  }

  .spbk-benefit-header {
    grid-template-columns: minmax(0, 1fr) 38px;
    padding: 12px;
  }

  .spbk-benefit-header h2 {
    font-size: 18px;
  }

  .spbk-benefit-close {
    width: 38px;
    height: 38px;
    min-height: 38px;
  }

  .spbk-benefit-body {
    padding: 12px;
  }

  .spbk-benefit-table {
    gap: 10px;
    border: 0;
    border-radius: 0;
    overflow: visible;
  }

  .spbk-benefit-table-head {
    display: none !important;
  }

  .spbk-benefit-row {
    display: grid;
    grid-template-columns: 1fr;
    border: 1px solid #dbe5f6;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
  }

  .spbk-benefit-row.spbk-benefit-table-head {
    display: none !important;
  }

  .spbk-benefit-row > div {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 8px;
    padding: 9px 10px;
    font-size: 12px;
  }

  .spbk-benefit-row > div + div {
    border-left: 0;
    border-top: 1px solid #edf2f8;
  }

  .spbk-benefit-row > div::before {
    color: #40537f;
    font-weight: 900;
  }

  .spbk-benefit-row > div:nth-child(1)::before {
    content: "Quyền lợi";
  }

  .spbk-benefit-row > div:nth-child(2)::before {
    content: "Mức chi trả";
  }

  .spbk-benefit-row > div:nth-child(3)::before {
    content: "Ghi chú";
  }

  .spbk-benefit-note {
    padding: 10px 12px;
    font-size: 11px;
  }
}

@media (max-width: 390px) {
  body:not(.riders-mode) .app-shell,
  body.riders-mode .app-shell {
    padding-left: 13px !important;
    padding-right: 13px !important;
  }
}

/* Compact SPBK customer summary */
body.riders-mode .rider-customer-card {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr) !important;
  min-height: 0 !important;
  padding: 10px 14px !important;
}

body.riders-mode .rider-customer-left,
body.riders-mode .rider-customer-money {
  gap: 4px !important;
  align-content: center !important;
}

body.riders-mode .rider-customer-money {
  padding-left: 12px !important;
}

body.riders-mode .rider-customer-card > .rider-customer-left > strong {
  font-size: 13px !important;
  line-height: 1.15 !important;
}

body.riders-mode .rider-customer-card span,
body.riders-mode .rider-customer-money span,
body.riders-mode .rider-customer-money strong {
  min-height: 0 !important;
  padding: 0 !important;
  font-size: 11px !important;
  line-height: 1.15 !important;
}

body.riders-mode .rider-customer-money span {
  display: grid !important;
  grid-template-columns: max-content minmax(0, 1fr) !important;
  gap: 8px !important;
  align-items: baseline !important;
  white-space: nowrap !important;
}

body.riders-mode .rider-customer-money strong {
  justify-self: end !important;
  text-align: right !important;
  white-space: nowrap !important;
}

body.riders-mode #dailySavingsAmount {
  display: block !important;
  margin-top: 4px !important;
  color: #40537f !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
}

body.riders-mode .rider-plan-summary {
  display: grid !important;
  grid-template-columns: minmax(0, 0.68fr) minmax(0, 1.32fr) !important;
  margin: 4px 0 8px !important;
  padding: 0 !important;
  border: 1.5px solid #8fb7ff !important;
  border-radius: 10px !important;
  background: linear-gradient(180deg, #f7fbff 0%, #edf6ff 100%) !important;
  box-shadow: 0 10px 22px rgba(0, 59, 122, 0.1) !important;
  overflow: hidden !important;
}

body.riders-mode .rider-plan-summary > div {
  min-height: 72px !important;
  padding: 10px 13px !important;
}

body.riders-mode .rider-plan-summary span {
  color: #10266d !important;
  font-size: 11px !important;
  line-height: 1.25 !important;
}

body.riders-mode .rider-plan-summary > div > span {
  font-weight: 700 !important;
}

body.riders-mode .rider-plan-summary > div > strong {
  color: #003b7a !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
}

body.riders-mode .plan-summary-title {
  display: block !important;
  margin: 0 !important;
  color: #070b34 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  max-width: 180px !important;
}

body.riders-mode .plan-product-heading {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin: 0 2px 8px !important;
}

body.riders-mode .plan-product-heading #riderSelectedCount {
  flex: 0 0 auto !important;
  color: #10266d !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
}

body.riders-mode .rider-plan-summary > div:last-child {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-content: center !important;
  align-items: baseline !important;
  column-gap: 6px !important;
  row-gap: 5px !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
  background: #ffffff !important;
}

body.riders-mode .rider-plan-summary > div:last-child > span {
  min-width: 0 !important;
  font-size: 11px !important;
  white-space: nowrap !important;
}

body.riders-mode .rider-plan-summary > div:last-child > strong {
  font-size: 13px !important;
  white-space: nowrap !important;
}

body.riders-mode .rider-plan-summary #dailySavingsAmount {
  display: grid !important;
  grid-column: 1 / -1 !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: baseline !important;
  gap: 6px !important;
  margin-top: 0 !important;
  color: #003b7a !important;
  font-size: 10px !important;
  line-height: 1.1 !important;
}

body.riders-mode .rider-plan-summary #dailySavingsAmount span {
  color: #5b6f9b !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

body.riders-mode .rider-plan-summary #dailySavingsAmount strong {
  color: #f4b400 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1.12 !important;
  white-space: nowrap !important;
}

body.riders-mode .total-plan-label,
body.riders-mode .daily-saving-label {
  display: inline-grid !important;
  grid-template-columns: 15px max-content !important;
  align-items: center !important;
  gap: 5px !important;
}

body.riders-mode .total-plan-label::before,
body.riders-mode .daily-saving-label::before {
  content: "" !important;
  display: block !important;
  width: 15px !important;
  height: 15px !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
}

body.riders-mode .total-plan-label::before {
  background-image: url("icons/sum.svg") !important;
}

body.riders-mode .daily-saving-label::before {
  background-image: url("icons/pig.svg") !important;
}

@media (max-width: 390px) {
  body.riders-mode .rider-plan-summary {
    grid-template-columns: 1fr !important;
  }

  body.riders-mode .rider-plan-summary > div + div {
    border-left: 0 !important;
    border-top: 1px solid #c9d7f6 !important;
  }
}

/* Gender segmented control */
body:not(.riders-mode) .gender-native-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body:not(.riders-mode) .gender-buttons {
  justify-self: end;
  display: grid;
  grid-template-columns: repeat(2, minmax(48px, 1fr));
  gap: 6px;
  width: min(130px, 100%);
}

body:not(.riders-mode) .gender-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 32px !important;
  padding: 0 8px !important;
  border: 1px solid #b7cfff !important;
  border-radius: 8px !important;
  color: var(--bv-blue-strong) !important;
  background: #fff !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  transform: translateY(0) scale(1);
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.12s ease, box-shadow 0.16s ease;
}

body:not(.riders-mode) .gender-button.active {
  border-color: var(--bv-blue-strong) !important;
  color: #fff !important;
  background: var(--bv-blue-strong) !important;
  box-shadow: 0 3px 9px rgba(0, 75, 147, 0.22) !important;
  transform: translateY(-1px) scale(1.02);
}

body:not(.riders-mode) .gender-button.active span,
body:not(.riders-mode) .gender-button.active .gender-icon {
  color: #fff !important;
}

body:not(.riders-mode) .gender-button:active {
  transform: translateY(0) scale(0.96);
}

body:not(.riders-mode) .gender-icon {
  display: inline-grid !important;
  width: 1em !important;
  height: 1em !important;
  place-items: center !important;
  color: inherit !important;
  font-family: "Segoe UI Symbol", "Apple Symbols", "Arial Unicode MS", sans-serif !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  transform: translateY(-0.03em) !important;
}

body:not(.riders-mode) .gender-button > span:last-child {
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1 !important;
}

/* Four-column surrender value comparison */
body:not(.riders-mode) .results table {
  min-width: 0 !important;
}

body:not(.riders-mode) .results thead th:first-child,
body:not(.riders-mode) .results tbody td:first-child {
  width: 78px !important;
}

body:not(.riders-mode) .results th:nth-child(2),
body:not(.riders-mode) .results td:nth-child(2) {
  width: 25% !important;
}

body:not(.riders-mode) .results th:nth-child(3),
body:not(.riders-mode) .results td:nth-child(3),
body:not(.riders-mode) .results th:nth-child(4),
body:not(.riders-mode) .results td:nth-child(4) {
  width: calc((100% - 78px - 25%) / 2) !important;
}

body:not(.riders-mode) .results thead th:nth-child(3),
body:not(.riders-mode) .results thead th:nth-child(4),
body:not(.riders-mode) .results td:nth-child(3),
body:not(.riders-mode) .results td:nth-child(4) {
  color: #e17a00 !important;
}

body:not(.riders-mode) .results thead .year-age-col,
body:not(.riders-mode) .results tbody td:first-child {
  width: 78px !important;
}

body:not(.riders-mode) .results thead .premium-col,
body:not(.riders-mode) .results tbody td:nth-child(2) {
  width: 25% !important;
}

body:not(.riders-mode) .results thead .cash-parent {
  height: 28px !important;
  color: #e17a00 !important;
  background: #fff !important;
  border-bottom-color: #edf2f7 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

body:not(.riders-mode) .results thead .cash-rate-col {
  width: calc((100% - 78px - 25%) / 2) !important;
  height: 30px !important;
  color: #e17a00 !important;
  background: #fff !important;
  font-size: 11px !important;
}

body:not(.riders-mode) .results thead .cash-rate-row th:first-child {
  color: #e17a00 !important;
  background: #fff !important;
}

body:not(.riders-mode) .results .result-heading h2 {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 0 !important;
  white-space: nowrap !important;
}

body:not(.riders-mode) .results .result-heading h2 > span:nth-child(2) {
  min-width: 0 !important;
  font-size: 15px !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
}

body:not(.riders-mode) .results .result-unit {
  flex: 0 0 auto !important;
  margin-left: auto !important;
  color: #60748c !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

body:not(.riders-mode) .results .result-unit strong {
  color: #40537f !important;
  font-weight: 700 !important;
}

body.riders-mode .rider-range-note.is-error,
body.riders-mode .rider-stbh-error {
  color: #d92d20 !important;
}

body.riders-mode .rider-stbh-error {
  display: block;
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

body.riders-mode .rider-stbh-error[hidden] {
  display: none !important;
}

.summary-export-bar {
  display: grid;
  gap: 8px;
  justify-items: center;
  margin: 18px 0 4px;
}

.summary-export-bar[hidden] {
  display: none !important;
}

.summary-export-button {
  width: min(100%, 360px);
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(90deg, #f4c542, #e2ab23);
  color: #11233a;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(226, 171, 35, 0.24);
  cursor: pointer;
}

.summary-export-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
}

body.riders-mode .rider-summary-export-bar {
  width: min(100%, 640px);
  margin: 14px auto 24px;
}

/* Make main section title badges 50% smaller */
body:not(.riders-mode) .panel h2 .section-badge,
body:not(.riders-mode) .result-heading h2 .section-badge {
  flex: 0 0 24px !important;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  border-radius: 50% !important;
}

body:not(.riders-mode) .panel h2 .section-badge::before,
body:not(.riders-mode) .result-heading h2 .section-badge::before {
  inset: 6px !important;
}

body:not(.riders-mode) .panel h2,
body:not(.riders-mode) .result-heading h2 {
  gap: 6px !important;
  align-items: center !important;
}

.summary-export-status,
.summary-share-status {
  min-height: 18px;
  margin: 0;
  color: #d92d20;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

body.summary-preview-open {
  overflow: hidden;
}

.summary-preview-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow: auto;
  background: #edf4fb;
  padding: 16px;
  box-sizing: border-box;
}

.summary-preview-screen[hidden] {
  display: none !important;
}

.summary-preview-shell {
  width: min(100%, 520px);
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.summary-preview-header {
  display: block;
  color: #003b7a;
}

.summary-preview-header span {
  display: block;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.summary-preview-header h1 {
  margin: 2px 0 0;
  font-size: 19px;
  line-height: 1.2;
}

.summary-preview-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 12px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.summary-preview-carousel::-webkit-scrollbar {
  display: none;
}

.summary-preview-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1240 / 1754;
  overflow: hidden;
  border-radius: 8px;
  background: #d8e6f4;
  box-shadow: 0 18px 50px rgba(0, 59, 122, 0.18);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.summary-preview-stage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.addon-benefit-preview-pages {
  display: contents;
  gap: 12px;
}

.addon-benefit-preview-pages[hidden] {
  display: none !important;
}

.addon-benefit-preview-page {
  width: 100%;
  aspect-ratio: 1240 / 1754;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0, 59, 122, 0.18);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.addon-benefit-preview-page img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.summary-preview-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.88);
  color: #003b7a;
  font-weight: 800;
}

.summary-preview-loading[hidden] {
  display: none !important;
}

.summary-preview-actions {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  justify-content: center;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto;
  padding: 8px 0 env(safe-area-inset-bottom);
  background: linear-gradient(180deg, rgba(237, 244, 251, 0), #edf4fb 18%);
}

.addon-benefit-download-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.addon-benefit-download-links[hidden] {
  display: none;
}

.summary-action-button.addon-benefit-download {
  width: 100%;
  background: #fff4e8;
  color: #b54708;
  border-color: #fed7aa;
}

.summary-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #d8e2ee;
  border-radius: 8px;
  background: #fff;
  color: #003b7a;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.summary-action-button.primary {
  border-color: transparent;
  background: #003b7a;
  color: #fff;
}

.summary-action-button.secondary {
  color: #4b5d73;
}

.summary-action-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

@media (max-width: 430px) {
  .summary-preview-screen {
    padding: 10px;
  }

  .summary-preview-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
}

body:not(.riders-mode) .occupation-search-box #occupationJob {
  font-size: 10px !important;
  font-weight: 400 !important;
  line-height: 1.15 !important;
}

body:not(.riders-mode) .occupation-search-box #occupationJob::placeholder {
  font-size: 10px !important;
  font-weight: 400 !important;
}

body:not(.riders-mode) .occupation-field #occupationGroup {
  appearance: none !important;
  -webkit-appearance: none !important;
  padding-right: 0 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
}
