/* ==========================================================================
   GENUINE GREEN SM v5.14.0 DESIGN SYSTEM (Extracted from APK DEX & res/font)
   Primary Typeface: Google Sans (@font/google_sans in GSMFontLanguage)
   Palette: Exact Lj50/e Jetpack Compose Tokens + colors.xml
   ========================================================================== */
@font-face {
  font-family: 'Google Sans GSM';
  src: url('/static/gsm_assets/google_sans.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Public Sans XanhSM';
  src: url('/static/gsm_assets/public_sans_for_xanhsm_regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Public Sans XanhSM';
  src: url('/static/gsm_assets/public_sans_for_xanhsm_medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Public Sans XanhSM';
  src: url('/static/gsm_assets/public_sans_for_xanhsm_semi_bold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Public Sans XanhSM';
  src: url('/static/gsm_assets/public_sans_for_xanhsm_bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  /* Exact Lj50/e Cyan Ramp */
  --gsm-cyan: #2dccd3;
  --gsm-cyan-main: #14abb2;
  --gsm-cyan-price: #14abb2;
  --gsm-cyan-deep: #1d858b;
  --gsm-cyan-tint: #eefbfb;
  --gsm-cyan-tint-soft: #f4fcfc;
  --gsm-cyan-border: #cdf2f4;

  /* Exact Lj50/e Secondary & Status Ramps */
  --gsm-gold: #ffca00;
  --gsm-gold-tint: #fff4cc;
  --gsm-gold-ink: #8b6f1d;

  --gsm-green: #1d8b31;
  --gsm-green-wash: #eefbf3;

  --gsm-warn: #d95f00;
  --gsm-warn-tint: #fbf3ee;
  --gsm-danger: #d3492d;
  --gsm-danger-tint: #fbf3ee;
  --gsm-info: #2d7ad2;

  /* Exact Lj50/e Neutral Ramp (#0a0c11, #3a4040, #606969, #828b8c, #eef2f2, #f5f7f7, #ffffff) */
  --bg-stage: radial-gradient(circle at 22% 16%, #133b41 0%, #091d21 62%, #051013 100%);
  --surface-phone: #ffffff;
  --surface-canvas: #f5f7f7;
  --surface-card: #ffffff;
  --surface-tile: #f5f7f7;
  --surface-elevated: #ffffff;
  --surface-subtle: #eef2f2;
  --surface-navbar: #ffffff;
  --ink-primary: #0a0c11;
  --ink-strong: #3a4040;
  --ink-secondary: #606969;
  --ink-tertiary: #828b8c;
  --border-light: #e8eded;
  --border-strong: #d0d9d9;

  --hero-ride-bg: linear-gradient(135deg, #f1fcfd 0%, #dcf7f9 62%, #c9f1f5 100%);
  --frost-badge-bg: rgba(255, 255, 255, 0.88);
  --frost-badge-ink: #17666a;

  --shadow-phone: 0 32px 84px rgba(0, 0, 0, 0.52), 0 0 0 9px #182326, 0 0 0 10.5px rgba(255, 255, 255, 0.16);
  --shadow-search: 0 6px 20px rgba(14, 64, 67, 0.08);
  --shadow-float: 0 4px 16px rgba(10, 12, 17, 0.10);
  --shadow-sheet: 0 -6px 24px rgba(10, 12, 17, 0.07);

  --map-land: #f2f4f6;
  --map-water: #bde1f6;
  --map-park: #ddf2e4;
  --map-road: #ffffff;
  --map-highway: #d8dee4;
  --map-label: #3d4347;

  --font-sans: 'Google Sans GSM', 'Public Sans XanhSM', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --gsm-cyan: #2dccd3;
  --gsm-cyan-main: #2dccd3;
  --gsm-cyan-price: #4ed2d9;
  --gsm-cyan-deep: #8de2e7;
  --gsm-cyan-tint: #123135;
  --gsm-cyan-tint-soft: #10282b;
  --gsm-cyan-border: #1e4f55;

  --gsm-gold: #ffca28;
  --gsm-gold-tint: #382c0a;
  --gsm-gold-ink: #ffd54f;

  --gsm-green: #4eda71;
  --gsm-green-wash: #0c2b19;

  --gsm-warn: #ff9e44;
  --gsm-warn-tint: #3a220c;
  --gsm-danger: #ff6b61;
  --gsm-danger-tint: #3b1616;
  --gsm-info: #6ca2e0;

  --bg-stage: radial-gradient(circle at 22% 16%, #0d2b30 0%, #050f12 72%);
  --surface-phone: #0e1619;
  --surface-canvas: #0a1114;
  --surface-card: #152125;
  --surface-tile: #19272c;
  --surface-elevated: #18262b;
  --surface-subtle: #1b2a2f;
  --surface-navbar: #121d21;
  --ink-primary: #f5f7f7;
  --ink-strong: #dce4e4;
  --ink-secondary: #a1abab;
  --ink-tertiary: #828b8c;
  --border-light: #223439;
  --border-strong: #324a50;

  --hero-ride-bg: linear-gradient(135deg, #152d31 0%, #133b41 62%, #11474f 100%);
  --frost-badge-bg: rgba(14, 64, 67, 0.72);
  --frost-badge-ink: #afebee;

  --shadow-phone: 0 32px 84px rgba(0, 0, 0, 0.76), 0 0 0 9px #1a2a2e, 0 0 0 10.5px rgba(45, 204, 211, 0.32);
  --shadow-search: 0 6px 20px rgba(0, 0, 0, 0.42);
  --shadow-float: 0 8px 24px rgba(0, 0, 0, 0.44);
  --shadow-sheet: 0 -8px 28px rgba(0, 0, 0, 0.48);

  --map-land: #132125;
  --map-water: #0c3142;
  --map-park: #142e26;
  --map-road: #1f3338;
  --map-highway: #2a4454;
  --map-label: #9fb0b5;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.42;
  letter-spacing: -0.005em;
  color: var(--ink-primary);
  background: var(--surface-canvas);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
select,
input,
textarea {
  font: inherit;
  font-variant-numeric: tabular-nums;
  color: inherit;
}

button {
  cursor: pointer;
}

.phone-shell img,
.phone-shell svg,
.demo-floating-dock img {
  display: block;
  flex-shrink: 0;
}

button:disabled {
  opacity: 0.56;
  cursor: not-allowed;
}

button:focus-visible,
select:focus-visible,
input:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gsm-cyan);
  outline-offset: 2px;
}

html[data-litemode="true"] body {
  font-size: 15.5px;
}

html[data-litemode="true"] .gsm-book-cta,
html[data-litemode="true"] .gsm-pill-cta {
  height: 52px;
  font-size: 16px;
}

/* ==========================================================================
   STAGE & PHONE SHELL (393 × 852 Native Mobile Frame)
   ========================================================================== */
body.mobile-stage-body {
  background: var(--bg-stage);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  min-height: 100dvh;
  padding: 16px;
  overflow-x: hidden;
}

.phone-shell {
  position: relative;
  width: 393px;
  max-width: 100%;
  height: min(852px, calc(100dvh - 32px));
  min-height: 680px;
  background: var(--surface-phone);
  border-radius: 40px;
  box-shadow: var(--shadow-phone);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 2;
  flex-shrink: 0;
}

/* Status Bar */
.gsm-statusbar {
  position: relative;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 22px 6px;
  background: var(--surface-phone);
  color: var(--ink-primary);
  user-select: none;
  flex-shrink: 0;
}

.sb-left,
.sb-right {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.sb-time {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
}

.sb-battery {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 12px;
  border-radius: 3.5px;
  background: #28b463;
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  margin-right: 2px;
}

.sb-battery::after {
  content: "";
  position: absolute;
  right: -2.4px;
  top: 3.6px;
  width: 1.5px;
  height: 4.6px;
  border-radius: 0 1.5px 1.5px 0;
  background: rgba(120, 120, 128, 0.6);
}

/* ==========================================================================
   ACTIVITY 1: MAINFRAGMENT SHELL (SCROLLABLE TAB + WHITE BOTTOM NAVBAR)
   ========================================================================== */
.gsm-main-shell {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface-phone);
}

.gsm-viewport-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}

.gsm-viewport-scroll::-webkit-scrollbar {
  display: none;
}

/* Genuine White Bottom Navigation Bar (Neutral_Background_General_c_bg_navbar = #ffffff) */
.gsm-bottom-nav {
  flex-shrink: 0;
  height: 62px;
  background: var(--surface-navbar);
  border-top: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  padding: 4px 6px 6px;
  z-index: 15;
}

.gsm-nav-tab {
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px 2px;
  color: #7f7f7f;
  font-size: 11px;
  font-weight: 500;
}

.gsm-nav-tab img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.gsm-nav-tab.active {
  color: var(--gsm-cyan-main);
  font-weight: 600;
}

.gsm-nav-icon-wrap {
  position: relative;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-red-dot {
  position: absolute;
  top: 0;
  right: -1px;
  width: 7.5px;
  height: 7.5px;
  border-radius: 50%;
  background: #e72525;
  border: 1.5px solid var(--surface-navbar);
}

/* ==========================================================================
   TAB 1: AUTHENTIC GREEN SM v5.14.0 HOME SCREEN (homepage_v5)
   ========================================================================== */
.gsm-home-screen {
  display: flex;
  flex-direction: column;
  background: var(--surface-phone);
  padding-bottom: 18px;
}

.gsm-home-masthead {
  position: relative;
  padding: 6px 16px 12px;
}

.gsm-home-map-backdrop {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.72) 70%, var(--surface-phone) 100%),
    url('/static/gsm_assets/background_home_page.webp');
  background-size: 100% 100%, 393px auto;
  background-position: top center;
  pointer-events: none;
  z-index: 0;
}

:root[data-theme="dark"] .gsm-home-map-backdrop {
  background-image:
    linear-gradient(180deg, rgba(14, 22, 25, 0.55) 0%, rgba(14, 22, 25, 0.90) 72%, var(--surface-phone) 100%),
    url('/static/gsm_assets/background_home_page.webp');
  filter: invert(0.88) hue-rotate(165deg);
  opacity: 0.34;
}

.gsm-home-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.gsm-loc-bar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 220px;
  border: 0;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(8px);
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(10, 12, 17, 0.06);
  text-align: left;
}

:root[data-theme="dark"] .gsm-loc-bar {
  background: rgba(21, 33, 37, 0.88);
}

.gsm-loc-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.18;
}

.gsm-loc-copy small {
  font-size: 10px;
  font-weight: 500;
  color: var(--ink-secondary);
}

.gsm-loc-copy strong {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gsm-topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.gsm-vpoint-pill,
.gsm-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  border: 1px solid var(--border-light);
  background: var(--surface-card);
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(10, 12, 17, 0.05);
}

.gsm-vpoint-pill img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.gsm-search-wrap {
  position: relative;
  z-index: 2;
}

.gsm-search-pill {
  width: 100%;
  height: 48px;
  border-radius: 999px;
  border: 1px solid var(--gsm-cyan-border);
  background: var(--surface-card);
  box-shadow: var(--shadow-search);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  text-align: left;
  color: var(--ink-strong);
  font-size: 14.5px;
  font-weight: 500;
}

/* Ongoing Ride Pill */
.active-trip-live-pill {
  margin: 0 16px 12px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--gsm-cyan-border);
  background: var(--gsm-cyan-tint);
  color: var(--ink-primary);
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 600;
  text-align: left;
}

.active-trip-live-pill span:nth-child(2) {
  flex: 1;
  min-width: 0;
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gsm-cyan-main);
  box-shadow: 0 0 0 4px rgba(45, 204, 211, 0.24);
  flex-shrink: 0;
}

/* 2 Signature Hero Ride Cards (Đặt xe & Đặt xe máy) */
.gsm-hero-rides {
  padding: 2px 16px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.gsm-ride-hero-card {
  position: relative;
  height: 96px;
  border-radius: 16px;
  border: 1px solid var(--gsm-cyan-border);
  background: var(--hero-ride-bg);
  padding: 13px 14px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  transition: transform 0.12s ease;
}

.gsm-ride-hero-card:active {
  transform: scale(0.985);
}

.gsm-hero-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-primary);
  letter-spacing: -0.01em;
}

.gsm-frost-badge {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  padding: 2.5px 8px;
  border-radius: 999px;
  background: var(--frost-badge-bg);
  color: var(--frost-badge-ink);
  font-size: 11px;
  font-weight: 600;
}

.gsm-hero-3d-car {
  position: absolute;
  right: -4px;
  bottom: 2px;
  width: 90px;
  height: auto;
  pointer-events: none;
}

.gsm-hero-3d-bike {
  position: absolute;
  right: 4px;
  bottom: 3px;
  width: 74px;
  height: auto;
  pointer-events: none;
}

/* 2x4 Clean Service Icon Grid (NO heavy gray card boxes!) */
.gsm-other-services {
  padding: 2px 16px 18px;
}

.gsm-services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 8px;
  row-gap: 16px;
}

