/* ═══════════════════════════════════════════════
           COMMON RESET & SHARED BASE STYLES
           ═══════════════════════════════════════════════ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  overflow-wrap: break-word;
  word-break: break-word;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

:focus-visible {
  outline: 2px solid #291f75;
  outline-offset: 2px;
}

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

/* ═══════════════════════════════════════════════
           BRAND LOCKUP (shared)
           ═══════════════════════════════════════════════ */
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-lockup__logo {
  height: 24px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.brand-lockup__divider {
  width: 1px;
  height: 30px;
  background-color: #2e319235;
  flex-shrink: 0;
  align-self: center;
}

.brand-lockup__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-lockup__label {
  font-size: 10px;
  color: #8487b2;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.brand-lockup__title {
  font-size: 18px;
  color: #2e3192;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* ═══════════════════════════════════════════════
           DESKTOP VARIABLES (default)
           ═══════════════════════════════════════════════ */
:root {
  --brand-primary: #291f75;
  --brand-accent: #d92157;
  --brand-gradient: linear-gradient(135deg, #d92157 0%, #291f75 100%);
  --brand-gradient-hero: linear-gradient(90deg, #d92157 -135%, #2c1f75fc 150%);
  --ink: #0d0d1a;
  --ink-2: #3d3d55;
  --ink-3: #8888a8;
  --ink-4: #b8b8cc;
  --paper: #f7f6f2;
  --paper-2: #eeecea;
  --paper-3: #e5e3df;
  --white: #ffffff;
  --brand: #1a0f6e;
  --brand-2: #2d1fa8;
  --brand-3: #4a38d4;
  --brand-light: #ede9ff;
  --brand-mid: #7c6ee8;
  --accent: #c8204a;
  --accent-light: #ffeef2;
  --accent-mid: #e84472;
  --gold: #c4940e;
  --gold-light: #fff8e1;
  --green: #146b3e;
  --green-light: #e6f7ee;
  --red: #c0201f;
  --red-light: #fff0ef;
  --amber: #a85c00;
  --amber-light: #fff4e0;
  --upi-blue: #5f259f;
  --upi-light: #f3e8ff;
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-2xl: 36px;
  --border: 1px solid rgba(13, 13, 26, 0.09);
  --border-strong: 1px solid rgba(13, 13, 26, 0.18);
  --sh-sm: 0 2px 8px rgba(13, 13, 26, 0.06);
  --sh-md: 0 6px 24px rgba(13, 13, 26, 0.1);
  --sh-lg: 0 16px 48px rgba(13, 13, 26, 0.14);
  --nav-h: 68px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ═══════════════════════════════════════════════
           APP LAYOUT — SINGLE SOURCE OF TRUTH
           ═══════════════════════════════════════════════ */
.app-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: white;
  position: relative;
}

/* ─── Shared animations ─── */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeSlideUp 0.5s var(--ease-out-expo) both;
}
.delay-1 {
  animation-delay: 0.08s;
}
.delay-2 {
  animation-delay: 0.16s;
}
.delay-3 {
  animation-delay: 0.24s;
}
.delay-4 {
  animation-delay: 0.32s;
}
.delay-5 {
  animation-delay: 0.4s;
}

/* ═══════════════════════════════════════════════
           HERO RIBBON — SHARED BY ALL VIEWPORTS
           Single source of truth: edit here only.
           ═══════════════════════════════════════════════ */
.hero-ribbon {
  background: var(--brand);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.hero-track {
  display: flex;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  align-items: flex-start;
}

.hero-slide {
  flex: 0 0 100%;
  align-self: flex-start;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  align-items: center;
  column-gap: 20px;
  padding: 16px 40px 16px 48px;
  min-height: unset;
}

.hero-slide::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.06) 0%,
    transparent 70%
  );
  top: -120px;
  right: 80px;
  pointer-events: none;
}

.hero-left {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 11px;
  color: white;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.hero-title {
  font-family: "DM Serif Display", serif;
  font-size: 21px;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.2px;
}

.hero-sub {
  font-size: 12.5px;
  color: white;
  margin-top: 5px;
  line-height: 1.5;
}

.hero-aside {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  width: 112px;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  flex-shrink: 0;
}

.hero-aside .hero-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  right: auto;
  transform: translate(-50%, -50%);
  font-size: clamp(76px, 8vw, 100px);
  color: rgba(255, 255, 255, 0.09);
  z-index: 0;
  pointer-events: none;
  line-height: 1;
}

.hero-right {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

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

.hero-stat-val {
  font-family: "DM Serif Display", serif;
  font-size: 26px;
  color: #fff;
  line-height: 1;
}

.hero-stat-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
  margin-top: 4px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-transform: uppercase;
}

.hero-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.hero-dot.active {
  width: 24px;
  border-radius: 4px;
  background: #fff;
}

.hero-left .hero-chip-zone {
  margin: 10px 0px;
  width: 100%;
  max-width: 100%;
}

.hero-left .hero-chip-rows {
  width: fit-content;
  max-width: 100%;
}

.hero-left .hero-chip-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
}

.hero-left .hero-chip-suffix {
  margin-top: 8px;
}

.hero-policy-chip {
  display: inline-flex;
  align-items: center;
  width: auto;
  max-width: 100%;
  flex: 0 0 auto;
  padding: 5px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.95);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.3;
  transition:
    background 0.2s,
    transform 0.15s;
}

.hero-policy-chip:hover,
.hero-policy-chip:focus-visible {
  background: rgba(255, 255, 255, 0.34);
  outline: none;
}

.hero-policy-chip:active {
  transform: scale(0.97);
}

/* ═══════════════════════════════════════════════
           DESKTOP LAYOUT (≥1024px)
           ═══════════════════════════════════════════════ */
