
:root {
  --night: #030914;
  --ink: #09131c;
  --blue: #68c4ff;
  --blue-deep: #168bd4;
  --gold: #dfc277;
  --gold-deep: #b98635;
  --green: #0d3b2f;
  --cream: #f7f2e8;
  --line: rgba(255, 255, 255, 0.14);
}

* {
  box-sizing: border-box;
}

h1,
h2,
h3,
h4 {
  overflow-wrap: break-word;
  word-break: break-word;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.diamond {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  margin-right: 12px;
  border: 1px solid currentColor;
  transform: rotate(45deg);
  font-family: Georgia, serif;
  font-weight: 400;
}

.kicker {
  margin: 0 0 20px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.kicker--blue {
  color: #88d0ff;
}

.kicker--gold {
  color: var(--gold);
}

.kicker--gold-dark {
  color: #966b29;
}

.lead {
  max-width: 650px;
  color: rgba(244, 248, 250, 0.7);
  font-size: clamp(0.95rem, 1.25vw, 1.12rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 32px;
}

.button {
  min-width: 260px;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 0 22px;
  border: 0;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transition: filter 180ms ease, transform 180ms ease;
}

.button:hover,
.button:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.button--blue {
  background: linear-gradient(90deg, #238ed6, #72c8ff);
  color: #06131e;
}

.button--gold {
  background: linear-gradient(90deg, #bd8e39, #e1c578);
  color: #092219;
}

.button--green {
  margin-top: 24px;
  background: #0c3b2f;
  color: #fff;
}

.text-cta {
  display: inline-flex;
  align-items: center;
  gap: 17px;
  width: fit-content;
  padding: 12px 0;
  border-bottom: 1px solid;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.text-cta i {
  font-style: normal;
}

.text-cta--blue {
  border-color: rgba(113, 201, 255, 0.48);
  color: #91d3ff;
}

.text-cta--gold {
  border-color: rgba(225, 197, 120, 0.45);
  color: #e1c578;
}

/* Opening */

.portal-body {
  background: var(--night);
  color: #fff;
}

.portal {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
}

.portal__brand {
  position: absolute;
  z-index: 20;
  top: 31px;
  left: 50%;
  display: flex;
  align-items: center;
  transform: translateX(-50%);
  font-size: 0.75rem;
  letter-spacing: 0.17em;
}

.portal__brand strong {
  color: var(--gold);
}

.portal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100svh;
}

.portal__side {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 100svh;
  overflow: hidden;
  padding: 120px clamp(32px, 6vw, 96px) 100px;
}

.portal__side::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.portal__side:hover::before {
  transform: scale(1.035);
}

.portal__side:active::before {
  transform: scale(0.985);
}

.portal__side--tech::before {
  background:
    radial-gradient(circle at 25% 48%, rgba(42, 150, 240, 0.27), transparent 31%),
    linear-gradient(120deg, #0a2339, #061521 52%, #02070d);
}

.portal__side--takaful {
  justify-content: flex-end;
  text-align: right;
}

.portal__side--takaful::before {
  background:
    radial-gradient(circle at 75% 45%, rgba(210, 166, 75, 0.22), transparent 29%),
    linear-gradient(240deg, #154938, #09291f 52%, #020907);
}

.portal__side::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 62px 62px;
}

.portal__content {
  position: relative;
  z-index: 3;
  width: min(540px, 85%);
  margin-right: auto;
}

.portal__content--right {
  margin-right: 0;
  margin-left: auto;
}

.portal__content h1,
.portal__content h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 5vw, 6.2rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.portal__copy {
  max-width: 500px;
  margin: 27px 0 31px;
  color: rgba(241, 247, 250, 0.68);
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  line-height: 1.7;
}

.portal__content--right .portal__copy {
  margin-left: auto;
}

.portal__cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  min-width: 240px;
  min-height: 54px;
  padding: 0 22px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transition: filter 180ms ease, transform 180ms ease;
}

.portal__cta i {
  display: inline-block;
  font-style: normal;
  animation: portalNudge 1.8s ease-in-out infinite;
}

.portal__side:hover .portal__cta,
.portal__side:focus-visible .portal__cta {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.portal__cta--blue {
  background: linear-gradient(90deg, #238ed6, #72c8ff);
  color: #06131e;
}

.portal__cta--gold {
  background: linear-gradient(90deg, #bd8e39, #e1c578);
  color: #092219;
}

@keyframes portalNudge {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(5px);
  }
}

.portal__orbit {
  position: absolute;
  width: clamp(280px, 32vw, 510px);
  aspect-ratio: 1;
  opacity: 0.45;
  pointer-events: none;
}

.portal__orbit--tech {
  right: -19%;
  bottom: -11%;
}

.portal__orbit--takaful {
  top: 9%;
  left: -20%;
}

.portal__orbit > span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(140, 211, 255, 0.33);
  border-radius: 50%;
}

.portal__orbit > span:nth-child(2) {
  inset: 20%;
  border-style: dashed;
}

.portal__orbit--takaful > span {
  border-color: rgba(226, 199, 127, 0.29);
}

.portal__orbit > b {
  position: absolute;
  inset: 35%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(160, 219, 255, 0.4);
  border-radius: 50%;
  color: #92d4ff;
  font-family: Georgia, serif;
  font-weight: 400;
}

.portal__orbit--takaful > b {
  border-color: rgba(230, 203, 132, 0.45);
  border-radius: 50% 50% 60% 60% / 38% 38% 72% 72%;
  color: var(--gold);
}

.portal__divider {
  position: absolute;
  z-index: 15;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%);
  pointer-events: none;
}

.portal__divider > span {
  width: 1px;
  flex: 1;
  background: linear-gradient(#765521, #ebd080 50%, #765521);
  box-shadow: 0 0 0 5px rgba(3, 8, 13, 0.62);
}

.portal__divider > b {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 8px 0;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  background: #07120e;
  color: var(--gold);
  font-family: Georgia, serif;
  font-weight: 400;
}

.portal__foot {
  position: absolute;
  z-index: 20;
  bottom: 27px;
  left: 50%;
  width: max-content;
  max-width: calc(100% - 48px);
  margin: 0;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.34);
  font-size: 0.53rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Shared inner navigation */

.site-nav {
  position: absolute;
  z-index: 30;
  top: 0;
  right: 0;
  left: 0;
  height: 80px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(24px, 5vw, 76px);
  border-bottom: 1px solid var(--line);
  color: #fff;
}

.site-logo {
  display: flex;
  align-items: center;
  width: fit-content;
  font-size: 0.74rem;
  letter-spacing: 0.15em;
}

.site-logo b {
  color: var(--blue);
}

.site-logo strong {
  margin-left: 3px;
  color: var(--gold);
  font-size: 0.66rem;
}

.nav-links {
  display: flex;
  gap: clamp(22px, 3vw, 44px);
}

.nav-links a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links a:hover {
  color: #fff;
}

.nav-switch {
  justify-self: end;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--gold);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.menu-button {
  display: none;
}

.language-switch {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(4, 22, 17, 0.5);
}

.language-switch button {
  padding: 6px 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  font-size: 0.64rem;
  font-weight: 700;
}

.language-switch button.active {
  background: #fff;
  color: #0b211a;
}

.language-switch span {
  color: rgba(255, 255, 255, 0.22);
}

/* Technology */

.tech-body {
  background: #07121c;
  color: #fff;
}

.tech-hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  align-items: center;
  gap: clamp(48px, 7vw, 110px);
  padding: 130px clamp(28px, 7vw, 110px) 90px;
  background:
    linear-gradient(rgba(118, 197, 249, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(118, 197, 249, 0.07) 1px, transparent 1px),
    radial-gradient(circle at 16% 48%, rgba(48, 153, 235, 0.25), transparent 30%),
    linear-gradient(120deg, #0a2135, #061521 52%, #030912);
  background-size: 58px 58px, 58px 58px, auto, auto;
}

.tech-hero__copy h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.1rem, 7vw, 8.1rem);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: -0.06em;
}

.tech-hero__copy h1 em {
  color: #88ceff;
  font-weight: 400;
}

.tech-hero--compact {
  grid-template-columns: 1fr;
  min-height: auto;
  padding-bottom: 80px;
}

.tech-hero--compact .tech-hero__copy {
  max-width: 900px;
}

.tech-hero--compact .tech-hero__copy h1 {
  font-size: clamp(3rem, 6vw, 5.6rem);
}

.console {
  width: min(470px, 100%);
  justify-self: end;
  border: 1px solid rgba(139, 205, 248, 0.24);
  background: rgba(2, 13, 23, 0.72);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.34);
  transform: perspective(900px) rotateY(-6deg);
}

.console__top {
  min-height: 49px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid rgba(139, 205, 248, 0.17);
  color: rgba(255, 255, 255, 0.4);
  font-family: monospace;
  font-size: 0.61rem;
}

.console__body {
  padding: 28px;
  font-family: monospace;
}

.console__body > p {
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #8fd0fa;
  font-size: 0.73rem;
}

.console__body > p span {
  display: inline-block;
  width: 43px;
  color: rgba(255, 255, 255, 0.28);
}

.console__body > div {
  margin-top: 27px;
  padding: 22px;
  background: rgba(32, 139, 210, 0.12);
}

.console__body small {
  display: block;
  margin-bottom: 9px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.14em;
}

.console__body strong {
  font-family: Georgia, serif;
  font-size: 1.9rem;
  font-weight: 400;
}

.section {
  padding: clamp(90px, 10vw, 150px) clamp(28px, 7vw, 110px);
}

.section--light {
  background: #f2f5f5;
  color: var(--ink);
}

.section--dark {
  background: #07121c;
  color: #fff;
}

.section-head {
  display: grid;
  grid-template-columns: 0.48fr 1.5fr 0.72fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: end;
  max-width: 1370px;
  margin: 0 auto clamp(55px, 7vw, 95px);
}

.section-head h2,
.tech-about h2,
.claims h2,
.takaful-about h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 6vw, 6.5rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.section-head > p:last-child {
  margin: 0;
  color: #6a7277;
  font-size: 0.88rem;
  line-height: 1.7;
}

.section--dark .section-head > p:last-child {
  color: rgba(255, 255, 255, 0.48);
}

.capabilities {
  max-width: 1370px;
  margin: 0 auto;
  border-top: 1px solid #ccd4d8;
}

.capabilities article {
  display: grid;
  grid-template-columns: 0.28fr 1.25fr 0.8fr;
  gap: 38px;
  padding: 42px 0;
  border-bottom: 1px solid #ccd4d8;
}

.capabilities article > span {
  color: #2186c7;
  font-family: Georgia, serif;
  font-size: 0.8rem;
}

.capabilities h3,
.work-cards h3 {
  margin: 0 0 13px;
  font-family: Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 3rem);
  font-weight: 400;
}

.capabilities p {
  max-width: 650px;
  margin: 0;
  color: #687177;
  font-size: 0.85rem;
  line-height: 1.7;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.tags span {
  padding: 8px 10px;
  border: 1px solid #c8d1d5;
  color: #52616a;
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-cards {
  max-width: 1370px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 0 auto;
}

.work-art {
  position: relative;
  aspect-ratio: 4 / 3;
  margin-bottom: 25px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.work-art::before,
.work-art::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.work-art::before {
  inset: 23%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 0 0 28px rgba(255, 255, 255, 0.035),
    0 0 0 58px rgba(255, 255, 255, 0.02);
}

.work-art::after {
  top: 50%;
  left: 50%;
  width: 1px;
  height: 130%;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.24);
  transform: translate(-50%, -50%);
}

.work-art > span {
  position: absolute;
  z-index: 2;
  top: 17px;
  left: 17px;
  color: rgba(255, 255, 255, 0.5);
  font-family: monospace;
  font-size: 0.55rem;
}

.work-art--one {
  background: radial-gradient(circle, #1d678f, #07151e 70%);
}

.work-art--two {
  background: radial-gradient(circle, #1b6c58, #071813 70%);
}

.work-art--three {
  background: radial-gradient(circle, #493f8d, #0d0b20 70%);
}

.work-cards article > p {
  margin: 0 0 9px;
  color: #6fc0f5;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.work-cards article > span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.78rem;
  line-height: 1.65;
}

.tech-about {
  display: grid;
  grid-template-columns: 0.42fr 1.25fr;
  gap: clamp(40px, 8vw, 130px);
  background: #dfe6e9;
  color: var(--ink);
}

.about-monogram {
  display: block;
  margin-top: 120px;
  color: rgba(24, 95, 135, 0.14);
  font-family: Georgia, serif;
  font-size: clamp(5rem, 10vw, 10rem);
}

.tech-about p,
.takaful-about p {
  max-width: 760px;
  color: #58666e;
  font-size: 0.92rem;
  line-height: 1.75;
}

.tech-contact {
  min-height: 72svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 28px 30px;
  background: radial-gradient(circle, rgba(50, 147, 209, 0.2), transparent 30%), #04101a;
  color: #fff;
  text-align: center;
}

.tech-contact h2,
.takaful-contact h2 {
  margin: 0 0 34px;
  font-family: Georgia, serif;
  font-size: clamp(3.5rem, 7vw, 7.7rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.tech-contact > a {
  padding: 13px 0;
  border-bottom: 1px solid rgba(127, 203, 251, 0.4);
  color: #8bd0fb;
  font-size: clamp(0.95rem, 1.6vw, 1.3rem);
}

.tech-contact footer,
.takaful-contact footer {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  margin-top: auto;
  padding-top: 80px;
  color: rgba(255, 255, 255, 0.36);
  font-size: 0.56rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.tech-contact footer a:last-child,
.takaful-contact footer a:last-child {
  justify-self: end;
}

/* Takaful */

.takaful-body {
  background: var(--cream);
  color: var(--ink);
}

.takaful-hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(400px, 0.95fr);
  align-items: center;
  gap: clamp(40px, 7vw, 105px);
  padding: 130px clamp(28px, 7vw, 110px) 100px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 43%, rgba(207, 161, 70, 0.25), transparent 28%),
    radial-gradient(circle at 9% 15%, rgba(31, 137, 97, 0.2), transparent 33%),
    linear-gradient(124deg, #071611, #0a2f24 52%, #123e2e);
  color: #fff;
}

.takaful-hero__copy h1 {
  max-width: 800px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 7vw, 7.6rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 17px 27px;
  margin-top: 43px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.protection-art {
  position: relative;
  width: min(500px, 90%);
  aspect-ratio: 1;
  justify-self: center;
}

.ring {
  position: absolute;
  border: 1px solid rgba(230, 203, 132, 0.25);
  border-radius: 50%;
}

.ring--one {
  inset: 0;
}

.ring--two {
  inset: 14%;
  border-style: dashed;
}

.ring--three {
  inset: 28%;
}

.shield {
  position: absolute;
  inset: 31% 34%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(235, 211, 147, 0.65);
  border-radius: 50% 50% 64% 64% / 38% 38% 74% 74%;
  background: linear-gradient(145deg, #1c644b, #06271d);
  color: var(--gold);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.3);
}

.shield b {
  font-size: 2rem;
}

.shield small {
  font-size: 0.5rem;
  letter-spacing: 0.16em;
}

.benefit {
  position: absolute;
  min-width: 145px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(4, 27, 21, 0.76);
  color: var(--gold);
  font-family: Georgia, serif;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
}

.benefit span {
  color: rgba(255, 255, 255, 0.7);
  font-family: Arial, sans-serif;
  font-size: 0.67rem;
}

.benefit--medical {
  top: 12%;
  right: -3%;
}

.benefit--hibah {
  top: 58%;
  left: -7%;
}

.benefit--legacy {
  right: 1%;
  bottom: 8%;
}

.calculator {
  background: radial-gradient(circle at 5% 8%, rgba(197, 148, 57, 0.12), transparent 24%), var(--cream);
}

.calculator-grid {
  max-width: 1370px;
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(360px, 0.87fr);
  gap: 22px;
  align-items: start;
  margin: 0 auto;
}

.quote-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid #d9cfbc;
  background: #d9cfbc;
  box-shadow: 0 30px 80px rgba(75, 52, 16, 0.1);
}

.form-title {
  grid-column: 1 / -1;
  min-height: 59px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 27px;
  background: #0c352a;
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.quote-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 34px 27px 27px;
  border: 0;
  background: #fffdf8;
}

.quote-form fieldset.full {
  grid-column: 1 / -1;
}

.quote-form legend {
  float: left;
  display: block;
  width: 100%;
  margin: 0 0 19px;
  padding: 0;
  color: #17211e;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}

.quote-form legend + * {
  clear: both;
}

.quote-form fieldset > small {
  display: block;
  margin-top: 13px;
  color: #7a7e78;
  font-size: 0.69rem;
  line-height: 1.5;
}

.age-input {
  display: flex;
  align-items: flex-end;
  gap: 11px;
}

.age-input input {
  width: 110px;
  border: 0;
  border-bottom: 1px solid #b39b71;
  outline: 0;
  background: transparent;
  color: #0b382d;
  font-family: Georgia, serif;
  font-size: 3.2rem;
}

.age-input span {
  padding-bottom: 7px;
  color: #737771;
  font-size: 0.72rem;
}

.pill-group {
  display: flex;
  padding: 4px;
  border: 1px solid #ddd3c0;
  border-radius: 999px;
  background: #f4efe5;
}

.pill-group button {
  flex: 1;
  min-height: 45px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6d716b;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
}

.pill-group button.selected {
  background: #0d3b2f;
  color: #fff;
}

.occupation-options {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.occupation-options button {
  min-height: 144px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 16px;
  padding: 14px;
  border: 1px solid #ddd3c0;
  background: #f8f4eb;
  color: #343a37;
  cursor: pointer;
  text-align: left;
}

.occupation-options button.selected {
  border-color: #0d4a3c;
  background: #0d3b2f;
  color: #fff;
}

.occupation-options b {
  padding: 4px 7px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: #a57934;
  font-family: Georgia, serif;
  font-size: 0.55rem;
  font-weight: 400;
}

.occupation-options button.selected b {
  color: var(--gold);
}

.occupation-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.occupation-copy strong {
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.25;
}

.occupation-copy small {
  color: #777b75;
  font-size: 0.6rem;
  line-height: 1.45;
}

.occupation-options button.selected .occupation-copy small {
  color: rgba(255, 255, 255, 0.68);
}

.salary-value {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-bottom: 15px;
}

.salary-value strong {
  color: #0c392e;
  font-family: Georgia, serif;
  font-size: 2.2rem;
  font-weight: 400;
}

.salary-value span {
  color: #777b75;
  font-size: 0.67rem;
}

.salary-slider {
  width: 100%;
  accent-color: var(--gold-deep);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: #8b8e88;
  font-size: 0.62rem;
}

.quote-form fieldset > .salary-step-note {
  margin-top: 8px;
}

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

.smoker-options button {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid #ddd3c0;
  background: #f8f4eb;
  color: #303735;
  cursor: pointer;
  text-align: left;
}

.smoker-options button.selected {
  border-color: #1b6954;
  background: #e9f1ec;
}

.smoker-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #b8b4a9;
  border-radius: 50%;
  color: #a27734;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 1rem;
  line-height: 1;
  text-align: center;
}

.smoker-options button.selected .smoker-icon {
  border-color: #1b6954;
  background: #0c3a2f;
  color: #fff;
}

.smoker-options button > span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.smoker-options strong {
  font-size: 0.73rem;
}

.smoker-options small {
  color: #777b76;
  font-size: 0.64rem;
}

.calculate-button {
  grid-column: 1 / -1;
  min-height: 69px;
  padding: 0 28px;
  border: 0;
  background: linear-gradient(90deg, #b68536, #d4b164);
  color: #071d18;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-align: left;
  text-transform: uppercase;
}

.result-card {
  position: sticky;
  top: 22px;
  min-height: 690px;
  overflow: hidden;
  background: radial-gradient(circle at 80% 4%, rgba(211, 170, 91, 0.18), transparent 28%), linear-gradient(155deg, #0d3c31, #061b18 70%);
  color: #fff;
  box-shadow: 0 30px 80px rgba(18, 45, 36, 0.18);
}

.result-empty {
  min-height: 690px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 55px;
  text-align: center;
}

.result-seal {
  width: 69px;
  height: 69px;
  display: grid;
  place-items: center;
  margin-bottom: 30px;
  border: 1px solid rgba(237, 213, 148, 0.55);
  transform: rotate(45deg);
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 1.35rem;
}

.result-empty p {
  max-width: 310px;
  margin: 0 0 22px;
  font-family: Georgia, serif;
  font-size: 1.9rem;
  line-height: 1.1;
}

.result-empty small {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.61rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.result-content {
  padding: clamp(27px, 4vw, 45px);
}

.result-content[hidden] {
  display: none;
}

.result-label {
  display: flex;
  justify-content: space-between;
  padding-bottom: 17px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--gold);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.result-overline {
  margin: 27px 0 7px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.result-content h3 {
  margin: 0 0 10px;
  font-family: Georgia, serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 400;
}

#result-summary {
  margin: 0 0 21px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.75rem;
  line-height: 1.55;
}

.price-box,
.bundle-box {
  padding: 20px;
  border: 1px solid rgba(238, 211, 143, 0.2);
  background: rgba(3, 20, 16, 0.38);
}

.price-box > span,
.bundle-box > span {
  display: block;
  margin-bottom: 7px;
  color: var(--gold);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.price-box > div {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-box strong {
  font-family: Georgia, serif;
  font-size: 3.7rem;
  font-weight: 400;
  line-height: 1;
}

.price-box p,
.bundle-box p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.43);
  font-size: 0.59rem;
  line-height: 1.45;
}

.bundle-box {
  margin-top: 9px;
  background: rgba(255, 255, 255, 0.05);
}

.bundle-box strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 1.05rem;
  font-weight: 400;
}

.reasons h4 {
  margin: 22px 0 10px;
  color: var(--gold);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.reasons ul {
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.reasons li {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.68rem;
  line-height: 1.45;
}

.reasons li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--gold);
}

.email-form label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.62rem;
}

.email-form > div {
  display: grid;
  grid-template-columns: 1fr 48px;
}

.email-form input[type="email"] {
  min-width: 0;
  height: 46px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  outline: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.email-form button {
  border: 0;
  background: var(--gold);
  color: #0b2a21;
  cursor: pointer;
}

#form-message {
  min-height: 1em;
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.58rem;
}

.plans {
  background: #0b2c23;
  color: #fff;
}

.section-head--light > p:last-child {
  color: rgba(255, 255, 255, 0.52);
}

.plan-cards {
  max-width: 1370px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.plan-cards article {
  min-height: 390px;
  padding: 34px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.plan-cards article:last-child {
  border-right: 0;
}

.plan-cards article > span {
  display: block;
  color: rgba(255, 255, 255, 0.36);
  font-family: Georgia, serif;
  font-size: 0.72rem;
}

.plan-cards article > b {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin: 45px 0 25px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 1.6rem;
  font-weight: 400;
}

.plan-cards article > p:first-of-type {
  color: var(--gold);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.plan-cards h3 {
  margin: 0 0 16px;
  font-family: Georgia, serif;
  font-size: clamp(2rem, 3.4vw, 3.3rem);
  font-weight: 400;
}

.plan-cards article > p:last-child {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.78rem;
  line-height: 1.65;
}

/* Plans page — Warm Cream background */
.plans-page-overview {
  background: #faf6ee;
  color: #1a1f1c;
}

.plans-page-overview .plan-cards {
  border-color: rgba(0, 0, 0, 0.08);
}

.plans-page-overview .plan-cards article {
  border-right-color: rgba(0, 0, 0, 0.08);
}

.plans-page-overview .plan-cards article > span {
  color: rgba(0, 0, 0, 0.3);
}

.plans-page-overview .plan-cards h3 {
  color: #0d3b2f;
}

.plans-page-overview .plan-cards article > p:nth-of-type(2) {
  color: #4a5550;
  margin-bottom: 24px;
  font-size: 0.78rem;
  line-height: 1.65;
}

.plans-page-overview .plan-cards article ul {
  margin: 0 0 20px;
  padding: 0 0 0 18px;
  list-style: none;
  color: #4a5550;
}

.plans-page-overview .plan-cards article ul li {
  position: relative;
  padding: 5px 0;
  font-size: 0.76rem;
  line-height: 1.55;
}

.plans-page-overview .plan-cards article ul li::before {
  content: "•";
  position: absolute;
  left: -16px;
  color: #b98635;
}

.plans-page-overview .plan-cards article > a {
  width: fit-content;
  margin-top: auto;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(13, 59, 47, 0.35);
  color: #0d3b2f;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.plans-page-hero h1 {
  color: #fff;
}

.claims {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(400px, 1.05fr);
  gap: clamp(50px, 8vw, 120px);
  background: #e7e2d8;
}

.claims > div:first-child > p:not(.kicker) {
  max-width: 620px;
  color: #626861;
  font-size: 0.9rem;
  line-height: 1.72;
}

.claim-steps {
  border-top: 1px solid #bfc3ba;
}

.claim-steps article {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 25px;
  padding: 31px 0;
  border-bottom: 1px solid #bfc3ba;
}

.claim-steps article > span {
  color: #966b29;
  font-family: Georgia, serif;
}

.claim-steps h3 {
  margin: 0 0 8px;
  font-family: Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
}

.claim-steps p {
  margin: 0;
  color: #68706a;
  font-size: 0.78rem;
}

.takaful-about {
  display: grid;
  grid-template-columns: 0.42fr 1.25fr;
  gap: clamp(40px, 8vw, 130px);
  background: #f7f2e8;
}

.takaful-contact {
  min-height: 80svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 28px 26px;
  background: radial-gradient(circle at 50% 42%, rgba(210, 166, 75, 0.18), transparent 30%), #061b15;
  color: #fff;
  text-align: center;
}

.takaful-contact > p:not(.kicker) {
  max-width: 680px;
  margin: 0 auto 30px;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.7;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.contact-links a {
  padding: 15px 18px;
  border: 1px solid rgba(228, 200, 128, 0.27);
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.disclaimer {
  max-width: 1000px;
  margin-top: 25px;
  color: rgba(255, 255, 255, 0.32);
  font-size: 0.56rem;
  line-height: 1.6;
}

/* Plans page specific */

.plans-page-body {
  background: #061b15;
}

.plans-page-body .nav-links a.active {
  color: var(--gold);
}

.plans-page-hero {
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.6fr);
  align-items: center;
  gap: clamp(40px, 8vw, 130px);
  padding: 145px clamp(28px, 7vw, 110px) 95px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 45%, rgba(211, 170, 91, 0.22), transparent 24%),
    radial-gradient(circle at 15% 30%, rgba(15, 111, 81, 0.28), transparent 32%),
    linear-gradient(135deg, #06271f, #020712 68%);
}

.plans-page-hero h1 {
  max-width: 850px;
  margin: 24px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.8rem, 7.5vw, 8.2rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.91;
}

.plans-page-hero .lead {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.64);
  font-size: clamp(0.9rem, 1.2vw, 1.06rem);
  line-height: 1.8;
}

.plans-page-emblem {
  position: relative;
  width: min(31vw, 390px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  justify-self: center;
  border: 1px solid rgba(238, 212, 148, 0.36);
  border-radius: 50%;
  color: var(--gold);
}

.plans-page-emblem::before,
.plans-page-emblem::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(238, 212, 148, 0.15);
  border-radius: 50%;
}

.plans-page-emblem::before {
  inset: 11%;
}

.plans-page-emblem::after {
  inset: -9%;
}

.plans-page-emblem span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 10vw, 8.8rem);
  line-height: 0.75;
}

.plans-page-emblem small {
  position: absolute;
  bottom: 29%;
  letter-spacing: 0.32em;
  font-size: 0.66rem;
}

.plans-page-overview .plan-cards article {
  display: flex;
  flex-direction: column;
}

.plans-coming {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(35px, 8vw, 120px);
  align-items: center;
  padding: clamp(85px, 10vw, 150px) clamp(24px, 7vw, 110px);
  background: #f6f1e7;
  color: var(--ink);
}

.plans-coming h2 {
  max-width: 560px;
  margin: 24px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 6vw, 6.4rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.94;
}

.plans-coming-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px 28px;
  align-items: start;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid #d7cdb9;
  background: rgba(255, 255, 255, 0.48);
}

.plans-coming-card > span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid #b99a55;
  border-radius: 50%;
  color: #8b6a2d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.plans-coming-card h3 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 2.6vw, 2.4rem);
  font-weight: 400;
}

.plans-coming-card p {
  margin: 0;
  color: #61665f;
  font-size: 0.84rem;
  line-height: 1.75;
}

.plans-coming-card a {
  grid-column: 2;
  width: fit-content;
  margin-top: 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid #0d4b3d;
  color: #0d4b3d;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.plans-page-contact {
  min-height: 70svh;
}

/* Health360-i comparison table */
.health360-comparison {
  background: #fffdf8;
}

.health360-table-wrapper {
  max-width: 900px;
  margin: 0 auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.health360-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.health360-table thead th {
  padding: 18px 22px;
  background: #0d3b2f;
  color: #fff;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.health360-table thead th:first-child {
  background: #0a2e24;
  color: var(--gold);
}

.health360-table thead th strong {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 1.1rem;
  font-weight: 400;
}

.health360-table tbody td {
  padding: 16px 22px;
  border-bottom: 1px solid #e8e2d4;
  color: #2d3531;
  vertical-align: top;
}

.health360-table tbody tr:nth-child(even) td {
  background: #faf7f0;
}

.health360-table tbody td:first-child {
  font-weight: 700;
  color: #0d3b2f;
  min-width: 200px;
}

.health360-table tbody tr.health360-table__group td {
  background: #0d3b2f;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.health360-table tbody tr.health360-table__group:nth-child(even) td {
  background: #0d3b2f;
}

.health360-table td.yes {
  color: #1b6954;
  font-weight: 700;
}

.health360-table td.no {
  color: #a16a43;
}

.health360-note {
  max-width: 900px;
  margin: 20px auto 0;
  color: #8b8a82;
  font-size: 0.68rem;
  line-height: 1.55;
  text-align: center;
}

@media (max-width: 780px) {
  .health360-table thead th,
  .health360-table tbody td {
    padding: 14px 16px;
    font-size: 0.74rem;
  }

  .health360-table tbody td:first-child {
    min-width: 160px;
  }
}

/* Product select */
.product-select-wrapper {
  position: relative;
}

.product-select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd3c0;
  border-radius: 8px;
  background: #fffdf8;
  color: #17211e;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23966b29' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.product-select:focus {
  outline: 2px solid #0d3b2f;
  outline-offset: 2px;
}

/* Rider toggles */
.rider-options {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rider-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #ddd3c0;
  border-radius: 8px;
  background: #f8f4eb;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.rider-toggle:hover {
  background: #f0eadb;
}

.rider-toggle input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #0d3b2f;
  cursor: pointer;
  flex-shrink: 0;
}

.rider-toggle__label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rider-toggle__label strong {
  font-size: 0.78rem;
  color: #17211e;
}

.rider-toggle__label small {
  font-size: 0.65rem;
  color: #777b76;
}

.site-footer {
  padding: 24px clamp(28px, 7vw, 110px);
  border-top: 1px solid var(--line);
  background: #04101a;
}

.site-footer .footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer a {
  color: var(--gold);
}

.site-footer a:hover {
  color: var(--blue);
}

/* === SIDEBAR NAVIGATION === */

.has-sidebar {
  padding-left: 240px;
  transition: padding-left 300ms ease;
  overscroll-behavior-y: none;
}

.has-sidebar.sidebar-collapsed {
  padding-left: 64px;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 240px;
  z-index: 100;
  background: #06121a;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  padding: 28px 0 20px;
  transition: width 300ms ease;
  overflow: hidden;
}

.takaful-body .sidebar {
  background: #061b15;
}

.sidebar-collapsed .sidebar {
  width: 64px;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  padding: 0 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 16px;
  white-space: nowrap;
}

.sidebar-collapsed .sidebar-logo {
  padding: 0 12px 24px;
  justify-content: center;
}

.sidebar-logo a {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 0.74rem;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.sidebar-logo .diamond {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  margin-right: 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transform: rotate(45deg);
  font-family: Georgia, serif;
  font-weight: 400;
  flex-shrink: 0;
}

.sidebar-collapsed .sidebar-logo .diamond {
  margin-right: 0;
}

.sidebar-logo b {
  color: var(--blue);
}

.sidebar-logo strong {
  margin-left: 3px;
  color: var(--gold);
  font-size: 0.66rem;
}

.sidebar-collapsed .sidebar-logo b,
.sidebar-collapsed .sidebar-logo strong {
  display: none;
}

.sidebar-lang {
  padding: 16px 12px 4px;
}

.sidebar-lang .language-switch {
  width: 100%;
  justify-content: center;
}

.sidebar-collapsed .sidebar-lang {
  display: none;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 12px;
  flex: 1;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease;
  white-space: nowrap;
}

.sidebar-collapsed .sidebar-nav a {
  gap: 0;
  padding: 12px;
  justify-content: center;
}

.sidebar-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.sidebar-nav a.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.sidebar-nav .nav-icon {
  display: none;
  font-size: 1.2rem;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.sidebar-collapsed .sidebar-nav .nav-icon {
  display: block;
}

.sidebar-collapsed .sidebar-nav .nav-label {
  display: none;
}

.sidebar-bottom {
  padding: 16px 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
}

.sidebar-bottom a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.sidebar-collapsed .sidebar-bottom a {
  gap: 0;
  padding: 12px;
  justify-content: center;
}

.sidebar-bottom a:hover {
  background: rgba(223, 194, 119, 0.1);
}

.sidebar-collapsed .sidebar-bottom .nav-label {
  display: none;
}

.sidebar-bottom .nav-icon {
  display: none;
  font-size: 1.2rem;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.sidebar-collapsed .sidebar-bottom .nav-icon {
  display: block;
}

.sidebar-toggle {
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: #0d2533;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  transition: background 180ms ease, color 180ms ease;
  z-index: 101;
}

.takaful-body .sidebar-toggle {
  background: #0a2f24;
}

.sidebar-toggle:hover {
  background: #123a4a;
  color: #fff;
}

.takaful-body .sidebar-toggle:hover {
  background: #0d3d30;
}

.sidebar-collapsed .sidebar-toggle {
  transform: translateY(-50%) rotate(180deg);
}

.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99;
  height: 60px;
  background: #06121a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 20px;
  align-items: center;
  justify-content: space-between;
}

.takaful-body .mobile-header {
  background: #061b15;
}

.mobile-logo {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: #fff;
}

.mobile-logo .diamond {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: 10px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transform: rotate(45deg);
  font-family: Georgia, serif;
  font-weight: 400;
}

.mobile-logo b {
  color: var(--blue);
}

.mobile-logo strong {
  margin-left: 3px;
  color: var(--gold);
  font-size: 0.6rem;
}

.mobile-menu-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 98;
}

.sidebar-overlay.show {
  display: block;
}

/* === RESPONSIVE === */

@media (max-width: 980px) {
  .tech-hero,
  .takaful-hero {
    grid-template-columns: 1fr;
    gap: 38px;
    padding-inline: 40px;
  }

  .section-head {
    grid-template-columns: 0.4fr 1.2fr;
  }

  .section-head > p:last-child {
    grid-column: 2;
  }

  .calculator-grid {
    grid-template-columns: 1fr;
  }

  .result-card {
    position: relative;
    top: auto;
  }
}

@media (max-width: 780px) {
  .portal__grid {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .portal__side {
    min-height: 50svh;
    padding: 77px 27px 42px;
  }

  .portal__side--takaful {
    justify-content: flex-start;
    text-align: left;
  }

  .portal__content,
  .portal__content--right {
    width: 91%;
    margin: 0;
  }

  .portal__content h1,
  .portal__content h2 {
    font-size: clamp(2.35rem, 9vw, 4.3rem);
  }

  .portal__copy {
    margin: 14px 0;
    font-size: 0.76rem;
    line-height: 1.55;
  }

  .portal__divider {
    top: 50%;
    right: 0;
    bottom: auto;
    left: 0;
    width: auto;
    height: 40px;
    flex-direction: row;
    transform: translateY(-50%);
  }

  .portal__divider > span {
    width: auto;
    height: 1px;
  }

  .portal__divider > b {
    width: 36px;
    height: 36px;
    margin: 0 8px;
  }

  .portal__foot {
    display: none;
  }

  .site-nav {
    height: 70px;
    grid-template-columns: 1fr auto auto;
    padding-inline: 21px;
  }

  .menu-button {
    position: relative;
    display: grid;
    place-items: center;
    width: 41px;
    height: 41px;
    margin-right: 9px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(4, 22, 17, 0.55);
  }

  .menu-button > span:not(.sr-only) {
    position: absolute;
    width: 17px;
    height: 1px;
    background: #fff;
  }

  .menu-button > span:first-child {
    transform: translateY(-4px);
  }

  .menu-button > span:nth-child(2) {
    transform: translateY(4px);
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 10px 21px 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(3, 17, 13, 0.98);
  }

  .site-nav--tech .nav-links {
    background: rgba(3, 13, 22, 0.98);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .tech-hero,
  .takaful-hero {
    grid-template-columns: 1fr;
    padding: 125px 27px 80px;
  }

  .console {
    justify-self: start;
    transform: none;
  }

  .protection-art {
    width: min(430px, 88vw);
  }

  .section-head {
    grid-template-columns: 1fr;
  }

  .section-head > p:last-child {
    grid-column: 1;
  }

  .capabilities article {
    grid-template-columns: 50px 1fr;
  }

  .tags {
    grid-column: 2;
    justify-content: flex-start;
  }

  .work-cards,
  .plan-cards {
    grid-template-columns: 1fr;
  }

  .work-cards {
    gap: 50px;
  }

  .plan-cards article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .plan-cards article:last-child {
    border-bottom: 0;
  }

  .plans-page-overview .plan-cards article {
    border-bottom-color: rgba(0, 0, 0, 0.08);
  }

  .tech-about,
  .takaful-about,
  .claims {
    grid-template-columns: 1fr;
  }

  .about-monogram {
    display: none;
  }

  .tech-contact footer,
  .takaful-contact footer {
    grid-template-columns: 1fr;
    gap: 14px;
    justify-items: center;
  }

  .tech-contact footer a:last-child,
  .takaful-contact footer a:last-child {
    justify-self: center;
  }

  .plans-page-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 70px;
    padding: 120px 28px 90px;
  }

  .plans-page-emblem {
    width: min(66vw, 330px);
  }

  .plans-coming {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .has-sidebar {
    padding-left: 0;
    padding-top: 60px;
    padding-bottom: 70px;
  }

  .has-sidebar.sidebar-collapsed {
    padding-left: 0;
  }

  .sidebar,
  .sidebar-overlay,
  .sidebar-toggle {
    display: none !important;
  }

  .mobile-header {
    display: flex !important;
  }

  .mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .sidebar-overlay.show {
    display: block !important;
    z-index: 10000 !important;
  }

  .sidebar.open {
    display: flex !important;
    z-index: 10001 !important;
  }

  .bottom-nav {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    background: rgba(6, 15, 22, 0.99) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    padding: 6px 4px env(safe-area-inset-bottom, 6px) !important;
    justify-content: space-around !important;
    align-items: center !important;
    height: 64px !important;
    min-height: 64px !important;
    margin: 0 !important;
  }

  .takaful-body .bottom-nav {
    background: rgba(6, 20, 16, 0.99);
  }

  .bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.6rem;
    font-weight: 600;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 10px;
    transition: color 180ms ease, background 180ms ease;
    min-width: 56px;
    text-align: center;
  }

  .bottom-nav a .nav-icon {
    font-size: 1.3rem;
  }

  .bottom-nav a.active {
    color: var(--gold);
  }

  .tech-body .bottom-nav a.active {
    color: var(--blue);
  }

  .bottom-nav a:hover {
    color: #fff;
  }

  .bottom-nav-lang {
    display: flex;
    gap: 4px;
    align-items: center;
  }

  .bottom-nav-lang button {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.55rem;
    font-weight: 700;
    padding: 4px 6px;
    border-radius: 6px;
    cursor: pointer;
  }

  .bottom-nav-lang button.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
  }

  .bottom-nav-lang span {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.5rem;
  }
}

@media (max-width: 520px) {
  .portal__copy {
    display: none;
  }

  .portal__content h1,
  .portal__content h2 {
    font-size: clamp(2.2rem, 10vw, 3.3rem);
  }

  .portal__content .portal__cta {
    margin-top: 13px;
    min-width: 0;
    width: 100%;
  }

  .site-logo {
    font-size: 0.63rem;
    letter-spacing: 0.08em;
  }

  .site-logo .diamond {
    width: 28px;
    height: 28px;
    margin-right: 8px;
  }

  .site-logo strong {
    font-size: 0.52rem;
  }

  .nav-switch {
    padding: 9px;
    font-size: 0.52rem;
  }

  .tech-hero__copy h1,
  .takaful-hero__copy h1 {
    font-size: clamp(3.4rem, 16vw, 5.1rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 78px 22px;
  }

  .section-head h2,
  .tech-about h2,
  .claims h2,
  .takaful-about h2 {
    font-size: clamp(2.8rem, 14vw, 4.3rem);
  }

  .capabilities article {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tags {
    grid-column: 1;
  }

  .quote-form {
    grid-template-columns: 1fr;
  }

  .quote-form fieldset,
  .quote-form fieldset.full,
  .form-title,
  .calculate-button {
    grid-column: 1;
  }

  .occupation-options {
    grid-template-columns: repeat(2, 1fr);
  }

  .smoker-options {
    grid-template-columns: 1fr;
  }

  .result-empty {
    padding: 38px 22px;
  }

  .benefit {
    min-width: 124px;
  }

  .benefit--medical {
    right: 0;
  }

  .benefit--hibah {
    left: 0;
  }

  .tech-contact h2,
  .takaful-contact h2 {
    font-size: clamp(3rem, 14vw, 4.5rem);
  }

  .contact-links {
    flex-direction: column;
    width: 100%;
  }

  .plans-page-hero h1 {
    font-size: clamp(3.15rem, 15vw, 4.8rem);
  }

  .plans-page-emblem {
    width: min(74vw, 290px);
  }

  .plans-coming-card {
    grid-template-columns: 1fr;
  }

  .plans-coming-card a {
    grid-column: 1;
  }
}

/* Hide bottom nav on desktop */
.bottom-nav {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* =============================================
   === AI CHAT WIDGET ===
   ============================================= */

.chat-widget {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 500;
}

.chat-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  background: var(--blue);
  color: #06121a;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
  transition: transform 180ms ease;
}

.takaful-body .chat-toggle {
  background: var(--gold);
  color: #17211e;
}

.chat-toggle:hover {
  transform: scale(1.06);
}

.chat-panel {
  position: absolute;
  right: 0;
  bottom: 68px;
  width: min(340px, calc(100vw - 32px));
  max-height: min(480px, calc(100vh - 160px));
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.chat-panel[hidden] {
  display: none;
}

.chat-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #07121c;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.takaful-body .chat-panel__header {
  background: #061b15;
}

.chat-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px;
}

.chat-close:hover {
  color: #fff;
}

.chat-panel__messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f7f6f2;
  -webkit-overflow-scrolling: touch;
}

.chat-msg {
  max-width: 85%;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 0.78rem;
  line-height: 1.5;
  overflow-wrap: break-word;
  word-break: break-word;
}

.chat-msg--bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #24291f;
}

.chat-msg--user {
  align-self: flex-end;
  background: var(--blue);
  color: #06121a;
}

.takaful-body .chat-msg--user {
  background: var(--gold);
  color: #17211e;
}

.chat-msg--typing {
  opacity: 0.55;
}

.chat-panel__form {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
}

.chat-panel__form input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 0.78rem;
  font-family: inherit;
}

.chat-panel__form input:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

.chat-panel__form button {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  border: none;
  background: var(--blue);
  color: #06121a;
  cursor: pointer;
  font-size: 1rem;
}

.takaful-body .chat-panel__form button {
  background: var(--gold);
  color: #17211e;
}

@media (max-width: 768px) {
  .chat-widget {
    right: 14px;
    bottom: 84px;
  }
}

/* =============================================
   === APPOINTMENT BOOKING PAGE ===
   ============================================= */

.booking-card {
  max-width: 560px;
  margin: 0 auto;
  border: 1px solid #d9cfbc;
  background: #fffdf8;
  box-shadow: 0 30px 80px rgba(75, 52, 16, 0.1);
}

.booking-card > * {
  padding: 30px 27px;
}

.booking-card > * + * {
  border-top: 1px solid #ece5d4;
}

.booking-phone-locked {
  font-size: 0.82rem;
  color: #17211e;
}

.booking-phone-locked strong {
  display: block;
  margin: 6px 0 10px;
  font-family: Georgia, serif;
  font-size: 1.3rem;
  color: #0b382d;
}

.booking-phone-form label {
  display: block;
  margin-bottom: 10px;
  color: #17211e;
  font-size: 0.78rem;
  font-weight: 700;
}

.booking-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.booking-input-row input {
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #ddd3c0;
  border-radius: 8px;
  outline: 0;
  background: #fff;
  color: #17211e;
  font-family: inherit;
  font-size: 0.85rem;
}

.booking-input-row input:focus {
  border-color: var(--gold-deep);
}

.booking-input-row button {
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  background: var(--gold);
  color: #17211e;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  white-space: nowrap;
}

.booking-hint {
  margin-top: 12px;
  color: #7a7e78;
  font-size: 0.69rem;
  line-height: 1.5;
}

.booking-status {
  color: #8a4b2b;
  font-size: 0.78rem;
  line-height: 1.6;
}

.booking-step {
  margin-bottom: 24px;
}

.booking-step:last-of-type {
  margin-bottom: 0;
}

.booking-step > label {
  display: block;
  margin-bottom: 8px;
  color: #17211e;
  font-size: 0.78rem;
  font-weight: 700;
}

.booking-name-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #ddd3c0;
  border-radius: 8px;
  outline: 0;
  background: #fff;
  color: #17211e;
  font-family: inherit;
  font-size: 0.85rem;
}

.booking-name-input:focus {
  border-color: var(--gold-deep);
}

.booking-signed-in {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #eef6ee;
  color: #29532f;
  font-size: 0.72rem;
  font-weight: 700;
}

.booking-days-nav {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.booking-days-nav > button {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  margin-top: 4px;
  border: 1px solid #ddd3c0;
  border-radius: 50%;
  background: #f4efe5;
  color: #4a4e47;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.booking-days-nav > button:hover {
  background: var(--gold);
  color: #17211e;
}

.booking-days-grid {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}

.booking-day-col {
  flex: 0 0 108px;
  scroll-snap-align: start;
}

.booking-day-col__header {
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #ece5d4;
  color: #4a4e47;
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.booking-day-col__header strong {
  display: block;
  color: #17211e;
  font-size: 0.9rem;
}

.booking-day-col__times {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.booking-day-col__times button {
  padding: 8px 4px;
  border: 1px solid #ddd3c0;
  border-radius: 8px;
  background: #fff;
  color: #17211e;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

.booking-day-col__times button.selected {
  border-color: var(--gold-deep);
  background: var(--gold);
}

.booking-day-col__empty {
  color: #b8b4a9;
  font-size: 0.9rem;
  text-align: center;
}

#bookingConfirmBtn {
  width: 100%;
  border: 0;
  cursor: pointer;
}

#bookingConfirmBtn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.booking-fallback p {
  margin: 0 0 16px;
  color: #4a4e47;
  font-size: 0.78rem;
  line-height: 1.6;
}

.booking-fallback .contact-links {
  justify-content: flex-start;
}

.booking-fallback .contact-links a {
  border-color: #ddd3c0;
  color: #8a5a1f;
}
