@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/f0.ttf) format('truetype'); }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/f1.ttf) format('truetype'); }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/f2.ttf) format('truetype'); }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/f3.ttf) format('truetype'); }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/f4.ttf) format('truetype'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/f5.ttf) format('truetype'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/f6.ttf) format('truetype'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/f7.ttf) format('truetype'); }

:root {
  --navy: #082186;
  --navy-2: #0E2C9A;
  --navy-3: #1E48B0;
  --yellow: #FBE500;
  --yellow-2: #FFF44A;
  --yellow-dim: rgba(251, 229, 0, 0.18);
  --yellow-ink: #5C5300;
  --bg: #F8FAFC;
  --card: #FFFFFF;
  --text: #082186;
  --muted: #5B6B86;
  --faint: #8A97AB;
  --line: #E2E7F0;
  --line-strong: #C9D2E0;
  --red: #C0392B;
  --red-dim: #FDECEA;
  --green: #187A4A;
  --green-dim: #E6F6EE;
  --tg: #2AABEE;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(8, 33, 134, 0.08);
  --shadow-lg: 0 22px 50px rgba(8, 33, 134, 0.16);
  --font: "Be Vietnam Pro", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  background: #082186;
  min-height: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
button, input { font-family: inherit; }
button { cursor: pointer; }
a { color: var(--navy-3); }
.shot-mode .demo-bar,
.shot-mode .demo-nav,
.shot-mode .demo-only { display: none !important; }
.shot-only { display: none; }
.shot-mode .shot-only { display: block; }
.hidden { display: none !important; }

.demo-bar {
  background: var(--navy);
  color: var(--yellow);
  font-size: 12.5px;
  font-weight: 500;
  text-align: center;
  padding: 8px 16px;
}
.demo-bar strong { color: #fff; font-weight: 700; }

.shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  background: var(--bg);
}
.site-footer {
  width: 100%;
  margin-top: auto;
  background: var(--navy);
  color: #D5DCEB;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 14px 24px;
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  flex-shrink: 0;
}
.site-footer strong { color: var(--yellow); font-weight: 700; }
.footer-support {
  background: none; border: 0; padding: 0;
  color: #fff; font-family: inherit;
  font-weight: 800; font-size: 14px; letter-spacing: 0.03em;
  cursor: pointer;
}
.footer-support:hover, .footer-support:focus { color: var(--yellow); outline: none; }

.sup-overlay {
  position: fixed; inset: 0;
  background: rgba(8, 33, 134, 0.58);
  display: flex; align-items: center; justify-content: center;
  z-index: 42; padding: 24px;
}
.sup-overlay.hidden { display: none; }
.sup-panel {
  width: 100%; max-width: 460px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(8,33,134,0.28);
  display: flex; flex-direction: column;
  max-height: min(640px, 90vh);
  overflow: hidden;
}
.sup-panel { border: 3px solid #fff; box-shadow: 0 24px 64px rgba(8,33,134,0.4), 0 0 0 2px #FBE500; }
.sup-head {
  background: #fff; color: var(--navy);
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  border-bottom: 3px solid var(--yellow);
}
.sup-head img { width: 32px; height: 32px; object-fit: contain; }
.sup-head .ttl { font-weight: 800; font-size: 16px; letter-spacing: 0.02em; }
.sup-head .sub { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.sup-head > div { flex: 1; text-align: left; }
.sup-close {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg); color: var(--navy);
  font-size: 18px; font-weight: 700; cursor: pointer; border: 0;
}
.sup-thread {
  flex: 1; overflow-y: auto;
  padding: 16px 16px 8px;
  background: var(--bg);
  display: flex; flex-direction: column; gap: 10px;
  min-height: 220px;
}
.sup-msg {
  max-width: 88%;
  border-radius: 16px;
  padding: 10px 13px;
  font-size: 14px; font-weight: 500; line-height: 1.5;
}
.sup-msg.bot {
  background: #fff; color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 4px 16px 16px 16px;
  align-self: flex-start;
}
.sup-msg.bot .who { font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.sup-msg.me {
  background: var(--navy); color: #fff;
  border-radius: 16px 4px 16px 16px;
  align-self: flex-end;
}
.sup-thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.sup-thumbs img {
  width: 96px; height: 72px; object-fit: cover;
  border-radius: 8px; border: 2px solid rgba(255,255,255,0.4);
  background: #fff;
}
.sup-msg.bot .sup-thumbs img { border-color: var(--line); }
.sup-ticket {
  margin-top: 8px; font-size: 12px; font-weight: 800;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  color: var(--navy); background: var(--yellow);
  display: inline-block; border-radius: 6px; padding: 3px 8px;
}
.sup-compose {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 12px 14px 14px;
}
.sup-compose textarea {
  width: 100%; min-height: 86px; resize: vertical;
  border: 2px solid var(--line); border-radius: 12px;
  padding: 10px 12px; font-family: inherit; font-size: 14px;
  color: var(--navy); outline: none;
}
.sup-compose textarea:focus { border-color: var(--navy); }
.sup-compose textarea::placeholder { color: var(--faint); font-weight: 500; }
.sup-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.sup-attach {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg); border: 1.5px solid var(--line);
  border-radius: 10px; padding: 8px 12px;
  font-weight: 700; font-size: 13px; color: var(--navy); cursor: pointer;
}
.sup-attach input { display: none; }
.sup-send {
  margin-left: auto;
  background: var(--yellow); color: var(--navy);
  border: 0; border-radius: 10px;
  padding: 10px 18px; font-weight: 800; font-size: 14px; cursor: pointer;
  font-family: inherit;
}
.sup-send:disabled { opacity: 0.45; cursor: default; }
.sup-previews { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.sup-previews .pv {
  position: relative; width: 88px; height: 66px;
}
.sup-previews .pv img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.shot-mode .shell { min-height: 0; }
.shot-mode .layout { flex-grow: 0; padding-bottom: 20px; }
.shot-mode .site-footer { margin-top: 0; }
.header {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr);
  align-items: center;
  width: 100%;
  padding: 10px 32px;
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
  gap: 16px;
  min-height: 92px;
  overflow: visible;
}
.brand { display: flex; align-items: center; gap: 12px; cursor: pointer; min-width: 0; justify-self: start; text-decoration: none; color: inherit; }
a.brand:hover { text-decoration: none; color: inherit; }
.logo-mark {
  width: 44px; height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
.brand-name { font-weight: 800; font-size: 30px; letter-spacing: 0.08em; color: #fff; line-height: 1; }
.utc-clock {
  justify-self: center;
  text-align: center;
  user-select: none;
  min-width: 260px;
 pointer-events: none;}
.utc-time {
  font-family: var(--mono);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.utc-meta {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--yellow);
}
.utc-badge {
  background: var(--yellow);
  color: var(--navy);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.12em;
  padding: 2px 8px;
  border-radius: 5px;
}
.header-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; justify-self: end; position: relative; z-index: 40; pointer-events: auto; }
.live-pill {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: #d5dceb;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 6px 12px 6px 10px;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(251,229,0,0.22);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(251,229,0,0.22); }
  50% { box-shadow: 0 0 0 6px rgba(251,229,0,0.4); }
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 10px;
  font-weight: 700; font-size: 14.5px;
  padding: 11px 18px;
  transition: transform .12s ease, filter .12s ease, background .12s ease;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.disabled { opacity: 0.42; cursor: not-allowed; filter: none; transform: none; }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-yellow:hover { background: var(--yellow-2); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-ghost {
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,0.22);
}
.btn-ghost.ink { color: var(--navy); border-color: var(--line-strong); }
.btn-ghost.ink:hover { background: var(--bg); }
.btn-tg { background: var(--tg); color: #fff; }
.btn-lg { padding: 13px 22px; font-size: 15px; }
.btn-xl { padding: 16px 42px; font-size: 17px; border-radius: 12px; min-width: 280px; }
.btn-block { width: 100%; }
.user-chip {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 4px 8px 4px 4px;
  font-size: 13.5px; font-weight: 500; color: #fff;
}
.user-chip .av {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--tg); display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: #fff;
}
.booking-pill {
  background: var(--yellow);
  color: var(--navy);
  font-weight: 800;
  font-size: 12.5px;
  border-radius: 999px;
  padding: 5px 11px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.3;
  position: relative;
  z-index: 41;
  min-height: 36px;
  touch-action: manipulation;
  pointer-events: auto;
}
.booking-pill:hover { filter: brightness(1.08); }
.booking-pill.empty {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--yellow);
}
.user-chip.clickable { cursor: pointer; }
.user-chip.clickable:hover { background: rgba(255,255,255,0.16); }
.tg-stack { display: grid; gap: 8px; margin-top: 10px; }
.tg-msg-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
}
.tg-msg-item .when {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.tg-msg-item .when strong { color: var(--navy); font-weight: 800; text-transform: none; letter-spacing: 0; }

.layout {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 32px 28px;
  align-content: start;
  align-items: start;
}
.layout.single { grid-template-columns: 1fr; }
.layout.landing-home {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 24px;
}
.layout.landing-home #feedCol { max-width: none; width: 100%; margin: 0; }
.view { display: none; animation: fade .28s ease; }
.view.active { display: block; }
@keyframes fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
h1 { font-size: 36px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; color: var(--navy); }
h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--navy); }
h3 { font-size: 15px; font-weight: 700; color: var(--navy); }
.lede { color: var(--muted); font-size: 16px; margin-top: 10px; max-width: 580px; }
.lede.center, .center { text-align: center; margin-left: auto; margin-right: auto; }
.welcome { text-align: center; max-width: 740px; margin: 12px auto 28px; }
.welcome h1 { font-size: 34px; }
.welcome .tagline {
  font-size: 20px; font-weight: 700; color: var(--navy);
  margin-top: 16px; letter-spacing: -0.02em;
}
.welcome .need {
  font-size: 18px; font-weight: 650; color: var(--navy-2);
  margin-top: 8px;
}
.points {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center;
  margin: 22px 0 8px;
  list-style: none;
}
.points li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px; font-weight: 650;
  box-shadow: var(--shadow);
}
.price-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 26px; justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px; color: var(--text); font-weight: 500;
}
.chip em { font-style: normal; color: var(--navy); font-weight: 800; }
.chip.gold { background: var(--yellow-dim); border-color: rgba(251,229,0,0.45); }

