/* Photo and glass. One look only (dark glass over a sunset photo). */
:root {
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, .72);
  --glass: rgba(14, 20, 34, .52);
  --glass-hi: rgba(255, 255, 255, .14);
  --edge: rgba(255, 255, 255, .2);
  --accent: #ff9a5a;
  --accent-ink: #2b1204;
  --good: #8ae6b0;
  --warn: #ffd27a;
  --blur: blur(18px) saturate(140%);
  --tabs-h: 68px;
  --bg: url(assets/bg-sandip.jpg);   /* the app sets both of these from the chosen backdrop */
  --glow: 255, 156, 96;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; background: #0b1020; }
body {
  margin: 0;
  color: var(--ink);
  font: 17px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding-bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom) + 28px);
}
/* the photo (assets/bg.jpg if you add one, otherwise the drawn sunset) and a dark veil so text always reads */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  background: var(--bg) center / cover no-repeat, url(assets/bg.svg) center / cover no-repeat, #0b1020;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(6, 10, 22, .58) 0%, rgba(6, 10, 22, .32) 42%, rgba(6, 10, 22, .6) 100%);
}
a { color: var(--accent); }
h1, h2, h3 { margin: 0; line-height: 1.15; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.05rem; font-weight: 800; letter-spacing: .01em; }

