:root {
  --hkmc-bg: #ffffff;
  --hkmc-primary-button: #C8102E;
  --hkmc-primary-contrast: #ffffff;
  --hkmc-text: #02253e;
  --hkmc-secondary-text: #707070;
  --hkmc-danger: #d0021b;
  --hkmc-line: #d8d8d8;
  --hkmc-muted-line: #eeeeee;
  --hkmc-skeleton: #eeeeee;
  --hkmc-skeleton-highlight: #f7f7f7;
  --f7-theme-color: #02253e;
  --hkmc-text-title: 18px;
  --hkmc-text-body: 14px;
  --hkmc-text-secondary: 12px;
  --hkmc-text-label: 14px;
  --hkmc-text-input: 14px;
  --hkmc-text-button: 14px;
  --hkmc-text-helper: 12px;
  --hkmc-text-modal-title: 16px;
  --hkmc-text-modal-body: 14px;
  --hkmc-icon-md: 22px;
  --hkmc-icon-lg: 24px;
  --hkmc-button-min-height: 48px;
  --hkmc-button-padding-y: 12px;
  --hkmc-button-padding-x: 16px;
  --hkmc-surface-lavender: #e6e0f4;
  --hkmc-surface-lavender-gradient: linear-gradient(165deg, #e6e0f4 0%, #ede8f7 45%, #f3f0fa 100%);
}

.icon-filled {
  font-variation-settings: 'FILL' 1;
}

html,
body,
#app {
  min-height: 100%;
  height: 100%;
  background: var(--hkmc-status-bar-bg, #ffffff);
  touch-action: manipulation;
  overscroll-behavior-x: none;
}

body::before,
.hkmc-status-bar-fill {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: env(safe-area-inset-top, 0px);
  background: var(--hkmc-status-bar-bg, #ffffff);
  z-index: 10000;
  pointer-events: none;
}

/* Real element so an installed iOS PWA samples a solid status bar instead of a tall blur. */
html.hkmc-standalone .hkmc-status-bar-fill {
  height: max(8px, env(safe-area-inset-top, 0px));
}

/* Account / membership: match the lavender membership-status hero. */
body:has(.hkmc-account-page.page-current) {
  --hkmc-status-bar-bg: var(--hkmc-surface-lavender);
}

body:has(.manage-membership-page.page-current) {
  --hkmc-status-bar-bg: #ffffff;
}

/* Dim overlays sit above the status-bar fill so they cover the Dynamic Island. */
body:has(.modal-overlay.visible)::before,
body:has(.home-news-modal-overlay.show)::before,
body:has(.news-comments-overlay.visible)::before,
body:has(.discovery-category-modal.visible)::before,
body:has(.modal-overlay.visible) .hkmc-status-bar-fill,
body:has(.home-news-modal-overlay.show) .hkmc-status-bar-fill,
body:has(.news-comments-overlay.visible) .hkmc-status-bar-fill,
body:has(.discovery-category-modal.visible) .hkmc-status-bar-fill {
  background: transparent;
}

body {
  margin: 0;
  background: var(--hkmc-bg);
  color: var(--hkmc-text);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  overflow-x: hidden;
  touch-action: manipulation;
  overscroll-behavior-x: none;
}

.page,
.page-content,
.view,
.view-main {
  overflow-x: hidden;
  overscroll-behavior-x: none;
  touch-action: manipulation;
}

*,
*::before,
*::after {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

a,
button,
img,
.hkmc-bottom-nav-item,
.account-menu-item {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

a,
a:hover,
a:active,
a:focus,
a:visited {
  color: inherit;
  text-decoration: none;
  outline: none;
}

img,
a img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}

input,
textarea,
select {
  -webkit-user-select: text;
  user-select: text;
}

body.is-app-loading #app,
body.is-app-loading .hkmc-bottom-nav {
  visibility: hidden;
}

.pull-refresh-indicator {
  height: 0;
  opacity: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: height 0.18s ease, opacity 0.18s ease, margin 0.18s ease;
}

.pull-refresh-indicator.visible {
  height: 34px;
  margin: 8px 0 4px;
  opacity: 1;
}

.loading-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hkmc-primary-button);
  animation: dotBounce 1s infinite ease-in-out;
}

.loading-dot:nth-child(2) {
  animation-delay: 0.15s;
}

.loading-dot:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes dotBounce {
  0%, 60%, 100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  30% {
    opacity: 1;
    transform: scale(1);
  }
}

.hkmc-startup-skeleton {
  position: fixed;
  inset: 0;
  z-index: 20000;
  box-sizing: border-box;
  padding: calc(70px + env(safe-area-inset-top, 0px)) 0 calc(70px + env(safe-area-inset-bottom, 0px));
  background: #ffffff;
}

.hkmc-page-skeleton {
  box-sizing: border-box;
  width: 100%;
  min-height: 100%;
  background: #ffffff;
}

.hkmc-startup-skeleton-card {
  padding: 20px;
  border: 1px solid #ededed;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.04);
  display: grid;
  gap: 12px;
}

.hkmc-startup-skeleton-card.large {
  min-height: 180px;
  align-content: start;
}

.hkmc-skeleton-block {
  display: block;
  border-radius: 16px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.hkmc-skeleton-title {
  width: 46%;
  height: 24px;
}

.hkmc-skeleton-line {
  width: 100%;
  height: 14px;
}

.hkmc-skeleton-line.short {
  width: 62%;
}

.hkmc-skeleton-pill {
  width: 86px;
  height: 42px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes hkmcSkeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

button,
a,
input,
textarea {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

.page,
.page-content {
  background: var(--hkmc-bg);
}

/* Match login chrome: handle safe areas in appbars / bottom bars, not twice via Framework7. */
.page-content {
  padding-bottom: calc(var(--f7-page-toolbar-bottom-offset, 0px) + var(--f7-page-content-extra-padding-bottom, 0px));
}

.app-placeholder,
.app-loading-screen {
  min-height: 100%;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
}

.app-error-page {
  --auth-primary: var(--hkmc-primary-button);
  --auth-primary-hover: #02253e;
  --auth-primary-active: #01192a;
  --auth-primary-text: #ffffff;
  --hkmc-text-button: 14px;
  --hkmc-button-min-height: 48px;
  --hkmc-button-padding-y: 12px;
  --hkmc-button-padding-x: 16px;
  min-height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  position: relative;
}

.app-error-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.app-error-illustration {
  width: 120px;
  height: auto;
  margin-bottom: 20px;
}

.app-error-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--hkmc-text);
  letter-spacing: -0.02em;
}

.app-error-bottom {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px));
  width: 100%;
  box-sizing: border-box;
}

.app-error-home-btn {
  width: 100%;
  margin-top: 0;
}

.app-placeholder h1,
.app-loading-screen h1 {
  color: var(--hkmc-text);
  font-size: var(--hkmc-text-title);
  margin: 0 0 8px;
}

.app-placeholder p,
.app-loading-screen p {
  color: var(--hkmc-secondary-text);
  margin: 0;
  font-size: var(--hkmc-text-secondary);
}

.app-placeholder-card {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.app-placeholder-login-link {
  min-height: var(--hkmc-button-min-height);
  padding: var(--hkmc-button-padding-y) var(--hkmc-button-padding-x);
  border-radius: 16px;
  background: var(--hkmc-primary-button);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  font-size: var(--hkmc-text-button);
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
}

.hkmc-root-page-content {
  min-height: 100%;
  box-sizing: border-box;
  padding: calc(24px + env(safe-area-inset-top, 0px)) 20px calc(102px + env(safe-area-inset-bottom, 0px));
}

.hkmc-inner-page,
.hkmc-inner-page-content {
  background: #f9fbff;
}

.hkmc-inner-page-content {
  min-height: 100%;
  box-sizing: border-box;
}

.is-auth-checking .hkmc-appbar,
.is-auth-checking .account-transaction-section,
.points-history-page.is-refreshing .account-transaction-section {
  display: none;
}

.hkmc-inner-page:not(.is-auth-checking):not(.is-refreshing) [data-protected-skeleton] {
  display: none;
}

.protected-page-skeleton {
  min-height: 100%;
  background: #ffffff;
}

.hkmc-simple-inner-page-content {
  padding: calc(104px + env(safe-area-inset-top, 0px)) 0 calc(24px + env(safe-area-inset-bottom, 0px));
}

.hkmc-simple-inner-page-content .account-faq-section {
  margin-top: 0;
}

.hkmc-blank-page-shell {
  max-width: 960px;
  margin: 0 auto;
}

.hkmc-blank-page-kicker {
  margin: 0 0 8px;
  color: var(--hkmc-secondary-text);
  font-size: var(--hkmc-text-secondary);
}

.hkmc-blank-page-shell h1 {
  margin: 0;
  color: var(--hkmc-text);
  font-size: var(--hkmc-text-title);
  font-weight: 600;
}

.hkmc-account-page {
  background: var(--hkmc-surface-lavender);
}

.hkmc-account-page-content {
  padding: 0 0 calc(102px + env(safe-area-inset-bottom, 0px));
  background: #ffffff;
}

.hkmc-home-page-content {
  padding-bottom: calc(98px + env(safe-area-inset-bottom, 0px));
  background: #f9fbff;
}

.home-login-success-alert {
  top: calc(72px + env(safe-area-inset-top, 0px));
}

.home-top-nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 20px 8px;
  background: #ffffff;
  border-bottom: none;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.home-top-nav.is-scrolled {
  background: #ffffff;
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.06);
}

.home-top-nav-logo {
  height: 34px;
  width: auto;
  display: block;
}

.home-banner-carousel {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.home-banner-carousel[hidden] {
  display: none !important;
}

.home-banner-track {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: stretch;
  height: 100%;
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.home-banner-card {
  position: relative;
  display: block;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: 0;
  background: #1a1a2e;
  color: #ffffff;
  text-decoration: none;
}

.home-banner-card .home-card-visual {
  position: absolute;
  inset: 0;
}

.home-banner-card .home-card-overlay {
  position: absolute;
  inset: 0;
}

.home-banner-card.is-plain .home-card-overlay,
.home-banner-card.is-plain .home-banner-copy {
  display: none !important;
}

.home-banner-copy {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 60px;
  z-index: 2;
}

.home-banner-copy h2 {
  margin: 0;
  color: #ffffff;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.home-banner-copy p {
  margin: 8px 0 0;
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  line-height: 1.4;
}

.home-carousel-button {
  position: absolute;
  top: 50%;
  z-index: 8;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.82);
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  pointer-events: auto;
}

.home-carousel-button.prev { left: 12px; }
.home-carousel-button.next { right: 12px; }
.home-carousel-button .material-symbols-rounded { font-size: 24px; }

.home-carousel-dots-overlay {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 0;
}

.home-carousel-dots-overlay button {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255,255,255,0.45);
  transition: width 0.25s ease, background 0.25s ease;
}

.home-carousel-dots-overlay button.active {
  width: 22px;
  background: #ffffff;
}

.hkmc-home-page-content {
  padding-top: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.hkmc-home-page.is-home-loading [data-home-live-content],
.hkmc-programmes-page.is-programmes-loading [data-programmes-list],
.hkmc-wishlist-page.is-wishlist-loading [data-wishlist-list],
.hkmc-discovery-page.is-discovery-loading [data-discovery-live-content],
.hkmc-account-page.is-account-loading [data-account-live-content],
.hkmc-news-page.is-news-loading [data-news-list],
.is-awaiting-images {
  visibility: hidden !important;
  position: absolute !important;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  pointer-events: none;
  z-index: 0;
}

.hkmc-home-page:not(.is-home-loading) [data-home-skeleton] {
  display: none;
}

.home-skeleton,
.programmes-skeleton,
.discovery-skeleton,
.account-page-skeleton {
  padding: 0;
  background: #ffffff;
}

.home-skeleton-banner {
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  border-radius: 0;
}

.home-skeleton-membership {
  margin: 20px 20px 0;
  height: 72px;
  border-radius: 20px;
}

.home-skeleton-section {
  margin-top: 26px;
  padding: 0;
}

.home-skeleton-section-title {
  width: 30%;
  height: 20px;
  margin: 0 20px 12px;
}

.home-skeleton-cards {
  display: flex;
  gap: 14px;
  padding: 0 20px;
  overflow: hidden;
}

.home-skeleton-card {
  flex: 0 0 160px;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
}

.home-sections-content {
  padding: 0;
}

.home-membership-section {
  margin-top: 20px;
  padding: 0 20px;
}

.home-membership-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 18px 20px;
  border: none;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  color: var(--hkmc-text);
  box-sizing: border-box;
}

.home-membership-card:active {
  background: #f7f7f7;
}

.home-membership-card-face {
  width: 36px;
  height: 36px;
  border-radius: 0;
  object-fit: contain;
  flex: 0 0 auto;
}

.home-membership-guest .home-membership-card-face {
  /* Keep Basic tier colors visible for guests (grayscale looked like Silver). */
  opacity: 0.92;
}

.home-membership-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.home-membership-greeting {
  font-size: 15px;
  font-weight: 600;
  color: var(--hkmc-text, #1c1c1c);
}

.home-membership-hint {
  font-size: 12px;
  color: var(--hkmc-secondary-text, #9ca3af);
}

.home-membership-chevron {
  font-size: 20px;
  color: var(--hkmc-secondary-text, #9ca3af);
  flex: 0 0 auto;
}

.home-card-visual,
.home-card-overlay {
  position: absolute;
  inset: 0;
}

.home-card-visual {
  background: radial-gradient(circle at 72% 20%, rgba(255,255,255,0.28), transparent 24%), linear-gradient(135deg, #2d1b45, #6f0f88 45%, #111827);
}

.home-card-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 42%, rgba(255,255,255,0.12) 42% 43%, transparent 43% 100%), radial-gradient(circle at 22% 76%, rgba(255,255,255,0.18), transparent 18%);
}

.home-card-overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0.04) 16%, rgba(0,0,0,0.78) 100%);
}

.home-card-badge {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 2;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
  color: #ffffff;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 12px;
  font-weight: 700;
}

.home-banner-copy {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 60px;
  z-index: 2;
}

.home-card-copy {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 2;
}

.home-banner-copy h2 {
  margin: 0;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.home-card-copy h3 {
  margin: 0;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.home-banner-copy p,
.home-card-copy p {
  margin: 7px 0 0;
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  line-height: 1.35;
}

.home-banner-copy h2 {
  max-width: 88%;
  font-size: 26px;
}

.home-carousel-button {
  position: absolute;
  top: 50%;
  z-index: 8;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.82);
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  pointer-events: auto;
}

.home-carousel-button.prev { left: 12px; }
.home-carousel-button.next { right: 12px; }
.home-carousel-button .material-symbols-rounded { font-size: 24px; }

.home-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 12px 0 2px;
}

.home-carousel-dots button {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: #d1d5db;
  transition: width 0.25s ease, background 0.25s ease;
}

.home-carousel-dots button.active {
  width: 22px;
  background: var(--hkmc-primary-button);
}

.home-section { margin-top: 26px; }

.home-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  box-sizing: border-box;
  min-width: 0;
  margin: 0 20px;
  padding: 0 0 12px;
}

.home-section-header-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
}

.home-section-header h2 {
  flex: 0 0 auto;
  min-width: 0;
  margin: 0;
  color: var(--hkmc-text);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.home-section-header-text h2 {
  flex: 0 0 auto;
  width: auto;
}

.discovery-category-period-limit,
.discovery-category-cap {
  display: block;
  box-sizing: border-box;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--hkmc-secondary-text);
  font: inherit;
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.discovery-category-cap[hidden] {
  display: none;
}

.discovery-category-cap-copy {
  display: inline;
  white-space: normal;
  overflow-wrap: break-word;
}

.discovery-category-cap-line + .discovery-category-cap-line::before {
  content: '';
  display: block;
}

.discovery-category-cap .material-symbols-rounded {
  display: inline;
  margin-left: 4px;
  font-size: 16px;
  line-height: 1;
  vertical-align: -0.15em;
  color: inherit;
}

.discovery-category-cap-modal {
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
}

.discovery-category-cap-modal .saved-info-display {
  padding-bottom: 8px;
}

.home-permission-modal .home-permission-illustration {
  display: block;
  width: min(46vw, 168px);
  height: auto;
  margin: 28px auto 0;
  object-fit: contain;
}

.home-permission-modal .saved-info-display {
  padding-top: 16px;
}

.home-permission-modal .modal-btn-margin {
  margin-top: 12px;
}

.home-permission-modal .modal-btn-margin.btn-login:disabled {
  opacity: 0.45;
  cursor: default;
}

.home-permission-modal .forgot-line {
  margin: 16px 20px 8px;
  text-align: center;
}

.home-permission-modal .forgot-line button {
  border: 0;
  background: transparent;
  padding: 0;
  color: #3b82f6;
  font: inherit;
  font-size: var(--hkmc-text-label);
  text-decoration: underline;
  cursor: pointer;
}

.discovery-category-cap-modal-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.discovery-category-cap-modal-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.discovery-category-cap-modal-row .saved-info-name {
  margin-bottom: 8px;
}

.discovery-category-cap-modal .saved-info-description {
  margin: 0;
  overflow-x: visible;
  white-space: normal;
  overflow-wrap: anywhere;
}

.discovery-category-cap-modal-chart {
  flex: 0 0 20%;
  width: 20%;
  min-width: 72px;
  max-width: 92px;
}

.discovery-category-cap-ring {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
}

.discovery-category-cap-ring svg {
  display: block;
  width: 100%;
  height: 100%;
}

.discovery-category-cap-ring-track,
.discovery-category-cap-ring-value {
  stroke-width: 2.8;
}

.discovery-category-cap-ring-track {
  stroke: var(--hkmc-muted-line);
}

.discovery-category-cap-ring-value {
  stroke: var(--hkmc-primary-button);
  stroke-linecap: round;
}

.discovery-category-cap-ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  pointer-events: none;
}

.discovery-category-cap-ring-label strong {
  color: var(--hkmc-text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.discovery-category-cap-ring-label span {
  min-width: 2.4em;
  padding-top: 3px;
  border-top: 1px solid var(--hkmc-line);
  color: var(--hkmc-secondary-text);
  font-size: 11px;
  line-height: 1;
  text-align: center;
}

.discovery-category-cap-history {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  margin: 8px 0 0;
  padding: 16px 20px 8px;
  border: 0;
  border-top: 1px solid var(--hkmc-muted-line);
  background: transparent;
  color: var(--hkmc-text);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
}

.discovery-category-cap-history-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.discovery-category-cap-history .material-symbols-rounded {
  flex: 0 0 auto;
  color: var(--hkmc-secondary-text);
  font-size: 22px;
}

.home-section-header a,
.home-section-header button:not(.discovery-category-cap) {
  flex: 0 0 auto;
  align-self: flex-start;
  max-width: 40%;
  border: 0;
  background: transparent;
  color: var(--hkmc-primary-button);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
  text-decoration: none;
  padding: 2px 0 0;
  white-space: nowrap;
}

.home-card-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 0 20px 4px;
  /* Snapport inset must match the gutter, else snapping pulls the first card flush to the edge. */
  scroll-padding-inline: 20px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  position: relative;
}

.home-card-row::-webkit-scrollbar { display: none; }

.home-event-card {
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 20px;
  background: #111827;
  color: #ffffff;
  scroll-snap-align: start;
  box-shadow: none;
}

.home-card-portrait { width: 160px; aspect-ratio: 4 / 5; }
.home-card-tall { width: 200px; aspect-ratio: 16 / 9; border-radius: 16px; }
.home-card-row[data-home-news] {
  gap: 12px;
  scroll-snap-type: x mandatory;
}
.home-news-card.home-card-tall {
  width: min(252px, calc((100% + 8px) / 1.1 * 0.6));
  aspect-ratio: 4 / 5;
  border-radius: 18px;
}
.home-news-card .home-card-copy {
  left: 12px;
  right: 12px;
  bottom: 12px;
}
.home-news-card .home-card-copy h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.3;
  white-space: normal;
}