.gsm-svc-item {
  position: relative;
  border: 0;
  background: transparent;
  padding: 2px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
}

.gsm-svc-tile {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--surface-tile);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.12s ease, background 0.12s ease;
}

.gsm-svc-item:hover .gsm-svc-tile {
  background: var(--gsm-cyan-tint);
}

.gsm-svc-tile>img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  object-position: center center;
  display: block;
  margin: 0;
}

.gsm-svc-more-tile {
  background: var(--gsm-cyan-tint);
}

.gsm-svc-more-tile>img {
  width: 24px;
  height: 24px;
}

.gsm-svc-label {
  width: 100%;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-primary);
  white-space: nowrap;
  line-height: 1.2;
}

.gsm-svc-badge {
  position: absolute;
  top: -6px;
  right: -7px;
  padding: 1.5px 6px;
  line-height: 1.15;
  border-radius: 999px;
  background: #ffca00;
  color: #0a0c11;
  font-size: 9.8px;
  font-weight: 700;
  white-space: nowrap;
  border: 1.5px solid var(--surface-phone);
  z-index: 3;
  pointer-events: none;
}

/* Section Headers */
.gsm-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.gsm-section-head h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink-primary);
  letter-spacing: -0.01em;
}

/* Food Flash Section */
.gsm-food-section {
  padding: 14px 16px 16px;
  border-top: 6px solid var(--surface-canvas);
}

.gsm-dots-btn {
  border: 0;
  background: transparent;
  padding: 2px;
  display: inline-flex;
  align-items: center;
}

.gsm-food-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.gsm-food-card {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.gsm-food-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-subtle);
}