/* header */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px;
  padding: calc(env(safe-area-inset-top) + 10px) 16px 10px;
  background: linear-gradient(180deg, rgba(8, 12, 24, .78), rgba(8, 12, 24, .5));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.ic { width: 24px; height: 24px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.5rem; letter-spacing: .01em; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.brand .ic { width: 28px; height: 28px; color: var(--accent); filter: drop-shadow(0 0 8px rgba(var(--glow), .8)); }
.brand-sub { font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .85); margin-left: 2px; padding-top: 3px; }
.brand-sub:empty { display: none; }
@media (max-width: 369px) { .brand-sub { display: none; } }   /* very narrow phones: keep the driver button whole */
.net { font-size: .78rem; font-weight: 800; padding: 4px 10px; border-radius: 99px; background: var(--warn); color: #3a2800; }
.driverbtn {
  display: inline-flex; align-items: center; gap: 8px;
  margin-left: auto; text-decoration: none; font-weight: 800; font-size: .95rem;
  background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 99px;
  box-shadow: 0 0 28px rgba(var(--glow), .85), 0 0 60px rgba(var(--glow), .35), 0 4px 16px rgba(0, 0, 0, .3);
}

main { max-width: 600px; margin: 0 auto; padding: 8px 16px 16px; }

/* floating tab bar */
.tabs {
  position: fixed; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom) + 12px); z-index: 20;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; padding: 6px;
  background: var(--glass); border: 1.5px solid rgba(var(--glow), .9); border-radius: 26px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), 0 0 26px rgba(var(--glow), .5);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  max-width: 560px; margin: 0 auto;
}
.tabs a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 52px; border-radius: 20px; text-decoration: none; color: var(--muted); font-size: .7rem; font-weight: 700;
}
.tabs svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabs a.on { background: #fff; color: #14192b; box-shadow: 0 0 28px rgba(var(--glow), .95), 0 0 56px rgba(var(--glow), .4); }

/* glass surfaces */
.card, .row, .blockcard, .tile, .ticket, .slot, .next, .phrase {
  background: var(--glass); border: 1.5px solid rgba(var(--glow), .9);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  /* glowing glass: a bright hairline just inside the edge, light glowing inwards, and a strong coloured glow outside */
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), inset 0 0 26px rgba(var(--glow), .24), 0 0 26px rgba(var(--glow), .55), 0 0 64px rgba(var(--glow), .22), 0 6px 24px rgba(0, 0, 0, .25);
}
.card { border-radius: 22px; padding: 16px 18px; margin: 0 0 12px; }
.sec { margin: 24px 0 10px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.sec:first-child { margin-top: 4px; }
.sub { color: var(--muted); font-size: .92rem; }
.chip { display: inline-block; font-size: .72rem; font-weight: 800; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.chip-booked { background: rgba(138, 230, 176, .2); color: var(--good); }
.chip-tbc { background: rgba(255, 255, 255, .18); color: #fff; }

/* buttons: all sit on glass or on the photo veil */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 50px; padding: 11px 20px;
  border-radius: 99px; border: 1px solid var(--edge); background: rgba(24, 30, 50, .62); color: #fff;
  font: inherit; font-weight: 800; text-decoration: none; cursor: pointer;
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.teal { background: #fff; color: #14192b; border-color: transparent; }
.btn.small { min-height: 40px; padding: 7px 16px; font-size: .9rem; }
.btn.ghost { background: transparent; }
.btn:disabled { opacity: .6; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 4px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; }

/* Today */
.hero { text-align: left; padding: 22px 4px 18px; text-shadow: 0 2px 18px rgba(0, 0, 0, .5); }
.hero .big { font-size: 6.4rem; font-weight: 800; line-height: .95; letter-spacing: -.03em; }
.hero .herolabel { font-size: 1.5rem; font-weight: 800; margin-top: 2px; }
.hero .herosub { color: rgba(255, 255, 255, .85); margin-top: 6px; font-weight: 600; }
.today-h { padding: 18px 4px 6px; text-shadow: 0 2px 18px rgba(0, 0, 0, .5); }
.today-h .wd { font-size: 3rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.today-h .dt { font-size: 1.05rem; font-weight: 700; margin-top: 6px; color: rgba(255, 255, 255, .9); }
.next { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; border-radius: 28px; padding: 18px 18px 18px 22px; margin: 12px 0 14px; border: 2.5px solid rgba(var(--glow), 1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5), inset 0 0 40px rgba(var(--glow), .32), 0 0 38px rgba(var(--glow), .85), 0 0 100px rgba(var(--glow), .4), 0 8px 28px rgba(0, 0, 0, .3); }
.nx-main { flex: 1; min-width: 0; }
.next .k { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: var(--accent); color: var(--accent-ink); padding: 4px 11px; border-radius: 99px; }
.next .nt { font-size: 2.1rem; font-weight: 800; line-height: 1.05; margin-top: 10px; letter-spacing: -.01em; }
.next .ntt { font-size: 1.2rem; font-weight: 700; margin-top: 2px; }
.next .w { display: flex; align-items: center; gap: 8px; color: var(--muted); margin-top: 8px; font-weight: 600; }
.next .w .ic { width: 20px; height: 20px; }
.next .chev { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .7); display: flex; align-items: center; justify-content: center; }
.next .chev .ic { width: 20px; height: 20px; }

/* label-only tiles */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; min-height: 104px; border-radius: 22px; padding: 14px 16px;
  text-decoration: none; color: #fff; position: relative;
}
.tile small { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.tile b { font-size: 1.12rem; line-height: 1.15; }
.tile .chip { position: absolute; top: 12px; right: 12px; }

/* itinerary */
.days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day {
  flex: 0 0 auto; min-width: 74px; text-align: center; text-decoration: none; color: #fff; font-weight: 800; font-size: 1rem;
  background: var(--glass); border: 1px solid var(--edge); border-radius: 18px; padding: 10px 12px;
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
.day small { display: block; font-weight: 700; color: var(--muted); font-size: .72rem; }
.day.sel { background: #fff; color: #14192b; border-color: transparent; }
.day.sel small { color: #4a5068; }
/* a part of the day: a subheading (Morning, Afternoon, Evening), then a card with everything happening in it */
.blk-h { display: flex; align-items: center; gap: 10px; margin: 22px 4px 10px; font-size: 1.15rem; font-weight: 800; color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
.blk-h .ic { width: 26px; height: 26px; color: var(--accent); filter: drop-shadow(0 0 8px rgba(var(--glow), .8)); }
.blockcard { border-radius: 24px; padding: 2px 16px; }
.bitem { display: flex; align-items: center; gap: 10px; padding: 12px 0; color: #fff; text-decoration: none; border-top: 1px solid rgba(255, 255, 255, .14); }
.bitem:first-child { border-top: 0; }
.bitem.past { opacity: .5; }
.bitem .ti { flex: 1; min-width: 0; font-weight: 700; font-size: 1.02rem; line-height: 1.2; }
.bitem .ti small { display: block; font-weight: 600; color: var(--muted); font-size: .72rem; margin-top: 2px; }
.bitem .go { flex: 0 0 auto; color: rgba(255, 255, 255, .8); display: flex; }
.bitem .go .ic { width: 20px; height: 20px; }
.tp { flex: 0 0 auto; min-width: 84px; text-align: center; font-weight: 800; font-size: .92rem; color: var(--accent); border: 1.5px solid rgba(var(--glow), .6); border-radius: 99px; padding: 6px 10px; background: rgba(0, 0, 0, .18); }
.tp.on { border-color: rgba(var(--glow), 1); box-shadow: 0 0 16px rgba(var(--glow), .6), inset 0 0 10px rgba(var(--glow), .22); }

/* rows */
.row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; text-decoration: none; color: #fff;
  border-radius: 18px; padding: 14px 16px; margin-bottom: 8px;
}
.row b { display: block; }
.row .sub { margin-top: 1px; }
.row .r { text-align: right; flex: 0 0 auto; }

/* booking detail */
.back { display: inline-block; margin: 4px 0 12px 4px; text-decoration: none; font-weight: 800; color: #fff; }
.ticket { border-radius: 26px; padding: 20px; }
.tk-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.when { color: var(--muted); margin: 4px 0 16px; }
.qr { margin: 6px 0 16px; text-align: center; background: #fff; border-radius: 20px; padding: 14px; }
.qr img { width: 100%; max-width: 340px; height: auto; display: block; margin: 0 auto; image-rendering: pixelated; }
.qr figcaption { color: #14192b; font-weight: 800; margin-top: 8px; }
.ref { display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, .12); border-radius: 18px; padding: 14px 16px; margin-bottom: 16px; }
.ref > div:first-child { flex: 1; min-width: 0; }
.reflabel { font-size: .74rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.refval { font-size: 1.2rem; font-weight: 800; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.refval.big { font-size: 1.8rem; letter-spacing: .04em; }
dl.kv { margin: 0 0 8px; }
dl.kv div { padding: 11px 0; border-top: 1px solid var(--edge); }
dl.kv dt { font-size: .72rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
dl.kv dd { margin: 3px 0 0; }
.notes { margin: 8px 0 0; padding-left: 20px; color: var(--muted); }
.notes li { margin: 4px 0; }
.links { margin-top: 14px; display: grid; gap: 8px; }
.links a { font-weight: 800; }
.links small { color: var(--muted); font-weight: 600; }

/* tap a code to fill the screen with it */
.imgwrap { position: relative; cursor: zoom-in; }
.imgwrap .expand { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; background: rgba(12, 15, 26, .78); color: #fff; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.imgwrap .expand svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
body.fs-open { overflow: hidden; }
.fs { position: fixed; inset: 0; z-index: 100; background: #fff; display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.fs img { width: 100%; height: 100%; max-width: 100vw; max-height: 100vh; max-height: 100dvh; object-fit: contain; padding: 14px; box-sizing: border-box; }
.fs-x { position: absolute; top: calc(env(safe-area-inset-top) + 12px); right: 14px; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(12, 15, 26, .85); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 0 4px; }

/* image slots */
.slot { border: 2px dashed rgba(255, 255, 255, .4); border-radius: 22px; padding: 14px; margin: 0 0 12px; box-shadow: none; }
.slot-label { font-weight: 800; margin-bottom: 8px; }
.slot-empty { color: var(--muted); padding: 14px 0 12px; text-align: center; }
.slot-img { width: 100%; max-height: 70vh; object-fit: contain; background: #fff; border-radius: 14px; display: block; }
.slot-actions { display: flex; gap: 8px; margin-top: 10px; }
.slot-actions label, .slot-body > label { cursor: pointer; }

/* text boxes */
input[type=text], input[type=password], textarea {
  font: inherit; color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid var(--edge); border-radius: 14px; padding: 11px 13px; min-width: 0;
}
::placeholder { color: rgba(255, 255, 255, .55); }
input[type=text]:focus, input[type=password]:focus, textarea:focus {
  outline: 0; border-color: rgba(var(--glow), .95); box-shadow: 0 0 20px rgba(var(--glow), .55);
}
textarea { width: 100%; min-height: 110px; resize: vertical; }
.grp { margin: 18px 0 8px 4px; font-weight: 800; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .8); text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }

/* show to driver: solid white, black text, big, for bright sun */
.picks { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: none; }
.picks::-webkit-scrollbar { display: none; }
.pick { flex: 0 0 auto; text-decoration: none; color: #fff; background: var(--glass); border: 1px solid var(--edge); border-radius: 99px; padding: 9px 16px; font-weight: 800; font-size: .92rem; -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.pick.sel { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.drv { background: #fff; color: #0c0f1a; border-radius: 28px; padding: 26px 20px; text-align: center; }
.drv .id { font-size: 1.3rem; font-weight: 800; }
.drv .en { color: #555a6b; margin-top: 2px; }
.drv .nm { font-size: 2.2rem; font-weight: 800; line-height: 1.1; margin: 24px 0 12px; }
.drv .ad { font-size: 1.5rem; line-height: 1.3; font-weight: 600; }
.drv .ph { margin-top: 18px; font-size: 1.2rem; font-weight: 800; }

/* translate */
.tr-dir { display: flex; align-items: center; justify-content: center; gap: 14px; font-weight: 800; font-size: 1.05rem; margin-bottom: 12px; }
.swap { appearance: none; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(var(--glow), .9); background: rgba(24, 30, 50, .62); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 0 18px rgba(var(--glow), .45); }
.swap .ic { width: 22px; height: 22px; }
.tr-card textarea { min-height: 96px; font-size: 1.1rem; }
.tr-res { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--edge); }
.tr-text { font-size: 1.55rem; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.tr-note { color: var(--muted); font-size: .8rem; margin-top: 12px; }
.tr-wait { margin-top: 14px; }
#phsearch { width: 100%; margin-bottom: 12px; }
.cats .cat { appearance: none; font: inherit; font-weight: 800; cursor: pointer; min-width: 0; padding: 10px 16px; }
.phrase { display: block; width: 100%; text-align: left; appearance: none; font: inherit; color: #fff; border-radius: 20px; padding: 14px 18px; margin-bottom: 10px; cursor: pointer; }
.phrase .pe { display: block; color: var(--muted); font-size: .88rem; }
.phrase .pi { display: block; font-weight: 800; font-size: 1.15rem; margin-top: 3px; line-height: 1.25; }

/* a phrase held up in huge print */
.fs-text { flex-direction: column; padding: 28px 22px; cursor: zoom-out; }
.st { text-align: center; max-width: 560px; }
.st-id { font-size: clamp(2.2rem, 10.5vw, 3.8rem); font-weight: 800; line-height: 1.12; color: #0c0f1a; overflow-wrap: anywhere; }
.st-en { font-size: 1.25rem; color: #555a6b; margin-top: 20px; }
.st-speak { margin-top: 28px; cursor: pointer; }
.st-speak .ic { width: 22px; height: 22px; }
.fs-text .btn.teal { background: #0c0f1a; color: #fff; }

/* backdrop picker */
.bds { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bd { appearance: none; border: 2px solid var(--edge); background: rgba(24, 30, 50, .62); color: #fff; border-radius: 20px; padding: 6px 6px 10px; font: inherit; font-weight: 800; cursor: pointer; text-align: center; }
.bd img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; margin-bottom: 8px; }
.bd.sel { border-color: rgba(var(--glow), 1); box-shadow: 0 0 22px rgba(var(--glow), .6); }

/* misc */
.pill-ok { display: inline-block; padding: 4px 12px; border-radius: 99px; font-weight: 800; font-size: .8rem; }
.pill-ok.yes { background: rgba(138, 230, 176, .2); color: var(--good); }
.pill-ok.no { background: rgba(255, 210, 122, .2); color: var(--warn); }
.offline-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ph2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; padding: 11px 0; border-top: 1px solid var(--edge); }
.card .ph2:first-child { border-top: 0; padding-top: 0; }
.ph2 b { font-weight: 800; }
.ph2 span { color: var(--muted); }
.big-num { font-size: 1.5rem; font-weight: 800; }
.foot { text-align: center; color: var(--muted); font-size: .8rem; margin-top: 26px; }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom) + 28px); transform: translate(-50%, 20px);
  background: #fff; color: #14192b; padding: 12px 18px; border-radius: 99px; font-weight: 800; max-width: 90vw;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* lock screen */
body.locked .top, body.locked .tabs { display: none; }
body.locked { padding-bottom: 0; }
.lock { min-height: 82vh; display: flex; flex-direction: column; justify-content: center; text-align: center; gap: 12px; text-shadow: 0 2px 14px rgba(0, 0, 0, .5); }
.lock h1 { font-size: 3.2rem; font-weight: 800; }
.lock form { display: grid; gap: 12px; margin-top: 8px; text-shadow: none; }
.lock input[type=password] { font-size: 1.1rem; text-align: center; padding: 15px; background: rgba(14, 20, 34, .62); }
.lockerr { color: var(--warn); font-weight: 800; min-height: 1.4em; margin: 0; }

/* On a wide screen (laptop, or a wide preview pane) show the app as a phone-width column in the middle,
   so it always looks the way it will on a phone. */
@media (min-width: 520px) {
  main { max-width: 430px; padding-top: 16px; }
  .top { padding-left: max(16px, calc(50% - 199px)); padding-right: max(16px, calc(50% - 199px)); }
  .tabs { max-width: 406px; }
}