.discovery-redemption-card {
  display: flex;
  flex-direction: column;
  width: 200px;
  aspect-ratio: auto;
  border-radius: 16px;
  background: #ffffff;
  color: var(--hkmc-text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.discovery-redemption-card-image-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eef2f7;
}

.discovery-redemption-card-image,
.discovery-redemption-card-visual {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.discovery-redemption-card-visual {
  background: radial-gradient(circle at 78% 22%, rgba(255,255,255,0.24), transparent 24%), linear-gradient(145deg, #0f766e, #14b8a6 48%, #111827);
}

.discovery-redemption-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
}

.discovery-redemption-card-body > .discovery-redemption-card-meta,
.discovery-redemption-card-body > .discovery-redemption-card-points {
  margin-top: auto;
}

.discovery-category-modal {
  position: fixed;
  inset: auto 0 0;
  z-index: 40001;
  display: block;
  width: 100%;
  height: min(88vh, 760px);
  max-width: 560px;
  margin: 0 auto;
  border-radius: 28px 28px 0 0;
  background: #f9fbff;
  box-shadow: 0 -18px 44px rgba(15, 23, 42, 0.18);
  transform: translateY(105%);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.34s;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
}

.discovery-category-modal.visible {
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0s;
}

.discovery-category-modal-appbar {
  position: absolute !important;
  top: 0 !important;
  left: 0;
  right: 0;
  z-index: 2;
  background: rgba(249, 251, 255, 0.96);
}

.discovery-category-modal-content {
  height: 100%;
  overflow-y: auto;
  padding: 122px 0 max(64px, calc(env(safe-area-inset-bottom) + 48px));
  box-sizing: border-box;
}

.discovery-category-list {
  padding: 0;
}

.discovery-category-item-card {
  margin: 0 0 5px;
}

.discovery-category-item-card:first-child {
  margin-top: 0;
}

.discovery-category-item-card:last-child {
  margin-bottom: 5px;
}

.discovery-category-item-card .discovery-redemption-tier-requirement {
  position: absolute;
  right: 14px;
  bottom: 12px;
  margin-top: 0;
}

.discovery-category-item-card-body {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-right: 112px;
  padding-bottom: 36px;
}

.discovery-category-item-card-body h2 {
  min-height: calc(1.28em * 2);
}

.discovery-category-item-card-body > .discovery-category-item-points {
  margin-top: auto;
}

.discovery-category-item-points {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--hkmc-primary-button) !important;
  font-weight: 700;
}

.discovery-category-item-points .home-points-coin {
  margin: 0;
}

[data-discovery-category-sort-overlay] {
  z-index: 40010 !important;
  background: rgba(0, 0, 0, 0.35);
}

[data-discovery-category-sort-modal] {
  z-index: 40011 !important;
}

.discovery-redemption-card-body h3 {
  margin: 0;
  color: var(--hkmc-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.discovery-redemption-card-body p {
  min-height: 18px;
  margin: 0;
  color: var(--hkmc-secondary-text);
  font-size: 12px;
  line-height: 1.35;
}

.discovery-redemption-card-points {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  color: var(--hkmc-primary-button);
  font-size: 12px;
  font-weight: 700;
}

.discovery-redemption-card-points .home-points-coin {
  margin-left: 4px;
}

.discovery-redemption-tier-requirement {
  display: inline-flex;
  align-items: center;
  min-height: 19px;
  margin-top: 2px;
  color: var(--hkmc-secondary-text, #6b7280);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}

.discovery-redemption-tier-faces {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-right: 6px;
}

.discovery-redemption-tier-face {
  width: 34px;
  height: 19px;
  border-radius: 4px;
  border: 1px solid #ffffff;
  object-fit: contain;
  background: #eef2f7;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.16);
}

.discovery-redemption-tier-face + .discovery-redemption-tier-face {
  margin-left: -15px;
}
.home-card-copy h3 { font-size: 18px; }
.home-card-copy p { font-size: 13px; }
.home-section-last { padding-bottom: 12px; }

.home-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-banner-card .home-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-card-row-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  width: 100%;
  box-sizing: border-box;
}

.home-empty-illustration {
  width: 80px;
  height: auto;
  margin-bottom: 10px;
}

.home-card-row-empty span {
  font-size: 13px;
  color: var(--hkmc-secondary-text, #9ca3af);
}

.wishlist-empty-debug {
  display: block;
  max-width: 240px;
  margin-top: 8px;
  color: #c8102e !important;
  font-size: 11px !important;
  line-height: 1.4;
  text-align: center;
  overflow-wrap: anywhere;
}

.home-points-coin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--hkmc-primary-button);
  color: var(--hkmc-primary-contrast, #ffffff);
  font-size: 10px;
  font-weight: 700;
  margin-right: 5px;
  vertical-align: middle;
  flex: 0 0 auto;
  box-sizing: border-box;
}

svg.home-points-coin {
  display: inline-block;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  overflow: visible;
}

svg.home-points-coin circle {
  fill: var(--hkmc-primary-button);
}

svg.home-points-coin text {
  fill: var(--hkmc-primary-contrast, #ffffff);
  font-size: 16px;
  font-weight: 800;
}

.home-points-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--hkmc-text, #1c1c1c);
  vertical-align: middle;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.home-tone-ruby .home-card-visual,
.home-tone-stage .home-card-visual { background: radial-gradient(circle at 78% 22%, rgba(255,255,255,0.24), transparent 24%), linear-gradient(145deg, #47101c, #9f1239 48%, #111827); }

.home-news-card {
  border: 0;
  padding: 0;
  text-align: left;
  font: inherit;
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
}

.home-news-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: rgba(0, 0, 0, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.home-news-modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.home-news-modal {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99991;
  height: 90vh;
  max-height: 90vh;
  border-radius: 24px 24px 0 0;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -16px 40px rgba(15, 23, 42, 0.26);
  transform: translateY(105%);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.home-news-modal.show {
  transform: translateY(0);
  pointer-events: auto;
}

.home-news-modal-scroll {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding-bottom: 16px;
}

.home-news-modal-hero {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #f3f4f6;
  overflow: hidden;
}

.home-news-modal-hero img,
.home-news-modal-hero-fallback {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-news-modal-hero-fallback {
  color: var(--hkmc-primary-button);
  background: linear-gradient(145deg, #f8e8ec, #fff5f7 48%, #eef2ff);
}

.home-news-modal-hero-fallback .material-symbols-rounded {
  font-size: 56px;
}

.home-news-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 16px;
  background: rgba(17, 24, 39, 0.68);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.home-news-modal-share {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 16px;
  background: rgba(17, 24, 39, 0.68);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.home-news-modal-close .material-symbols-rounded,
.home-news-modal-share .material-symbols-rounded {
  font-size: 28px;
}

.home-news-modal-body {
  padding: 22px 20px 10px;
  color: var(--hkmc-text);
}

.home-news-modal-symbol {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--hkmc-text);
}

.home-news-modal-symbol .material-symbols-rounded {
  font-size: 34px;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 32;
}

.home-news-modal-body h2 {
  margin: 0 auto;
  max-width: 320px;
  color: var(--hkmc-text);
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.home-news-modal-divider {
  height: 1px;
  margin: 28px 0 26px;
  background: #e5e7eb;
}

.home-news-modal-body h3 {
  margin: 0 0 14px;
  color: var(--hkmc-text);
  font-size: 18px;
  font-weight: 800;
}

.home-news-modal-copy p {
  margin: 0 0 18px;
  color: #242424;
  font-size: 16px;
  line-height: 1.58;
}

.home-news-modal-cta {
  flex: 0 0 auto;
  padding: 16px 0 calc(8px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #eeeeee;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
}

.redemption-detail-page-content {
  padding-bottom: calc(132px + env(safe-area-inset-bottom, 0px));
}

.redemption-detail-page .programme-detail-live {
  padding-top: 0;
}

.redemption-detail-hero-backdrop {
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  background: #eef2f7;
}

.redemption-detail-hero-backdrop::after {
  display: none;
}

.redemption-detail-hero-image,
.redemption-detail-hero-fallback {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #eef2f7;
}

.page[data-name="redemption-detail"] .programme-detail-hero-card {
  padding-top: calc(56px + env(safe-area-inset-top, 0px));
}

/* Solid white behind nav, then a short fade into the poster. */
.redemption-detail-page .programme-detail-hero-backdrop::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  height: 40px;
  pointer-events: none;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.redemption-detail-card-body {
  display: block;
  padding: 20px 20px 22px;
}

.redemption-detail-card-copy {
  width: 100%;
  max-width: none;
  padding-top: 0;
  text-align: left;
}

.redemption-detail-card-copy .programme-detail-meta-line {
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.redemption-detail-card-copy .programme-detail-meta-line > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.redemption-detail-card-copy h1 {
  margin-top: 10px;
  width: 100%;
  max-width: none;
}

.redemption-detail-title-points {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin: 0 0 0 auto;
  color: var(--hkmc-primary-button);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.redemption-detail-title-points .home-points-coin {
  width: 20px;
  height: 20px;
  margin-right: 6px;
  font-size: 11px;
}

.redemption-detail-card-copy .material-symbols-outlined {
  flex: 0 0 auto;
  color: var(--hkmc-primary-button);
  font-size: 18px;
  line-height: 1;
  vertical-align: -4px;
  margin-right: 5px;
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 20;
}

.programme-detail-card-body.redemption-detail-card-body {
  position: relative;
  display: block;
  grid-template-columns: none;
  padding: 20px 20px 22px;
}

.programme-detail-card-copy.redemption-detail-card-copy {
  display: block;
  width: 100%;
  max-width: none;
  min-width: 0;
  padding-top: 0;
  padding-right: 0;
  text-align: left;
  box-sizing: border-box;
}

.redemption-detail-title-points {
  position: static;
  right: auto;
  bottom: auto;
}

.redemption-detail-page [data-redemption-detail-live] .programme-detail-section:last-child {
  margin-bottom: 56px;
}

.redemption-detail-reminder-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 16px 20px 0;
  padding: 13px 15px;
  border-radius: 8px;
  background: #fff4eb;
  color: var(--hkmc-text, #1c1c1c);
}

.redemption-detail-reminder-card .material-symbols-rounded {
  color: #f55438;
  font-size: 24px;
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

.redemption-detail-reminder-card strong {
  min-width: 0;
  color: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
}

.redemption-detail-page .home-news-modal-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
}

.redemption-detail-redeemed-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  padding: 0 20px 12px;
  color: var(--hkmc-text, #1c1c1c);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.redemption-detail-redeemed-row[hidden] {
  display: none !important;
}

.redemption-detail-redeemed-status,
.redemption-detail-voucher-link {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.redemption-detail-redeemed-status {
  flex: 1 1 auto;
  gap: 7px;
  overflow: hidden;
  white-space: nowrap;
}

.redemption-detail-redeemed-status > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.redemption-detail-redeemed-status .material-symbols-rounded {
  flex: 0 0 auto;
  color: #008900;
  font-size: 18px;
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 20;
}

.redemption-detail-voucher-link {
  flex: 0 0 auto;
  justify-content: flex-end;
  margin-left: auto;
  gap: 2px;
  max-width: 45%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--hkmc-theme-accent, var(--hkmc-primary-button));
  font: inherit;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.redemption-detail-voucher-link .material-symbols-rounded {
  font-size: 18px;
}

.redemption-confirm-modal {
  padding: 24px 20px 20px;
}

.redemption-confirm-option {
  margin-bottom: 16px;
}

.redemption-confirm-option[hidden] {
  display: none !important;
}

.redemption-confirm-option .auth-select-trigger {
  margin-top: 6px;
}

.redemption-confirm-option.is-error .auth-select-trigger {
  border-color: #d14343;
}

.redemption-confirm-summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.redemption-confirm-points {
  min-width: 0;
}

.redemption-confirm-label {
  display: block;
  margin-bottom: 4px;
  color: var(--hkmc-text, #1c1c1c);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
}

.redemption-confirm-points strong {
  display: inline-flex;
  align-items: center;
  color: var(--hkmc-text, #1c1c1c);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.redemption-confirm-cost {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.redemption-confirm-money {
  display: grid;
  gap: 4px;
}

.redemption-confirm-money[hidden] {
  display: none !important;
}

.redemption-confirm-money strong {
  display: inline-flex;
  align-items: center;
  color: var(--hkmc-text, #1c1c1c);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.redemption-confirm-points .home-points-coin {
  width: 22px;
  height: 22px;
  font-size: 12px;
  margin-right: 6px;
}

.redemption-confirm-quantity {
  display: inline-grid;
  grid-template-columns: 40px 34px 40px;
  align-items: center;
  justify-items: center;
  gap: 12px;
  color: var(--hkmc-text, #1c1c1c);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.redemption-confirm-quantity [data-redemption-confirm-qty] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-width: 34px;
  text-align: center;
}

.redemption-confirm-qty-button {
  width: 40px;
  height: 40px;
  border: 2px solid var(--hkmc-theme-accent, var(--hkmc-primary-button));
  border-radius: 50%;
  background: #ffffff;
  color: var(--hkmc-theme-accent, var(--hkmc-primary-button));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.redemption-confirm-qty-button:disabled,
.redemption-confirm-qty-button.is-disabled {
  border-color: color-mix(in srgb, var(--hkmc-theme-accent, var(--hkmc-primary-button)) 24%, #ffffff);
  color: color-mix(in srgb, var(--hkmc-theme-accent, var(--hkmc-primary-button)) 24%, #ffffff);
}

.redemption-confirm-qty-button .material-symbols-rounded {
  font-size: 26px;
  font-weight: 500;
}

.redemption-confirm-modal .redemption-confirm-submit {
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100%;
  margin: 8px 0 0 !important;
  background: #008900 !important;
  border-color: #008900 !important;
  color: #ffffff !important;
}

.redemption-confirm-modal .redemption-confirm-submit.is-loading {
  color: transparent !important;
  pointer-events: none;
}

.redemption-confirm-modal .redemption-confirm-submit .loading-dot {
  background: #ffffff;
}

.redemption-confirm-submit .home-points-coin {
  background: #ffffff;
  color: #008900;
}

.redemption-confirm-terms {
  margin: 10px 0 0;
  color: var(--hkmc-secondary-text, #6b7280);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  text-align: center;
}

.redemption-confirm-terms a {
  color: var(--hkmc-theme-accent, var(--hkmc-primary-button));
  font-weight: 600;
  text-decoration: none;
}

.redemption-success-modal .manage-success-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.redemption-success-title-icon {
  color: #008900;
  font-size: 24px;
  line-height: 1;
}

.redemption-success-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

.redemption-success-actions .hkmc-button {
  width: 100%;
  min-width: 0;
  margin: 0 !important;
}

.redemption-success-secondary {
  border: 0;
  border-radius: 22px;
  background: var(--auth-secondary-button, #f2f2f2);
  color: var(--auth-secondary-button-text, var(--hkmc-text));
  font-weight: 700;
}

.redemption-success-secondary:active {
  background: var(--auth-secondary-button-active, #e6e6e6);
}

.redemption-detail-page .home-news-modal-cta .btn-login {
  margin-top: 0;
  border-radius: 16px;
  min-height: var(--hkmc-button-min-height);
  padding-bottom: var(--hkmc-button-padding-y);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.redemption-detail-page .home-news-modal-cta .btn-login.is-disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.redemption-detail-page .home-news-modal-cta .btn-login.is-disabled:active {
  transform: none;
}

.redemption-detail-alert.is-danger .material-symbols-rounded {
  color: #dc2626;
}

.redemption-detail-alert.is-success .material-symbols-rounded {
  color: #2d6940;
}

.redemption-detail-cta-balance {
  display: inline-flex;
  align-items: center;
}

.redemption-detail-page .home-news-modal-cta .home-points-coin {
  background: #ffffff;
  color: var(--hkmc-primary-button);
}

.redemption-detail-page .home-news-modal-cta svg.home-points-coin {
  background: transparent;
}

.redemption-detail-page .home-news-modal-cta svg.home-points-coin circle {
  fill: #ffffff;
}

.redemption-detail-page .home-news-modal-cta svg.home-points-coin text {
  fill: var(--hkmc-primary-button);
}

.redemption-detail-page .home-news-modal-cta .btn-login:disabled .home-points-coin {
  background: rgba(255, 255, 255, 0.92);
  color: var(--hkmc-primary-button);
}

.redemption-detail-page .home-news-modal-cta .btn-login:disabled svg.home-points-coin {
  background: transparent;
}

.redemption-detail-page .home-news-modal-cta .btn-login:disabled svg.home-points-coin circle {
  fill: rgba(255, 255, 255, 0.92);
}

.redemption-detail-page .home-news-modal-cta .btn-login:disabled svg.home-points-coin text {
  fill: var(--hkmc-primary-button);
}

.home-news-modal-skeleton {
  padding-bottom: 24px;
}

.home-news-skeleton-image {
  height: 260px;
  border-radius: 0 !important;
}

.home-news-skeleton-icon {
  width: 34px;
  height: 34px;
  margin: 22px auto 16px;
  border-radius: 10px !important;
}

.home-news-skeleton-title {
  width: 72%;
  height: 30px;
  margin: 0 auto 30px;
  border-radius: 8px !important;
}

.home-news-skeleton-line {
  width: calc(100% - 40px);
  height: 16px;
  margin: 0 20px 12px;
  border-radius: 6px !important;
}

.home-news-skeleton-line.short {
  width: 58%;
}
.home-tone-teal .home-card-visual,
.home-tone-backstage .home-card-visual,
.home-tone-points .home-card-visual { background: radial-gradient(circle at 70% 20%, rgba(255,255,255,0.24), transparent 24%), linear-gradient(145deg, #064e3b, #0f766e 48%, #111827); }
.home-tone-spotlight .home-card-visual,
.home-tone-gold .home-card-visual { background: radial-gradient(circle at 72% 22%, rgba(255,255,255,0.3), transparent 24%), linear-gradient(145deg, #78350f, #b45309 48%, #111827); }
.home-tone-workshop .home-card-visual,
.home-tone-silver .home-card-visual { background: radial-gradient(circle at 76% 20%, rgba(255,255,255,0.28), transparent 24%), linear-gradient(145deg, #374151, #70758d 48%, #111827); }
.home-tone-notice .home-card-visual,
.home-tone-season .home-card-visual { background: radial-gradient(circle at 72% 18%, rgba(255,255,255,0.26), transparent 24%), linear-gradient(145deg, #1e3a8a, #4f46e5 48%, #111827); }
.home-tone-partner .home-card-visual,
.home-tone-meet .home-card-visual { background: radial-gradient(circle at 72% 18%, rgba(255,255,255,0.26), transparent 24%), linear-gradient(145deg, #581c87, #7e22ce 48%, #111827); }
.home-tone-venue .home-card-visual { background: radial-gradient(circle at 72% 18%, rgba(255,255,255,0.26), transparent 24%), linear-gradient(145deg, #164e63, #0891b2 48%, #111827); }

.hkmc-programmes-page,
.hkmc-programmes-page-content,
.hkmc-wishlist-page,
.hkmc-wishlist-page-content {
  background: #f9fbff;
}

.hkmc-programmes-page-content,
.hkmc-news-page-content {
  padding: calc(92px + env(safe-area-inset-top, 0px)) 0 calc(102px + env(safe-area-inset-bottom, 0px));
}

.hkmc-wishlist-page-content {
  padding: calc(104px + env(safe-area-inset-top, 0px)) 0 calc(24px + env(safe-area-inset-bottom, 0px));
}

.programmes-title-shell {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  max-width: none;
  margin: 0;
  padding-top: calc(8px + env(safe-area-inset-top, 0px));
  background: #ffffff;
  overflow: visible;
}

.points-history-appbar .programmes-toolbar {
  min-height: 42px;
  padding-left: 8px;
  padding-right: 8px;
  justify-content: center;
}

.points-history-appbar .programmes-toolbar-title {
  position: absolute;
  left: 50%;
  flex: 0 0 auto;
  width: max-content;
  transform: translateX(-50%);
  text-align: center;
}

.programmes-filter-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin: 0;
  padding: 0 20px 10px;
  background: #ffffff;
}

.programmes-filter-button {
  position: relative;
  z-index: 2;
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid var(--hkmc-primary-button);
  border-radius: 999px;
  background: #ffffff;
  color: var(--hkmc-primary-button);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}

.programmes-filter-button.active,
.programmes-filter-button:active {
  background: color-mix(in srgb, var(--hkmc-primary-button) 8%, #ffffff);
}

.programmes-filter-button::after {
  content: "";
  position: absolute;
  top: -3px;
  right: 7px;
  width: 8px;
  height: 8px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: var(--hkmc-primary-button);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.16);
  opacity: 0;
  transform: scale(0.72);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.programmes-filter-button[data-filter-active="true"]::after {
  opacity: 1;
  transform: scale(1);
}

.programmes-filter-button .material-symbols-rounded {
  font-size: 19px;
}

.programmes-skeleton,
.programmes-list {
  display: grid;
  gap: 20px;
  margin-top: 8px;
}

.programmes-list {
  gap: 8px;
}

.programmes-list .programme-list-card .programme-list-card-link {
  grid-template-columns: 140px minmax(0, 1fr);
  align-items: start;
}

.programmes-list .programme-list-card .wishlist-item-image-wrap {
  align-self: start;
  width: 140px;
  min-width: 140px;
  max-width: 140px;
  height: 175px;
  min-height: 175px;
  aspect-ratio: 4 / 5;
}

.programme-list-card .programme-card-image {
  object-position: center top;
}

.programme-list-card .wishlist-item-category-badge {
  margin-top: 0;
}


.hkmc-programmes-page:not(.is-programmes-loading) [data-programmes-skeleton],
.hkmc-wishlist-page:not(.is-wishlist-loading) [data-wishlist-skeleton] {
  display: none;
}

.wishlist-item-card {
  position: relative;
  display: block;
  min-height: 140px;
  border-radius: 0;
}

.wishlist-item-card:has(> .wishlist-item-image-wrap) {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
}

.wishlist-item-card-link {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: stretch;
  min-height: 140px;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.wishlist-item-image-wrap {
  position: relative;
  width: 112px;
  min-width: 112px;
  max-width: 112px;
  min-height: 140px;
  align-self: stretch;
  overflow: hidden;
  background: #eef2f7;
}

.wishlist-item-card-body {
  min-width: 0;
  padding: 12px 50px 12px 12px;
}

.discovery-voucher-card .wishlist-item-card-body {
  padding-right: 12px;
}

.wishlist-item-category-badge,
.programme-detail-category-badge {
  margin: 0 0 7px;
  padding: 3px 8px;
  border-color: #e5e5e5;
  background: #e5e5e5;
  color: #323232;
  font-size: 12px;
}


.discovery-voucher-badge[data-voucher-status="ready"] {
  background: #caefdb;
  color: var(--hkmc-text);
  border: 0;
}

.discovery-voucher-badge[data-voucher-status="used"] {
  background: #fff4eb;
  color: var(--hkmc-text);
  border: 0;
}

.discovery-voucher-meta.programme-card-meta {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
  -webkit-line-clamp: unset;
  -webkit-box-orient: horizontal;
  line-clamp: unset;
}

.discovery-voucher-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.discovery-voucher-meta-icon {
  font-size: 14px;
  line-height: 1;
}

.discovery-voucher-meta-sep {
  opacity: 0.5;
}

.discovery-voucher-meta .discovery-voucher-points-coin {
  width: 16px;
  height: 16px;
  min-width: 16px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  margin-right: 0;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.voucher-detail-page-content {
  background: var(--hkmc-theme-accent, #f5f5f7);
  min-height: 100%;
  padding: calc(116px + env(safe-area-inset-top, 0px)) 0 calc(24px + env(safe-area-inset-bottom, 0px));
}

.voucher-detail-page-content.is-order-tab {
  background: #e2e9f8;
}

/* Pull-to-refresh dots must sit above order/ticket panels (cards use z-index: 2). */
.voucher-detail-page-content > .pull-refresh-indicator {
  position: relative;
  z-index: 1;
}

.voucher-detail-page-content > .pull-refresh-indicator.visible {
  position: sticky;
  top: calc(116px + env(safe-area-inset-top, 0px));
  z-index: 200;
  pointer-events: none;
}

.voucher-detail-page.is-refreshing .voucher-detail-panel {
  position: relative;
  z-index: 0;
}

.voucher-detail-page.is-refreshing .voucher-detail-card,
.voucher-detail-page.is-refreshing .voucher-detail-item-card,
.voucher-detail-page.is-refreshing .voucher-detail-order-info-card,
.voucher-detail-page.is-refreshing .voucher-detail-notes-shortcut {
  z-index: 0;
}

.points-history-top-tabs.account-transaction-tabs.voucher-detail-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0;
}

.voucher-detail-refresh-button .material-symbols-rounded {
  transition: transform 0.35s ease;
}

.voucher-detail-refresh-button.is-loading .material-symbols-rounded {
  animation: voucher-detail-refresh-spin 0.8s linear infinite;
}

@keyframes voucher-detail-refresh-spin {
  to { transform: rotate(360deg); }
}

.voucher-detail-panel {
  display: none;
  padding: 18px 20px 24px;
}

.voucher-detail-panel.active {
  display: block;
}

.voucher-detail-card,
.voucher-detail-notes-card,
.voucher-detail-order-info-card,
.voucher-detail-item-card {
  position: relative;
  z-index: 2;
  padding: 20px 20px 22px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.account-shortcut-card.voucher-detail-notes-shortcut {
  margin: 16px 0 0;
  width: 100%;
  max-width: none;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.account-shortcut-card.voucher-detail-notes-shortcut[hidden] {
  display: none !important;
}

.voucher-detail-order {
  display: grid;
  gap: 16px;
}

.voucher-detail-order-status {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 8px 8px 4px;
  text-align: left;
}

.voucher-detail-order-status-headline {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  max-width: 100%;
}

.voucher-detail-order-status-icon {
  width: auto;
  height: auto;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: transparent;
  color: #008900;
}

.voucher-detail-order-status-icon .material-symbols-rounded {
  font-size: 28px;
  line-height: 1;
}

.voucher-detail-order-status.is-invalid .voucher-detail-order-status-icon {
  background: transparent;
  color: var(--hkmc-danger);
}

.voucher-detail-order-status-title {
  margin: 0;
  color: var(--hkmc-text);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.voucher-detail-page-content.is-order-tab .voucher-detail-order-status-title {
  color: var(--hkmc-text);
}

.voucher-detail-page-content.is-order-tab .voucher-detail-order-status-id {
  color: #4b6070;
}

.voucher-detail-page-content.is-order-tab .voucher-detail-order-status-id strong {
  color: var(--hkmc-text);
}

.voucher-detail-order-status-id {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--hkmc-secondary-text);
  font-size: 13px;
  line-height: 1.4;
}

.voucher-detail-order-status-id strong {
  color: var(--hkmc-text);
  font-weight: 600;
}

.voucher-detail-item-card {
  display: flex;
  align-items: stretch;
  gap: 14px;
  padding: 14px;
}

.voucher-detail-item-image-wrap {
  flex: 0 0 84px;
  width: 84px;
  height: 84px;
  border-radius: 14px;
  overflow: hidden;
  background: #f3f4f6;
}

.voucher-detail-item-image,
.voucher-detail-item-image-fallback,
.voucher-detail-skeleton-item-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.voucher-detail-item-image-fallback {
  background: linear-gradient(135deg, #eceff3, #f8fafc);
}

.voucher-detail-item-body {
  flex: 1;
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 6px;
}

.voucher-detail-item-body h3 {
  margin: 0;
  color: var(--hkmc-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.voucher-detail-item-body p {
  margin: 0;
  color: var(--hkmc-secondary-text);
  font-size: 13px;
  line-height: 1.4;
}

.voucher-detail-order-info-title {
  margin: 0 0 14px;
  color: var(--hkmc-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  padding-left: 0;
  border-left: 0;
}

.voucher-detail-order-info-row .home-points-coin {
  width: 16px;
  height: 16px;
  margin-right: 4px;
}

.voucher-detail-order-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}

.voucher-detail-order-info-row + .voucher-detail-order-info-row {
  border-top: 1px solid #f0f1f3;
}

.voucher-detail-order-info-row span {
  color: var(--hkmc-secondary-text);
  font-size: 14px;
}

.voucher-detail-order-info-row strong {
  color: var(--hkmc-text);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.voucher-detail-order-skeleton {
  gap: 12px;
}

.voucher-detail-skeleton-status-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
}

.voucher-detail-skeleton-status-title {
  width: 120px;
  height: 20px;
  border-radius: 10px;
}

.voucher-detail-skeleton-status-id {
  width: 180px;
  height: 14px;
  border-radius: 8px;
}

.voucher-detail-notes-modal .saved-info-display {
  max-height: min(68vh, 560px);
  overflow: auto;
}

.voucher-detail-notes-modal-content {
  margin-top: 0;
  width: 100%;
  text-align: left;
}

.voucher-detail-notes-modal-content .programme-detail-section.voucher-detail-notes-section {
  margin-top: 0;
  padding-left: 0;
  padding-right: 0;
}

.voucher-detail-notes-modal-content .voucher-detail-notes-section + .voucher-detail-notes-section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #f0f1f3;
}

.voucher-detail-card .manage-summary-row,
.voucher-detail-summary-row {
  padding: 0;
  margin: 0;
}

.voucher-detail-summary-row + .voucher-detail-summary-row {
  margin-top: 12px;
}

.voucher-detail-summary-row-title span {
  margin-bottom: 0;
  color: var(--hkmc-text);
  font-size: 15px; /* match .voucher-detail-item-body h3 */
  font-weight: 600;
  line-height: 1.35;
}

.voucher-detail-summary-value {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.voucher-detail-summary-value strong {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voucher-detail-copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  flex: 0 0 auto;
}

.voucher-detail-copy-button:active {
  background: rgba(0, 0, 0, 0.06);
}

.voucher-detail-copy-button .material-symbols-rounded {
  font-size: 18px;
}

.voucher-detail-divider {
  border: 0;
  border-top: 1px solid #ececec;
  margin: 14px 0 14px;
}

.voucher-detail-qr-viewport {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.voucher-detail-qr-viewport .voucher-detail-qr-swiper {
  flex: 1 1 auto;
  min-width: 0;
}

.voucher-detail-qr-arrow {
  position: static;
  transform: none;
  margin: 0;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}

.voucher-detail-qr-arrow[disabled],
.voucher-detail-qr-arrow:disabled {
  visibility: hidden;
  pointer-events: none;
}

.voucher-detail-qr-arrow[hidden] { display: none !important; }

.voucher-detail-qr-ticket-id-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--hkmc-secondary-text);
  font-size: 12px;
}

.voucher-detail-qr-status.discovery-voucher-badge {
  margin: 0;
}

.voucher-detail-copy-alert {
  position: fixed;
  top: calc(140px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  z-index: 90;
}

.voucher-detail-qr-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.voucher-detail-qr-counter {
  font-size: 13px;
  font-weight: 600;
  color: var(--hkmc-secondary-text);
}

.voucher-detail-qr-swiper {
  width: 100%;
  overflow: hidden;
  touch-action: pan-y;
}

.voucher-detail-qr-track {
  display: flex;
  width: 100%;
  transition: transform 0.28s ease;
  will-change: transform;
}

.voucher-detail-qr-slide {
  flex: 0 0 100%;
  min-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.voucher-detail-qr-frame {
  margin: 0 auto;
}

.voucher-detail-qr-code {
  display: flex;
  align-items: center;
  justify-content: center;
}

.voucher-detail-qr-payload {
  display: none;
}

.voucher-detail-qr-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--hkmc-secondary-text);
}

.voucher-detail-qr-status {
  font-weight: 600;
  color: var(--hkmc-text);
}

.voucher-detail-qr-slide[data-voucher-qr-status="redeemed"] .voucher-detail-qr-status,
.voucher-detail-qr-slide[data-voucher-qr-status="voided"] .voucher-detail-qr-status,
.voucher-detail-qr-slide[data-voucher-qr-status="expired"] .voucher-detail-qr-status,
.voucher-detail-qr-slide[data-voucher-qr-status="cancelled"] .voucher-detail-qr-status,
.voucher-detail-qr-slide[data-voucher-qr-status="canceled"] .voucher-detail-qr-status,
.voucher-detail-qr-slide[data-voucher-qr-status="refunded"] .voucher-detail-qr-status {
  color: var(--hkmc-secondary-text);
}

.voucher-detail-qr-slide.is-qr-disabled .account-qr-code-frame,
.voucher-detail-qr-frame.is-qr-disabled,
.voucher-detail-qr-slide[data-voucher-qr-status="redeemed"] .account-qr-code-frame,
.voucher-detail-qr-slide[data-voucher-qr-status="voided"] .account-qr-code-frame,
.voucher-detail-qr-slide[data-voucher-qr-status="expired"] .account-qr-code-frame,
.voucher-detail-qr-slide[data-voucher-qr-status="cancelled"] .account-qr-code-frame,
.voucher-detail-qr-slide[data-voucher-qr-status="canceled"] .account-qr-code-frame,
.voucher-detail-qr-slide[data-voucher-qr-status="refunded"] .account-qr-code-frame {
  filter: grayscale(1) brightness(1.12);
  opacity: 0.42;
  pointer-events: none;
  background: #f3f4f6;
  border-color: #e5e7eb;
}

.voucher-detail-qr-slide.is-qr-disabled .voucher-detail-qr-code img,
.voucher-detail-qr-slide.is-qr-disabled .voucher-detail-qr-code canvas,
.voucher-detail-qr-frame.is-qr-disabled .voucher-detail-qr-code img,
.voucher-detail-qr-frame.is-qr-disabled .voucher-detail-qr-code canvas {
  filter: grayscale(1);
  opacity: 0.75;
}

.voucher-detail-code-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px 8px 8px;
}

.voucher-detail-code-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  max-width: 100%;
}

.voucher-detail-code {
  color: var(--hkmc-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  word-break: break-all;
}

.voucher-detail-qr-empty,
.voucher-detail-notes-empty,
.voucher-detail-error {
  padding: 20px 0;
  text-align: center;
  color: var(--hkmc-secondary-text);
  font-size: 14px;
}

.voucher-detail-order-id {
  margin: 12px 0 0;
  color: var(--hkmc-secondary-text);
  font-size: 12px;
  text-align: center;
}

.voucher-detail-notes-card .voucher-detail-notes-section {
  margin: 0;
  padding: 0;
}

.voucher-detail-notes-card .voucher-detail-notes-section + .voucher-detail-notes-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #ececec;
}

.voucher-detail-notes-card .voucher-detail-notes-section h2 {
  margin: 0 0 8px;
  color: #000000;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.voucher-detail-notes-card .voucher-detail-notes-section .home-news-modal-copy p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  white-space: pre-line;
}

.voucher-detail-summary-skeleton .voucher-detail-skeleton-label {
  display: inline-block;
  width: 72px;
  height: 14px;
  border-radius: 6px;
  margin-bottom: 6px;
}

.voucher-detail-summary-skeleton .voucher-detail-skeleton-value {
  display: block;
  width: 60%;
  height: 16px;
  border-radius: 6px;
}

.voucher-detail-summary-skeleton .voucher-detail-skeleton-title {
  display: block;
  width: 60%;
  height: 16px;
  margin-bottom: 0;
  border-radius: 6px;
}

.voucher-detail-skeleton-counter {
  display: inline-block;
  width: 60px;
  height: 14px;
  border-radius: 6px;
  margin: 4px 0;
}

.voucher-detail-skeleton-qr {
  display: block;
  width: 214px;
  height: 214px;
  border-radius: 12px;
}

.voucher-detail-skeleton-status {
  display: inline-block;
  width: 72px;
  height: 20px;
  border-radius: 999px;
  margin-top: 8px;
}

.voucher-detail-skeleton-ticket {
  display: inline-block;
  width: 180px;
  height: 12px;
  border-radius: 6px;
  margin-top: 6px;
}

.voucher-detail-skeleton-heading {
  display: block;
  width: 40%;
  height: 18px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.voucher-detail-skeleton-paragraph {
  display: block;
  width: 100%;
  height: 14px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.voucher-detail-skeleton-paragraph.short {
  width: 60%;
}

.buy-points-page-content {
  background: #f5f5f7;
  min-height: 100%;
  padding: calc(78px + env(safe-area-inset-top, 0px)) 0 calc(48px + env(safe-area-inset-bottom, 0px));
}

.buy-points-hero {
  padding: 8px 20px 4px;
  text-align: left;
}

.buy-points-hero h1 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
  color: var(--hkmc-text);
}

.buy-points-hero p {
  margin: 0;
  color: var(--hkmc-secondary-text);
  font-size: 13px;
  line-height: 1.5;
}

.earn-points-page-content {
  background: #ffffff;
}

.earn-points-hero {
  padding-top: 14px;
  text-align: left;
}

.earn-points-hero h1 {
  margin-bottom: 10px;
}

.earn-points-hero p {
  font-size: 14px;
  line-height: 1.65;
}

.earn-points-form {
  position: relative;
  z-index: 1;
  padding: 26px 20px 40px;
  pointer-events: auto;
}

.earn-points-form .form-group {
  margin-bottom: 24px;
}

.earn-points-field-error {
  min-height: 20px;
  margin: 7px 0 0;
  color: #c93a2b;
  font-size: 13px;
  line-height: 1.4;
}

.earn-points-page {
  --auth-primary: var(--hkmc-primary-button);
  --auth-primary-active: #01192a;
  --auth-primary-text: var(--hkmc-primary-contrast, #ffffff);
}

.earn-points-submit {
  width: 100%;
  position: relative;
  z-index: 1;
  pointer-events: auto;
  touch-action: manipulation;
}

.earn-points-submit.is-loading [data-earn-points-submit-label] {
  visibility: hidden;
}

.earn-points-submit.is-loading .manage-pay-loading {
  display: inline-flex;
  position: absolute;
  inset: 0;
}

.earn-points-submit .loading-dot {
  position: static;
  transform: none;
  background: currentColor;
}

.earn-points-success-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--hkmc-text);
  font-size: 18px;
}

.earn-points-success-value strong {
  font-size: 26px;
  line-height: 1;
}

.earn-points-point-icon {
  width: 30px;
  height: 30px;
  overflow: visible;
}

.earn-points-point-icon circle {
  fill: var(--hkmc-theme-accent, var(--hkmc-primary-button));
}

.earn-points-point-icon text {
  fill: #ffffff;
  font-size: 17px;
  font-weight: 800;
  font-family: Inter, sans-serif;
}

.buy-points-list {
  display: grid;
  gap: 12px;
  padding: 16px 20px 8px;
}

.buy-points-card {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e7e9ee;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: grid;
  gap: 8px;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  box-sizing: border-box;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.buy-points-card.is-featured {
  border: 2px solid var(--hkmc-theme-accent, var(--hkmc-primary-button));
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.buy-points-card:active {
  transform: scale(0.985);
  background: #fafafa;
}

.buy-points-card:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--hkmc-primary-button) 24%, transparent);
  outline-offset: 2px;
}

.buy-points-card.is-loading {
  opacity: 0.62;
  pointer-events: none;
}

.buy-points-card-header h2 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--hkmc-text);
}

.buy-points-card-desc {
  margin: 0;
  color: var(--hkmc-secondary-text);
  font-size: 12px;
  line-height: 1.4;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.buy-points-card-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.buy-points-card-points {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.buy-points-card-point-icon {
  flex: 0 0 auto;
  width: 23px;
  height: 23px;
}

.buy-points-card-point-icon circle {
  fill: var(--hkmc-primary-button);
}

.buy-points-card-point-icon text {
  fill: var(--hkmc-primary-contrast, #ffffff);
  font-size: 16px;
  font-weight: 800;
}

.buy-points-card-points strong {
  font-size: 21px;
  font-weight: 700;
  color: var(--hkmc-text);
  line-height: 1;
  white-space: nowrap;
}

.buy-points-card-bonus {
  color: var(--hkmc-theme-accent, var(--hkmc-primary-button));
}

.buy-points-card-points-label {
  font-size: 13px;
  color: var(--hkmc-secondary-text);
}

.buy-points-card-price {
  flex: 0 0 auto;
  font-size: 16px;
  font-weight: 700;
  color: var(--hkmc-text);
  line-height: 1;
}

.buy-points-card-skeleton {
  min-height: 100px;
}

.buy-points-skeleton-title {
  display: block;
  width: 40%;
  height: 18px;
  border-radius: 6px;
}

.buy-points-skeleton-line {
  display: block;
  width: 70%;
  height: 14px;
  border-radius: 6px;
}

.buy-points-skeleton-price {
  display: block;
  width: 60px;
  height: 22px;
  border-radius: 6px;
  margin-left: auto;
}

.buy-points-empty {
  padding: 32px 0;
  text-align: center;
  color: var(--hkmc-secondary-text);
  font-size: 14px;
}

.buy-points-faq.manage-membership-faq {
  margin: 8px 0 8px;
  padding: 0 20px 8px;
}

.buy-points-review-overlay {
  z-index: 30000;
}

.buy-points-review-modal {
  --auth-primary: var(--hkmc-primary-button);
  --auth-on-primary: var(--hkmc-primary-contrast);
  z-index: 40001;
  box-sizing: border-box;
  max-height: min(88vh, 680px);
  padding: 8px 0 calc(20px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
}

.buy-points-review-handle {
  width: 42px;
  height: 5px;
  margin: 0 auto 4px;
  border-radius: 999px;
  background: #d7d9df;
}

.buy-points-review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 16px;
  border-bottom: 1px solid #e0e0e0;
}

.buy-points-review-header h2 {
  margin: 0;
  color: var(--hkmc-text);
  font-size: 17px;
  font-weight: 600;
  text-align: center;
}

.buy-points-review-header-spacer,
.buy-points-review-header .header-icon-button {
  width: 40px;
  flex: 0 0 40px;
}

.buy-points-review-header .header-icon-button {
  margin-left: -8px;
}

.buy-points-review-summary {
  padding: 18px 20px 4px;
  background: #ffffff;
}

.buy-points-review-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 30px;
  margin-bottom: 10px;
  color: #333333;
  font-size: 14px;
}

.buy-points-review-row strong {
  color: var(--hkmc-text);
  font-size: 15px;
  font-weight: 700;
}

.buy-points-review-row.is-bonus,
.buy-points-review-row.is-bonus strong {
  color: var(--hkmc-primary-button);
}

.buy-points-review-row.is-total strong::before,
.buy-points-review-row.is-balance strong::before {
  content: "+ ";
}

.buy-points-review-row.is-balance {
  margin-bottom: 10px;
}

.buy-points-review-row.is-balance strong {
  color: var(--hkmc-primary-button);
  font-size: 16px;
}

.buy-points-review-row.is-balance strong::before {
  content: "";
}

.buy-points-review-after-value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.buy-points-review-point-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.buy-points-review-point-icon circle {
  fill: var(--hkmc-primary-button);
}

.buy-points-review-point-icon text {
  fill: var(--hkmc-primary-contrast, #ffffff);
  font-size: 16px;
  font-weight: 800;
}

.buy-points-review-divider {
  height: 1px;
  margin: 2px 0 12px;
  background: #e0e0e0;
}

.buy-points-review-row.is-subtotal {
  min-height: 34px;
  margin-bottom: 0;
  color: var(--hkmc-text);
  font-size: 16px;
  font-weight: 700;
}

.buy-points-review-row.is-subtotal strong {
  font-size: 17px;
}

.buy-points-review-modal .buy-points-review-pay {
  position: relative;
  width: calc(100% - 40px);
  max-width: calc(100% - 40px);
  margin: 14px 20px 0;
  box-sizing: border-box;
}

.earn-points-hero {
  padding: 20px 24px 0;
}

.earn-points-hero h1 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
}

.earn-points-hero p {
  margin: 0;
  color: var(--hkmc-secondary-text);
  font-size: 14px;
  line-height: 1.5;
}

.buy-points-alert {
  position: fixed;
  top: calc(74px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  z-index: 90;
}

.wishlist-item-card-body h2 {
  font-size: 15px;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wishlist-item-card-body .programme-card-secondary,
.wishlist-item-card-body .programme-card-meta {
  font-size: 12px;
  line-height: 1.32;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wishlist-item-favourite-button {
  top: 10px;
  right: 10px;
}

.news-list {
  padding-bottom: 28px;
}

.hkmc-news-page,
.hkmc-news-page-content {
  background: #f9fbff;
}

.hkmc-news-page .news-appbar.hkmc-appbar {
  padding-bottom: 0;
}

.hkmc-news-page .news-sort-row.programmes-filter-row {
  position: static;
  top: auto;
  z-index: auto;
  justify-content: flex-start;
  margin: 0;
  padding: 0 12px 10px 20px;
  background: #ffffff;
  box-shadow: none;
}

.hkmc-news-page .programmes-skeleton,
.hkmc-news-page .news-list {
  margin-top: 0;
}


.hkmc-news-page:not(.is-news-loading) [data-news-skeleton],
.hkmc-news-page .programmes-skeleton[hidden] {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.news-list-item-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0;
  min-height: 140px;
  height: 140px;
  border-radius: 0;
  cursor: pointer;
  overflow: hidden;
}

.news-list-item-image-wrap {
  position: relative;
  width: calc(140px * 4 / 5);
  height: 140px;
  aspect-ratio: 4 / 5;
  flex: 0 0 auto;
  overflow: hidden;
  background: #eef2f7;
  align-self: stretch;
}

.news-list-item-image-wrap .programme-card-image,
.news-list-item-image-wrap .programme-card-image-fallback,
.news-list-item-image-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.programme-card.news-list-item-card .news-list-item-card-body {
  min-width: 0;
  height: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.news-list-item-card-body h2 {
  margin: 0;
  color: var(--hkmc-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-list-item-card-body .programme-card-meta {
  margin: 0;
  font-size: 12px;
}

.news-list-item-card-body .wishlist-item-category-badge,
.news-list-item-card-body .programme-ticketing-status-badge {
  margin: 0;
}

.news-detail-page .programme-detail-live {
  padding-top: 0;
}

.news-detail-page .programme-detail-live:has(.app-error-content) {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  padding: calc(72px + env(safe-area-inset-top, 0px)) 24px calc(32px + env(safe-area-inset-bottom, 0px));
}

.news-detail-page .app-error-content {
  width: 100%;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.news-detail-page .app-error-title {
  width: 100%;
  text-align: center;
}

.page[data-name="news-detail"] .programme-detail-hero-card,
.news-detail-page .news-detail-hero-card {
  margin: 0;
  max-width: none;
  padding-top: calc(56px + env(safe-area-inset-top, 0px));
  background: #ffffff;
  box-shadow: none;
}

.news-detail-page .programme-detail-hero-backdrop.news-detail-hero {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #eef2f7;
}

.news-detail-page .programme-detail-hero-backdrop.news-detail-hero::after {
  display: none;
}

.news-detail-hero {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #eef2f7;
  aspect-ratio: 4 / 5;
}

/* Same as redemption detail: solid white behind the nav, then a short fade into the image. */
.news-detail-hero::before,
.news-detail-page .programme-detail-hero-backdrop.news-detail-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  height: 40px;
  pointer-events: none;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.news-detail-hero img,
.news-detail-hero-fallback {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.news-detail-hero-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hkmc-secondary-text);
}

.news-detail-hero-fallback .material-symbols-rounded {
  font-size: 48px;
}

.news-detail-copy {
  padding: 28px 20px 28px;
}

/* Allow selecting / highlighting news body text only (global body is user-select: none). */
.news-detail-copy .home-news-modal-copy,
.news-detail-copy .home-news-modal-copy p {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

.news-detail-copy .home-news-modal-copy p.news-detail-body {
  white-space: pre-wrap;
  margin: 0;
}

.news-detail-copy h1 {
  margin: 0 0 8px;
  color: var(--hkmc-text);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.news-detail-meta {
  margin: 0 0 16px;
  color: var(--hkmc-secondary-text);
  font-size: 13px;
  line-height: 1.4;
}

.news-detail-content-media {
  margin: 0 0 16px;
  width: 100%;
}

.news-detail-content-media-image .news-detail-content-media-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  object-fit: cover;
}

.news-detail-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0a0a0a;
}

.news-detail-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.news-detail-video-native-play {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  padding: 0;
  border: 0;
  background: color-mix(in srgb, var(--hkmc-secondary-text) 14%, #111);
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.news-detail-video-native-play-icon .material-symbols-rounded {
  font-size: 56px;
  line-height: 1;
}

.news-detail-video-native-play-label {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.news-detail-content-lock {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 4px;
  padding: 14px 16px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--hkmc-secondary-text) 10%, transparent);
  color: var(--hkmc-text);
}

.news-detail-content-lock-icon {
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--hkmc-secondary-text);
  font-size: 20px;
  line-height: 1;
}

.news-detail-content-lock-text {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

/* Beat .programme-detail-page-content's 102px tab-bar padding (same specificity, later in file). */
.news-detail-page.programme-detail-page .news-detail-page-content,
.news-detail-page .news-detail-page-content {
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

.news-detail-page.has-news-cta .news-detail-page-content {
  padding-bottom: calc(132px + env(safe-area-inset-bottom, 0px));
}

.news-detail-page.has-news-cta:has(.news-detail-cta-wrap:not(:has(.btn-login))) .news-detail-page-content {
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

/* Push share to the far right (global spacer is fixed 40px for title centering). */
.news-detail-page .programme-detail-appbar .hkmc-toolbar-spacer {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}

.news-detail-page .programme-detail-appbar:not(.scrolled) {
  background: transparent !important;
  box-shadow: none !important;
}

.news-detail-page .programme-detail-appbar.scrolled {
  background: #ffffff !important;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05) !important;
}

.news-detail-page .programme-detail-appbar:not(.scrolled) .header-icon-button,
.news-detail-page .programme-detail-appbar.scrolled .header-icon-button {
  color: var(--hkmc-text, #1c1c1c);
}

.news-detail-page .programme-detail-appbar:not(.scrolled) .header-icon-button:active,
.news-detail-page .programme-detail-appbar.scrolled .header-icon-button:active {
  background: #f2f2f2;
}

.news-detail-page .programme-detail-appbar:not(.scrolled) .header-icon-button.active,
.news-detail-page .programme-detail-appbar.scrolled .header-icon-button.active {
  color: var(--hkmc-primary-button);
}

.news-detail-cta-wrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  padding: 16px 20px calc(18px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #eeeeee;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
}

.news-detail-cta-wrap[hidden] {
  display: none !important;
}

.news-detail-cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.news-detail-like-button,
.news-detail-comment-button {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  min-height: 0;
  padding: 6px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--hkmc-secondary-text, #6b7280);
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  cursor: pointer;
  box-shadow: none;
}

.news-detail-comment-button .material-symbols-rounded,
.news-detail-like-button .material-symbols-rounded {
  flex: 0 0 auto;
  font-size: 26px;
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

.news-detail-like-button.is-active,
.news-detail-comment-button.is-active,
.news-detail-like-button.is-liked {
  color: var(--hkmc-primary-button);
}

.news-detail-comment-button.is-active .material-symbols-rounded,
.news-detail-like-button.is-liked .material-symbols-rounded {
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

.news-detail-action-count {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-align: left;
}

.news-detail-action-count[hidden] {
  display: none !important;
}

.news-detail-cta-wrap .btn-login {
  margin-top: 0;
  margin-left: auto;
  flex: 0 0 auto;
  width: auto;
  max-width: min(240px, 68%);
  min-width: 0;
  min-height: var(--hkmc-button-min-height);
  padding: var(--hkmc-button-padding-y) var(--hkmc-button-padding-x);
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--hkmc-primary-button);
  color: var(--hkmc-primary-contrast, #ffffff);
}

.news-detail-cta-wrap .btn-login span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-detail-cta-wrap .btn-login .material-symbols-rounded {
  font-size: 20px;
  line-height: 1;
}

.news-detail-cta-wrap .btn-login:active {
  background: color-mix(in srgb, var(--hkmc-primary-button) 88%, #000000);
  color: var(--hkmc-primary-contrast, #ffffff);
}

.news-detail-cta-wrap .btn-login:only-child {
  width: auto;
  margin-left: auto;
}

/* ── News comments sheet ───────────────────────────────────── */
.news-comments-overlay {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: none;
  background: rgba(0, 0, 0, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.news-comments-overlay.visible {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.news-comments-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99991;
  height: min(88vh, 760px);
  max-height: 88vh;
  border-radius: 20px 20px 0 0;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -16px 40px rgba(15, 23, 42, 0.22);
  transform: translateY(105%);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.news-comments-sheet.visible {
  transform: translateY(0);
  pointer-events: auto;
}

.news-comments-sheet-handle {
  flex: 0 0 auto;
  width: 36px;
  height: 4px;
  margin: 10px auto 4px;
  border-radius: 999px;
  background: #d1d5db;
}

.news-comments-sheet-header {
  flex: 0 0 auto;
  padding: 6px 20px 12px;
}

.news-comments-sheet-title {
  margin: 0;
  color: var(--hkmc-text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.news-comments-sheet-count {
  font-weight: 400;
}

.news-comments-sheet-scroll {
  min-height: 0;
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 20px 16px;
}

.news-comments-empty {
  min-height: 280px;
}

.news-comments-skeleton {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 8px 0 12px;
}

.news-comment-skeleton {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px 12px;
  align-items: start;
}

.news-comment-skeleton-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.news-comment-skeleton-lines {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding-top: 4px;
}

.news-comment-skeleton-name {
  width: 28%;
  height: 12px;
  border-radius: 6px;
}

.news-comment-skeleton-body {
  width: 70%;
  height: 14px;
  border-radius: 6px;
}

.news-comment-skeleton-meta {
  width: 42%;
  height: 10px;
  border-radius: 6px;
}

.news-comments-empty-title {
  margin: 0;
  color: var(--hkmc-text);
  font-size: 16px;
  font-weight: 600;
}

.news-comments-empty-copy {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.news-comment-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px 12px;
  padding: 14px 0;
  align-items: start;
}

.news-comment-item + .news-comment-item {
  border-top: 1px solid #f3f3f3;
}

.news-comment-item.is-reply {
  margin-left: 48px;
  padding-top: 10px;
  padding-bottom: 10px;
  border-top: 0;
}

.news-comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--hkmc-primary-button);
}

.news-comment-item.is-reply .news-comment-avatar {
  width: 30px;
  height: 30px;
  font-size: 12px;
}

.news-comment-avatar.has-photo {
  padding: 0;
  overflow: hidden;
  background: #e5e5e5;
}

.news-comment-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-comment-main {
  min-width: 0;
}

.news-comment-name {
  margin: 0 0 4px;
  color: var(--hkmc-text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
}

.news-comment-body {
  margin: 0;
  color: var(--hkmc-text);
  font-size: 15px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.news-comment-reply-prefix {
  color: var(--hkmc-secondary-text);
  font-weight: 600;
}

.news-comment-meta {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 8px;
  color: var(--hkmc-secondary-text);
  font-size: 12px;
  line-height: 1.3;
}

.news-comment-time {
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--hkmc-secondary-text);
  font: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}

.news-comment-reply-button,
.news-comment-more-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--hkmc-primary-button);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.news-comment-reply-button {
  display: inline-flex;
  flex: 0 0 auto;
  width: auto;
  margin: 0;
  text-align: left;
  white-space: nowrap;
}

.news-comment-more-button {
  color: var(--hkmc-secondary-text);
  padding: 2px;
  line-height: 1;
}

.news-comment-more-button .material-symbols-rounded {
  font-size: 20px;
}

.news-comments-composer {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #eeeeee;
  background: #ffffff;
}

.news-comments-composer-input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  max-height: 120px;
  resize: none;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  background: #fafafa;
  color: var(--hkmc-text);
  font: inherit;
  font-size: 15px;
  line-height: 1.35;
  outline: none;
}

.news-comments-composer-input:focus {
  border-color: var(--hkmc-primary-button);
  background: #ffffff;
}

.news-comments-send-button {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--hkmc-primary-button);
  color: var(--hkmc-primary-contrast, #ffffff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.news-comments-send-button:disabled {
  opacity: 0.45;
  cursor: default;
}

.news-comments-send-button .material-symbols-rounded {
  font-size: 22px;
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

.news-comments-delete-modal .news-comments-delete-action {
  width: 100%;
  min-height: var(--hkmc-button-min-height);
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--hkmc-text);
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
}

.news-comments-delete-modal .news-comments-delete-action:active {
  opacity: 0.62;
}

.news-comments-delete-modal .news-comments-delete-action .material-symbols-rounded {
  font-size: 22px;
  color: var(--hkmc-text);
}

.news-comments-delete-modal .profile-avatar-sheet-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  flex: 0 0 22px;
  color: var(--hkmc-text);
}

.news-comments-delete-modal .profile-avatar-sheet-icon svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.news-comments-delete-overlay,
.news-comments-delete-overlay:not(.visible) {
  position: fixed;
  inset: 0;
  z-index: 99995;
  display: block !important;
  visibility: visible !important;
  background: rgba(0, 0, 0, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.news-comments-delete-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.booking-selection-modal.news-comments-delete-modal,
.booking-selection-modal.news-comments-delete-modal:not(.visible) {
  z-index: 99996;
  display: flex !important;
  visibility: visible !important;
  flex-direction: column;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateY(105%);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.booking-selection-modal.news-comments-delete-modal.visible {
  display: flex !important;
  visibility: visible !important;
  transform: translateY(0);
  pointer-events: auto;
}

.programmes-skeleton-card,
.programme-card {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: #ffffff;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.programme-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.programme-card-link.wishlist-item-card-link,
.wishlist-item-card-link {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: stretch;
  min-height: 140px;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.programmes-skeleton-card .hkmc-skeleton-block {
  border-radius: 0;
}

.programmes-skeleton-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #eef2f7;
}

.programme-card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eef2f7;
}

.programmes-skeleton-title {
  width: 74%;
  height: 20px;
  margin: 16px 16px 10px;
  border-radius: 4px !important;
}

.programmes-skeleton-line {
  width: calc(100% - 32px);
  height: 13px;
  margin: 0 16px 8px;
  border-radius: 4px !important;
}

.programmes-skeleton-line.short {
  width: 58%;
  margin-bottom: 18px;
}

.programme-card-image,
.programme-card-image-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.programme-card-image-fallback {
  background: #eef2f7 url("https://mq-musical-theatre-app.b-cdn.net/img/fallback_image.png") center / cover no-repeat;
}

.programme-favourite-button,
.programme-category-badge {
  position: absolute;
  top: 12px;
  z-index: 2;
  border: 0;
  background: rgba(17, 24, 39, 0.58);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.programme-favourite-button {
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.programme-category-badge {
  left: 12px;
  min-height: 36px;
  max-width: calc(100% - 68px);
  box-sizing: border-box;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.programme-favourite-button.active {
  background: rgba(17, 24, 39, 0.58);
  color: #ffffff;
}

.programme-favourite-button .material-symbols-rounded {
  font-size: 20px;
}

.programme-card-body {
  padding: 16px;
}

.programme-card-body h2 {
  margin: 0;
  color: var(--hkmc-text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.programme-card-secondary,
.programme-card-meta {
  margin: 6px 0 0;
  color: var(--hkmc-secondary-text);
  font-size: 13px;
  line-height: 1.38;
}

.programme-card-meta {
  margin-top: 9px;
}

.programme-ticketing-status-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 8px;
  padding: 4px 9px;
  border: 1px solid var(--hkmc-primary-button);
  border-radius: 10px;
  color: var(--hkmc-primary-button);
  background: #ffffff;
  font-size: 13px;
  line-height: 1.38;
  font-weight: 500;
}

.programme-ticketing-status-badge.is-ticketing-open {
  border-color: #eaf9f7;
  background: #eaf9f7;
  color: #068667;
}

.programme-ticketing-status-badge.is-ticketing-alert {
  border-color: #f4bebf;
  background: #f4bebf;
  color: #000000;
}

.programme-ticketing-status-badge.wishlist-item-category-badge:not(.discovery-voucher-badge) {
  padding: 4px 9px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  background: #e5e5e5;
  color: #323232;
  font-size: 13px;
  line-height: 1.38;
  font-weight: 500;
}

.programmes-filter-overlay {
  z-index: 30000;
}

.programmes-filter-modal {
  z-index: 30001;
}

.programmes-sort-option-list {
  width: 100%;
  display: grid;
  gap: 0;
  margin-top: 2px;
}

.programmes-sort-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  color: var(--hkmc-text);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
}

.programmes-sort-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.programmes-sort-radio {
  width: 20px;
  height: 20px;
  border: 2px solid #d1d5db;
  border-radius: 50%;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.programmes-sort-radio::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--hkmc-primary-button);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.programmes-sort-option input:checked + .programmes-sort-radio {
  border-color: var(--hkmc-primary-button);
}

.programmes-sort-option input:checked + .programmes-sort-radio::after {
  opacity: 1;
  transform: scale(1);
}

.programmes-category-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.programmes-category-filter-badge {
  position: static;
  min-height: 32px;
  padding: 5px 10px;
  cursor: pointer;
}

.programmes-category-filter-badge .material-symbols-rounded {
  display: none;
  font-size: 16px;
}

.programmes-category-filter-badge.selected {
  background: var(--hkmc-primary-button);
  color: var(--hkmc-primary-contrast);
}

.programmes-category-filter-badge.selected .material-symbols-rounded {
  display: inline-flex;
}

.programmes-filter-modal-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 20px 20px 0;
}

.programmes-filter-modal-actions .hkmc-button,
.programmes-filter-modal-actions .btn-login {
  width: 100%;
  min-width: 0;
  margin: 0;
  box-sizing: border-box;
}

.programmes-filter-modal-actions > .btn-login:only-child,
.programmes-filter-clear-button[hidden] + .btn-login {
  grid-column: 1 / -1;
  width: 100%;
}

.programmes-filter-clear-button[hidden] {
  display: none !important;
}

.programmes-filter-clear-button {
  min-height: var(--hkmc-button-min-height);
  height: var(--hkmc-button-min-height);
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--hkmc-primary-button);
  display: inline-flex;
  align-items: center;
  align-self: center;
  justify-content: flex-start;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  text-align: left;
}

.programmes-filter-clear-button:active {
  opacity: 0.62;
}

.programmes-empty {
  min-height: 240px;
}

.programme-detail-page,
.programme-detail-page-content {
  background: #f9fbff;
}

.programme-detail-page-content {
  padding: 0 0 calc(102px + env(safe-area-inset-bottom, 0px));
}

.programme-detail-appbar {
  background: transparent !important;
  box-shadow: none !important;
}

.programme-detail-appbar .hkmc-toolbar-title,
.programme-detail-appbar .header-icon-button {
  color: #ffffff;
}

.programme-detail-appbar .header-icon-button:active {
  background: rgba(255, 255, 255, 0.16);
}

.programme-detail-appbar.scrolled {
  background: #ffffff !important;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05) !important;
}

.programme-detail-appbar.scrolled .hkmc-toolbar-title,
.programme-detail-appbar.scrolled .header-icon-button {
  color: var(--hkmc-text);
}

.programme-detail-appbar.scrolled .header-icon-button:active {
  background: #f2f2f2;
}

.programme-detail-appbar:not(.scrolled) .header-icon-button.active {
  color: #ffffff;
}

.redemption-detail-page .programme-detail-appbar:not(.scrolled) .hkmc-toolbar-title,
.redemption-detail-page .programme-detail-appbar:not(.scrolled) .header-icon-button {
  color: var(--hkmc-text, #1c1c1c);
}

.redemption-detail-page .programme-detail-appbar:not(.scrolled) .header-icon-button.active {
  color: var(--hkmc-primary-button);
}

.programme-detail-skeleton {
  padding-top: 8px;
}

.programme-detail-hero-card {
  position: relative;
  background: #ffffff;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.08);
}

.programme-detail-hero-backdrop {
  position: relative;
  width: 100%;
  /* Match redemption hero (16:9), and stay tall enough that the 4:5 poster
     clears the fixed app bar on notched phones. */
  height: max(56.25vw, calc(96px + env(safe-area-inset-top, 0px) + 24vw));
  min-height: 0;
  overflow: hidden;
  background: #111827;
}

.redemption-detail-page .programme-detail-hero-card {
  margin: 0;
  max-width: none;
}

.redemption-detail-page .programme-detail-hero-backdrop,
.redemption-detail-hero-backdrop {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.programme-detail-hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(2, 37, 62, 0.28), rgba(2, 37, 62, 0.62));
}

.programme-detail-hero-blur-image,
.programme-detail-hero-fallback {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #eef2f7;
}

.programme-detail-hero-blur-image {
  filter: blur(16px);
  transform: scale(1.12);
}

.programme-detail-card-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(96px, 34%) minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  margin-top: 0;
  padding: 0 16px 18px;
  background: #ffffff;
}

.programme-detail-poster-wrap {
  position: relative;
  transform: translateY(-50%);
  margin-bottom: -50%;
  border-radius: 10px;
  overflow: hidden;
  background: #eef2f7;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.programme-detail-poster-image,
.programme-detail-poster-fallback {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #eef2f7;
}

.programme-detail-card-copy {
  min-width: 0;
  padding-top: 16px;
}

.page[data-name="programme-detail"] .programme-detail-hero-backdrop {
  /* App bar, plus the top 60% of the 4:5 poster (height = width × 1.25). */
  height: calc(70px + env(safe-area-inset-top, 0px) + min(48vw, 200px) * 0.75);
}

.page[data-name="programme-detail"] .programme-detail-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 0 16px 20px;
}

.page[data-name="programme-detail"] .programme-detail-poster-wrap {
  position: relative;
  z-index: 2;
  width: min(48vw, 200px);
  margin: 0 auto calc(min(48vw, 200px) * -0.75);
  transform: translateY(-60%);
}

.page[data-name="programme-detail"] .programme-detail-card-copy {
  align-self: stretch;
  width: 100%;
  padding-top: 16px;
}

.programme-detail-card-body h1 {
  margin: 8px 0 0;
  color: var(--hkmc-text);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.programme-detail-badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.programme-detail-badge-row .programme-ticketing-status-badge {
  margin-top: 0;
}

.redemption-detail-category-period-limit {
  display: block;
  width: 100%;
  max-width: none;
  margin: 8px 0 0;
  color: var(--hkmc-secondary-text);
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
  white-space: normal;
}

.programme-detail-category-badge {
  margin: 0;
  padding: 4px 9px;
  font-size: 13px;
  line-height: 1.38;
}

.programme-detail-meta-line {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.programme-detail-meta-line .material-symbols-rounded {
  flex: 0 0 auto;
  margin-top: -1px;
  color: var(--hkmc-primary-button);
  font-size: 17px;
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 20;
}

.page[data-name="programme-detail"] .programme-detail-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0 16px 2px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.page[data-name="programme-detail"] .programme-detail-tabs::-webkit-scrollbar {
  display: none;
}

.page[data-name="programme-detail"] .programme-detail-tab {
  display: inline-flex;
  flex: 0 0 auto;
  width: max-content;
  max-width: none;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-sizing: border-box;
  height: 28px;
  min-height: 28px;
  margin: 0;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  color: #1c1c1e;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.38;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.page[data-name="programme-detail"] .programme-detail-tab .material-symbols-rounded {
  flex: 0 0 auto;
  font-size: 15px;
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 20;
}

.page[data-name="programme-detail"] .programme-detail-tab.is-active {
  border-color: #2a2a2a;
  background: #2a2a2a;
  color: #ffffff;
}

.page[data-name="programme-detail"] .programme-detail-tab-panel[hidden] {
  display: none !important;
}

.page[data-name="programme-detail"] .programme-related-list {
  display: grid;
  gap: 12px;
}

.page[data-name="programme-detail"] .programme-related-list .discovery-redemption-card {
  width: 100%;
  aspect-ratio: auto;
  cursor: pointer;
}

.programme-detail-section {
  margin-top: 20px;
  padding: 0 20px;
}

.programme-detail-section h2 {
  margin: 0 0 12px;
  color: var(--hkmc-text);
  font-size: 18px;
  font-weight: 700;
}

.programme-detail-section p {
  margin: 0;
  color: var(--hkmc-secondary-text);
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-line;
}

.programme-session-list {
  display: grid;
  gap: 12px;
}

.programme-session-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px 12px 12px;
  border: 0;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
  color: var(--hkmc-text);
  text-align: left;
  font: inherit;
}

.programme-session-card-date {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  width: 54px;
  border: 1px solid #dedddb;
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
  text-align: center;
  line-height: 1;
}

.programme-session-card-date-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 4px 4px;
}

.programme-session-card-date-month {
  color: #767575;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
}

.programme-session-card-date-month.is-latin {
  font-size: 10px;
  letter-spacing: 0.08em;
}

.programme-session-card-date-day {
  color: #1a1a1a;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.programme-session-card-date-weekday {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  padding: 3px 2px 4px;
  background: #f8f7f5;
  color: #767575;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.1;
}

.programme-session-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.programme-session-card-info strong {
  color: var(--hkmc-text);
  font-size: 15px;
  font-weight: 700;
}

.programme-session-card-info span {
  color: var(--hkmc-secondary-text);
  font-size: 13px;
}

.programme-cast-list {
  display: flex;
  flex-direction: column;
}

.programme-cast-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 0;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--hkmc-muted-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  box-sizing: border-box;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.programme-cast-list .programme-cast-row:last-child {
  border-bottom: 0;
}

.programme-cast-avatar {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 50%;
  background: #f3f1ee;
}

.programme-cast-avatar-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.programme-cast-avatar .material-symbols-rounded {
  color: #8a8784;
  font-size: 30px;
}

.programme-cast-copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.programme-cast-copy strong {
  color: var(--hkmc-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.programme-cast-copy span {
  color: var(--hkmc-secondary-text);
  font-size: 13px;
  line-height: 1.35;
}

.programme-cast-modal .saved-info-display,
.programme-cast-modal .programme-cast-row {
  width: 100%;
}

.programme-cast-modal .programme-cast-row {
  padding: 0;
  border: 0;
  cursor: default;
}

.programme-cast-modal-description {
  margin-top: 16px;
  white-space: pre-line;
}

.booking-selection-modal.programme-session-modal,
.booking-selection-modal.programme-session-modal:not(.visible) {
  --auth-primary: var(--hkmc-primary-button);
  --auth-primary-active: #01192a;
  --auth-primary-text: var(--hkmc-primary-contrast, #ffffff);
  z-index: 40002;
  max-height: 82vh;
  display: flex !important;
  visibility: visible !important;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateY(105%);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.booking-selection-modal.programme-session-modal.visible {
  display: flex !important;
  visibility: visible !important;
  transform: translateY(0);
  pointer-events: auto;
}

.modal-overlay[data-programme-session-modal-overlay],
.modal-overlay[data-programme-session-modal-overlay]:not(.visible) {
  display: block !important;
  visibility: visible !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.modal-overlay[data-programme-session-modal-overlay].visible {
  opacity: 1;
  pointer-events: auto;
}

.programme-session-modal-scroll {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.programme-session-modal-body {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  padding: 24px 20px 8px;
  justify-content: flex-start;
}

.programme-session-modal-close {
  position: absolute;
  top: 16px;
  right: 12px;
}

.programme-session-modal-body .saved-info-name {
  padding-right: 44px;
  margin-bottom: 6px;
}

.programme-session-modal-body .saved-info-description {
  margin-bottom: 18px;
}

.programme-session-modal-body .icon-info-row:last-child {
  margin-bottom: 0;
}

.programme-session-modal-cta {
  flex: 0 0 auto;
  padding-top: 8px;
}

.programme-session-modal-cta .btn-login {
  margin-top: 0;
}

.programme-session-modal-cta .btn-login .material-symbols-rounded {
  font-size: 18px;
  line-height: 1;
}

.account-membership-hero {
  background: var(--hkmc-surface-lavender-gradient);
  padding: calc(24px + env(safe-area-inset-top, 0px)) 20px 124px;
}


.hkmc-account-page:not(.is-account-loading) [data-account-skeleton] {
  display: none;
}

.account-page-skeleton {
  pointer-events: none;
}

.account-skeleton-block,
.account-skeleton-icon,
.account-skeleton-wallet-layer {
  display: block;
  background: linear-gradient(90deg, #eeeeee 0%, #f7f7f7 50%, #eeeeee 100%);
  background-size: 200% 100%;
  animation: accountSkeletonShimmer 1.35s infinite;
}

@keyframes accountSkeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.account-skeleton-title {
  width: 150px;
  height: 29px;
  border-radius: 10px;
  margin-bottom: 12px;
}

.account-skeleton-line {
  width: 180px;
  height: 14px;
  border-radius: 7px;
}

.account-skeleton-line.wide {
  width: min(330px, 62vw);
}

.account-skeleton-line.short {
  width: 86px;
}

.account-skeleton-icon {
  width: 40px;
  height: 40px;
  border-radius: 16px;
}

.account-skeleton-card-stack {
  --wallet-card-theme: color-mix(in srgb, var(--hkmc-primary-button) 50%, #8c6f49);
}

.account-skeleton-wallet-layer {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 118px;
  border-radius: 24px;
  opacity: 0.45;
}

.account-skeleton-wallet-layer.front {
  top: 100px;
  background: #1b2433;
  opacity: 0.2;
}

.account-skeleton-card {
  min-height: 250px;
}

.account-skeleton-label {
  width: 92px;
  height: 14px;
  border-radius: 7px;
  margin-bottom: 12px;
}

.account-skeleton-points {
  width: 138px;
  height: 54px;
  border-radius: 14px;
  margin: 10px 0 18px;
}

.account-skeleton-bar {
  width: 100%;
  height: 8px;
  border-radius: 99px;
  margin-bottom: 12px;
}

.account-skeleton-menu {
  max-width: 960px;
  margin: 24px 20px 0;
  display: grid;
  gap: 12px;
}

.account-skeleton-row {
  height: 64px;
  border-radius: 18px;
}

.account-membership-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.account-membership-header h1 {
  margin: 0;
  color: var(--hkmc-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.account-membership-header .hkmc-blank-page-kicker {
  max-width: 520px;
  margin: 8px 0 0;
  line-height: 1.5;
}

.account-membership-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.account-icon-button,
.account-inline-icon-button,
.account-wallet-copy-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.account-icon-button {
  width: 40px;
  height: 40px;
  border-radius: 16px;
  color: var(--hkmc-text);
}

.account-icon-button:active {
  background: rgba(0, 0, 0, 0.06);
}

.account-icon-button .material-symbols-rounded {
  font-size: 25px;
}

.account-points-card-stack {
  --wallet-card-theme: #8c6f49;
  position: relative;
  isolation: isolate;
  max-width: 960px;
  margin: -100px 20px 24px;
  padding-top: 52px;
}

.account-membership-tier-rookie {
  --wallet-card-theme: #184440;
}

.account-membership-tier-gold {
  --wallet-card-theme: color-mix(in srgb, var(--hkmc-primary-button) 50%, #8c6f49);
}

.account-wallet-card-layer {
  position: absolute;
  left: 0;
  right: 0;
  height: 118px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.account-wallet-card-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 72% 26%, rgba(255, 255, 255, 0.18), transparent 34%), linear-gradient(115deg, transparent 0%, transparent 54%, rgba(255, 255, 255, 0.1) 55%, transparent 76%);
  pointer-events: none;
}

.account-wallet-card-layer-back {
  top: 0;
  z-index: 0;
  box-sizing: border-box;
  padding: 14px 24px 0;
  background: var(--wallet-card-theme);
  cursor: pointer;
}

.account-wallet-card-layer-front {
  top: 100px;
  z-index: 1;
  background: #1b2433;
}

.account-wallet-membership-number {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.4px;
}

.account-wallet-copy-button {
  width: 24px;
  height: 24px;
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.78);
}

.account-wallet-copy-button .material-symbols-rounded {
  font-size: 16px;
}

.account-membership-card {
  position: relative;
  z-index: 2;
  padding: 22px 22px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.account-shortcut-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 20px 24px;
  padding: 18px 20px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: var(--hkmc-text);
}

.account-shortcut-card:active {
  background: #f7f7f7;
}

.account-shortcut-card > .material-symbols-rounded:first-child {
  font-size: 24px;
  color: var(--hkmc-text);
}

.account-shortcut-card-label {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
}

.account-shortcut-card > .material-symbols-rounded:last-child {
  font-size: 20px;
  color: var(--hkmc-secondary-text);
}

.account-points-label-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
  color: #6b7280;
  font-size: 14px;
}

.account-inline-icon-button {
  width: 22px;
  height: 22px;
  border-radius: 16px;
  color: #a3a3a3;
}

.account-inline-icon-button .material-symbols-rounded {
  font-size: 18px;
}

.account-membership-tier-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 600;
}

.account-membership-tier-row [data-account-tier-name] {
  color: rgb(2, 37, 62);
}

.account-manage-membership-link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
}

.account-manage-membership-link .material-symbols-rounded {
  font-size: 18px;
}

.account-tier-medal {
  width: 26px;
  height: 26px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--account-tier-color, var(--hkmc-primary-button)) 12%, #ffffff);
  color: var(--account-tier-color, var(--hkmc-primary-button));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.account-tier-medal img,
.account-next-tier-circle img,
.tier-progress-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background-repeat: no-repeat;
}

.account-tier-medal .material-symbols-rounded {
  font-size: 20px;
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

.account-membership-tier-row > .account-tier-medal,
.account-membership-modal-tier-row .account-tier-medal,
body > [data-account-info-modal] .account-tier-medal,
body > [data-discovery-qr-modal] .account-tier-medal {
  width: 38px;
  height: 38px;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.account-membership-tier-row > [data-account-tier-icon] {
  cursor: pointer;
}

.account-membership-tier-row > [data-account-tier-icon]:active {
  transform: scale(0.92);
}

.account-membership-tier-row > .account-tier-medal img,
.account-membership-modal-tier-row .account-tier-medal img,
body > [data-account-info-modal] .account-tier-medal img,
body > [data-discovery-qr-modal] .account-tier-medal img {
  width: 38px;
  height: 38px;
}

.account-card-divider {
  height: 1px;
  margin: 0 0 14px;
  background: #f0f0f0;
}

.account-points-label {
  margin-bottom: 5px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 400;
}

.account-points-value-wrap {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  overflow: visible;
  margin-bottom: 9px;
  color: #1f2937;
}

.account-points-coin {
  width: 20px;
  height: 20px;
  margin: 0 5px 7px 0;
  border-radius: 50%;
  background: var(--hkmc-primary-button);
  color: var(--hkmc-primary-contrast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.account-points-value {
  color: #1f2937;
  font-size: 32px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.account-confetti-layer {
  position: absolute;
  left: 50%;
  top: 54%;
  z-index: 2;
  width: 1px;
  height: 1px;
  pointer-events: none;
  overflow: visible;
}

.account-confetti-piece {
  position: absolute;
  left: 0;
  top: 0;
  width: 7px;
  height: 12px;
  border-radius: 2px;
  background: var(--confetti-color, var(--hkmc-primary-button));
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4) rotate(0deg);
  animation: accountConfettiBurst 1.15s ease-out forwards;
}

.account-confetti-piece.is-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

@keyframes accountConfettiBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.35) rotate(0deg);
  }
  14% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--confetti-x, 0px)), calc(-50% + var(--confetti-y, -72px))) scale(1) rotate(var(--confetti-rotate, 240deg));
  }
}

.account-tier-progress-wrap {
  position: relative;
  display: block;
  margin-top: 32px;
}

.account-tier-progress-bar {
  flex: 1;
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: #e4e7ec;
}

.account-tier-progress-fill {
  width: 0;
  height: 100%;
  border-radius: 99px;
  background: var(--account-tier-color, var(--hkmc-primary-button));
  transition: width 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.account-current-tier-circle {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  margin-right: -1px;
  border: 0;
  border-radius: 50%;
  box-sizing: border-box;
  background: #f3f4f6;
  color: var(--account-tier-color, var(--hkmc-primary-button));
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  overflow: hidden;
}

.account-current-tier-circle img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  display: block;
}

.account-current-tier-circle .material-symbols-rounded {
  color: inherit;
  font-size: 23px;
}

.account-next-tier-circle {
  width: 48px;
  height: 48px;
  margin-left: -1px;
  border: 2px solid #bcbec0;
  border-radius: 50%;
  box-sizing: border-box;
  background: #ffffff;
  color: var(--hkmc-primary-button);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: visible;
}

.account-tier-progress-wrap > .account-next-tier-circle {
  position: absolute;
  right: 0;
  bottom: 8px;
  z-index: 2;
  width: 44px;
  height: auto;
  margin: 0;
  padding: 3px;
  border: 0;
  border-radius: 7px;
  box-sizing: border-box;
  background: #ffffff;
  box-shadow: none;
  filter: drop-shadow(0 2px 3px rgba(15, 23, 42, 0.16));
  overflow: visible;
  flex-basis: auto;
}

.account-tier-progress-wrap > .account-next-tier-circle::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: -4px;
  width: 0;
  height: 0;
  background: transparent;
  border-style: solid;
  border-width: 5px 4px 0;
  border-color: #ffffff transparent transparent;
  border-radius: 0;
  transform: none;
  box-shadow: none;
}

.account-tier-progress-wrap > .account-next-tier-circle img {
  width: 100%;
  height: auto;
  aspect-ratio: 1024 / 607;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.account-next-tier-circle img {
  width: 72%;
  height: 72%;
}

.tier-progress-circle {
  overflow: hidden;
}

.tier-progress-circle img {
  width: 64% !important;
  height: 64% !important;
  object-fit: contain;
}

.account-next-tier-circle .material-symbols-rounded {
  font-size: 23px;
}

.account-tier-progress-label,
.account-points-expiry-note {
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.5;
}

.account-tier-progress-label {
  margin-top: 4px;
}

.account-points-expiry-note {
  margin-top: 8px;
}

.account-shortcut-card {
  max-width: 960px;
  margin: 0 20px 24px;
  min-height: 54px;
  box-sizing: border-box;
  border-radius: 16px;
  background: #ffffff;
  color: var(--hkmc-text);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.account-shortcut-card .material-symbols-rounded {
  font-size: 20px;
  color: var(--hkmc-primary-button);
}

.account-shortcut-card-label {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
}

.account-paid-membership-shortcut {
  max-width: none;
  margin: 0 0 18px;
  align-items: center;
  gap: 12px;
  min-height: 0;
  padding: 14px 16px;
  background: #e8fbf9;
  color: #127068;
  box-shadow: none;
}

.account-paid-membership-copy {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 6px;
  text-align: left;
  font-size: var(--hkmc-text-body);
  font-weight: 400;
  line-height: 1.5;
  color: #127068;
}

.account-paid-membership-copy strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #127068;
  font-weight: 700;
}

.account-paid-membership-copy strong .material-symbols-rounded {
  color: #127068;
  font-size: 20px;
  line-height: 1;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.account-paid-membership-shortcut > .material-symbols-rounded:last-child {
  color: #127068;
  font-size: 20px;
}

.account-paid-membership-shortcut[hidden] {
  display: none;
}

.account-paid-membership-shortcut:active {
  transform: scale(0.98);
}

.account-transaction-section,
.account-faq-section,
.account-menu-section {
  max-width: 960px;
  margin: 0 20px;
  padding: 0 0 20px;
}

.account-menu-section {
  padding-bottom: 0;
}

.account-help-button-container {
  max-width: 960px;
  margin: 24px 20px 0;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.account-help-button-container .account-help-button {
  width: 100%;
  background: var(--hkmc-primary-button);
  color: var(--hkmc-primary-contrast);
  border-radius: 16px;
  font-size: var(--hkmc-text-button);
  font-weight: 500;
}

.account-help-button-container .account-help-button:active,
.account-help-button-container .account-logout-button:active {
  transform: scale(0.98);
}

.account-help-button-container .account-logout-button {
  width: 100%;
  border: 0;
  border-radius: 16px;
  background: color-mix(in srgb, var(--hkmc-primary-button) 10%, #ffffff);
  color: var(--hkmc-primary-button);
  font-size: var(--hkmc-text-button);
  font-weight: 500;
}

.account-help-button-container .account-logout-button:active {
  background: color-mix(in srgb, var(--hkmc-primary-button) 16%, #ffffff);
}

.account-help-button-container .account-app-version {
  margin: 0;
  text-align: center;
}

.account-menu-category {
  margin-top: 20px;
}

.account-menu-category:first-child {
  margin-top: 0;
}

.account-menu-category-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--hkmc-secondary-text);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 0 0 10px;
}

.account-menu-item[hidden] {
  display: none !important;
}

.account-menu-item {
  display: flex;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--hkmc-muted-line);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.account-menu-item:last-child {
  border-bottom: none;
}

.account-menu-item:active {
  background: rgba(0, 0, 0, 0.03);
}

.account-menu-item-icon-wrapper {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--hkmc-primary-button) 10%, #ffffff);
  color: var(--hkmc-primary-button);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 12px;
}

.account-menu-item-icon-wrapper .material-symbols-rounded {
  font-size: 20px;
}

.account-menu-item-content {
  flex: 1;
  min-width: 0;
}

.account-menu-item-text {
  color: var(--hkmc-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.account-menu-item-secondary {
  color: var(--hkmc-secondary-text);
  font-size: 13px;
  margin-top: 3px;
  line-height: 1.35;
}

.account-menu-item-arrow {
  flex-shrink: 0;
  color: var(--hkmc-secondary-text);
  display: flex;
  align-items: center;
}

.account-menu-item-arrow .material-symbols-rounded {
  font-size: 20px;
}

.account-section-title {
  color: #000000;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.account-transaction-section .account-section-title {
  margin-bottom: 14px;
}

.account-faq-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}

.account-faq-toggle-button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--hkmc-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.account-faq-toggle-button .material-symbols-rounded {
  font-size: 24px;
  transition: transform 0.2s ease;
}

.account-faq-toggle-button.expanded .material-symbols-rounded {
  transform: rotate(180deg);
}

.account-faq-content {
  display: none;
}

.account-faq-content.expanded {
  display: block;
}

.account-faq-item {
  padding: 14px 0;
  border-top: 1px solid var(--hkmc-muted-line);
}

.account-faq-question {
  color: var(--hkmc-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.account-faq-answer {
  margin-top: 8px;
  color: var(--hkmc-secondary-text);
  font-size: 14px;
  line-height: 1.55;
}

.account-transaction-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.account-transaction-tab {
  width: 110px;
  height: 40px;
  border: 0;
  border-radius: 99px;
  padding: 0;
  background: color-mix(in srgb, var(--hkmc-primary-button) 8%, #ffffff);
  color: var(--hkmc-text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.account-transaction-tab.active {
  background: var(--hkmc-primary-button);
  color: var(--hkmc-primary-contrast);
}

.account-transaction-list {
  display: flex;
  flex-direction: column;
}

.account-transaction-item {
  width: 100%;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
  background: transparent;
  cursor: pointer;
}

.account-transaction-item:last-child {
  border-bottom: 0;
}

.account-transaction-item.is-hidden {
  display: none;
}

.account-transaction-left {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.account-transaction-desc {
  color: #000000;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.account-transaction-date {
  color: #9ca3af;
  font-size: 12px;
}

.account-transaction-points {
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 700;
}

.account-transaction-points.earn {
  color: var(--hkmc-primary-button);
}

.account-transaction-points.redeem {
  color: #6b7280;
}

.account-transaction-empty {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 48px 20px 34px;
  color: #757575;
  text-align: center;
  font-size: 13px;
}

.account-transaction-empty.show {
  display: flex;
}

.account-txn-skeleton {
  padding: 8px 0;
}

.account-txn-skeleton-item {
  padding: 14px 0;
}

.account-txn-skeleton-item .account-skeleton-block {
  height: 44px;
  border-radius: 10px;
}

.account-empty-illustration {
  width: 120px;
  height: auto;
  margin-bottom: 16px;
}

.points-history-page,
.points-history-page-content,
.terms-page,
.terms-page-content {
  background: #f9fbff;
}

.points-history-page-content,
.terms-page-content {
  padding: calc(116px + env(safe-area-inset-top, 0px)) 0 calc(24px + env(safe-area-inset-bottom, 0px));
}

.discovery-page-content {
  background: #f9fbff;
  padding: calc(98px + env(safe-area-inset-top, 0px)) 0 calc(102px + env(safe-area-inset-bottom, 0px));
}

.discovery-appbar.hkmc-appbar {
  z-index: 400;
}

.discovery-appbar .discovery-toolbar {
  min-height: 42px;
  padding-left: 8px;
  padding-right: 8px;
  justify-content: center;
}

.discovery-toolbar-title {
  position: absolute;
  left: 50%;
  width: max-content;
  transform: translateX(-50%);
  text-align: center;
}

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

.discovery-tab-panel {
  display: none;
  padding: 0;
}

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

.discovery-voucher-filter-row {
  padding-top: 12px;
}

.discovery-tab-panel [data-discovery-view-all-category] {
  padding-right: 20px;
}

.discovery-empty {
  min-height: 280px;
}

.discovery-shortcut-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  box-sizing: border-box;
  margin: 20px 20px 0;
  padding: 8px 12px 14px;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(to right, #e5e5ef, #f0e4f0);
}

.discovery-shortcut-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: linear-gradient(to right, #d4e6ec, #e0e5ee);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000);
  mask-image: linear-gradient(to bottom, transparent, #000);
  pointer-events: none;
}

.discovery-shortcut-card > * {
  position: relative;
  z-index: 1;
}

.discovery-shortcut-card .home-membership-card {
  padding: 10px 6px 12px;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
}

.discovery-shortcut-card .home-membership-card:active {
  background: rgba(255, 255, 255, 0.35);
}

.discovery-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
}

.discovery-shortcut-item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  width: 100%;
  max-width: 76px;
  min-width: 0;
  aspect-ratio: 1;
  border: 0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: none;
  color: var(--hkmc-text);
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}

.discovery-shortcut-item:active {
  background: #f7f7f7;
  transform: scale(0.97);
}

.discovery-shortcut-item .material-symbols-rounded {
  font-size: 23px;
  color: var(--hkmc-text);
}

.discovery-shortcut-label {
  color: var(--hkmc-text);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}


.hkmc-discovery-page:not(.is-discovery-loading) [data-discovery-skeleton] {
  display: none;
}

.discovery-skeleton {
  padding: 20px;
}

.discovery-skeleton-card {
  height: 72px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.discovery-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.discovery-skeleton-grid-item {
  aspect-ratio: 1;
  border-radius: 20px;
}

.discovery-skeleton-section-title {
  width: 30%;
  height: 20px;
  margin-bottom: 12px;
  border-radius: 6px;
}

.discovery-skeleton-row {
  display: flex;
  gap: 14px;
  overflow: hidden;
}

.discovery-skeleton-row-item {
  flex: 0 0 160px;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
}

.points-history-appbar {
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
  border-bottom: 0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.points-history-appbar::before,
.points-history-appbar::after,
.points-history-appbar .hkmc-toolbar::before,
.points-history-appbar .hkmc-toolbar::after {
  display: none !important;
}

.points-history-appbar .hkmc-toolbar {
  padding-left: 8px;
  padding-right: 8px;
}

.points-history-top-tabs.account-transaction-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border-bottom: 0;
  background: #ffffff;
}

.terms-top-tabs.account-transaction-tabs {
  grid-template-columns: repeat(2, 1fr);
}

.points-history-top-tabs.account-transaction-tabs.discovery-tabs {
  grid-template-columns: repeat(2, 1fr);
  z-index: 3;
  overflow: visible;
  pointer-events: auto;
}

.points-history-top-tabs .account-transaction-tab {
  position: relative;
  z-index: 2;
  width: auto;
  height: 48px;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  color: #607682;
  font-size: 15px;
  font-weight: 500;
  pointer-events: auto;
  touch-action: manipulation;
  cursor: pointer;
}

.points-history-top-tabs .account-transaction-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: #e6edef;
}

.points-history-top-tabs .account-transaction-tab.active {
  background: transparent;
  color: var(--hkmc-primary-button);
  font-weight: 600;
}

.points-history-top-tabs .account-transaction-tab.active::after {
  background: var(--hkmc-primary-button);
}

.points-history-top-tabs .account-transaction-tab .ripple-wave,
.points-history-top-tabs .account-transaction-tab .touch-ripple {
  top: auto !important;
  bottom: 0 !important;
  z-index: -1;
  max-height: 48px;
}

.points-history-transaction-section {
  max-width: none;
  margin: 0;
  padding: 0;
}

.points-history-transaction-section .account-transaction-empty {
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.points-history-transaction-section .account-transaction-list {
  padding: 0 20px;
  background: #ffffff;
  box-sizing: border-box;
}

.points-history-transaction-section .account-transaction-item {
  gap: 0;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
  background: #ffffff;
}

.points-history-transaction-section .account-transaction-left {
  flex: 1;
  min-width: 0;
  gap: 0;
}

.points-history-transaction-section .account-transaction-desc {
  color: #1c1c1c;
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
}

.points-history-transaction-section .account-transaction-date {
  margin-top: 2px;
  color: #9ca3af;
  font-size: 12px;
}

.points-history-transaction-section .account-transaction-points {
  margin-left: 12px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.points-history-transaction-section .account-transaction-item:active {
  background: #f8fafc;
}

.terms-content-section {
  padding: 20px;
  background: #ffffff;
}

.terms-document {
  display: none;
  max-width: 900px;
  margin: 0 auto;
  color: var(--hkmc-text);
  font-size: 15px;
  line-height: 1.75;
}

.terms-document.active {
  display: block;
}

.terms-document-content h1,
.terms-document-content h2,
.terms-document-content h3 {
  margin: 20px 0 10px;
  color: var(--hkmc-text);
  line-height: 1.35;
}

.terms-document-content p {
  margin: 0 0 14px;
}

.terms-document-content ul,
.terms-document-content ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.terms-document-content a {
  color: var(--hkmc-primary-button);
  font-weight: 600;
}

.points-transaction-modal {
  z-index: 30001;
}

.points-transaction-detail-rows {
  width: 100%;
  margin-top: 12px;
}

.points-transaction-detail-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  color: var(--hkmc-text);
  font-size: 16px;
}

.points-transaction-detail-row:last-child {
  border-bottom: 0;
}

.points-transaction-detail-row span {
  flex: 0 0 auto;
  color: var(--hkmc-secondary-text);
}

.points-transaction-detail-row strong {
  min-width: 0;
  text-align: right;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.points-transaction-copy-value {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.points-transaction-copy-button {
  flex: 0 0 auto;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--hkmc-primary-button);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
}

.points-transaction-copy-button .material-symbols-rounded {
  font-size: 18px;
}

.points-transaction-copy-alert {
  top: 70px;
  bottom: auto;
}

.manage-membership-page > .page-content.manage-membership-page-content {
  height: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  touch-action: pan-y;
  overscroll-behavior-y: auto;
}

.manage-membership-page-content {
  min-height: 100%;
  padding: 0 0 calc(168px + env(safe-area-inset-bottom, 0px));
  background: #ffffff;
}

.manage-membership-page-content.is-paid-member {
  padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px));
}

.manage-membership-appbar [data-manage-help] {
  margin-left: auto;
}

.manage-membership-page-content .manage-membership-hero {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: calc(96px + env(safe-area-inset-top, 0px)) 28px 56px;
  background: #ffffff;
  color: var(--hkmc-membership-hero-color, #ffffff);
}

.manage-membership-page-content .manage-membership-hero-media {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(56px + env(safe-area-inset-top, 0px));
  bottom: 0;
  overflow: hidden;
  background: #eef2f7;
}

.manage-membership-page-content .manage-membership-hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.manage-membership-page-content .manage-membership-hero-media::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  height: 24px;
  pointer-events: none;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.manage-membership-page-content .manage-membership-hero-content,
.manage-membership-page-content .manage-membership-brand,
.manage-membership-page-content .manage-membership-hero h1,
.manage-membership-page-content .manage-membership-hero p {
  color: var(--hkmc-membership-hero-color, #ffffff);
}

.manage-membership-page-content .manage-membership-hero p {
  opacity: 1;
}

.manage-membership-page .manage-membership-appbar:not(.scrolled) {
  background: transparent !important;
  box-shadow: none !important;
}

.manage-membership-page .manage-membership-appbar.scrolled {
  background: #ffffff !important;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05) !important;
}

.manage-membership-page .manage-membership-appbar:not(.scrolled) .header-icon-button,
.manage-membership-page .manage-membership-appbar.scrolled .header-icon-button {
  color: var(--hkmc-text, #1c1c1c);
}

.manage-membership-page .manage-membership-appbar:not(.scrolled) .header-icon-button:active,
.manage-membership-page .manage-membership-appbar.scrolled .header-icon-button:active {
  background: #f2f2f2;
}

.manage-membership-hero {
  position: relative;
  overflow: hidden;
  padding: calc(28px + env(safe-area-inset-top, 0px)) 28px 28px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.12)), var(--hkmc-upgrade-bg-image, url('/assets/img/upgrade_background_mq.png')) center / cover no-repeat;
  color: #ffffff;
}

.manage-membership-hero::after {
  content: none;
}

.manage-membership-back {
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  margin: 0 0 10px -10px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
}

.manage-membership-back .material-symbols-rounded {
  font-size: 24px;
  pointer-events: none;
}

.manage-membership-hero-content {
  position: relative;
  z-index: 1;
}

.manage-membership-brand {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.manage-membership-hero h1 {
  margin: 14px 0 8px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 600;
}

.manage-membership-hero p {
  margin: 0;
  max-width: 360px;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.92;
}

.manage-membership-summary {
  margin: 22px 28px 4px;
}

.manage-points-grace-banner {
  margin: 12px 20px 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--hkmc-primary-button) 10%, #ffffff);
  border: 1px solid color-mix(in srgb, var(--hkmc-primary-button) 28%, #ffffff);
  color: var(--hkmc-text);
}

.manage-points-grace-banner p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.account-points-expiry-note.is-grace-warning {
  color: var(--hkmc-primary-button);
  font-weight: 500;
}

.manage-summary-row {
  padding: 14px 0;
}

.manage-summary-row span {
  display: block;
  margin-bottom: 8px;
  color: #000000;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.manage-summary-row strong {
  display: block;
  color: #6b7280;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}

.welcome-page.hkmc-inner-page,
.welcome-page.hkmc-inner-page .welcome-page-content,
.welcome-page,
.welcome-page-content {
  background: #ffffff;
  border: 0;
  box-shadow: none;
  overflow-x: hidden;
  overflow-y: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
}

.welcome-page.is-welcome-final .welcome-page-content {
  overflow-y: hidden;
}

.welcome-page-content {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  max-width: 100%;
  padding:
    calc(16px + env(safe-area-inset-top, 0px))
    24px
    calc(24px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

/* The fixed tab bar is 78px. When it stays on screen it covers the language
   control and the next button, which only had 24px of clearance. */
body:has(.hkmc-bottom-nav:not(.is-hidden)):has(.welcome-page.page-current) .welcome-page-content {
  padding-bottom: calc(102px + env(safe-area-inset-bottom, 0px));
}

/* Keep status-bar overlay seamless with welcome (avoids #f9fbff inner-page seam). */
body:has(.welcome-page.page-current)::before,
body:has(.welcome-page.page-previous)::before {
  background: #ffffff;
  border: 0;
  box-shadow: none;
}

.welcome-top-bar {
  position: relative;
  flex: 0 0 auto;
  align-self: stretch;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 48px;
  margin-bottom: 4px;
  padding-right: 64px;
}

.welcome-top-logo {
  height: 30px;
  width: auto;
  max-width: min(120px, 40.5vw);
  object-fit: contain;
  display: block;
  flex: 0 1 auto;
}

.welcome-skip {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 2;
  border: 0;
  margin: 0;
  padding: 8px 0;
  background: transparent;
  color: var(--hkmc-secondary-text);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
  cursor: pointer;
}

.welcome-skip:active {
  opacity: 0.7;
}

.welcome-skip[hidden] {
  display: none !important;
}

.welcome-stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  width: 100%;
  max-width: min(420px, 100%);
  margin: 0 auto;
  overflow: hidden;
}

.welcome-language-skeleton {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 8px 24px;
  box-sizing: border-box;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.welcome-language-skeleton[hidden] {
  display: none !important;
}

.welcome-page.is-welcome-language-loading .welcome-language-skeleton {
  opacity: 1;
  pointer-events: auto;
}

.welcome-page.is-welcome-language-loading .welcome-stage > [data-welcome-slide] {
  opacity: 0 !important;
  transform: none !important;
  pointer-events: none !important;
  transition: opacity 0.2s ease;
}

.welcome-language-skeleton-illustration {
  width: min(56vw, 220px);
  aspect-ratio: 1;
  border-radius: 28px;
  margin-bottom: 28px;
}

.welcome-language-skeleton-title {
  width: min(58%, 220px);
  height: 24px;
  border-radius: 12px;
  margin-bottom: 14px;
}

.welcome-language-skeleton-line {
  width: min(78%, 300px);
  height: 14px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.welcome-language-skeleton-line.short {
  width: min(54%, 210px);
  margin-bottom: 0;
}

.welcome-page.is-welcome-final .welcome-stage {
  max-width: none;
  align-items: stretch;
  justify-content: flex-start;
}

.welcome-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 8px 24px;
  opacity: 0;
  transform: translateX(28px);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.welcome-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.welcome-slide-membership {
  align-items: stretch;
  justify-content: flex-start;
  text-align: left;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.welcome-membership-panel {
  width: calc(100% + 48px);
  margin: 0 -24px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.welcome-page.is-welcome-final .welcome-membership-hero.manage-membership-hero,
.welcome-membership-hero.manage-membership-hero {
  background: #ffffff;
  background-image: none;
  color: var(--hkmc-text);
  padding: 16px 28px 12px;
  flex: 0 0 auto;
}

.welcome-page.is-welcome-final .welcome-membership-hero.manage-membership-hero h1 {
  margin: 8px 0 6px;
}

.welcome-membership-hero.manage-membership-hero .manage-membership-brand,
.welcome-membership-hero.manage-membership-hero h1 {
  color: var(--hkmc-text);
}

.welcome-membership-hero.manage-membership-hero p {
  color: var(--hkmc-secondary-text);
  opacity: 1;
}

.welcome-membership-tabs-block {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.welcome-page.is-welcome-final .welcome-slide-membership {
  overflow: hidden;
}

.welcome-page.is-welcome-final .welcome-membership-panel {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.welcome-membership-top-tabs.account-transaction-tabs {
  flex: 0 0 auto;
  position: relative;
  top: auto;
  z-index: 2;
  background: #ffffff;
}

.welcome-membership-tab-panels {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.welcome-membership-tab-panel[hidden] {
  display: none !important;
}

.welcome-membership-tab-panel.is-active {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.welcome-membership-benefits.manage-membership-benefits {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: 12px;
}

.welcome-tier-compare {
  flex: 1 1 auto;
  min-height: 0;
  padding: 4px 0 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.welcome-tier-compare-scroll {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y;
  padding: 0 12px 8px 16px;
  scroll-padding-inline-end: 48px;
  box-sizing: border-box;
}

.welcome-tier-compare-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
}

.welcome-tier-compare-table th,
.welcome-tier-compare-table td {
  padding: 12px 8px;
  vertical-align: middle;
  text-align: center;
  border-bottom: 1px dashed #e6edef;
  color: var(--hkmc-text);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 500;
  width: 96px;
  min-width: 96px;
  max-width: 120px;
  background: #ffffff;
}

.welcome-tier-compare-table th.welcome-tier-compare-spacer,
.welcome-tier-compare-table td.welcome-tier-compare-spacer {
  width: 36px;
  min-width: 36px;
  max-width: 36px;
  padding: 0;
  border-bottom: 0;
  background: transparent;
  pointer-events: none;
}

.welcome-tier-compare-table thead th {
  padding-top: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e6edef;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  position: sticky;
  top: 0;
  z-index: 2;
  background: #ffffff;
}

.welcome-tier-compare-table thead th.welcome-tier-compare-spacer {
  border-bottom: 0;
  background: transparent;
}

.welcome-tier-compare-feature,
.welcome-tier-compare-table tbody th {
  position: sticky;
  left: 0;
  z-index: 3;
  width: 104px;
  min-width: 104px;
  max-width: 112px;
  text-align: left !important;
  color: var(--hkmc-secondary-text) !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  background: #ffffff;
  box-shadow: 4px 0 8px -6px rgba(16, 24, 40, 0.18);
}

.welcome-tier-compare-table thead .welcome-tier-compare-feature {
  z-index: 4;
  top: 0;
}

.welcome-tier-compare-tier {
  width: 100px;
  min-width: 100px;
  max-width: 120px;
}

.welcome-tier-compare-tier span {
  display: block;
  margin-top: 6px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.welcome-tier-compare-face {
  width: 42px;
  height: 28px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.welcome-tier-compare-tier-basic {
  color: #607682;
}

.welcome-tier-compare-tier-silver {
  color: #5b6578;
}

.welcome-tier-compare-tier-gold {
  color: #9a6b16;
}

.welcome-tier-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--hkmc-primary-button);
}

.welcome-tier-check .material-symbols-rounded {
  font-size: 20px;
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

.welcome-tier-dash {
  color: #b0b8bf;
  font-size: 14px;
  font-weight: 500;
}

.welcome-tier-text {
  display: inline-block;
  max-width: 100%;
  color: var(--hkmc-text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.welcome-tier-fee {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  max-width: 100%;
}

.welcome-tier-fee-until {
  display: block;
  color: var(--hkmc-secondary-text);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.welcome-tier-exclusive {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 96px;
  vertical-align: middle;
}

.welcome-tier-exclusive-faces.discovery-redemption-tier-faces {
  margin-right: 0;
}

.welcome-tier-exclusive .discovery-redemption-tier-face {
  width: 30px;
  height: 17px;
}

.welcome-tier-exclusive .discovery-redemption-tier-face + .discovery-redemption-tier-face {
  margin-left: -12px;
}

.welcome-tier-exclusive-prefix,
.welcome-tier-exclusive-name {
  color: var(--hkmc-text);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.welcome-tier-exclusive-face {
  width: 36px;
  height: 24px;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
}

.welcome-tier-compare-note {
  display: none;
  margin: 10px 0 0;
  color: var(--hkmc-secondary-text);
  font-size: 11px;
  line-height: 1.5;
  text-align: left;
}

.welcome-footer.is-final-step .welcome-tier-compare-note {
  display: block;
}

.welcome-tier-compare-note[hidden] {
  display: none !important;
}

.welcome-tier-compare-note a {
  color: var(--hkmc-primary-button);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.welcome-illustration-wrap {
  width: min(72vw, 280px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
}

.welcome-illustration {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.welcome-title {
  margin: 0 0 12px;
  color: var(--hkmc-text);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.welcome-subtitle {
  margin: 0;
  max-width: 320px;
  color: var(--hkmc-secondary-text);
  font-size: 15px;
  line-height: 1.55;
}

.welcome-footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  margin-top: 8px;
  width: 100%;
  box-sizing: border-box;
}

.welcome-footer.is-language-step {
  align-items: flex-end;
  justify-content: flex-start;
  min-height: 56px;
  padding-right: 68px;
}

.welcome-footer.is-final-step {
  display: block;
  min-height: 0;
  margin-top: 12px;
  padding: 0;
}

.welcome-language {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  margin: 0;
}

.welcome-language.form-group {
  margin-bottom: 0;
}

.welcome-language[hidden],
.welcome-dots[hidden],
.welcome-next[hidden],
.welcome-start-button[hidden] {
  display: none !important;
}

.welcome-footer .welcome-start-button.btn-login {
  width: 100%;
  margin-top: 0;
  background: var(--hkmc-primary-button);
  color: var(--hkmc-primary-contrast, #ffffff);
}

.welcome-footer .welcome-start-button.btn-login:active {
  background: color-mix(in srgb, var(--hkmc-primary-button) 86%, #000000);
}

.welcome-language .hkmc-text-label {
  margin-bottom: 8px;
}

.welcome-language-trigger {
  width: 100%;
  height: 48px;
  min-height: 48px;
  box-sizing: border-box;
  appearance: none;
  border: 1px solid #E0E0E0;
  border-radius: 14px;
  background: #ffffff;
  color: var(--hkmc-text);
  font: inherit;
  font-size: var(--hkmc-text-input);
  padding: 12px 44px 12px 14px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.welcome-language-trigger.is-placeholder,
.welcome-language-trigger.is-placeholder [data-welcome-language-label] {
  color: #9aa6b2;
}

.welcome-language-trigger.active,
.welcome-language-trigger:active {
  border-color: var(--hkmc-primary-button);
  background: color-mix(in srgb, var(--hkmc-primary-button) 4%, #ffffff);
}

.welcome-language.is-error .welcome-language-trigger {
  border-color: #ef4444;
}

.welcome-language-trigger-value,
.welcome-language-option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.welcome-language-flag {
  flex: 0 0 auto;
  display: block;
  width: 24px;
  height: 18px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.welcome-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.welcome-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: var(--hkmc-line);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.welcome-dot.is-active {
  background: var(--hkmc-primary-button);
  transform: scale(1.15);
}

.welcome-next {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: var(--hkmc-primary-button);
  color: var(--hkmc-primary-contrast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, opacity 0.2s ease;
}

.welcome-next:active {
  transform: scale(0.96);
}

.welcome-next.is-disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.welcome-next.is-disabled:active {
  transform: none;
}

.welcome-next .material-symbols-rounded {
  font-size: 26px;
}

.manage-membership-benefits {
  display: grid;
  gap: 22px;
  padding: 20px 28px;
}

.manage-benefit-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  align-items: center;
}

.manage-benefit-illustration {
  width: 60px;
  height: 60px;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  object-position: center;
  display: block;
  box-shadow: none;
}

.manage-benefit-illustration .material-symbols-rounded {
  font-size: 30px;
}

.manage-benefit-card h3 {
  margin: 0 0 5px;
  color: #202124;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.manage-benefit-card p {
  margin: 0;
  color: #50545c;
  font-size: 13px;
  line-height: 1.45;
}

.manage-membership-faq {
  margin: 20px 28px 0;
  padding-bottom: 120px;
  border-top: 1px solid #eef0f2;
}

.manage-membership-faq .account-faq-header {
  padding: 18px 0 16px;
}

.manage-membership-faq .account-section-title {
  color: #111827;
  font-size: 15px;
  font-weight: 600;
}

.manage-membership-faq .account-faq-question {
  color: var(--hkmc-text);
  font-size: var(--hkmc-text-body);
  font-weight: 600;
  line-height: 1.4;
}

.manage-membership-faq .account-faq-answer {
  color: var(--hkmc-secondary-text);
  font-size: var(--hkmc-text-body);
  line-height: 1.55;
}

.manage-membership-faq .account-faq-toggle-button.manage-faq-toggle {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--hkmc-primary-button) 8%, #ffffff);
  color: var(--hkmc-primary-button);
  display: flex;
  align-items: center;
  justify-content: center;
}

.manage-membership-faq .manage-faq-toggle .material-symbols-rounded {
  font-size: 22px;
  transition: transform 0.3s ease;
}

.manage-membership-faq .manage-faq-toggle.expanded .material-symbols-rounded {
  transform: rotate(180deg);
}

.manage-faq-content {
  border-bottom: 1px solid #eef0f2;
  padding-bottom: 14px;
}

.manage-membership-tnc {
  padding: 22px 28px 28px;
  color: #6b7280;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
}

.manage-membership-tnc a {
  color: var(--hkmc-primary-button);
  font-weight: 700;
}

.home-paid-prompt {
  position: fixed;
  inset: 0;
  z-index: 40020;
  display: none;
  background: #ffffff;
  overflow: hidden;
}

.home-paid-prompt.visible {
  display: block;
}

.home-paid-prompt-scroll {
  height: 100%;
  overflow: auto;
}

.home-paid-prompt .hkmc-appbar,
.home-paid-prompt .manage-membership-bottom-bar,
.home-paid-prompt .manage-payment-alert {
  z-index: 3;
}

[data-home-paid-prompt-overlay] {
  z-index: 40010;
}

.manage-membership-bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  padding: 14px 28px calc(12px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid #eef0f2;
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
  display: grid;
  grid-template-columns: 1fr minmax(132px, 46%);
  gap: 10px 18px;
  align-items: center;
}

.manage-membership-pay-terms {
  grid-column: 1 / -1;
  margin: 0;
}

.manage-membership-bottom-bar-history-only {
  grid-template-columns: 1fr;
}

.manage-membership-price strong {
  display: block;
  color: var(--hkmc-primary-button);
  font-size: var(--hkmc-text-modal-title);
  font-weight: 600;
  line-height: 1.15;
}

.manage-membership-price > .manage-membership-period {
  display: block;
  margin-top: 4px;
  color: #6b7280;
  font-size: var(--hkmc-text-secondary);
  line-height: 1.35;
}

.manage-membership-period span {
  display: block;
}

.manage-membership-period span + span {
  margin-top: 1px;
}

.manage-membership-pay-button {
  position: relative;
  min-height: var(--hkmc-button-min-height);
  border-radius: 16px;
  border: 0;
  background: var(--hkmc-primary-button);
  color: var(--hkmc-primary-contrast);
  font-size: var(--hkmc-text-button);
  font-weight: 500;
}

.manage-membership-pay-button:disabled {
  opacity: 0.78;
}

.manage-membership-pay-button.is-loading:disabled {
  opacity: 1;
}

.manage-pay-loading {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.manage-pay-loading .loading-dot {
  width: 7px;
  height: 7px;
  background: currentColor;
}

.manage-membership-pay-button.is-loading [data-manage-pay-label] {
  visibility: hidden;
}

.manage-membership-pay-button.is-loading .manage-pay-loading {
  display: block;
}

.manage-membership-pay-button .loading-dot {
  background: currentColor;
}

.manage-payment-history-modal {
  max-height: 70vh;
  overflow-y: auto;
  padding-bottom: 20px;
}

.manage-payment-history-modal .account-simple-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 12px;
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 1;
}

.manage-payment-history-modal .account-simple-modal-header h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
}

.manage-payment-history-list {
  padding: 0 20px;
}

.manage-payment-history-skeleton {
  display: grid;
  gap: 8px;
  padding: 6px 0 2px;
}

.manage-payment-history-skeleton-item {
  display: grid;
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}

.manage-payment-history-skeleton-title {
  width: 58%;
  height: 16px;
  border-radius: 999px;
}

.manage-payment-history-skeleton-line {
  width: 82%;
  height: 12px;
  border-radius: 999px;
}

.manage-payment-history-skeleton-line.short {
  width: 66%;
}

.manage-payment-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}

.manage-payment-history-item:last-child {
  border-bottom: none;
}

.manage-payment-history-info {
  flex: 1;
  min-width: 0;
}

.manage-payment-history-title {
  font-size: 14px;
  font-weight: 500;
  color: #1c1c1c;
}

.manage-payment-history-ref {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}

.manage-payment-copy-btn {
  background: none;
  border: none;
  padding: 2px;
  cursor: pointer;
  color: #9ca3af;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s;
}

.manage-payment-copy-btn .material-symbols-rounded {
  font-size: 15px;
}

.manage-payment-copy-btn:active {
  color: var(--hkmc-primary-button, #C8102E);
}

.manage-payment-copy-alert {
  top: 70px;
  bottom: auto;
}

.manage-payment-history-amount {
  font-size: 14px;
  font-weight: 600;
  color: #1c1c1c;
  margin-left: 12px;
  white-space: nowrap;
}

.manage-success-content {
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.manage-success-illustration-wrap {
  position: relative;
  width: min(58vw, 220px);
  max-width: 220px;
  margin: 0 auto 18px;
}

.manage-success-confetti-layer {
  top: 46%;
  z-index: 3;
}

.manage-success-illustration {
  width: min(58vw, 220px);
  max-width: 220px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  display: block;
}

.manage-success-title {
  max-width: 280px;
  margin: 0 auto 10px;
  color: var(--hkmc-text);
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.28;
}

.manage-success-title:has(.redemption-success-title-icon),
.account-tier-upgrade-modal [data-tier-upgrade-title] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: left;
}

.account-tier-upgrade-modal [data-tier-upgrade-title] {
  justify-content: flex-start;
  max-width: none;
  margin: 0 0 10px;
}

.manage-success-title:has(.redemption-success-title-icon) > span:last-child,
.account-tier-upgrade-modal [data-tier-upgrade-title] > span:last-child {
  min-width: 0;
}

.redemption-success-title-icon {
  flex: 0 0 auto;
}

.manage-success-description {
  max-width: 310px;
  margin: 0 auto;
  color: var(--hkmc-secondary-text);
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
}

.account-transaction-empty.show {
  display: flex;
}

.account-help-button,
.account-faq-toggle-button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.account-help-button {
  padding: 0;
  color: var(--hkmc-primary-button);
  font-size: 16px;
  font-weight: 700;
}

.support-chat-page-content {
  background: #ffffff;
}

.support-chat-appbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000001;
  background: #ffffff;
  padding-top: env(safe-area-inset-top, 0px);
}

.support-chat-hint {
  margin: calc(96px + env(safe-area-inset-top, 0px)) 24px 0;
  color: var(--hkmc-secondary-text);
  text-align: center;
}

.support-chat-floating-back {
  position: fixed;
  top: calc(10px + env(safe-area-inset-top, 0px));
  left: 10px;
  z-index: 10000020;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: #ffffff;
  color: #1c1c1c;
}

.account-help-button-container,
.account-transaction-section .account-help-button {
  text-align: center;
}

.account-transaction-section .account-help-button {
  width: 100%;
  padding: 16px 0 4px;
}

.account-help-button-container {
  max-width: 960px;
  margin: 0 20px;
  padding: 10px 0 22px;
}

.account-faq-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e8e8e8;
}

.account-faq-toggle-button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--hkmc-primary-button) 8%, #ffffff);
  color: var(--hkmc-primary-button);
  display: flex;
  align-items: center;
  justify-content: center;
}

.account-faq-toggle-button .material-symbols-rounded {
  font-size: 22px;
  transition: transform 0.3s ease;
}

.account-faq-toggle-button.expanded .material-symbols-rounded {
  transform: rotate(180deg);
}

.account-faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.account-faq-content.expanded {
  max-height: 1200px;
}

.account-faq-item {
  margin-top: 22px;
}

.account-faq-content.expanded .account-faq-item:first-child {
  border-top: 0;
}

.account-faq-question {
  margin-bottom: 8px;
  color: #000000;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.account-faq-answer {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.6;
}

.account-simple-modal {
  z-index: 30001;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}

body > [data-account-info-modal] .saved-info-name,
body > [data-account-logout-modal] .saved-info-name,
body > [data-account-membership-modal] .saved-info-name,
body > [data-account-tier-upgrade-modal] .saved-info-name {
  font-size: var(--hkmc-text-modal-title);
}

body > [data-account-info-modal] .saved-info-description,
body > [data-account-logout-modal] .saved-info-description,
body > [data-account-membership-modal] .saved-info-description,
body > [data-account-membership-modal] .account-membership-modal-info-row,
body > [data-account-membership-modal] .account-membership-modal-guide-copy,
body > [data-account-tier-upgrade-modal] .saved-info-description {
  font-size: var(--hkmc-text-modal-body);
}

.booking-selection-modal.account-tier-upgrade-modal {
  --tier-upgrade-inset: 20px;
  /* ID-1 credit card: 85.60 × 53.98 mm → width:height ≈ 1.586:1 */
  --tier-upgrade-card-ratio: 85.60 / 53.98;
  overflow: visible;
  padding-bottom: 0;
}

.account-tier-upgrade-card-wrap {
  position: relative;
  /* Layout footprint is 70% of card height; card peeks 30% above */
  aspect-ratio: calc(var(--tier-upgrade-card-ratio) / 0.7);
  height: auto;
  margin: 0 var(--tier-upgrade-inset) 16px;
  overflow: visible;
}

.account-tier-upgrade-card-wrap .account-confetti-layer {
  left: 50%;
  top: calc(100% * 0.2 / 0.7);
  z-index: 3;
}

.account-tier-upgrade-modal .account-wallet-card-layer.account-tier-upgrade-card {
  position: absolute;
  top: calc(100% * -0.3 / 0.7);
  left: 0;
  right: 0;
  width: 100%;
  height: auto;
  aspect-ratio: var(--tier-upgrade-card-ratio);
  min-height: 0;
  padding: 14px 24px 18px;
  cursor: default;
  box-sizing: border-box;
  background-color: var(--wallet-card-theme);
  background-image: var(--tier-upgrade-card-face, none);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.account-tier-upgrade-modal .account-tier-upgrade-card::after {
  display: none;
}

.account-tier-upgrade-modal .saved-info-display {
  padding-top: 0;
}

.account-tier-upgrade-fullname {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.96);
  font-size: 17.5px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.2px;
}

.account-tier-upgrade-modal .account-membership-modal-actions {
  box-sizing: border-box;
  width: 100%;
  margin-top: 20px;
  padding: 0 var(--tier-upgrade-inset, 20px) calc(20px + env(safe-area-inset-bottom, 0px));
}

.account-tier-upgrade-modal .account-membership-modal-actions .hkmc-button {
  width: 100%;
  margin-top: 0;
  margin-left: 0;
  margin-right: 0;
}

.account-modal-overlay {
  z-index: 30000;
}

.support-reminder-modal .saved-info-description {
  line-height: 1.6;
  color: #50545c;
}

.account-simple-modal .btn-login,
.home-news-modal-cta .btn-login {
  margin-top: 20px;
  background: var(--hkmc-primary-button);
  color: var(--hkmc-primary-contrast);
  font-size: var(--hkmc-text-button);
  font-weight: 500;
  border-radius: 16px;
}

.account-simple-modal .programmes-filter-modal-actions .btn-login {
  margin: 0;
}

.account-simple-modal .btn-login:active,
.home-news-modal-cta .btn-login:active {
  transform: scale(0.98);
}

.account-payment-success-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.account-payment-success-title .material-symbols-rounded {
  flex: 0 0 auto;
  color: #008900;
  font-size: 20px;
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 20;
}

.account-payment-success-points {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--hkmc-text);
  white-space: nowrap;
  vertical-align: -3px;
}

.account-payment-success-point-icon {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
}

.account-payment-success-point-icon circle {
  fill: var(--hkmc-primary-button);
}

.account-payment-success-point-icon text {
  fill: var(--hkmc-primary-contrast, #ffffff);
  font-size: 16px;
  font-weight: 800;
}

.account-qr-modal-content {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.account-qr-modal-content [data-account-qr-code] {
  width: 214px;
  max-width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.account-qr-code-frame {
  position: relative;
  width: min(72vw, 254px);
  min-height: min(72vw, 254px);
  margin: 8px auto 10px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.account-qr-skeleton {
  position: absolute;
  inset: 16px;
  display: none;
  border-radius: 10px;
  background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 45%, #f3f4f6 100%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.2s linear infinite;
}

.account-qr-code-frame.is-loading [data-account-qr-code] {
  visibility: hidden;
}

.account-qr-code-frame.is-loading .account-qr-skeleton {
  display: block;
}

.account-qr-refresh-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  margin: 0 auto 14px;
  color: var(--hkmc-secondary-text);
  text-align: center;
  font-size: 13px;
  font-weight: 500;
}

.account-qr-refresh-note .material-symbols-rounded {
  font-size: 16px;
}

@keyframes skeletonShimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.account-qr-code-frame img,
.account-qr-code-frame canvas {
  width: 214px !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: 1;
  display: block !important;
  margin: auto !important;
}

.account-qr-refresh-note,
.qr-member-number {
  width: 100%;
  text-align: center;
}

.qr-member-number {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--hkmc-text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.6px;
}

.qr-instruction-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.qr-instruction-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.qr-instruction-icon {
  width: 28px;
  min-width: 28px;
  display: flex;
  justify-content: center;
  color: var(--hkmc-text);
  padding-top: 1px;
}

.qr-instruction-copy h5 {
  margin: 0 0 2px;
  color: var(--hkmc-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.qr-instruction-copy p {
  margin: 0;
  color: var(--hkmc-secondary-text);
  font-size: 13px;
  line-height: 1.4;
}

.account-logout-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 20px calc(20px + env(safe-area-inset-bottom, 0px));
}

.account-logout-modal-actions .hkmc-button {
  width: 100%;
  border-radius: 16px;
  font-size: var(--hkmc-text-button);
  font-weight: 500;
}

.account-logout-confirm-button {
  border: 0;
  background: color-mix(in srgb, var(--hkmc-primary-button) 10%, #ffffff);
  color: var(--hkmc-primary-button);
}

.account-logout-confirm-button:active,
.account-logout-modal-actions .btn-login:active {
  transform: scale(0.98);
}

.account-membership-modal {
  z-index: 30001;
  height: min(86vh, 720px);
  max-height: 86vh;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
}

.account-membership-modal .saved-info-display {
  flex: 1;
  width: 100%;
  min-height: 0;
  box-sizing: border-box;
  overflow-y: auto;
  overscroll-behavior: contain;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 20px 20px 0;
}

.account-membership-modal-tier-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  gap: 8px;
  margin: 12px 0 20px;
  font-size: var(--hkmc-text-modal-body);
  font-weight: 600;
  color: #6b7280;
}

.account-membership-modal-tier-name {
  font-size: var(--hkmc-text-modal-body);
  font-weight: 600;
}

.account-membership-modal-info {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  margin: 0 0 24px;
}

.account-membership-modal-tier-guide {
  width: 100%;
  margin-top: 6px;
  padding-bottom: 4px;
}

.account-membership-modal-guide-copy {
  margin: 0 0 18px;
  color: var(--hkmc-secondary-text);
  font-size: var(--hkmc-text-modal-body);
  line-height: 1.55;
}

.account-membership-modal-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--hkmc-text-modal-body);
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.account-membership-modal-info-row[hidden] {
  display: none !important;
}

.account-membership-modal-info-label {
  color: var(--hkmc-secondary-text);
  text-align: left;
}

.account-membership-modal-info-value {
  font-weight: 500;
  color: var(--hkmc-text);
  text-align: right;
}

.account-membership-modal-actions {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 10px;
  margin-top: 20px;
}

.account-membership-modal-actions .btn-secondary {
  width: 100%;
  min-height: var(--hkmc-button-min-height);
  border-radius: 16px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--hkmc-button-padding-y) var(--hkmc-button-padding-x);
  background: color-mix(in srgb, var(--hkmc-primary-button) 12%, #ffffff);
  color: var(--hkmc-primary-button);
  border: none;
  font-size: var(--hkmc-text-button);
  font-weight: 500;
  text-decoration: none;
  text-align: center;
}

.account-membership-modal-actions .btn-secondary:active {
  background: color-mix(in srgb, var(--hkmc-primary-button) 18%, #ffffff);
  transform: scale(0.98);
}

.account-membership-modal .account-next-tier-circle.tier-progress-circle {
  background: #f3f4f6;
}

.account-membership-modal-actions .btn-login {
  width: 100%;
  background: var(--hkmc-primary-button);
  color: var(--hkmc-primary-contrast);
  font-size: var(--hkmc-text-button);
  font-weight: 500;
  border-radius: 16px;
}

.account-membership-modal-actions .btn-login:active {
  transform: scale(0.98);
}

.account-tier-progress-wrap,
.account-points-label-row {
  cursor: pointer;
}

.tier-progress-chart {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 12px;
}

.tier-progress-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 10px;
  min-height: 46px;
  align-items: stretch;
}

.tier-progress-row.is-current {
  background: transparent;
  margin: 0;
  padding: 0;
  border-radius: 0;
}

.tier-progress-node-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  width: 50px;
  min-height: 46px;
}

/* Collapse connector segments above each circle; the previous row's
   after-circle line already bridges the gap. */
.tier-progress-node-col > .tier-progress-line:first-child {
  flex: 0 0 0;
  min-height: 0;
  overflow: hidden;
}

.tier-progress-line {
  flex: 0 0 0;
  width: 2px;
  min-height: 0;
  background: color-mix(in srgb, var(--hkmc-primary-button) 22%, #e5e7eb);
}

/* Stretch only the line below a face/dot so connectors stop at the last node. */
.tier-progress-circle + .tier-progress-line,
.tier-progress-dot + .tier-progress-line {
  flex: 1 1 auto;
  min-height: 7px;
}

.tier-progress-circle {
  position: relative;
  z-index: 2;
  width: 42px;
  height: 42px;
  margin: 0;
  border: 0;
  background: #ffffff;
  color: var(--hkmc-primary-button);
  overflow: hidden;
}

.tier-progress-circle img {
  width: 94%;
  height: 94%;
  object-fit: contain;
  object-position: center;
  display: block;
  position: relative;
  z-index: 1;
}

.tier-progress-circle .material-symbols-rounded {
  font-size: 19px;
}

.tier-progress-row.is-achieved {
  opacity: 1;
}

.tier-progress-row.is-achieved .tier-progress-info,
.tier-progress-row.is-achieved .tier-progress-circle img,
.tier-progress-row.is-achieved .tier-progress-circle .material-symbols-rounded {
  opacity: 0.48;
}

.tier-progress-row.is-current {
  opacity: 1;
}

.tier-progress-row.is-current .tier-progress-circle {
  width: 46px;
  height: 46px;
  position: relative;
  z-index: 2;
  border: 0;
  box-shadow: none;
}

.tier-progress-row.is-current .tier-progress-circle::before,
.tier-progress-row.is-current .tier-progress-circle::after {
  display: none;
}

.tier-progress-row.is-next {
  opacity: 0.72;
}

.tier-progress-info {
  min-width: 0;
  align-self: start;
  padding: 0 0 8px;
}

.tier-progress-row:not(:first-child) .tier-progress-info {
  padding-top: 7px;
}

.tier-progress-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--hkmc-text);
}

.tier-current-badge {
  display: inline-block;
  margin: 0 0 0 6px;
  padding: 2px 8px;
  border: 0;
  border-radius: 8px;
  background: #bff4f2;
  color: #083a39;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}

.tier-progress-pts {
  margin-top: 4px;
  font-size: 13px;
  color: var(--hkmc-secondary-text);
}

.tier-progress-diff {
  margin-top: 3px;
  font-size: 12px;
  color: var(--hkmc-primary-button);
  font-weight: 600;
}

.account-copy-alert {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(-150%);
  z-index: 100000 !important;
  width: min(500px, calc(100vw - 32px));
  box-sizing: border-box;
  border-radius: 16px;
  background: #323232;
  color: #ffffff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
}

.account-copy-alert.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.account-copy-alert .material-symbols-rounded {
  flex: 0 0 auto;
  font-size: var(--hkmc-text-title);
  color: #2d6940;
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

.account-copy-alert .material-symbols-rounded.is-danger {
  color: #f0a8a8;
}

.account-confetti-piece {
  position: absolute;
  top: 0;
  left: 0;
  width: 7px;
  height: 12px;
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(0deg) scale(0.8);
  animation: accountConfettiBurst var(--confetti-duration, 1100ms) cubic-bezier(0.15, 0.78, 0.28, 1) var(--confetti-delay, 0ms) forwards;
}

.account-confetti-piece.is-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

@keyframes accountConfettiBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(0deg) scale(0.6);
  }

  12% {
    opacity: 1;
  }

  72% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--confetti-x)), calc(-50% + var(--confetti-y))) rotate(var(--confetti-rotate)) scale(1);
  }
}

@media (min-width: 1000px) {
  .account-points-card-stack,
  .account-transaction-section,
  .account-faq-section,
  .account-help-button-container {
    margin-left: auto;
    margin-right: auto;
  }
}

.hkmc-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  min-height: calc(78px + env(safe-area-inset-bottom, 0px));
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  background: #ffffff;
  border-top: 1px solid #d8d8d8;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  transform: translateY(0);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.hkmc-bottom-nav.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}

.hkmc-bottom-nav-item,
.hkmc-bottom-nav-item:link,
.hkmc-bottom-nav-item:visited,
.hkmc-bottom-nav-item:hover,
.hkmc-bottom-nav-item:active,
.hkmc-bottom-nav-item:focus {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #8d8d8d;
  text-decoration: none;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.15;
  transition: color 0.2s ease;
}

.hkmc-bottom-nav-item .material-symbols-rounded {
  font-size: 23px;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  color: #8d8d8d;
}

.hkmc-bottom-nav-label {
  display: block;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  color: #8d8d8d;
}

.hkmc-bottom-nav-indicator {
  position: absolute;
  top: 0;
  left: 50%;
  width: 51.2px;
  height: 4px;
  border-radius: 0 0 16px 16px;
  background: var(--hkmc-primary-button);
  opacity: 0;
  transform: translateX(-50%) scaleX(0.72);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hkmc-bottom-nav-item.active,
.hkmc-bottom-nav-item.active:link,
.hkmc-bottom-nav-item.active:visited,
.hkmc-bottom-nav-item.active:hover,
.hkmc-bottom-nav-item.active:active,
.hkmc-bottom-nav-item.active:focus {
  color: var(--hkmc-text);
  font-weight: 700;
}

.hkmc-bottom-nav-item.active .hkmc-bottom-nav-label {
  color: var(--hkmc-text);
}

.hkmc-bottom-nav-item.active .material-symbols-rounded,
.hkmc-bottom-nav-item.active .material-symbols-rounded.icon-filled {
  font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 24;
  color: var(--hkmc-text);
}

.hkmc-bottom-nav-item.active .hkmc-bottom-nav-indicator {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

/* Capacitor iOS only: floating liquid-glass tab bar. PWA and Android keep the bar above. */
.hkmc-bottom-nav.hkmc-bottom-nav-ios {
  --f7-toolbar-height: 64px;
  --f7-tabbar-icons-height: 64px;
  --f7-tabbar-label-font-size: 10px;
  --f7-tabbar-icon-size: 25px;
  --f7-tabbar-link-active-color: var(--hkmc-text);
  --f7-tabbar-link-inactive-color: #3d4c5c;
  --f7-safe-area-bottom: 0px;
  left: 14px;
  right: 14px;
  bottom: max(10px, env(safe-area-inset-bottom, 0px));
  display: block;
  grid-template-columns: none;
  width: auto;
  min-height: 64px;
  height: 64px;
  padding: 4px;
  border-radius: 32px;
  border: 0.5px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.84);
  box-shadow:
    0 10px 28px rgba(2, 37, 62, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(28px) saturate(1.8);
  backdrop-filter: blur(28px) saturate(1.8);
  overflow: hidden;
}

.hkmc-bottom-nav.hkmc-bottom-nav-ios::before,
.hkmc-bottom-nav.hkmc-bottom-nav-ios::after {
  display: none;
}

.hkmc-bottom-nav.hkmc-bottom-nav-ios .toolbar-inner {
  position: absolute;
  inset: 4px;
  width: auto;
  height: auto;
  display: flex;
  align-items: stretch;
  padding: 0;
  overflow: visible;
}

.hkmc-bottom-nav.hkmc-bottom-nav-ios .hkmc-bottom-nav-item,
.hkmc-bottom-nav.hkmc-bottom-nav-ios .hkmc-bottom-nav-item:link,
.hkmc-bottom-nav.hkmc-bottom-nav-ios .hkmc-bottom-nav-item:visited,
.hkmc-bottom-nav.hkmc-bottom-nav-ios .hkmc-bottom-nav-item:hover,
.hkmc-bottom-nav.hkmc-bottom-nav-ios .hkmc-bottom-nav-item:active,
.hkmc-bottom-nav.hkmc-bottom-nav-ios .hkmc-bottom-nav-item:focus {
  flex-direction: column;
  gap: 2px;
  height: 100%;
  padding-top: 4px;
  font-size: 10px;
  font-weight: 500;
  color: #3d4c5c;
}

.hkmc-bottom-nav.hkmc-bottom-nav-ios .hkmc-bottom-nav-label {
  color: #3d4c5c;
}

.hkmc-bottom-nav.hkmc-bottom-nav-ios .hkmc-bottom-nav-item .material-symbols-rounded {
  font-size: 25px;
  color: #3d4c5c;
}

.hkmc-bottom-nav.hkmc-bottom-nav-ios .hkmc-bottom-nav-item.active,
.hkmc-bottom-nav.hkmc-bottom-nav-ios .hkmc-bottom-nav-item.tab-link-active,
.hkmc-bottom-nav.hkmc-bottom-nav-ios .hkmc-bottom-nav-item.active:link,
.hkmc-bottom-nav.hkmc-bottom-nav-ios .hkmc-bottom-nav-item.active:visited,
.hkmc-bottom-nav.hkmc-bottom-nav-ios .hkmc-bottom-nav-item.active:hover,
.hkmc-bottom-nav.hkmc-bottom-nav-ios .hkmc-bottom-nav-item.active:active,
.hkmc-bottom-nav.hkmc-bottom-nav-ios .hkmc-bottom-nav-item.active:focus {
  background: rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.9);
}

.hkmc-bottom-nav.hkmc-bottom-nav-ios .hkmc-bottom-nav-item.active,
.hkmc-bottom-nav.hkmc-bottom-nav-ios .hkmc-bottom-nav-item.tab-link-active,
.hkmc-bottom-nav.hkmc-bottom-nav-ios .hkmc-bottom-nav-item.active .hkmc-bottom-nav-label,
.hkmc-bottom-nav.hkmc-bottom-nav-ios .hkmc-bottom-nav-item.tab-link-active .hkmc-bottom-nav-label,
.hkmc-bottom-nav.hkmc-bottom-nav-ios .hkmc-bottom-nav-item.active .material-symbols-rounded,
.hkmc-bottom-nav.hkmc-bottom-nav-ios .hkmc-bottom-nav-item.tab-link-active .material-symbols-rounded {
  color: var(--hkmc-text);
}

body:has(.hkmc-bottom-nav-ios:not(.is-hidden)) .hkmc-home-page-content,
body:has(.hkmc-bottom-nav-ios:not(.is-hidden)) .hkmc-root-page-content,
body:has(.hkmc-bottom-nav-ios:not(.is-hidden)) .hkmc-account-page-content {
  padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
}

.hkmc-auth-shell {
  --auth-primary: var(--hkmc-primary-button);
  --auth-primary-hover: #02253e;
  --auth-primary-active: #01192a;
  --auth-primary-text: #ffffff;
  --auth-secondary-button: #f2f2f2;
  --auth-secondary-button-active: #e6e6e6;
  --auth-secondary-button-text: #02253e;
  --auth-link: #3B82F6;
  min-height: 100%;
  box-sizing: border-box;
  padding-top: calc(70px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
}

.hkmc-appbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: #ffffff;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 8px 8px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
  pointer-events: auto;
}

.hkmc-toolbar {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-icon-button {
  position: relative;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 16px;
  padding: 8px;
  background: transparent;
  color: var(--hkmc-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  transition: background-color 0.3s ease;
}

.header-icon-button:active {
  background: #f2f2f2;
}

.header-icon-button .material-symbols-rounded {
  font-size: 28px;
}

.hkmc-toolbar-logo {
  width: auto;
  max-width: 120px;
  height: 38px;
  object-fit: contain;
}

.programme-detail-appbar:not(.scrolled) {
  background: transparent !important;
  box-shadow: none !important;
}

.programme-detail-appbar:not(.scrolled)::before,
.programme-detail-appbar:not(.scrolled)::after,
.programme-detail-appbar:not(.scrolled) .hkmc-toolbar::before,
.programme-detail-appbar:not(.scrolled) .hkmc-toolbar::after {
  display: none !important;
}

.hkmc-toolbar-logo-fallback {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--auth-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--hkmc-icon-md);
  font-weight: 700;
}

.hkmc-toolbar-title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
  font-weight: 600;
  color: var(--hkmc-text);
  text-align: left;
  line-height: 1.2;
}

.hkmc-toolbar-spacer {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
}

.login-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.notification-settings-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px 0;
  box-sizing: border-box;
}

.hkmc-text-title { font-size: var(--hkmc-text-title); }
.hkmc-text-body { font-size: var(--hkmc-text-body); }
.hkmc-text-label { font-size: var(--hkmc-text-label); }
.hkmc-text-input { font-size: var(--hkmc-text-input); }
.hkmc-text-button { font-size: var(--hkmc-text-button); }
.hkmc-text-helper { font-size: var(--hkmc-text-helper); }
.hkmc-text-modal-title { font-size: var(--hkmc-text-modal-title); }
.hkmc-text-modal-body { font-size: var(--hkmc-text-modal-body); }

.hkmc-button-lg {
  min-height: var(--hkmc-button-min-height);
  padding: var(--hkmc-button-padding-y) var(--hkmc-button-padding-x);
  font-size: var(--hkmc-text-button);
}

.step-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--hkmc-text);
  margin: 0 0 12px;
  text-align: left;
  line-height: 1.3;
}

.login-subtitle {
  font-size: 14px;
  color: #666666;
  margin: 0 0 20px;
  line-height: 1.45;
}

.login-subtitle strong {
  color: var(--hkmc-text);
  font-weight: 700;
}

.profile-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 4px 0 28px;
}

.profile-avatar-label {
  margin: 10px 0 0;
  color: var(--hkmc-text);
  font-weight: 400;
  text-align: center;
}

button.profile-avatar-label {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  font: inherit;
  font-weight: 400;
  cursor: pointer;
}

.profile-avatar-button {
  position: relative;
  width: 96px;
  height: 96px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #e5e5e5;
  color: #323232;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}

.profile-avatar-button .material-symbols-rounded {
  font-size: 44px;
  color: #323232;
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 48;
}

.profile-avatar-button img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-spinner {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border-radius: 50%;
  border: 3px solid rgba(50, 50, 50, 0.22);
  border-top-color: #323232;
  animation: profile-avatar-spin 0.7s linear infinite;
}

.profile-avatar-button.is-uploading {
  cursor: progress;
}

.profile-avatar-button.is-uploading::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(229, 229, 229, 0.78);
}

.profile-avatar-button.is-uploading .profile-avatar-spinner {
  display: block;
}

@keyframes profile-avatar-spin {
  to { transform: rotate(360deg); }
}

.profile-avatar-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-section {
  margin-bottom: 30px;
}

.notification-settings-card {
  background: #ffffff;
  border-radius: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 16px 18px;
}

.notification-push-note {
  margin: 12px 0 0;
  color: #666666;
  font-size: 13px;
  line-height: 1.45;
}

.hkmc-notification-settings-page .notif-container {
  max-width: 600px;
  margin: 0 auto;
  padding-top: 8px;
}

.hkmc-notification-settings-page .section-header {
  padding: 12px 16px;
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.hkmc-notification-settings-page .notification-section,
.hkmc-notification-settings-page .device-section {
  background: #fff;
}

.hkmc-notification-settings-page .notification-item,
.hkmc-notification-settings-page .device-item {
  display: flex;
  align-items: center;
  padding: 16px;
  background: #fff;
}

.hkmc-notification-settings-page .notification-item {
  justify-content: space-between;
}

.hkmc-notification-settings-page .notification-item-content,
.hkmc-notification-settings-page .device-item-info {
  flex: 1;
  min-width: 0;
}

.hkmc-notification-settings-page .notification-item-content {
  padding-right: 16px;
}

.hkmc-notification-settings-page .notification-item-text,
.hkmc-notification-settings-page .device-item-name {
  font-size: 16px;
  color: #212121;
}

.hkmc-notification-settings-page .device-item-name {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.hkmc-notification-settings-page .notification-item-secondary,
.hkmc-notification-settings-page .device-item-time {
  margin-top: 4px;
  font-size: 14px;
  color: #999;
}

.hkmc-notification-settings-page .device-item-status {
  margin-top: 2px;
  font-size: 13px;
  color: var(--hkmc-primary-button);
}

.hkmc-notification-settings-page .device-item-icon {
  width: 40px;
  height: 40px;
  margin-right: 12px;
  border-radius: 50%;
  background: rgb(252, 248, 254);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  overflow: hidden;
  color: var(--hkmc-primary-button);
}

.hkmc-notification-settings-page .device-item-icon .material-symbols-rounded {
  width: 20px;
  height: 20px;
  font-size: 20px;
  overflow: hidden;
}

.hkmc-notification-settings-page .device-item-badge {
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background: #f5f5f5;
  color: #404040;
  font-size: 11px;
}

.hkmc-notification-settings-page .device-item + .device-item {
  border-top: 1px solid #f0f0f0;
}

.hkmc-notification-settings-page .device-item-action {
  width: 40px;
  height: 40px;
  margin-left: 12px;
  border: 0;
  background: none;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.hkmc-notification-settings-page .push-device-empty {
  padding: 60px 20px;
  background: #fff;
  text-align: center;
  color: #666;
  font-size: 16px;
}

.hkmc-notification-settings-page .push-device-empty .material-symbols-rounded {
  display: block;
  margin-bottom: 16px;
  font-size: 64px;
  color: #ccc;
}

.hkmc-notification-settings-page .push-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 13000;
  background: rgba(0, 0, 0, 0.5);
}

.hkmc-notification-settings-page .push-sheet-overlay[hidden],
.hkmc-notification-settings-page .push-sheet[hidden] {
  display: none;
}

.hkmc-notification-settings-page .push-sheet {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 13001;
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.hkmc-notification-settings-page .push-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid #e0e0e0;
  font-size: 16px;
  font-weight: 500;
}

.hkmc-notification-settings-page .push-sheet-close {
  border: 0;
  background: none;
  color: #666;
  display: flex;
  padding: 0;
}

.hkmc-notification-settings-page .push-sheet-spacer {
  width: 24px;
}

.hkmc-notification-settings-page .push-sheet-body {
  padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
}

.hkmc-notification-settings-page .push-sheet-desc {
  margin: 0 0 20px;
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

.hkmc-notification-settings-page .push-sheet-confirm,
.hkmc-notification-settings-page .push-sheet-cancel {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 32px;
  font-size: 16px;
  font-weight: 500;
}

.hkmc-notification-settings-page .push-sheet-confirm {
  margin-bottom: 12px;
  background: var(--hkmc-primary-button);
  color: var(--hkmc-primary-contrast, #fff);
}

.hkmc-notification-settings-page .push-sheet-confirm:disabled {
  background: #ccc;
}

.hkmc-notification-settings-page .push-sheet-cancel {
  background: rgb(252, 248, 254);
  color: var(--hkmc-text);
}

.notification-toggle-row.toggle-row {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--hkmc-muted-line);
  cursor: pointer;
}

.toggle-label {
  flex: 1;
  min-width: 0;
}

.toggle-label strong {
  display: block;
  color: var(--hkmc-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.toggle-label span {
  display: block;
  margin-top: 4px;
  color: var(--hkmc-secondary-text);
  font-size: 12px;
  line-height: 1.4;
}

.toggle-switch {
  position: relative;
  flex: 0 0 auto;
  width: 48px;
  height: 28px;
}

.toggle-switch input {
  position: absolute;
  z-index: 1;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.toggle-switch input:disabled {
  cursor: not-allowed;
}

.toggle-track {
  position: absolute;
  inset: 0;
  background: var(--hkmc-line);
  border-radius: 28px;
  transition: background 0.2s ease;
}

.toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.toggle-switch input:checked + .toggle-track {
  background: var(--hkmc-primary-button);
}

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

.toggle-switch input:disabled + .toggle-track {
  opacity: 0.55;
}

.name-row {
  display: flex;
  gap: 15px;
}

.name-row .form-group {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}

.hkmc-edit-profile-page .name-row {
  margin-bottom: 20px;
}

.auth-name-legal-hint {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 8px 0 0;
  padding-bottom: 20px;
  color: var(--hkmc-secondary-text);
  font-size: var(--hkmc-text-secondary);
  line-height: 1.45;
}

.auth-name-legal-hint .material-symbols-rounded {
  flex: 0 0 auto;
  margin-top: 1px;
  font-size: 16px;
  line-height: 1;
  color: var(--hkmc-secondary-text);
}

.dob-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.auth-select-trigger {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  border: 1px solid #E0E0E0;
  border-radius: 14px;
  background: #ffffff;
  color: var(--hkmc-text);
  font: inherit;
  font-size: var(--hkmc-text-input);
  padding: 12px 12px 12px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.auth-select-trigger-full {
  width: 100%;
}

.auth-select-trigger.is-placeholder,
.auth-select-trigger.is-placeholder [data-auth-select-label] {
  color: #9aa6b2;
}

.auth-select-trigger .material-symbols-rounded {
  flex: 0 0 auto;
  font-size: 22px;
  color: var(--hkmc-secondary-text);
}

.auth-select-trigger.active,
.auth-select-trigger:active {
  border-color: var(--hkmc-primary-button);
  background: color-mix(in srgb, var(--hkmc-primary-button) 4%, #ffffff);
}

.welcome-language-trigger.auth-select-trigger {
  width: 100%;
  height: 48px;
  min-height: 48px;
  justify-content: flex-start;
  gap: 0;
  padding: 12px 44px 12px 14px;
  border-radius: 14px;
}

.welcome-language-trigger.auth-select-trigger .material-symbols-rounded {
  display: none;
}

[data-auth-select-field].is-error .auth-select-trigger {
  border-color: #d14343;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: var(--hkmc-text-label);
  font-weight: 400;
  color: var(--hkmc-text);
}

.input-wrapper {
  position: relative;
}

.form-group input,
.form-group select {
  width: 100%;
  height: 48px;
  box-sizing: border-box;
  appearance: none;
  border: 1px solid #E0E0E0;
  border-radius: 14px;
  background: #ffffff;
  color: var(--hkmc-text);
  font-size: var(--hkmc-text-input);
  padding: 12px 44px 12px 14px;
  outline: none;
  transition: all 0.3s ease;
}

.form-group input:disabled {
  background: #f3f4f6;
  border-color: #e5e7eb;
  color: #8a98a5;
  opacity: 1;
  -webkit-text-fill-color: #8a98a5;
  cursor: not-allowed;
}

.input-wrapper-select::after {
  content: "expand_more";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--hkmc-secondary-text);
  font-family: 'Material Symbols Rounded';
  font-size: 22px;
  line-height: 1;
  pointer-events: none;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.input-wrapper-select select {
  cursor: pointer;
}

.form-group input.has-eye-icon {
  padding-right: 50px;
}

.phone-group input {
  padding-left: 64px;
}

.phone-prefix {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--hkmc-text);
  font-size: var(--hkmc-text-input);
  pointer-events: none;
  z-index: 1;
}

.phone-input-composite {
  display: grid;
  grid-template-columns: minmax(110px, 30%) minmax(0, 1fr);
  gap: 8px;
  width: 100%;
  align-items: stretch;
}

.phone-country-trigger {
  min-width: 0;
  height: 54px;
  min-height: 54px;
  box-sizing: border-box;
  border: 1px solid #E0E0E0;
  border-radius: 16px;
  background: #ffffff;
  color: var(--hkmc-text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 9px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.phone-country-selected-flag {
  flex: 0 0 auto;
  display: block;
  width: 24px;
  height: 18px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.phone-country-trigger .material-symbols-rounded {
  flex: 0 0 auto;
  font-size: 16px;
}

.phone-group .phone-input-composite input {
  min-width: 0;
  height: 54px;
  min-height: 54px;
  box-sizing: border-box;
  padding: 0 50px 0 14px;
  margin-left: 0;
  border-radius: 16px;
}

.phone-input-composite:focus-within .phone-country-trigger,
.phone-input-composite:focus-within input {
  position: relative;
  z-index: 1;
  border-color: var(--auth-primary);
}

.phone-input-composite.is-error .phone-country-trigger {
  border-color: #C93A2B;
}

.field-hint {
  margin: 8px 0 0;
  color: #666666;
  font-size: var(--hkmc-text-body);
  line-height: 1.45;
}

.password-rules {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  color: #777777;
  font-size: var(--hkmc-text-body);
  line-height: 1.35;
}

.password-rules li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  transition: color 0.25s ease;
}

.password-rule-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border: 1.5px solid #d7d7d7;
  border-radius: 16px;
  box-sizing: border-box;
  margin-top: 1px;
  background: #f5f5f5;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.password-rule-icon::after {
  content: "";
  display: block;
  width: 4px;
  height: 7px;
  margin: 0 0 1px 0;
  border: solid #b8b8b8;
  border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg);
  opacity: 0.65;
  transition: border-color 0.25s ease, opacity 0.25s ease;
}

.password-rules li.is-valid {
  color: #237271;
}

.password-rules li.is-valid .password-rule-icon {
  background: #237271;
  border-color: #237271;
}

.password-rules li.is-valid .password-rule-icon::after {
  border-color: #ffffff;
  opacity: 1;
}

.form-group input::placeholder {
  color: #999999;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--auth-primary);
  box-shadow: none;
}

.form-group input.error {
  border-color: #C93A2B;
  background-color: #ffffff;
}

.eye-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  width: 28px;
  height: 28px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #666666;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.3s;
}

.eye-icon:active {
  color: var(--hkmc-text);
}

.eye-icon .material-symbols-rounded {
  font-size: var(--hkmc-icon-md);
}

.error-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 16px;
  background: #C93A2B;
  color: #ffffff;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: var(--hkmc-text-input);
  font-weight: 700;
  z-index: 1;
}

.form-group input.error ~ .error-icon {
  display: flex;
}

.check_terms {
  margin-bottom: 15px;
}

.check_wrap {
  display: flex;
  align-items: center;
}

.check_wrap input[type="checkbox"] {
  display: none;
}

.check_wrap label {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  font-size: var(--hkmc-text-label);
  color: #666666;
}

.check_wrap label::before {
  content: "";
  display: inline-flex;
  width: 22px;
  height: 22px;
  margin-right: 10px;
  box-sizing: border-box;
  border: 2px solid #E0E0E0;
  border-radius: 16px;
  background: #ffffff;
  transition: all 0.3s ease;
  flex: 0 0 22px;
}

.check_wrap input[type="checkbox"]:checked + label::before {
  background-color: var(--auth-primary);
  border-color: var(--auth-primary);
}

.check_wrap input[type="checkbox"]:checked + label::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 4px;
  width: 6px;
  height: 11px;
  border: solid var(--auth-primary-text);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.check_wrap .text {
  font-size: var(--hkmc-text-label);
  color: #666666;
}

.remember-check.check_wrap input[type="checkbox"] + label::before,
.remember-check.check_wrap input[type="checkbox"] + label::after,
.remember-check.check_wrap input[type="checkbox"]:checked + label::before,
.remember-check.check_wrap input[type="checkbox"]:checked + label::after {
  content: none;
  display: none;
  width: 0;
  height: 0;
  margin: 0;
  border: 0;
}

.remember-check label {
  gap: 8px;
  align-items: flex-start;
  color: #777777;
  font-size: var(--hkmc-text-body);
  line-height: 1.35;
  transition: color 0.25s ease;
}

.remember-check .text {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.remember-check input[type="checkbox"]:checked + label {
  color: #237271;
}

.remember-check input[type="checkbox"]:checked + label .password-rule-icon {
  background: #237271;
  border-color: #237271;
}

.remember-check input[type="checkbox"]:checked + label .password-rule-icon::after {
  border-color: #ffffff;
  opacity: 1;
}

.btn-login,
.btn-sms-login {
  width: 100%;
  min-height: var(--hkmc-button-min-height);
  height: auto;
  padding: var(--hkmc-button-padding-y) var(--hkmc-button-padding-x);
  border-radius: 16px;
  border: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  position: relative;
  text-decoration: none;
}

.btn-login {
  margin-top: 20px;
  background: var(--auth-primary);
  color: var(--auth-primary-text);
  font-size: var(--hkmc-text-button);
  font-weight: 500;
}

.btn-login:active {
  background: var(--auth-primary-active);
  transform: scale(0.98);
}

.btn-sms-login {
  margin-top: 20px;
  background: var(--auth-secondary-button);
  color: var(--auth-secondary-button-text);
  font-size: var(--hkmc-text-button);
  font-weight: 500;
}

.btn-sms-login:active {
  background: var(--auth-secondary-button-active);
  transform: scale(0.98);
}

.btn-sms-login .material-symbols-rounded {
  font-size: var(--hkmc-text-title);
}

#passkey-login-btn {
  flex-wrap: nowrap;
  white-space: nowrap;
}

#passkey-login-btn .material-symbols-rounded {
  flex: 0 0 auto;
  font-size: 22px;
  line-height: 1;
}

.btn-login:disabled,
.btn-sms-login:disabled {
  cursor: not-allowed;
}

.btn-login.is-loading,
.btn-sms-login.is-loading {
  color: transparent;
  pointer-events: none;
}

.loading-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 16px;
  animation: dotBounce 1s infinite ease-in-out;
}

.btn-login .loading-dot {
  background: var(--auth-primary-text);
}

.btn-sms-login .loading-dot {
  background: var(--auth-secondary-button-text);
}

.loading-dot:nth-child(1) {
  transform: translate(calc(-50% - 10px), -50%);
  animation-delay: 0s;
  --tx: calc(-50% - 10px);
}

.loading-dot:nth-child(2) {
  transform: translate(-50%, -50%);
  animation-delay: 0.15s;
  --tx: -50%;
}

.loading-dot:nth-child(3) {
  transform: translate(calc(-50% + 10px), -50%);
  animation-delay: 0.3s;
  --tx: calc(-50% + 10px);
}

@keyframes dotBounce {
  0%, 60%, 100% {
    opacity: 0.3;
    transform: translate(var(--tx, -50%), -50%) scale(0.8);
  }

  30% {
    opacity: 1;
    transform: translate(var(--tx, -50%), -50%) scale(1);
  }
}

.register-link {
  text-align: center;
  margin-top: 20px;
}

.register-link p {
  font-size: var(--hkmc-text-label);
  color: #666666;
  margin: 0;
}

.register-link .forgot-line {
  margin-top: 10px;
}

.register-link a,
.terms-policy a {
  color: var(--auth-link);
  text-decoration: underline;
  font-size: var(--hkmc-text-label);
}

.other-login-method {
  position: relative;
  text-align: center;
  margin: 20px 0;
  color: #b2b2b2;
  font-size: var(--hkmc-text-body);
}

.other-login-method::before,
.other-login-method::after {
  content: "";
  display: block;
  width: calc(50% - 60px);
  height: 1px;
  background: #eeeeee;
  position: absolute;
  top: 50%;
}

.other-login-method::before {
  left: 0;
}

.other-login-method::after {
  right: 0;
}

.other-login-method span {
  padding: 0 10px;
  position: relative;
  z-index: 1;
  background: #ffffff;
}

.terms-policy {
  text-align: center;
  color: #b2b2b2;
  font-size: var(--hkmc-text-label);
  line-height: 1.5;
  padding: 20px;
  margin-top: 20px;
}

.register-verification-popup {
  --f7-popup-tablet-width: min(520px, calc(100vw - 24px));
  top: auto;
  bottom: 0;
  height: min(85vh, 85%);
  max-height: 85vh;
  background: #ffffff;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}

.register-verification-content {
  background: #ffffff;
  min-height: 100%;
  box-sizing: border-box;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 22px calc(28px + env(safe-area-inset-bottom, 0px));
}

.register-verification-swipe-handler {
  width: 44px;
  height: 5px;
  border-radius: 16px;
  background: #d9d9d9;
  margin: 0 auto 18px;
}

.register-verification-close {
  position: absolute;
  top: calc(18px + env(safe-area-inset-top, 0px));
  right: 18px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 16px;
  background: #f5f5f5;
  color: var(--hkmc-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.register-verification-card {
  max-width: 520px;
  min-height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--hkmc-text);
}

.register-verification-illustration-wrap {
  width: min(58vw, 220px);
  max-width: 220px;
  margin: 0 auto;
}

.register-verification-illustration {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.register-verification-card h2 {
  margin: 0 0 12px;
  font-size: var(--hkmc-text-title);
  font-weight: 600;
  color: var(--hkmc-text);
}

.register-verification-card p {
  margin: 0 0 14px;
  font-size: var(--hkmc-text-body);
  line-height: 1.55;
  color: #666666;
}

.register-verification-lead {
  color: #333333 !important;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.register-verification-lead .redemption-success-title-icon {
  color: #008900;
  font-size: 24px;
  line-height: 1;
}

.register-verification-email {
  width: 100%;
  box-sizing: border-box;
  margin: 4px 0 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f7f7f7;
  color: var(--hkmc-text);
  font-size: var(--hkmc-text-label);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.register-verification-note {
  width: 100%;
  box-sizing: border-box;
  margin: 8px 0 22px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #faf4bc;
  color: var(--hkmc-text);
  text-align: left;
  display: grid;
  gap: 6px;
  font-size: var(--hkmc-text-body);
  line-height: 1.5;
}

.register-verification-note strong {
  color: #ed9600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.register-verification-note strong .material-symbols-rounded {
  color: #ed9600;
  font-size: 20px;
  line-height: 1;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.register-verification-card .btn-login {
  margin-top: auto;
}

.phone-verification-popup {
  --f7-popup-tablet-width: min(520px, calc(100vw - 24px));
  top: auto;
  bottom: 0;
  height: min(80vh, 80%);
  max-height: 80vh;
  background: #ffffff;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}

.phone-verification-content {
  background: #ffffff;
  min-height: 100%;
  box-sizing: border-box;
  padding: calc(26px + env(safe-area-inset-top, 0px)) 20px calc(28px + env(safe-area-inset-bottom, 0px));
}

.phone-verification-card {
  max-width: 600px;
  min-height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  text-align: left;
  color: var(--hkmc-text);
}

.phone-verification-card h2 {
  margin: 0 0 20px;
  font-size: var(--hkmc-text-title);
  font-weight: 500;
  color: var(--hkmc-text);
  text-align: left;
}

.phone-code-group {
  width: 100%;
  margin: 4px 0 10px;
  text-align: left;
}

.phone-code-group input {
  text-align: center;
  letter-spacing: 0.22em;
  font-weight: 600;
}

.phone-verification-helper,
.phone-verification-error {
  margin: 0 0 14px;
  font-size: var(--hkmc-text-body);
  line-height: 1.45;
}

.phone-verification-helper {
  color: #666666;
}

.phone-verification-error {
  min-height: 1.45em;
  color: #C93A2B;
}

.phone-verification-card .btn-login {
  margin-top: 12px;
}

.phone-verification-resend {
  width: 100%;
  margin: auto 0 0;
}

.phone-verification-resend:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.phone-verification-resend.is-loading {
  min-height: var(--hkmc-button-min-height);
}

.firebase-recaptcha-container {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
  overflow: visible;
  z-index: 100000;
}

.phone-recaptcha-overlay {
  position: fixed;
  inset: 0;
  z-index: 45000;
  background: rgba(0, 0, 0, 0.42);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s ease, visibility 0s linear 0.24s;
}

.phone-recaptcha-overlay.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.24s ease, visibility 0s linear 0s;
}

.phone-recaptcha-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45001;
  height: 80vh;
  max-height: 80vh;
  border-radius: 16px 16px 0 0;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 -16px 40px rgba(15, 23, 42, 0.22);
  transform: translateY(105%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.34s;
}

.phone-recaptcha-sheet.visible {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0s;
}

.phone-recaptcha-sheet iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
}

.custom-fade-alert {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(-150%);
  z-index: 100000 !important;
  width: min(500px, calc(100vw - 32px));
  box-sizing: border-box;
  border-radius: 16px;
  background: #323232;
  color: #ffffff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
}

.custom-fade-alert.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.custom-fade-alert .material-symbols-rounded {
  flex: 0 0 auto;
  font-size: var(--hkmc-text-title);
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

.custom-fade-alert.is-error .material-symbols-rounded {
  color: #EF4444;
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

.custom-fade-alert.is-success .material-symbols-rounded {
  color: #2d6940;
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

.custom-fade-alert span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.skeleton {
  border-radius: 16px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-title {
  width: 30%;
  height: 24px;
  margin-bottom: 20px;
}

.skeleton-subtitle {
  width: 50%;
  height: 16px;
  margin-bottom: 20px;
}

.skeleton-form-group {
  margin-bottom: 15px;
}

.skeleton-input {
  width: 100%;
  height: 48px;
  border-radius: 16px;
}

.skeleton-button {
  width: 100%;
  height: 58px;
  border-radius: 16px;
  margin-top: 20px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 40000;
  display: block;
  background: rgba(0, 0, 0, 0.42);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s ease, visibility 0s linear 0.24s;
  pointer-events: none;
}

.modal-overlay.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.24s ease, visibility 0s linear 0s;
}

.booking-selection-modal {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40001;
  display: block;
  max-height: 90vh;
  overflow: auto hidden;
  padding-bottom: 60px;
  border-radius: 16px 16px 0 0;
  background: #ffffff;
  box-shadow: 0 -16px 40px rgba(15, 23, 42, 0.22);
  transform: translateY(105%);
  visibility: hidden;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.34s;
  pointer-events: none;
}

.booking-selection-modal.visible {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0s;
}

.booking-selection-modal.auth-select-modal {
  display: flex;
  height: min(62vh, 520px);
  max-height: 62vh;
  padding: 0;
  overflow: hidden;
  flex-direction: column;
  z-index: 40001;
}

.modal-overlay.redemption-option-overlay {
  z-index: 40020;
}

.booking-selection-modal.auth-select-modal.redemption-option-modal {
  z-index: 40021;
}

.auth-select-overlay {
  z-index: 30000;
}

.auth-select-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: 8px 0 calc(12px + env(safe-area-inset-bottom, 0px));
}

.auth-select-option {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-bottom: 1px solid #f1f1f1;
  background: #ffffff;
  color: var(--hkmc-text);
  font: inherit;
  font-size: 16px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  touch-action: pan-y;
}

.auth-select-option:active {
  background: #f7f7f7;
}

.auth-select-option[aria-selected="true"] {
  color: var(--hkmc-primary-button);
  font-weight: 600;
}

.auth-select-option.is-disabled {
  color: #9aa6b2;
}

.auth-select-check,
.auth-select-check-space {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
}

.auth-select-check {
  font-size: 22px;
  color: var(--hkmc-primary-button);
}

.phone-country-modal {
  height: min(78vh, 680px);
  max-height: 78vh;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.booking-selection-modal.phone-country-modal.visible {
  display: flex;
}

.phone-country-modal-header {
  flex: 0 0 auto;
  min-height: 64px;
  box-sizing: border-box;
  padding: 14px 16px 10px 20px;
  border-bottom: 1px solid #eeeeee;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone-country-modal-header h2 {
  margin: 0;
  color: var(--hkmc-text);
  font-size: 19px;
  font-weight: 650;
}

.phone-country-search {
  position: relative;
  flex: 0 0 auto;
  padding: 12px 16px;
  border-bottom: 1px solid #eeeeee;
  background: #ffffff;
}

.phone-country-search input {
  appearance: none;
  width: 100%;
  height: 54px;
  box-sizing: border-box;
  padding: 16px 50px;
  border: 1px solid #E0E0E0;
  border-radius: 16px;
  outline: none;
  background: #ffffff;
  color: var(--hkmc-text);
  font: inherit;
  font-size: var(--hkmc-text-input);
}

.phone-country-search input:focus {
  border-color: var(--auth-primary);
}

.phone-country-search input::-webkit-search-cancel-button {
  display: none;
}

.phone-country-search-icon {
  position: absolute;
  z-index: 1;
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--hkmc-secondary-text);
  font-size: 23px;
  pointer-events: none;
}

.phone-country-search-clear {
  position: absolute;
  z-index: 1;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--hkmc-secondary-text);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.phone-country-search-clear.visible {
  display: flex;
}

.phone-country-search-clear .material-symbols-rounded {
  font-size: 21px;
}

.phone-country-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

.phone-country-row {
  width: 100%;
  min-height: 58px;
  box-sizing: border-box;
  padding: 9px 18px 9px 20px;
  border: 0;
  border-bottom: 1px solid #f0f0f0;
  background: #ffffff;
  color: var(--hkmc-text);
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: 12px;
  text-align: left;
  font: inherit;
  cursor: pointer;
  touch-action: pan-y;
}

.phone-country-row[hidden] {
  display: none;
}

.phone-country-row:active {
  background: #f6f6f6;
}

.phone-country-flag {
  display: block;
  width: 32px;
  height: 24px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.phone-country-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
}

.phone-country-dial {
  color: var(--hkmc-secondary-text);
  font-size: 14px;
}

.phone-country-check,
.phone-country-check-space {
  width: 24px;
  color: var(--auth-primary);
  font-size: 23px;
  text-align: right;
}

.booking-selection-modal.account-membership-modal {
  height: min(86vh, 720px);
  max-height: 86vh;
  overflow: hidden;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
}

.booking-selection-modal.account-membership-modal .saved-info-display {
  display: block;
  flex: 1 1 0;
  height: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: 30px 20px 20px;
}

.booking-selection-modal.account-membership-modal .account-membership-modal-actions {
  flex: 0 0 auto;
  box-sizing: border-box;
  width: 100%;
  padding: 0 20px calc(20px + env(safe-area-inset-bottom, 0px));
  margin: 0;
}

.booking-selection-modal.account-membership-modal .account-membership-modal-actions .hkmc-button {
  width: 100%;
  min-height: var(--hkmc-button-min-height);
  margin: 0;
}

.legal-consent-overlay {
  z-index: 45000;
}

.booking-selection-modal.legal-consent-modal {
  z-index: 45001;
  height: 90vh;
  max-height: 90vh;
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.booking-selection-modal.legal-consent-modal.visible {
  display: flex;
}

.legal-consent-modal .legal-consent-tabs {
  flex: 0 0 auto;
  margin: 0;
}

.legal-consent-modal .legal-consent-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 20px 8px;
}

.legal-consent-modal .account-membership-modal-actions {
  flex: 0 0 auto;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 12px 20px calc(20px + env(safe-area-inset-bottom, 0px));
}

.legal-consent-modal .account-membership-modal-actions .hkmc-button {
  width: 100%;
  min-height: var(--hkmc-button-min-height);
  margin: 0;
}

.legal-consent-modal .btn-login:disabled {
  opacity: 0.4;
}

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

.saved-info-display {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 30px 20px 0;
}

.saved-info-name {
  font-size: var(--hkmc-text-modal-title);
  font-weight: 600;
  color: var(--hkmc-text);
  margin-bottom: 10px;
}

.saved-info-description {
  font-size: var(--hkmc-text-body);
  color: #666666;
  margin-bottom: 10px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-align: left;
}

.icon-info-row {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.icon-info-row-icon {
  margin-right: 15px;
  color: var(--auth-primary);
}

.icon-info-row-content h5 {
  font-size: var(--hkmc-text-body);
  font-weight: 500;
  color: var(--hkmc-text);
  margin: 0;
}

.icon-info-row-content p {
  font-weight: 300;
  color: #676767;
  margin: 5px 0 0;
}

.modal-btn-margin {
  margin-left: 20px;
  margin-right: 20px;
  width: calc(100% - 40px);
}

.btn-previous.btn-sms-login {
  margin-top: 10px;
}


.ios,
.md {
  --f7-popup-transition-duration: 0.34s;
  --f7-popup-transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 768px) {
  .booking-selection-modal,
  .booking-selection-modal:not(.visible) {
    left: 50%;
    right: auto;
    width: min(600px, 100vw);
    transform: translate(-50%, 105%);
  }

  .booking-selection-modal.visible {
    transform: translate(-50%, 0);
  }

  .booking-selection-modal.programme-session-modal,
  .booking-selection-modal.programme-session-modal:not(.visible) {
    transform: translate(-50%, 105%);
  }

  .booking-selection-modal.programme-session-modal.visible {
    transform: translate(-50%, 0);
  }

  .booking-selection-modal.news-comments-delete-modal,
  .booking-selection-modal.news-comments-delete-modal:not(.visible) {
    transform: translate(-50%, 105%);
  }

  .booking-selection-modal.news-comments-delete-modal.visible {
    transform: translate(-50%, 0);
  }
}

.hkmc-passkey-page .passkey-intro {
  margin-bottom: 16px;
  padding: 16px;
  background: #fff;
}

.hkmc-passkey-page .passkey-intro-text {
  margin: 0 0 20px;
  color: #666;
  font-size: 16px;
  line-height: 1.6;
}

.hkmc-passkey-page .passkey-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hkmc-passkey-page .passkey-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.hkmc-passkey-page .passkey-feature .device-item-icon {
  margin-right: 0;
}

.hkmc-passkey-page .passkey-feature-text {
  padding-top: 8px;
  color: #212121;
  font-size: 16px;
  line-height: 1.5;
}

.hkmc-passkey-page .passkey-add {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 16px;
  border: 0;
  background: #fff;
  color: #212121;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
}

.hkmc-passkey-page .passkey-add .device-item-icon {
  margin-right: 12px;
}

.hkmc-passkey-page .passkey-add-arrow {
  margin-left: auto;
  color: #999;
  display: flex;
}
