@keyframes buyCardDiscountFlash {
  0%,
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.06);
    filter: brightness(1.1);
  }
}

.app-message-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.5rem;
}

.info-modal {
  --app-message-action-start: #139bd3;
  --app-message-action-end: #30b5e3;
  --app-message-action-hover-start: #0f88ba;
  --app-message-action-hover-end: #1b9bd0;
  --app-message-action-shadow: rgba(19, 155, 211, 0.2);
  --app-message-focus-ring: rgba(19, 155, 211, 0.16);
  --app-message-secondary-border: rgba(19, 155, 211, 0.22);
  --app-message-secondary-hover-border: rgba(19, 155, 211, 0.38);
  --app-message-secondary-hover-text: #139bd3;
}

.info-modal[data-message-variant="success"] {
  --app-message-action-start: #78bc2f;
  --app-message-action-end: #98c829;
  --app-message-action-hover-start: #659f28;
  --app-message-action-hover-end: #87b522;
  --app-message-action-shadow: rgba(120, 188, 47, 0.2);
  --app-message-focus-ring: rgba(120, 188, 47, 0.16);
  --app-message-secondary-border: rgba(120, 188, 47, 0.22);
  --app-message-secondary-hover-border: rgba(120, 188, 47, 0.38);
  --app-message-secondary-hover-text: #5e912c;
}

.info-modal[data-message-variant="warning"] {
  --app-message-action-start: #f1bc19;
  --app-message-action-end: #e59f14;
  --app-message-action-hover-start: #dca30f;
  --app-message-action-hover-end: #cb8f10;
  --app-message-action-shadow: rgba(241, 188, 25, 0.24);
  --app-message-focus-ring: rgba(241, 188, 25, 0.18);
  --app-message-secondary-border: rgba(241, 188, 25, 0.24);
  --app-message-secondary-hover-border: rgba(241, 188, 25, 0.42);
  --app-message-secondary-hover-text: #b97d06;
}

.info-modal[data-message-variant="error"] {
  --app-message-action-start: #d64040;
  --app-message-action-end: #c82929;
  --app-message-action-hover-start: #bf3434;
  --app-message-action-hover-end: #ac2020;
  --app-message-action-shadow: rgba(200, 41, 41, 0.24);
  --app-message-focus-ring: rgba(200, 41, 41, 0.18);
  --app-message-secondary-border: rgba(200, 41, 41, 0.24);
  --app-message-secondary-hover-border: rgba(200, 41, 41, 0.42);
  --app-message-secondary-hover-text: #c82929;
}

.app-message-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  min-height: 52px;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.app-message-action:hover,
.app-message-action:focus {
  transform: translateY(-1px);
  text-decoration: none;
}

.app-message-action:focus-visible {
  outline: 0;
  box-shadow:
    0 0 0 4px var(--app-message-focus-ring),
    0 18px 38px var(--app-message-action-shadow);
}

.app-message-action--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--app-message-action-start) 0%, var(--app-message-action-end) 100%);
  box-shadow: 0 16px 34px var(--app-message-action-shadow);
}

.app-message-action--primary:hover,
.app-message-action--primary:focus {
  color: #fff;
  background: linear-gradient(135deg, var(--app-message-action-hover-start) 0%, var(--app-message-action-hover-end) 100%);
  box-shadow: 0 22px 42px var(--app-message-action-shadow);
}