@media (min-width: 1024px) {
  .app-layout {
    background: white;
  }

  /* ── Header ── */
  .main-header {
    background: var(--white);
    border-bottom: var(--border);
    height: 62px;
    display: flex;
    align-items: center;
    padding: 0 36px;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: var(--sh-sm);
    gap: 0;
  }

  .hamburger-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: var(--border);
    background: var(--paper);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
    margin-right: 12px;
  }

  .hamburger-btn:hover {
    background: var(--paper-2);
  }

  .hamburger-btn span {
    display: block;
    width: 16px;
    height: 2px;
    background: var(--ink-2);
    border-radius: 2px;
    transition: all 0.3s;
  }

  .logo-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .logo-wrap .brand-lockup__logo {
    height: 24px;
  }

  .logo-wrap .brand-lockup__label {
    font-size: 16px;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 600;
    margin-bottom: 3px;
  }

  .logo-wrap .brand-lockup__title {
    font-size: 16px;
  }

  .nav-pills {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 0 24px;
  }

  .nav-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
    transition:
      background 0.2s,
      color 0.2s;
    white-space: nowrap;
  }

  .nav-pill.active {
    color: var(--brand-primary);
  }

  .desktop-header-icon {
    width: 25px;
    height: 25px;
    object-fit: contain;
  }

  .hdr-actions {
    display: flex;
    align-items: center;
    gap: 27px;
    flex-shrink: 0;
  }

  .icon-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--ink-2);
    position: relative;
    transition: background 0.2s;
    cursor: pointer;
    border-radius: 8px;
  }

  .icon-btn img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
  }

  .notif-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    background: var(--accent);
    border-radius: 50px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
    padding: 0 4px;
  }

  .user-pill {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: var(--border);
    background: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s;
    flex-shrink: 0;
  }

  .user-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-3), var(--accent-mid));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.04em;
  }

  /* ── Page Body ── */
  .page-body {
    display: flex;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 28px 5px;
    gap: 40px;
    align-items: flex-start;
    flex: 1;
  }

  .col-right {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: row;
    gap: 18px;
    align-items: flex-start;
    margin-left: 0;
    margin-left: auto;
    margin-right: auto;
  }

  .col-left {
    flex: 0 0 200px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .col-left .qs-card {
    background: var(--white);
    border: var(--border);
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--sh-sm);
  }

  .col-left .qs-head {
    padding: 12px 16px;
    border-bottom: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-gradient);
  }

  .col-left .qs-title {
    font-size: 14px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .col-left .qs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
    background: var(--white);
  }

  .col-left .qs-tile {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0px;
    background: var(--paper);
    border: var(--border);
    border-radius: var(--r-md);
    padding: 10px 12px;
    color: var(--ink);
    text-decoration: none;
    transition:
      background 0.15s,
      border-color 0.15s;
  }

  .col-left .qs-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
  }

  .col-left .qs-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
  }

  .col-left .qs-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
    white-space: nowrap;
    text-align: left;
    min-width: 0;
  }

  .col-left .qs-tile:hover {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
  }

  .col-left .qs-tile:hover .qs-label {
    color: #fff;
  }

  .col-left .qs-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--qs-white, none) no-repeat center / 24px 24px;
    opacity: 0;
    transition: opacity 0.15s;
  }

  .col-left .qs-tile:hover .qs-icon::after {
    opacity: 1;
  }

  /* ── SmartCare Login card ── */
  .col-left .sc-login-card {
    background: var(--white);
    border: var(--border);
    border-radius: var(--r-xl);
    box-shadow: var(--sh-sm);
    padding: 18px 14px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .col-left .sc-login-logo {
    width: auto;
    height: 44px;
    object-fit: contain;
  }

  .col-left .sc-login-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
  }

  .col-left .sc-login-card p {
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-primary);
  }

  .col-left .sc-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 9px 14px;
    border-radius: 50px;
    background: var(--brand-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition:
      transform 0.2s,
      box-shadow 0.2s;
  }

  .col-left .sc-login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(26, 15, 110, 0.28);
  }

  /* ── Product Chip Bar ── */
  .product-chip-bar {
    width: 100%;
    padding: 12px 24px;
    background: var(--white);
    border-bottom: var(--border);
  }

  .product-chip-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 1440px;
    margin: 0 auto;
  }

  .chip-arrow {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--brand-primary);
    border: none;
    box-shadow: var(--sh-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: white;
    cursor: pointer;
    transition:
      background 0.2s,
      transform 0.15s;
    z-index: 2;
  }

  .chip-arrow:hover {
    background: var(--brand-2);
    transform: scale(1.05);
  }
  .chip-arrow:active {
    transform: scale(0.95);
  }

  .product-chip-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
    scroll-behavior: smooth;
    flex: 1;
    min-width: 0;
  }

  .product-chip-scroll::-webkit-scrollbar {
    display: none;
  }

  .product-chip {
    flex: 0 0 auto;
    padding: 7px 16px;
    border-radius: 20px;
    border: 1.5px solid var(--border-strong);
    background: var(--white);
    color: var(--ink-2);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: inherit;
  }

  .product-chip:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--brand-light);
  }

  .product-chip.active {
    background: var(--brand-primary);
    color: #fff;
    border-color: var(--brand-primary);
  }

  #cardViewWrap {
    flex: 1 1 auto;
    min-width: 0;
  }

  /* ── Rider link in card ── */
  .pc-rider-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--brand-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: color 0.2s;
  }

  .pc-rider-link i {
    font-size: 13px;
  }

  /* ── Rider modal ── */
  .rider-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    transition:
      opacity 0.25s ease,
      visibility 0.25s ease;
  }

  .rider-modal.open {
    visibility: visible;
    opacity: 1;
  }

  .rider-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 9, 31, 0.55);
    backdrop-filter: blur(2px);
  }

  .rider-modal-panel {
    position: relative;
    width: 100%;
    max-width: 460px;
    max-height: 80vh;
    overflow-y: auto;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(9, 9, 31, 0.35);
  }

  .rider-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: var(--border);
    background: var(--brand-primary);
    position: sticky;
    top: 0;
  }

  .rider-modal-title {
    font-size: 15px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .rider-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    color: var(--ink-2);
    font-size: 16px;
    flex-shrink: 0;
    transition: background 0.2s;
  }

  .rider-modal-close:hover {
    background: rgba(0, 0, 0, 0.08);
  }

  .rider-modal-headrow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 18px;
    border-bottom: var(--border);
    background: var(--paper);
  }

  .rider-modal-headrow span {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-3);
  }

  .rider-modal-list {
    padding: 6px 0;
  }

  .rider-modal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    border-bottom: var(--border);
  }

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

  .rider-modal-rname {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
    min-width: 0;
  }

  .rider-modal-rsa {
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-primary);
    white-space: nowrap;
    flex-shrink: 0;
  }

  .rider-modal-empty {
    padding: 24px;
    text-align: center;
    font-size: 13px;
    color: var(--ink-3);
  }

  .sec-title {
    font-family: "DM Serif Display", serif;
    font-size: 18px;
    color: var(--ink);
  }

  .toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .filter-tabs {
    display: inline-flex;
    background: var(--white);
    border-radius: 12px;
    padding: 3px;
    gap: 3px;
    box-shadow: var(--sh-sm);
  }

  .ft-btn {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
    border: none;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
  }

  .ft-btn:hover:not(.active) {
    background: var(--paper-2);
    color: var(--brand);
  }
  .ft-btn.active {
    background: var(--brand-primary);
    color: #fff;
  }

  .ft-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    font-size: 13px;
    font-weight: 700;
  }

  .ft-btn.active .ft-count {
    color: #fff;
  }
  .ft-btn:not(.active) .ft-count {
    color: var(--ink-2);
  }

  /* ── Policy Area ── */
  .policy-area {
    background: #f7f6f291;
    border: var(--border);
    border-radius: var(--r-xl);
    box-shadow: var(--sh-sm);
    overflow: hidden;
    position: relative;
    min-height: 380px;
  }

  .policy-card-grid {
    display: flex;
    gap: 24px;
    padding: 20px 50px;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
  }

  .policy-card-grid[data-count="1"] {
    justify-content: center;
  }
  .policy-card-grid[data-count="1"] .policy-card {
    flex: 0 0 100%;
  }

  .policy-card-grid[data-count="1"] .pc-topbar {
    justify-content: center;
    gap: 12px;
    padding: 8px 24px;
  }

  .policy-card-grid[data-count="1"] .pc-open-btn {
    margin-left: 16px;
  }

  .policy-card-grid[data-count="1"] .pc-name {
    text-align: center;
    font-size: 18px;
    margin-bottom: 4px;
  }

  .policy-card-grid[data-count="1"] .pc-body {
    padding: 16px 24px 20px;
    align-items: center;
    gap: 6px;
  }

  .policy-card-grid[data-count="1"] .pc-grid {
    margin: 10px auto;
    width: 100%;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px 28px;
  }

  .policy-card-grid[data-count="1"] .pc-field label {
    margin-bottom: 5px;
  }
  .policy-card-grid[data-count="1"] .pc-field > span {
    font-size: 13px;
  }

  .policy-card-grid[data-count="1"] .pc-divider {
    width: 100%;
    margin: 0 auto;
  }

  .policy-card-grid[data-count="1"] .pc-ctas {
    justify-content: center;
  }
  .policy-card-grid[data-count="2"] {
    justify-content: center;
  }
  .policy-card-grid[data-count="2"] .policy-card {
    flex: 0 0 calc(50% - 12px);
  }
  .policy-card-grid[data-count="3+"] {
    justify-content: center;
  }
  .policy-card-grid[data-count="3+"] .policy-card {
    flex: 0 0 calc(50% - 12px);
  }

  .sw-nav {
    position: absolute;
    top: 320px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--brand-primary);
    border: var(--border-strong);
    box-shadow: var(--sh-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    cursor: pointer;
    z-index: 10;
    opacity: 1;
    pointer-events: all;
    transition:
      opacity 0.3s,
      background 0.2s;
  }

  .sw-nav.sw-left {
    left: 12px;
  }
  .sw-nav.sw-right {
    right: 12px;
  }

  .policy-empty {
    display: none;
    text-align: center;
    padding: 48px 24px;
    color: var(--ink-3);
    font-size: 14px;
    min-height: 200px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
  }

  .policy-empty.visible {
    display: flex;
  }
  .policy-empty i {
    font-size: 40px;
    color: var(--paper-3);
  }

  .pagination-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding-bottom: 14px;
  }

  .pagination-row.hidden {
    display: none;
  }

  .pg-dots {
    display: flex;
    gap: 6px;
  }

  .pg-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--paper-3);
    cursor: pointer;
    transition: all 0.3s;
    border: none;
  }

  .pg-dot.active {
    width: 22px;
    border-radius: 4px;
    background: var(--brand);
  }

  .pg-counter {
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-3);
  }

  /* ── Policy Card ── */
  .policy-card {
    border: var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 6px 5px;
    transition:
      transform 0.25s,
      box-shadow 0.25s;
    display: flex;
    flex-direction: column;
    background: var(--white);
    min-width: 0;
  }

  .policy-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--sh-md);
  }

  .pc-topbar {
    padding: 8px 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    row-gap: 6px;
  }

  .pc-topbar .pc-type-chip {
    flex-shrink: 0;
  }

  .pc-status-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 8rem;
    min-width: 0;
  }

  .pc-topbar.active-bar,
  .pc-topbar.inactive-bar,
  .pc-topbar.matured-bar {
    background: #b2b2b25c;
  }

  .pc-topbar.matured-bar .pc-type-chip {
    color: white;
    background: var(--brand-gradient);
  }

  .pc-topbar.matured-bar .pc-status-dot {
    background: var(--gold);
  }
  .pc-topbar.matured-bar .pc-status-text {
    color: var(--gold);
  }

  .pc-type-chip {
    font-size: 11px;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: 50px;
    white-space: nowrap;
    color: white;
    background: var(--brand-gradient);
  }

  .pc-status-group .pc-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
  }

  .active-bar .pc-status-dot {
    background: var(--green);
  }
  .inactive-bar .pc-status-dot {
    background: #dc3545;
  }

  .pc-status-text {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.25;
    text-transform: none;
    min-width: 0;
  }

  .pc-status-lines {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .pc-status-line {
    display: block;
    line-height: 1.25;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .active-bar .pc-status-text,
  .active-bar .pc-status-line {
    color: var(--green);
  }

  .inactive-bar .pc-status-text,
  .inactive-bar .pc-status-line {
    color: var(--accent);
    font-size: 13px;
  }

  .pc-topbar.matured-bar .pc-status-text,
  .pc-topbar.matured-bar .pc-status-line {
    color: var(--gold);
  }

  .pc-open-btn {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    color: var(--brand);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background 0.2s;
  }

  .pc-open-btn:hover {
    background: #ddd8ff;
  }

  .pc-body {
    padding: 16px 24px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .pc-name {
    font-size: 16px;
    color: var(--ink);
    text-align: center;
    line-height: 1.25;
  }

  .pc-name .pc-uin {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-3);
    margin-top: 4px;
  }

  .pc-divider {
    height: 1px;
    background: var(--paper-2);
  }

  .pc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px 28px;
  }

  .pc-field {
    min-height: 48px;
    width: auto;
    min-width: 0;
  }

  .pc-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-3);
    letter-spacing: 0.05em;
    margin-bottom: 5px;
  }

  .pc-field > span {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    min-height: 20px;
    /* Unbreakable values such as email addresses must still use the
       full field width instead of overflowing or breaking early. */
    overflow-wrap: break-word;
  }

  .pc-field .pc-age-pill {
    display: inline-flex;
    align-items: center;
    background: #ede9fe;
    color: var(--brand-primary);
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    padding: 2px 7px;
    white-space: nowrap;
    flex-shrink: 0;
    vertical-align: middle;
    margin-left: 4px;
  }

  .pc-field .due-pill {
    display: inline-flex;
    align-items: center;
    background: #fef9c3;
    color: #854d0e;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    padding: 2px 7px;
    white-space: nowrap;
    flex-shrink: 0;
    vertical-align: middle;
  }

  .pc-field .lapsed-pill {
    display: inline-flex;
    align-items: center;
    background: #fee2e2;
    color: var(--error);
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    padding: 2px 7px;
    white-space: nowrap;
    flex-shrink: 0;
    vertical-align: middle;
  }

  .pc-field .age-chip {
    background: var(--brand-light);
    color: var(--brand);
    font-size: 11px;
    font-weight: 700;
    border-radius: 50px;
    padding: 2px 7px;
    margin-left: 4px;
  }

  .pc-field .age-chip.active-chip {
    background: #e8f5e9;
    color: #2e7d32;
  }

  .pc-actions {
    display: flex;
    gap: 35px;
    justify-content: center;
    align-items: center;
  }

  .pc-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
  }

  .pc-action-primary {
    background: var(--brand-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(26, 15, 110, 0.25);
  }

  .pc-action-primary:hover {
    transform: translateY(-2px);
  }

  .pc-action-secondary {
    background: var(--brand-primary);
    color: var(--white);
    border: 1px solid rgba(74, 56, 212, 0.2);
  }

  .pc-action-secondary:hover {
    transform: translateY(-1px);
  }

  .pc-ctas {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
    border-top: 1px solid var(--paper-2);
    padding-top: 14px;
    width: 100%;
  }

  .pc-rider-none {
    color: var(--ink-3);
    font-size: 12px;
    font-weight: 500;
  }

  .pc-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3px;
    margin-bottom: 14px;
    min-width: 0;
  }

  .pc-member-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  .pc-member-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.25;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }

  .pc-rider {
    margin-top: 14px;
    border: var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
  }

  .pc-rider-title {
    padding: 8px 14px;
    background: var(--brand-light);
    color: var(--brand-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    border-bottom: var(--border);
  }

  .pc-rider-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px 28px;
    padding: 2px 0px;
    width: 100%;
  }

  .pc-rider-row .pc-field {
    min-width: 0;
    text-align: left;
  }
  .pc-rider-row:last-child {
    border-bottom: none;
  }
  .pc-rider-value {
    padding: 4px 0;
  }

  .pc-rider-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-2);
    min-width: 0;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .pc-rider-sa {
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-primary);
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* ★ On desktop, hide the mobile "View all riders" link */
  .pc-rider-viewmore {
    display: none !important;
  }

  /* ── Favourites & More ── */
  .favs-card {
    background: var(--white);
    border: var(--border);
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--sh-sm);
  }

  .favs-head {
    padding: 6px 18px;
    border-bottom: var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--brand-gradient);
  }

  .favs-title {
    font-size: 14px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .favs-edit-btn {
    font-size: 11px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 50px;
    background: rgba(200, 32, 74, 0.08);
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
  }

  .favs-edit-btn:hover {
    background: rgba(200, 32, 74, 0.15);
  }

  .favs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px;
    background: #f7f6f291;
  }

  .fav-tile {
    border: 1.5px solid #e4e8f0;
    border-radius: 14px;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    cursor: pointer;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 6px 5px;
    transition:
      transform 0.2s,
      box-shadow 0.2s;
    background: #fff;
  }

  .fav-tile:hover {
    transform: translateY(-2px);
  }

  .fav-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
  }

  .fav-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
  }

  .fav-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-2);
    line-height: 1.3;
  }

  .more-card {
    background: #f7f6f291;
    border: var(--border);
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--sh-sm);
  }

  .more-head {
    padding: 6px 18px;
    border-bottom: var(--border);
    font-size: 14px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--brand-gradient);
  }

  .more-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px;
  }

  .more-tile {
    border: 1.5px solid #e4e8f0;
    border-radius: 14px;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    cursor: pointer;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 6px 5px;
    transition: transform 0.2s;
    background: #fff;
  }

  .more-tile:hover {
    transform: translateY(-2px);
  }

  .more-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
  }

  .more-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
  }

  .more-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-2);
  }

  /* ── Quick Services (full-width strip) ── */
  .qs-strip {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 18px 28px 0;
  }

  .qs-strip-inner {
    background: var(--white);
    border: var(--border);
    border-radius: var(--r-xl);
    box-shadow: var(--sh-sm);
    padding: 16px;
  }

  .qs-strip-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 6px;
    margin-bottom: 14px;
  }

  .qs-strip-title {
    font-family: "DM Serif Display", serif;
    font-size: 17px;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 9px;
  }

  .qs-strip-title i {
    font-size: 13px;
    color: var(--accent);
  }

  .qs-strip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }

  .qs-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px;
    border-radius: var(--r-md);
    cursor: pointer;
    text-decoration: none;
    min-width: 0;
    transition: background 0.2s;
  }

  .qs-tile:hover {
    background: var(--paper);
  }

  .qs-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s var(--ease-spring);
  }

  .qs-tile:hover .qs-icon {
    transform: translateY(-2px);
  }

  .qs-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
  }

  .qs-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-2);
    line-height: 1.3;
  }

  /* ── Footer ── */
  .page-footer {
    background: var(--white);
    border-top: var(--border);
    padding: 14px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
  }

  .footer-copy {
    font-size: 12px;
    color: var(--ink-3);
  }

  .footer-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
  }

  .footer-links a {
    font-size: 12px;
    color: var(--ink-3);
    font-weight: 500;
    text-decoration: underline;
  }

  /* ── Desktop Menu Panel ── */
  .slide-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 13, 26, 0.45);
    z-index: 800;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    backdrop-filter: blur(3px);
  }

  .slide-menu-overlay.open {
    opacity: 1;
    pointer-events: all;
  }

  .main-menu-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    height: 100vh;
    background: var(--white);
    z-index: 900;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 4px 0 32px rgba(13, 13, 26, 0.18);
  }

  .main-menu-panel.open {
    transform: translateX(0);
  }

  .mmp-header {
    background: var(--brand-gradient);
    padding: 20px 22px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
  }

  .mmp-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.2px;
  }

  .mmp-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
  }

  .mmp-close:hover {
    background: rgba(255, 255, 255, 0.28);
  }

  .mmp-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
  }

  .mmp-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--paper);
    border: var(--border);
    border-radius: var(--r-md);
    padding: 10px 20px;
    margin-bottom: 10px;
    cursor: pointer;
    transition:
      background 0.15s,
      border-color 0.15s;
  }

  .mmp-item:hover {
    background: var(--paper-2);
    border-color: rgba(13, 13, 26, 0.15);
  }

  .mmp-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
  }

  .mmp-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
  }

  .mmp-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
  }

  .mmp-chevron {
    margin-left: auto;
    font-size: 11px;
    color: var(--ink-4);
    flex-shrink: 0;
    transition: transform 0.25s;
  }

  .mmp-sub-body {
    display: none;
    padding: 4px 0 4px 16px;
  }
  .mmp-sub-body.open {
    display: block;
  }

  .mmp-sub-item {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-2);
    border-radius: var(--r-sm);
    cursor: pointer;
    transition:
      background 0.15s,
      color 0.15s;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    margin: 2px 0;
  }

  .mmp-sub-item:hover {
    background: var(--paper);
    color: var(--brand);
  }
  .mmp-sub-item img {
    width: 24px;
    height: 24px;
    object-fit: contain;
  }

  /* ── Profile Panel (desktop) ── */
  .profile-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 30%;
    min-width: 320px;
    height: 100vh;
    background: var(--white);
    z-index: 900;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: -4px 0 32px rgba(13, 13, 26, 0.18);
  }

  .profile-panel.open {
    transform: translateX(0);
  }

  .pp-header {
    background: var(--brand-gradient);
    padding: 30px 24px 24px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
  }

  .pp-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 1;
  }

  .pp-close:hover {
    background: rgba(255, 255, 255, 0.28);
  }

  .pp-avatar-row {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 1;
  }

  .pp-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    border: 2px solid rgba(255, 255, 255, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.04em;
    flex-shrink: 0;
  }

  .pp-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
  }

  .pp-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
  }

  .pp-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--paper);
    border: var(--border);
    border-radius: var(--r-md);
    padding: 15px 16px;
    margin-bottom: 10px;
    cursor: pointer;
    transition:
      background 0.15s,
      border-color 0.15s;
    text-decoration: none;
  }

  .pp-item:hover {
    background: var(--paper-2);
    border-color: rgba(13, 13, 26, 0.15);
  }

  .pp-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
  }

  .pp-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
  }

  .pp-text {
    flex: 1;
    min-width: 0;
  }

  .pp-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
  }

  .pp-sub {
    font-size: 11.5px;
    color: var(--ink-3);
    margin-top: 2px;
  }

  .pp-chevron {
    font-size: 11px;
    color: var(--ink-4);
    flex-shrink: 0;
  }

  .pp-item.danger .pp-label {
    color: var(--red);
  }

  /* ── Shared Modals ── */
  .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 13, 26, 0.6);
    z-index: 900;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 90px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
    backdrop-filter: blur(6px);
  }

  .modal-overlay.open {
    opacity: 1;
    pointer-events: all;
  }

  .search-modal {
    background: var(--white);
    width: 90%;
    max-width: 580px;
    border-radius: var(--r-2xl);
    box-shadow: var(--sh-lg);
    overflow: hidden;
    transform: translateY(-20px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .modal-overlay.open .search-modal {
    transform: translateY(0) scale(1);
  }

  .search-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 22px;
    border-bottom: var(--border);
  }

  .search-input-row input {
    flex: 1;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    background: transparent;
  }

  .search-clear {
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: var(--paper-2);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--ink-3);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
  }

  .search-clear.visible {
    opacity: 1;
    pointer-events: all;
  }

  .search-sugg-label {
    padding: 6px 22px 8px;
    font-size: 10px;
    font-weight: 700;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .search-sugg-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 22px;
    cursor: pointer;
    transition: background 0.15s;
  }

  .search-sugg-item:hover {
    background: var(--paper);
  }

  .notif-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 13, 26, 0.6);
    z-index: 950;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
    backdrop-filter: blur(6px);
  }

  .notif-overlay.open {
    opacity: 1;
    pointer-events: all;
  }

  .notif-modal {
    background: var(--white);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    border-radius: var(--r-2xl);
    box-shadow: var(--sh-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .notif-overlay.open .notif-modal {
    transform: scale(1) translateY(0);
  }

  .notif-modal-head {
    padding: 22px 26px;
    background: var(--brand-gradient);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .notif-modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
  }

  .notif-cnt {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 50px;
  }

  .notif-modal-body {
    overflow-y: auto;
    flex: 1;
    padding: 10px 0;
  }

  .notif-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 15px 24px;
    border-bottom: var(--border);
    cursor: pointer;
    position: relative;
  }

  .notif-item.unread {
    background: #fdf9ff;
  }

  .notif-unread-dot {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
  }

  .notif-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
  }

  .ni-warning {
    background: var(--amber-light);
    color: var(--amber);
  }
  .ni-info {
    background: var(--brand-light);
    color: var(--brand);
  }

  .notif-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
  }

  .notif-sub {
    font-size: 12px;
    color: var(--ink-3);
    margin-top: 2px;
  }

  .modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
  }

  .modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
  }

  /* ── Mobile-only elements hidden on desktop ── */
  .bottom-nav {
    display: none !important;
  }
  .profile-sheet {
    display: none !important;
  }
  .info-screen {
    display: none !important;
  }
  .mobile-hero-header {
    display: none !important;
  }
  .mob-favs-card {
    display: none !important;
  }
  .mob-more-card {
    display: none !important;
  }
  .mobile-footer-links {
    display: none !important;
  }
  .side-drawer {
    display: none !important;
  }
  .drawer-bg {
    display: none !important;
  }
  .scroll-area {
    display: none !important;
  }

  /* ── Animations ── */
  @keyframes fadeUp {
    from {
      opacity: 0;
      transform: translateY(18px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .ani {
    animation: fadeUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .d1 {
    animation-delay: 0.06s;
  }
  .d2 {
    animation-delay: 0.13s;
  }
  .d3 {
    animation-delay: 0.2s;
  }

  /* ═══ 1024 – 1279px · Laptops / Legacy CRM ═══ */
  @media (min-width: 1024px) and (max-width: 1279px) {
    .page-body {
      padding: 20px 22px 5px;
      gap: 28px;
    }

    .col-left {
      flex: 0 0 190px;
    }

    .pc-grid {
      grid-template-columns: 1fr 1fr 1fr;
      gap: 12px 20px;
    }

    .pc-field {
      min-height: 46px;
    }
    .pc-field label {
      font-size: 12px;
    }
    .pc-field > span {
      font-size: 12.5px;
    }
    .pc-name {
      font-size: 15px;
    }
    .pc-body {
      padding: 14px 20px 18px;
    }

    .main-header {
      padding: 0 22px;
    }
    .nav-pills {
      gap: 16px;
      padding: 0 12px;
    }
    .nav-pill {
      font-size: 13px;
      padding: 8px 10px;
    }
  }

  /* ═══ 1280px+ · Modern Enterprise Desktops ═══ */
  @media (min-width: 1280px) {
    .page-body {
      max-width: 1440px;
      padding: 28px 36px 5px;
      gap: 48px;
    }

    .col-left {
      flex: 0 0 220px;
    }

    .pc-grid {
      grid-template-columns: 1fr 1fr 1fr;
      gap: 18px 32px;
    }

    .pc-field {
      min-height: 52px;
    }
    .pc-field label {
      font-size: 13px;
      margin-bottom: 5px;
    }
    .pc-field > span {
      font-size: 13.5px;
    }
    .pc-name {
      font-size: 18px;
    }
    .pc-body {
      padding: 18px 28px 22px;
      gap: 16px;
    }

    .policy-card-grid[data-count="1"] .pc-grid {
      grid-template-columns: 1fr 1fr 1fr;
      gap: 20px 32px;
    }

    .policy-card-grid[data-count="1"] .pc-body {
      padding: 20px 32px 26px;
    }

    .policy-card-grid[data-count="1"] .pc-name {
      font-size: 20px;
    }
  }

  .pi-edit-inline {
    font-size: 11px;
    color: var(--brand-accent);
    cursor: pointer;
  }
}

/* ═══════════════════════════════════════════════
           MOBILE / TABLET LAYOUT (<1024px)
           ═══════════════════════════════════════════════ */
@media (max-width: 1023px) {
  .app-layout {
    max-width: 430px;
    width: 100%;
    min-width: 0;
    min-height: 100dvh;
    margin: 0 auto;
    background: var(--surface-2);
    position: relative;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.5s var(--ease-smooth);
    --surface: #ffffff;
    --surface-2: #f6f7fb;
    --surface-3: #eef1f8;
    --border: #e4e8f0;
    --text-1: #0f172a;
    --text-2: #475569;
    --text-3: #94a3b8;
    --success: #16a34a;
    --error: #dc2626;
    --warning: #f59e0b;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.14);
    --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.18);
    --nav-h: 68px;
    font-family: "Inter", system-ui, sans-serif;
  }

  .app-layout.visible {
    opacity: 1;
  }

  body.no-scroll,
  html.no-scroll {
    overflow: hidden;
  }

  body.no-scroll .scroll-area {
    overflow: hidden;
  }

  body {
    background: var(--surface-2);
    color: var(--text-1);
    font-family: "Inter", system-ui, sans-serif;
  }

  #productChipBar {
    display: none !important;
  }

  /* ── Scroll area ── */
  .scroll-area {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: calc(var(--nav-h) + 16px);
    scroll-behavior: smooth;
  }

  .scroll-area::-webkit-scrollbar {
    display: none;
  }

  /* ── Shared header (mobile version) ── */
  .main-header {
    display: none !important;
  }

  .mobile-hero-header {
    display: block;
    background: #fff;
    padding: 14px 18px 0;
    /* border-radius: 0 0 28px 28px; */
    overflow: hidden;
  }

  .hero-brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    min-height: 38px;
    gap: 10px;
  }

  .hbr-left {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .menu-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--brand-primary);
    font-size: 15px;
    flex-shrink: 0;
    transition: background 0.2s;
  }

  .menu-btn:hover {
    background: var(--surface-3);
  }

  .brand-logo-text {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.2px;
  }

  .brand-logo-text .brand-lockup__logo {
    height: 23px;
    width: auto;
    display: block;
    flex-shrink: 0;
  }

  .brand-logo-text .brand-lockup__label {
    font-size: 14px;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 600;
  }

  .brand-logo-text .brand-lockup__title {
    font-size: 18px;
    color: #2e3192;
    font-weight: 700;
    letter-spacing: -0.02em;
  }

  .hbr-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .icon-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-2);
    position: relative;
    transition: background 0.2s;
    border-radius: 8px;
    cursor: pointer;
  }

  .icon-btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
  }

  .notif-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    background: var(--accent);
    border-radius: 50px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
    padding: 0 4px;
  }

  /* ── Hero Ribbon · mobile tuning ──
     The ribbon markup/styles are shared with desktop (see the top-level
     HERO RIBBON section) — only the scale changes here. */
  .hero-slide {
    grid-template-columns: minmax(0, 1fr) 92px;
    column-gap: 14px;
    padding: 14px 16px 18px;
  }

  .hero-slide::before {
    width: 210px;
    height: 210px;
    top: -80px;
    right: 20px;
  }

  .hero-eyebrow {
    font-size: 10px;
    margin-bottom: 3px;
  }

  .hero-title {
    font-size: 17px;
  }

  .hero-sub {
    font-size: 12px;
    margin-top: 4px;
  }

  .hero-aside {
    width: 92px;
    min-height: 56px;
  }

  .hero-aside .hero-watermark {
    font-size: 66px;
  }

  .hero-right {
    gap: 14px;
  }

  .hero-stat-val {
    font-size: 20px;
  }

  .hero-stat-label {
    font-size: 9px;
    margin-top: 3px;
    letter-spacing: 0.02em;
  }

  .hero-dots {
    bottom: 8px;
    gap: 6px;
  }

  .hero-dot {
    width: 6px;
    height: 6px;
  }

  .hero-dot.active {
    width: 18px;
    border-radius: 3px;
  }

  .hvc-bg-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
  }

  .orb1 {
    width: 140px;
    height: 140px;
    top: -40px;
    right: -30px;
  }
  .orb2 {
    width: 100px;
    height: 100px;
    bottom: -20px;
    left: 20px;
  }

  /* ── Policy Section ── */
  .policy-section {
    /* margin: -2px 16px 0; */
    background: var(--surface);
    border-radius: 0 0 var(--r-xl) var(--r-xl);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
    overflow: hidden;
  }

  .policy-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    padding: 10px 0px 0;
    gap: 20px;
    background: var(--surface);
  }

  .ptab-btn {
    flex: 1;
    padding: 9px 3px;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-primary);
    border-radius: 8px 8px 0 0;
    position: relative;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
  }

  .ptab-btn.active {
    color: var(--brand-primary);
  }

  .ptab-btn.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2.5px;
    background: var(--brand-primary);
    border-radius: 2px 2px 0 0;
  }

  .ptab-count {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
      background 0.2s,
      color 0.2s;
  }

  .ptab-btn.active .ptab-count {
    background: var(--brand-primary);
    color: #fff;
  }

  .ptab-btn:not(.active) .ptab-count {
    background: var(--brand-primary);
    color: white;
  }

  .policy-swiper-wrap {
    padding: 14px 0 10px;
    overflow: hidden;
    position: relative;
  }

  .sw-nav {
    display: none !important;
  }

  /* ═══════════════════════════════════════════════════════════
     ★★ FIX: was missing display:flex / flex-wrap — the carousel
     couldn't scroll because cards stacked vertically as blocks
     and there was no horizontal overflow to swipe through. ★★
     ═══════════════════════════════════════════════════════════ */
  .policy-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    touch-action: pan-x pan-y;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 16px;
    scroll-padding: 0 16px;
    align-items: flex-start;
    transition: height 0.3s ease;
  }

  .policy-track::-webkit-scrollbar {
    display: none;
  }

  .policy-card {
    flex: 0 0 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
  }

  .policy-card.hidden {
    display: none;
  }
  .policy-card.inactive-card {
    opacity: 1;
  }

  .pc-tag-bar {
    padding: 6px 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
  }

  .pc-tag-bar .pc-type {
    flex-shrink: 0;
  }

  .pc-status-group {
    display: inline-flex;
    align-items: flex-start;
    gap: 6px;
    flex: 1 1 0;
    min-width: 0;
  }

  .pc-tag-bar.active-bar,
  .pc-tag-bar.inactive-bar,
  .pc-tag-bar.matured-bar {
    background: #b2b2b25c;
  }

  .pc-type {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
    color: white;
    background: var(--brand-gradient);
    border-radius: 10px;
    padding: 1px 5px;
    font-weight: 400;
  }

  .pc-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
  }

  .active-bar .pc-status-dot {
    background: var(--success);
  }
  .inactive-bar .pc-status-dot {
    background: #dc3545;
  }

  .pc-status-text {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.25;
    text-transform: none;
    min-width: 0;
  }

  .pc-status-lines {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .pc-status-line {
    display: block;
    line-height: 1.25;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .active-bar .pc-status-text,
  .active-bar .pc-status-line {
    color: var(--success);
  }

  .inactive-bar .pc-status-text,
  .inactive-bar .pc-status-line {
    color: #dc3545;
  }

  .pc-tag-bar.matured-bar {
    background: #fef3c7;
  }
  .pc-tag-bar.matured-bar .pc-type {
    color: #854d0e;
  }
  .pc-tag-bar.matured-bar .pc-status-dot {
    background: #ca8a04;
  }

  .pc-tag-bar.matured-bar .pc-status-text,
  .pc-tag-bar.matured-bar .pc-status-line {
    color: #854d0e;
  }

  .pc-body {
    padding: 12px 14px;
  }

  .pc-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .pc-name-col {
    min-width: 0;
    text-align: center;
  }
  .pc-name-text {
    display: block;
  }

  .pc-uin {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-3);
    margin-top: 2px;
  }

  .pc-divider {
    height: 1px;
    background: var(--paper-2);
    margin: 12px 0;
  }

  .pc-arrow {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    flex-shrink: 0;
    color: var(--brand-primary);
  }

  .pc-tag-bar .pc-arrow {
    margin-left: auto;
  }

  /* ═══════════════════════════════════════════════════════
     ★★ MOBILE / TABLET POLICY GRID ★★
     Member Name → full row · Master Policyholder → full row
     Remaining fields → 2 columns
     ═══════════════════════════════════════════════════════ */
  .pc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px 30px;
  }

  /* First field (Member Name) spans both columns */
  .pc-grid > .pc-field:first-child {
    grid-column: 1 / -1;
  }

  /* Master Policyholder field (4th) also spans both columns */
  .pc-grid > .pc-field:nth-child(2) {
    grid-column: 1 / -1;
  }

  .pc-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-3);
    margin-bottom: 5px;
    letter-spacing: 0.01em;
    line-height: 1.3;
  }

  .pc-field > span {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-1);
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    min-width: 0;
    line-height: 1.35;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .pc-field .pc-age-pill,
  .pc-field .due-pill,
  .pc-field .lapsed-pill {
    display: inline-flex;
    font-size: 9px;
    min-height: 0;
  }

  .pc-field .pc-age-pill {
    background: #ede9fe;
    color: var(--brand-primary);
    border-radius: 50px;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 7px;
    margin-left: 4px;
  }

  .pc-field .due-pill {
    background: #fef9c3;
    color: #854d0e;
    font-size: 9px;
    font-weight: 700;
    border-radius: 50px;
    padding: 2px 7px;
    /* margin-left: 4px; */
  }

  .pc-field .lapsed-pill {
    background: #fee2e2;
    color: var(--error);
  }

  /* ★ FIX: Age / Active chips were unstyled on mobile — now they render as pills */
  .pc-field .age-chip {
    display: inline-flex;
    align-items: center;
    background: var(--brand-light, #ede9fe);
    color: var(--brand-primary, #291f75);
    font-size: 11px;
    font-weight: 700;
    border-radius: 50px;
    padding: 2px 7px;
    /* margin-left: 4px; */
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.4;
    vertical-align: middle;
  }

  .pc-field .age-chip.active-chip {
    background: #e8f5e9;
    color: #2e7d32;
  }

  /* ── Member name row (mobile) ── */
  .pc-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3px;
    margin-bottom: 12px;
    min-width: 0;
  }

  .pc-member-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  .pc-member-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-1);
    line-height: 1.3;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }

  /* ── Rider block (mobile) ── */
  .pc-rider {
    margin-top: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface);
  }

  .pc-rider-title {
    padding: 8px 12px;
    background: var(--brand-light);
    color: var(--brand-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    border-bottom: 1px solid var(--border);
  }

  .pc-rider-link {
    text-underline-offset: 3px;
    text-decoration: underline;
    color: var(--brand-primary);
  }

  /* ★ Rider rows: 2-column layout on mobile */
  .pc-rider-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    padding: 10px 3px;
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

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

  .pc-rider-row .pc-field {
    min-width: 0;
    text-align: left;
  }

  .pc-rider-value {
    padding: 4px 0;
  }

  .pc-rider-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-2);
    min-width: 0;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .pc-rider-sa {
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-primary);
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* ★ Hide extra rider rows on mobile/tablet (only first inline) */
  .pc-rider-row--hidden {
    display: none !important;
  }

  /* ★ "View N riders" link — mobile/tablet only */
  .pc-rider-viewmore {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: calc(100% - 24px);
    margin: 8px 12px 10px;
    padding: 8px 12px;
    border: 1px dashed rgba(41, 31, 117, 0.35);
    border-radius: 10px;
    background: rgba(237, 233, 255, 0.55);
    color: var(--brand-primary, #291f75);
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition:
      background 0.15s,
      border-color 0.15s;
  }

  .pc-rider-viewmore:hover,
  .pc-rider-viewmore:focus-visible {
    background: rgba(237, 233, 255, 0.9);
    border-color: var(--brand-primary, #291f75);
    outline: none;
  }

  .pc-rider-viewmore:active {
    transform: scale(0.985);
  }

  .pc-rider-viewmore i {
    font-size: 11px;
  }

  /* ── CTA buttons (mobile) ── */
  .pc-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: inherit;
  }

  .pc-action-primary {
    background: var(--brand-primary);
    color: #fff;
  }
  .pc-action-secondary {
    background: var(--brand-primary);
    color: #fff;
  }

  .pc-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
  }

  .pc-ctas .pc-action-btn {
    flex: 1 1 100%;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 10px;
    border: none;
  }

  .pc-rider-none {
    color: var(--text-3);
    font-size: 12px;
    font-weight: 500;
  }

  /* ── Rider modal (mobile) ── */
  .rider-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    transition:
      opacity 0.25s ease,
      visibility 0.25s ease;
  }

  .rider-modal.open {
    visibility: visible;
    opacity: 1;
  }

  .rider-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 9, 31, 0.55);
    backdrop-filter: blur(2px);
  }

  .rider-modal-panel {
    position: relative;
    width: 100%;
    max-width: 460px;
    max-height: 80vh;
    overflow-y: auto;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(9, 9, 31, 0.35);
  }

  .rider-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    background: var(--brand-light);
    position: sticky;
    top: 0;
  }

  .rider-modal-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .rider-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    color: var(--ink-2);
    font-size: 16px;
    flex-shrink: 0;
    transition: background 0.2s;
  }

  .rider-modal-close:hover {
    background: rgba(0, 0, 0, 0.08);
  }

  .rider-modal-headrow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 18px;
    border-bottom: 1px solid var(--border);
    background: var(--paper);
  }

  .rider-modal-headrow span {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-3);
  }

  .rider-modal-list {
    padding: 6px 0;
  }

  .rider-modal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    border-bottom: 1px solid var(--border);
  }

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

  .rider-modal-rname {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
    min-width: 0;
  }

  .rider-modal-rsa {
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-primary);
    white-space: nowrap;
    flex-shrink: 0;
  }

  .rider-modal-empty {
    padding: 24px;
    text-align: center;
    font-size: 13px;
    color: var(--ink-3);
  }

  .policy-dots {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 6px 0 2px;
  }

  .pdot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border);
    transition: all 0.25s;
    border: none;
    cursor: pointer;
  }

  .pdot.active {
    width: 18px;
    border-radius: 4px;
    background: var(--brand-primary);
  }

  .policy-empty {
    text-align: center;
    padding: 20px 10px;
    color: var(--text-3);
    font-size: 13px;
    font-weight: 500;
    display: none;
  }

  .policy-empty i {
    font-size: 28px;
    margin-bottom: 8px;
    display: block;
    opacity: 0.4;
  }

  /* ── Mobile Product Chip Bar ── */
  .product-chip-bar {
    padding: 12px 12px 6px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
  }

  .product-chip-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .chip-arrow {
    display: none !important;
  }

  .product-chip-scroll {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
    flex: 1;
    min-width: 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .product-chip-scroll::-webkit-scrollbar {
    display: none;
  }

  .product-chip {
    flex: 0 0 auto;
    padding: 10px 18px;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--text-2);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: inherit;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    align-items: center;
  }

  .product-chip:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    background: #f0edff;
  }

  .product-chip.active {
    background: var(--brand-primary);
    color: #fff;
    border-color: var(--brand-primary);
  }

  .product-chip-dots {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 2px 0;
  }

  .product-chip-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    transition: all 0.25s;
    padding: 0;
  }

  .product-chip-dot.active {
    width: 16px;
    border-radius: 3px;
    background: var(--brand-primary);
  }

  /* ── Mobile Favourites ── */
  .mob-favs-card,
  .mob-more-card {
    margin: 14px 16px 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
  }

  .mob-favs-head,
  .mob-more-head {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--brand-gradient);
  }

  .mob-section-title {
    font-size: 15px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 7px;
  }

  .mob-customise-btn {
    font-size: 12px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(217, 33, 87, 0.08);
    cursor: pointer;
    transition: background 0.15s;
    border: none;
    font-family: inherit;
  }

  .mob-customise-btn:hover {
    background: rgba(217, 33, 87, 0.15);
  }

  .mob-favs-grid,
  .mob-more-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .mob-fav-tile,
  .mob-more-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 10px 4px;
    cursor: pointer;
    transition:
      transform 0.2s var(--ease-spring),
      box-shadow 0.2s;
    text-align: center;
  }

  .mob-fav-tile:active,
  .mob-more-tile:active {
    transform: scale(0.96);
    background: var(--surface-3);
  }

  .mob-fav-icon,
  .mob-more-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mob-fav-icon img,
  .mob-more-icon img {
    width: 85%;
    height: 85%;
    object-fit: contain;
  }

  .mob-fav-label,
  .mob-more-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-2);
    line-height: 1.35;
  }

  /* ── Mobile Quick Services ── */
  .mob-quick-card {
    margin: 14px 16px 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
  }

  .mob-quick-head {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--brand-gradient);
  }

  .mob-quick-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px;
  }

  .mob-quick-tile {
    border: 1.5px solid var(--border);
    width: 100%;
    max-width: 200px;
    border-radius: 14px;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    transition:
      transform 0.2s,
      box-shadow 0.2s,
      border-color 0.2s;
    background: #ffffff;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 6px 5px;
  }

  .mob-quick-tile:hover {
    background: var(--paper-2);
    border-color: rgba(13, 13, 26, 0.15);
  }

  .mob-quick-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .mob-quick-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .mob-quick-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
    white-space: nowrap;
    text-align: left;
  }

  /* ── Footer Links (mobile) ── */
  .mobile-footer-links {
    padding: 20px 16px 8px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
  }

  .mobile-footer-links a {
    font-size: 12px;
    color: var(--text-3);
    font-weight: 500;
  }

  /* ── Bottom Navigation ── */
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    /* max-width: 430px; */
    height: var(--nav-h);
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 8px env(safe-area-inset-bottom);
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.07);
  }

  .bn-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 4px;
    font-size: 10px;
    font-weight: 600;
    color: var(--brand-primary);
    transition: color 0.2s;
    position: relative;
    min-width: 0;
    text-decoration: none;
  }

  .bn-item.bn-active {
    color: var(--brand-primary);
  }

  .bn-icon-wrap {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
  }

  .bn-icon-wrap img {
    width: 26px;
    height: 26px;
    object-fit: contain;
  }

  .bn-active-dot {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--brand-gradient);
    border-radius: 0 0 4px 4px;
  }

  /* ── Side Drawer (mobile) ── */
  .drawer-bg {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-smooth);
    z-index: 200;
  }

  .drawer-bg.open {
    opacity: 1;
    pointer-events: all;
  }

  .side-drawer {
    position: fixed;
    top: 0;
    left: -290px;
    width: 290px;
    height: 100%;
    background: var(--surface);
    z-index: 201;
    display: flex;
    flex-direction: column;
    border-radius: 0 24px 24px 0;
    overflow: hidden;
    transition: left 0.35s var(--ease-out-expo);
    box-shadow: var(--shadow-xl);
  }

  .side-drawer.open {
    left: 0;
  }

  .drawer-header {
    background: var(--brand-gradient);
    padding: 20px 20px 18px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
  }

  .drawer-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    z-index: 1;
    position: relative;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
  }

  .drawer-close:hover {
    background: rgba(255, 255, 255, 0.28);
  }

  .drawer-user-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    position: relative;
    z-index: 1;
    letter-spacing: -0.2px;
  }

  .drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
  }

  .drawer-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-1);
    cursor: pointer;
    transition: background 0.15s;
  }

  .drawer-item:hover {
    background: var(--surface-2);
  }

  .drawer-item .dg-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
  }

  .drawer-group-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-1);
    cursor: pointer;
    transition: background 0.15s;
    position: relative;
  }

  .drawer-group-header:hover {
    background: var(--surface-2);
  }

  .drawer-group-header .dg-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
  }

  .drawer-chevron {
    margin-left: auto;
    font-size: 11px;
    color: var(--text-3);
    transition: transform 0.25s;
  }

  .drawer-group-header.open .drawer-chevron {
    transform: rotate(180deg);
  }

  .drawer-sub-body {
    display: none;
    padding: 2px 0 4px 18px;
    background: var(--surface-2);
  }

  .drawer-sub-body.open {
    display: block;
  }

  .drawer-sub-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
    cursor: pointer;
    transition: background 0.15s;
    border-radius: 8px;
  }

  .drawer-sub-item img {
    width: 20px;
    height: 20px;
    object-fit: contain;
  }

  .drawer-sub-item:hover {
    background: var(--surface-3);
    color: var(--brand-primary);
  }

  /* ── Profile Sheet (mobile) ── */
  .profile-sheet {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 100%;
    max-width: 430px;
    background: var(--surface);
    border-radius: 24px 24px 0 0;
    z-index: 301;
    transition: transform 0.4s var(--ease-out-expo);
    max-height: 90dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .profile-sheet.open {
    transform: translateX(-50%) translateY(0);
  }

  .ps-header {
    background: var(--brand-gradient);
    padding: 20px 20px 24px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
  }

  .ps-header .orb1 {
    top: -30px;
    right: -20px;
    opacity: 0.6;
  }
  .ps-header .orb2 {
    bottom: -20px;
    left: 10px;
  }

  .ps-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    z-index: 1;
  }

  .ps-avatar-row {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 1;
    margin-top: 4px;
    padding-right: 44px;
    min-width: 0;
  }

  .ps-avatar-row > div:last-child {
    flex: 1;
    min-width: 0;
  }

  .ps-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    position: relative;
    flex-shrink: 0;
  }

  .ps-edit-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--brand-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.5);
  }

  .ps-edit-dot i {
    font-size: 8px;
    color: #fff;
  }

  .ps-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .ps-policy-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
  }

  .green-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    display: inline-block;
  }

  .ps-body {
    flex: 1;
    overflow-y: auto;
  }

  .ps-menu-item {
    display: flex;
    align-items: center;
    /* gap: 14px; */
    padding: 16px 20px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid var(--border);
  }

  .ps-menu-item:last-child {
    border-bottom: none;
  }
  .ps-menu-item:hover {
    background: var(--surface-2);
  }

  .ps-menu-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
  }

  .ps-menu-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
  }

  .ps-menu-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-1);
  }

  .ps-menu-sub {
    font-size: 12px;
    color: var(--text-3);
    margin-top: 1px;
  }

  .ps-menu-chevron {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-3);
  }

  /* ── Info Screen (mobile) ── */
  .info-screen {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateX(100vw);
    width: 100%;
    max-width: 430px;
    height: 100dvh;
    background: var(--surface-2);
    z-index: 400;
    display: flex;
    flex-direction: column;
    transition: transform 0.38s var(--ease-out-expo);
    overflow: hidden;
  }

  .info-screen.open {
    transform: translateX(-50%) translateX(0);
  }

  .info-topbar {
    background: var(--brand-gradient-hero);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
  }

  .info-back {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
  }

  .info-topbar-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    width: 75%;
    text-align: center;
  }

  .info-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 40px;
  }

  .info-body::-webkit-scrollbar {
    display: none;
  }

  .info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    position: relative;
  }

  .info-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
  }

  .info-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-primary);
  }

  .info-card-title img {
    height: 22px;
    width: auto;
    object-fit: contain;
  }

  .info-edit-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--brand-accent);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(217, 33, 87, 0.25);
    transition: background 0.15s;
    background: none;
    cursor: pointer;
    font-family: inherit;
  }

  .info-edit-btn:hover {
    background: #fff0f4;
  }
  .info-edit-btn i {
    font-size: 10px;
  }

  .info-card-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
  }

  .info-row.single {
    grid-template-columns: 1fr;
  }
  .info-row.triple {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .info-field {
    display: flex;
    flex-direction: column;
  }

  .info-field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 3px;
    letter-spacing: 0.02em;
  }

  .info-field .val {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-3);
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    line-height: 1.6;
    min-height: 20px;
  }

  .info-field a.val {
    color: var(--brand-primary);
    text-decoration: underline;
  }

  .edit-inline {
    font-size: 11px;
    color: var(--brand-accent);
    cursor: pointer;
  }

  .pi-edit-inline {
    font-size: 11px;
    color: var(--brand-accent);
    opacity: 0.75;
    cursor: pointer;
  }

  .pi-edit-inline:hover {
    opacity: 1;
  }

  .info-divider {
    height: 1px;
    background: var(--border);
  }

  /* ── Modals (mobile) ── */
  .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 13, 26, 0.55);
    z-index: 900;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 60px;
    padding-left: 16px;
    padding-right: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
    backdrop-filter: blur(4px);
  }

  .modal-overlay.open {
    opacity: 1;
    pointer-events: all;
  }

  .search-modal {
    background: var(--surface);
    width: 100%;
    max-width: 560px;
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: translateY(-16px) scale(0.97);
    transition: transform 0.3s var(--ease-smooth);
  }

  .modal-overlay.open .search-modal {
    transform: translateY(0) scale(1);
  }

  .search-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
  }

  .search-input-row i {
    color: var(--text-3);
    flex-shrink: 0;
  }

  .search-input-row input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-1);
    background: transparent;
  }

  .search-clear {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--surface-3);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-3);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    flex-shrink: 0;
  }

  .search-clear.visible {
    opacity: 1;
    pointer-events: all;
  }

  .search-sugg-label {
    padding: 8px 20px 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .search-sugg-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 14px;
    color: var(--text-1);
  }

  .search-sugg-item:hover {
    background: var(--surface-2);
  }

  .notif-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 13, 26, 0.55);
    z-index: 950;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
    backdrop-filter: blur(4px);
  }

  .notif-overlay.open {
    opacity: 1;
    pointer-events: all;
  }

  .notif-modal {
    background: var(--surface);
    width: 100%;
    max-width: 520px;
    max-height: 82dvh;
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s var(--ease-smooth);
  }

  .notif-overlay.open .notif-modal {
    transform: scale(1) translateY(0);
  }

  .notif-modal-head {
    padding: 18px 20px;
    background: var(--brand-gradient);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .notif-modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
  }

  .notif-cnt {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 50px;
  }

  .notif-modal-body {
    overflow-y: auto;
    flex: 1;
    padding: 6px 0;
  }

  .notif-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    position: relative;
  }

  .notif-item.unread {
    background: var(--surface-2);
  }

  .notif-unread-dot {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-accent);
  }

  .notif-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
  }

  .notif-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-1);
  }

  .notif-sub {
    font-size: 13px;
    color: var(--text-3);
    margin-top: 2px;
    line-height: 1.4;
  }

  .modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
  }

  .modal-close:hover {
    background: rgba(255, 255, 255, 0.28);
  }

  /* ── Desktop-only elements hidden on mobile ── */
  .qs-strip {
    display: none !important;
  }
  .page-body {
    display: none !important;
  }
  .page-footer {
    display: none !important;
  }
  .slide-menu-overlay {
    display: none !important;
  }
  .main-menu-panel {
    display: none !important;
  }
  .profile-panel {
    display: none !important;
  }

  /* ═══════════════════════════════════════════════════════
     ★★ 480px – 767px · Phablets / Small Tablets ★★
     ═══════════════════════════════════════════════════════ */
  @media (min-width: 480px) and (max-width: 767px) {
    .app-layout {
      max-width: 100%;
      width: 100%;
    }

    /* Policy grid — same 2-col structure with more breathing room */
    .pc-grid {
      grid-template-columns: 1fr 1fr;
      gap: 14px 18px;
    }

    .pc-grid > .pc-field:first-child {
      grid-column: 1 / -1;
    }

    .pc-grid > .pc-field:nth-child(2) {
      grid-column: 1 / -1;
    }

    .pc-field label {
      font-size: 12px;
    }
    .pc-field > span {
      font-size: 13.5px;
    }

    .pc-rider-row {
      grid-template-columns: 1.3fr 1fr;
      gap: 12px 18px;
    }

    .pc-rider-viewmore {
      width: auto;
      min-width: 200px;
      margin: 10px 12px 6px;
      font-size: 12.5px;
      padding: 9px 16px;
    }

    /* Wider carousel cards */
    .policy-section {
      margin-left: 18px;
      margin-right: 18px;
    }

    .policy-track {
      padding: 0 18px;
      scroll-padding: 0 18px;
    }

    .policy-card {
      flex: 0 0 100%;
    }

    /* 3-col favourites / more */
    .mob-favs-grid,
    .mob-more-grid {
      grid-template-columns: repeat(3, 1fr);
    }

    .mobile-hero-header {
      padding: 18px 22px 0;
    }

    .mob-fav-label,
    .mob-more-label {
      font-size: 12px;
    }

    .mob-fav-icon,
    .mob-more-icon {
      width: 44px;
      height: 44px;
    }

    .mob-quick-grid {
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      padding: 14px;
    }

    .mob-quick-tile {
      padding: 13px 18px;
      gap: 16px;
    }
    .mob-quick-label {
      font-size: 13px;
    }
  }

  /* ═══════════════════════════════════════════════════════
     ★★ 768px – 1023px · Portrait Tablets ★★
     ═══════════════════════════════════════════════════════ */
  @media (min-width: 768px) and (max-width: 1023px) {
    /* Full width, matching mobile and desktop — the previous 94vw left
       ~3vw gutters and made the hero ribbon look inset in tablet only. */
    .app-layout {
      max-width: 100%;
      width: 100%;
      min-width: 0;
    }

    :root {
      --nav-h: 76px;
    }

    .scroll-area {
      padding-bottom: calc(var(--nav-h) + 20px);
    }

    .mobile-hero-header {
      padding: 20px 24px 0;
      /* border-radius: 0 0 36px 36px; */
    }

    .hero-brand-row {
      /* margin-bottom: 22px; */
      min-height: 52px;
      gap: 16px;
    }

    .hbr-left {
      gap: 14px;
    }

    .menu-btn {
      width: 48px;
      height: 48px;
      border-radius: 14px;
      font-size: 20px;
    }

    .hbr-actions {
      gap: 12px;
    }

    .icon-btn {
      width: 42px;
      height: 42px;
      border-radius: 14px;
      font-size: 20px;
    }

    .icon-btn img {
      width: 22px;
      height: 22px;
    }

    .orb1 {
      width: 210px;
      height: 210px;
      top: -70px;
      right: -60px;
    }
    .orb2 {
      width: 160px;
      height: 160px;
      bottom: -50px;
      left: 50px;
    }

    /* .policy-section {
      margin: -2px 20px 0;
    } */

    .policy-tabs {
      padding: 16px 0 0;
      gap: 32px;
    }

    .ptab-btn {
      padding: 14px 10px;
      font-size: 16px;
      gap: 8px;
    }
    .ptab-btn.active::after {
      height: 3.5px;
    }

    .ptab-count {
      width: 24px;
      height: 24px;
      font-size: 13px;
    }

    .policy-swiper-wrap {
      padding: 20px 0 16px;
    }

    .policy-track {
      gap: 20px;
      padding: 0 28px;
      scroll-padding: 0 28px;
    }

    .policy-card {
      flex: 0 0 100%;
      border-radius: var(--r-lg);
    }

    .pc-tag-bar {
      padding: 8px 18px;
      gap: 6px 10px;
    }

    .pc-type {
      font-size: 15px;
      border-radius: 14px;
      padding: 3px 10px;
      white-space: nowrap;
    }

    .pc-status-dot {
      width: 9px;
      height: 9px;
      margin-top: 5px;
    }
    .pc-status-text {
      font-size: 15px;
    }
    .pc-status-line {
      font-size: 15px;
    }
    .pc-status-lines {
      gap: 8px;
    }

    .pc-body {
      padding: 14px 18px 16px;
      text-align: center;
    }

    .pc-body .pc-grid {
      text-align: left;
      margin: 0 auto;
      grid-template-columns: 1fr 1fr;
      gap: 25px 24px;
    }

    .pc-body .pc-grid > .pc-field:first-child {
      grid-column: 1 / -1;
    }

    .pc-body .pc-grid > .pc-field:nth-child(2) {
      grid-column: 1 / -1;
    }

    .pc-name {
      font-size: 20px;
      margin-bottom: 12px;
      justify-content: center;
    }

    .pc-name-col {
      text-align: center;
    }

    .pc-arrow {
      width: 36px;
      height: 36px;
      border-radius: 10px;
      font-size: 14px;
    }

    .pc-field label {
      font-size: 15px;
      margin-bottom: 5px;
    }
    .pc-field > span {
      font-size: 15px;
    }

    /* ★ Rider rows — 2 col on tablet */
    .pc-rider-row {
      grid-template-columns: 1.3fr 1fr;
      gap: 25px 20px;
    }

    .pc-rider-viewmore {
      width: auto;
      min-width: 220px;
      margin: 12px auto 6px;
      font-size: 13.5px;
      padding: 10px 20px;
      border-radius: 12px;
    }

    .policy-dots {
      gap: 8px;
      padding: 12px 0 6px;
    }
    .pdot {
      width: 8px;
      height: 8px;
    }
    .pdot.active {
      width: 26px;
      border-radius: 5px;
    }

    .mob-favs-card,
    .mob-more-card {
      margin: 18px 20px 0;
      border-radius: var(--r-xl);
    }

    .mob-favs-head,
    .mob-more-head {
      padding: 14px 18px;
    }

    .mob-section-title {
      font-size: 19px;
      gap: 10px;
    }

    .mob-customise-btn {
      font-size: 13px;
      gap: 6px;
      padding: 7px 16px;
      border-radius: 28px;
    }

    .mob-favs-grid,
    .mob-more-grid {
      gap: 16px;
      padding: 18px;
    }

    .mob-fav-tile,
    .mob-more-tile {
      gap: 12px;
      padding: 22px 14px;
      border-radius: var(--r-lg);
    }

    .mob-fav-icon,
    .mob-more-icon {
      width: 54px;
      height: 54px;
    }

    .mob-fav-icon img,
    .mob-more-icon img {
      width: 34px;
      height: 34px;
    }

    .mob-fav-label,
    .mob-more-label {
      font-size: 16px;
    }

    .mob-quick-card {
      margin: 18px 20px 0;
      border-radius: var(--r-xl);
    }

    .mob-quick-head {
      padding: 14px 18px;
    }

    .mob-quick-grid {
      grid-template-columns: 1fr 1fr;
      gap: 14px;
      padding: 16px;
    }

    .mob-quick-tile {
      max-width: none;
      width: 100%;
      height: 100%;
      justify-self: stretch;
      /* gap: 12px; */
      padding: 22px 14px;
      border-radius: var(--r-lg);
    }

    .mob-quick-icon {
      width: 52px;
      height: 52px;
    }
    .mob-quick-icon img {
      width: 36px;
      height: 36px;
    }
    .mob-quick-label {
      font-size: 16px;
      text-align: center;
      white-space: normal;
    }

    .bottom-nav {
      height: var(--nav-h);
      width: 100%;
      padding: 0 14px env(safe-area-inset-bottom);
    }

    .bn-item {
      gap: 6px;
      padding: 12px 8px;
      font-size: 15px;
    }

    .bn-icon-wrap {
      width: 34px;
      height: 34px;
      font-size: 28px;
    }

    .bn-icon-wrap img {
      width: 30px;
      height: 30px;
      object-fit: contain;
    }

    .bn-active-dot {
      width: 28px;
      height: 4px;
      border-radius: 0 0 5px 5px;
    }

    .mobile-footer-links {
      padding: 28px 20px 14px;
      gap: 32px;
    }
    .mobile-footer-links a {
      font-size: 14px;
    }

    .side-drawer {
      left: -320px;
      width: 320px;
      border-radius: 0 28px 28px 0;
    }

    .drawer-header {
      padding: 24px 22px 20px;
    }
    .drawer-close {
      width: 36px;
      height: 36px;
      font-size: 18px;
    }
    .drawer-user-name {
      font-size: 20px;
    }

    .drawer-item {
      padding: 16px 22px;
      font-size: 15px;
      gap: 16px;
    }

    .drawer-item .dg-img {
      width: 26px;
      height: 26px;
    }

    .drawer-group-header {
      padding: 16px 22px;
      font-size: 15px;
      gap: 16px;
    }

    .drawer-sub-body {
      padding: 4px 0 6px 20px;
    }

    .drawer-sub-item {
      padding: 12px 18px;
      font-size: 14px;
      gap: 12px;
    }

    .profile-sheet {
      max-width: 94vw;
      border-radius: 28px 28px 0 0;
    }

    .ps-header {
      padding: 26px 26px 22px;
    }

    .ps-close {
      width: 36px;
      height: 36px;
      font-size: 16px;
      top: 16px;
      right: 16px;
    }

    .ps-avatar-row {
      gap: 16px;
      margin-top: 6px;
    }

    .ps-avatar {
      width: 64px;
      height: 64px;
      font-size: 24px;
    }
    .ps-edit-dot {
      width: 20px;
      height: 20px;
    }
    .ps-name {
      font-size: 20px;
    }

    .ps-policy-pill {
      font-size: 13px;
      border-radius: 24px;
      padding: 5px 12px;
      gap: 6px;
    }

    .ps-body {
      padding: 8px 0;
    }
    .ps-menu-item {
      padding: 18px 24px;
      gap: 16px;
    }

    .ps-menu-icon {
      width: 48px;
      height: 48px;
      font-size: 22px;
      border-radius: 14px;
    }

    .ps-menu-label {
      font-size: 16px;
    }
    .ps-menu-sub {
      font-size: 14px;
    }
    .ps-menu-chevron {
      font-size: 14px;
    }

    .info-screen {
      max-width: 94vw;
    }

    .info-topbar {
      padding: 18px 24px;
      gap: 14px;
    }

    .info-back {
      width: 40px;
      height: 40px;
      font-size: 16px;
      border-radius: 12px;
    }

    .info-topbar-title {
      font-size: 18px;
    }

    .info-body {
      padding: 20px;
      gap: 20px;
    }

    .info-card-header {
      padding: 16px 20px;
    }

    .info-card-title {
      font-size: 15px;
      gap: 10px;
    }
    .info-card-title img {
      height: 26px;
    }

    .info-card-body {
      padding: 18px 20px;
      gap: 16px;
    }

    .info-field label {
      font-size: 14px;
      margin-bottom: 4px;
    }
    .info-field .val {
      font-size: 15px;
    }

    .hero-policy-chip {
      font-size: 13px;
      padding: 8px 15px;
      border-radius: 14px;
    }

    .hero-chip-rows {
      gap: 10px;
    }
    .hero-chip-row {
      gap: 10px;
    }
  }

  /* ═══════════════════════════════════════════════════════
     ★★ <360px · Small phone safeguards ★★
     ═══════════════════════════════════════════════════════ */
  @media (max-width: 359px) {
    .hero-brand-row {
      gap: 6px;
    }

    .brand-lockup {
      gap: 10px;
      min-width: 0;
    }

    .brand-lockup__logo {
      height: 32px;
    }
    .brand-lockup__title {
      font-size: 16px;
    }
    .brand-lockup__divider {
      height: 26px;
    }

    .hbr-actions {
      gap: 6px;
    }

    .mobile-hero-header {
      padding: 12px 14px 0;
    }

    .mob-favs-grid,
    .mob-more-grid,
    .mob-quick-grid {
      gap: 8px;
      padding: 10px;
    }

    .policy-section {
      margin-left: 12px;
      margin-right: 12px;
    }

    /* Tighter 2-col grid on tiny phones */
    .pc-grid {
      grid-template-columns: 1fr 1fr;
      gap: 10px 10px;
    }

    .pc-grid > .pc-field:first-child {
      grid-column: 1 / -1;
    }

    .pc-grid > .pc-field:nth-child(2) {
      grid-column: 1 / -1;
    }

    .pc-field label {
      font-size: 10px;
    }
    .pc-field > span {
      font-size: 12px;
    }

    /* Rider rows stack on ultra-narrow screens */
    .pc-rider-row {
      grid-template-columns: 1fr;
      gap: 8px;
      padding: 10px;
    }

    .pc-rider-row .pc-field {
      padding-bottom: 6px;
      border-bottom: 1px dashed var(--border);
    }

    .pc-rider-row .pc-field:last-child {
      border-bottom: none;
      padding-bottom: 0;
    }

    .pc-rider-viewmore {
      width: calc(100% - 20px);
      margin: 8px 10px 8px;
      font-size: 11.5px;
      padding: 8px 10px;
    }
  }
}