.gsm-food-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gsm-food-name {
  margin-top: 6px;
  font-size: 12.8px;
  font-weight: 600;
  color: var(--ink-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gsm-food-price {
  margin-top: 2px;
  display: flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
}

.gsm-food-price strong {
  font-size: 12.8px;
  font-weight: 700;
  color: var(--gsm-cyan-price);
}

.gsm-food-price del {
  font-size: 10.5px;
  color: var(--ink-tertiary);
}

/* Home Banners & Ecosystem Cards */
.gsm-home-banners {
  padding: 14px 16px 6px;
  border-top: 6px solid var(--surface-canvas);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gsm-airport-banner-card {
  border: 1px solid var(--border-light);
  background: var(--surface-card);
  border-radius: 16px;
  overflow: hidden;
  padding-bottom: 10px;
}

.gsm-airport-banner-img {
  width: 100%;
  height: 98px;
  object-fit: cover;
  display: block;
}

.gsm-airport-banner-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 6px;
}

.airport-guide-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
}

.airport-promo-copy {
  flex: 1;
  min-width: 0;
}

.airport-promo-copy strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-primary);
}

.airport-promo-copy span {
  display: block;
  font-size: 11.5px;
  color: var(--ink-secondary);
}

.airport-mini-actions,
.live-quick-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 12px;
}

.live-quick-tools {
  padding: 0;
  margin-bottom: 8px;
}

.mini-tag-btn {
  border: 1px solid var(--border-strong);
  background: var(--surface-card);
  color: var(--ink-strong);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
}

.mini-tag-btn.primary {
  border-color: var(--gsm-cyan);
  background: var(--gsm-cyan);
  color: #0a0c11;
}

.gsm-utility-cards-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.gsm-mini-feature-card {
  border: 1px solid var(--border-light);
  background: var(--surface-tile);
  border-radius: 14px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-align: left;
}

.gsm-mini-feature-card img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  object-position: center center;
  border-radius: 7px;
}

.gsm-mini-feature-card strong {
  display: block;
  font-size: 11.8px;
  font-weight: 600;
  color: var(--ink-primary);
  line-height: 1.22;
}

.gsm-mini-feature-card small {
  display: block;
  font-size: 10.2px;
  color: var(--ink-secondary);
  line-height: 1.2;
}

/* ==========================================================================
   ACTIVITY 2: STANDALONE FULL-SCREEN RIDE BOOKING (GSMRideActivity 1:1)
   Exact Layout Cloned from Live Green SM Rider Screenshot
   ========================================================================== */
.gsm-booking-activity {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface-phone);
  overflow: hidden;
}

.map-viewport {
  position: relative;
  height: 432px;
  flex-shrink: 0;
  background: var(--map-land);
  overflow: hidden;
  transition: height 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Expanded Sheet State (1:1 Match to Screenshot 3 — Map peeks 42px at top) */
.gsm-booking-activity.sheet-expanded .map-viewport {
  height: 42px;
  cursor: pointer;
}

.gsm-booking-activity.sheet-expanded .map-floating-back,
.gsm-booking-activity.sheet-expanded .map-for-other-pill,
.gsm-booking-activity.sheet-expanded .map-FloatingCallout {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
}

.gsm-booking-activity.sheet-expanded .map-safety-shield-btn {
  bottom: 14px;
  transform: scale(0.86);
  transform-origin: left bottom;
}

.map-svg {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.25s ease;
}

.map-route-glow {
  stroke: #2dccd3;
  stroke-width: 9;
  stroke-linecap: round;
  opacity: 0.22;
  fill: none;
}

.map-route-line {
  stroke: #22bfc6;
  stroke-width: 4.5;
  stroke-linecap: round;
  fill: none;
}

.ride-circle-back {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  border: 1px solid rgba(10, 12, 17, 0.05);
  background: var(--surface-card);
  box-shadow: 0 3px 12px rgba(10, 12, 17, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}

.map-floating-back {
  position: absolute;
  top: 10px;
  left: 14px;
  z-index: 6;
}

.map-for-other-pill {
  position: absolute;
  top: 10px;
  right: 14px;
  z-index: 6;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(10, 12, 17, 0.05);
  background: var(--surface-card);
  box-shadow: 0 3px 12px rgba(10, 12, 17, 0.12);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.8px;
  font-weight: 600;
  color: var(--ink-primary);
}

:root[data-theme="dark"] .ride-circle-back img,
:root[data-theme="dark"] .svc-back-btn img,
:root[data-theme="dark"] .voucher-close-btn img {
  filter: invert(0.92);
}

/* Floating Pickup & Dropoff Callout Bubbles Directly on Map */
.map-FloatingCallout {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.pickup-callout {
  top: 162px;
  right: 14px;
  align-items: center;
}

.dropoff-callout {
  bottom: 66px;
  left: 12px;
}

.dropoff-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.map-eta-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 8px 8px 0 0;
  background: #d8f6f8;
  color: #0d7a80;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.25;
  box-shadow: 0 2px 6px rgba(10, 12, 17, 0.06);
}

:root[data-theme="dark"] .map-eta-badge {
  background: #143d42;
  color: #8de2e7;
}

.map-callout-bubble {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--surface-card);
  border-radius: 10px;
  padding: 6px 8px 6px 10px;
  box-shadow: 0 4px 14px rgba(10, 12, 17, 0.13);
  border: 1px solid rgba(10, 12, 17, 0.05);
  max-width: 196px;
}

.dropoff-stack .map-callout-bubble {
  border-top-left-radius: 0;
}

.map-callout-bubble select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-primary);
  padding: 0;
  margin: 0;
  width: 158px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.callout-chevron {
  opacity: 0.55;
  pointer-events: none;
}

.map-circle-action {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(10, 12, 17, 0.05);
  background: var(--surface-card);
  box-shadow: 0 4px 12px rgba(10, 12, 17, 0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}

.map-safety-shield-btn {
  position: absolute;
  left: 14px;
  bottom: 22px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1.2px solid #5bc482;
  background: var(--surface-card);
  box-shadow: 0 3px 10px rgba(10, 12, 17, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.map-float-tools {
  position: absolute;
  right: 12px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 5;
}

.map-tool-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 8px rgba(10, 12, 17, 0.10);
  color: var(--ink-primary);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

:root[data-theme="dark"] .map-tool-btn {
  background: rgba(21, 33, 37, 0.92);
}

/* TripService Bottom Sheet */
.trip-sheet {
  flex: 1;
  min-height: 0;
  margin-top: -14px;
  background: var(--surface-card);
  border-radius: 22px 22px 0 0;
  box-shadow: var(--shadow-sheet);
  position: relative;
  z-index: 6;
  display: flex;
  flex-direction: column;
}

.sheet-handle-btn {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 8px 16px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ns-resize;
  touch-action: none;
  flex-shrink: 0;
}

.sheet-handle {
  width: 38px;
  height: 4px;
  border-radius: 999px;
  background: #dfe5e5;
  margin: 0 auto;
  flex-shrink: 0;
  transition: background 0.15s ease, width 0.15s ease;
}

.sheet-handle-btn:hover .sheet-handle {
  background: #b7c4c6;
  width: 46px;
}

.vehicle-group-heading {
  margin: 2px 0 4px;
  padding: 0 16px;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink-primary);
  letter-spacing: -0.01em;
}

.bike-group-heading {
  margin-top: 10px;
  padding-top: 6px;
}

.ride-mode-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 14px 8px;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}

.ride-mode-pill {
  border: 1px solid var(--border-light);
  background: var(--surface-tile);
  color: var(--ink-strong);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.ride-mode-pill.active {
  background: var(--gsm-cyan-tint);
  border-color: var(--gsm-cyan);
  color: var(--gsm-cyan-deep);
}

.gsm-alert-banner {
  margin: 6px 14px 0;
  padding: 7px 12px;
  border-radius: 10px;
  background: var(--gsm-warn-tint);
  color: var(--gsm-warn);
  font-size: 12px;
  font-weight: 500;
  border-left: 3.5px solid var(--gsm-warn);
  flex-shrink: 0;
}

.gsm-alert-banner[data-tone="danger"] {
  background: var(--gsm-danger-tint);
  color: var(--gsm-danger);
  border-left-color: var(--gsm-danger);
}

.trip-tiers-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
}

.trip-tiers-scroll::-webkit-scrollbar {
  display: none;
}

/* 1:1 TripServiceViewItem List + Selected Savings Wrapper */
.tiers-list,
.bike-tiers-list {
  padding: 4px 14px 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tier-item-shell {
  border-radius: 16px;
  background: transparent;
  transition: background 0.14s ease;
}

.tier-item-shell.selected {
  background: var(--gsm-cyan-tint);
}

.tier,
.gsm-extra-tier-card,
.bike-option-card {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border-radius: 15px;
  border: 1.5px solid transparent;
  background: var(--surface-card);
  transition: border-color 0.14s ease, background 0.14s ease;
}

.tier.selected,
.gsm-extra-tier-card.selected,
.bike-option-card.selected {
  background: var(--surface-card);
  border-color: var(--gsm-cyan);
}

.tier.unavailable-tier {
  opacity: 0.46;
}

.unavailable-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-secondary);
}