.app-message-action--secondary {
  color: #1f2937;
  background: rgba(255, 255, 255, 0.94);
  border-color: var(--app-message-secondary-border);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.app-message-action--secondary:hover,
.app-message-action--secondary:focus {
  color: var(--app-message-secondary-hover-text);
  background: #fff;
  border-color: var(--app-message-secondary-hover-border);
  box-shadow: 0 16px 30px var(--app-message-action-shadow);
}

.app-message-action[style*="display: none"] {
  display: none !important;
}

@media (max-width: 576px) {
  .app-message-action {
    min-width: 0;
    width: 100%;
  }
}

/* Home landing should size to content and not leave a large empty gap before footer */
.home-con-sec--landing {
  min-height: auto;
}

/* Slight overlap so wave and footer look attached with no seam */
.home-con-sec .wave-bg {
  bottom: -25px;
}

.home-con-sec .motor-claims-form-hd > h1 {
  margin-bottom: 1rem;
}

.home-con-sec--landing .motor-claims-form-body {
  border: 1px solid #e7f0df;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdf8 100%);
}

.home-con-sec--landing .landing-card-grid {
  margin-top: 0.2rem;
}

.home-con-sec--landing .buy-instant-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(170px, 38%) 1fr;
  align-items: stretch;
  gap: 0;
  min-height: 182px;
  margin-bottom: 0;
  border: 1px solid rgba(142, 197, 58, 0.65);
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 0% 0%, rgba(143, 199, 58, 0.2) 0%, rgba(143, 199, 58, 0.08) 45%, transparent 75%),
    linear-gradient(125deg, rgba(18, 164, 224, 0.08) 0%, rgba(255, 255, 255, 0.98) 65%);
  box-shadow: 0 12px 28px rgba(20, 39, 56, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-con-sec--landing .buy-instant-card:hover {
  transform: translateY(-4px);
  border-color: rgba(18, 164, 224, 0.55);
  box-shadow: 0 16px 30px rgba(20, 39, 56, 0.14);
}

.home-con-sec--landing .buy-instant-card .buy-ins-img {
  width: 100%;
  max-width: none;
  padding: 0;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  overflow: hidden;
  border-radius: 20px 0 0 20px;
}

.home-con-sec--landing .buy-instant-card .buy-ins-img img {
  width: 100%;
  max-width: 210px;
  max-height: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: left bottom;
  transform-origin: left bottom;
  transition: transform 0.28s ease;
}

.home-con-sec--landing .buy-instant-card:hover .buy-ins-img img {
  transform: translateY(-2px) scale(1.04);
}

.home-con-sec--landing .buy-instant-card .buy-ins-con {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  padding: 1rem 1.2rem 0.95rem 0.7rem;
  gap: 0.7rem;
}

.home-con-sec--landing .buy-instant-card .buy-ins-con h4 {
  margin: 0;
  color: var(--bk-grade-900);
  font-size: clamp(1.35rem, 1.8vw, 2.15rem);
  font-weight: var(--font-weight-medium);
  line-height: 1.15;
}

.home-con-sec--landing .buy-instant-card .btn-buy {
  min-width: 176px;
  justify-content: space-between;
  border-color: rgba(142, 197, 58, 0.85);
  padding: 0.33rem 1rem 0.33rem 1.15rem;
  background: rgba(255, 255, 255, 0.88);
}

.home-con-sec--landing .buy-instant-card .btn-buy .nav-icon {
  margin-left: 0.8rem;
}

.home-con-sec--landing .buy-instant-card .btn-buy:hover {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(to right, #139bd3 0%, #98c829 100%);
  box-shadow: 0 8px 16px rgba(35, 95, 58, 0.2);
}

.home-con-sec--landing .buy-instant-card.buy-instant-discount {
  overflow: visible;
}

.home-con-sec--landing .buy-instant.buy-instant-discount {
  position: relative;
  overflow: visible;
}

.home-con-sec--landing .buy-instant.buy-instant-discount .buy-discount-badge {
  position: absolute;
  top: -14px;
  right: 14px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  border-radius: 999px;
  background: linear-gradient(to right, #12a4e0 0%, #8ec539 100%);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  animation: buyCardDiscountFlash 1.2s ease-in-out infinite;
}

.module-discount-card {
  position: relative;
  overflow: visible;
}

.module-discount-card .module-discount-badge {
  position: absolute;
  top: -12px;
  right: 12px;
  z-index: 11;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  border-radius: 999px;
  background: linear-gradient(to right, #12a4e0 0%, #8ec539 100%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  animation: buyCardDiscountFlash 1.2s ease-in-out infinite;
}

[dir="rtl"] .module-discount-card .module-discount-badge {
  right: auto;
  left: 12px;
}

.module-image-discount-wrap {
  position: relative;
  overflow: visible;
}

.module-image-discount-wrap .module-image-discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 12;
  width: clamp(84px, 8vw, 116px);
  aspect-ratio: 1 / 1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 10px 8px;
  color: #fff;
  font-size: clamp(13px, 1.05vw, 20px);
  font-weight: 500;
  line-height: 1;
  text-align: center;
  border-radius: 50%;
  background: linear-gradient(155deg, #8ec539 0%, #12a4e0 80%);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
  pointer-events: none;
  animation: buyCardDiscountFlash 1.2s ease-in-out infinite;
}

/* Hero image badges (travel/motor/domestic): center horizontally inside the right visual block */
.travel-ins-img.module-image-discount-wrap .module-image-discount-badge,
.domestic-ins-img.module-image-discount-wrap .module-image-discount-badge {
  right: 39%;
}

/* Match reference look: angled text inside circular discount badges */
.module-image-discount-wrap .module-image-discount-badge > span {
  display: block;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  white-space: nowrap;
  transform-origin: 50% 50%;
}

/* Motor page: larger circle so "10% off comprehensive" fits without overflow */
.module-image-discount-wrap .module-image-discount-badge.motor-discount-badge {
  right: 39%;
  width: clamp(108px, 10vw, 142px);
  padding: 12px 9px;
  font-size: clamp(11px, 0.95vw, 18px);
  line-height: 1.05;
  gap: 0;
}

[dir="rtl"] .module-image-discount-wrap .module-image-discount-badge.motor-discount-badge {
  right: auto;
  left: 39%;
}

[dir="rtl"] .home-con-sec--landing .buy-instant.buy-instant-discount .buy-discount-badge {
  right: 14px;
  left: auto;
}

[dir="rtl"] .home-con-sec--landing .buy-instant-card {
  direction: ltr;
}

[dir="rtl"] .home-con-sec--landing .buy-instant-card .buy-ins-con {
  align-items: flex-start;
  text-align: left;
  padding: 1rem 1.2rem 0.95rem 0.7rem;
}

[dir="rtl"] .home-con-sec--landing .buy-instant-card .buy-ins-img {
  padding: 0;
  justify-content: flex-start;
}

[dir="rtl"] .home-con-sec--landing .buy-instant-card .buy-ins-img img {
  object-position: left bottom;
  transform-origin: left bottom;
}

[dir="rtl"] .home-con-sec--landing .buy-instant-card .btn-buy {
  padding: 0.33rem 1rem 0.33rem 1.15rem;
}

[dir="rtl"] .home-con-sec--landing .buy-instant-card .btn-buy .nav-icon {
  margin-left: 0.8rem;
  margin-right: 0;
}

@media (max-width: 1199.98px) {
  .home-con-sec--landing .buy-instant-card {
    min-height: 172px;
    grid-template-columns: minmax(156px, 36%) 1fr;
  }

  .home-con-sec--landing .buy-instant-card .buy-ins-img img {
    max-width: 190px;
    max-height: 140px;
  }

  .home-con-sec--landing .buy-instant-card .buy-ins-con h4 {
    font-size: clamp(1.25rem, 2.2vw, 1.9rem);
  }
}

@media (max-width: 991.98px) {
  .home-con-sec--landing .buy-instant-card {
    min-height: 162px;
    grid-template-columns: minmax(142px, 33%) 1fr;
  }

  .home-con-sec--landing .buy-instant-card .buy-ins-con {
    padding: 0.85rem 1rem 0.85rem 0.45rem;
  }

  [dir="rtl"] .home-con-sec--landing .buy-instant-card .buy-ins-con {
    padding: 0.85rem 1rem 0.85rem 0.45rem;
  }

  .home-con-sec--landing .buy-instant-card .buy-ins-img {
    padding: 0;
  }

  [dir="rtl"] .home-con-sec--landing .buy-instant-card .buy-ins-img {
    padding: 0;
  }

  .home-con-sec--landing .buy-instant-card .buy-ins-con h4 {
    font-size: clamp(1.2rem, 3vw, 1.7rem);
  }

  .home-con-sec--landing .buy-instant.buy-instant-discount .buy-discount-badge {
    top: -12px;
    height: 30px;
    font-size: 13px;
  }

  .module-image-discount-wrap .module-image-discount-badge {
    top: 8px;
    right: 8px;
    width: clamp(76px, 14vw, 96px);
  }

  .travel-ins-img.module-image-discount-wrap .module-image-discount-badge,
  .domestic-ins-img.module-image-discount-wrap .module-image-discount-badge {
    right: 31%;
  }

  .module-image-discount-wrap .module-image-discount-badge.motor-discount-badge {
    right: 31%;
    width: clamp(92px, 16vw, 120px);
  }

  [dir="rtl"] .module-image-discount-wrap .module-image-discount-badge.motor-discount-badge {
    right: auto;
    left: 31%;
  }
}

@media (max-width: 576px) {
  .home-con-sec--landing .buy-instant-card {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 16px;
  }

  .home-con-sec--landing .buy-instant-card .buy-ins-img {
    padding: 0;
    align-items: flex-end;
    justify-content: flex-start;
    border-radius: 16px 16px 0 0;
  }

  .home-con-sec--landing .buy-instant-card .buy-ins-img img {
    width: min(190px, 92%);
    max-height: 132px;
  }

  .home-con-sec--landing .buy-instant-card .buy-ins-con,
  [dir="rtl"] .home-con-sec--landing .buy-instant-card .buy-ins-con {
    align-items: center;
    text-align: center;
    padding: 0.3rem 0.9rem 1.15rem;
  }

  .home-con-sec--landing .buy-instant-card .buy-ins-con h4 {
    font-size: clamp(1.2rem, 6.7vw, 1.65rem);
  }

  .home-con-sec--landing .buy-instant-card .btn-buy,
  [dir="rtl"] .home-con-sec--landing .buy-instant-card .btn-buy {
    width: 100%;
    max-width: 230px;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.33rem 0.95rem;
  }

  .home-con-sec--landing .buy-instant-card .btn-buy .nav-icon,
  [dir="rtl"] .home-con-sec--landing .buy-instant-card .btn-buy .nav-icon {
    margin: 0;
  }

  .home-con-sec--landing .buy-instant.buy-instant-discount .buy-discount-badge {
    top: 10px;
    right: 10px;
    left: auto;
    height: 26px;
    padding: 0 10px;
    font-size: 12px;
  }

  [dir="rtl"] .home-con-sec--landing .buy-instant.buy-instant-discount .buy-discount-badge {
    right: 10px;
    left: auto;
  }

  [dir="rtl"] .home-con-sec--landing .buy-instant-card .buy-ins-img {
    padding: 0;
    justify-content: flex-start;
  }

  .module-discount-card .module-discount-badge {
    top: -10px;
    height: 26px;
    padding: 0 10px;
    font-size: 12px;
  }

  .module-image-discount-wrap .module-image-discount-badge {
    top: 6px;
    right: 6px;
    width: 76px;
    font-size: 12px;
    padding: 8px 6px;
  }

  .travel-ins-img.module-image-discount-wrap .module-image-discount-badge,
  .domestic-ins-img.module-image-discount-wrap .module-image-discount-badge {
    right: 28%;
  }

  .module-image-discount-wrap .module-image-discount-badge.motor-discount-badge {
    right: 28%;
    width: 88px;
    font-size: 10px;
    padding: 8px 5px;
  }

  [dir="rtl"] .module-image-discount-wrap .module-image-discount-badge.motor-discount-badge {
    right: auto;
    left: 28%;
  }
}

/* Travel add-on radio spacing */
.travel-coverage-item .tra-cover-btm {
  gap: 0.5rem;
}

/* Travel top plan card: keep the circular selector away from price in RTL */
[dir="rtl"] .travel-plan-item .checkmark {
  right: auto;
  left: 1rem;
}

.travel-coverage-item .tra-cover-btm label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 10px 14px;
  white-space: nowrap;
}

.travel-coverage-item .tra-cover-btm .input-radio {
  margin: 0;
  flex: 0 0 25px;
}

/* Travel benefits list breathing room + RTL/LTR-safe spacing */
.travel-bene-list .travel-bene-item {
  padding-inline: 0.5rem;
}

.travel-bene-list .travel-bene-item .bene-no {
  margin-right: 0;
  margin-inline-end: 1rem;
}

/* Domestic helper discount pricing in contribution summary */
.domestic-review .domestic-discount-amount {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  min-width: 7.5rem;
  line-height: 1.15;
}

.domestic-review .domestic-discount-amount__original {
  color: var(--bk-grade-400);
  font-size: var(--fs-09);
  text-decoration: line-through;
  white-space: nowrap;
}

.domestic-review .domestic-discount-amount__final {
  color: var(--bk-grade-900);
  font-size: var(--fs-10);
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
}

.domestic-review .domestic-discount-amount__badge {
  margin-top: 0.2rem;
  padding: 0.1rem 0.45rem;
  color: #fff;
  font-size: 0.7rem;
  line-height: 1.2;
  border-radius: 999px;
  background: linear-gradient(to right, #12a4e0 0%, #8ec539 100%);
  white-space: nowrap;
}

.domestic-review .domestic-discount-amount--total .domestic-discount-amount__final {
  font-size: var(--fs-11);
  line-height: 1.1;
}

.domestic-review table td.text-end {
  width: 1%;
}

@media (max-width: 576px) {
  .domestic-review .domestic-discount-amount {
    min-width: 6.6rem;
  }
}

/* Shared total discount amount style for motor/travel sidebars */
.summary-discount-amount {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  min-width: 7.5rem;
  line-height: 1.15;
}

.summary-discount-amount__original {
  color: var(--bk-grade-400);
  font-size: var(--fs-09);
  text-decoration: line-through;
  white-space: nowrap;
}

.summary-discount-amount__final {
  color: var(--bk-grade-900);
  font-size: var(--fs-10);
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
}

.summary-discount-amount__badge {
  margin-top: 0.2rem;
  padding: 0.1rem 0.45rem;
  color: #fff;
  font-size: 0.7rem;
  line-height: 1.2;
  border-radius: 999px;
  background: linear-gradient(to right, #12a4e0 0%, #8ec539 100%);
  white-space: nowrap;
}

.summary-discount-amount__note {
  margin-top: 0.2rem;
  max-width: 14rem;
  color: var(--bk-grade-500);
  font-size: 0.72rem;
  line-height: 1.25;
  text-align: end;
  white-space: normal;
}

.summary-discount-amount--total .summary-discount-amount__final {
  font-size: var(--fs-11);
  line-height: 1.1;
}

.summary-discount-amount--hero {
  align-items: flex-start;
  min-width: 0;
  gap: 0.2rem;
}

.summary-discount-amount--hero .summary-discount-amount__final {
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
}

.summary-discount-amount__currency {
  font-size: 14px;
  font-weight: 500;
  margin-inline-end: 4px;
}

@media (max-width: 576px) {
  .summary-discount-amount {
    min-width: 6.6rem;
  }
}

/* Mobile navbar drawer */
@media (max-width: 991.98px) {
  body.nav-drawer-open {
    overflow: hidden;
  }

  .navbar-main {
    z-index: 12020;
  }

  .navbar-main .container-xxl {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0.55rem;
  }

  .navbar-main .logo {
    width: 155px;
    flex: 0 0 auto;
  }

  .navbar-main .tool-nav {
    margin-inline-start: auto;
    margin-inline-end: 0;
    gap: 0.35rem;
    flex: 0 1 auto;
    min-width: 0;
  }

  .navbar-main .tool-nav .nav-item + .nav-item {
    margin-left: 0;
  }

  .navbar-main .tool-nav .nav-item .nav-link.nav-lng,
  .navbar-main .tool-nav .nav-item .nav-link.nav-login {
    width: 42px;
    height: 42px;
    min-width: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border-radius: 999px;
  }

  .navbar-main .tool-nav .nav-item .nav-link span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
  }

  .navbar-main .tool-nav .nav-item .nav-link .nav-icon {
    margin-right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
  }

  .navbar-main .tool-nav .nav-item .nav-link .nav-icon img {
    display: block;
    margin: 0 auto;
  }

  .navbar-main .tool-nav .nav-item .nav-link.nav-login .nav-label {
    display: none;
  }

  .navbar-main .btn-hamburger {
    width: 42px;
    height: 42px;
    min-width: 42px;
    padding: 0;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin-inline-start: 0.35rem;
  }

  .navbar-main .btn-hamburger svg {
    width: 30px;
  }

  .navbar-main .navbar-collapse {
    order: initial !important;
    display: block !important;
    position: fixed;
    top: 0;
    right: 0;
    width: min(86vw, 320px);
    height: 100dvh;
    padding: 0.85rem 0.8rem 1.1rem;
    background: #fff;
    border-left: 1px solid #dbe4ef;
    box-shadow: -14px 0 34px rgba(15, 23, 42, 0.2);
    transform: translateX(104%);
    visibility: hidden;
    pointer-events: none;
    opacity: 1;
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform 0.28s ease;
    z-index: 12030;
  }

  [dir="rtl"] .navbar-main .navbar-collapse {
    right: auto;
    left: 0;
    border-left: 0;
    border-right: 1px solid #dbe4ef;
    box-shadow: 14px 0 34px rgba(15, 23, 42, 0.2);
    transform: translateX(-104%);
  }

  .navbar-main .navbar-collapse.show {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .navbar-main .navbar-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.55rem;
    padding: 0.35rem 0.25rem 0.65rem;
    border-bottom: 1px solid #e4ebf2;
  }

  .navbar-main .navbar-drawer-title {
    color: var(--bk-grade-900);
    font-size: var(--fs-11);
    font-weight: var(--font-weight-medium);
  }

  .navbar-main .navbar-drawer-close {
    width: 34px;
    height: 34px;
    border: 1px solid #dbe4ef;
    border-radius: 999px;
    background: #fff;
    color: var(--bk-grade-700);
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .navbar-main .navbar-drawer-close:hover {
    color: var(--bk-grade-900);
    border-color: #b9c8d8;
    background: #f3f8ff;
  }

  .navbar-main .main-nav {
    margin-left: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .navbar-main .main-nav .nav-item .nav-link {
    padding: 0.75rem 0.6rem;
    border-radius: 0.7rem;
  }

  .navbar-main .main-nav .nav-item .nav-link:hover {
    background: #f3f8ff;
  }

  .navbar-main .navbar-drawer-backdrop {
    position: fixed;
    inset: 0;
    border: 0;
    margin: 0;
    padding: 0;
    background: rgba(12, 19, 31, 0.4);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.24s ease;
    z-index: 12010;
  }

  .navbar-main .navbar-collapse.show + .navbar-drawer-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

@media (max-width: 420px) {
  .navbar-main .logo {
    width: 132px;
  }

  .navbar-main .container-xxl {
    gap: 0.35rem;
  }

  .navbar-main .tool-nav {
    gap: 0.22rem;
  }

  .navbar-main .tool-nav .nav-item .nav-link.nav-lng,
  .navbar-main .tool-nav .nav-item .nav-link.nav-login {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }

  .navbar-main .tool-nav .nav-item .nav-link.nav-lng span {
    font-size: 0.82rem;
    transform: translateY(-0.5px);
  }

  .navbar-main .tool-nav .nav-item .nav-link .nav-icon img {
    width: 16px;
    height: 16px;
    object-fit: contain;
  }

  .navbar-main .btn-hamburger {
    width: 40px;
    height: 40px;
    min-width: 40px;
    margin-inline-start: 0.45rem;
  }

  .navbar-main .btn-hamburger svg {
    width: 26px;
  }
}

@media (max-width: 360px) {
  .navbar-main .tool-nav {
    gap: 0.16rem;
  }

  .navbar-main .tool-nav .nav-item .nav-link.nav-lng,
  .navbar-main .tool-nav .nav-item .nav-link.nav-login {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }
}

/* Shared OTP/Login popup */
body.otp-popup-open {
  overflow: hidden;
}

#request-otp.is-loading {
  position: relative;
  color: transparent !important;
}

#request-otp.is-loading::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: otpSpin 0.7s linear infinite;
}

.otp-popup-shell {
  position: fixed;
  inset: 0;
  z-index: 11000;
}

.otp-popup-shell .backdrop-cover {
  background:
    radial-gradient(circle at top, rgba(152, 200, 41, 0.16), transparent 38%),
    radial-gradient(circle at bottom, rgba(19, 155, 211, 0.12), transparent 34%),
    rgba(8, 15, 28, 0.72);
  backdrop-filter: blur(8px);
}

.otp-popup-shell .otp-popup-card {
  max-width: 560px;
  width: calc(100% - 2rem);
  border: 1px solid rgba(191, 222, 168, 0.82);
  border-radius: 1.75rem;
  overflow: hidden;
  padding: 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 56px rgba(14, 28, 46, 0.28);
}

.otp-popup-shell .otp-popup-head {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: 1.75rem 1.75rem 1rem;
  border-bottom: 0;
  background:
    linear-gradient(180deg, rgba(249, 255, 244, 0.92) 0%, rgba(255, 255, 255, 0.92) 100%);
  text-align: center;
}

.otp-popup-shell .otp-popup-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  padding: 0;
  border: 1px solid rgba(214, 222, 227, 0.95);
  background-color: rgba(255, 255, 255, 0.92);
  color: #41556f;
  font-size: 14px;
  text-transform: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.otp-popup-shell .otp-popup-close i {
  display: block;
  line-height: 1;
  transform: translateY(-0.5px);
}

.otp-popup-shell .otp-popup-close:hover {
  color: var(--bk-grade-900);
  border-color: rgba(152, 200, 41, 0.72);
  background-color: rgba(249, 255, 244, 0.96);
  transform: translateY(-1px);
}

.otp-popup-shell .otp-popup-head__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(152, 200, 41, 0.35);
  background:
    linear-gradient(135deg, rgba(19, 155, 211, 0.14) 0%, rgba(152, 200, 41, 0.2) 100%);
  color: var(--color-100);
  font-size: 32px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.otp-popup-shell .otp-popup-head__copy {
  display: grid;
  gap: 0.35rem;
}

.otp-popup-shell .otp-popup-head h3 {
  margin: 0;
  width: 100%;
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--bk-grade-800);
  text-align: center;
}

.otp-popup-shell .otp-popup-body {
  padding: 0 1.75rem 1.75rem;
  text-align: center;
}

.otp-popup-shell .otp-popup-subtitle {
  margin: 0 auto 1.2rem;
  max-width: 410px;
  color: var(--bk-grade-400);
  font-size: 0.98rem;
  line-height: 1.55;
  text-align: center;
}

.otp-popup-shell .otp-popup-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0 auto 1.25rem;
}

.otp-popup-shell .otp-popup-progress-dot {
  width: 36px;
  height: 5px;
  border-radius: 999px;
  background-color: #d7e0eb;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.otp-popup-shell .otp-popup-progress-dot.is-active {
  background: linear-gradient(90deg, #139bd3 0%, #98c829 100%);
  transform: scaleX(1.05);
}

.otp-popup-shell .otp-popup-code-label {
  display: block;
  margin: 0 auto 1rem;
  color: var(--bk-grade-500);
  font-size: var(--fs-10);
  font-weight: var(--font-weight-medium);
  text-align: left;
}

.otp-popup-shell .otp-popup-number-preview {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
  font-weight: var(--font-weight-semibold);
  color: var(--bk-grade-750);
}

.otp-popup-shell .form-label {
  display: block;
  font-weight: 600;
  color: var(--bk-grade-700);
  margin-bottom: 0.75rem;
  text-align: left;
}

.otp-popup-shell #otp-popup-phone-section,
.otp-popup-shell #otp-popup-email-section,
.otp-popup-shell #otp-popup-code-section {
  width: 100%;
  max-width: none;
  padding: 1rem;
  border: 1px solid rgba(214, 222, 227, 0.95);
  border-radius: 1.25rem;
  background: linear-gradient(180deg, rgba(249, 255, 244, 0.52) 0%, rgba(255, 255, 255, 0.94) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  margin: 0 auto;
}

.otp-popup-shell .otp-popup-stage-card {
  margin-bottom: 0;
}

/* ── OTP Method Toggle ──────────────────────────────── */
.otp-popup-shell .otp-method-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  background: #f4f6f8;
  border-radius: 10px;
  padding: 4px;
}

.otp-popup-shell .otp-method-tab {
  flex: 1;
  border: none;
  background: transparent;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.otp-popup-shell .otp-method-tab.is-active {
  background: #fff;
  color: var(--takaful-primary, #00a651);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.otp-popup-shell #otp-popup-phone {
  text-align: left;
  direction: ltr;
}

.otp-popup-shell #otp-popup-phone-section {
  width: 100%;
  max-width: 100%;
}

.otp-popup-shell #otp-popup-phone-section .form-label {
  text-align: left;
}

.otp-popup-shell #otp-popup-phone-section .input-group {
  width: 100%;
}

.otp-popup-shell .input-group-text {
  background-color: rgba(249, 255, 244, 0.88);
  border-color: rgba(191, 222, 168, 0.72);
  color: var(--claim-green, #486b29);
  font-weight: 600;
  border-radius: 1rem 0 0 1rem;
  padding-inline: 1rem;
}

.otp-popup-shell .form-control {
  height: 54px;
  border-color: rgba(214, 222, 227, 0.95);
  border-radius: 1rem;
  color: var(--bk-grade-800);
  box-shadow: none;
}

.otp-popup-shell .form-control:focus {
  border-color: rgba(19, 155, 211, 0.7);
  box-shadow: 0 0 0 0.22rem rgba(19, 155, 211, 0.12);
}

.otp-popup-shell .otp-fileds {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-content: center;
  width: min(100%, 320px);
  max-width: 100%;
  margin: 0.2rem auto 0;
  gap: 0.7rem;
  direction: ltr;
}

.otp-popup-shell .otp-fileds .otp-field {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  min-height: 60px;
  text-align: center;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--bk-grade-800);
  background-color: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(214, 222, 227, 0.95);
  border-radius: 1rem;
  margin: 0;
  line-height: 1;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.otp-popup-shell .otp-fileds .otp-field:focus {
  border-color: #139bd3;
  background-color: rgba(249, 255, 255, 0.98);
  box-shadow: 0 0 0 0.22rem rgba(19, 155, 211, 0.16);
  transform: translateY(-1px);
}

.otp-popup-shell .otp-popup-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.1rem;
  margin-bottom: 0.7rem;
}

.otp-popup-shell .otp-popup-actions .btn {
  width: auto;
  min-width: 220px;
  position: relative;
}

.otp-popup-shell .otp-popup-actions .btn-validate {
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 54px;
  font-size: var(--fs-11);
  font-weight: 700;
  padding: 0.75rem 2.3rem;
  background-image: linear-gradient(90deg, #139bd3 0%, #98c829 100%);
  border: 0;
  border-radius: 999px;
  text-transform: none;
  box-shadow: 0 16px 30px rgba(19, 155, 211, 0.22);
}

.otp-popup-shell .otp-popup-actions .btn-validate:hover {
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(19, 155, 211, 0.24);
  filter: saturate(1.04);
}

.otp-popup-shell .otp-popup-actions .btn-validate:disabled {
  cursor: not-allowed;
  opacity: 0.68;
  transform: none;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
}

.otp-popup-shell .otp-popup-actions .btn.is-loading {
  color: transparent !important;
}

.otp-popup-shell .otp-popup-actions .btn.is-loading::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  margin-top: -9px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: otpSpin 0.7s linear infinite;
}

.otp-popup-shell .otp-popup-feedback {
  min-height: 1.2em;
  margin-bottom: 0.35rem;
  text-align: center;
  font-size: 0.92rem;
}

.otp-popup-shell .otp-popup-feedback--error {
  color: #c53030;
}

.otp-popup-shell .otp-popup-feedback--success {
  color: #1f8a4d;
}

.otp-popup-shell .otp-popup-link {
  font-weight: 600;
}

.otp-popup-shell .otp-popup-link-resend {
  color: #1e3f67;
}

.otp-popup-shell .otp-popup-link-resend:hover {
  color: #139bd3;
}

.otp-popup-shell .otp-popup-link.is-disabled,
.otp-popup-shell .otp-popup-link.is-loading {
  pointer-events: none;
  opacity: 0.55;
}

.otp-popup-shell .otp-popup-resend-timer {
  display: inline-block;
  min-height: 1.1em;
  color: var(--bk-grade-350);
  font-size: 0.82rem;
  font-weight: var(--font-weight-medium);
}

.otp-popup-shell .otp-popup-link-wrong {
  color: #546a83;
}

.otp-popup-shell .otp-popup-link-wrong:hover {
  color: #1d2f46;
}

[dir="rtl"] .otp-popup-shell .otp-popup-close {
  right: auto;
  left: 1rem;
}

[dir="rtl"] .otp-popup-shell .otp-popup-subtitle,
[dir="rtl"] .otp-popup-shell .otp-popup-head h3 {
  text-align: center;
}

[dir="rtl"] .otp-popup-shell .otp-popup-code-label,
[dir="rtl"] .otp-popup-shell .form-label {
  text-align: right;
}

[dir="rtl"] .otp-popup-shell .otp-fileds {
  justify-content: center;
}

@media (max-width: 576px) {
  .otp-popup-shell .otp-popup-card {
    width: calc(100% - 1.4rem);
    max-width: 100%;
  }

  .otp-popup-shell .otp-popup-head {
    padding: 1.35rem 1rem 0.85rem;
  }

  .otp-popup-shell .otp-popup-body {
    padding: 0 1rem 1rem;
  }

  .otp-popup-shell .otp-popup-head__icon {
    width: 64px;
    height: 64px;
    font-size: 28px;
  }

  .otp-popup-shell #otp-popup-phone-section,
  .otp-popup-shell #otp-popup-code-section {
    padding: 0.9rem;
    border-radius: 1rem;
  }

  .otp-popup-shell .otp-fileds .otp-field {
    min-height: 52px;
    font-size: 1.15rem;
  }

  .otp-popup-shell .otp-popup-actions .btn {
    width: 100%;
    min-width: 0;
  }
}

/* Claims files upload preview */
.claim-reg-form .claim-file-upload {
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
}

.claim-reg-form .claim-file-upload .claim-file-trigger {
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
  margin: 0;
}

.claim-reg-form .claim-file-upload .claim-file-trigger .claim-file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 2;
  cursor: pointer;
}

