/*
  My Money / Poolam public website
  Production stylesheet — no external CSS framework required.
*/

:root {
  --brand-blue: #0b5f9e;
  --brand-blue-2: #0f79bd;
  --brand-cyan: #18a7d6;
  --brand-orange: #f57b20;
  --brand-orange-dark: #d85e08;
  --navy-950: #041f35;
  --navy-900: #062d4d;
  --navy-800: #0b3b60;
  --navy-700: #174d70;
  --slate-700: #425b6b;
  --slate-600: #5a7180;
  --slate-500: #728795;
  --slate-400: #9aabb5;
  --slate-300: #c8d4db;
  --slate-200: #dce5ea;
  --slate-100: #eef3f6;
  --slate-50: #f7fafb;
  --white: #ffffff;
  --success: #16845b;
  --warning: #a85c00;
  --danger: #ba2a2a;
  --focus: #f2a65a;
  --text: #17384e;
  --muted: #607686;
  --surface: #ffffff;
  --surface-alt: #f4f8fa;
  --border: #dce7ed;
  --shadow-sm: 0 8px 24px rgba(4, 36, 59, 0.08);
  --shadow-md: 0 18px 48px rgba(4, 36, 59, 0.12);
  --shadow-lg: 0 30px 80px rgba(4, 36, 59, 0.18);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 42px;
  --container: 1180px;
  --header-height: 78px;
  --transition: 180ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
  background: var(--surface);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html[dir="rtl"] body {
  font-family: Tahoma, Arial, sans-serif;
}

body.menu-open {
  overflow: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

a {
  color: var(--brand-blue);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand-orange-dark);
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--navy-900);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.55rem, 6vw, 5.1rem);
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.45rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  margin-bottom: 0.7rem;
}

p {
  margin-bottom: 1rem;
}

ul,
ol {
  padding-inline-start: 1.3rem;
}

::selection {
  color: var(--navy-950);
  background: rgba(245, 123, 32, 0.28);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}

.container--narrow {
  width: min(calc(100% - 2rem), 850px);
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
}

.section--compact {
  padding-block: clamp(3rem, 7vw, 5rem);
}

.section--alt {
  background: var(--surface-alt);
}

.section--dark {
  color: rgba(255, 255, 255, 0.82);
  background:
    radial-gradient(circle at 15% 5%, rgba(24, 167, 214, 0.2), transparent 35%),
    radial-gradient(circle at 88% 90%, rgba(245, 123, 32, 0.17), transparent 32%),
    var(--navy-950);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--white);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2.4rem;
}

.section-heading--center {
  margin-inline: auto;
  text-align: center;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.08rem;
}

.section--dark .section-heading p {
  color: rgba(255, 255, 255, 0.72);
}

