/* Biri chat styles follow the design system: glass #242322 for controls and Biri, #E9E9EC for the client,
   red #EE1B45 only as brand accent and signal. */
:root {
  --bg-home: #1D1C1C;
  --bg-chat: #FFFFFF;
  --ink: #1C1C1E;
  --muted: #6E6E73;
  --line: #E5E5EA;
  --sys: #F2F2F4;
  --user: #E9E9EC;          /* the client's messages: grey here, burgundy in the dark theme */
  --user-ink: #1C1C1E;
  --user-ring: rgba(0,0,0,0);
  --glass: linear-gradient(160deg, #4A4744 0%, #2C2B2A 45%, #242322 100%);
  --glass-solid: #242322;
  --red: #EE1B45;
  --red-ink: #D0103A;
  --red-tint: #FFE7EE;
  --ok: #2E9B58;
  --display: "Manrope", system-ui, sans-serif;
  --body: "Roboto", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none; background: #0B0B0B; font-family: var(--body); color: var(--ink); -webkit-tap-highlight-color: transparent; }
button { font-family: inherit; cursor: pointer; }
[hidden] { display: none !important; }

/* --app-h / --app-y follow the visible area (keyboard open), set from app.js */
.app { position: fixed; left: 0; right: 0; top: 0; width: 100%; max-width: 430px; height: var(--app-h, 100dvh); margin: 0 auto; transform: translateY(var(--app-y, 0px)); overflow: hidden; background: var(--bg-home); }
@media (min-width: 600px) { .app { height: min(100dvh, 900px); top: max(0px, calc((100dvh - 900px) / 2)); transform: none; border-radius: 40px; } }

/* Access gate: neutral, says nothing about what is behind it */
.gate { position: absolute; inset: 0; z-index: 50; background: #111; color: #fff; display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: 32px 24px calc(32px + env(safe-area-inset-bottom, 0px)); }
.gate h1 { margin: 0; font-family: var(--body); font-size: 24px; font-weight: 500; }
.gate form { display: flex; flex-direction: column; gap: 10px; }
.gate input { height: 50px; border-radius: 12px; border: 1px solid #333; background: #1A1A1A; color: #fff; font-size: 17px; padding: 0 14px; outline: none; }
.gate input:focus { border-color: #888; }
.gate .btn { margin-top: 6px; background: #fff; color: #111; border-radius: 12px; }
.gate .btn:disabled { opacity: .6; }
.gerr { min-height: 20px; font-size: 14px; color: #FF6F6F; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Home: the bank page (design K00, light) opens first; the Bir tab leads to the Bir page (design K01, dark)
   where the assistant lives. Both are laid out as pages, not pictures. */
.home { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--bg-home); padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); scrollbar-width: none; animation: pageIn .35s ease both; }
.home::-webkit-scrollbar { display: none; }
@keyframes pageIn { from { opacity: 0 } to { opacity: 1 } }
.dots { display: flex; justify-content: center; gap: 5px; }
.dots i { width: 5px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.4); }
.dots i.on { width: 16px; background: #fff; }
.dots.dk { margin: 10px 0 4px; }
.dots.dk i { background: #48464A; }
.dots.dk i.on { background: #C9C9CE; }
.gem { display: inline-block; width: 11px; height: 13px; clip-path: polygon(50% 0, 100% 35%, 50% 100%, 0 35%); background: linear-gradient(135deg, #FF5C8A, #7C6BFF 55%, #39C6F0); }

/* bank */
.home.bank { background: linear-gradient(180deg, #E4C8EC 0%, #F0CFE0 22%, #F4E6EE 40%, #F6F6F7 58%); color: var(--ink); padding: calc(14px + env(safe-area-inset-top, 0px)) 16px calc(110px + env(safe-area-inset-bottom, 0px)); }
.bk-top { display: flex; align-items: center; gap: 8px; }
.bk-av { width: 40px; height: 40px; border-radius: 20px; object-fit: cover; }
.bk-ib { width: 40px; height: 40px; border-radius: 20px; background: rgba(255,255,255,.55); display: grid; place-items: center; color: #2C2B2A; }
.bk-sp { flex: 1; }
.bk-chat { height: 40px; border: 0; border-radius: 20px; background: rgba(255,255,255,.55); color: #2C2B2A; font-size: 15px; font-weight: 500; display: flex; align-items: center; gap: 8px; padding: 0 12px 0 14px; }
.bk-bal { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 34px; font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -.3px; }
.bk-card { width: 32px; height: 22px; border-radius: 4px; background: linear-gradient(135deg, #2C2B2A, #000); position: relative; }
.bk-card::after { content: ''; position: absolute; right: 4px; bottom: 4px; width: 9px; height: 3px; border-radius: 1px; background: #8E8E93; }
.bk-chips { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.bk-chips span { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 15px; background: rgba(255,255,255,.5); font-size: 14px; color: #3A383D; }
.bk-chips .bolt { font-style: normal; font-size: 11px; width: 18px; height: 18px; border-radius: 9px; background: #fff; display: grid; place-items: center; }
.bk-acc { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 26px; font-size: 14px; }
.bk-acc .mc { width: 18px; height: 13px; border-radius: 2px; margin-left: -2px; }
.bk-acc .mc.r { background: #EE1B45; margin-left: 4px; }
.bk-acc .mc.k { background: #1C1C1E; }
.bk-acc .plus { font-size: 10px; background: #fff; border-radius: 4px; padding: 1px 4px; }
.bk-acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 40px; }
.bk-act { height: 92px; border-radius: 20px; background: rgba(255,255,255,.8); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font-size: 14px; }
.bk-act i { width: 22px; height: 22px; border-radius: 6px; background: var(--red); display: grid; place-items: center; }
.bk-act b.qr { display: grid; place-items: center; }
.bk-tr { margin-top: 18px; background: #fff; border-radius: 20px; padding: 16px 14px 14px; }
.bk-trh { font-size: 14px; color: var(--muted); }
.bk-trr { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.jg { width: 44px; height: 44px; border-radius: 22px; background: #FDF0CC; color: #B98A10; display: grid; place-items: center; font-weight: 500; }
.bk-trm { flex: 1; }
.bk-trm b { display: block; font-size: 16px; font-weight: 500; }
.bk-trm s { display: block; text-decoration: none; font-size: 12px; color: #E0582A; margin-top: 2px; }
.bk-tra { font-size: 16px; }
.bk-trb { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.bk-trb span { height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 16px; font-weight: 500; }
.bk-trb .dec { background: #F2F2F4; color: var(--red); }
.bk-trb .acc { background: var(--red); color: #fff; }
.bk-eco { position: relative; margin-top: 18px; height: 112px; border-radius: 20px; overflow: hidden; background: linear-gradient(110deg, #EFEFF1 45%, #D9D9DE); display: flex; align-items: center; padding: 0 16px; }
.bk-eco s { display: block; text-decoration: none; font-size: 10px; font-weight: 700; letter-spacing: 1px; color: #8E8E93; }
.bk-eco b { display: block; font-size: 18px; font-weight: 500; margin-top: 6px; }
.bk-ecoi { position: absolute; right: -20px; top: 8px; width: 150px; height: 120px; background: repeating-linear-gradient(-28deg, #1C1C1E 0 14px, #6E6E73 14px 17px, #E5E5EA 17px 26px); transform: skewX(-12deg) rotate(-8deg); border-radius: 14px; box-shadow: -10px 12px 24px rgba(0,0,0,.25); }
.bk-ecox { position: absolute; right: 10px; top: 8px; width: 20px; height: 20px; border-radius: 10px; background: rgba(0,0,0,.45); color: #fff; font-size: 10px; display: grid; place-items: center; }
.bk-eco .dots { position: absolute; left: 0; right: 0; bottom: 8px; }
.bk-eco .dots i { background: #C7C7CC; }
.bk-eco .dots i.on { background: #1C1C1E; }

/* Bir */
.home.bir { color: #fff; }
.br-hero { position: relative; aspect-ratio: 750 / 740; background: url(assets/bir-hero.jpg) center top / cover no-repeat; }
.br-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(transparent, var(--bg-home)); }
.br-top { position: absolute; z-index: 1; left: 16px; right: 16px; top: calc(48px + env(safe-area-inset-top, 0px)); display: flex; align-items: center; gap: 12px; }
.br-top img { width: 40px; height: 40px; border-radius: 20px; object-fit: cover; }
.br-top .nm { font-size: 16px; font-weight: 500; }
.br-top .sp { flex: 1; }
.br-pts { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 20px; background: rgba(30,29,28,.55); border: 1px solid rgba(255,255,255,.2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 15px; }
.br-pts .gem { width: 13px; height: 16px; }
.br-ht { position: absolute; z-index: 1; left: 0; right: 0; bottom: 6%; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.br-ht h2 { margin: 0; font-family: var(--body); font-weight: 700; font-size: 23px; line-height: 1.2; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.br-buy { background: #fff; color: var(--ink); border-radius: 22px; padding: 11px 22px; font-size: 15px; font-weight: 500; }
.br-tiles { display: flex; gap: 16px; overflow-x: auto; padding: 18px 16px 4px; scrollbar-width: none; }
.br-tiles::-webkit-scrollbar { display: none; }
.br-tile { flex: 0 0 80px; display: flex; flex-direction: column; align-items: center; gap: 8px; border: 0; padding: 0; background: none; color: #fff; font-size: 14px; font-weight: 500; white-space: nowrap; }
.br-tile i { position: relative; display: block; width: 80px; height: 80px; border-radius: 24px; overflow: hidden; }
.br-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.br-tile em { position: absolute; right: 6px; top: 6px; width: 18px; height: 18px; border-radius: 9px; background: var(--red); font-style: normal; font-size: 11px; display: grid; place-items: center; }
.br-h { margin: 26px 16px 12px; font-family: var(--body); font-size: 22px; font-weight: 700; }
.br-h.c { text-align: center; margin-top: 2px; }
.br-cap { margin-top: 30px; text-align: center; font-size: 12px; color: #8E8E93; }
.br-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px; margin-top: 14px; }
.br-c { position: relative; aspect-ratio: 166 / 150; border-radius: 20px; overflow: hidden; background: #2A2828 center / cover no-repeat; display: flex; flex-direction: column; justify-content: flex-end; padding: 12px; }
.br-c b { position: relative; font-size: 15px; font-weight: 500; line-height: 1.2; }
.br-c s { position: relative; text-decoration: none; font-size: 12px; color: #A9A9AE; margin-top: 3px; }
.br-c.photo::before { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(0,0,0,.7)); }
.br-c.tall { aspect-ratio: 166 / 200; }
.br-c.buds { background: #E9E9EC; color: var(--ink); justify-content: flex-start; }
.br-c.buds img { position: absolute; left: 18%; right: 0; bottom: -8%; width: 90%; object-fit: cover; mix-blend-mode: multiply; }
.br-c.brands { aspect-ratio: 166 / 200; background: #2A2828; }
.br-c.brands .lz, .br-c.brands .mv { position: absolute; display: grid; place-items: center; border-radius: 12px; font-weight: 700; }
.br-c.brands .lz { left: 34%; top: 14%; width: 56px; height: 56px; background: #0B0B0B; border: 1px solid #3A3836; font-family: var(--display); font-size: 18px; letter-spacing: 1px; transform: rotate(-8deg); }
.br-c.brands .mv { left: 14%; top: 34%; width: 62px; height: 62px; background: #1F4FA8; font-size: 17px; font-style: italic; transform: rotate(6deg); }
.br-big { position: relative; margin: 12px 16px 0; aspect-ratio: 358 / 250; border-radius: 24px; overflow: hidden; background: #2A2828 center / cover no-repeat; display: flex; align-items: flex-end; justify-content: center; text-align: center; padding: 18px; }
.br-big::before { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,.75)); }
.br-big > div { position: relative; }
.br-big b { display: block; font-size: 26px; font-weight: 700; }
.br-big s { display: block; text-decoration: none; font-size: 13px; color: #D1D1D6; margin-top: 4px; }
.br-big.place { aspect-ratio: 358 / 300; flex-direction: column; justify-content: flex-start; align-items: center; padding-top: 26px; }
.br-big.place::before { background: linear-gradient(rgba(0,0,0,.45), transparent 45%, rgba(0,0,0,.55)); }
.br-sub { position: absolute; left: 12px; bottom: 12px; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 16px; background: rgba(30,29,28,.75); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); text-align: left; }
.br-sub img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.br-sub b { font-size: 14px; font-weight: 500; }
.br-sub s { display: block; text-decoration: none; font-size: 12px; color: #A9A9AE; }
.br-games { display: flex; justify-content: space-between; padding: 0 16px; margin-top: 22px; }
.br-games span { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: #C9C9CE; }
.br-games i { width: 72px; height: 72px; border-radius: 18px; position: relative; overflow: hidden; }
.br-games i { display: grid; place-items: center; box-shadow: inset 0 1px 0 rgba(255,255,255,.45); }
.br-games i svg { filter: drop-shadow(0 4px 6px rgba(0,0,0,.18)); }
.br-games .g1 { background: linear-gradient(135deg, #C9B6FF, #8C6BFF); }
.br-games .g2 { background: linear-gradient(135deg, #9FE8FF, #3D8BFF); }
.br-games .g3 { background: linear-gradient(135deg, #FFB7D5, #F0447F); }
.br-games .g4 { background: linear-gradient(135deg, #FFE08F, #FF8A3D); }
.br-c.fly { background: #232222; aspect-ratio: 166 / 200; align-items: center; justify-content: flex-start; text-align: center; padding-top: 16px; }
.br-c.fly .win { width: 70%; aspect-ratio: 3 / 4; border-radius: 40% / 30%; background: center / cover no-repeat; box-shadow: 0 0 0 6px #3A3836; margin-bottom: 12px; }
.br-c.art { background: #232222; aspect-ratio: 166 / 200; justify-content: flex-start; padding: 0 0 12px; }
.br-c.art .ph { height: 46%; background: center / cover no-repeat; margin-bottom: 10px; }
.br-c.art s, .br-c.art b { padding: 0 12px; }
.br-c.art b { font-size: 13px; margin-top: 4px; }
.br-mkt { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px; margin-top: 18px; }
.br-mk1 { border-radius: 20px; background: linear-gradient(160deg, #3B2B33, #1F1A1D); padding: 16px 14px; }
.br-mk1 b { font-size: 17px; font-weight: 500; line-height: 1.25; }
.br-mk2 { border-radius: 20px; background: #fff; color: var(--ink); padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.br-mk2 img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; margin-bottom: 6px; }
.br-mk2 b { font-family: var(--display); font-size: 17px; }
.br-mk2 s { text-decoration: none; font-size: 11px; color: var(--muted); }
.br-mk2 span { font-size: 12px; line-height: 1.3; }

/* tab bar: light glass on the bank page, dark on Bir */
.tabbar { position: absolute; left: 6.4%; right: 6.7%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); height: 64px; z-index: 4; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; padding: 4px; border-radius: 34px; border: 1px solid rgba(255,255,255,.28); background: rgba(48,46,46,.72); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.tab { height: 100%; border: 0; background: none; padding: 0; border-radius: 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #fff; font-size: 11px; font-weight: 500; }
.tab.on { background: rgba(20,20,20,.75); color: var(--red); }
.tab svg { display: block; }
.tabbar.light { background: rgba(255,255,255,.78); border-color: rgba(0,0,0,.06); box-shadow: 0 10px 30px rgba(36,35,34,.12); }
.tabbar.light .tab { color: #2C2B2A; }
.tabbar.light .tab.on { background: #fff; color: var(--red); }
.tabbar.light [data-page="bir"] { animation: tabhint 2s ease-out infinite; }
@keyframes tabhint { 0% { box-shadow: 0 0 0 0 rgba(238,27,69,.55) } 70% { box-shadow: 0 0 0 12px rgba(238,27,69,0) } 100% { box-shadow: 0 0 0 0 rgba(238,27,69,0) } }

/* the assistant's help button (design D01), Bir page only: text + the red face that blinks */
.hb { display: none; }
.on-bir .hb { display: flex; }
.hb { position: absolute; right: 6.7%; bottom: calc(98px + env(safe-area-inset-bottom, 0px)); z-index: 6; align-items: center; gap: 14px; height: 56px; padding: 4px 4px 4px 20px; border: 0; border-radius: 28px; background: #1C1B1B; box-shadow: 0 10px 24px rgba(0,0,0,.35); text-align: left; animation: hbIn .5s .3s cubic-bezier(.2,.8,.2,1) both; }
.hb .tx { display: flex; flex-direction: column; gap: 4px; white-space: nowrap; }
.hb .t1 { font-size: 12px; line-height: 14px; font-weight: 500; color: #fff; }
.hb .t2 { font-size: 10px; line-height: 12px; color: rgba(255,255,255,.6); }
.hav { position: relative; flex: none; width: 48px; height: 48px; border-radius: 24px; background: linear-gradient(220deg, #E65D90 -50%, #A5426F -17%, #ED1E40 82%); box-shadow: 2px 4px 10px 1px rgba(237,30,64,.08); display: grid; place-items: center; }
/* the assistant as two blinking eyes (design AppProto) */
.hav .ey { position: relative; width: 20px; height: 12px; }
.hav .ey i { position: absolute; top: 0; width: 6px; height: 12px; border-radius: 3px; background: #fff; transform-origin: 50% 60%; animation: hbblink 4.2s ease-in-out infinite; }
.hav .ey i:last-child { left: 14px; }
@keyframes hbblink { 0%, 44%, 52%, 100% { transform: scaleY(1) } 48% { transform: scaleY(.15) } }
@keyframes hbIn { from { opacity: 0; transform: translateY(10px) scale(.94) } to { opacity: 1; transform: none } }

/* Chat */
.chat { position: absolute; inset: 0; font-family: "Inter", var(--body); letter-spacing: -.1px; -webkit-font-smoothing: antialiased; color: var(--ink); background: radial-gradient(120% 55% at 85% -5%, rgba(238,27,69,.07), rgba(238,27,69,0) 60%), var(--bg-chat); display: flex; flex-direction: column; z-index: 10; padding-top: env(safe-area-inset-top, 0px); animation: reveal .5s cubic-bezier(.2,.8,.2,1) both; }
@keyframes reveal { from { clip-path: circle(30px at 88% 82%) } to { clip-path: circle(150% at 88% 82%) } }
.hd { display: flex; align-items: center; gap: 8px; padding: 12px 18px 6px; }
.cb { width: 40px; height: 40px; border-radius: 20px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; padding: 0; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.who-hd { flex: 1; min-width: 0; margin-left: 4px; }
.nm { font-size: 16px; font-weight: 500; letter-spacing: -.2px; }
.st { font-size: 11.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#themeToggle .i-sun, .dk #themeToggle .i-moon { display: none; }
.dk #themeToggle .i-sun { display: block; }

.feed { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 18px; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 24px); mask-image: linear-gradient(to bottom, transparent 0, #000 24px); display: flex; flex-direction: column; gap: 12px; }
.feed > :first-child:not(.start) { margin-top: auto; }

/* Welcome screen (design D02): greeting, then three quick-start topics; the travel one is tall */
.feed:has(.start) { -webkit-mask-image: none; mask-image: none; }
.start { flex-shrink: 0; display: flex; flex-direction: column; padding: 8px 2px 0; animation: inUp .45s ease both; }
.start .h1 { margin: 0; font-size: 33px; font-weight: 700; letter-spacing: -1.4px; line-height: 1.1; }
.start .sub { font-size: 15px; color: var(--muted); margin-top: 10px; }
.start .sec { display: flex; align-items: baseline; justify-content: space-between; margin: 24px 0 14px; }
.start .sec b { font-size: 18px; font-weight: 700; letter-spacing: -.3px; }
.start .sec span { font-size: 13px; color: var(--muted); }
.tgrid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 150px 150px; gap: 14px; }
.tcard { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; padding: 16px 15px; border-radius: 24px; border: 1px solid var(--line); background: #F4F4F6; color: var(--ink); text-align: left; }
.tcard.tall { grid-row: span 2; }
.tcard .tg { font-size: 12px; font-weight: 600; color: var(--red-ink); }
.dk .tcard .tg { color: #F0607A; }
.tcard .q { position: relative; z-index: 2; margin-top: 6px; padding-right: 22px; font-size: 15px; font-weight: 700; line-height: 1.36; }
.tcard .go { position: absolute; right: 12px; top: 12px; z-index: 2; width: 28px; height: 28px; border-radius: 14px; background: rgba(255,255,255,.7); display: flex; align-items: center; justify-content: center; }
.tcard img { position: absolute; left: 0; bottom: 0; width: 100%; display: block; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 26%); mask-image: linear-gradient(180deg, transparent 0, #000 26%); }
.sm { font-size: 12px; color: var(--muted); }

.usw { align-self: flex-end; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; animation: inR .4s cubic-bezier(.2,.8,.2,1) both; }
.us { background: var(--user); color: var(--user-ink); box-shadow: inset 0 0 0 1px var(--user-ring); border-radius: 22px; padding: 12px 18px; font-size: 14.5px; line-height: 1.35; max-width: 300px; }
.vt { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 700; letter-spacing: .4px; color: var(--red-ink); background: var(--red-tint); border-radius: 6px; padding: 2px 6px; }
.bm { display: flex; animation: inUp .35s ease both; }
.bm > .av { display: none; }
.bmc { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.who { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-left: 4px; }
.who b { color: var(--ink); font-weight: 700; }
.bi { align-self: flex-start; background: linear-gradient(160deg, #3A3836, #242322 70%); color: #fff; border-radius: 20px; padding: 14px 16px; font-size: 14.5px; line-height: 1.5; max-width: 330px; }
.sys { align-self: center; font-size: 12px; color: #48484C; background: var(--sys); border-radius: 12px; padding: 6px 12px; text-align: center; }
.dv { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--red-ink); }
.dv i { flex: 1; height: 1px; background: rgba(238,27,69,.3); }
@keyframes inUp { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: none } }
@keyframes inR { from { opacity: 0; transform: translate(20px, 8px) scale(.96) } to { opacity: 1; transform: none } }

/* revealed after the assistant's message has typed */
.reveal { animation: reveal .6s cubic-bezier(.2,.8,.2,1) both !important; }
@keyframes reveal { from { opacity: 0; transform: translateY(12px) } to { opacity: 1; transform: none } }
.card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 6px 18px rgba(36,35,34,.06); animation: inUp .45s cubic-bezier(.2,.8,.2,1) both; }
.wh { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid #F0F0F2; }
.wh .wi { width: 24px; height: 24px; border-radius: 8px; background: var(--glass-solid); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.wh .lb { flex: 1; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.fg { display: flex; flex-direction: column; gap: 6px; }
.ch { display: flex; flex-wrap: wrap; gap: 8px; }
.chw { }
.chip { font-size: 14px; border: 1.5px solid var(--glass-solid); border-radius: 20px; padding: 8px 14px; background: #fff; color: var(--ink); animation: pop .3s ease both; }
.chip.on { background: var(--glass-solid); color: #fff; }
.chip:disabled { opacity: .4; }
/* show_form: toggle and stepper fields */
.tgl { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 4px 0; background: none; border: 0; font: inherit; font-size: 14px; color: var(--ink); text-align: left; }
.tgl i { position: relative; flex-shrink: 0; width: 42px; height: 26px; border-radius: 13px; background: #E5E5EA; transition: background .2s; }
.tgl i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.tgl.on i { background: var(--glass-solid); }
.tgl.on i::after { transform: translateX(16px); }
.stp { display: flex; align-items: center; gap: 14px; }
.stp button { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--glass-solid); background: #fff; color: var(--ink); font-size: 18px; line-height: 1; padding: 0; }
.stp button:disabled { opacity: .3; }
.stp .v { min-width: 18px; text-align: center; font-size: 16px; font-weight: 600; }
/* checkout travellers: tap to add or remove */
.li.pax.off { opacity: .5; }
.li.pax.off .ok { background: transparent; box-shadow: inset 0 0 0 1.5px #C7C7CC; }
.li.pax.off .ok svg { visibility: hidden; }
@keyframes pop { 0% { opacity: 0; transform: scale(.8) } 70% { opacity: 1; transform: scale(1.04) } 100% { transform: none } }
.btn { display: flex; align-items: center; justify-content: center; border: 0; font-size: 15px; font-weight: 500; color: #fff; background: var(--glass); border-radius: 16px; padding: 14px; width: 100%; }
.li { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 11px 12px; background: #fff; color: var(--ink); text-align: left; width: 100%; }
.li.hl { border: 1.5px solid var(--glass-solid); background: #FAFAFB; }
.card > .li.hl:first-of-type { position: relative; margin-top: 8px; }
.card > .li.hl:first-of-type::before { content: "Best choice"; position: absolute; left: -6px; top: -10px; font-size: 10.5px; font-weight: 500; color: #fff; background: var(--red); border-radius: 10px; padding: 3px 8px; }
.li .m { flex: 1; min-width: 0; }
.li .t { font-size: 15px; font-weight: 500; margin-top: 2px; }
.li .r { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.li .pr { font-family: var(--display); font-weight: 800; font-size: 15px; white-space: nowrap; }
.li .go { font-size: 12px; font-weight: 500; color: #fff; background: var(--glass-solid); border-radius: 12px; padding: 6px 10px; white-space: nowrap; }
/* a widget of an earlier turn: clearly faded and grey, nothing in it reacts. `!important` beats the entrance
   animations (.reveal keeps opacity at 1 with fill-mode both) */
.dead { opacity: .38 !important; filter: grayscale(.7); pointer-events: none; animation: none !important; transition: opacity .3s; }
.dead * { animation: none !important; }


/* Return price calendar (design 'cal' widget): bars scaled between the cheapest and the dearest day */
.cal { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; align-items: end; padding-top: 4px; }
.cbar { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.cbar i { display: block; width: 100%; max-width: 64px; border-radius: 6px; background: #E5E5EA; transform-origin: bottom; animation: grow .5s cubic-bezier(.2,.7,.2,1) both; }
.cbar.on i { background: linear-gradient(180deg, #FF3B5C, #D0103A); }
.cp { font-size: 10px; color: #8E8E93; }
.cbar.on .cp { color: var(--red-ink); font-weight: 700; }
.cd { font-size: 13px; font-weight: 500; }
.cw { font-size: 10px; color: #8E8E93; margin-top: -3px; }
.calb { display: flex; align-items: center; gap: 10px; border-top: 1px solid #F0F0F2; padding-top: 10px; }
.calb .ok { width: 22px; height: 22px; border-radius: 11px; background: var(--ok); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.calb .v { font-size: 15px; font-weight: 500; }
@keyframes grow { from { transform: scaleY(0) } to { transform: none } }

/* Streaming reply: words fade in one by one, a red caret pulses at the end */
.sw { display: inline-block; animation: sw .35s ease both; }
.caret { display: inline-block; width: 7px; height: 7px; border-radius: 4px; background: #FF3B5C; vertical-align: 1px; margin-left: 2px; animation: cdot 1s ease-in-out infinite; }
@keyframes sw { from { opacity: 0; filter: blur(4px); transform: translateY(3px) } to { opacity: 1; filter: none; transform: none } }
@keyframes cdot { 0%, 100% { opacity: 1; transform: scale(1) } 50% { opacity: .35; transform: scale(.7) } }

/* Source badge in result lists */
.src { font-size: 10px; font-weight: 700; letter-spacing: .4px; border-radius: 6px; padding: 2px 6px; margin-right: 6px; background: #E6F1FF; color: #1F4F8F; }
.srow { display: flex; align-items: center; gap: 10px; }
.srow .ok { width: 22px; height: 22px; border-radius: 11px; background: var(--ok); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.srow .m { flex: 1; min-width: 0; }
.srow .v { font-size: 15px; font-weight: 500; }
.srow .pr { font-family: var(--display); font-weight: 800; font-size: 14px; white-space: nowrap; }

/* Partner site sheet (design K14) */
.pdim { position: absolute; inset: 0; z-index: 44; background: rgba(0,0,0,.5); animation: fadeT .2s ease both; }
.web { position: absolute; left: 0; right: 0; bottom: 0; top: calc(44px + env(safe-area-inset-top, 0px)); z-index: 45; background: #F6F6F7; border-radius: 24px 24px 0 0; color: var(--ink); display: flex; flex-direction: column; overflow: hidden; animation: sheet .45s cubic-bezier(.2,.8,.2,1) both; }
.webh { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border-bottom: 1px solid var(--line); }
.pclose { width: 34px; height: 34px; border: 0; border-radius: 17px; background: #F2F2F4; display: flex; align-items: center; justify-content: center; padding: 0; }
.pdom { flex: 1; text-align: center; font-size: 14px; font-weight: 500; }
.pdom .sm { font-size: 11px; font-weight: 400; }
.pspace { width: 34px; }
.webb { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 16px 16px calc(20px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; }
.pimg { height: 170px; border-radius: 18px; flex-shrink: 0; }
.webb h2 { margin: 0; font-family: var(--display); font-size: 22px; font-weight: 800; line-height: 1.2; }
.pmeta { font-size: 14px; color: #48484C; line-height: 1.4; }
.pnote { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; font-size: 13px; color: #48484C; line-height: 1.4; }
.plink { align-self: flex-start; font-size: 14px; font-weight: 500; color: var(--red-ink); text-decoration: none; }
.pback { margin-top: auto; font-size: 15px; font-weight: 500; color: #fff; background: var(--ink); border: 0; border-radius: 14px; padding: 14px; }
@keyframes sheet { from { transform: translateY(100%) } to { transform: none } }

/* In-chat checkout (design J "tp" panel) */
.tpw .wh { gap: 8px; }
.tpw .wh .sm { white-space: nowrap; }
.tpx { width: 28px; height: 28px; border: 0; border-radius: 14px; background: #F2F2F4; display: flex; align-items: center; justify-content: center; padding: 0; flex-shrink: 0; }
.tpb { display: flex; flex-direction: column; gap: 10px; }
.tpb.swap { animation: inUp .35s ease both; }
.tpw .v { font-size: 15px; font-weight: 500; line-height: 1.4; }
.tpw .lb { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.tpw .row { display: flex; align-items: center; gap: 10px; }
.tpw .sp { justify-content: space-between; }
.tpw .li { cursor: pointer; }
.tpw .li .ok { width: 22px; height: 22px; border-radius: 11px; background: var(--ok); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tpw .pr { font-family: var(--display); font-weight: 800; font-size: 20px; }
.tpw .pr2 { font-family: var(--display); font-weight: 800; font-size: 18px; white-space: nowrap; }
.tpw .btn.o { background: #fff; color: var(--glass-solid); border: 1.5px solid var(--glass-solid); padding: 12.5px; }
.gls { background: var(--glass); color: #fff; border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 6px; box-shadow: inset 0 1px 0 rgba(255,255,255,.16); }
.gls .lb, .gls .sm { color: #C9C9CE; }
.gls.lite { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none; gap: 8px; }
.gls.lite .sm { color: var(--muted); font-size: 14px; }
.gls .tot { border-top: 1px solid #F0F0F2; padding-top: 8px; }
.tpok { display: flex; align-items: center; gap: 10px; background: var(--ok-tint, #E4F4EA); border-radius: 12px; padding: 10px; font-size: 14px; }
.tpok .ok { width: 22px; height: 22px; border-radius: 11px; background: var(--ok); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pamt { font-family: var(--display); font-weight: 800; font-size: 34px; }
.pamt.dark { font-size: 30px; }
.payb { background: var(--glass); color: #fff; border-radius: 18px; padding: 16px 14px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.payb .lb, .payb .sm { color: #C9C9CE; }
.payb .pamt { margin-top: -2px; }
.fid { position: relative; width: 84px; height: 84px; border-radius: 24px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.fid .ln { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--red); box-shadow: 0 0 12px var(--red); animation: scan 1.2s ease-in-out infinite; }
.payb .ok.big, .tpc .ok.huge { border-radius: 50%; background: var(--ok); display: flex; align-items: center; justify-content: center; animation: pop .35s ease both; }
.payb .ok.big { width: 84px; height: 84px; }
.tpc { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 18px 0 8px; }
.tpc .spn.big { width: 44px; height: 44px; border-radius: 22px; border: 4px solid var(--line); border-top-color: var(--red); animation: spin .8s linear infinite; }
.tpc .pr.big { font-size: 26px; }
.bmark { position: relative; width: 96px; height: 96px; }
.bmark .ok.huge { position: absolute; inset: 0; }
.bst { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--red); animation: burst 1s .2s ease-out both; }
@keyframes scan { 0%, 100% { top: 14px } 50% { top: 70px } }
@keyframes burst { 0% { transform: scale(.6); opacity: .8 } 100% { transform: scale(2.2); opacity: 0 } }
.okcard { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid rgba(46,155,88,.45); border-radius: 20px; padding: 12px 14px; animation: inUp .45s cubic-bezier(.2,.8,.2,1) both; }
.okcard .ok { width: 30px; height: 30px; border-radius: 15px; background: var(--ok); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.okcard .v { font-size: 15px; font-weight: 500; }
.olink { display: inline-block; align-self: flex-start; margin-top: 6px; font-size: 13px; font-weight: 500; color: var(--red-ink); text-decoration: none; }
.dk .olink, .vstage .olink { color: #FF6F87; }

/* Thinking block (design F/J): pulsing dot + current step while a tool runs, then check + summary */
.tb { align-self: flex-start; min-width: 200px; border-radius: 20px; padding: 1.5px; background: #E5E5EA; animation: inUp .4s ease both; flex-shrink: 0; }
.tbi { background: #fff; border-radius: 18.5px; padding: 10px 14px; display: flex; flex-direction: column; gap: 10px; }
.tbh { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; padding: 0; text-align: left; color: var(--ink); font-size: 14px; }
.tbh:disabled { cursor: default; color: var(--ink); }
.pulse { position: relative; width: 10px; height: 10px; margin: 0 4px; flex-shrink: 0; }
.pulse::before { content: ""; position: absolute; inset: 0; border-radius: 5px; background: var(--red); }
.pulse i { position: absolute; inset: 0; border-radius: 5px; background: var(--red); animation: breathe 1.8s ease-out infinite; }
.cur { flex: 1; font-size: 14px; color: #48484C; animation: fadeT .35s ease both; }
.tdots { display: flex; gap: 3px; }
.tdots i { width: 4px; height: 4px; border-radius: 2px; background: #8E8E93; animation: dot 1.2s ease-in-out infinite; }
.tdots i:nth-child(2) { animation-delay: .15s; }
.tdots i:nth-child(3) { animation-delay: .3s; }
.tb .ok { width: 22px; height: 22px; border-radius: 11px; background: var(--ok); display: flex; align-items: center; justify-content: center; flex-shrink: 0; animation: pop .35s ease both; }
.tb .ok path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .35s .1s ease forwards; }
.tb .dt { flex: 1; font-weight: 500; }
.tb .chev { transition: transform .3s; flex-shrink: 0; }
.tb.open .chev { transform: rotate(180deg); }
.stl { display: flex; flex-direction: column; gap: 6px; padding: 8px 0 2px 32px; border-top: 1px solid #F0F0F2; animation: fadeT .25s ease both; }
.st2 { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: #48484C; }
.r2 { color: #8E8E93; white-space: nowrap; }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .55 } 50% { transform: scale(1.9); opacity: 0 } }
@keyframes fadeT { from { opacity: 0; transform: translateY(4px) } to { opacity: 1; transform: none } }
@keyframes dot { 0%, 80%, 100% { opacity: .25 } 40% { opacity: 1 } }
@keyframes draw { to { stroke-dashoffset: 0 } }
@keyframes spin { to { transform: rotate(360deg) } }

.in { margin: 0 18px calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; gap: 12px; align-items: flex-end; border-radius: 28px; padding: 6px; background: var(--glass); box-shadow: 0 12px 28px rgba(36,35,34,.22); }
.ic { width: 44px; height: 44px; border-radius: 22px; border: 0; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.09); color: #fff; flex-shrink: 0; padding: 0; }
.ic.send { background: linear-gradient(200deg, #F2456B, #E0123E 70%); box-shadow: 0 6px 18px rgba(238,27,69,.4); }

/* Composer grows with the text up to 4 lines (22px each + 22px padding), then scrolls inside */
.fld { flex: 1; min-width: 0; height: 44px; max-height: 110px; border: 0; background: transparent; color: #fff; font: inherit; font-size: 16px; line-height: 22px; letter-spacing: -.2px; padding: 11px 0; outline: none; resize: none; overflow-y: hidden; scrollbar-width: none; }
.fld::-webkit-scrollbar { display: none; }
.fld::placeholder { color: #8E8E93; }

/* Voice */
/* Voice mode (design VoiceAssist) */
.voice { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; overflow: hidden; color: #fff; background: radial-gradient(70% 38% at 50% 34%, rgba(238,27,69,.20), rgba(238,27,69,0) 70%), radial-gradient(85% 42% at 100% -4%, rgba(238,27,69,.26), rgba(238,27,69,0) 70%), radial-gradient(70% 38% at -10% 38%, rgba(132,84,190,.16), rgba(132,84,190,0) 70%), radial-gradient(90% 40% at 60% 108%, rgba(238,27,69,.14), rgba(238,27,69,0) 70%), linear-gradient(180deg, #241C1F 0%, #1C191B 42%, #18171A 100%); padding-top: env(safe-area-inset-top, 0px); animation: vopen .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes vopen { from { clip-path: circle(22px at 40px 92%) } to { clip-path: circle(150% at 40px 92%) } }
.vtop { display: flex; align-items: center; gap: 10px; padding: 18px 18px 0; }
.vav { width: 36px; height: 36px; border-radius: 18px; border: 2px solid var(--red); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.vhead { flex: 1; min-width: 0; }
.vname { font-size: 15px; font-weight: 500; }
.vdot { width: 8px; height: 8px; border-radius: 4px; background: #8E8E93; flex-shrink: 0; }
.vdot.speak { background: #fff; animation: talkdot .5s ease-in-out infinite alternate; }
@keyframes talkdot { from { transform: scale(.7) } to { transform: scale(1.25) } }
.vdot.live { background: var(--red); animation: blink 1s infinite; }
.vdot.think { background: #fff; animation: blink .6s infinite; }
@keyframes blink { 50% { opacity: .25 } }
.vend { width: 38px; height: 38px; border: 0; border-radius: 19px; background: var(--red); display: flex; align-items: center; justify-content: center; padding: 0; flex-shrink: 0; }
/* The wave takes whatever the card leaves: big and centred with a few buttons or none, a strip above a tall form */
/* Design C: without a card the wave owns the screen, the spoken line and the steps under it; a card takes the room it
   needs under the wave, which keeps the rest (a few buttons leave it big, a tall form squeezes it into a bar) */
.vmain { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.vwave { flex: 1 1 auto; min-height: 70px; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: flex .6s cubic-bezier(.2,.8,.2,1); }
.voice:not(.nocard) .vwave { flex: 1 1 70px; }
.vcanv { position: relative; width: 100%; height: 300px; flex-shrink: 0; transition: height .6s cubic-bezier(.2,.8,.2,1); }
.voice:not(.nocard) .vcanv { height: auto; flex: 1 1 70px; min-height: 70px; max-height: 300px; }
.vcanv canvas { position: relative; display: block; width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 28%, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 28%, #000 72%, transparent 100%); }
.vhalo { position: absolute; left: 40px; right: 40px; top: 50%; height: 60%; transform: translateY(-50%); border-radius: 50%; background: radial-gradient(ellipse at center, rgba(238,27,69,.25) 0%, rgba(238,27,69,0) 70%); filter: blur(10px); animation: vglow 4s ease-in-out infinite; }
@keyframes vglow { 0%, 100% { opacity: .35 } 50% { opacity: .75 } }
.vunder { height: 210px; flex-shrink: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 14px; padding: 0 28px; text-align: center; overflow: hidden; }
.voice:not(.nocard) .vunder { display: none; }
.vline { font-family: var(--display); font-size: 22px; font-weight: 700; line-height: 1.35; color: #fff; min-height: 30px; max-height: 4.05em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; transition: color .4s; }
.vline.swap { animation: vlineIn .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes vlineIn { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }
.vline.you { font-family: var(--body); font-size: 19px; font-weight: 400; color: #A8A8AD; }
.vsteps { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.vsteps.gone .vsr { opacity: 0; transition: opacity .3s; }
.vsr { display: flex; align-items: center; gap: 8px; max-width: 100%; font-size: 14px; color: #8E8E93; animation: vsrIn .45s cubic-bezier(.2,.8,.2,1) both; transition: color .4s; }
.vsr .ic { width: 14px; height: 14px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.vsr .tx { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vsr.cur { color: #fff; }
@keyframes vsrIn { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }
.vmutel { align-self: center; font-size: 11px; color: #FF6F87; background: rgba(238,27,69,.12); border-radius: 8px; padding: 3px 8px; }
.vfocus { display: none; flex: 0 1 auto; min-height: 0; overflow-y: auto; flex-direction: column; gap: 10px; padding: 6px 16px 12px; }
.voice:not(.nocard) .vfocus { display: flex; }
.vfocus > * { flex-shrink: 0; }
.vbub { align-self: flex-start; max-width: 92%; font-family: var(--display); font-size: 17px; font-weight: 600; line-height: 1.35; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 18px 18px 18px 6px; padding: 10px 14px; }
.vbub:empty { display: none; }
.vbub.you { align-self: flex-end; border-radius: 18px 18px 6px 18px; color: #D8D8DD; font-family: var(--body); font-weight: 400; }
/* recognised speech still coming in */
.vline.live::after, .vbub.live::after { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 4px; background: var(--red); margin-left: 8px; vertical-align: 3px; animation: blink 1s infinite; }
.vstage { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; }
.vstage > .chw { justify-content: center; }
.vstage > .leaving { animation: vcardOut .3s .2s ease both; }   /* the tapped button gets its moment first */
@keyframes vcardOut { to { opacity: 0; transform: translateY(16px) scale(.97) } }
.vbottom { padding: 8px 0 calc(24px + env(safe-area-inset-bottom, 0px)); flex-shrink: 0; }
/* design D03: two quiet round buttons around the red microphone, no captions */
.vctrls { display: flex; justify-content: center; align-items: center; gap: 34px; }
.vcbw { display: flex; align-items: center; }
.vcbw > span { display: none; }
.vcb { width: 80px; height: 80px; border-radius: 40px; border: 1px solid rgba(255,255,255,.12); background: radial-gradient(circle at 50% 0%, rgba(255,255,255,.06), rgba(255,255,255,0) 70%), #1C1C1D; box-shadow: 0 10px 30px rgba(0,0,0,.4); color: #E5E5EA; display: flex; align-items: center; justify-content: center; padding: 0; }
.vcb .snd-off { display: none; }
.vcb.off { background: #fff; color: var(--ink); }
.vcb.off .snd-on { display: none; }
.vcb.off .snd-off { display: block; }
.vcb.vmic { width: 92px; height: 92px; border-radius: 46px; color: #8E8E93; }
.vcb.vmic.on { background: linear-gradient(200deg, #B8355F, #E0153F 60%, #E8213F); border-color: transparent; color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 14px 40px rgba(238,27,69,.35); }
.vcb.vmic.on svg path { animation: vbars 1.1s ease-in-out infinite; transform-origin: 50% 50%; transform-box: fill-box; }
@keyframes vbars { 50% { transform: scaleY(.6) } }
@keyframes micp { 0% { box-shadow: 0 0 0 0 rgba(238,27,69,.45) } 100% { box-shadow: 0 0 0 16px rgba(238,27,69,0) } }

/* Chat widgets shown on the voice screen: the design's dark cards */
.vstage > * { margin: 0 !important; animation: vcardIn .55s cubic-bezier(.2,.8,.2,1) both; }
@keyframes vcardIn { from { opacity: 0; transform: translateY(22px) scale(.97) } to { opacity: 1; transform: none } }
.vstage .card, .vstage .okcard { background: rgba(30,29,28,.92); border: 1px solid rgba(255,255,255,.1); border-radius: 24px; color: #fff; box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.vstage .wh { border-bottom-color: rgba(255,255,255,.07); }
.vstage .wh .wi { background: #fff; color: var(--ink); }
.vstage .wh .lb, .vstage .tpw .lb { color: #C9C9CE; }
.vstage .sm { color: #8E8E93; }
.vstage .chip { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.vstage .chip.on { background: #fff; color: var(--ink); border-color: #fff; }
.vstage .btn { background: #fff; color: var(--ink); }
.vstage .tpw .btn.o, .vstage .btn.o { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.vstage .li { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.1); color: #fff; }
.vstage .li.hl { background: rgba(255,255,255,.07); border-color: #fff; }
.vstage .li .go { background: #fff; color: var(--ink); }
.vstage .src { background: #2B3A55; color: #CFE0FF; }
.vstage .tgl { color: #fff; }
.vstage .tgl i { background: rgba(255,255,255,.2); }
.vstage .tgl.on i { background: var(--red); }
.vstage .stp button { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.vstage .tpx { background: rgba(255,255,255,.1); }
.vstage .tpx svg path { stroke: #fff; }
.vstage .gls { background: rgba(255,255,255,.06); }
.vstage .gls.lite { background: rgba(255,255,255,.04); color: #fff; border-color: rgba(255,255,255,.1); }
.vstage .gls .tot { border-top-color: rgba(255,255,255,.08); }
.vstage .tpok { background: rgba(46,155,88,.18); color: #fff; }
.vstage .payb { background: rgba(255,255,255,.06); }
.vstage .calb { border-top-color: rgba(255,255,255,.08); }
.vstage .cbar i { background: rgba(255,255,255,.18); }
.vstage .li.pax.off .ok { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Options with the facts they are about (show_options with `about`/hint, one-question forms) */
.oc { gap: 8px; }
.osum { display: flex; align-items: center; gap: 10px; }
.olg { width: 34px; height: 34px; border-radius: 10px; background: var(--glass-solid); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.osum .m { flex: 1; min-width: 0; }
.osum .v { font-family: var(--display); font-weight: 800; font-size: 17px; }
.osum .pr { font-family: var(--display); font-weight: 800; font-size: 16px; white-space: nowrap; }
.omini { font-size: 13px; color: var(--muted); }
.ohr { height: 1px; background: var(--line); }
.obtns { display: flex; flex-direction: column; gap: 8px; }
.oc .btn { padding: 12px 14px; white-space: nowrap; }
.btn.red { background: var(--red); justify-content: space-between; gap: 12px; }
.oc .btn.o { background: #fff; color: var(--glass-solid); border: 1.5px solid var(--glass-solid); padding: 10.5px 12px; justify-content: center; }
.ottl { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.orc { display: flex; align-items: center; gap: 10px; padding: 0 2px 2px; }
.orc .ok { width: 28px; height: 28px; border-radius: 14px; background: var(--ok); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.orc .m { min-width: 0; }
.orc .v { font-size: 14px; font-weight: 500; }
.orow { font: inherit; cursor: pointer; }
.orow .m { display: flex; flex-direction: column; gap: 2px; }
.orow .t { margin-top: 0; }
.orow:disabled { opacity: .45; }
.oic { width: 34px; height: 34px; border-radius: 10px; background: #F2F2F4; color: var(--ink); display: grid; place-items: center; flex-shrink: 0; }
.og { color: #AEAEB2; display: flex; }
.vstage .olg { background: #fff; color: var(--ink); }
.vstage .ohr { background: rgba(255,255,255,.08); }
.vstage .omini { color: #C9C9CE; }
.vstage .oic { background: rgba(255,255,255,.08); color: #fff; }
.vstage .og { color: #6E6E73; }
.vstage .btn.red { background: var(--red); color: #fff; }
.vstage .oc .btn.o { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
/* in the chat the booking's own check card sits right above; the receipt is for the voice screen */
.oc .orc { display: none; }
.vstage .oc .orc { display: flex; }

/* voice: the tapped button answers at once, before the card leaves */
.vstage .tapped { animation: vtap .45s ease both !important; }
@keyframes vtap { 0% { transform: scale(1) } 35% { transform: scale(.95); box-shadow: 0 0 0 4px rgba(238,27,69,.6) } 100% { transform: scale(1); box-shadow: 0 0 0 10px rgba(238,27,69,0) } }

/* Dark theme (design D, "Dark v2"): the chat on a warm gradient, glassy cards, the client in burgundy,
   bright red only for highlights. Widgets reuse the voice screen's dark look. */
.dk .chat { --ink: #F5F5F7; --muted: #8E8E93; --line: rgba(255,255,255,.07); --user: rgba(238,27,69,.20); --user-ink: #F5F5F7; --user-ring: rgba(238,27,69,.18); color-scheme: dark;
  background: radial-gradient(85% 42% at 100% -4%, rgba(238,27,69,.26), rgba(238,27,69,0) 70%), radial-gradient(70% 38% at -10% 38%, rgba(132,84,190,.16), rgba(132,84,190,0) 70%), radial-gradient(90% 40% at 60% 108%, rgba(238,27,69,.14), rgba(238,27,69,0) 70%), linear-gradient(180deg, #241C1F 0%, #1C191B 42%, #18171A 100%); }
.dk .cb { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.13); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.dk .tcard { background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.035)); border-color: rgba(255,255,255,.08); color: #F5F5F7; }
.dk .tcard .go { background: rgba(255,255,255,.09); }
.tcard .dkimg, .dk .tcard .ltimg { display: none; }
.dk .tcard .dkimg { display: block; }
.dk .bi { background: rgba(255,255,255,.065); color: #F5F5F7; }
.dk .sys { background: rgba(255,255,255,.06); color: #A8A8AD; }
.dk .dv { color: #FF6F87; }
.dk .vt { background: rgba(238,27,69,.18); color: #FF8BA0; }
.dk .feed .wh { border-bottom-color: rgba(255,255,255,.07); }
.dk .feed .wh .wi { background: #fff; color: #1C1C1E; }
.dk .feed .wh .lb, .dk .feed .tpw .lb { color: #C9C9CE; }
.dk .feed .sm { color: #8E8E93; }
.dk .feed .chip { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.dk .feed .chip.on { background: #fff; color: #1C1C1E; border-color: #fff; }
.dk .feed .btn { background: #fff; color: #1C1C1E; }
.dk .feed .tpw .btn.o, .dk .feed .btn.o { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.dk .feed .li { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.1); color: #fff; }
.dk .feed .li.hl { background: rgba(255,255,255,.07); border-color: #fff; }
.dk .feed .li .go { background: #fff; color: #1C1C1E; }
.dk .feed .src { background: #2B3A55; color: #CFE0FF; }
.dk .feed .tgl { color: #fff; }
.dk .feed .tgl i { background: rgba(255,255,255,.2); }
.dk .feed .tgl.on i { background: var(--red); }
.dk .feed .stp button { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.dk .feed .tpx { background: rgba(255,255,255,.1); }
.dk .feed .tpx svg path { stroke: #fff; }
.dk .feed .gls { background: rgba(255,255,255,.06); }
.dk .feed .gls.lite { background: rgba(255,255,255,.04); color: #fff; border-color: rgba(255,255,255,.1); }
.dk .feed .gls .tot { border-top-color: rgba(255,255,255,.08); }
.dk .feed .tpok { background: rgba(46,155,88,.18); color: #fff; }
.dk .feed .payb { background: rgba(255,255,255,.06); }
.dk .feed .calb { border-top-color: rgba(255,255,255,.08); }
.dk .feed .cbar i { background: rgba(255,255,255,.18); }
.dk .feed .li.pax.off .ok { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); }
.dk .feed .olg { background: #fff; color: #1C1C1E; }
.dk .feed .ohr { background: rgba(255,255,255,.08); }
.dk .feed .omini { color: #C9C9CE; }
.dk .feed .oic { background: rgba(255,255,255,.08); color: #fff; }
.dk .feed .og { color: #6E6E73; }
.dk .feed .btn.red { background: var(--red); color: #fff; }
.dk .feed .oc .btn.o { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.dk .feed .card, .dk .feed .okcard { background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.07); color: #F5F5F7; box-shadow: none; }
.dk .feed .okcard { border-color: rgba(46,155,88,.45); }
.dk .feed .li { background: rgba(255,255,255,.055); border-color: transparent; border-radius: 18px; }
.dk .feed .li.hl { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16); }
.dk .feed .li .go { background: #4A4A4B; color: #F5F5F7; border-radius: 16px; padding: 7px 12px; font-weight: 600; }
.dk .feed .li.hl .go { background: #F5F5F7; color: #161616; }
.dk .feed .chip { background: rgba(255,255,255,.07); border-color: transparent; color: #E5E5EA; }
.dk .feed .chip.on { background: rgba(238,27,69,.22); border-color: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(238,27,69,.45); }
.dk .feed .btn { background: #F5F5F7; color: #161616; font-weight: 600; }
.dk .feed .btn.red { background: linear-gradient(200deg, #F2456B, #E0123E 70%); color: #fff; box-shadow: 0 8px 22px rgba(238,27,69,.35); }
.dk .tb { background: rgba(255,255,255,.08); }
.dk .tbi { background: #201C1E; }
.dk .tbh, .dk .tbh:disabled { color: #F5F5F7; }
.dk .cur, .dk .st2 { color: #A8A8AD; }
.dk .stl { border-top-color: rgba(255,255,255,.06); }
.dk .tdots i { background: #6E6E73; }
.dk .in { background: rgba(32,28,31,.72); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 -10px 30px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.04); }
.dk .fld::placeholder { color: #8E8E93; }

/* Round trip in one card (design option 4): "Out" / "Back" tabs, the total and "Book ticket" under them */
.ftabs .seg { display: flex; background: #F2F2F4; border-radius: 14px; padding: 3px; }
.ftabs .seg button { flex: 1; border: 0; background: none; border-radius: 11px; padding: 8px 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.ftabs .seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.ftabs .seg button:disabled { opacity: .4; cursor: default; }
.ftabs .seg small { display: block; margin-top: 1px; font-size: 11px; font-weight: 400; color: var(--muted); }
.fpane { display: flex; flex-direction: column; gap: 8px; }
.fpane .li { position: relative; }
.fpane .li:has(.bp) { margin-top: 8px; }
.fpane .bp { position: absolute; left: -6px; top: -10px; font-size: 10.5px; font-weight: 500; color: #fff; background: var(--red); border-radius: 10px; padding: 3px 8px; }
.fhint { padding: 10px 2px; font-size: 13px; color: var(--muted); }
.ftot { display: flex; flex-direction: column; gap: 2px; }
.ftl { display: flex; align-items: baseline; justify-content: space-between; font-size: 13px; color: var(--muted); }
.ftl b { font-size: 16px; color: var(--ink); }
.ftabs .btn.red:disabled { opacity: .45; }
.dk .ftabs .seg, .vstage .ftabs .seg { background: rgba(255,255,255,.06); }
.dk .ftabs .seg button.on, .vstage .ftabs .seg button.on { background: rgba(255,255,255,.12); color: #fff; box-shadow: none; }
.vstage .ftl b { color: #fff; }