.claim-reg-form .claim-file-upload.has-file .btn-label {
  opacity: 1;
}

.claim-reg-form .claim-file-upload .claim-file-preview {
  width: 100%;
  margin-top: 0.65rem;
  border: 1px solid #dbe3ee;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #f8fbff;
}

.claim-reg-form .claim-file-upload .claim-file-preview-image {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: contain;
  background: #fff;
}

.claim-reg-form .claim-file-upload .claim-file-preview-pdf {
  display: block;
  width: 100%;
  height: 170px;
  border: 0;
  background: #fff;
}

/* Claims review file previews */
.claim-reg-form .upload-doc .claim-review-doc-image,
.claim-reg-form .upload-doc .claim-review-doc-pdf {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
}

.claim-reg-form .upload-doc .claim-review-doc-image {
  display: block;
  height: 220px;
  object-fit: contain;
  background: #fff;
}

.claim-reg-form .upload-doc .claim-review-doc-pdf {
  display: block;
  height: 220px;
  border: 0;
  background: #fff;
}

/* Motor claims stepper mobile responsiveness */
@media (max-width: 767.98px) {
  .motor-claim-tab {
    justify-content: flex-start;
    gap: 0.45rem;
    margin-bottom: 1.2rem;
    padding: 0.2rem 0.2rem 0.6rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }

  .motor-claim-tab::before {
    display: none;
  }

  .motor-claim-tab .nav-item {
    flex: 0 0 auto;
    min-width: 80px;
    height: auto;
  }

  .motor-claim-tab .nav-item .nav-link {
    width: 100%;
    padding-top: 0.15rem;
    scroll-snap-align: start;
  }

  .motor-claim-tab .nav-item .nav-link .nav-no {
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
    border-width: 2px;
  }

  .motor-claim-tab .nav-item .nav-link .nav-no::before {
    width: 48px;
    height: 48px;
  }

  .motor-claim-tab .nav-item .nav-link .nav-label {
    margin-top: 0.3rem;
    max-width: 80px;
    font-size: 0.68rem;
    line-height: 1.2;
    white-space: normal;
    word-break: break-word;
  }
}

@keyframes otpSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}