.tier-saving-strip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-primary);
}

.tier-saving-strip img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.tier-car-art {
  position: relative;
  width: 58px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tier.selected .tier-car-art,
.gsm-extra-tier-card.selected .tier-car-art {
  width: 64px;
  height: 44px;
}

.car-eng-badge {
  position: absolute;
  top: -1px;
  right: -3px;
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--gsm-cyan);
  color: #ffffff;
  font-size: 8px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.tier-desc-line {
  display: none;
  margin-top: 2px;
  font-size: 11.8px;
  color: var(--ink-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gsm-booking-activity.sheet-expanded .tier-desc-line {
  display: block;
}

.tier-car-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tier-meta {
  flex: 1;
  min-width: 0;
}

.tier-title-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.tier-title-row strong {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tier-info-ic {
  width: 15px;
  height: 15px;
  object-fit: contain;
  opacity: 0.82;
}

.tier-sub-row {
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-secondary);
}

.seat-pill,
.eta-clock-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 500;
  flex-shrink: 0;
}

.seat-pill img,
.eta-clock-pill img {
  width: 12.5px;
  height: 12.5px;
  object-fit: contain;
  opacity: 0.66;
}

.tier .price,
.gsm-extra-tier-card .price,
.bike-option-card .price {
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
}

.price-main-line {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.low-fare-ic {
  width: 10px;
  height: 10px;
  object-fit: contain;
}

.tier .price strong,
.gsm-extra-tier-card .price strong,
.bike-option-card .price strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-primary);
}

.tier .price del,
.gsm-extra-tier-card .price del,
.bike-option-card .price del {
  display: block;
  margin-top: 1px;
  font-size: 11.5px;
  color: var(--ink-tertiary);
}

.tier-empty-row {
  margin: 4px 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-subtle);
  color: var(--ink-secondary);
  font-size: 13px;
}

/* Priority Boost Banner Dock (Fixed above composeBottomBar like live app) */
.trip-boost-dock {
  flex-shrink: 0;
  border-top: 1px solid var(--border-light);
  padding: 9px 14px 6px;
  background: var(--surface-card);
}

.gsm-boost-banner {
  margin: 0;
  width: 100%;
  padding: 9px 12px;
  border-radius: 11px;
  border: 0;
  background:
    radial-gradient(circle at 26px 50%, rgba(255, 169, 64, 0.16) 0%, transparent 56%),
    var(--surface-tile);
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-primary);
}

.gsm-boost-banner.active {
  background: #fff7e8;
  outline: 1px solid #ffb74d;
}

.gsm-boost-banner span {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.boost-chevron {
  opacity: 0.55;
}

/* Ride Add-ons Strip */
.ride-prefs-strip {
  display: flex;
  gap: 6px;
  padding: 2px 14px 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.ride-prefs-strip::-webkit-scrollbar {
  display: none;
}

.pref-chip {
  border: 1px solid var(--border-light);
  background: var(--surface-tile);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink-strong);
}

.pref-chip[aria-pressed="true"],
.promo-wallet-chip {
  background: var(--gsm-cyan-tint);
  border-color: var(--gsm-cyan);
  color: var(--gsm-cyan-deep);
  font-weight: 600;
}

/* Sticky 2-Row composeBottomBar (1:1 Match to Screenshot 1) */
.trip-bottom-bar {
  flex-shrink: 0;
  background: var(--surface-elevated);
  padding: 4px 14px 8px;
  z-index: 7;
}

.bottom-bar-top-row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 1px minmax(0, 1.25fr) 1px auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.bottom-bar-divider {
  height: 16px;
  background: var(--border-light);
}

.payment-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.payment-cell label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.payment-cell select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  border: 0;
  background: transparent;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-primary);
  padding: 2px 0;
  text-overflow: ellipsis;
  cursor: pointer;
}

.promo-cell-btn {
  border: 0;
  background: transparent;
  color: var(--ink-primary);
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 2px 4px;
  font-size: 12.5px;
  font-weight: 500;
  min-width: 0;
}

.promo-cell-btn span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.options-cell-btn {
  border: 0;
  background: transparent;
  color: var(--ink-primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 2px;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}

.bottom-bar-cta-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bottom-quick-icon-btn {
  border: 0;
  background: transparent;
  padding: 2px 4px;
  min-width: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--ink-primary);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

/* Primary Solid GSMButton (#2dccd3 with pure white bold label) */
.gsm-book-cta {
  flex: 1;
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 12px;
  background: var(--gsm-cyan);
  color: #ffffff;
  font-size: 15.5px;
  font-weight: 700;
  padding: 0 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: filter 0.12s ease;
}

.gsm-home-indicator {
  width: 128px;
  height: 4.5px;
  border-radius: 999px;
  background: var(--ink-primary);
  opacity: 0.85;
  margin: 8px auto 1px;
}

.gsm-book-cta:hover {
  filter: brightness(0.97);
}

.gsm-pill-cta {
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--gsm-cyan);
  color: #0a0c11;
  font-size: 14px;
  font-weight: 700;
  padding: 0 16px;
  white-space: nowrap;
}

.gsm-outlined-refresh {
  height: 42px;
  border-radius: 12px;
  border: 1.5px solid var(--gsm-cyan);
  background: var(--gsm-cyan-tint);
  color: var(--gsm-cyan-deep);
  font-size: 13px;
  font-weight: 600;
  padding: 0 14px;
  white-space: nowrap;
}

/* ==========================================================================
   TABS 2-4 & 14 FULL-SCREEN SERVICE MINI-APPS
   ========================================================================== */
.gsm-services-host {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--surface-phone);
  scrollbar-width: none;
}

.gsm-services-host::-webkit-scrollbar {
  display: none;
}

.gsm-subpage,
.gsm-service-page {
  padding: 10px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.subpage-header,
.service-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.subpage-header h2,
.service-topbar h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.service-topbar h2 {
  flex: 1;
}

.svc-back-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border-light);
  background: var(--surface-tile);
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 0;
  flex-shrink: 0;
}

.subpage-badge,
.svc-pill-tag,
.law-badge-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gsm-cyan-tint);
  color: var(--gsm-cyan-deep);
  font-size: 11.5px;
  font-weight: 600;
  border: 0;
}

.text-action-btn {
  border: 0;
  background: transparent;
  color: var(--gsm-cyan-main);
  font-size: 12.5px;
  font-weight: 600;
}