.eyebrow {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 0.9rem;
  color: var(--brand-orange-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 30px;
  height: 2px;
  content: "";
  background: currentColor;
  border-radius: 999px;
}

html[dir="rtl"] .eyebrow {
  letter-spacing: 0;
}

.text-gradient {
  color: transparent;
  background: linear-gradient(95deg, var(--brand-orange) 0%, #ff9a45 48%, #ffd0a9 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.9rem;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 0.75rem;
  inset-inline-start: 0.75rem;
  padding: 0.7rem 1rem;
  color: var(--white);
  background: var(--navy-950);
  border-radius: var(--radius-sm);
  transform: translateY(-150%);
  transition: transform var(--transition);
}

.skip-link:focus {
  color: var(--white);
  transform: translateY(0);
}

.icon {
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.icon--sm {
  width: 1rem;
  height: 1rem;
}

.icon--lg {
  width: 2rem;
  height: 2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  min-height: 48px;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
  padding: 0.76rem 1.25rem;
  color: var(--white);
  font-weight: 750;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  background: var(--brand-blue);
  border: 1px solid var(--brand-blue);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(11, 95, 158, 0.2);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
}

.btn:hover {
  color: var(--white);
  background: var(--brand-blue-2);
  border-color: var(--brand-blue-2);
  box-shadow: 0 14px 32px rgba(11, 95, 158, 0.28);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--orange {
  color: var(--white);
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  box-shadow: 0 10px 24px rgba(245, 123, 32, 0.24);
}

.btn--orange:hover {
  color: var(--white);
  background: var(--brand-orange-dark);
  border-color: var(--brand-orange-dark);
  box-shadow: 0 14px 32px rgba(245, 123, 32, 0.3);
}

.btn--ghost {
  color: var(--navy-900);
  background: transparent;
  border-color: var(--slate-300);
  box-shadow: none;
}

.btn--ghost:hover {
  color: var(--brand-blue);
  background: var(--white);
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-sm);
}

.btn--light {
  color: var(--navy-900);
  background: var(--white);
  border-color: var(--white);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.btn--light:hover {
  color: var(--brand-blue);
  background: #f7fbfd;
  border-color: #f7fbfd;
}

.btn--sm {
  min-height: 40px;
  padding: 0.55rem 0.95rem;
  font-size: 0.9rem;
}

.btn--wide {
  width: 100%;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

/* Header */
.top-strip {
  color: rgba(255, 255, 255, 0.88);
  background: var(--navy-950);
  font-size: 0.84rem;
}

.top-strip__inner {
  display: flex;
  min-height: 36px;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.top-strip__message,
.top-strip__links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.top-strip a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.top-strip a:hover {
  color: var(--white);
}

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(220, 231, 237, 0.8);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: box-shadow var(--transition), background var(--transition);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 36px rgba(4, 36, 59, 0.09);
}

.navbar {
  display: grid;
  min-height: var(--header-height);
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

.brand {
  display: inline-flex;
  width: 188px;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: 100%;
}

.primary-nav {
  display: flex;
  gap: 0.15rem;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0.55rem 0.78rem;
  color: var(--navy-800);
  font-size: 0.93rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  transition: color var(--transition), background var(--transition);
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--brand-blue);
  background: rgba(11, 95, 158, 0.08);
}

.nav-actions {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  justify-content: flex-end;
}

.icon-button {
  display: inline-flex;
  width: 43px;
  height: 43px;
  align-items: center;
  justify-content: center;
  color: var(--navy-800);
  background: var(--slate-50);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition), transform var(--transition);
}

.icon-button:hover {
  color: var(--brand-blue);
  background: var(--white);
  border-color: var(--brand-blue);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
}

.language {
  position: relative;
}

.language__button {
  display: inline-flex;
  min-height: 43px;
  gap: 0.45rem;
  align-items: center;
  padding: 0.55rem 0.75rem;
  color: var(--navy-800);
  font-size: 0.88rem;
  font-weight: 750;
  background: var(--slate-50);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
}

.language__button:hover {
  color: var(--brand-blue);
  border-color: var(--brand-blue);
}

.language__menu {
  position: absolute;
  z-index: 50;
  top: calc(100% + 0.55rem);
  inset-inline-end: 0;
  width: 190px;
  padding: 0.45rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

.language__menu button {
  display: flex;
  width: 100%;
  gap: 0.6rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  color: var(--navy-800);
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

.language__menu button:hover,
.language__menu button[aria-current="true"] {
  color: var(--brand-blue);
  background: var(--slate-100);
}

.lang-code {
  display: inline-flex;
  width: 30px;
  height: 24px;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 800;
  background: var(--brand-blue);
  border-radius: 7px;
}

.mobile-panel {
  display: none;
}

/* Announcement */
.notice-bar {
  color: #643600;
  background: #fff4e8;
  border-bottom: 1px solid #ffd8b8;
}

.notice-bar__inner {
  display: flex;
  min-height: 46px;
  gap: 0.65rem;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.notice-bar strong {
  color: #7a3d00;
}

.notice-bar a {
  color: #733700;
  font-weight: 750;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 7rem) clamp(4.5rem, 9vw, 8rem);
  background:
    radial-gradient(circle at 8% 16%, rgba(24, 167, 214, 0.13), transparent 26%),
    radial-gradient(circle at 88% 10%, rgba(245, 123, 32, 0.16), transparent 25%),
    linear-gradient(180deg, #fafdff 0%, #f3f8fb 100%);
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(11, 95, 158, 0.1);
  border-radius: 50%;
}

.hero::before {
  width: 520px;
  height: 520px;
  top: -330px;
  inset-inline-start: -150px;
}

.hero::after {
  width: 700px;
  height: 700px;
  right: -420px;
  bottom: -430px;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(400px, 0.96fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: center;
}

.hero__copy {
  max-width: 680px;
}

.hero__copy p {
  max-width: 650px;
  color: var(--slate-600);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.hero__microcopy {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 1.5rem;
  color: var(--slate-600);
  font-size: 0.88rem;
}

.hero__microcopy span {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
}

.hero__microcopy .icon {
  color: var(--success);
}

.ussd-chip {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  padding: 0.62rem 0.8rem;
  color: var(--navy-900);
  font-weight: 800;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.ussd-code {
  color: var(--brand-orange-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.02em;
}

.hero-visual {
  position: relative;
  display: flex;
  min-height: 650px;
  align-items: center;
  justify-content: center;
}

.hero-visual__halo {
  position: absolute;
  width: 490px;
  height: 490px;
  background: linear-gradient(145deg, rgba(11, 95, 158, 0.15), rgba(24, 167, 214, 0.06), rgba(245, 123, 32, 0.13));
  border-radius: 50%;
  filter: blur(1px);
}


/* Interactive Poolam application device */
.hero-visual[data-wallet-tilt] {
  perspective: 1350px;
  perspective-origin: 50% 46%;
  isolation: isolate;
  touch-action: pan-y;
}

.hero-visual[data-wallet-tilt]::before {
  position: absolute;
  z-index: -1;
  width: 360px;
  height: 92px;
  right: 50%;
  bottom: 20px;
  content: "";
  background: radial-gradient(ellipse, rgba(4, 31, 53, 0.32), rgba(4, 31, 53, 0) 70%);
  filter: blur(12px);
  opacity: 0.72;
  transform: translateX(50%);
}

.hero-visual[data-wallet-tilt] .hero-visual__halo {
  animation: wallet-halo-pulse 5.8s ease-in-out infinite;
}

.hero-orbit {
  position: absolute;
  z-index: 0;
  border: 1px solid rgba(11, 95, 158, 0.16);
  border-radius: 50%;
  pointer-events: none;
}

.hero-orbit::before {
  position: absolute;
  width: 12px;
  height: 12px;
  content: "";
  background: linear-gradient(135deg, var(--brand-orange), #ffb067);
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(245, 123, 32, 0.34);
}

.hero-orbit--outer {
  width: 520px;
  height: 520px;
  animation: wallet-orbit 20s linear infinite;
}

.hero-orbit--outer::before {
  top: 84px;
  right: 28px;
}

.hero-orbit--inner {
  width: 405px;
  height: 405px;
  border-style: dashed;
  animation: wallet-orbit-reverse 15s linear infinite;
}

.hero-orbit--inner::before {
  right: 48px;
  bottom: 36px;
  width: 9px;
  height: 9px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
  box-shadow: 0 8px 22px rgba(11, 95, 158, 0.3);
}

.hero-spark {
  position: absolute;
  z-index: 1;
  width: 10px;
  height: 10px;
  background: var(--white);
  border: 2px solid rgba(24, 167, 214, 0.45);
  border-radius: 50%;
  box-shadow: 0 0 0 7px rgba(24, 167, 214, 0.08), 0 8px 20px rgba(11, 95, 158, 0.18);
  pointer-events: none;
}

.hero-spark--one {
  top: 125px;
  right: 76px;
  animation: wallet-spark 4.2s ease-in-out infinite;
}

.hero-spark--two {
  bottom: 145px;
  left: 68px;
  animation: wallet-spark 4.2s 1.5s ease-in-out infinite;
}

.wallet-device-float {
  position: relative;
  z-index: 2;
  transform-style: preserve-3d;
  animation: wallet-device-float 6.4s ease-in-out infinite;
  will-change: transform;
}

.wallet-device {
  --wallet-rotate-x: 0deg;
  --wallet-rotate-y: -5deg;
  --wallet-shift-x: 0px;
  --wallet-shift-y: 0px;
  --wallet-scale: 1;
  --image-shift-x: 0px;
  --image-shift-y: 0px;
  position: relative;
  width: 278px;
  cursor: zoom-in;
  transform:
    translate3d(var(--wallet-shift-x), var(--wallet-shift-y), 36px)
    rotateX(var(--wallet-rotate-x))
    rotateY(var(--wallet-rotate-y))
    rotateZ(-2.2deg)
    scale(var(--wallet-scale));
  transform-style: preserve-3d;
  transition: transform 180ms cubic-bezier(0.2, 0.75, 0.25, 1), filter 220ms ease;
  will-change: transform;
}

.hero-visual.is-interacting .wallet-device {
  --wallet-scale: 1.12;
  filter: saturate(1.05) contrast(1.02);
}

.wallet-device__frame {
  position: relative;
  padding: 8px;
  overflow: hidden;
  background: linear-gradient(145deg, #182f41 0%, #06131e 46%, #29475b 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 39px;
  box-shadow:
    0 44px 90px rgba(4, 31, 53, 0.36),
    0 16px 34px rgba(11, 95, 158, 0.17),
    inset 0 0 0 2px rgba(255, 255, 255, 0.055),
    inset 0 -3px 6px rgba(0, 0, 0, 0.46);
  transform: translateZ(20px);
  transition: box-shadow 240ms ease;
}

.hero-visual.is-interacting .wallet-device__frame {
  box-shadow:
    0 58px 118px rgba(4, 31, 53, 0.42),
    0 24px 54px rgba(11, 95, 158, 0.24),
    inset 0 0 0 2px rgba(255, 255, 255, 0.065),
    inset 0 -3px 6px rgba(0, 0, 0, 0.46);
}

.wallet-device__screen {
  position: relative;
  overflow: hidden;
  background: #f8fafc;
  border-radius: 31px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  transform: translateZ(14px);
}

.wallet-device__screen picture {
  display: block;
}

.wallet-device__image {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  transform:
    translate3d(var(--image-shift-x), var(--image-shift-y), 0)
    scale(1.004);
  transform-origin: center;
  transition: transform 190ms cubic-bezier(0.2, 0.75, 0.25, 1);
  will-change: transform;
}

.hero-visual.is-interacting .wallet-device__image {
  transform:
    translate3d(var(--image-shift-x), var(--image-shift-y), 22px)
    scale(1.025);
}

.wallet-device__reflection {
  position: absolute;
  z-index: 3;
  inset: -35%;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--shine-x, 45%) var(--shine-y, 20%), rgba(255, 255, 255, 0.28), transparent 22%),
    linear-gradient(112deg, transparent 36%, rgba(255, 255, 255, 0.18) 47%, transparent 58%);
  opacity: 0.34;
  mix-blend-mode: screen;
  transform: translateX(-28%) rotate(6deg);
  transition: opacity 180ms ease, transform 300ms ease;
}

.hero-visual.is-interacting .wallet-device__reflection {
  opacity: 0.62;
  transform: translateX(18%) rotate(6deg);
}

.wallet-device__speaker,
.wallet-device__camera {
  position: absolute;
  z-index: 6;
  top: 15px;
  background: #020a10;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.wallet-device__speaker {
  left: 50%;
  width: 48px;
  height: 5px;
  border-radius: 999px;
  transform: translateX(-50%);
}

.wallet-device__camera {
  left: calc(50% + 35px);
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.wallet-device__button {
  position: absolute;
  z-index: -1;
  left: -3px;
  width: 4px;
  background: linear-gradient(180deg, #36576c, #071825);
  border-radius: 4px 0 0 4px;
  box-shadow: -2px 2px 5px rgba(4, 31, 53, 0.2);
}

.wallet-device__button--one {
  top: 104px;
  height: 52px;
}

.wallet-device__button--two {
  top: 169px;
  height: 78px;
}

.hero-visual[data-wallet-tilt] .floating-card {
  transition: transform 220ms cubic-bezier(0.2, 0.75, 0.25, 1), box-shadow 220ms ease;
  will-change: transform;
}

.hero-visual[data-wallet-tilt] .floating-card--top {
  animation: wallet-card-top 5.4s ease-in-out infinite;
}

.hero-visual[data-wallet-tilt] .floating-card--bottom {
  animation: wallet-card-bottom 5.9s 0.8s ease-in-out infinite;
}

.hero-visual.is-interacting .floating-card {
  box-shadow: 0 24px 54px rgba(4, 36, 59, 0.17);
}

@keyframes wallet-device-float {
  0%, 100% { transform: translate3d(0, 3px, 0); }
  50% { transform: translate3d(0, -14px, 0); }
}

@keyframes wallet-halo-pulse {
  0%, 100% { opacity: 0.82; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.055); }
}

@keyframes wallet-orbit {
  to { transform: rotate(360deg); }
}

@keyframes wallet-orbit-reverse {
  to { transform: rotate(-360deg); }
}

@keyframes wallet-spark {
  0%, 100% { opacity: 0.52; transform: translateY(0) scale(0.88); }
  50% { opacity: 1; transform: translateY(-12px) scale(1.08); }
}

@keyframes wallet-card-top {
  0%, 100% {
    transform: translate3d(var(--depth-x, 0px), var(--depth-y, 0px), 52px) rotate(-1deg);
  }
  50% {
    transform: translate3d(calc(var(--depth-x, 0px) + 7px), calc(var(--depth-y, 0px) - 12px), 66px) rotate(1deg);
  }
}

@keyframes wallet-card-bottom {
  0%, 100% {
    transform: translate3d(var(--depth-x, 0px), var(--depth-y, 0px), 62px) rotate(1deg);
  }
  50% {
    transform: translate3d(calc(var(--depth-x, 0px) - 8px), calc(var(--depth-y, 0px) + 11px), 76px) rotate(-1deg);
  }
}

.phone {
  position: relative;
  z-index: 2;
  width: 280px;
  padding: 11px;
  background: #071b2a;
  border: 2px solid #15374d;
  border-radius: 42px;
  box-shadow: 0 34px 80px rgba(4, 31, 53, 0.32), inset 0 0 0 2px rgba(255, 255, 255, 0.06);
  transform: rotate(-3deg);
}

.phone__notch {
  position: absolute;
  z-index: 5;
  top: 17px;
  left: 50%;
  width: 104px;
  height: 26px;
  background: #06131e;
  border-radius: 0 0 16px 16px;
  transform: translateX(-50%);
}

.phone__screen {
  min-height: 570px;
  overflow: hidden;
  background: linear-gradient(180deg, #0e6ba7 0%, #0784bd 31%, #eff7fa 31%, #f7fafb 100%);
  border-radius: 32px;
}

.phone__header {
  display: flex;
  padding: 3.4rem 1.15rem 1.4rem;
  color: var(--white);
  align-items: center;
  justify-content: space-between;
}

.phone__avatar {
  display: flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
  font-weight: 850;
  background: var(--white);
  border-radius: 50%;
}

.phone__header small {
  display: block;
  color: rgba(255, 255, 255, 0.72);
}

.phone__balance {
  margin: 0 1rem;
  padding: 1.15rem;
  color: var(--white);
  background: linear-gradient(135deg, #053b64, #0b5f9e 65%, #178fbd);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  box-shadow: 0 18px 35px rgba(6, 45, 77, 0.24);
}

.phone__balance small {
  display: block;
  color: rgba(255, 255, 255, 0.75);
}

.phone__balance strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}

.phone__actions {
  display: grid;
  padding: 1rem;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
}

.phone__action {
  display: flex;
  min-width: 0;
  gap: 0.35rem;
  align-items: center;
  color: var(--navy-800);
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
  flex-direction: column;
}

.phone__action-icon {
  display: flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 15px;
  box-shadow: 0 7px 18px rgba(4, 36, 59, 0.07);
}

.phone__activity {
  margin: 0.2rem 1rem 1rem;
  padding: 0.9rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.phone__activity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  font-size: 0.72rem;
}

.phone__transaction {
  display: grid;
  padding: 0.55rem 0;
  grid-template-columns: 36px 1fr auto;
  gap: 0.55rem;
  align-items: center;
  border-top: 1px solid var(--slate-100);
}

.phone__transaction:first-of-type {
  border-top: 0;
}

.phone__transaction-icon {
  display: flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  color: var(--brand-orange-dark);
  background: #fff1e5;
  border-radius: 11px;
}

.phone__transaction-text {
  min-width: 0;
  color: var(--navy-800);
  font-size: 0.72rem;
  line-height: 1.25;
}

.phone__transaction-text small {
  display: block;
  color: var(--slate-500);
}

.phone__transaction-amount {
  color: var(--navy-900);
  font-size: 0.72rem;
  font-weight: 800;
}

.floating-card {
  position: absolute;
  z-index: 3;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 1rem;
  color: var(--navy-900);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(220, 231, 237, 0.9);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.floating-card strong,
.floating-card small {
  display: block;
}

.floating-card small {
  color: var(--muted);
}

.floating-card__icon {
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--brand-orange);
  border-radius: 14px;
}

.floating-card--top {
  top: 88px;
  inset-inline-start: 5px;
}

.floating-card--bottom {
  right: -4px;
  bottom: 78px;
}

.floating-card--bottom .floating-card__icon {
  background: var(--success);
}

/* Trust/stat strip */
.stat-strip {
  position: relative;
  z-index: 5;
  margin-top: -2.2rem;
}

.stat-strip__grid {
  display: grid;
  overflow: hidden;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.stat {
  padding: 1.35rem 1.25rem;
  text-align: center;
  border-inline-end: 1px solid var(--border);
}

.stat:last-child {
  border-inline-end: 0;
}

.stat strong {
  display: block;
  color: var(--brand-blue);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.1;
}

.stat span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Cards */
.grid {
  display: grid;
  gap: 1.2rem;
}

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

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  position: relative;
  padding: 1.55rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 28px rgba(4, 36, 59, 0.05);
}

.card--hover {
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card--hover:hover {
  border-color: rgba(11, 95, 158, 0.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.service-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.service-card__icon,
.feature-icon {
  display: inline-flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--brand-blue);
  background: linear-gradient(145deg, #edf7fc, #ffffff);
  border: 1px solid #d5eaf5;
  border-radius: 17px;
}


/* V29 — supplied service logos; card dimensions and layout remain unchanged */
.service-card__icon > img {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.service-card:nth-child(2n) .service-card__icon,
.service-card:nth-child(2n) .feature-icon {
  color: var(--brand-orange-dark);
  background: linear-gradient(145deg, #fff2e8, #ffffff);
  border-color: #ffddc3;
}

.service-card p {
  color: var(--muted);
}

.service-card__link {
  display: inline-flex;
  gap: 0.3rem;
  align-items: center;
  margin-top: auto;
  color: var(--brand-blue);
  font-weight: 800;
  text-decoration: none;
}

.service-card__link .icon {
  width: 1rem;
  transition: transform var(--transition);
}

.service-card__link:hover .icon {
  transform: translateX(3px);
}

html[dir="rtl"] .service-card__link:hover .icon {
  transform: translateX(-3px);
}

.service-card__link svg {
  transform: none;
}

html[dir="rtl"] .service-card__link svg {
  transform: scaleX(-1);
}

.tag {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  padding: 0.32rem 0.62rem;
  color: var(--brand-blue);
  font-size: 0.78rem;
  font-weight: 750;
  background: rgba(11, 95, 158, 0.08);
  border: 1px solid rgba(11, 95, 158, 0.14);
  border-radius: 999px;
}

.tag--orange {
  color: #8a4400;
  background: #fff1e4;
  border-color: #ffd7b7;
}

/* Steps */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}

.steps::before {
  position: absolute;
  top: 34px;
  right: 16.6%;
  left: 16.6%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--slate-300) 10%, var(--slate-300) 90%, transparent);
}

.step {
  position: relative;
  z-index: 1;
  text-align: center;
  counter-increment: step;
}

.step__number {
  display: inline-flex;
  width: 68px;
  height: 68px;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 850;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
  border: 6px solid var(--surface-alt);
  border-radius: 50%;
  box-shadow: 0 10px 25px rgba(11, 95, 158, 0.22);
}

.step__number::after {
  content: counter(step);
}

.step p {
  max-width: 330px;
  margin-inline: auto;
  color: var(--muted);
}

/* Channels */
.channels-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(2rem, 7vw, 6rem);
  align-items: center;
}

.channel-list {
  display: grid;
  gap: 0.85rem;
}

.channel-item {
  display: grid;
  padding: 1.1rem;
  grid-template-columns: 54px 1fr;
  gap: 1rem;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.channel-item:hover {
  border-color: rgba(11, 95, 158, 0.35);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

html[dir="rtl"] .channel-item:hover {
  transform: translateX(-4px);
}

.channel-item__icon {
  display: flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
  background: var(--slate-50);
  border-radius: 17px;
}

.channel-item h3 {
  margin-bottom: 0.25rem;
  font-size: 1.12rem;
}

.channel-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.app-showcase {
  position: relative;
  min-height: 520px;
  padding: 2rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 15%, rgba(245, 123, 32, 0.28), transparent 27%),
    radial-gradient(circle at 18% 82%, rgba(24, 167, 214, 0.28), transparent 30%),
    linear-gradient(145deg, var(--navy-950), var(--navy-800));
  border-radius: var(--radius-xl);
}

.app-showcase__content {
  position: relative;
  z-index: 2;
  max-width: 52%;
  color: rgba(255, 255, 255, 0.78);
}

.app-showcase h3 {
  color: var(--white);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.app-showcase__phone {
  position: absolute;
  right: 6%;
  bottom: -120px;
  width: 255px;
  transform: rotate(9deg);
}

html[dir="rtl"] .app-showcase__phone {
  right: auto;
  left: 6%;
  transform: rotate(-9deg);
}

.app-showcase__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.store-badge {
  position: relative;
  display: inline-flex;
  min-width: 184px;
  min-height: 58px;
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem 1rem;
  overflow: hidden;
  color: var(--white);
  text-decoration: none;
  background: linear-gradient(180deg, #111 0%, #020202 100%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 13px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.store-badge::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.13) 48%, transparent 72%);
  transform: translateX(-130%);
  transition: transform 0.55s ease;
}

.store-badge:hover {
  color: var(--white);
  background: linear-gradient(180deg, #202020 0%, #070707 100%);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateY(-3px) scale(1.02);
}

.store-badge:hover::after {
  transform: translateX(130%);
}

.store-badge:focus-visible {
  outline: 3px solid rgba(255, 151, 69, 0.75);
  outline-offset: 3px;
}

.store-badge__logo {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.28));
}

.store-badge__logo--apple {
  width: 31px;
  height: 31px;
}

.store-badge__text {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  line-height: 1.02;
  flex-direction: column;
}

.store-badge__text small {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.035em;
  white-space: nowrap;
}

.store-badge__text strong {
  margin-top: 0.08rem;
  font-size: 1.08rem;
  font-weight: 750;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

/* Split content */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.split--top {
  align-items: start;
}

.media-frame {
  position: relative;
  padding: 0.8rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.media-frame img {
  width: 100%;
  border-radius: calc(var(--radius-lg) - 10px);
}

.media-frame__badge {
  position: absolute;
  right: 1.8rem;
  bottom: 1.8rem;
  max-width: 230px;
  padding: 1rem;
  color: var(--white);
  background: rgba(6, 45, 77, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

html[dir="rtl"] .media-frame__badge {
  right: auto;
  left: 1.8rem;
}

.check-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.2rem 0 1.6rem;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: grid;
  grid-template-columns: 25px 1fr;
  gap: 0.65rem;
  align-items: start;
}

.check-list__icon {
  display: inline-flex;
  width: 23px;
  height: 23px;
  align-items: center;
  justify-content: center;
  margin-top: 0.15rem;
  color: var(--success);
  background: rgba(22, 132, 91, 0.11);
  border-radius: 50%;
}

/* Security callout */
.security-callout {
  display: grid;
  padding: clamp(1.5rem, 5vw, 3rem);
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  color: #5e3606;
  background: linear-gradient(135deg, #fff7ec, #fff0db);
  border: 1px solid #ffd4a5;
  border-radius: var(--radius-lg);
}

.security-callout__icon {
  display: flex;
  width: 74px;
  height: 74px;
  align-items: center;
  justify-content: center;
  color: #8a4700;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid #ffd4a5;
  border-radius: 22px;
}

.security-callout h2,
.security-callout h3 {
  color: #673500;
}

.security-callout p {
  margin-bottom: 0;
}

/* Logo cloud */
.logo-cloud {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
}

.logo-pill {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  color: var(--slate-600);
  font-weight: 800;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.logo-pill:hover {
  color: var(--brand-blue);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

/* CTA */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4.3rem);
  color: rgba(255, 255, 255, 0.82);
  background:
    radial-gradient(circle at 12% 20%, rgba(24, 167, 214, 0.34), transparent 32%),
    radial-gradient(circle at 90% 90%, rgba(245, 123, 32, 0.32), transparent 34%),
    linear-gradient(135deg, var(--navy-950), var(--navy-800));
  border-radius: var(--radius-xl);
}

.cta-band::after {
  position: absolute;
  width: 300px;
  height: 300px;
  right: -120px;
  bottom: -180px;
  content: "";
  border: 45px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.cta-band__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
}

.cta-band h2 {
  max-width: 680px;
  margin-bottom: 0.8rem;
  color: var(--white);
}

.cta-band p {
  max-width: 680px;
  margin-bottom: 0;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

/* Page hero */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.4rem, 7vw, 6rem);
  background:
    radial-gradient(circle at 85% 20%, rgba(245, 123, 32, 0.18), transparent 28%),
    radial-gradient(circle at 15% 90%, rgba(24, 167, 214, 0.16), transparent 32%),
    linear-gradient(180deg, #fafdff, #f2f8fb);
  border-bottom: 1px solid var(--border);
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.45rem);
}

.page-hero p {
  max-width: 760px;
  color: var(--slate-600);
  font-size: clamp(1.02rem, 2vw, 1.22rem);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 1.2rem;
  color: var(--slate-500);
  font-size: 0.86rem;
}

.breadcrumbs a {
  color: var(--brand-blue);
  font-weight: 700;
  text-decoration: none;
}

.breadcrumbs .icon {
  width: 0.8rem;
  height: 0.8rem;
}

html[dir="rtl"] .breadcrumbs .icon {
  transform: scaleX(-1);
}

/* Service detail */
.service-detail {
  display: grid;
  padding: clamp(1.4rem, 4vw, 2.2rem);
  grid-template-columns: 72px 1fr;
  gap: 1.2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 34px rgba(4, 36, 59, 0.05);
}

.service-detail__icon {
  display: flex;
  width: 66px;
  height: 66px;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
  background: #edf7fc;
  border: 1px solid #d5eaf5;
  border-radius: 20px;
}

.service-detail:nth-child(2n) .service-detail__icon {
  color: var(--brand-orange-dark);
  background: #fff2e8;
  border-color: #ffddc3;
}

.service-detail p {
  color: var(--muted);
}

.service-detail ul {
  margin-bottom: 0;
  color: var(--slate-700);
}

.service-detail li + li {
  margin-top: 0.35rem;
}

/* Feature matrix */
.feature-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-tile {
  min-height: 100%;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.feature-tile p {
  color: var(--muted);
}

/* Agent locator */
.locator-shell {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.locator-toolbar {
  display: grid;
  padding: 1.2rem;
  grid-template-columns: minmax(240px, 1.8fr) minmax(180px, 0.8fr) auto;
  gap: 0.8rem;
  align-items: end;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}

.field {
  display: flex;
  gap: 0.42rem;
  flex-direction: column;
}

.field label {
  color: var(--navy-800);
  font-size: 0.82rem;
  font-weight: 800;
}

.input-wrap {
  position: relative;
}

.input-wrap .icon {
  position: absolute;
  top: 50%;
  inset-inline-start: 0.9rem;
  width: 1.1rem;
  color: var(--slate-500);
  transform: translateY(-50%);
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  color: var(--navy-900);
  background: var(--white);
  border: 1px solid var(--slate-300);
  border-radius: 12px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.input-wrap .input {
  padding-inline-start: 2.75rem;
}

.textarea {
  min-height: 145px;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--brand-blue);
  outline: none;
  box-shadow: 0 0 0 4px rgba(11, 95, 158, 0.1);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--slate-400);
}

.locator-summary {
  display: flex;
  padding: 0.85rem 1.2rem;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.agent-list {
  display: grid;
  gap: 0;
}

.agent-row {
  display: grid;
  padding: 1.05rem 1.2rem;
  grid-template-columns: minmax(180px, 1.2fr) minmax(150px, 0.7fr) minmax(260px, 1.5fr) minmax(120px, 0.55fr);
  gap: 1rem;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.agent-row:last-child {
  border-bottom: 0;
}

.agent-row:hover {
  background: #f9fcfd;
}

.agent-row__business {
  color: var(--navy-900);
  font-weight: 800;
}

.agent-row__name,
.agent-row__address,
.agent-row__province {
  color: var(--muted);
  font-size: 0.9rem;
}

.agent-row__address {
  line-height: 1.45;
}

.agent-row__province {
  display: inline-flex;
  width: fit-content;
  padding: 0.3rem 0.55rem;
  color: var(--brand-blue);
  font-weight: 750;
  background: rgba(11, 95, 158, 0.07);
  border-radius: 999px;
}

.agent-empty {
  padding: 4rem 1rem;
  color: var(--muted);
  text-align: center;
}

.pagination {
  display: flex;
  padding: 1rem 1.2rem;
  gap: 0.55rem;
  align-items: center;
  justify-content: center;
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
}

.pagination button {
  display: inline-flex;
  min-width: 39px;
  height: 39px;
  align-items: center;
  justify-content: center;
  color: var(--navy-800);
  background: var(--white);
  border: 1px solid var(--slate-300);
  border-radius: 10px;
  cursor: pointer;
}

.pagination button:hover:not(:disabled),
.pagination button[aria-current="page"] {
  color: var(--white);
  background: var(--brand-blue);
  border-color: var(--brand-blue);
}

.pagination button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.data-notice {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  color: var(--slate-700);
  font-size: 0.86rem;
  background: #f7fafb;
  border: 1px solid var(--border);
  border-radius: 12px;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.faq-item[open] {
  border-color: rgba(11, 95, 158, 0.32);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  display: flex;
  min-height: 64px;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  color: var(--navy-900);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  content: "+";
  color: var(--brand-blue);
  font-size: 1.4rem;
  line-height: 19px;
  text-align: center;
  border: 1px solid rgba(11, 95, 158, 0.3);
  border-radius: 50%;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item__content {
  padding: 0 1.15rem 1.15rem;
  color: var(--muted);
}

.faq-item__content p:last-child,
.faq-item__content ul:last-child {
  margin-bottom: 0;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 1.5rem;
  align-items: start;
}

.contact-cards {
  display: grid;
  gap: 0.9rem;
}

.contact-card {
  display: grid;
  padding: 1.15rem;
  grid-template-columns: 48px 1fr;
  gap: 0.85rem;
  color: inherit;
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.contact-card:hover {
  color: inherit;
  border-color: rgba(11, 95, 158, 0.3);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.contact-card__icon {
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
  background: #edf7fc;
  border-radius: 15px;
}

.contact-card h3 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.contact-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-card {
  padding: clamp(1.25rem, 4vw, 2rem);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

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

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

.field-error {
  color: var(--danger);
  font-size: 0.8rem;
}

.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
}

.form-status.is-visible {
  display: block;
}

.form-status--success {
  color: #0e6544;
  background: #e9f8f1;
  border: 1px solid #bce8d5;
}

.form-status--error {
  color: #8e1b1b;
  background: #fff0f0;
  border: 1px solid #f1c4c4;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* Alert and security content */
.alert {
  display: grid;
  padding: 1.1rem;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
  border-radius: 16px;
}

.alert--warning {
  color: #673500;
  background: #fff4e5;
  border: 1px solid #ffd19a;
}

.alert--info {
  color: #17445f;
  background: #edf8fd;
  border: 1px solid #cceaf6;
}

.alert--danger {
  color: #761e1e;
  background: #fff0f0;
  border: 1px solid #efc1c1;
}

.alert h3,
.alert h4 {
  color: inherit;
}

.alert p:last-child {
  margin-bottom: 0;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.security-tip {
  padding: 1.4rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.security-tip__icon {
  display: flex;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  color: var(--brand-orange-dark);
  background: #fff2e8;
  border-radius: 15px;
}

.security-tip p {
  margin-bottom: 0;
  color: var(--muted);
}

/* Timeline */
.timeline {
  position: relative;
  display: grid;
  gap: 1.2rem;
  padding-inline-start: 1.6rem;
}

.timeline::before {
  position: absolute;
  top: 0.4rem;
  bottom: 0.4rem;
  inset-inline-start: 0.34rem;
  width: 2px;
  content: "";
  background: var(--slate-200);
}

.timeline-item {
  position: relative;
  padding: 0 0 0.2rem 1rem;
}

html[dir="rtl"] .timeline-item {
  padding: 0 1rem 0.2rem 0;
}

.timeline-item::before {
  position: absolute;
  top: 0.42rem;
  inset-inline-start: -1.67rem;
  width: 14px;
  height: 14px;
  content: "";
  background: var(--brand-orange);
  border: 4px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--brand-orange);
}

.timeline-item strong {
  display: block;
  color: var(--brand-blue);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

html[dir="rtl"] .timeline-item strong {
  letter-spacing: 0;
}

.timeline-item p {
  color: var(--muted);
}

/* Legal */
.legal-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
  padding: 1rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.legal-nav strong {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--navy-900);
}

.legal-nav a {
  display: block;
  padding: 0.4rem 0.5rem;
  color: var(--slate-600);
  font-size: 0.88rem;
  text-decoration: none;
  border-radius: 8px;
}

.legal-nav a:hover {
  color: var(--brand-blue);
  background: var(--white);
}

.legal-content {
  min-width: 0;
}

.legal-content h2 {
  margin-top: 2.5rem;
  padding-top: 0.5rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  margin-top: 1.7rem;
  font-size: 1.2rem;
}

.legal-content p,
.legal-content li {
  color: var(--slate-700);
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Download page */
.download-page {
  min-height: calc(100vh - var(--header-height));
  display: grid;
  place-items: center;
  padding: 3rem 1rem;
  background:
    radial-gradient(circle at 15% 10%, rgba(24, 167, 214, 0.18), transparent 30%),
    radial-gradient(circle at 90% 85%, rgba(245, 123, 32, 0.2), transparent 30%),
    var(--surface-alt);
}

.download-card {
  width: min(100%, 900px);
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.download-card__qr {
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 22px;
}

/* Footer */
.site-footer {
  color: rgba(255, 255, 255, 0.72);
  background: var(--navy-950);
}

.site-footer__main {
  padding-block: 4.5rem 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 0.85fr 1fr;
  gap: 2rem;
}

.footer-brand img {
  width: 200px;
  padding: 0.35rem;
  background: var(--white);
  border-radius: 12px;
}

.footer-brand p {
  max-width: 390px;
  margin-top: 1rem;
}

.site-footer h3 {
  margin-bottom: 1rem;
  color: var(--white);
  font-size: 1rem;
  letter-spacing: 0;
}

.footer-links {
  display: grid;
  gap: 0.52rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-contact {
  display: grid;
  gap: 0.72rem;
}

.footer-contact a,
.footer-contact span {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--white);
}

.footer-contact .icon {
  margin-top: 0.2rem;
}

.site-footer__bottom {
  padding-block: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom__inner {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--white);
}

/* Toast and back to top */
.toast {
  position: fixed;
  z-index: 2000;
  right: 1rem;
  bottom: 1rem;
  max-width: 340px;
  padding: 0.85rem 1rem;
  color: var(--white);
  background: var(--navy-950);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 13px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: opacity var(--transition), transform var(--transition);
}

html[dir="rtl"] .toast {
  right: auto;
  left: 1rem;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top {
  position: fixed;
  z-index: 900;
  right: 1rem;
  bottom: 1rem;
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--brand-blue);
  border: 0;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
}

html[dir="rtl"] .back-to-top {
  right: auto;
  left: 1rem;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--brand-orange);
}

/* Reveal animation: content remains visible when JavaScript is unavailable. */
.reveal {
  opacity: 1;
  transform: none;
}

html.motion-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms ease;
}

html.motion-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Utility */
.inline-icon {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
}

.divider {
  height: 1px;
  margin-block: 2rem;
  background: var(--border);
  border: 0;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.callout-number {
  display: inline-flex;
  padding: 0.5rem 0.8rem;
  color: var(--brand-orange-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.1rem;
  font-weight: 850;
  background: #fff1e5;
  border: 1px solid #ffd9bb;
  border-radius: 10px;
}

/* Responsive */
@media (max-width: 1120px) {
  .primary-nav a {
    padding-inline: 0.52rem;
    font-size: 0.87rem;
  }

  .brand {
    width: 165px;
  }

  .nav-actions .btn {
    display: none;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(350px, 0.85fr);
    gap: 2rem;
  }

  .hero-visual {
    min-height: 560px;
    transform: scale(0.92);
  }

  .logo-cloud {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  :root {
    --header-height: 70px;
  }

  .top-strip {
    display: none;
  }

  .navbar {
    min-height: var(--header-height);
    grid-template-columns: auto 1fr auto;
  }

  .primary-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-panel {
    position: fixed;
    z-index: 1100;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    padding: 1rem;
    background: rgba(4, 31, 53, 0.48);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
  }

  .mobile-panel.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-panel__inner {
    width: min(100%, 430px);
    height: fit-content;
    max-height: calc(100vh - var(--header-height) - 2rem);
    margin-inline-start: auto;
    padding: 1rem;
    overflow-y: auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow-lg);
    transform: translateX(20px);
    transition: transform var(--transition);
  }

  html[dir="rtl"] .mobile-panel__inner {
    margin-inline-start: 0;
    margin-inline-end: auto;
    transform: translateX(-20px);
  }

  .mobile-panel.is-open .mobile-panel__inner {
    transform: translateX(0);
  }

  .mobile-nav {
    display: grid;
    gap: 0.3rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
  }

  .mobile-nav a {
    display: flex;
    min-height: 48px;
    align-items: center;
    padding: 0.7rem 0.85rem;
    color: var(--navy-800);
    font-weight: 750;
    text-decoration: none;
    border-radius: 12px;
  }

  .mobile-nav a:hover,
  .mobile-nav a[aria-current="page"] {
    color: var(--brand-blue);
    background: var(--slate-100);
  }

  .mobile-panel .btn {
    width: 100%;
  }

  .hero__grid,
  .channels-layout,
  .split,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero__copy {
    max-width: 760px;
  }

  .hero-visual {
    min-height: 590px;
  }

  .grid--4,
  .grid--3,
  .feature-matrix,
  .security-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .channels-layout .app-showcase {
    order: -1;
  }

  .cta-band__grid {
    grid-template-columns: 1fr;
  }

  .cta-band__actions {
    justify-content: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-grid > :last-child {
    grid-column: 1 / -1;
  }

  .agent-row {
    grid-template-columns: minmax(180px, 1fr) minmax(150px, 0.75fr) minmax(220px, 1.4fr);
  }

  .agent-row__province {
    grid-column: 1 / -1;
  }

  .legal-shell {
    grid-template-columns: 1fr;
  }

  .legal-nav {
    position: static;
  }
}

@media (max-width: 720px) {
  .container,
  .container--narrow {
    width: min(calc(100% - 1.25rem), var(--container));
  }

  .brand {
    width: 145px;
  }

  .language__button span:not(.lang-code) {
    display: none;
  }

  .hero {
    padding-top: 3.2rem;
  }

  .hero__actions,
  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .hero__actions .btn,
  .button-row .btn {
    width: 100%;
  }

  .hero-visual {
    min-height: 545px;
    margin-top: 1rem;
    transform: scale(0.84);
    transform-origin: top center;
  }

  .floating-card--top {
    inset-inline-start: -28px;
  }

  .floating-card--bottom {
    right: -28px;
  }

  .stat-strip {
    margin-top: -4rem;
  }

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

  .stat:nth-child(2) {
    border-inline-end: 0;
  }

  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }

  .grid--4,
  .grid--3,
  .grid--2,
  .feature-matrix,
  .security-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .steps::before {
    top: 45px;
    right: auto;
    bottom: 45px;
    left: 33px;
    width: 1px;
    height: auto;
    background: var(--slate-300);
  }

  html[dir="rtl"] .steps::before {
    right: 33px;
    left: auto;
  }

  .step {
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 1rem;
    text-align: start;
  }

  .step__number {
    grid-row: span 2;
  }

  .step p {
    margin-inline: 0;
  }

  .app-showcase {
    min-height: 590px;
  }

  .app-showcase__content {
    max-width: 100%;
  }

  .app-showcase__phone {
    right: 50%;
    bottom: -190px;
    transform: translateX(50%) rotate(4deg);
  }

  html[dir="rtl"] .app-showcase__phone {
    right: 50%;
    left: auto;
    transform: translateX(50%) rotate(-4deg);
  }

  .media-frame__badge {
    position: static;
    max-width: none;
    margin-top: 0.8rem;
  }

  .security-callout {
    grid-template-columns: auto 1fr;
  }

  .security-callout .btn {
    grid-column: 1 / -1;
  }

  .logo-cloud {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .footer-brand,
  .footer-grid > :last-child {
    grid-column: 1 / -1;
  }

  .footer-bottom__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .locator-toolbar {
    grid-template-columns: 1fr;
  }

  .agent-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .agent-row__province {
    grid-column: auto;
  }

  .locator-summary {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .form-grid .field--full {
    grid-column: auto;
  }

  .service-detail {
    grid-template-columns: 1fr;
  }

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

  .download-card__qr {
    width: min(100%, 320px);
    margin-inline: auto;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .nav-actions {
    gap: 0.35rem;
  }

  .icon-button,
  .language__button {
    min-width: 40px;
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    justify-content: center;
  }

  .language__button .icon:last-child {
    display: none;
  }

  .hero-visual {
    margin-inline: -1.2rem;
    transform: scale(0.72);
  }

  .stat-strip {
    margin-top: -7.5rem;
  }

  .card,
  .feature-tile,
  .security-tip {
    padding: 1.2rem;
  }

  .service-detail {
    padding: 1.2rem;
  }

  .logo-cloud {
    grid-template-columns: 1fr 1fr;
  }

  .logo-pill {
    min-height: 66px;
    font-size: 0.82rem;
  }

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

  .footer-brand,
  .footer-grid > :last-child {
    grid-column: auto;
  }

  .cta-band {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .top-strip,
  .notice-bar,
  .site-footer,
  .back-to-top,
  .btn,
  .mobile-panel,
  .locator-toolbar,
  .pagination {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .section,
  .page-hero {
    padding-block: 1rem;
  }

  .card,
  .service-detail,
  .legal-nav,
  .locator-shell {
    box-shadow: none;
  }

  a {
    color: #000;
    text-decoration: none;
  }
}

/* CSP-safe layout utilities used by standalone and call-to-action pages */
.download-card--single {
  grid-template-columns: 1fr;
}

.text-center {
  text-align: center;
}

.standalone-mark {
  width: 130px;
  margin: 0 auto 1.5rem;
}

.standalone-logo {
  width: 220px;
  margin-bottom: 1.5rem;
}

.display-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.button-row--center {
  justify-content: center;
}

.button-row--section-space {
  margin-top: 2rem;
}

.button-row--compact-space {
  margin-top: 1.2rem;
}

.timeline--spaced {
  margin-top: 1.5rem;
}

.alert--spaced {
  margin-top: 1rem;
}

.qr-caption {
  margin-bottom: 0;
  text-align: center;
}


@media (max-width: 1120px) {
  .wallet-device {
    width: 266px;
  }

  .hero-orbit--outer {
    width: 480px;
    height: 480px;
  }

  .hero-orbit--inner {
    width: 380px;
    height: 380px;
  }
}

@media (max-width: 720px) {
  .wallet-device {
    width: 272px;
    cursor: default;
  }

  .hero-visual[data-wallet-tilt]::before {
    bottom: 40px;
  }

  .hero-orbit--outer {
    width: 485px;
    height: 485px;
  }

  .hero-orbit--inner {
    width: 385px;
    height: 385px;
  }
}

@media (max-width: 480px) {
  .wallet-device {
    width: 278px;
  }

  .hero-spark--one {
    right: 58px;
  }

  .hero-spark--two {
    left: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual[data-wallet-tilt] .hero-visual__halo,
  .hero-orbit,
  .hero-spark,
  .wallet-device-float,
  .hero-visual[data-wallet-tilt] .floating-card {
    animation: none !important;
  }

  .wallet-device,
  .wallet-device__image,
  .wallet-device__reflection,
  .hero-visual[data-wallet-tilt] .floating-card {
    transition: none !important;
  }
}

/* ========================================================================== 
   V3 — iPhone 16 Pro Poolam experience
   Original motion system: continuous float, depth parallax, cursor tilt,
   screen lift and magnification. The same device is reused in both home views.
   ========================================================================== */

.iphone-stage {
  --scene-x: 0px;
  --scene-y: 0px;
  --scene-progress-x: 0;
  --scene-progress-y: 0;
  position: relative;
  perspective: 1550px;
  perspective-origin: 50% 42%;
  isolation: isolate;
  transform-style: preserve-3d;
  touch-action: pan-y;
}

.iphone-stage--hero::before {
  position: absolute;
  z-index: 0;
  right: 50%;
  bottom: 18px;
  width: 390px;
  height: 100px;
  content: "";
  background: radial-gradient(ellipse, rgba(4, 31, 53, 0.42), rgba(4, 31, 53, 0) 70%);
  filter: blur(15px);
  opacity: 0.74;
  transform: translateX(50%) translateZ(-60px);
  pointer-events: none;
}

.iphone-stage .hero-visual__halo {
  animation: iphone-halo-breathe 5.6s ease-in-out infinite;
}

.iphone-stage .floating-card {
  transition: box-shadow 260ms ease, filter 260ms ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.iphone-stage .floating-card--top {
  animation: iphone-card-top 5.2s ease-in-out infinite;
}

.iphone-stage .floating-card--bottom {
  animation: iphone-card-bottom 5.8s 0.7s ease-in-out infinite;
}

.iphone-stage.is-iphone-active .floating-card {
  box-shadow: 0 28px 62px rgba(4, 36, 59, 0.22);
  filter: saturate(1.08);
}

.iphone-float {
  position: relative;
  z-index: 3;
  transform-style: preserve-3d;
  will-change: transform;
}

.iphone-float--hero {
  animation: iphone-hero-float 7.2s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.iphone-device {
  --phone-x: 0px;
  --phone-y: 0px;
  --phone-z: 42px;
  --phone-rx: 1deg;
  --phone-ry: -8deg;
  --phone-rz: -2.5deg;
  --phone-scale: 1;
  --screen-x: 0px;
  --screen-y: 0px;
  --screen-z: 0px;
  --screen-scale: 1.002;
  --origin-x: 50%;
  --origin-y: 50%;
  --shine-x: 35%;
  --shine-y: 18%;
  position: relative;
  width: 302px;
  cursor: zoom-in;
  transform:
    translate3d(var(--phone-x), var(--phone-y), var(--phone-z))
    rotateX(var(--phone-rx))
    rotateY(var(--phone-ry))
    rotateZ(var(--phone-rz))
    scale(var(--phone-scale));
  transform-style: preserve-3d;
  transition: filter 220ms ease;
  filter: drop-shadow(0 26px 34px rgba(4, 31, 53, 0.18));
  will-change: transform;
}

.iphone-stage.is-iphone-active .iphone-device {
  filter: drop-shadow(0 44px 48px rgba(4, 31, 53, 0.28)) saturate(1.06) contrast(1.025);
}

.iphone-device__shell {
  position: relative;
  padding: 5px;
  background:
    linear-gradient(115deg, rgba(255,255,255,0.92) 0%, rgba(168,180,188,0.96) 9%, #3d4b54 25%, #0a1116 51%, #52616a 78%, rgba(232,238,241,0.9) 94%, #28343b 100%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 51px;
  box-shadow:
    0 55px 115px rgba(4, 31, 53, 0.38),
    0 18px 38px rgba(11, 95, 158, 0.22),
    inset 0 0 0 1px rgba(255,255,255,0.42),
    inset 0 -2px 5px rgba(0,0,0,0.75);
  transform: translateZ(30px);
  transform-style: preserve-3d;
}

.iphone-device__bezel {
  position: relative;
  padding: 8px;
  overflow: hidden;
  background: #020609;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 47px;
  box-shadow: inset 0 0 0 1px #000, inset 0 0 22px rgba(0,0,0,0.92);
  transform: translateZ(8px);
  transform-style: preserve-3d;
}

.iphone-device__screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 500 / 1080;
  background: #f7fafc;
  border-radius: 39px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.28);
  transform: translateZ(12px);
  transform-style: preserve-3d;
}

.iphone-device__screen picture {
  display: block;
  width: 100%;
  height: 100%;
}

.iphone-device__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  transform:
    translate3d(var(--screen-x), var(--screen-y), var(--screen-z))
    scale(var(--screen-scale));
  transform-origin: var(--origin-x) var(--origin-y);
  transition: filter 220ms ease;
  will-change: transform;
}

.iphone-stage.is-screen-hover .iphone-device__image {
  filter: saturate(1.09) contrast(1.035) brightness(1.025);
}

.iphone-device__screen-depth {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.22),
    inset 0 -24px 45px rgba(1, 19, 32, 0.08),
    inset 0 18px 30px rgba(255,255,255,0.05);
  transform: translateZ(24px);
}

.iphone-device__shine {
  position: absolute;
  z-index: 4;
  inset: -45%;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--shine-x) var(--shine-y), rgba(255,255,255,0.4), transparent 18%),
    linear-gradient(112deg, transparent 34%, rgba(255,255,255,0.02) 40%, rgba(255,255,255,0.28) 48%, rgba(255,255,255,0.03) 56%, transparent 63%);
  mix-blend-mode: screen;
  opacity: 0.25;
  transform: translate3d(-18%, 0, 58px) rotate(7deg);
  transition: opacity 220ms ease;
}

.iphone-stage.is-iphone-active .iphone-device__shine {
  opacity: 0.62;
}

.iphone-device__spotlight {
  position: absolute;
  z-index: 3;
  width: 145px;
  height: 145px;
  left: var(--shine-x);
  top: var(--shine-y);
  pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,0.13), rgba(24,167,214,0.07) 35%, transparent 68%);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  opacity: 0;
  filter: blur(0.2px);
  transform: translate(-50%, -50%) translateZ(70px) scale(0.65);
  transition: opacity 180ms ease, transform 220ms ease;
}

.iphone-stage.is-screen-hover .iphone-device__spotlight {
  opacity: 0.9;
  transform: translate(-50%, -50%) translateZ(70px) scale(1);
}

.iphone-device__dynamic-island {
  position: absolute;
  z-index: 8;
  top: 19px;
  left: 50%;
  width: 92px;
  height: 26px;
  overflow: hidden;
  background: linear-gradient(180deg, #020304, #080b0d);
  border: 1px solid rgba(255,255,255,0.045);
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.55), inset 0 0 0 1px #000;
  transform: translateX(-50%) translateZ(70px);
  pointer-events: none;
}

.iphone-device__dynamic-island i,
.iphone-device__dynamic-island b {
  position: absolute;
  top: 50%;
  border-radius: 50%;
  transform: translateY(-50%);
}

.iphone-device__dynamic-island i {
  right: 9px;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle at 35% 35%, #1c557a, #07131e 55%, #000 72%);
  box-shadow: 0 0 5px rgba(50,153,218,0.35);
}

.iphone-device__dynamic-island b {
  left: 12px;
  width: 42px;
  height: 5px;
  background: #06090b;
  box-shadow: inset 0 0 2px rgba(255,255,255,0.08);
}

.iphone-device__edge-light {
  position: absolute;
  z-index: 9;
  inset: 2px;
  pointer-events: none;
  border-radius: 49px;
  box-shadow:
    inset 2px 2px 2px rgba(255,255,255,0.42),
    inset -2px -2px 3px rgba(0,0,0,0.48);
  transform: translateZ(42px);
}

.iphone-device__button {
  position: absolute;
  z-index: 0;
  width: 5px;
  background: linear-gradient(180deg, #8c989f, #242e34 45%, #11171b);
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: -3px 3px 8px rgba(4,31,53,0.24);
  transform: translateZ(5px);
}

.iphone-device__button--action {
  top: 102px;
  left: -4px;
  height: 30px;
  border-radius: 4px 0 0 4px;
}

.iphone-device__button--volume-up {
  top: 155px;
  left: -4px;
  height: 57px;
  border-radius: 4px 0 0 4px;
}

.iphone-device__button--volume-down {
  top: 224px;
  left: -4px;
  height: 57px;
  border-radius: 4px 0 0 4px;
}

.iphone-device__button--power {
  top: 172px;
  right: -4px;
  height: 86px;
  border-radius: 0 4px 4px 0;
  box-shadow: 3px 3px 8px rgba(4,31,53,0.24);
}

.iphone-pulse {
  position: absolute;
  z-index: 1;
  width: 74px;
  height: 74px;
  pointer-events: none;
  border: 1px solid rgba(24,167,214,0.25);
  border-radius: 50%;
  box-shadow: 0 0 0 12px rgba(24,167,214,0.05), 0 0 0 24px rgba(24,167,214,0.025);
}

.iphone-pulse::before {
  position: absolute;
  inset: 21px;
  content: "";
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(11,95,158,0.25);
}

.iphone-pulse--one {
  top: 182px;
  left: 32px;
  animation: iphone-pulse-float 5s ease-in-out infinite;
}

.iphone-pulse--two {
  right: 25px;
  bottom: 172px;
  width: 55px;
  height: 55px;
  animation: iphone-pulse-float 5.6s 1.2s ease-in-out infinite reverse;
}

.iphone-pulse--two::before {
  inset: 16px;
  background: linear-gradient(135deg, #f57b20, #ffb35f);
}

.iphone-hint {
  position: absolute;
  z-index: 6;
  right: 50%;
  bottom: 4px;
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  padding: 0.5rem 0.78rem;
  color: rgba(4,31,53,0.72);
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(220,231,237,0.84);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(4,31,53,0.1);
  backdrop-filter: blur(10px);
  transform: translateX(50%);
  transition: opacity 250ms ease, transform 250ms ease;
  pointer-events: none;
}

.iphone-hint span {
  width: 8px;
  height: 8px;
  background: var(--brand-orange);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(245,123,32,0.13);
  animation: iphone-hint-pulse 1.8s ease-in-out infinite;
}

.iphone-stage.is-iphone-active .iphone-hint {
  opacity: 0;
  transform: translateX(50%) translateY(8px);
}

/* Reuse the exact same iPhone 16 device in the lower app panel. */
.app-showcase__phone.iphone-stage--showcase {
  position: absolute;
  z-index: 1;
  right: 3.5%;
  bottom: -148px;
  width: 292px;
  height: 660px;
  transform: none;
}

html[dir="rtl"] .app-showcase__phone.iphone-stage--showcase {
  right: auto;
  left: 3.5%;
  transform: none;
}

.iphone-stage--showcase .iphone-float {
  animation: iphone-showcase-float 7.8s ease-in-out infinite;
}

.iphone-stage--showcase .iphone-device {
  width: 272px;
  --phone-ry: 7deg;
  --phone-rz: 5deg;
}

.iphone-stage--showcase.is-iphone-active .iphone-device {
  z-index: 5;
}

.showcase-orbit {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 50%;
}

.showcase-orbit::before {
  position: absolute;
  content: "";
  width: 10px;
  height: 10px;
  background: var(--brand-orange);
  border: 2px solid rgba(255,255,255,0.85);
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(245,123,32,0.4);
}

.showcase-orbit--one {
  inset: 84px -42px 92px -42px;
  animation: wallet-orbit 18s linear infinite;
}

.showcase-orbit--one::before {
  top: 55px;
  right: 12px;
}

.showcase-orbit--two {
  inset: 132px 5px 142px 5px;
  border-style: dashed;
  animation: wallet-orbit-reverse 13s linear infinite;
}

.showcase-orbit--two::before {
  bottom: 28px;
  left: 22px;
  width: 7px;
  height: 7px;
  background: var(--brand-cyan);
}

@keyframes iphone-hero-float {
  0%, 100% { transform: translate3d(0, 7px, 0) rotateZ(-0.7deg); }
  25% { transform: translate3d(7px, -6px, 0) rotateZ(0.6deg); }
  50% { transform: translate3d(0, -18px, 0) rotateZ(1.2deg); }
  75% { transform: translate3d(-7px, -5px, 0) rotateZ(-0.2deg); }
}

@keyframes iphone-showcase-float {
  0%, 100% { transform: translate3d(0, 3px, 0) rotateZ(0deg); }
  50% { transform: translate3d(-7px, -18px, 0) rotateZ(-1.3deg); }
}

@keyframes iphone-halo-breathe {
  0%, 100% { opacity: 0.76; transform: scale(0.94) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.075) rotate(5deg); }
}

@keyframes iphone-card-top {
  0%, 100% { transform: translate3d(var(--depth-x, 0px), var(--depth-y, 0px), 72px) rotate(-2deg); }
  50% { transform: translate3d(calc(var(--depth-x, 0px) + 8px), calc(var(--depth-y, 0px) - 15px), 96px) rotate(1deg); }
}

@keyframes iphone-card-bottom {
  0%, 100% { transform: translate3d(var(--depth-x, 0px), var(--depth-y, 0px), 84px) rotate(2deg); }
  50% { transform: translate3d(calc(var(--depth-x, 0px) - 9px), calc(var(--depth-y, 0px) + 13px), 108px) rotate(-1deg); }
}

@keyframes iphone-pulse-float {
  0%, 100% { opacity: 0.5; transform: translateY(0) scale(0.88); }
  50% { opacity: 1; transform: translateY(-16px) scale(1.08); }
}

@keyframes iphone-hint-pulse {
  0%, 100% { transform: scale(0.84); opacity: 0.65; }
  50% { transform: scale(1.16); opacity: 1; }
}

@media (max-width: 1120px) {
  .iphone-device--hero { width: 286px; }
  .app-showcase__phone.iphone-stage--showcase { right: 1%; }
  html[dir="rtl"] .app-showcase__phone.iphone-stage--showcase { right: auto; left: 1%; }
}

@media (max-width: 960px) {
  .iphone-device--hero { width: 300px; }
  .app-showcase__phone.iphone-stage--showcase { right: 6%; }
  html[dir="rtl"] .app-showcase__phone.iphone-stage--showcase { right: auto; left: 6%; }
}

@media (max-width: 720px) {
  .iphone-device { cursor: default; }
  .iphone-device--hero { width: 304px; }
  .iphone-hint { display: none; }
  .iphone-pulse--one { left: 8px; }
  .iphone-pulse--two { right: 5px; }

  .app-showcase {
    min-height: 760px;
  }

  .app-showcase__phone.iphone-stage--showcase,
  html[dir="rtl"] .app-showcase__phone.iphone-stage--showcase {
    right: 50%;
    left: auto;
    bottom: -150px;
    width: 300px;
    height: 670px;
    transform: translateX(50%);
  }

  .iphone-stage--showcase .iphone-device { width: 276px; }
}

@media (max-width: 480px) {
  .iphone-device--hero { width: 292px; }
  .hero-visual { min-height: 610px; }
  .iphone-pulse { display: none; }
  .floating-card--top { inset-inline-start: -18px; }
  .floating-card--bottom { right: -18px; }
  .app-showcase { min-height: 730px; }
}

@media (prefers-reduced-motion: reduce) {
  .iphone-stage .hero-visual__halo,
  .iphone-stage .floating-card,
  .iphone-float,
  .iphone-pulse,
  .iphone-hint span,
  .showcase-orbit {
    animation: none !important;
  }

  .iphone-device,
  .iphone-device__image,
  .iphone-device__shine,
  .iphone-device__spotlight,
  .iphone-hint {
    transition: none !important;
  }
}

.iphone-stage.is-screen-hover .iphone-float {
  z-index: 8;
}

.app-showcase__phone.iphone-stage--showcase.is-iphone-active {
  z-index: 4;
}

/* Refined lower-panel proportions: preserve the copy while keeping the device prominent. */
@media (min-width: 721px) {
  .app-showcase__phone.iphone-stage--showcase {
    right: 2.5%;
    bottom: -116px;
    width: 252px;
    height: 610px;
  }

  html[dir="rtl"] .app-showcase__phone.iphone-stage--showcase {
    right: auto;
    left: 2.5%;
  }

  .iphone-stage--showcase .iphone-device {
    width: 232px;
  }
}

@media (min-width: 721px) {
  body[data-page="home"] .app-showcase__content {
    max-width: 48%;
  }
}
/* --------------------------------------------------------------------------
   V8 interface system: compact header, dual-mode glass UI and partner marquee
   -------------------------------------------------------------------------- */

:root {
  --header-height: 66px;
  --glass-surface: rgba(255, 255, 255, 0.62);
  --glass-surface-strong: rgba(255, 255, 255, 0.82);
  --glass-surface-soft: rgba(247, 251, 253, 0.48);
  --glass-border: rgba(255, 255, 255, 0.78);
  --glass-border-muted: rgba(122, 166, 191, 0.25);
  --glass-shadow: 0 20px 55px rgba(4, 36, 59, 0.11);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  --page-glow-one: rgba(24, 167, 214, 0.18);
  --page-glow-two: rgba(245, 123, 32, 0.13);
  --page-glow-three: rgba(81, 91, 212, 0.09);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --brand-blue: #51baf0;
  --brand-blue-2: #64cef4;
  --brand-cyan: #43c8ec;
  --brand-orange: #ff923f;
  --brand-orange-dark: #ffae6b;
  --navy-900: #f3f9fc;
  --navy-800: #dcecf5;
  --navy-700: #bdd4e1;
  --slate-700: #bed0db;
  --slate-600: #a4bac7;
  --slate-500: #8fa7b5;
  --slate-400: #7892a1;
  --slate-300: #355268;
  --slate-200: #234055;
  --slate-100: #122f43;
  --slate-50: #0d2639;
  --text: #e1edf5;
  --muted: #a8bdc9;
  --surface: #061725;
  --surface-alt: #0a2133;
  --border: rgba(137, 184, 210, 0.2);
  --shadow-sm: 0 10px 28px rgba(0, 0, 0, 0.27);
  --shadow-md: 0 22px 58px rgba(0, 0, 0, 0.33);
  --shadow-lg: 0 36px 90px rgba(0, 0, 0, 0.4);
  --glass-surface: rgba(11, 35, 53, 0.58);
  --glass-surface-strong: rgba(12, 39, 59, 0.8);
  --glass-surface-soft: rgba(13, 44, 65, 0.42);
  --glass-border: rgba(165, 213, 238, 0.18);
  --glass-border-muted: rgba(132, 188, 217, 0.18);
  --glass-shadow: 0 24px 62px rgba(0, 0, 0, 0.32);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --page-glow-one: rgba(20, 146, 205, 0.2);
  --page-glow-two: rgba(245, 123, 32, 0.12);
  --page-glow-three: rgba(103, 91, 255, 0.1);
}

body {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  background:
    radial-gradient(circle at 8% 12%, var(--page-glow-one), transparent 30rem),
    radial-gradient(circle at 92% 28%, var(--page-glow-two), transparent 27rem),
    radial-gradient(circle at 45% 86%, var(--page-glow-three), transparent 35rem),
    var(--surface);
  background-attachment: fixed;
  transition: color 280ms ease, background-color 280ms ease;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.6;
  background-image:
    linear-gradient(rgba(120, 163, 188, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 163, 188, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 92%);
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}

html[data-theme="dark"] body::before {
  opacity: 0.42;
}

.section--alt {
  background: var(--surface-alt);
  background: color-mix(in srgb, var(--surface-alt) 74%, transparent);
  border-block: 1px solid var(--glass-border-muted);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

/* Compact, medium-height navigation */
.top-strip__inner {
  min-height: 30px;
}

.top-strip {
  font-size: 0.78rem;
  background: rgba(4, 31, 53, 0.94);
}

.site-header {
  background: rgba(255, 255, 255, 0.7);
  border-bottom-color: var(--glass-border-muted);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  backdrop-filter: blur(24px) saturate(145%);
  box-shadow: var(--glass-highlight);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 42px rgba(4, 36, 59, 0.12), var(--glass-highlight);
}

html[data-theme="dark"] .site-header,
html[data-theme="dark"] .site-header.is-scrolled {
  background: rgba(6, 23, 37, 0.74);
  border-bottom-color: rgba(160, 209, 235, 0.16);
  box-shadow: 0 14px 46px rgba(0, 0, 0, 0.28), var(--glass-highlight);
}

.navbar {
  gap: 1rem;
}

.brand {
  width: 156px;
}

.primary-nav a {
  min-height: 36px;
  padding: 0.42rem 0.61rem;
  font-size: 0.86rem;
}

.nav-actions {
  gap: 0.42rem;
}

.icon-button {
  width: 38px;
  height: 38px;
  background: var(--glass-surface-soft);
  border-color: var(--glass-border-muted);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.nav-actions .btn--sm {
  min-height: 38px;
  padding: 0.46rem 0.82rem;
  font-size: 0.82rem;
}

.language__button {
  min-height: 38px;
  padding: 0.42rem 0.65rem;
  background: var(--glass-surface-soft);
  border-color: var(--glass-border-muted);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.language__menu,
.mobile-panel__inner {
  background: var(--glass-surface-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), var(--glass-highlight);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  backdrop-filter: blur(28px) saturate(150%);
}

.theme-toggle {
  position: relative;
  overflow: hidden;
}

.theme-toggle__icon {
  position: absolute;
  width: 19px;
  height: 19px;
  transition: opacity 240ms ease, transform 320ms cubic-bezier(.2,.8,.2,1);
}

.theme-toggle__icon--sun {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.theme-toggle__icon--moon {
  opacity: 0;
  transform: rotate(-45deg) scale(0.45);
}

html[data-theme="dark"] .theme-toggle__icon--sun {
  opacity: 0;
  transform: rotate(70deg) scale(0.45);
}

html[data-theme="dark"] .theme-toggle__icon--moon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

/* Glass surfaces shared across the complete site */
:where(
  .card,
  .service-card,
  .feature-tile,
  .channel-item,
  .contact-card,
  .form-card,
  .download-card,
  .legal-content,
  .legal-nav,
  .locator-shell,
  .faq-item,
  .step,
  .timeline-item,
  .notfound-card,
  .security-tip,
  .data-notice,
  .alert
) {
  background: var(--glass-surface);
  border-color: var(--glass-border-muted);
  box-shadow: var(--glass-shadow), var(--glass-highlight);
  -webkit-backdrop-filter: blur(20px) saturate(135%);
  backdrop-filter: blur(20px) saturate(135%);
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease, background 280ms ease;
}

:where(.card--hover, .service-card, .feature-tile, .contact-card, .security-tip):hover {
  border-color: rgba(24, 167, 214, 0.42);
  border-color: color-mix(in srgb, var(--brand-cyan) 40%, var(--glass-border));
  box-shadow: 0 28px 68px rgba(4, 36, 59, 0.16), var(--glass-highlight);
  transform: translateY(-5px);
}

html[data-theme="dark"] :where(.card--hover, .service-card, .feature-tile, .contact-card, .security-tip):hover {
  box-shadow: 0 30px 72px rgba(0, 0, 0, 0.42), 0 0 34px rgba(24, 167, 214, 0.08), var(--glass-highlight);
}

:where(.app-showcase, .cta-band, .stat-strip, .media-frame, .security-callout) {
  border: 1px solid var(--glass-border-muted);
  box-shadow: var(--glass-shadow), var(--glass-highlight);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  backdrop-filter: blur(20px) saturate(130%);
}

html[data-theme="dark"] .notice-bar {
  background: rgba(16, 45, 66, 0.72);
  border-color: rgba(159, 208, 233, 0.16);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

html[data-theme="dark"] .page-hero,
html[data-theme="dark"] .hero {
  color: var(--text);
}

html[data-theme="dark"] .section-heading p,
html[data-theme="dark"] .muted,
html[data-theme="dark"] p {
  color: var(--muted);
}

html[data-theme="dark"] .section--dark p,
html[data-theme="dark"] .site-footer p,
html[data-theme="dark"] .app-showcase p,
html[data-theme="dark"] .cta-band p {
  color: rgba(255, 255, 255, 0.76);
}

html[data-theme="dark"] :where(input, select, textarea, .input, .select, .textarea) {
  color: var(--text);
  background: rgba(6, 25, 40, 0.72);
  border-color: rgba(152, 200, 226, 0.22);
}

html[data-theme="dark"] :where(input, textarea)::placeholder {
  color: #7895a7;
}

html[data-theme="dark"] .site-footer__main {
  background:
    radial-gradient(circle at 10% 10%, rgba(24, 167, 214, 0.16), transparent 32%),
    rgba(3, 18, 30, 0.96);
}

html[data-theme="dark"] .site-footer__bottom {
  background: #020f19;
}

/* App-store logo: transparent wrapper + explicit white SVG fill. */
.store-badge__apple-mark {
  position: relative;
  z-index: 1;
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  padding: 0;
  color: #fff;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.28));
}

.store-badge__apple-mark svg {
  display: block;
  width: 31px;
  height: 31px;
  overflow: visible;
  background: transparent !important;
}

.store-badge__apple-mark path {
  fill: #fff !important;
}

/* Automatic partner/client logo carousel */
.partner-marquee {
  position: relative;
  width: 100%;
  padding-block: 1rem;
  overflow: hidden;
  background: var(--glass-surface-soft);
  border: 1px solid var(--glass-border-muted);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow), var(--glass-highlight);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  backdrop-filter: blur(24px) saturate(145%);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 7%, black 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 7%, black 93%, transparent);
}

.partner-marquee__track {
  display: flex;
  width: max-content;
  animation: partner-scroll 50s linear infinite;
  will-change: transform;
}

html[dir="rtl"] .partner-marquee__track {
  animation-direction: reverse;
}

.partner-marquee:hover .partner-marquee__track,
.partner-marquee:focus-within .partner-marquee__track,
.partner-marquee:focus .partner-marquee__track {
  animation-play-state: paused;
}

.partner-marquee__group {
  display: flex;
  gap: 1rem;
  align-items: stretch;
  padding-inline: 0.5rem;
}

.partner-card {
  position: relative;
  display: grid;
  width: 174px;
  min-height: 190px;
  flex: 0 0 174px;
  gap: 0.75rem;
  place-items: center;
  padding: 1rem 0.9rem;
  overflow: hidden;
  text-align: center;
  background: var(--glass-surface-strong);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: 0 13px 34px rgba(4, 36, 59, 0.1), var(--glass-highlight);
  transition: transform 260ms cubic-bezier(.2,.8,.2,1), box-shadow 260ms ease, border-color 260ms ease;
}

.partner-card::before {
  position: absolute;
  inset: -55% 25% 55% -25%;
  content: "";
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.68), transparent 70%);
  transform: rotate(15deg);
}

.partner-card:hover,
.partner-card:focus-within {
  z-index: 3;
  border-color: rgba(24, 167, 214, 0.48);
  box-shadow: 0 24px 52px rgba(4, 36, 59, 0.17), 0 0 0 1px rgba(24, 167, 214, 0.08), var(--glass-highlight);
  transform: translateY(-8px) scale(1.055);
}

html[data-theme="dark"] .partner-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.3);
}

.partner-card__logo {
  position: relative;
  display: grid;
  width: 126px;
  height: 126px;
  place-items: center;
}

.partner-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 260ms cubic-bezier(.2,.8,.2,1), filter 260ms ease;
}

.partner-card:hover .partner-card__logo img {
  filter: saturate(1.08) contrast(1.03);
  transform: scale(1.07);
}

.partner-card span {
  position: relative;
  z-index: 1;
  color: #123c5a;
  font-size: 0.83rem;
  font-weight: 800;
  line-height: 1.25;
}

.partner-marquee__note {
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

@keyframes partner-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 1120px) {
  .brand { width: 144px; }
  .primary-nav a { padding-inline: 0.5rem; font-size: 0.82rem; }
  .nav-actions .btn--sm { display: none; }
}

@media (max-width: 960px) {
  :root { --header-height: 62px; }
  .brand { width: 142px; }
  .navbar { gap: 0.65rem; }
  .mobile-panel { top: var(--header-height); }
}

@media (max-width: 640px) {
  :root { --header-height: 58px; }
  .brand { width: 132px; }
  .language__button span[data-current-language] { display: none; }
  .language__button { width: 38px; padding-inline: 0; justify-content: center; }
  .language__button .icon--sm { display: none; }
  .partner-marquee { border-radius: 22px; }
  .partner-card { width: 146px; min-height: 164px; flex-basis: 146px; padding: 0.8rem; }
  .partner-card__logo { width: 104px; height: 104px; }
  .partner-card span { font-size: 0.76rem; }
}

@media (prefers-reduced-motion: reduce) {
  .partner-marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .partner-marquee__track { animation: none; }
  .partner-marquee__group[aria-hidden="true"] { display: none; }
}

/* --------------------------------------------------------------------------
   V8 partner showcase refinement: visual style aligned with the legacy site,
   while retaining modern glass surfaces, readable names and auto-scrolling.
   -------------------------------------------------------------------------- */
.partner-section {
  padding-block: clamp(3.6rem, 7vw, 5.8rem);
  overflow: hidden;
}

.partner-section .section-heading {
  max-width: 980px;
  margin-bottom: clamp(1.8rem, 4vw, 3rem);
}

.partner-section .section-heading h2 {
  max-width: 920px;
  margin-inline: auto;
  font-size: clamp(2.25rem, 5vw, 4.45rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.partner-section .section-heading p {
  max-width: 1040px;
  margin-inline: auto;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
}

.partner-marquee {
  padding: clamp(1.25rem, 2.6vw, 2rem) 0;
  background:
    linear-gradient(135deg, rgba(184, 226, 249, 0.72), rgba(224, 244, 253, 0.52)),
    var(--glass-surface-soft);
  border: 1px solid rgba(64, 157, 207, 0.22);
  border-radius: 30px;
  box-shadow: 0 24px 70px rgba(6, 71, 111, 0.12), var(--glass-highlight);
}

html[data-theme="dark"] .partner-marquee {
  background:
    linear-gradient(135deg, rgba(16, 65, 95, 0.78), rgba(9, 38, 58, 0.7)),
    var(--glass-surface-soft);
  border-color: rgba(101, 196, 238, 0.22);
  box-shadow: 0 28px 78px rgba(0, 0, 0, 0.35), var(--glass-highlight);
}

.partner-marquee__track {
  animation-duration: 58s;
}

.partner-marquee__group {
  gap: clamp(1rem, 2vw, 1.55rem);
  padding-inline: 0.9rem;
}

.partner-card {
  width: 190px;
  min-height: 226px;
  flex-basis: 190px;
  gap: 0.65rem;
  padding: 0.55rem 0.55rem 0.9rem;
  background: transparent;
  border: 0;
  border-radius: 28px;
  box-shadow: none;
}

.partner-card::before {
  display: none;
}

.partner-card:hover,
.partner-card:focus-within {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 22px 48px rgba(5, 70, 109, 0.16), inset 0 1px 0 rgba(255,255,255,.72);
  transform: translateY(-8px) scale(1.045);
}

html[data-theme="dark"] .partner-card {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

html[data-theme="dark"] .partner-card:hover,
html[data-theme="dark"] .partner-card:focus-within {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 52px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.12);
}

.partner-card__logo {
  width: 174px;
  height: 174px;
  filter: drop-shadow(0 12px 18px rgba(4, 59, 91, 0.13));
}

.partner-card__logo img {
  object-fit: contain;
}

.partner-card span:last-child {
  max-width: 176px;
  color: var(--navy-900);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.25;
}

html[data-theme="dark"] .partner-card span:last-child {
  color: #e8f5fb;
}

.partner-marquee__note {
  max-width: 760px;
  margin-top: 1.15rem;
  font-size: 0.83rem;
}

/* Ensure the store logos remain visible in every footer and CTA. */
.store-badge__logo--google {
  background: #fff;
  border-radius: 10px;
  padding: 4px;
}

.store-badge__apple-mark {
  background: transparent !important;
}

.store-badge__apple-mark svg,
.store-badge__apple-mark path {
  fill: #fff !important;
}

@media (max-width: 720px) {
  .partner-section {
    padding-block: 3.25rem;
  }

  .partner-section .section-heading h2 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .partner-marquee {
    border-radius: 22px;
  }

  .partner-card {
    width: 154px;
    min-height: 188px;
    flex-basis: 154px;
  }

  .partner-card__logo {
    width: 138px;
    height: 138px;
  }

  .partner-card span:last-child {
    max-width: 146px;
    font-size: 0.75rem;
  }
}

/* --------------------------------------------------------------------------
   V9 visual refinement: RTL typography, high-contrast night mode,
   iOS-inspired liquid glass surfaces, and an interactive partner carousel.
   -------------------------------------------------------------------------- */

:root {
  --liquid-glass: rgba(255, 255, 255, 0.54);
  --liquid-glass-strong: rgba(255, 255, 255, 0.72);
  --liquid-glass-border: rgba(255, 255, 255, 0.78);
  --liquid-glass-inner: inset 0 1px 0 rgba(255, 255, 255, 0.88), inset 0 -1px 0 rgba(255, 255, 255, 0.18);
  --liquid-glass-shadow: 0 24px 70px rgba(17, 57, 83, 0.14), 0 6px 18px rgba(17, 57, 83, 0.08);
  --liquid-glass-blur: 30px;
  --rtl-font: "Segoe UI", "Noto Sans Arabic", "Vazirmatn", Tahoma, Arial, sans-serif;
}

html[data-theme="dark"] {
  --liquid-glass: rgba(16, 36, 54, 0.62);
  --liquid-glass-strong: rgba(19, 43, 63, 0.78);
  --liquid-glass-border: rgba(196, 229, 247, 0.19);
  --liquid-glass-inner: inset 0 1px 0 rgba(255, 255, 255, 0.13), inset 0 -1px 0 rgba(255, 255, 255, 0.025);
  --liquid-glass-shadow: 0 28px 80px rgba(0, 0, 0, 0.42), 0 8px 24px rgba(0, 0, 0, 0.2);
  --text: #f3f8fc;
  --muted: #c0d0dc;
}

body {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 8% 10%, rgba(31, 175, 226, 0.19), transparent 31rem),
    radial-gradient(circle at 92% 18%, rgba(245, 123, 32, 0.14), transparent 29rem),
    radial-gradient(circle at 56% 84%, rgba(112, 103, 230, 0.1), transparent 34rem),
    linear-gradient(160deg, #f7fbfd 0%, #edf6fa 48%, #f8fbfd 100%);
  background-attachment: fixed;
}

html[data-theme="dark"] body {
  color: #f3f8fc;
  background:
    radial-gradient(circle at 7% 9%, rgba(35, 174, 227, 0.2), transparent 31rem),
    radial-gradient(circle at 92% 15%, rgba(245, 123, 32, 0.13), transparent 27rem),
    radial-gradient(circle at 54% 86%, rgba(102, 92, 220, 0.14), transparent 34rem),
    linear-gradient(160deg, #061420 0%, #091d2d 49%, #06131f 100%);
  background-attachment: fixed;
}

body::before {
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(92, 147, 179, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 147, 179, 0.045) 1px, transparent 1px);
  background-size: 52px 52px;
}

body::after {
  position: fixed;
  z-index: -1;
  top: 18%;
  inset-inline-end: -9rem;
  width: 27rem;
  height: 27rem;
  content: "";
  pointer-events: none;
  background: radial-gradient(circle, rgba(48, 185, 231, 0.13), transparent 69%);
  filter: blur(18px);
  animation: liquid-orb 13s ease-in-out infinite alternate;
}

html[data-theme="dark"] body::after {
  background: radial-gradient(circle, rgba(62, 191, 235, 0.16), transparent 69%);
}

@keyframes liquid-orb {
  from { transform: translate3d(0, -14px, 0) scale(0.95); }
  to { transform: translate3d(-34px, 32px, 0) scale(1.08); }
}

/* Dari and Pashto typography: modern Arabic shaping and heavier display text. */
html[lang^="fa"] body,
html[lang^="ps"] body,
html[dir="rtl"] body,
html[lang^="fa"] button,
html[lang^="ps"] button,
html[lang^="fa"] input,
html[lang^="ps"] input,
html[lang^="fa"] select,
html[lang^="ps"] select,
html[lang^="fa"] textarea,
html[lang^="ps"] textarea {
  font-family: var(--rtl-font);
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  font-kerning: normal;
}

html[dir="rtl"] :where(h1, h2, h3, h4, .hero__copy h1, .page-hero h1, .section-heading h2) {
  font-family: var(--rtl-font);
  font-weight: 800;
  line-height: 1.38;
  letter-spacing: 0 !important;
  word-spacing: 0.035em;
  text-wrap: balance;
}

html[dir="rtl"] :where(p, li, a, button, label, input, select, textarea, .section-heading p) {
  line-height: 1.9;
  letter-spacing: 0 !important;
}

html[dir="rtl"] .hero__copy h1 {
  font-size: clamp(2.35rem, 5.3vw, 5rem);
}

html[dir="rtl"] .section-heading h2 {
  line-height: 1.42;
}

/* High-contrast dark mode: prevent dark text from disappearing. */
html[data-theme="dark"] :where(
  h1, h2, h3, h4, h5, h6,
  .hero__copy h1,
  .page-hero h1,
  .section-heading h2,
  .card h3,
  .service-card h3,
  .contact-card h3,
  .download-card h2,
  .download-card h3,
  .faq-item summary,
  .timeline-item h3,
  .channel-item h3,
  .legal-content h2,
  .legal-content h3,
  .legal-nav a,
  .primary-nav a,
  .mobile-panel a,
  .language__menu button
) {
  color: #f7fbff !important;
}

html[data-theme="dark"] :where(
  p, li, dd, label, small,
  .muted,
  .section-heading p,
  .hero__copy p,
  .page-hero p,
  .card p,
  .service-card p,
  .contact-card p,
  .download-card p,
  .timeline-item p,
  .channel-item p,
  .partner-marquee__note
) {
  color: #bfd0dc !important;
}

html[data-theme="dark"] :where(a:not(.btn):not(.store-badge), .service-card__link) {
  color: #79d2f4;
}

html[data-theme="dark"] :where(a:not(.btn):not(.store-badge), .service-card__link):hover {
  color: #ffab6e;
}

html[data-theme="dark"] .eyebrow {
  color: #ff9b52;
}

html[data-theme="dark"] .ussd-code,
html[data-theme="dark"] strong {
  color: #ffffff;
}

/* Clear liquid-glass design used across the complete site. */
.site-header,
.language__menu,
.mobile-panel__inner,
:where(
  .card,
  .service-card,
  .channel-item,
  .contact-card,
  .form-card,
  .download-card,
  .legal-content,
  .legal-nav,
  .locator-shell,
  .faq-item,
  .timeline-item,
  .notfound-card,
  .security-tip,
  .data-notice,
  .alert,
  .app-showcase,
  .cta-band,
  .stat-strip,
  .media-frame,
  .security-callout
) {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.06) 48%, rgba(255, 255, 255, 0.16)),
    var(--liquid-glass);
  border: 1px solid var(--liquid-glass-border);
  box-shadow: var(--liquid-glass-shadow), var(--liquid-glass-inner);
  -webkit-backdrop-filter: blur(var(--liquid-glass-blur)) saturate(185%);
  backdrop-filter: blur(var(--liquid-glass-blur)) saturate(185%);
}

html[data-theme="dark"] :where(
  .site-header,
  .language__menu,
  .mobile-panel__inner,
  .card,
  .service-card,
  .channel-item,
  .contact-card,
  .form-card,
  .download-card,
  .legal-content,
  .legal-nav,
  .locator-shell,
  .faq-item,
  .timeline-item,
  .notfound-card,
  .security-tip,
  .data-notice,
  .alert,
  .app-showcase,
  .cta-band,
  .stat-strip,
  .media-frame,
  .security-callout
) {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.018) 52%, rgba(49, 176, 223, 0.045)),
    var(--liquid-glass);
  border-color: var(--liquid-glass-border);
  box-shadow: var(--liquid-glass-shadow), var(--liquid-glass-inner);
}

.section--alt {
  background: linear-gradient(135deg, rgba(238, 248, 252, 0.5), rgba(255, 255, 255, 0.2));
  border-block-color: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(24px) saturate(155%);
  backdrop-filter: blur(24px) saturate(155%);
}

html[data-theme="dark"] .section--alt {
  background: linear-gradient(135deg, rgba(13, 40, 59, 0.54), rgba(5, 22, 35, 0.3));
  border-block-color: rgba(183, 222, 241, 0.1);
}

.site-header {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.45)),
    rgba(255, 255, 255, 0.42);
  border-bottom-color: rgba(255, 255, 255, 0.82);
}

.site-header.is-scrolled {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.56)),
    rgba(255, 255, 255, 0.55);
  box-shadow: 0 16px 50px rgba(14, 52, 76, 0.16), var(--liquid-glass-inner);
}

html[data-theme="dark"] .site-header,
html[data-theme="dark"] .site-header.is-scrolled {
  background:
    linear-gradient(180deg, rgba(29, 54, 73, 0.74), rgba(8, 28, 43, 0.6)),
    rgba(8, 27, 42, 0.62);
  border-bottom-color: rgba(197, 228, 244, 0.15);
}

:where(.card--hover, .service-card, .channel-item, .contact-card, .security-tip):hover {
  border-color: rgba(80, 195, 235, 0.48);
  box-shadow: 0 32px 82px rgba(10, 67, 101, 0.19), 0 0 0 1px rgba(255, 255, 255, 0.52), var(--liquid-glass-inner);
  transform: translateY(-7px) scale(1.012);
}

html[data-theme="dark"] :where(.card--hover, .service-card, .channel-item, .contact-card, .security-tip):hover {
  border-color: rgba(100, 208, 245, 0.42);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.48), 0 0 34px rgba(50, 184, 231, 0.11), var(--liquid-glass-inner);
}

.icon-button,
.language__button {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.14)),
    var(--liquid-glass);
  border-color: var(--liquid-glass-border);
  box-shadow: 0 8px 24px rgba(14, 52, 76, 0.11), var(--liquid-glass-inner);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
}

html[data-theme="dark"] .icon-button,
html[data-theme="dark"] .language__button {
  color: #f7fbff;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.025)),
    rgba(16, 42, 61, 0.72);
  border-color: rgba(199, 230, 246, 0.17);
}

/* Interactive carousel: always visible in English, Dari and Pashto. */
.partner-marquee {
  overflow-x: auto;
  overflow-y: hidden;
  direction: ltr !important;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-inline: contain;
  touch-action: pan-y pinch-zoom;
  scroll-behavior: auto;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  user-select: none;
}

.partner-marquee::-webkit-scrollbar {
  display: none;
}

.partner-marquee.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.partner-marquee__track,
html[dir="rtl"] .partner-marquee__track {
  width: max-content;
  direction: ltr !important;
  animation: none !important;
  transform: none !important;
}

.partner-marquee__group {
  direction: ltr !important;
}

.partner-card {
  direction: ltr !important;
  user-select: none;
}

.partner-card img {
  pointer-events: none;
  -webkit-user-drag: none;
}

.partner-marquee:focus-visible {
  outline: 3px solid rgba(42, 174, 224, 0.45);
  outline-offset: 5px;
}

.partner-marquee__note::before {
  display: inline-block;
  margin-inline-end: 0.42rem;
  content: "↔";
  color: var(--brand-orange);
  font-weight: 900;
}

html[data-theme="dark"] .partner-marquee {
  background:
    radial-gradient(circle at 15% 15%, rgba(65, 193, 235, 0.13), transparent 32%),
    radial-gradient(circle at 86% 82%, rgba(245, 123, 32, 0.09), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.015)),
    rgba(8, 31, 47, 0.66);
  border-color: rgba(187, 226, 244, 0.18);
}

html[data-theme="dark"] .partner-card:hover,
html[data-theme="dark"] .partner-card:focus-within {
  background: rgba(255, 255, 255, 0.105);
}

@media (max-width: 720px) {
  html[dir="rtl"] .hero__copy h1 {
    font-size: clamp(2.1rem, 11vw, 3.45rem);
  }

  .partner-marquee {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
  .partner-marquee { scroll-behavior: auto; }
}

/* V9 localized carousel instruction is readable in both text directions. */
.partner-marquee__note::before {
  display: none;
  content: none;
}

html[dir="rtl"] .partner-marquee__note {
  font-family: var(--rtl-font);
  direction: rtl;
  line-height: 1.85;
}

/* Dark hero surfaces must remain dark whenever the foreground switches to white. */
html[data-theme="dark"] .hero {
  color: #f7fbff;
  background:
    radial-gradient(circle at 8% 16%, rgba(41, 184, 232, 0.2), transparent 31%),
    radial-gradient(circle at 88% 10%, rgba(245, 123, 32, 0.14), transparent 28%),
    radial-gradient(circle at 55% 105%, rgba(93, 82, 205, 0.12), transparent 37%),
    linear-gradient(155deg, #061725 0%, #09263a 54%, #06141f 100%);
  border-bottom: 1px solid rgba(176, 216, 237, 0.11);
}

html[data-theme="dark"] .hero::before,
html[data-theme="dark"] .hero::after {
  border-color: rgba(117, 204, 239, 0.12);
}

html[data-theme="dark"] .hero__copy p,
html[data-theme="dark"] .hero__microcopy {
  color: #c4d5df !important;
}

html[data-theme="dark"] .hero .btn--ghost {
  color: #f4f9fc;
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(200, 230, 246, 0.24);
  box-shadow: var(--liquid-glass-inner);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
}

html[data-theme="dark"] .hero .btn--ghost:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(107, 211, 246, 0.48);
}

html[data-theme="dark"] .hero .ussd-chip,
html[data-theme="dark"] .hero .floating-card {
  color: #eff8fc;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.025)),
    rgba(13, 41, 60, 0.72);
  border-color: rgba(194, 227, 244, 0.17);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.34), var(--liquid-glass-inner);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
}

html[data-theme="dark"] .page-hero {
  color: #f7fbff;
  background:
    radial-gradient(circle at 85% 20%, rgba(245, 123, 32, 0.14), transparent 31%),
    radial-gradient(circle at 15% 90%, rgba(42, 183, 231, 0.18), transparent 35%),
    linear-gradient(155deg, #071927 0%, #0a283d 56%, #071824 100%);
  border-bottom-color: rgba(176, 216, 237, 0.12);
}

html[data-theme="dark"] .page-hero p,
html[data-theme="dark"] .page-hero .breadcrumbs {
  color: #c2d4df !important;
}

/* ========================================================================== 
   V10 — Refined proportions
   Makes the brand mark and hero iPhone composition more compact while
   preserving all existing animation, hover-depth and responsive behavior.
   ========================================================================== */

:root {
  --header-height: 68px;
}

.brand {
  width: 154px;
}

.navbar {
  gap: 1.15rem;
}

.primary-nav a {
  min-height: 38px;
  padding: 0.48rem 0.7rem;
}

.nav-actions {
  gap: 0.45rem;
}

.icon-button {
  width: 40px;
  height: 40px;
}

.hero-visual.iphone-stage--hero {
  min-height: 560px;
}

.iphone-device--hero {
  width: 258px;
}

.iphone-stage--hero .hero-visual__halo {
  width: 420px;
  height: 420px;
}

.iphone-stage--hero .hero-orbit--outer {
  width: 448px;
  height: 448px;
}

.iphone-stage--hero .hero-orbit--inner {
  width: 344px;
  height: 344px;
}

.iphone-stage--hero .floating-card {
  padding: 0.72rem 0.86rem;
  border-radius: 16px;
}

.iphone-stage--hero .floating-card__icon {
  width: 39px;
  height: 39px;
  border-radius: 12px;
}

.iphone-stage--hero .floating-card--top {
  top: 76px;
  inset-inline-start: 12px;
}

.iphone-stage--hero .floating-card--bottom {
  right: 8px;
  bottom: 72px;
}

@media (max-width: 1120px) {
  .iphone-device--hero { width: 248px; }
  .hero-visual.iphone-stage--hero { min-height: 540px; }
}

@media (max-width: 960px) {
  :root { --header-height: 64px; }
  .brand { width: 142px; }
  .iphone-device--hero { width: 264px; }
  .hero-visual.iphone-stage--hero { min-height: 555px; }
}

@media (max-width: 720px) {
  .brand { width: 132px; }
  .iphone-device--hero { width: 266px; }
  .hero-visual.iphone-stage--hero { min-height: 565px; }
}

@media (max-width: 480px) {
  .brand { width: 124px; }
  .iphone-device--hero { width: 252px; }
  .hero-visual.iphone-stage--hero { min-height: 535px; }
}


/* V11: refined dynamic homepage typography */
.hero__copy {
  --hero-copy-x: 0px;
  --hero-copy-y: 0px;
  perspective: 900px;
}

.hero__copy h1 {
  max-width: 620px;
  margin-bottom: 1rem;
  font-size: clamp(2.55rem, 4.65vw, 4.15rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
  transform: translate3d(var(--hero-copy-x), var(--hero-copy-y), 0);
  transition: transform 260ms cubic-bezier(.2,.8,.2,1), text-shadow 260ms ease;
  will-change: transform;
}

.hero__copy > p {
  max-width: 620px;
  margin-bottom: .9rem;
  font-size: clamp(.98rem, 1.45vw, 1.12rem);
  line-height: 1.72;
  transform: translate3d(calc(var(--hero-copy-x) * -.28), calc(var(--hero-copy-y) * -.28), 0);
  transition: transform 320ms cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}

.hero__copy .eyebrow {
  animation: heroEyebrowFloat 5.5s ease-in-out infinite;
}

.hero__copy .text-gradient {
  display: inline-block;
  color: transparent;
  background: linear-gradient(110deg, #ff7a1a 10%, #ffad68 38%, #ff7a1a 62%, #ffd1a8 82%, #ff7a1a 100%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: poolamGradientFlow 4.6s linear infinite, poolamWordFloat 4.2s ease-in-out infinite;
  filter: drop-shadow(0 8px 18px rgba(245, 123, 32, .12));
  transform-origin: 50% 70%;
}

.hero__copy h1:hover {
  text-shadow: 0 18px 38px rgba(7, 52, 89, .10);
}

.hero__copy h1:hover .text-gradient {
  animation-duration: 2.2s, 2.6s;
}

.hero__actions {
  margin-top: 1.45rem;
}

.hero__actions .btn {
  min-height: 48px;
  padding: .78rem 1.18rem;
  font-size: .96rem;
  transition: transform 220ms cubic-bezier(.2,.8,.2,1), box-shadow 220ms ease, background-color 220ms ease, border-color 220ms ease;
}

.hero__actions .btn:hover {
  transform: translateY(-4px) scale(1.025);
}

@keyframes poolamGradientFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 240% 50%; }
}

@keyframes poolamWordFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.015); }
}

@keyframes heroEyebrowFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

html[data-theme="dark"] .hero__copy h1:hover {
  text-shadow: 0 18px 44px rgba(80, 188, 255, .14);
}

@media (max-width: 980px) {
  .hero__copy h1 {
    max-width: 680px;
    font-size: clamp(2.4rem, 7vw, 3.8rem);
  }

  .hero__copy > p {
    max-width: 650px;
    font-size: clamp(.98rem, 2.1vw, 1.08rem);
  }
}

@media (max-width: 640px) {
  .hero__copy h1 {
    font-size: clamp(2.15rem, 11vw, 3.05rem);
    line-height: 1.08;
  }

  .hero__copy > p {
    font-size: .98rem;
    line-height: 1.65;
  }

  .hero__actions .btn {
    min-height: 46px;
    padding: .72rem 1rem;
    font-size: .92rem;
  }
}

html[dir="rtl"] .hero__copy h1 {
  letter-spacing: 0;
  line-height: 1.32;
}

@media (prefers-reduced-motion: reduce) {
  .hero__copy h1,
  .hero__copy > p {
    transform: none !important;
    transition: none !important;
  }

  .hero__copy .text-gradient,
  .hero__copy .eyebrow {
    animation: none !important;
  }
}

/* --------------------------------------------------------------------------
   V12 homepage channel band + compact secondary iPhone showcase
   -------------------------------------------------------------------------- */
body[data-page="home"] .section--channels {
  padding-block: clamp(3.2rem, 5vw, 5rem);
}

body[data-page="home"] .channels-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: center;
}

body[data-page="home"] .channels-intro {
  align-self: center;
  padding-inline-end: clamp(0rem, 1.5vw, 1rem);
}

body[data-page="home"] .channels-intro h2 {
  max-width: 650px;
  margin-bottom: 0.8rem;
}

body[data-page="home"] .channels-intro .muted {
  max-width: 680px;
  margin-bottom: 0;
}

/* One full-width horizontal glass cell containing all three access options. */
body[data-page="home"] .channel-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 0.15rem;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255,255,255,0.82), rgba(244,250,253,0.60));
  border: 1px solid rgba(139, 183, 207, 0.34);
  border-radius: clamp(22px, 2vw, 30px);
  box-shadow: 0 22px 55px rgba(5, 55, 87, 0.10), inset 0 1px 0 rgba(255,255,255,0.92);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}

body[data-page="home"] .channel-item {
  min-width: 0;
  padding: clamp(1.05rem, 1.6vw, 1.45rem);
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body[data-page="home"] .channel-item + .channel-item {
  border-inline-start: 1px solid rgba(122, 166, 191, 0.24);
}

body[data-page="home"] .channel-item:hover,
html[dir="rtl"] body[data-page="home"] .channel-item:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.52), rgba(221,242,251,0.38));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.36);
  transform: translateY(-2px);
}

body[data-page="home"] .channel-item__icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
}

body[data-page="home"] .channel-item h3 {
  margin-bottom: 0.18rem;
  font-size: clamp(0.98rem, 1.1vw, 1.08rem);
  line-height: 1.25;
}

body[data-page="home"] .channel-item p {
  font-size: clamp(0.80rem, 0.88vw, 0.9rem);
  line-height: 1.5;
}

/* Make the second / lower animated mobile panel noticeably more compact. */
body[data-page="home"] .app-showcase {
  min-height: 405px;
  padding: clamp(1.45rem, 2.1vw, 1.85rem);
  border-radius: clamp(24px, 2.6vw, 36px);
}

body[data-page="home"] .app-showcase__content {
  max-width: 50%;
}

body[data-page="home"] .app-showcase h3 {
  font-size: clamp(1.45rem, 2.35vw, 2rem);
  line-height: 1.08;
}

body[data-page="home"] .app-showcase__content > p {
  font-size: clamp(0.9rem, 1vw, 1rem);
  line-height: 1.55;
}

body[data-page="home"] .app-showcase__badges {
  gap: 0.5rem;
  margin-top: 1.05rem;
}

body[data-page="home"] .app-showcase .store-badge {
  min-width: 168px;
  min-height: 52px;
  padding: 0.45rem 0.82rem;
}

@media (min-width: 721px) {
  body[data-page="home"] .app-showcase__phone.iphone-stage--showcase {
    right: 2.2%;
    bottom: -112px;
    width: 220px;
    height: 520px;
  }

  html[dir="rtl"] body[data-page="home"] .app-showcase__phone.iphone-stage--showcase {
    right: auto;
    left: 2.2%;
  }

  body[data-page="home"] .iphone-stage--showcase .iphone-device {
    width: 202px;
  }
}

html[data-theme="dark"] body[data-page="home"] .channel-list {
  background: linear-gradient(135deg, rgba(17, 43, 61, 0.80), rgba(7, 28, 43, 0.68));
  border-color: rgba(137, 199, 231, 0.19);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255,255,255,0.08);
}

html[data-theme="dark"] body[data-page="home"] .channel-item + .channel-item {
  border-inline-start-color: rgba(155, 207, 233, 0.15);
}

html[data-theme="dark"] body[data-page="home"] .channel-item:hover {
  background: linear-gradient(135deg, rgba(44, 90, 118, 0.32), rgba(24, 61, 84, 0.24));
}

@media (max-width: 960px) {
  body[data-page="home"] .channels-layout {
    grid-template-columns: 1fr;
  }

  body[data-page="home"] .channels-layout .app-showcase {
    order: initial;
  }

  body[data-page="home"] .channel-list {
    grid-column: 1;
  }
}

@media (max-width: 820px) {
  body[data-page="home"] .channel-list {
    grid-template-columns: 1fr;
  }

  body[data-page="home"] .channel-item + .channel-item {
    border-inline-start: 0;
    border-top: 1px solid rgba(122, 166, 191, 0.24);
  }

  html[data-theme="dark"] body[data-page="home"] .channel-item + .channel-item {
    border-top-color: rgba(155, 207, 233, 0.15);
  }
}

@media (max-width: 720px) {
  body[data-page="home"] .app-showcase {
    min-height: 610px;
  }

  body[data-page="home"] .app-showcase__content {
    max-width: 100%;
  }

  body[data-page="home"] .app-showcase__phone.iphone-stage--showcase,
  html[dir="rtl"] body[data-page="home"] .app-showcase__phone.iphone-stage--showcase {
    right: 50%;
    left: auto;
    bottom: -142px;
    width: 246px;
    height: 550px;
    transform: translateX(50%);
  }

  body[data-page="home"] .iphone-stage--showcase .iphone-device {
    width: 224px;
  }
}

/* ================================================================
   V14 secondary Poolam showcase refinement
   - smaller, more dynamic copy
   - full iPhone visible inside the panel
   - cleaner visual balance and glass depth
   ================================================================ */
body[data-page="home"] .app-showcase {
  min-height: 430px;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 18%, rgba(45, 174, 232, 0.24), transparent 34%),
    radial-gradient(circle at 12% 86%, rgba(255, 126, 32, 0.13), transparent 32%),
    linear-gradient(145deg, #073451 0%, #082d47 52%, #06263d 100%);
  box-shadow: 0 28px 70px rgba(4, 40, 64, 0.25), inset 0 1px 0 rgba(255,255,255,0.16);
}

body[data-page="home"] .app-showcase__content {
  max-width: 45%;
  position: relative;
  z-index: 5;
  transition: transform .24s cubic-bezier(.2,.7,.2,1), filter .24s ease;
  will-change: transform;
}

body[data-page="home"] .app-showcase__content .tag {
  font-size: .78rem;
  padding: .42rem .72rem;
  animation: showcase-tag-float 4.8s ease-in-out infinite;
}

body[data-page="home"] .app-showcase h3 {
  max-width: 410px;
  margin-top: .6rem;
  font-size: clamp(1.28rem, 1.85vw, 1.68rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  text-wrap: balance;
}

body[data-page="home"] .app-showcase__content > p {
  max-width: 390px;
  font-size: clamp(.82rem, .9vw, .92rem);
  line-height: 1.52;
  color: rgba(235, 246, 252, .82);
}

body[data-page="home"] .app-showcase__badges {
  margin-top: .85rem;
  gap: .42rem;
}

body[data-page="home"] .app-showcase .store-badge {
  min-width: 154px;
  min-height: 48px;
  padding: .38rem .7rem;
  transform: translateZ(0);
  transition: transform .22s ease, box-shadow .22s ease;
}

body[data-page="home"] .app-showcase .store-badge:hover {
  transform: translateY(-3px) scale(1.025);
  box-shadow: 0 14px 28px rgba(0,0,0,.28);
}

@keyframes showcase-tag-float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@media (min-width: 721px) {
  body[data-page="home"] .app-showcase__phone.iphone-stage--showcase {
    right: 3.2%;
    bottom: 10px;
    width: 224px;
    height: 404px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }

  html[dir="rtl"] body[data-page="home"] .app-showcase__phone.iphone-stage--showcase {
    right: auto;
    left: 3.2%;
  }

  body[data-page="home"] .iphone-stage--showcase .iphone-device {
    width: 174px;
  }

  body[data-page="home"] .iphone-stage--showcase .iphone-float {
    transform-origin: 50% 100%;
  }

  body[data-page="home"] .showcase-orbit {
    transform: scale(.82);
  }
}

@media (min-width: 1100px) {
  body[data-page="home"] .app-showcase__phone.iphone-stage--showcase {
    right: 5.2%;
    width: 250px;
    height: 410px;
  }
  html[dir="rtl"] body[data-page="home"] .app-showcase__phone.iphone-stage--showcase {
    right: auto;
    left: 5.2%;
  }
  body[data-page="home"] .iphone-stage--showcase .iphone-device { width: 182px; }
}

@media (max-width: 720px) {
  body[data-page="home"] .app-showcase {
    min-height: 650px;
  }
  body[data-page="home"] .app-showcase__content { max-width: 100%; }
  body[data-page="home"] .app-showcase h3 { font-size: clamp(1.35rem, 6vw, 1.65rem); }
  body[data-page="home"] .app-showcase__content > p { font-size: .9rem; }
  body[data-page="home"] .app-showcase__phone.iphone-stage--showcase,
  html[dir="rtl"] body[data-page="home"] .app-showcase__phone.iphone-stage--showcase {
    right: 50%;
    left: auto;
    bottom: 12px;
    width: 232px;
    height: 360px;
    transform: translateX(50%);
  }
  body[data-page="home"] .iphone-stage--showcase .iphone-device { width: 168px; }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .app-showcase__content .tag { animation: none; }
  body[data-page="home"] .app-showcase__content { transition: none; }
}

/* ================================================================
   V15 — Homepage promotional slider
   Replaces the compact security reminder bar on the homepage.
   Slides always travel from right to left, independent of RTL text mode.
   ================================================================ */
.promo-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #071f34;
  border-bottom: 1px solid color-mix(in srgb, var(--line, #d6e2ea) 70%, transparent);
  box-shadow: 0 18px 46px rgba(3, 36, 61, 0.10);
  direction: ltr;
  isolation: isolate;
}

.promo-slider__viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 4 / 1;
  min-height: 150px;
  max-height: 390px;
}

.promo-slider__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.promo-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: translate3d(100%, 0, 0);
  opacity: 1;
  visibility: hidden;
  transition: transform 850ms cubic-bezier(.22,.72,.22,1), visibility 0s linear 850ms;
  will-change: transform;
  background: #fff;
}

.promo-slide.is-active {
  transform: translate3d(0, 0, 0);
  visibility: visible;
  z-index: 2;
  transition-delay: 0s;
}

.promo-slide.is-leaving {
  transform: translate3d(-100%, 0, 0);
  visibility: visible;
  z-index: 1;
  transition-delay: 0s;
}

.promo-slide.is-preparing {
  transform: translate3d(100%, 0, 0);
  visibility: visible;
  z-index: 3;
  transition: none;
}

.promo-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
}

.promo-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(105deg, rgba(255,255,255,.07), transparent 22%, transparent 76%, rgba(8,48,76,.05));
}

.promo-slider__dots {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 12px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 999px;
  background: rgba(8, 35, 57, .26);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  backdrop-filter: blur(12px) saturate(145%);
  -webkit-backdrop-filter: blur(12px) saturate(145%);
}

.promo-slider__dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.60);
  cursor: pointer;
  transition: width .25s ease, border-radius .25s ease, background .25s ease, transform .25s ease;
}

.promo-slider__dots button:hover,
.promo-slider__dots button:focus-visible {
  transform: scale(1.22);
  outline: 2px solid rgba(255,255,255,.8);
  outline-offset: 3px;
}

.promo-slider__dots button.is-active {
  width: 26px;
  border-radius: 999px;
  background: #ff7a1a;
}

html[data-theme="dark"] .promo-slider {
  border-bottom-color: rgba(255,255,255,.12);
  box-shadow: 0 20px 56px rgba(0,0,0,.28);
}

@media (max-width: 900px) {
  .promo-slider__viewport {
    aspect-ratio: 3.2 / 1;
    min-height: 160px;
  }

  .promo-slide img {
    object-fit: contain;
    background: #fff;
  }
}

@media (max-width: 640px) {
  .promo-slider__viewport {
    aspect-ratio: 2.15 / 1;
    min-height: 170px;
    max-height: none;
  }

  .promo-slider__dots {
    bottom: 8px;
    gap: 6px;
    padding: 5px 8px;
  }

  .promo-slider__dots button {
    width: 7px;
    height: 7px;
  }

  .promo-slider__dots button.is-active {
    width: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .promo-slide {
    transition-duration: 1ms !important;
  }
}

/* ================================================================
   V16 — Compact square-corner promotional slider + HD banner assets
   ================================================================ */
body[data-page="home"] .promo-slider {
  width: min(1280px, calc(100% - 48px));
  margin: 18px auto 22px;
  border: 1px solid color-mix(in srgb, var(--line, #d6e2ea) 78%, transparent);
  border-radius: 0;
  overflow: hidden;
  background: #071f34;
  box-shadow: 0 14px 34px rgba(3, 36, 61, 0.11);
}

body[data-page="home"] .promo-slider__viewport {
  aspect-ratio: 4 / 1;
  min-height: 0;
  max-height: 320px;
  border-radius: 0;
}

body[data-page="home"] .promo-slide,
body[data-page="home"] .promo-slide img {
  border-radius: 0;
}

body[data-page="home"] .promo-slide img {
  object-fit: cover;
  object-position: center;
  image-rendering: auto;
}

body[data-page="home"] .promo-slider__dots {
  bottom: 9px;
  padding: 5px 8px;
  gap: 6px;
}

body[data-page="home"] .promo-slider__dots button {
  width: 7px;
  height: 7px;
}

body[data-page="home"] .promo-slider__dots button.is-active {
  width: 21px;
}

html[data-theme="dark"] body[data-page="home"] .promo-slider {
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 16px 38px rgba(0,0,0,.28);
}

@media (max-width: 900px) {
  body[data-page="home"] .promo-slider {
    width: min(100% - 28px, 900px);
    margin-block: 14px 18px;
  }
  body[data-page="home"] .promo-slider__viewport {
    aspect-ratio: 3.65 / 1;
    max-height: 250px;
  }
  body[data-page="home"] .promo-slide img {
    object-fit: cover;
  }
}

@media (max-width: 640px) {
  body[data-page="home"] .promo-slider {
    width: calc(100% - 20px);
    margin-block: 10px 14px;
  }
  body[data-page="home"] .promo-slider__viewport {
    aspect-ratio: 2.55 / 1;
    min-height: 0;
    max-height: 210px;
  }
  body[data-page="home"] .promo-slide img {
    object-fit: contain;
    background: #fff;
  }
}

/* ================================================================
   V17 — Header + promotional slider sizing only
   Matches the compact proportions requested from the approved mockup.
   No other page sections are changed here.
   ================================================================ */
@media (min-width: 1101px) {
  :root { --header-height: 64px; }

  .brand { width: 132px; }

  .navbar {
    gap: 0.8rem;
  }

  .primary-nav { gap: 0.05rem; }

  .primary-nav a {
    min-height: 36px;
    padding: 0.42rem 0.58rem;
    font-size: 0.82rem;
  }

  .nav-actions { gap: 0.38rem; }

  .icon-button {
    width: 36px;
    height: 36px;
  }

  .language__button {
    min-height: 36px;
    padding: 0.42rem 0.62rem;
    font-size: 0.80rem;
  }

  .nav-actions .btn--sm {
    min-height: 38px;
    padding: 0.55rem 0.92rem;
    font-size: 0.80rem;
  }
}

/* Compact two-card promotional carousel on large screens. */
body[data-page="home"] .promo-slider {
  width: min(1436px, calc(100% - 96px));
  margin: 14px auto 18px;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page="home"] .promo-slider__viewport {
  overflow: hidden;
  width: 100%;
  aspect-ratio: auto;
  min-height: 0;
  max-height: none;
  border-radius: 0;
}

body[data-page="home"] .promo-slider__track {
  display: flex;
  gap: 8px;
  width: 100%;
  height: auto;
  transform: translate3d(0,0,0);
  transition: transform 760ms cubic-bezier(.22,.72,.22,1);
  will-change: transform;
}

body[data-page="home"] .promo-slide,
body[data-page="home"] .promo-slide.is-active,
body[data-page="home"] .promo-slide.is-leaving,
body[data-page="home"] .promo-slide.is-preparing {
  position: relative;
  inset: auto;
  flex: 0 0 calc((100% - 8px) / 2);
  width: auto;
  height: auto;
  transform: none;
  opacity: 1;
  visibility: visible;
  transition: none;
  z-index: auto;
  overflow: hidden;
  border: 1px solid rgba(18, 88, 132, 0.12);
  border-radius: 3px;
  background: #fff;
}

body[data-page="home"] .promo-slide img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 1;
  object-fit: cover;
  object-position: center;
}

body[data-page="home"] .promo-slider::after { display: none; }

body[data-page="home"] .promo-slider__dots {
  position: relative;
  left: auto;
  bottom: auto;
  width: max-content;
  margin: 10px auto 0;
  transform: none;
  padding: 0;
  gap: 6px;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body[data-page="home"] .promo-slider__dots button {
  width: 8px;
  height: 8px;
  background: #c7d1da;
}

body[data-page="home"] .promo-slider__dots button.is-active {
  width: 8px;
  border-radius: 50%;
  background: var(--brand-orange);
}

body[data-page="home"] .promo-slider__arrow {
  position: absolute;
  z-index: 8;
  top: calc(50% - 13px);
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue, #0b5f9e);
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(18, 88, 132, .10);
  border-radius: 50%;
  box-shadow: 0 8px 26px rgba(3,36,61,.12);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

body[data-page="home"] .promo-slider__arrow:hover {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 10px 30px rgba(3,36,61,.17);
}

body[data-page="home"] .promo-slider__arrow--prev { left: -54px; }
body[data-page="home"] .promo-slider__arrow--next { right: -54px; }

body[data-page="home"] .promo-slider__arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html[data-theme="dark"] body[data-page="home"] .promo-slider {
  border: 0;
  box-shadow: none;
}

html[data-theme="dark"] body[data-page="home"] .promo-slider__arrow {
  color: #dff3ff;
  background: rgba(13,38,56,.94);
  border-color: rgba(191,226,244,.16);
}

@media (max-width: 1500px) {
  body[data-page="home"] .promo-slider {
    width: min(1320px, calc(100% - 112px));
  }
}

@media (max-width: 1100px) {
  body[data-page="home"] .promo-slider {
    width: calc(100% - 32px);
    margin-block: 12px 16px;
  }

  body[data-page="home"] .promo-slide,
  body[data-page="home"] .promo-slide.is-active,
  body[data-page="home"] .promo-slide.is-leaving,
  body[data-page="home"] .promo-slide.is-preparing {
    flex-basis: 100%;
  }

  body[data-page="home"] .promo-slider__arrow--prev { left: 10px; }
  body[data-page="home"] .promo-slider__arrow--next { right: 10px; }
  body[data-page="home"] .promo-slider__arrow { width: 38px; height: 38px; }
}

@media (max-width: 640px) {
  body[data-page="home"] .promo-slider { width: calc(100% - 20px); }
  body[data-page="home"] .promo-slide img {
    aspect-ratio: 4 / 1;
    object-fit: cover;
  }
  body[data-page="home"] .promo-slider__arrow { display: none; }
}



/* ================================================================
   V18 — Smaller logo + smart auto-hiding header only
   ================================================================ */
.site-header {
  will-change: transform;
  transform: translateY(0);
  transition: transform 280ms cubic-bezier(.22,.72,.22,1),
              box-shadow var(--transition),
              background var(--transition);
}

.site-header.is-hidden {
  transform: translateY(calc(-100% - 2px));
  box-shadow: none;
}

@media (min-width: 1101px) {
  .brand { width: 108px; }
}

@media (min-width: 721px) and (max-width: 1100px) {
  .brand { width: 118px; }
}

@media (max-width: 720px) {
  .brand { width: 112px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header { transition: none; }
}


/* V19: login action + expanded wallet service cards */
.btn--login {
  color: #fff;
  background: linear-gradient(135deg, #075f9b 0%, #0e86b8 100%);
  border: 1px solid rgba(255,255,255,.3);
  box-shadow: 0 10px 28px rgba(7,95,155,.22), inset 0 1px 0 rgba(255,255,255,.22);
}
.btn--login:hover {
  color: #fff;
  transform: translateY(-2px);
  background: linear-gradient(135deg, #064f84 0%, #0b739f 100%);
  box-shadow: 0 14px 34px rgba(7,95,155,.3), inset 0 1px 0 rgba(255,255,255,.22);
}
html[data-theme="dark"] .btn--login {
  background: linear-gradient(135deg, #1584c4 0%, #0b6f9f 100%);
  border-color: rgba(255,255,255,.24);
}
.mobile-panel__inner > .btn--login { margin-top: .55rem; width: 100%; }

.iphone-stage--hero .hero-service-card {
  z-index: 4;
  padding: .58rem .72rem;
  gap: .56rem;
  min-width: 190px;
  max-width: 230px;
  border-radius: 16px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: 0 16px 40px rgba(7,49,82,.15), inset 0 1px 0 rgba(255,255,255,.75);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}
.iphone-stage--hero .hero-service-card strong { font-size: .83rem; line-height: 1.18; }
.iphone-stage--hero .hero-service-card small { font-size: .69rem; line-height: 1.2; margin-top: .12rem; }
.iphone-stage--hero .hero-service-card__icon { width: 34px; height: 34px; border-radius: 11px; flex: 0 0 34px; }
.hero-service-card__icon--airtime { background: linear-gradient(145deg,#ff7a1a,#f5a623); }
.hero-service-card__icon--cross { background: linear-gradient(145deg,#1769aa,#19a0c7); }
.hero-service-card__icon--cash { background: linear-gradient(145deg,#0f8d68,#37b37e); }
.iphone-stage--hero .hero-service-card--airtime { left: -26px; top: 205px; }
.iphone-stage--hero .hero-service-card--cross { right: -34px; top: 118px; }
.iphone-stage--hero .hero-service-card--cash { right: -38px; bottom: 190px; }

html[data-theme="dark"] .iphone-stage--hero .hero-service-card {
  color: #f6fbff;
  background: rgba(10,35,55,.72);
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 18px 44px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.12);
}
html[data-theme="dark"] .iphone-stage--hero .hero-service-card small { color: rgba(229,240,248,.78); }

@media (max-width: 1180px) {
  .iphone-stage--hero .hero-service-card--airtime { left: -10px; }
  .iphone-stage--hero .hero-service-card--cross { right: -12px; }
  .iphone-stage--hero .hero-service-card--cash { right: -10px; }
}
@media (max-width: 960px) {
  .iphone-stage--hero .hero-service-card { display: none; }
  .nav-actions .btn--login.btn--sm { display: none; }
}

/* ================================================================
   V21 — Compact Sarai Shahzada exchange-rate ticker
   ================================================================ */
.fx-strip {
  position: relative;
  z-index: 940;
  pointer-events: none;
}

.fx-strip__inner {
  display: flex;
  min-height: 0;
  padding-top: 6px;
  padding-bottom: 4px;
}

.fx-ticker {
  pointer-events: auto;
  margin-left: auto;
  width: min(100%, 390px);
  min-height: 34px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 4px 9px 4px 5px;
  color: #073454;
  text-decoration: none;
  border: 1px solid rgba(20, 113, 166, 0.18);
  border-radius: 999px;
  background:
    linear-gradient(120deg, rgba(255,255,255,.88), rgba(241,250,255,.72)),
    rgba(255,255,255,.72);
  box-shadow: 0 8px 24px rgba(8, 50, 78, 0.08), inset 0 1px 0 rgba(255,255,255,.9);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  overflow: hidden;
  position: relative;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.fx-ticker::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 18%, rgba(255,255,255,.56) 42%, transparent 64%);
  transform: translateX(-140%);
  animation: fxSheen 7s ease-in-out infinite;
}

.fx-ticker:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 123, 25, 0.38);
  box-shadow: 0 10px 26px rgba(8, 50, 78, 0.12), inset 0 1px 0 rgba(255,255,255,.95);
}

.fx-ticker__badge {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #0b6ca8, #0c8bb7);
  box-shadow: 0 5px 14px rgba(5, 104, 157, 0.22);
}

.fx-ticker__badge svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fx-ticker__viewport {
  min-width: 0;
  height: 22px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.fx-ticker__rate {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
  font-size: 0.76rem;
  line-height: 1;
  letter-spacing: 0.005em;
  transition: opacity 220ms ease, transform 220ms ease, filter 220ms ease;
}

.fx-ticker__rate.is-changing {
  opacity: 0;
  transform: translateY(-10px);
  filter: blur(2px);
}

.fx-ticker__source {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.63rem;
  font-weight: 800;
  color: #5e7484;
  white-space: nowrap;
}

.fx-ticker__dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #24a36d;
  box-shadow: 0 0 0 4px rgba(36,163,109,.10);
  animation: fxPulse 2.2s ease-in-out infinite;
}

.fx-ticker[data-fx-state="error"] .fx-ticker__dot {
  background: #d88518;
  box-shadow: 0 0 0 4px rgba(216,133,24,.10);
}

html[data-theme="dark"] .fx-ticker {
  color: #edf8ff;
  border-color: rgba(112, 199, 239, 0.18);
  background:
    linear-gradient(120deg, rgba(10,35,53,.88), rgba(7,28,44,.74)),
    rgba(6,25,39,.82);
  box-shadow: 0 10px 28px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.08);
}

html[data-theme="dark"] .fx-ticker__source { color: #a9c0ce; }

html[dir="rtl"] .fx-ticker {
  direction: ltr;
}

html[dir="rtl"] .fx-ticker__rate,
html[dir="rtl"] .fx-ticker__source {
  direction: rtl;
}

@media (max-width: 720px) {
  .fx-strip__inner { padding-top: 5px; padding-bottom: 3px; }
  .fx-ticker {
    width: 100%;
    min-height: 32px;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    gap: 6px;
    padding: 3px 8px 3px 4px;
  }
  .fx-ticker__badge { width: 24px; height: 24px; }
  .fx-ticker__rate { font-size: 0.72rem; }
  .fx-ticker__source { font-size: 0.58rem; }
}

@media (prefers-reduced-motion: reduce) {
  .fx-ticker::after,
  .fx-ticker__dot { animation: none; }
  .fx-ticker__rate { transition: none; }
}

@keyframes fxSheen {
  0%, 74%, 100% { transform: translateX(-140%); }
  86% { transform: translateX(140%); }
}

@keyframes fxPulse {
  0%, 100% { transform: scale(1); opacity: .88; }
  50% { transform: scale(1.15); opacity: 1; }
}

/* V22 — compact three-market exchange board between promotions and hero */
.fx-board {
  position: relative;
  z-index: 6;
  padding: 10px 0 9px;
  background:
    linear-gradient(90deg, rgba(236,248,253,.88), rgba(255,255,255,.96) 42%, rgba(255,247,240,.88));
  border-top: 1px solid rgba(11,77,116,.08);
  border-bottom: 1px solid rgba(11,77,116,.1);
  box-shadow: 0 12px 34px rgba(15,62,89,.08);
}

.fx-board__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 10px;
  align-items: stretch;
}

.fx-market-card {
  display: block;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(18,87,128,.16);
  border-radius: 10px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 8px 22px rgba(22,75,107,.08);
  color: #16364f;
  text-decoration: none;
  backdrop-filter: blur(16px) saturate(125%);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.fx-market-card:hover,
.fx-market-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(23,143,203,.34);
  box-shadow: 0 12px 28px rgba(22,75,107,.13);
}

.fx-market-card__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 31px;
  padding: 5px 11px;
  background: linear-gradient(135deg, #2b9cda, #2589c5);
  color: #fff;
  font-size: .69rem;
  line-height: 1.1;
}

.fx-market-card__head--dark {
  background: linear-gradient(135deg, #314b64, #223e58);
}

.fx-market-card__title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
  letter-spacing: .01em;
}

.fx-market-card__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(44px, 1fr));
  gap: 5px;
  text-align: center;
  font-weight: 700;
}

.fx-market-card__cols--wide {
  grid-template-columns: repeat(4, minmax(40px, 1fr));
}

.fx-market-card__body {
  display: grid;
  grid-template-columns: minmax(125px, 1.25fr) repeat(4, minmax(40px, .56fr));
  align-items: center;
  gap: 5px;
  min-height: 47px;
  padding: 6px 10px 4px;
  transition: opacity .18s ease, transform .18s ease, filter .18s ease;
}

.fx-market-card__body--compact {
  grid-template-columns: minmax(125px, 1.35fr) repeat(2, minmax(48px, .65fr));
}

.fx-market-card__body.is-changing {
  opacity: 0;
  transform: translateX(13px);
  filter: blur(1px);
}

.fx-market-card__currency {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: .73rem;
  color: #123b58;
}

.fx-market-card__currency strong {
  flex: 0 0 auto;
  font-size: .76rem;
  color: #0a5f9a;
}

.fx-market-card__currency small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: .64rem;
  color: #677f91;
}

.fx-market-card__num {
  text-align: center;
  font-size: .73rem;
  font-variant-numeric: tabular-nums;
  color: #586d7d;
}

.fx-market-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 18px;
  padding: 0 10px 5px;
  color: #8a9aa6;
  font-size: .56rem;
  line-height: 1;
}

.fx-market-card__meta [data-fx-change] {
  font-weight: 800;
  color: #6f8492;
}

.fx-market-card__meta [data-fx-change].is-positive { color: #14985f; }
.fx-market-card__meta [data-fx-change].is-negative { color: #c95353; }

.fx-board__foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-height: 17px;
  padding-top: 5px;
  color: #6f8392;
  font-size: .57rem;
}

.fx-board__foot a {
  color: #1279b3;
  font-weight: 700;
  text-decoration: none;
}

html[data-theme="dark"] .fx-board {
  background: linear-gradient(90deg, rgba(4,30,48,.96), rgba(6,39,61,.96) 48%, rgba(38,30,27,.9));
  border-color: rgba(132,200,235,.12);
  box-shadow: 0 14px 34px rgba(0,0,0,.2);
}

html[data-theme="dark"] .fx-market-card {
  background: rgba(8,35,54,.8);
  border-color: rgba(148,205,233,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 8px 24px rgba(0,0,0,.15);
}

html[data-theme="dark"] .fx-market-card__currency,
html[data-theme="dark"] .fx-market-card__currency strong { color: #eaf8ff; }
html[data-theme="dark"] .fx-market-card__currency small,
html[data-theme="dark"] .fx-market-card__num { color: #b7cfdd; }
html[data-theme="dark"] .fx-board__foot { color: #9eb6c4; }
html[data-theme="dark"] .fx-board__foot a { color: #72c9f3; }

html[dir="rtl"] .fx-market-card__body.is-changing { transform: translateX(-13px); }
html[dir="rtl"] .fx-market-card__currency { direction: rtl; }
html[dir="rtl"] .fx-market-card__num { direction: ltr; }

@media (max-width: 1050px) {
  .fx-board__inner { grid-template-columns: 1fr 1fr; }
  .fx-market-card--sarai { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .fx-board { padding: 8px 0; }
  .fx-board__inner {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .fx-board__inner::-webkit-scrollbar { display: none; }
  .fx-market-card {
    flex: 0 0 min(88vw, 360px);
    scroll-snap-align: start;
  }
  .fx-market-card--sarai { grid-column: auto; }
  .fx-market-card__body { grid-template-columns: minmax(108px, 1.15fr) repeat(4, minmax(37px, .5fr)); }
  .fx-market-card__body--compact { grid-template-columns: minmax(120px, 1.35fr) repeat(2, minmax(50px, .65fr)); }
  .fx-board__foot { justify-content: space-between; font-size: .54rem; }
}

@media (prefers-reduced-motion: reduce) {
  .fx-market-card,
  .fx-market-card__body { transition: none; }
}


/* ================================================================
   V23 — Single promotional slide + portal login selector
   ================================================================ */
@media (min-width: 1101px) {
  body[data-page="home"] .promo-slider {
    /* V24 — wider desktop homepage slider requested by user */
    /* Keep each banner at the same approved card size as V17, but show one at a time. */
    width: min(1288px, calc(100% - 120px));
  }
}
body[data-page="home"] .promo-slide,
body[data-page="home"] .promo-slide.is-active,
body[data-page="home"] .promo-slide.is-leaving,
body[data-page="home"] .promo-slide.is-preparing {
  flex-basis: 100%;
}
body[data-page="home"] .promo-slider__track {
  transition-duration: 640ms;
}

.portal-login {
  position: relative;
  display: inline-flex;
}
.portal-login__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .38rem;
}
.portal-login__toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease;
}
.portal-login.is-open .portal-login__toggle::after {
  transform: rotate(225deg) translate(-1px,-1px);
}
.portal-login__menu {
  position: absolute;
  z-index: 1200;
  inset-inline-end: 0;
  top: calc(100% + 9px);
  width: 218px;
  padding: 7px;
  border: 1px solid rgba(20,87,128,.14);
  border-radius: 16px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 18px 48px rgba(2,38,64,.18);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}
.portal-login__menu[hidden] { display: none !important; }
.portal-login__menu a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: .66rem .78rem;
  border-radius: 11px;
  color: var(--brand-navy, #07304f);
  font-size: .84rem;
  font-weight: 760;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.portal-login__menu a:hover,
.portal-login__menu a:focus-visible {
  color: #fff;
  background: linear-gradient(135deg,#075f9b,#0e86b8);
  transform: translateX(-1px);
}
html[data-theme="dark"] .portal-login__menu {
  background: rgba(8,29,45,.94);
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 18px 48px rgba(0,0,0,.34);
}
html[data-theme="dark"] .portal-login__menu a { color: #eef8ff; }
.portal-login--mobile {
  display: flex;
  width: 100%;
  flex-direction: column;
  margin-top: .55rem;
}
.portal-login--mobile .portal-login__toggle { width: 100%; }
.portal-login--mobile .portal-login__menu {
  position: static;
  width: 100%;
  margin-top: 7px;
}

/* ================================================================
   V25 — High-quality promotional banners
   Preserve V24 desktop width; display the full 2048x779 artwork.
   ================================================================ */
body[data-page="home"] .promo-slide img {
  aspect-ratio: 2048 / 779;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

/* ================================================================
   V26 — Smaller promotional slider with fully rounded corners
   ================================================================ */
@media (min-width: 1101px) {
  body[data-page="home"] .promo-slider {
    width: min(1040px, calc(100% - 160px));
  }
}
body[data-page="home"] .promo-slider__viewport {
  border-radius: 28px;
  overflow: hidden;
}
body[data-page="home"] .promo-slide,
body[data-page="home"] .promo-slide.is-active,
body[data-page="home"] .promo-slide.is-leaving,
body[data-page="home"] .promo-slide.is-preparing {
  border-radius: 28px;
  overflow: hidden;
}
body[data-page="home"] .promo-slide img {
  border-radius: 28px;
}
@media (max-width: 1100px) {
  body[data-page="home"] .promo-slider {
    width: calc(100% - 48px);
  }
}
@media (max-width: 640px) {
  body[data-page="home"] .promo-slider {
    width: calc(100% - 28px);
  }
  body[data-page="home"] .promo-slider__viewport,
  body[data-page="home"] .promo-slide,
  body[data-page="home"] .promo-slide img {
    border-radius: 20px;
  }
}


/* ================================================================
   V28 — Inset, fully visible promotional slider
   Leaves ~3 cm on both sides and shows the complete banner without cropping.
   ================================================================ */
body[data-page="home"] .promo-slider {
  width: calc(100% - 6cm);
  max-width: 1500px;
  margin: 10px auto 14px;
}
body[data-page="home"] .promo-slider__viewport {
  height: auto;
  aspect-ratio: 2048 / 779;
  border-radius: 26px;
  background: transparent;
}
body[data-page="home"] .promo-slide,
body[data-page="home"] .promo-slide.is-active,
body[data-page="home"] .promo-slide.is-leaving,
body[data-page="home"] .promo-slide.is-preparing {
  height: 100%;
  border-radius: 26px;
  background: transparent;
}
body[data-page="home"] .promo-slide img {
  width: 100%;
  height: 100%;
  aspect-ratio: 2048 / 779;
  object-fit: contain;
  object-position: center;
  border-radius: 26px;
  background: transparent;
}
body[data-page="home"] .promo-slider__arrow--prev { left: 18px; }
body[data-page="home"] .promo-slider__arrow--next { right: 18px; }

@media (max-width: 1100px) {
  body[data-page="home"] .promo-slider {
    width: calc(100% - 48px);
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }
  body[data-page="home"] .promo-slider__viewport,
  body[data-page="home"] .promo-slide,
  body[data-page="home"] .promo-slide img {
    border-radius: 22px;
  }
}

@media (max-width: 640px) {
  body[data-page="home"] .promo-slider {
    width: calc(100% - 24px);
  }
  body[data-page="home"] .promo-slider__viewport,
  body[data-page="home"] .promo-slide,
  body[data-page="home"] .promo-slide img {
    border-radius: 18px;
  }
}



/* ================================================================
   V31 — compact homepage callouts + V29 service logos on detail page
   ================================================================ */
body[data-page="home"] .security-callout {
  padding-block: clamp(1rem, 2.2vw, 1.55rem);
  padding-inline: clamp(1.5rem, 5vw, 3rem);
}

body[data-page="home"] .cta-band {
  padding-block: clamp(1.35rem, 2.8vw, 2rem);
  padding-inline: clamp(2.5rem, 6vw, 4.3rem);
}

.service-detail__logo {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

@media (max-width: 480px) {
  body[data-page="home"] .security-callout {
    padding-block: 1rem;
    padding-inline: 1.2rem;
  }
  body[data-page="home"] .cta-band {
    padding-block: 1.15rem;
    padding-inline: 1.5rem;
  }
}


/* ================================================================
   V32 — Compact footer + developer credit
   ================================================================ */
.site-footer__main {
  padding-block: 3rem 2.25rem;
}

.footer-grid {
  gap: 1.6rem;
}

.footer-brand img {
  width: 150px;
  padding: 0.28rem;
  border-radius: 10px;
}

.footer-brand p {
  max-width: 360px;
  margin-top: 0.8rem;
  font-size: 0.9rem;
  line-height: 1.58;
}

.site-footer h3 {
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

.footer-links {
  gap: 0.42rem;
}

.footer-links a,
.footer-contact a,
.footer-contact span {
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-contact {
  gap: 0.58rem;
}

.footer-brand .store-badges {
  margin-top: 0.85rem;
}

.footer-brand .store-badge {
  max-width: 176px;
}

.site-footer__bottom {
  padding-block: 0.85rem;
}

.footer-bottom__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  font-size: 0.8rem;
}

.footer-developer {
  color: rgba(255,255,255,.78);
  white-space: nowrap;
}

.footer-developer strong {
  color: rgba(255,255,255,.94);
  font-weight: 700;
}

.footer-legal {
  justify-content: flex-end;
  gap: 0.85rem;
}

@media (max-width: 900px) {
  .footer-bottom__inner {
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .footer-legal {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-footer__main {
    padding-block: 2.4rem 1.8rem;
  }
  .footer-brand img {
    width: 132px;
  }
  .footer-brand p,
  .footer-links a,
  .footer-contact a,
  .footer-contact span {
    font-size: 0.86rem;
  }
}


/* ================================================================
   V34 — Exchange-rate board alignment + dynamic visual polish
   ================================================================ */
.fx-market-card__head {
  /* Match the header columns to the numeric row columns exactly. */
  grid-template-columns: minmax(125px, 1.35fr) repeat(2, minmax(48px, .65fr));
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.fx-market-card--sarai .fx-market-card__head {
  grid-template-columns: minmax(125px, 1.25fr) repeat(4, minmax(40px, .56fr));
}

.fx-market-card__cols,
.fx-market-card__cols--wide {
  display: contents;
}

.fx-market-card__cols span {
  min-width: 0;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.fx-market-card__title {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.fx-market-card__title::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8fe4ff;
  box-shadow: 0 0 0 0 rgba(143,228,255,.5);
  animation: fxMarketPulse 2.2s ease-out infinite;
}

.fx-market-card__head::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  width: 72px;
  left: -90px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  transform: skewX(-18deg);
  animation: fxMarketSheen 5.8s ease-in-out infinite;
  pointer-events: none;
}

.fx-market-card:nth-child(2) .fx-market-card__head::after { animation-delay: 1.1s; }
.fx-market-card:nth-child(3) .fx-market-card__head::after { animation-delay: 2.2s; }

.fx-market-card {
  box-shadow:
    0 10px 26px rgba(22,75,107,.09),
    inset 0 1px 0 rgba(255,255,255,.78);
}

.fx-market-card:hover,
.fx-market-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(23,143,203,.42);
  box-shadow:
    0 16px 34px rgba(22,75,107,.16),
    0 0 0 1px rgba(93,191,237,.08),
    inset 0 1px 0 rgba(255,255,255,.86);
}

.fx-market-card__body {
  background:
    radial-gradient(circle at 85% 15%, rgba(73,173,225,.07), transparent 44%),
    linear-gradient(180deg, rgba(255,255,255,.72), rgba(248,252,255,.62));
  transform-origin: center;
  transition: opacity .22s ease, transform .22s cubic-bezier(.22,.72,.22,1), filter .22s ease;
}

.fx-market-card__body.is-changing {
  opacity: 0;
  transform: translateY(-5px) scale(.992);
  filter: blur(1.2px);
}

.fx-market-card__num {
  font-weight: 650;
  letter-spacing: .005em;
}

.fx-market-card__meta [data-fx-change].is-positive,
.fx-market-card__meta [data-fx-change].is-negative {
  padding: 2px 5px;
  border-radius: 999px;
}

.fx-market-card__meta [data-fx-change].is-positive {
  background: rgba(20,152,95,.09);
}

.fx-market-card__meta [data-fx-change].is-negative {
  background: rgba(201,83,83,.09);
}

.fx-board__foot a {
  position: relative;
}

.fx-board__foot a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transition: right .2s ease;
}

.fx-board__foot a:hover::after,
.fx-board__foot a:focus-visible::after {
  right: 0;
}

html[data-theme="dark"] .fx-market-card__body {
  background:
    radial-gradient(circle at 85% 15%, rgba(75,190,241,.08), transparent 44%),
    linear-gradient(180deg, rgba(9,42,63,.86), rgba(7,34,52,.72));
}

html[data-theme="dark"] .fx-market-card__title::before {
  background: #8fe4ff;
}

html[dir="rtl"] .fx-market-card__body.is-changing {
  transform: translateY(-5px) scale(.992);
}

@keyframes fxMarketPulse {
  0% { box-shadow: 0 0 0 0 rgba(143,228,255,.48); }
  65%, 100% { box-shadow: 0 0 0 7px rgba(143,228,255,0); }
}

@keyframes fxMarketSheen {
  0%, 66%, 100% { left: -90px; }
  82% { left: calc(100% + 90px); }
}

@media (max-width: 680px) {
  .fx-market-card__head {
    grid-template-columns: minmax(120px, 1.35fr) repeat(2, minmax(50px, .65fr));
  }
  .fx-market-card--sarai .fx-market-card__head {
    grid-template-columns: minmax(108px, 1.15fr) repeat(4, minmax(37px, .5fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .fx-market-card__title::before,
  .fx-market-card__head::after {
    animation: none;
  }
}