.svc-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin: 18px 0 22px; }
.svc {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background .15s;
  box-shadow: var(--shadow);
  text-align: left;
}
.svc:hover { border-color: var(--navy-3); }
.svc.selected {
  border-color: var(--navy);
  background: linear-gradient(180deg, #fff 60%, #fff8dc);
  box-shadow: 0 0 0 3px var(--yellow-dim), var(--shadow);
}
.svc .name { font-size: 18px; font-weight: 800; }
.svc .desc { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.svc .tag {
  display: inline-block; margin-top: 12px;
  font-size: 11.5px; font-weight: 700;
  background: var(--yellow); color: var(--navy);
  border-radius: 999px; padding: 3px 9px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.card + .card { margin-top: 16px; }
.grid-2 > .card + .card, .tech-grid > .card + .card, .app-split > .card + .card { margin-top: 0; }
.feed { align-self: start; }
.feed h3 { margin-bottom: 14px; }
.feed-item {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
}
.feed-item:first-of-type { border-top: 0; padding-top: 0; }
.feed-item .t { font-family: var(--mono); font-size: 11.5px; color: var(--faint); font-weight: 600; }
.feed-item .b { margin-top: 3px; font-weight: 550; }
.feed-item.ok .b { color: var(--green); }
.feed-item.bad .b { color: var(--red); }
.feed-item.warn .b { color: #9A6B00; }
.badge {
  display: inline-block;
  font-size: 10.5px; font-weight: 800;
  letter-spacing: 0.04em; text-transform: uppercase;
  border-radius: 999px; padding: 2px 7px; margin-left: 6px;
}
.badge-ok { background: var(--green-dim); color: var(--green); }
.badge-bad { background: var(--red-dim); color: var(--red); }
.badge-warn { background: var(--yellow-dim); color: var(--yellow-ink); }

.summary { display: grid; gap: 10px; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14.5px; }
.row .l { color: var(--muted); }
.row .r { font-weight: 700; text-align: right; }
.hr { height: 1px; background: var(--line); margin: 12px 0; }
.amount { font-family: var(--mono); font-size: 32px; font-weight: 700; letter-spacing: -0.03em; color: var(--navy); }
.amount small { font-size: 16px; font-weight: 600; color: var(--muted); }

.pay-grid { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.qr-wrap { position: relative; width: 260px; }
.qr-wrap img { width: 260px; height: 260px; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: block; }
.demo-stamp {
  position: absolute; right: 12px; bottom: 12px;
  background: var(--yellow); color: var(--navy);
  font-weight: 800; font-size: 11px; letter-spacing: 0.08em;
  padding: 3px 8px; border-radius: 6px;
}
.timer-row { display: flex; align-items: center; gap: 12px; margin: 14px 0; }
.ring { width: 48px; height: 48px; transform: rotate(-90deg); }
.ring circle.bg { fill: none; stroke: var(--line); stroke-width: 5; }
.ring circle.fg { fill: none; stroke: var(--navy); stroke-width: 5; stroke-linecap: round; }
.timer-val { font-family: var(--mono); font-size: 28px; font-weight: 700; letter-spacing: -0.03em; }
.timer-val.exp { color: var(--red); }
.timer-lbl { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.warn-box {
  background: #FFF8E1;
  border: 1px solid rgba(251,229,0,0.55);
  border-left: 4px solid var(--yellow);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13.5px;
  color: var(--navy);
  margin: 14px 0;
}
.addr {
  font-family: var(--mono); font-size: 12.5px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  word-break: break-all;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.tab {
  background: transparent; border: 0; border-bottom: 2px solid transparent;
  padding: 8px 12px; font-weight: 600; color: var(--muted); border-radius: 0;
}
.tab.on { color: var(--navy); border-bottom-color: var(--yellow); }

.expired-card { max-width: 560px; margin: 40px auto; text-align: center; padding: 40px 36px; }
.expired-card .clock, .fail-banner .clock {
  width: 72px; height: 72px; border-radius: 50%;
  background: #fff; color: var(--red);
  border: 2px solid var(--red);
  display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700; font-size: 16px;
  margin: 0 auto 18px;
}

.countdown-big {
  font-family: var(--mono); font-size: 42px; font-weight: 700;
  letter-spacing: -0.04em; color: var(--navy);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  min-width: 8ch;
  display: inline-block;
  text-align: left;
  line-height: 1;
  white-space: nowrap;
}
.queue {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy); color: #fff;
  border-radius: 999px; padding: 8px 16px;
  font-weight: 700;
}
.queue em { font-style: normal; color: var(--yellow); }
.tg-preview {
  display: flex; gap: 12px; align-items: flex-start;
  background: #EAF6FD;
  border: 1px solid #BBE3F8;
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 14px;
}
.tg-preview .ico {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--tg); color: #fff;
  display: grid; place-items: center; flex-shrink: 0;
  font-weight: 800; font-size: 13px;
}
.tg-preview .from { font-weight: 700; font-size: 13px; }
.tg-preview .msg { font-size: 13.5px; margin-top: 2px; color: var(--navy); }
.tg-preview .meta { font-size: 12px; color: var(--muted); margin-top: 4px; }

.steps { display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 10px 0; position: relative; }
.step:not(:last-child)::before {
  content: ""; position: absolute; left: 13px; top: 32px; bottom: -4px;
  width: 2px; background: var(--line);
}
.step.done:not(:last-child)::before { background: var(--green); }
.step .bullet {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line-strong);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800; color: var(--muted);
  position: relative; z-index: 1;
}
.step.now .bullet { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
.step.done .bullet { background: var(--green); border-color: var(--green); color: #fff; }
.step.dim { opacity: 0.38; filter: grayscale(0.25); }
.step.dim .st { color: var(--muted); font-weight: 600; }
.step.dim .bullet {
  background: #e8edf3;
  border-color: #c5ced8;
  color: #8b97a6;
}
.step.done { opacity: 1; filter: none; }
.step .st { font-weight: 700; }
.step .sd { font-size: 13px; color: var(--muted); }

.action {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 8px 0 18px;
  box-shadow: var(--shadow-lg);
}
.action .lbl {
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--yellow);
}
.action .ask { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; margin-top: 4px; }
.action .hint { color: #c9d4e8; margin-top: 6px; font-size: 14px; }

.app-split { display: grid; grid-template-columns: 1fr 420px; gap: 28px; align-items: start; }
.app-window {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-strong);
  overflow: hidden;
}
.app-titlebar {
  background: var(--navy);
  color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  height: 38px; padding: 0 10px 0 12px;
  font-size: 12.5px; font-weight: 600;
}
.app-titlebar .l { display: flex; align-items: center; gap: 8px; }
.app-titlebar .mark {
  width: 18px; height: 18px; border-radius: 4px;
  background: var(--yellow); color: var(--navy);
  display: grid; place-items: center;
  font-size: 8px; font-weight: 800;
}
.app-ctrls { display: flex; gap: 6px; }
.app-ctrls i {
  width: 12px; height: 12px; border-radius: 50%;
  background: rgba(255,255,255,0.22);
  display: block;
}
.app-body { padding: 22px 22px 24px; min-height: 420px; }
.app-body h3 { font-size: 16px; margin-bottom: 4px; }
.app-body .sub { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.check { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; font-weight: 550; }
.check .c {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800; flex-shrink: 0;
}
.check.ok .c { background: var(--green); color: #fff; }
.check.run .c { background: var(--yellow); color: var(--navy); }
.check.wait .c { background: var(--bg); border: 2px solid var(--line); color: var(--faint); }
.app-prompt {
  background: var(--navy); color: #fff; border-radius: 12px;
  padding: 28px 20px; text-align: center; margin-top: 8px;
}
.app-prompt .lbl { color: var(--yellow); font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.app-prompt .ask { font-size: 24px; font-weight: 800; margin: 8px 0 6px; }

.ok-banner {
  background: var(--green-dim);
  border: 1px solid #b7e4c7;
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.ok-banner h1 { color: var(--green); font-size: 28px; }
.fail-banner { background: var(--red-dim); border: 1px solid #f5c2c0; border-radius: var(--radius); padding: 28px; text-align: center; }
.fail-banner h1 { color: var(--red); font-size: 28px; }

.tech-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 20px; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px; border-bottom: 1px solid var(--line); }
.table tr.cur { background: #FFF8E1; }
.hours { display: grid; gap: 8px; }
.hours .h { display: flex; justify-content: space-between; padding: 10px 12px; background: var(--bg); border-radius: 10px; font-size: 13.5px; }
.mono { font-family: var(--mono); font-weight: 600; }

.demo-nav {
  position: sticky; bottom: 0;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 10px 16px;
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
  z-index: 20;
}
.demo-nav button {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 8px; padding: 6px 10px;
  font-size: 12px; font-weight: 600; color: var(--navy);
}
.demo-nav button.on { background: var(--navy); color: var(--yellow); border-color: var(--navy); }
.toast {
  position: fixed; bottom: 72px; left: 50%; transform: translateX(-50%);
  background: var(--navy); color: #fff;
  padding: 10px 16px; border-radius: 10px;
  font-size: 13.5px; font-weight: 550;
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: opacity .2s;
  z-index: 50;
}
.toast.show { opacity: 1; }
.copy-btn { background: transparent; border: 0; color: var(--navy); font-weight: 700; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.note { font-size: 13px; color: var(--muted); margin-top: 8px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.credit { color: var(--green); font-weight: 800; }
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; padding: 20px 16px 24px; }
  .pay-grid, .app-split, .tech-grid, .svc-grid, .grid-2 { grid-template-columns: 1fr; }
  h1, .welcome h1 { font-size: 28px; }
  .brand-name { font-size: 22px; }
  .header { padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top, 0px)); grid-template-columns: auto 1fr auto; min-height: 76px; }
  .utc-time { font-size: 28px; }
  .utc-clock { min-width: 0; }
}
/* ---- t33 additions ---- */
.brand { align-items: center; }
.avatar-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.10);
  border: 2px solid rgba(255,255,255,0.35);
  color: #fff; padding: 0; flex-shrink: 0;
  transition: background .12s, border-color .12s;
}
.avatar-btn:hover { background: rgba(255,255,255,0.2); border-color: var(--yellow); }
.avatar-btn svg { width: 24px; height: 24px; display: block; }
/* Logged-in avatar: Telegram photo or Telegram-style letter (JS sets the color). Never brand mark. */
.avatar-btn.me { position: relative; background: #549CE4; color: #fff; border-color: rgba(255,255,255,0.55); font-weight: 700; font-size: 16px; letter-spacing: 0; cursor: pointer; overflow: hidden; }
.avatar-btn.me img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; position: absolute; inset: 0; }
button.header-login {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: #FBE500;
  border: 2px solid #FBE500;
  border-radius: 999px;
  font-family: "Be Vietnam Pro", "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  padding: 8px 16px;
  cursor: pointer;
}
button.header-login:hover { background: #FBE500; color: #082186; }
button.hero-login {
  appearance: none;
  -webkit-appearance: none;
  display: inline-block;
  margin: 22px auto 0;
  background: #FBE500;
  color: #082186;
  border: none;
  border-radius: 999px;
  font-family: "Be Vietnam Pro", "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: 20px;
  line-height: 1.2;
  padding: 14px 40px;
  cursor: pointer;
}
button.hero-login:hover { background: #FFF44A; }
#view-landing .queue-board {
  margin: 0 auto 22px;
  max-width: 940px;
}
.acct-wrap { position: relative; z-index: 42; pointer-events: auto; }
.acct-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 50;
  background: #fff; color: #082186; border-radius: 12px; min-width: 168px;
  box-shadow: 0 12px 32px rgba(8,33,134,0.18); overflow: hidden;
  pointer-events: auto;
}
.acct-menu button {
  display: block; width: 100%; text-align: left; background: #fff; color: #082186;
  border: 0; padding: 11px 14px; font-weight: 700; font-family: inherit; cursor: pointer;
  touch-action: manipulation;
}
.acct-menu button:hover { background: #F8FAFC; }
.acct { display: flex; align-items: center; gap: 10px; }
.hero {
  background: var(--navy);
  border-radius: 20px;
  padding: 44px 40px 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  margin: 6px auto 26px;
  max-width: 940px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(251,229,0,0.08);
}
.hero-title {
  display: block; text-align: center;
  color: #fff; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15;
  font-size: 38px; margin: 0 auto;
  white-space: nowrap;
}
.hero .tagline {
  color: #fff; font-size: 22px; font-weight: 700;
  margin-top: 22px; letter-spacing: -0.01em;
}
.hero-slogan {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  margin-top: 20px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.hero-minutes {
  color: var(--yellow);
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 10px 0 4px;
}
.hero .slogan, .slogan {
  color: var(--navy);
  background: var(--yellow);
  display: inline-block;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 16px;
  padding: 8px 16px;
  border-radius: 999px;
}
.hero .slogan { margin-bottom: 4px; }
.slogan-mini {
  font-size: 14px;
  font-weight: 800;
  margin-top: 12px;
}
.slogan-inline { font-weight: 800; color: var(--navy); }
.avail-card {
  margin: 18px auto 0;
  max-width: 520px;
  background: #fff;
  color: var(--navy);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
  text-align: left;
}
.avail-card[data-status="available"] { border: 2px solid var(--green); }
.avail-card[data-status="busy"] { border: 2px solid var(--yellow); }
.avail-card[data-status="offline"] { border: 2px solid var(--line-strong); }
.avail-status {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.avail-card[data-status="available"] .avail-status { color: var(--green); }
.avail-card[data-status="busy"] .avail-status { color: var(--navy); }
.avail-card[data-status="offline"] .avail-status { color: var(--muted); }
.avail-clock {
  font-family: var(--mono);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-top: 4px;
}
.avail-msg { color: var(--muted); font-size: 14px; margin-top: 6px; font-weight: 600; }
.code-box { margin-top: 18px; }
.code-box h3 { margin-bottom: 6px; }
.code-label { display: grid; gap: 6px; font-weight: 700; font-size: 13px; margin-top: 12px; }
.code-label input {
  font-family: var(--mono);
  font-size: 15px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--navy);
  letter-spacing: 0.04em;
}
.hero .need {
  color: var(--yellow);
  font-size: 36px;
  font-weight: 800;
  margin-top: 16px;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.hero .signin-hint { color: var(--yellow); font-size: 13.5px; font-weight: 600; margin-top: 18px; }
.sec { max-width: 940px; margin: 0 auto 22px; }
.sec-h { font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px 2px; }
.feat-main { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feat-main .svc { cursor: default; padding: 22px 24px; max-width: 100%; }
.feat-main .svc:hover { border-color: var(--line); box-shadow: var(--shadow); }
.feat-main .svc .name { font-size: 22px; }
.feat-main .svc .soon-tag { margin-left: 0; }
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.feat {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 14px 16px; box-shadow: var(--shadow);
}
.feat .fi { width: 30px; height: 30px; border-radius: 8px; background: var(--yellow-dim); color: var(--navy); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.feat .ft { font-weight: 800; font-size: 14px; margin-top: 10px; }
.feat .fd { color: var(--muted); font-size: 12.5px; margin-top: 3px; line-height: 1.45; }
.price-card { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 0; padding: 0; overflow: hidden; }
.price-card .pc-total { background: var(--yellow); color: var(--navy); padding: 26px 26px; display: flex; flex-direction: column; justify-content: center; }
.price-card .pc-total .lbl { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.price-card .pc-total .big { font-family: var(--mono); font-size: 56px; font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; margin-top: 4px; }
.price-card .pc-total .sub { font-size: 14px; font-weight: 650; margin-top: 4px; }
.price-card .pc-split { padding: 22px 24px; display: grid; gap: 12px; align-content: center; }
.pc-line { display: grid; grid-template-columns: 100px 1fr; gap: 14px; align-items: center; }
.pc-line .amt { font-family: var(--mono); font-size: 26px; font-weight: 700; color: var(--navy); line-height: 1.05; }
.pc-line .amt small { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.03em; color: var(--muted); margin-top: 2px; }
.pc-line .what { font-weight: 800; font-size: 15px; }
.pc-line .when { color: var(--muted); font-size: 13px; }
.pc-eq { font-size: 13px; color: var(--muted); font-weight: 600; border-top: 1px solid var(--line); padding-top: 10px; }
.refund { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; }
.refund .ri { border-radius: 12px; padding: 14px 16px; font-size: 14px; }
.refund .ri strong { display: block; font-size: 14.5px; margin-bottom: 3px; }
.refund .ri.yes { background: var(--green-dim); border: 1px solid #b7e4c7; color: #0f5133; }
.refund .ri.no { background: var(--red-dim); border: 1px solid #f5c2c0; color: #7a2219; }
.refund-mini { font-size: 13px; color: var(--muted); margin-top: 12px; line-height: 1.5; }
.refund-mini strong { color: var(--navy); }
.qty-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 4px 0 18px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.qty-label { font-weight: 800; font-size: 15px; }
.qty-label small { display: block; font-weight: 500; font-size: 12.5px; color: var(--muted); }
.stepper { display: inline-flex; align-items: center; border: 2px solid var(--navy); border-radius: 12px; overflow: hidden; }
.stepper button { width: 44px; height: 44px; border: 0; background: #fff; color: var(--navy); font-size: 22px; font-weight: 800; line-height: 1; }
.stepper button:hover { background: var(--bg); }
.stepper button[disabled] { color: var(--line-strong); cursor: not-allowed; background: #fff; }
.stepper .val { min-width: 56px; text-align: center; font-family: var(--mono); font-size: 22px; font-weight: 700; border-left: 2px solid var(--navy); border-right: 2px solid var(--navy); height: 44px; line-height: 40px; }
.qty-total { margin-left: auto; text-align: right; }
.qty-total .k { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.qty-total .v { font-size: 20px; font-weight: 800; }
.qty-total .v em { font-style: normal; font-family: var(--mono); background: var(--yellow); padding: 1px 8px; border-radius: 6px; margin-left: 4px; }
.step-h { display: flex; align-items: center; gap: 10px; font-size: 17px; margin-top: 22px; }
.step-h .n { width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: var(--yellow); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.req { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; background: var(--red-dim); color: var(--red); border-radius: 999px; padding: 2px 8px; }
.req.ok { background: var(--green-dim); color: var(--green); }
.svc .radio { float: right; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); background: #fff; }
.svc.selected .radio { border-color: var(--navy); background: radial-gradient(circle, var(--navy) 0 5px, #fff 6px); }
.uses-box { display: flex; align-items: center; gap: 14px; background: var(--navy); color: #fff; border-radius: 12px; padding: 14px 16px; margin-top: 12px; }
.uses-box .u { font-family: var(--mono); font-size: 30px; font-weight: 700; color: var(--yellow); line-height: 1; }
.uses-box .t { font-size: 14px; font-weight: 600; }
.uses-box .t small { display: block; color: #C9D4E8; font-weight: 500; font-size: 12.5px; }
.agree { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 14px; border: 2px solid var(--line-strong); border-radius: 12px; cursor: pointer; font-size: 14px; font-weight: 600; background: #fff; }
.agree.on { border-color: var(--green); background: var(--green-dim); }
.agree input { width: 22px; height: 22px; accent-color: var(--navy); flex-shrink: 0; margin-top: 1px; cursor: pointer; }
.ok-hint { font-size: 12.5px; color: var(--muted); margin-top: 8px; text-align: center; }
.tg-chat { background: #DDEBF6; border-radius: 14px; padding: 14px; margin-top: 14px; }
.tg-chat .hd { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid rgba(8,33,134,0.08); margin-bottom: 10px; }
.tg-chat .hd .ico { width: 34px; height: 34px; border-radius: 50%; background: var(--tg); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 12px; }
.tg-chat .hd .nm { font-weight: 800; font-size: 14px; }
.tg-chat .hd .st { font-size: 12px; color: var(--muted); }
.bubble { background: #fff; border-radius: 4px 14px 14px 14px; padding: 10px 12px 8px; font-size: 13.5px; box-shadow: 0 1px 1px rgba(8,33,134,0.08); max-width: 96%; }
.bubble + .bubble { margin-top: 8px; }
.bubble .bt { font-weight: 800; color: var(--green); margin-bottom: 2px; }
.bubble .bm { font-size: 11px; color: var(--faint); text-align: right; margin-top: 4px; font-family: var(--mono); }
.bubble.sched { background: rgba(255,255,255,0.7); border: 1px dashed rgba(8,33,134,0.18); box-shadow: none; }
.bubble.sched .bt { color: var(--navy); }
.sched-lbl { font-size: 11.5px; font-weight: 800; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin: 12px 0 6px 2px; }
.dl-card { border: 2px solid var(--yellow); }
.need-app { margin: 12px auto 48px; max-width: 680px; }
.need-app-card {
  text-align: center;
  padding: 44px 40px 40px;
  border: 2px solid var(--yellow);
}
.need-app-logo {
  display: block;
  width: auto;
  height: clamp(96px, 28vw, 120px);
  margin: 0 auto 20px;
}
.need-app-card .need-app-logo img {
  width: auto;
  height: clamp(96px, 28vw, 120px);
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.need-app-card h1 { font-size: 30px; }
.need-app-card .lede { margin: 16px auto 0; max-width: 520px; }
.feed-item.live .b { color: var(--navy-3); }
.badge-live { background: var(--navy); color: var(--yellow); }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); margin-right: 4px; vertical-align: 1px; animation: pulse 2s ease-in-out infinite; }
.feed-sub { font-size: 12.5px; color: var(--muted); margin: -8px 0 12px; }
.ret-pill { display: inline-block; background: var(--green); color: #fff; font-weight: 800; border-radius: 999px; padding: 4px 12px; font-size: 13px; margin-top: 12px; }
@media (max-width: 960px) {
  .hero-title { font-size: 26px; white-space: normal; line-height: 1.2; }
  .hero .need { font-size: 24px; }
  .hero .tagline { font-size: 16px; }
  .feat-main, .feat-grid, .price-card, .refund { grid-template-columns: 1fr; }
}

/* ---- Telegram login modal + notification phone ---- */
.tg-overlay {
  position: fixed; inset: 0;
  background: rgba(8, 33, 134, 0.58);
  display: flex; align-items: center; justify-content: center;
  z-index: 40;
  padding: 24px;
}
.tg-overlay.hidden { display: none; }
.tg-modal {
  width: 100%; max-width: 420px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(8,33,134,0.28);
  padding: 32px 28px 22px;
  text-align: center;
  position: relative;
}
.tg-avatar-slot { display: flex; justify-content: center; margin: 4px auto 12px; }
.tg-avatar-slot img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; display: block; background: #fff; }
.tg-modal .tg-logo {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--tg);
  display: grid; place-items: center;
  margin: 0;
  box-shadow: 0 8px 20px rgba(42,171,238,0.35);
}
.tg-modal .tg-logo svg { width: 36px; height: 36px; display: block; }
.tg-modal h2 { font-size: 22px; margin: 0 0 8px; }
.tg-modal .tg-lede { font-size: 14px; color: var(--muted); font-weight: 500; margin: 0 0 16px; line-height: 1.5; }
.tg-perms {
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 14px;
  font-size: 13.5px;
}
.tg-perms .k { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.tg-perms ul { margin: 0; padding: 0; list-style: none; }
.tg-perms li { padding: 4px 0; color: var(--navy); font-weight: 600; display: flex; gap: 8px; align-items: flex-start; }
.tg-perms li span.tick { color: var(--tg); font-weight: 800; flex-shrink: 0; }
.tg-user {
  display: flex; align-items: center; gap: 12px;
  text-align: left;
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 18px;
}
.tg-user .av {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--tg); color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 16px; flex-shrink: 0;
}
.tg-user .nm { font-weight: 800; font-size: 16px; }
.tg-user .un { font-size: 13px; color: var(--muted); font-weight: 600; }
.btn-tg:hover { filter: brightness(1.06); }
#tgWidget { text-align: center; background: #fff; }
/* Host the oauth.telegram.org embed at Telegram's official large size
   (238×40 from telegram-widget.js). Do not clip/transform the iframe: the
   previous overflow+clip-path+translateZ pill smeared the button into a
   faint icon+blur on some desktop GPUs. White iframe background avoids the
   old iOS black-corner paint without clipping the real Login button. */
.tg-frame {
  display: inline-block;
  width: 238px;
  height: 40px;
  max-width: 100%;
  margin: 8px auto 0;
  background: #fff;
  border: 0;
  outline: 0;
  line-height: 0;
  overflow: visible;
}
.tg-frame iframe {
  display: block;
  width: 238px;
  height: 40px;
  max-width: 100%;
  margin: 0;
  border: 0;
  outline: 0;
  background: #fff;
  color-scheme: light;
}
.tg-modal .btn-tg,
.tg-modal .btn-ghost.ink { width: 100%; }
.tg-modal .btn-ghost.ink { margin-top: 8px; }
.tg-modal .demo-note { font-size: 11.5px; color: var(--faint); margin-top: 14px; font-weight: 600; }

.tg-notify-page { max-width: 640px; margin: 0 auto; }
.tg-notify-page .lede { max-width: 560px; }
.tg-notify-wrap { display: flex; justify-content: center; padding: 10px 0 8px; }
.phone {
  width: 380px;
  max-width: 100%;
  background: #111827;
  border-radius: 36px;
  padding: 14px 11px 18px;
  box-shadow: 0 20px 50px rgba(8,33,134,0.25);
  position: relative;
}
.phone .notch {
  width: 118px; height: 22px; background: #111827;
  border-radius: 0 0 16px 16px;
  margin: -14px auto 10px;
}
.phone-screen {
  background: #DDEBF6;
  border-radius: 28px;
  overflow: hidden;
  min-height: 620px;
  display: flex; flex-direction: column;
}
.ph-status {
  background: #1E96C8;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px 3px;
  display: flex; justify-content: space-between;
  font-family: var(--mono);
}
.ph-head {
  background: #2AABEE;
  color: #fff;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px 12px;
}
.ph-head .back { font-size: 22px; line-height: 1; opacity: 0.9; width: 18px; }
.ph-head .av {
  width: 38px; height: 38px; border-radius: 50%;
  background: #fff; color: var(--tg);
  display: grid; place-items: center; font-weight: 800; font-size: 11px; letter-spacing: 0.02em;
}
.ph-head .nm { font-weight: 800; font-size: 15.5px; line-height: 1.15; }
.ph-head .st { font-size: 12px; opacity: 0.9; }
.ph-head .demo {
  margin-left: auto;
  background: var(--yellow); color: var(--navy);
  font-size: 10px; font-weight: 800;
  border-radius: 4px; padding: 2px 6px;
  letter-spacing: 0.04em;
  align-self: flex-start;
  margin-top: 4px;
}
.ph-date { text-align: center; margin: 12px 0 6px; }
.ph-date span {
  background: rgba(8,33,134,0.22);
  color: #fff;
  font-size: 12px; font-weight: 700;
  border-radius: 999px; padding: 3px 10px;
}
.ph-chat { flex: 1; padding: 6px 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.ph-bubble {
  background: #fff;
  border-radius: 4px 16px 16px 16px;
  padding: 9px 12px 6px;
  max-width: 94%;
  box-shadow: 0 1px 1px rgba(8,33,134,0.08);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--navy);
  align-self: flex-start;
}
.ph-bubble .bt { font-weight: 800; color: var(--green); margin-bottom: 2px; }
.ph-bubble.rem .bt { color: var(--navy); }
.ph-bubble .bm { font-size: 11px; color: var(--faint); text-align: right; margin-top: 4px; font-family: var(--mono); }
.ph-input {
  background: #fff;
  display: flex; align-items: center;
  padding: 10px 14px;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  border-top: 1px solid rgba(8,33,134,0.06);
}
.ph-input .dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--tg); color: #fff;
  display: grid; place-items: center;
  font-size: 16px; margin-left: auto; flex-shrink: 0;
}


.svc .tag.soon-tag { background: var(--yellow); color: var(--navy); margin-left: 6px; }
.other-time { margin: -6px 0 22px; padding: 18px 20px; border: 2px solid var(--navy); }
.other-time.hidden { display: none; }
.other-time h3 { display: flex; align-items: center; gap: 8px; }
.time-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; }
.time-pick label { font-weight: 800; font-size: 13px; display: grid; gap: 6px; color: var(--navy); }
.time-pick label small { font-weight: 600; color: var(--muted); font-size: 12px; }
.time-pick select {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  border: 2px solid var(--navy);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  width: 100%;
  cursor: pointer;
}
.other-picked { margin-top: 14px; font-size: 14.5px; font-weight: 600; color: var(--navy); }
.other-picked strong {
  font-family: var(--mono);
  font-weight: 700;
  background: var(--yellow);
  padding: 2px 8px;
  border-radius: 6px;
}
.soon-note {
  margin-top: 14px;
  background: #FFF6D8;
  border: 2px solid var(--yellow);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
}
.soon-note.hidden { display: none; }
@media (max-width: 960px) {
  .time-pick { grid-template-columns: 1fr; }
  .hero { overflow: hidden; padding: 28px 18px 26px; }
  .hero-title { white-space: normal !important; font-size: 24px !important; line-height: 1.25; }
  .hero .tagline { white-space: normal; font-size: 16px; }
  .hero .need { font-size: 26px; }
  .hero-slogan { font-size: 18px; margin-top: 14px; }
  .hero-minutes { font-size: 44px; }
  .layout.landing-home { display: flex; flex-direction: column; gap: 16px; }
  .layout.landing-home #view-landing.active { display: contents; }
  .layout.landing-home .hero { order: 1; }
  .layout.landing-home #publicQueue { order: 2; }
  .layout.landing-home #feedCol { order: 3; }
  .layout.landing-home .sec { order: 4; }
}

.pay-crypto {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
}
.pay-qr-card {
  background: #fff;
  color: #082186;
  border: 1px solid var(--line, #E2E7F0);
  border-radius: 16px;
  padding: 12px 14px 10px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(8, 33, 134, 0.08);
  max-width: 200px;
}
.pay-qr-img {
  display: block;
  width: 168px;
  height: 168px;
  margin: 0 auto;
  background: #fff;
  image-rendering: pixelated;
}
.pay-qr-caption {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  color: #082186;
}
.pay-qr-amount {
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 800;
  color: #082186;
}
@media (max-width: 640px) {
  .pay-crypto {
    flex-direction: column;
    align-items: flex-start;
  }
  .pay-qr-card { max-width: 152px; }
  .pay-qr-img { width: 120px; height: 120px; }
}

@media (max-width: 480px) {
  .header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand right"
      "clock clock";
    align-items: center;
    gap: 6px 8px;
    padding: 8px 12px 10px;
    padding-top: calc(8px + env(safe-area-inset-top, 0px));
    min-height: 0;
    width: 100%;
  }
  .brand { grid-area: brand; gap: 8px; }
  .logo-mark { width: 32px; height: 32px; }
  .brand-name { font-size: 18px; letter-spacing: 0.06em; }
  .header-right { grid-area: right; gap: 8px; z-index: 40; }
  .avatar-btn, .avatar-btn.me { width: 36px; height: 36px; }
  .avatar-btn svg { width: 20px; height: 20px; }
  .booking-pill { font-size: 11px; padding: 6px 10px; min-height: 36px; z-index: 41; }
  .acct-menu {
    position: fixed;
    z-index: 400;
  }
  button.header-login { font-size: 12px; padding: 6px 12px; }
  .utc-clock {
    grid-area: clock;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    justify-self: center;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
  }
  .utc-time {
    font-family: var(--mono);
    font-size: clamp(40px, 13vw, 64px);
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    width: 100%;
    text-align: center;
    white-space: nowrap;
  }
  .utc-meta {
    margin-top: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    white-space: nowrap;
  }
  .utc-badge {
    background: var(--yellow);
    color: var(--navy);
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.12em;
    padding: 2px 8px;
    border-radius: 5px;
  }
  .utc-badge::before, .utc-badge::after { content: none; }
}

.queue-board {
  margin: 16px auto 0;
  max-width: 520px;
  background: #fff;
  color: var(--navy);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
  text-align: left;
}
.queue-h {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.queue-empty { color: var(--muted); font-size: 14px; font-weight: 600; }
.queue-list { display: grid; gap: 8px; }
.queue-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.queue-code { font-family: var(--mono); font-weight: 700; letter-spacing: 0.04em; }
.queue-st { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.queue-msg { font-size: 13px; color: var(--muted); font-weight: 600; }
.queue-time { font-family: var(--mono); font-weight: 700; font-size: 14px; }
.queue-row.q-waiting .queue-st { color: var(--navy); }
.queue-row.q-computing { border-color: var(--yellow); background: var(--yellow-dim); }
.queue-row.q-computing .queue-st { color: var(--yellow-ink); }
.queue-row.q-success { border-color: var(--green); background: var(--green-dim); }
.queue-row.q-success .queue-st { color: var(--green); }
.queue-row.q-failed { border-color: var(--red); background: var(--red-dim); }
.queue-row.q-failed .queue-st { color: var(--red); }
#botStartNote { margin-top: 12px; }
@media (max-width: 640px) {
  .queue-row { grid-template-columns: 1fr auto; }
  .queue-meta { grid-column: 1 / -1; }
}

.calc-hero { text-align: center; margin: 0 auto 12px; }
.calc-hero h1 { margin-top: 0; }
.calc-logo {
  display: block;
  width: auto;
  height: clamp(72px, 22vw, 104px);
  margin: 0 auto 10px;
}
.calc-logo img {
  width: auto;
  height: clamp(72px, 22vw, 104px);
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.nav-calc, .nav-main, .slot-count {
  border: 0;
  background: var(--yellow);
  color: var(--navy);
  font-family: inherit;
  font-weight: 800;
  font-size: 13px;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  margin-right: 8px;
  white-space: nowrap;
}
.slot-count:hover { background: #FFF44A; }
@media (max-width: 640px) {
  .nav-main, .slot-count {
    font-size: 12px;
    padding: 6px 10px;
    margin-right: 6px;
  }
}

.ford-fns {
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin: 0;
}
.ford-fns li {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
  color: var(--navy);
  font-size: 15px;
}
.ford-fns li:last-child { border-bottom: 0; }
.ford-fns li span { font-weight: 600; color: var(--muted); }
.ford-fns-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
}

.book-compact { display: grid; gap: 14px; margin-top: 14px; }
@media (min-width: 961px) {
  .book-compact { grid-template-columns: 1fr 1fr; }
}

.turn-screen { max-width: 520px; margin: 0 auto; }
.turn-core { padding: 16px 16px 18px; }
.turn-lbl {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 800;
}
.turn-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 12px 0 4px;
  font-weight: 700;
}
.turn-slot { color: var(--navy); font-size: 14px; }
.turn-core .code-box { margin-top: 12px; padding-top: 4px; }
.turn-core .code-box h3 { margin-bottom: 8px; font-size: 18px; }
.turn-more {
  margin-top: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px 14px 10px;
}
.turn-more > summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--navy);
  list-style: none;
  padding: 6px 0;
}
.turn-more > summary::-webkit-details-marker { display: none; }
.turn-more[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.avail-clock, .timer-val, .queue-time, #memTimer, #remTimer {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

@media (max-width: 480px) {
  #view-landing .hero-title { font-size: 22px; line-height: 1.15; }
  #view-landing .need { font-size: 22px; margin-top: 8px; }
  #view-landing .hero { padding: 20px 14px 18px; margin-bottom: 14px; }
  #view-landing .hero-slogan { font-size: 16px; margin-top: 10px; }
  #view-landing .hero-minutes { font-size: 40px; margin: 8px 0 2px; }
  #view-landing .avail-card { margin-top: 12px; padding: 12px 14px; }
  #view-landing .avail-msg { font-size: 13px; }
  #view-landing .queue-board { margin-bottom: 14px; padding: 12px 12px 10px; }
  #view-landing .sec { margin-bottom: 14px; }
  #view-landing .price-card .pc-total { padding: 16px 16px; }
  #view-landing .price-card .pc-total .big { font-size: 40px; }
  button.hero-login { margin-top: 16px; font-size: 18px; padding: 12px 32px; }
  .layout.landing-home { padding: 14px 12px 18px; gap: 12px; }
  .layout.landing-home #feedCol { padding: 12px 14px; }
  .layout.landing-home .feed-sub { margin: -4px 0 8px; }
  .ford-fns li { padding: 10px 14px; }

  .calc-screen .utc-time { font-size: 28px; }
  .calc-screen .utc-meta { font-size: 12px; }
  .calc-screen .header { padding-bottom: 6px; }
  .calc-screen .layout, .buy-screen .layout { padding: 12px 14px 16px; }
  .buy-screen h1, #view-member h1, #view-member-expired h1 { font-size: 24px; }
  .buy-screen .lede, #view-member .lede { font-size: 14px; margin-top: 6px; }
  .buy-screen .slogan, #view-member .slogan, #view-book .slogan { margin-top: 10px; font-size: 15px; padding: 6px 12px; }
  #view-book h1 { font-size: 24px; }
  #view-book .lede { margin-top: 6px; }
  #view-book .card { margin-top: 12px; }
  #view-confirmed .calc-logo,
  #view-confirmed .calc-logo img {
    height: 40px;
    margin-bottom: 4px;
  }
  #view-confirmed .calc-hero { margin-bottom: 6px; }
  #view-confirmed .calc-hero h1 { font-size: 22px; margin: 0; }
  #view-confirmed .countdown-big { font-size: 40px; }
  #view-confirmed .turn-core { padding: 12px 14px 14px; }
  #view-book .calc-logo,
  #view-book .calc-logo img { height: 48px; }
  #view-book .lede { font-size: 14px; }
}

@media (max-height: 720px) and (max-width: 480px) {
  .calc-screen .utc-time { font-size: 22px; }
  #view-confirmed .calc-logo,
  #view-confirmed .calc-logo img { height: 32px; }
  #view-confirmed .calc-hero h1 { font-size: 20px; }
  #view-confirmed .countdown-big { font-size: 36px; }
  #view-confirmed .turn-core .code-box h3 { font-size: 16px; }
}

.slot-overlay {
  position: fixed; inset: 0;
  background: rgba(8, 33, 134, 0.58);
  display: flex; align-items: center; justify-content: center;
  z-index: 50;
  padding: 20px;
}
.slot-overlay.hidden { display: none; }
.slot-modal {
  width: 100%; max-width: 360px;
  background: #fff;
  color: var(--navy);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(8,33,134,0.28);
  padding: 28px 22px 22px;
  text-align: center;
}
.slot-pop-text {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  color: var(--navy);
}
.slot-pop-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.slot-pop-actions .btn { width: 100%; }
@media (max-width: 480px) {
  .slot-modal { padding: 24px 18px 18px; }
  .slot-pop-text { font-size: 17px; }
}

/* r46: request + live feed on top; booking under request; guide below */
.calc-page {
  display: grid;
  gap: 16px;
  align-items: start;
  grid-template-columns: 1fr;
  grid-template-areas:
    "head"
    "request"
    "feed"
    "booking"
    "guide";
}
.calc-head { grid-area: head; }
.calc-request { grid-area: request; }
.request-feed { grid-area: feed; }
.calc-booking { grid-area: booking; }
.calc-guide { grid-area: guide; }
@media (min-width: 900px) {
  .calc-page {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    grid-template-areas:
      "head head"
      "request feed"
      "booking feed"
      "guide guide";
  }
}
.calc-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.calc-head .calc-logo,
.calc-head .calc-logo img {
  height: 44px;
  width: auto;
  margin: 0;
}
.calc-head h1 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.calc-request, .calc-booking { padding: 16px 16px 14px; margin: 0; }
.calc-request h2, .calc-booking h2 {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.request-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.request-row .code-label { flex: 1; margin: 0; display: block; font-weight: 700; color: var(--navy); }
.request-row .code-label input {
  display: block;
  width: 100%;
  margin-top: 6px;
}
.request-row .btn { flex: 0 0 auto; min-width: 124px; }
.calc-request .ok-hint, .calc-request .note { margin-top: 8px; text-align: left; }
.book-idle-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 12px;
}
.calc-booking #btnBuyMore { margin-top: 8px; }
.calc-booking .countdown-big { margin: 6px 0 10px; }
.calc-booking .turn-meta { margin: 0; }
.book-slots {
  font-weight: 800;
  color: var(--navy);
  font-size: 14px;
}
.calc-guide {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 4px 16px 16px;
}
.guide-details { margin: 0; }
.guide-details > summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--navy);
  font-size: 16px;
  list-style: none;
  padding: 12px 0;
  letter-spacing: -0.02em;
}
.guide-details > summary::-webkit-details-marker { display: none; }
.guide-body p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  font-weight: 500;
  margin: 0 0 12px;
}
.guide-body p:last-child { margin-bottom: 0; }
@media (min-width: 900px) {
  .guide-details > *:not(summary) { display: block !important; }
  .guide-details > summary { cursor: default; pointer-events: none; border-bottom: 1px solid var(--line); margin-bottom: 12px; padding-bottom: 10px; }
}
@media (max-width: 899px) {
  .request-row { flex-direction: column; align-items: stretch; }
  .request-row .btn { width: 100%; }
  .calc-head h1 { font-size: 22px; }
  .calc-head .calc-logo,
  .calc-head .calc-logo img { height: 36px; }
  .calc-request, .calc-booking { padding: 14px; }
  .calc-booking .countdown-big { font-size: 36px; }
  .calc-guide { padding: 0 14px 12px; }
}

@media (max-width: 899px) {
  .guide-details > summary::after { content: "▾"; float: right; font-weight: 700; color: var(--navy); }
  .guide-details:not([open]) > summary::after { content: "▸"; }
}

.request-feed { padding: 16px 16px 14px; margin: 0; }
.request-feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 12px;
}
.request-feed-head h2 {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
  letter-spacing: -0.02em;
}
.live-pill {
  display: inline-flex;
  align-items: center;
  background: var(--navy);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  border-radius: 999px;
  padding: 3px 8px;
}
.request-feed-list { display: flex; flex-direction: column; gap: 8px; }
.req-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.req-row:last-child { border-bottom: 0; padding-bottom: 0; }
.req-text { font-size: 13.5px; font-weight: 700; color: var(--navy); line-height: 1.35; }
.req-time { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
#requestFeedEmpty { margin: 0; }

#requestProcessing, #requestSuccess, #requestFail { margin-top: 14px; }
.incode-ok-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--green);
  margin: 0 0 10px;
}
.incode-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
#incodeValue {
  flex: 1;
  min-width: 0;
  display: block;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 10px 12px;
  word-break: break-all;
}
.request-fail-msg {
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
  margin: 0;
  line-height: 1.4;
}
#requestProcessing .countdown-big { margin-top: 6px; }

@media (max-width: 899px) {
  .request-feed { padding: 14px; }
  .request-feed-list .req-row:nth-child(n+5) { display: none; }
  #incodeValue { font-size: 14px; }
}

/* SPA refresh: html.dp4t-booting is set in markup; hide until #opTabs or guest ready.
   display:none (not visibility) so interactive paint / layoutVis cannot see Start.
   Inline style on .shell also holds display:none!important until reveal clears it. */
html.dp4t-booting .shell,
html.op-auth-pending .shell {
  display: none !important;
}
html.dp4t-booting #layout,
html.dp4t-booting #view-landing,
html.dp4t-booting #heroLogin,
html.op-auth-pending #layout,
html.op-auth-pending #view-landing,
html.op-auth-pending #heroLogin {
  display: none !important;
}
html.op-tab-online #layout,
html.op-tab-online #view-landing,
html.op-tab-online #heroLogin {
  display: none !important;
}
html.op-tab-calc #view-landing,
html.op-tab-calc #heroLogin {
  display: none !important;
}