.filter-chips-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.filter-chips-row::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  border: 1px solid var(--border-light);
  background: var(--surface-tile);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink-strong);
}

.filter-chip.active {
  background: var(--gsm-cyan);
  border-color: var(--gsm-cyan);
  color: #0a0c11;
  font-weight: 600;
}

.subpage-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-card,
.notif-card {
  border: 1px solid var(--border-light);
  background: var(--surface-card);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.notif-card.unread {
  border-color: var(--gsm-cyan-border);
  background: var(--gsm-cyan-tint-soft);
}

.order-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.order-card-head img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
}

.order-head-meta {
  flex: 1;
  min-width: 0;
}

.order-head-meta strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
}

.order-head-meta small {
  font-size: 11.5px;
  color: var(--ink-tertiary);
}

.status-pill {
  padding: 2.5px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: var(--gsm-green-wash);
  color: var(--gsm-green);
}

.status-pill.live {
  background: var(--gsm-cyan-tint);
  color: var(--gsm-cyan-deep);
}

.order-route-line {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-secondary);
}

.order-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
}

.order-card-foot strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-primary);
}

.gsm-mini-cta,
.gsm-mini-outline-btn {
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
}

.gsm-mini-cta {
  border: 0;
  background: var(--gsm-cyan);
  color: #0a0c11;
}

.gsm-mini-outline-btn {
  border: 1px solid var(--gsm-cyan);
  background: var(--gsm-cyan-tint);
  color: var(--gsm-cyan-deep);
}

/* Account Page (account_page_v5) */
.account-profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  background: var(--surface-card);
}

.account-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gsm-cyan);
  color: #0a0c11;
  font-weight: 700;
  font-size: 15px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.account-meta {
  flex: 1;
  min-width: 0;
}

.account-meta strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

.account-meta span {
  font-size: 12px;
  color: var(--ink-secondary);
}

.vinclub-hero-card {
  background: linear-gradient(135deg, #0e4043 0%, #1d858b 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vinclub-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vinclub-top img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.vinclub-eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #afebee;
}

.vinclub-rate-pill {
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 202, 0, 0.22);
  color: #ffe066;
  font-size: 11px;
  font-weight: 600;
}

.vinclub-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 9px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.10);
}

.vinclub-stats-grid small {
  display: block;
  font-size: 10.5px;
  color: #cdf2f4;
}

.vinclub-stats-grid strong {
  font-size: 13px;
  font-weight: 700;
}

.green-forest-line {
  margin: 0;
  font-size: 11.5px;
  color: #eefbfb;
}

.account-menu-group {
  border: 1px solid var(--border-light);
  background: var(--surface-card);
  border-radius: 16px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
}

.account-menu-group h3 {
  margin: 2px 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-tertiary);
}

.account-row-switch,
.account-nav-row {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 10px 2px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}

.account-row-switch>img:first-child,
.account-nav-row>img:first-child {
  width: 28px;
  height: 28px;
  object-fit: contain;
  object-position: center center;
  flex-shrink: 0;
}

.row-chevron {
  width: 16px;
  height: 16px;
  opacity: 0.6;
  flex-shrink: 0;
}

.account-row-switch div,
.account-nav-row div {
  flex: 1;
  min-width: 0;
}

.account-row-switch strong,
.account-nav-row strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
}

.account-row-switch small,
.account-nav-row small {
  display: block;
  font-size: 11.5px;
  color: var(--ink-secondary);
}

.budget-meter {
  height: 6px;
  border-radius: 999px;
  background: var(--surface-subtle);
  overflow: hidden;
}

.budget-meter>span {
  display: block;
  height: 100%;
  background: var(--gsm-cyan-main);
}

/* Switch Control */
input.gsm-switch {
  appearance: none;
  -webkit-appearance: none;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: var(--border-strong);
  position: relative;
  margin: 0;
  cursor: pointer;
  transition: background 0.18s ease;
  flex-shrink: 0;
}

input.gsm-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s ease;
}

input.gsm-switch:checked {
  background: var(--gsm-cyan);
}

input.gsm-switch:checked::after {
  transform: translateX(18px);
}

/* Shared Mini-App Forms & Lists */
.svc-search-box input,
.svc-input,
.svc-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: var(--surface-tile);
  font-size: 13px;
}

.svc-form-card {
  border: 1px solid var(--border-light);
  background: var(--surface-card);
  border-radius: 15px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.svc-lbl {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
  margin-top: 2px;
}

.exp-addons-grid,
.gc-amounts-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.exp-addon-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--surface-tile);
  border: 1px solid var(--border-light);
  font-size: 11.5px;
  font-weight: 500;
}

.svc-hero-banner {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 14px;
}

.svc-segment-toggle {
  display: flex;
  gap: 6px;
  align-items: center;
}

.seg-btn {
  flex: 1;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: var(--surface-tile);
  font-size: 12px;
  font-weight: 600;
}

.seg-btn.active {
  background: var(--gsm-cyan-tint);
  border-color: var(--gsm-cyan);
  color: var(--gsm-cyan-deep);
}

.seg-select {
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: var(--surface-card);
  font-size: 12px;
  font-weight: 600;
}

.sticky-service-cta {
  position: sticky;
  bottom: 4px;
  background: var(--surface-elevated);
  border: 1px solid var(--gsm-cyan-border);
  box-shadow: var(--shadow-float);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cart-summary-left strong {
  display: block;
  font-size: 14px;
  color: var(--gsm-cyan-price);
}

.cart-summary-left span {
  font-size: 11.5px;
  color: var(--ink-secondary);
}

.food-row-card {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--border-light);
  background: var(--surface-card);
  border-radius: 14px;
  padding: 10px;
}

.food-row-card img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.food-row-meta {
  flex: 1;
  min-width: 0;
}

.food-row-meta strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
}

.food-row-meta small {
  display: block;
  font-size: 11.5px;
  color: var(--ink-secondary);
}

.member-plan-card {
  border: 1.5px solid var(--border-light);
  background: var(--surface-card);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.member-plan-card.featured {
  border-color: var(--gsm-cyan);
  background: var(--gsm-cyan-tint-soft);
}

.plan-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.plan-head img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.plan-head h3 {
  margin: 2px 0 4px;
  font-size: 15px;
}

.plan-head p {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-secondary);
}

.plan-tag {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--gsm-cyan-deep);
}

.plan-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
}

.plan-foot strong {
  display: block;
  font-size: 16px;
  color: var(--gsm-cyan-price);
}

.plan-foot span {
  font-size: 11px;
  color: var(--ink-tertiary);
}

.giftcard-preview-card {
  background: linear-gradient(135deg, #0e4043 0%, #14abb2 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.giftcard-preview-card img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.giftcard-preview-card strong {
  display: block;
  font-size: 20px;
  margin: 2px 0;
}

.giftcard-preview-card p {
  margin: 0;
  font-size: 12px;
  color: #eefbfb;
}

.all-services-directory {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dir-card {
  border: 1px solid var(--border-light);
  background: var(--surface-card);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.dir-card img {
  width: 38px;
  height: 38px;
  padding: 4px;
  border-radius: 10px;
  background: var(--surface-tile);
  object-fit: contain;
  object-position: center center;
  flex-shrink: 0;
}

.dir-card strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
}

.dir-card small {
  font-size: 11.5px;
  color: var(--ink-secondary);
}

/* ==========================================================================
   IN-FRAME BOTTOM SHEETS & DIALOG
   ========================================================================== */
.inframe-overlay {
  position: absolute;
  inset: 0;
  z-index: 25;
  background: rgba(10, 12, 17, 0.52);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Full-Screen Ưu đãi Activity (1:1 Match to Screenshot 2) */
.voucher-fullscreen-overlay {
  top: 34px;
  background: var(--surface-phone);
  justify-content: flex-start;
  z-index: 28;
}

.voucher-page-shell {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface-phone);
}

.voucher-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 10px;
}

.voucher-topbar h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-primary);
}

.voucher-close-btn,
.voucher-topbar-spacer {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.voucher-tabs-row {
  display: flex;
  gap: 8px;
  padding: 2px 16px 12px;
}

.voucher-tab-pill {
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: var(--surface-card);
  color: var(--ink-primary);
  font-size: 13.5px;
  font-weight: 600;
}

.voucher-tab-pill.active {
  background: #33383b;
  border-color: #33383b;
  color: #ffffff;
}

:root[data-theme="dark"] .voucher-tab-pill.active {
  background: var(--gsm-cyan);
  border-color: var(--gsm-cyan);
  color: #ffffff;
}

.voucher-input-box {
  margin: 0 16px;
  height: 46px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: var(--surface-card);
  display: flex;
  align-items: center;
  gap: 10px;
}

.voucher-input-ic {
  opacity: 0.45;
}

.voucher-input-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 13.5px;
  color: var(--ink-primary);
  outline: none;
}

.voucher-input-box input::placeholder {
  color: #9ba3a6;
}

.voucher-inline-apply-btn {
  border: 0;
  background: transparent;
  color: var(--gsm-cyan-main);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 6px;
  white-space: nowrap;
}

.voucher-scroll-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 16px 16px;
  scrollbar-width: none;
}

.voucher-scroll-body::-webkit-scrollbar {
  display: none;
}

.voucher-sec-title {
  margin: 0 0 2px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink-primary);
}

.voucher-sec-sub {
  margin: 0 0 12px;
  font-size: 12.5px;
  color: var(--ink-secondary);
}

.voucher-sec-gap {
  margin-top: 18px;
  margin-bottom: 10px;
}

/* Notched Perforated Ticket Cards (1:1 Match to Screenshot 2) */
.gsm-ticket-card {
  position: relative;
  width: 100%;
  min-height: 78px;
  margin-bottom: 10px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: var(--surface-card);
  display: flex;
  align-items: stretch;
  text-align: left;
  padding: 0;
  overflow: hidden;
  transition: border-color 0.14s ease, background 0.14s ease;
}

.gsm-ticket-card.checked {
  background: #eefbfb;
  border-color: #9ee5e9;
}

:root[data-theme="dark"] .gsm-ticket-card.checked {
  background: var(--gsm-cyan-tint);
  border-color: var(--gsm-cyan);
}

.gsm-ticket-card.dimmed .ticket-body strong {
  color: var(--ink-secondary);
}

.ticket-stub {
  position: relative;
  width: 78px;
  flex-shrink: 0;
  border-right: 1px dashed var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-tile);
}

.ticket-stub::before,
.ticket-stub::after {
  content: "";
  position: absolute;
  right: -6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--surface-phone);
  border: 1px solid var(--border-light);
  z-index: 2;
}

.ticket-stub::before {
  top: -6px;
}

.ticket-stub::after {
  bottom: -6px;
}

.ticket-stub img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ticket-body {
  flex: 1;
  min-width: 0;
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.ticket-body strong {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.32;
  color: var(--ink-primary);
}

.ticket-body small {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: var(--ink-secondary);
  line-height: 1.28;
}

.ticket-body small img {
  width: 12px;
  height: 12px;
  opacity: 0.6;
}

.ticket-action-col {
  padding-right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ticket-checkbox {
  width: 21px;
  height: 21px;
  border-radius: 5px;
  border: 1.6px solid #d2d9db;
  background: var(--surface-card);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ticket-checkbox.on {
  background: var(--gsm-cyan);
  border-color: var(--gsm-cyan);
}

.voucher-sticky-footer {
  flex-shrink: 0;
  padding: 8px 16px 8px;
  background: var(--surface-phone);
  border-top: 1px solid var(--border-light);
}

.voucher-saving-banner {
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: linear-gradient(90deg, #e8fbf8 0%, #ddf7f4 60%, #f5fcfc 100%);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.8px;
  color: var(--ink-primary);
}

:root[data-theme="dark"] .voucher-saving-banner {
  background: var(--gsm-cyan-tint);
}

.voucher-saving-banner>span {
  flex: 1;
  min-width: 0;
}

.voucher-count-tag {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-primary);
}

.inframe-sheet {
  background: var(--surface-card);
  border-radius: 20px 20px 0 0;
  padding: 8px 16px 20px;
  box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.28);
  max-height: 84%;
  overflow-y: auto;
}

.inframe-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.inframe-close {
  border: 1px solid var(--border-light);
  background: var(--surface-tile);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 600;
}

.inframe-title {
  margin: 0 0 6px;
  font-size: 16.5px;
  font-weight: 700;
}

.inframe-sub {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: var(--ink-secondary);
}

.live-stage-pill {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--gsm-cyan-tint);
  color: var(--gsm-cyan-deep);
  font-size: 11px;
  font-weight: 600;
}

.live-progress-track {
  height: 6px;
  border-radius: 999px;
  background: var(--surface-subtle);
  overflow: hidden;
  margin-bottom: 10px;
}

.live-progress-track span {
  display: block;
  height: 100%;
  background: var(--gsm-cyan);
  transition: width 0.3s ease;
}

.live-driver-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 13px;
  background: var(--surface-tile);
  margin-bottom: 8px;
}

.driver-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gsm-cyan);
  color: #0a0c11;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.driver-info {
  flex: 1;
  min-width: 0;
}

.driver-info strong {
  display: block;
  font-size: 13.5px;
}

.driver-info span {
  font-size: 11.5px;
  color: var(--ink-secondary);
}

.plate-badge {
  padding: 4px 8px;
  border-radius: 7px;
  background: var(--gsm-gold-tint);
  color: var(--gsm-gold-ink);
  font-size: 12px;
  font-weight: 700;
}

.chat-log-mini {
  max-height: 92px;
  overflow-y: auto;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface-tile);
  font-size: 12px;
  margin-bottom: 6px;
}

.chat-log-mini p {
  margin: 3px 0;
}

.chat-quick-row {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.chat-quick-row input {
  flex: 1;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: var(--surface-tile);
  font-size: 12.5px;
}

.live-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.danger-link-btn {
  border: 0;
  background: transparent;
  color: var(--gsm-danger);
  font-weight: 600;
  font-size: 12.5px;
}

.stars-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 6px 0 10px;
}

.stars-row button {
  border: 0;
  background: transparent;
  font-size: 26px;
  color: #ffb700;
}

.phone-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 12px;
  border: 1.5px solid var(--gsm-cyan);
  margin-bottom: 8px;
}

.cc-prefix {
  font-weight: 600;
  font-size: 13.5px;
}

.phone-input-group input {
  border: 0;
  background: transparent;
  flex: 1;
  font-size: 15px;
  font-weight: 600;
}

.passkey-btn {
  margin-top: 8px;
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface-tile);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 600;
  font-size: 13px;
}

.otp-code-input {
  width: 100%;
  text-align: center;
  letter-spacing: 0.42em;
  font-size: 22px;
  font-weight: 700;
  padding: 10px;
  border-radius: 12px;
  border: 1.5px solid var(--gsm-cyan);
  background: var(--surface-tile);
}

.mission-banner-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 13px;
  background: var(--gsm-cyan-tint);
  margin-bottom: 8px;
}

.mission-banner-top img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.mission-banner-top p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--ink-secondary);
}

.micro-feedback {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gsm-green);
}

.receipt-body-box {
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.qr-ticket-box {
  margin: 6px auto;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px dashed var(--gsm-cyan-main);
  background: var(--gsm-cyan-tint);
  text-align: center;
  font-weight: 700;
}

.gsm-inframe-toast {
  position: absolute;
  top: 46px;
  left: 16px;
  right: 16px;
  z-index: 30;
  background: #0e4043;
  color: #ffffff;
  border: 1px solid var(--gsm-cyan);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

/* Fare Breakdown Dialog */
dialog#sheet {
  width: min(393px, 100vw);
  max-width: 100vw;
  max-height: 92dvh;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid var(--border-light);
  border-radius: 20px 20px 0 0;
  padding: 10px 18px 20px;
  background: var(--surface-card);
  color: var(--ink-primary);
  box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.32);
  margin: auto auto 0 auto;
}

dialog#sheet::backdrop {
  background: rgba(10, 12, 17, 0.52);
}

.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.dialog-close-btn {
  border: 1px solid var(--border-light);
  background: var(--surface-tile);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 600;
}

.eyebrow {
  margin: 0 0 2px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gsm-cyan-deep);
}

#sheet-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
}

.cofund-bar {
  display: flex;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface-subtle);
  margin-bottom: 12px;
}

.cofund-seg-platform {
  background: var(--gsm-cyan);
}

.cofund-seg-partner {
  background: var(--gsm-info);
}

.cofund-seg-sub {
  background: var(--gsm-gold);
}

#breakdown {
  margin: 0;
}

#breakdown>div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13.5px;
}

#breakdown>div:last-child {
  font-weight: 700;
  font-size: 15px;
  border-bottom: 0;
}

#breakdown dd {
  margin: 0;
  font-weight: 600;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

.airport-formula-note {
  margin: 0 0 8px;
  padding: 8px 11px;
  border-radius: 10px;
  border: 1px solid var(--gsm-cyan-border);
  background: var(--gsm-cyan-tint-soft);
  color: var(--gsm-cyan-deep);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.42;
}

.vpoint-accrual-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 10px;
  padding: 8px 11px;
  border-radius: 10px;
  border: 1px solid rgba(255, 202, 0, 0.42);
  background: var(--gsm-gold-tint);
  color: var(--gsm-gold-ink);
  font-size: 12px;
}

.vpoint-strip-meta {
  font-weight: 500;
}

.vpoint-strip-val {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.eco-transparency-box {
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: var(--surface-tile);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.eco-transparency-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 5px 8px;
}

.eco-transparency-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-primary);
}

.eco-cap-shield-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(217, 95, 0, 0.35);
  background: var(--gsm-warn-tint);
  color: var(--gsm-warn);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.3;
}

.eco-subsidy-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.eco-subsidy-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

.eco-subsidy-lbl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-secondary);
  min-width: 0;
}

.eco-subsidy-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.eco-dot-platform {
  background: var(--gsm-cyan);
}

.eco-dot-partner {
  background: var(--gsm-info);
}

.eco-dot-sub {
  background: var(--gsm-gold);
}

.eco-subsidy-val {
  font-weight: 600;
  color: var(--ink-primary);
  flex-shrink: 0;
}

.eco-co2-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 8px;
  padding: 6px 9px;
  border-radius: 8px;
  border: 1px solid rgba(18, 138, 74, 0.28);
  background: var(--gsm-green-wash);
  color: var(--gsm-green);
  font-size: 11.5px;
}

.eco-co2-text {
  font-weight: 600;
}

.eco-co2-grams {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.9;
}

.voucher-ticket {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px dashed var(--gsm-green);
  background: var(--gsm-green-wash);
  font-size: 12px;
  color: var(--gsm-green);
  font-weight: 600;
}

.voucher-ticket #voucher-code-text {
  min-width: 0;
  flex: 1;
  line-height: 1.35;
}

.copy-voucher-btn {
  flex-shrink: 0;
  border: 1px solid var(--gsm-green);
  background: var(--surface-card);
  color: var(--gsm-green);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 600;
}

.cap-note {
  margin: 10px 0 0;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--gsm-cyan-tint);
  color: var(--gsm-cyan-deep);
  font-size: 12px;
  font-weight: 500;
}

/* ==========================================================================
   EXTERNAL EV-PROMOAI DOCK (Outside .phone-shell — Never Pollutes Phone UI)
   ========================================================================== */
.demo-floating-dock {
  width: 320px;
  max-width: calc(100vw - 24px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 5;
}

.demo-top-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.dock-pill {
  border: 1px solid rgba(45, 204, 211, 0.42);
  background: rgba(11, 34, 38, 0.88);
  color: #f5f7f7;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.dock-auth-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 190px;
}

.dock-auth-pill #dock-auth-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dock-auth-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #94a3b8;
}

.dock-auth-dot[data-state="ok"] {
  background: #22c55e;
}

.dock-auth-dot[data-state="warn"] {
  background: #f59e0b;
}

.dock-auth-pill.auth-needed {
  border-color: #f59e0b;
  background: rgba(180, 83, 9, 0.9);
  color: #fffbeb;
}

.dock-auth-pill.auth-ok {
  border-color: rgba(34, 197, 94, 0.65);
}

dialog.jwt-auth-dialog {
  width: min(460px, 92vw);
  max-width: 92vw;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 18px 20px 20px;
  background: var(--surface-card);
  color: var(--ink-primary);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.36);
}

dialog.jwt-auth-dialog::backdrop {
  background: rgba(4, 20, 24, 0.62);
  backdrop-filter: blur(3px);
}

dialog.jwt-auth-dialog h2 {
  margin: 4px 0 10px;
  font-size: 17px;
}

.jwt-auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.jwt-auth-desc {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-secondary);
}

.jwt-auth-session-box {
  margin: 0;
  padding: 9px 11px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.4;
  border: 1px solid var(--border-light);
  background: var(--surface-soft, rgba(148, 163, 184, 0.1));
  color: var(--ink-secondary);
}

.jwt-auth-session-box[data-state="active"] {
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(34, 197, 94, 0.1);
  color: var(--ink-primary);
}

.jwt-auth-session-box[data-state="warn"] {
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.12);
  color: var(--ink-primary);
}

.jwt-token-textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  min-height: 88px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: var(--surface-phone);
  color: var(--ink-primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
  word-break: break-all;
}

.jwt-persist-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-secondary);
  cursor: pointer;
}

.jwt-auth-status {
  margin: 0;
  padding: 9px 11px;
  border-radius: 10px;
  font-size: 12.5px;
  border: 1px solid var(--border-light);
  background: var(--surface-soft, rgba(148, 163, 184, 0.12));
  color: var(--ink-primary);
}

.jwt-auth-status[data-tone="error"] {
  border-color: rgba(220, 38, 38, 0.5);
  background: rgba(220, 38, 38, 0.12);
}

.jwt-auth-status[data-tone="warn"] {
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.12);
}

.jwt-auth-status[data-tone="ok"] {
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(34, 197, 94, 0.12);
}

.jwt-auth-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.jwt-submit-btn,
.jwt-clear-btn {
  flex: 1 1 130px;
}

.demo-telemetry-card,
.demo-drawer {
  background: var(--surface-card);
  color: var(--ink-primary);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.demo-telemetry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  background: #0e4043;
  color: #eefbfb;
}

.demo-badge-title {
  font-size: 11.5px;
  font-weight: 600;
}

.latency-chip {
  background: rgba(45, 204, 211, 0.22);
  color: #afebee;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}

.optin-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--gsm-cyan-tint-soft);
  border-bottom: 1px solid var(--border-light);
}

.optin-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.optin-copy {
  min-width: 0;
  flex: 1;
}

.optin-copy label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-primary);
  cursor: pointer;
}

.optin-copy p {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--ink-secondary);
}

.optin-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.link-btn-inline {
  border: 0;
  background: transparent;
  color: var(--gsm-danger);
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 4px;
  text-decoration: underline;
}

.telemetry-foot {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11.5px;
  color: var(--ink-secondary);
}

.telemetry-foot p {
  margin: 0;
}

.telemetry-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.lock-pill {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--gsm-cyan-deep);
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--gsm-cyan-tint-soft);
  border: 1px solid var(--gsm-cyan-border);
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.lock-pill[data-lock-state="expiring"] {
  color: var(--gsm-warn);
  background: var(--gsm-warn-tint);
  border-color: rgba(217, 95, 0, 0.36);
}

.lock-pill[data-lock-state="expired"] {
  color: var(--ink-secondary);
  background: var(--surface-subtle);
  border-color: var(--border-strong);
}

.dock-refresh-btn {
  margin-left: auto;
  border: 1px solid var(--gsm-cyan);
  background: var(--gsm-cyan-tint);
  color: var(--gsm-cyan-deep);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
}

#status[data-error="true"] {
  color: var(--gsm-danger);
  font-weight: 600;
}

.reference {
  font-size: 11px;
  color: var(--ink-tertiary);
  overflow-wrap: anywhere;
}

.reference a {
  color: var(--gsm-cyan-deep);
  font-weight: 600;
  text-decoration: none;
}

.demo-drawer summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 14px;
  font-size: 12.5px;
  font-weight: 600;
  background: #0e4043;
  color: #eefbfb;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.demo-drawer summary::-webkit-details-marker {
  display: none;
}

.demo-drawer summary::after {
  content: "▾";
  color: var(--gsm-cyan);
}

.demo-drawer[open] summary::after {
  content: "▴";
}

.demo-body {
  padding: 12px 14px;
  max-height: 48dvh;
  overflow-y: auto;
  border: 0;
  margin: 0;
}

.demo-body label.field-lbl,
.privacy-field-lbl {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  margin: 8px 0 4px;
}

.demo-body select,
.privacy-select {
  width: 100%;
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: var(--surface-tile);
  font-size: 12.5px;
  font-weight: 500;
}

.demo-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid var(--border-light);
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.demo-switch-row small {
  display: block;
  font-weight: 400;
  font-size: 10.5px;
  color: var(--ink-tertiary);
}

/* ==========================================================================
   PRIVACY PAGE (/privacy)
   ========================================================================== */
.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  background: var(--surface-card);
  border-bottom: 1px solid var(--border-light);
}

.app-back-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: var(--ink-primary);
  font-weight: 600;
  font-size: 13.5px;
}

.privacy-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.privacy-hero {
  background: linear-gradient(135deg, #0e4043 0%, #1d858b 100%);
  color: #ffffff;
  padding: 16px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.privacy-hero-art {
  width: 50px;
  height: 50px;
  object-fit: contain;
  flex-shrink: 0;
}

.privacy-hero h1 {
  margin: 2px 0 4px;
  font-size: 19px;
  font-weight: 700;
}

.privacy-hero p {
  margin: 0;
  font-size: 12px;
  color: #cdf2f4;
}

.privacy-card {
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 14px;
}

.privacy-illu-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.privacy-card-illu {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex-shrink: 0;
}

.privacy-delete-banner {
  width: 100%;
  height: 68px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

.privacy-consent-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.privacy-half-btn {
  height: 40px;
  font-size: 12px;
  padding: 0 10px;
}

.privacy-card h2 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
}

.privacy-card p {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-secondary);
}

.privacy-card code {
  background: var(--surface-tile);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 11.5px;
}

.danger-erase-btn {
  margin-top: 10px;
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid var(--gsm-danger);
  background: var(--gsm-danger-tint);
  color: var(--gsm-danger);
  font-weight: 700;
  font-size: 13px;
}

.erase-receipt {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--gsm-green-wash);
  color: var(--gsm-green);
  font-size: 12px;
  font-weight: 600;
}

.privacy-inv-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.privacy-inv-select-wrap {
  flex: 1;
  min-width: 0;
}

.privacy-inv-refresh-btn {
  height: 36px;
  font-size: 12px;
  padding: 0 11px;
  border-radius: 9px;
  flex-shrink: 0;
}

.privacy-inventory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 0;
}

.privacy-inv-tile {
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: var(--surface-tile);
  min-width: 0;
}

.privacy-inv-tile dt {
  margin: 0 0 3px;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-secondary);
  line-height: 1.3;
}

.privacy-inv-tile dd {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.inv-badge-val[data-optin="true"] {
  color: var(--gsm-green);
}

.inv-badge-val[data-optin="false"] {
  color: var(--ink-secondary);
}

.inv-badge-val[data-optin="locked"] {
  color: var(--gsm-warn);
}

.privacy-inv-foot {
  margin: 9px 0 0 !important;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--surface-subtle);
  font-size: 11.5px !important;
  color: var(--ink-secondary);
  line-height: 1.4;
}

.privacy-inv-foot[data-tone="ok"] {
  background: var(--gsm-cyan-tint-soft);
  color: var(--gsm-cyan-deep);
}

.privacy-inv-foot[data-tone="warn"] {
  background: var(--gsm-warn-tint);
  color: var(--gsm-warn);
}

.privacy-export-actions {
  margin-top: 10px;
}

.privacy-export-btn {
  width: 100%;
  height: 40px;
  font-size: 12.5px;
  padding: 0 12px;
}

.privacy-restrict-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: var(--surface-tile);
}

.privacy-restrict-state-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.privacy-restrict-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-secondary);
}

.restrict-state-badge {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-primary);
}

.restrict-state-badge[data-restricted="true"] {
  color: var(--gsm-warn);
}

.privacy-restrict-switch-wrap {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  cursor: pointer;
}

.crypto-receipt-badge {
  margin: 6px 0 0 !important;
  padding: 6px 9px;
  border-radius: 8px;
  border: 1px solid var(--gsm-cyan-border);
  background: var(--gsm-cyan-tint-soft);
  color: var(--gsm-cyan-deep) !important;
  font-size: 11.5px !important;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.crypto-receipt-badge[hidden] {
  display: none !important;
}

.privacy-dpo-foot {
  margin: 2px 4px;
  font-size: 11.5px;
  color: var(--ink-tertiary);
}

/* ==========================================================================
   RESPONSIVE LAYOUT (Tablet & Mobile 375x812 — Zero Horizontal Overflow)
   ========================================================================== */
@media (max-width: 960px) {
  body.mobile-stage-body {
    flex-direction: column;
    justify-content: flex-start;
    gap: 14px;
  }

  .phone-shell {
    order: 1;
    z-index: 10;
  }

  .demo-floating-dock {
    order: 2;
    z-index: 1;
    width: min(393px, 100%);
    max-width: 100%;
  }

  .demo-body {
    max-height: none;
  }
}

@media (max-width: 600px) {
  body.mobile-stage-body {
    padding: 0;
    gap: 0;
    background: var(--surface-phone);
    align-items: stretch;
  }

  .phone-shell {
    width: 100%;
    height: 100dvh;
    min-height: 680px;
    border-radius: 0;
    box-shadow: none;
  }

  .demo-floating-dock {
    width: 100%;
    padding: 14px 12px 24px;
    background: #081c20;
  }
}