/* Fypbooster — street-kiosk / LED-board language
   Warm black ground, amber signal, condensed display type.
   Not teal SaaS, not purple AI, not cream+serif. */

:root {
  --ink: #100e0c;
  --panel: #1a1714;
  --panel-2: #24201c;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f2ebe3;
  --muted: #9a9086;
  --signal: #ff6a00;
  --signal-dim: #c45300;
  --ok: #3ecf8e;
  --bad: #ff5c5c;
  --paper: #e8e2d8;
  --paper-ink: #1a1614;
  --radius: 14px;
  --nav-h: 64px;
  --top-h: 56px;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Karla", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
  background: var(--ink);
  background-image:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(255, 106, 0, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(255, 180, 60, 0.06), transparent 50%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.12) 2px,
      rgba(0, 0, 0, 0.12) 3px
    );
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }

.font-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.app-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}

/* —— Top bar —— */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--top-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: rgba(16, 14, 12, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}
.brand span { color: var(--signal); }

.brand-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.brand-by {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.hero-company {
  position: relative;
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
}

.site-foot {
  padding: 8px 16px 12px;
  text-align: center;
  border-top: 1px solid var(--line);
  margin-top: auto;
}
body.is-authed .site-foot {
  padding-bottom: calc(var(--nav-h) + 10px);
}
.foot-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.foot-brand span { color: var(--signal); }
.foot-company {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}
.foot-company strong {
  color: var(--text);
  font-weight: 700;
}

.byline-cephcoh {
  font-size: 12px;
  color: var(--muted);
}
.byline-cephcoh strong {
  color: var(--text);
  font-weight: 700;
}

.topbar-actions { display: flex; align-items: center; gap: 8px; }

.chip-balance {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.chip-balance.is-on { display: inline-flex; }
.chip-balance em {
  font-style: normal;
  color: var(--signal);
  font-family: var(--font-display);
  font-size: 14px;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.btn-ghost:hover { border-color: var(--signal); color: var(--signal); }

/* —— Main —— */
.page {
  flex: 1;
  padding: 20px 16px calc(var(--nav-h) + 28px);
  animation: pageIn 0.45s var(--ease) both;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* —— Bottom nav (logged-in) —— */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(480px, 100%);
  height: var(--nav-h);
  padding: 0 6px env(safe-area-inset-bottom, 0);
  background: rgba(16, 14, 12, 0.94);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  z-index: 50;
  grid-template-columns: repeat(4, 1fr);
}
.bottom-nav.is-on { display: grid; }

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-item svg { width: 22px; height: 22px; stroke-width: 1.75; }
.nav-item.is-active,
.nav-item:hover { color: var(--signal); }

/* —— Guest landing —— */
.hero-guest {
  min-height: calc(100dvh - var(--top-h) - 48px);
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 8px;
  padding-bottom: 28px;
  position: relative;
  overflow: visible;
}

.hero-stage {
  position: relative;
  min-height: min(52vh, 380px);
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: visible;
}

.hero-glow {
  position: absolute;
  width: min(130%, 460px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 48% 42%, rgba(255, 214, 170, 0.22), transparent 38%),
    radial-gradient(circle at 58% 58%, rgba(255, 106, 0, 0.16), transparent 52%),
    radial-gradient(circle at 40% 70%, rgba(120, 140, 180, 0.1), transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.04), transparent 70%);
  filter: blur(8px);
  animation: glowBreathe 6.5s ease-in-out infinite;
  pointer-events: none;
}

.hero-glow::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 42%, rgba(16, 14, 12, 0.55) 100%);
  pointer-events: none;
}

.hero-phone {
  position: relative;
  width: min(54vw, 210px);
  height: min(96vw, 400px);
  max-height: 420px;
  border-radius: 32px;
  background: linear-gradient(160deg, #3a342e 0%, #1a1612 40%, #0a0908 100%);
  border: 2px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.55),
    /* contact shadow under the chassis */
    18px 34px 40px rgba(0, 0, 0, 0.55),
    6px 14px 18px rgba(0, 0, 0, 0.35),
    0 0 36px rgba(255, 180, 100, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  padding: 7px;
  /* Camera-like perspective: soft FOV, modest pitch/yaw, light roll */
  --phone-persp: 1600px;
  --phone-pitch: 8deg;
  --phone-yaw: -14deg;
  --phone-roll: 5deg;
  transform-origin: 50% 62%;
  transform-style: preserve-3d;
  transform:
    perspective(var(--phone-persp))
    rotateX(var(--phone-pitch))
    rotateY(var(--phone-yaw))
    rotateZ(var(--phone-roll));
  animation: phoneRise 0.85s var(--ease) both;
  z-index: 1;
}

.hero-phone::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 4%;
  bottom: -18px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55), transparent 70%);
  filter: blur(6px);
  transform: translateZ(-40px) rotateX(80deg) scale(1.05);
  pointer-events: none;
  z-index: -1;
}

.hero-phone-bezel {
  position: relative;
  height: 100%;
  border-radius: 24px;
  background: #0c0b0a;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 2px 5px 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  /* Flatten under the phone's 3D transform so iOS Safari paints children */
  transform: translateZ(0);
  transform-style: flat;
  -webkit-transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.hero-app-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 4px 0 2px;
  flex: 0 0 auto;
}

.hero-notifs {
  /* flex-basis 0% is required for Safari to give this a real height */
  flex: 1 1 0%;
  min-height: 0;
  height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 2px;
  overflow: hidden;
  padding: 0;
  position: relative;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.hero-notif {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 5px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
  /* Fixed slot size — same on iOS/Android, no stretch as items appear */
  flex: 0 0 calc((100% - 8px) / 5);
  height: calc((100% - 8px) / 5);
  max-height: calc((100% - 8px) / 5);
  min-height: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  opacity: 0;
  -webkit-transform: translate3d(110%, 0, 0);
  transform: translate3d(110%, 0, 0);
  overflow: hidden;
  will-change: transform, opacity;
}
.hero-notif.is-in {
  -webkit-animation: notifSwipeIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation: notifSwipeIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-notif.is-out {
  -webkit-animation: notifSwipeOut 0.36s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation: notifSwipeOut 0.36s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: none;
}
.hero-notif.is-shown {
  opacity: 1;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

.hero-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 6px 0;
  z-index: 2;
  flex: 0 0 auto;
}
.hero-status-time {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
  font-variant-numeric: tabular-nums;
}
.hero-status-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}
.hi-signal,
.hi-wifi,
.hi-battery {
  display: block;
  background: rgba(255, 255, 255, 0.88);
}
.hi-signal {
  width: 12px;
  height: 8px;
  clip-path: polygon(0 100%, 22% 100%, 22% 70%, 45% 70%, 45% 40%, 68% 40%, 68% 15%, 100% 15%, 100% 100%);
}
.hi-wifi {
  width: 11px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.88);
  border-bottom: none;
  border-left-color: transparent;
  border-right-color: transparent;
  transform: translateY(2px);
}
.hi-battery {
  width: 14px;
  height: 7px;
  border-radius: 2px;
  background: transparent;
  border: 1.2px solid rgba(255, 255, 255, 0.88);
  position: relative;
  box-sizing: border-box;
}
.hi-battery::before {
  content: "";
  position: absolute;
  inset: 1px 4px 1px 1px;
  background: #3ecf8e;
  border-radius: 1px;
}
.hi-battery::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 1.5px;
  width: 2px;
  height: 3px;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 0 1px 1px 0;
}

.hero-phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 42%;
  height: 12px;
  border-radius: 999px;
  background: #050505;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  z-index: 3;
}

.hero-app-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}
.hero-app-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 8px rgba(255, 106, 0, 0.8);
  animation: spark 1.6s ease-in-out infinite;
}

.hero-notif-av {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #140c00;
}
.av-ceph { background: linear-gradient(135deg, #ffb347, #ff6a00); }
.av-hezo { background: linear-gradient(135deg, #ff7eb3, #ff4d6d); }
.av-kako { background: linear-gradient(135deg, #7dd3fc, #38bdf8); }
.av-arian { background: linear-gradient(135deg, #c4b5fd, #a78bfa); }
.av-savage { background: linear-gradient(135deg, #86efac, #22c55e); }

.hero-notif-body {
  min-width: 0;
  flex: 1;
}
.hero-notif-body p {
  margin: 0;
  font-size: 9px;
  line-height: 1.25;
  color: rgba(242, 235, 227, 0.92);
  letter-spacing: 0.01em;
}
.hero-notif-body strong {
  color: #fff;
  font-weight: 700;
}
.hero-notif-meta {
  display: block;
  margin-top: 1px;
  font-size: 7.5px;
  color: rgba(154, 144, 134, 0.95);
}

.hero-verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 9px;
  height: 9px;
  margin: 0 2px;
  border-radius: 50%;
  background: #20d5ec;
  color: #fff;
  font-size: 6px;
  font-weight: 900;
  line-height: 1;
  vertical-align: 1px;
}

.hero-sparks {
  position: absolute;
  inset: 12% 8%;
  pointer-events: none;
  z-index: 0;
}
.hero-sparks span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  opacity: 0.55;
  box-shadow: 0 0 12px rgba(255, 106, 0, 0.8);
}
.hero-sparks span:nth-child(1) { left: 8%; top: 22%; animation: spark 3.4s ease-in-out infinite; }
.hero-sparks span:nth-child(2) { right: 10%; top: 40%; animation: spark 2.8s ease-in-out 0.4s infinite; }
.hero-sparks span:nth-child(3) { left: 18%; bottom: 18%; animation: spark 3.1s ease-in-out 0.9s infinite; }

.hero-copy {
  position: relative;
  z-index: 2;
  padding-top: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-guest .hero-company {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.95rem, 8.5vw, 3rem);
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 12px;
  max-width: 20rem;
}
.hero-guest .hero-company span {
  color: var(--signal);
  display: inline;
}

.hero-guest .lede {
  max-width: 18rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.4;
  margin: 0 0 22px;
  text-align: center;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

@keyframes glowBreathe {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.08); opacity: 1; }
}
@keyframes phoneRise {
  from {
    opacity: 0;
    transform:
      perspective(var(--phone-persp))
      rotateX(var(--phone-pitch))
      rotateY(var(--phone-yaw))
      rotateZ(var(--phone-roll))
      translateY(28px) scale(0.94);
  }
  to {
    opacity: 1;
    transform:
      perspective(var(--phone-persp))
      rotateX(var(--phone-pitch))
      rotateY(var(--phone-yaw))
      rotateZ(var(--phone-roll))
      translateY(0) scale(1);
  }
}
@keyframes notifSwipeIn {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(110%, 0, 0);
    transform: translate3d(110%, 0, 0);
  }
  100% {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}
@-webkit-keyframes notifSwipeIn {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(110%, 0, 0);
  }
  100% {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
  }
}
@keyframes notifSwipeOut {
  0% {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
  100% {
    opacity: 0;
    -webkit-transform: translate3d(-120%, 0, 0);
    transform: translate3d(-120%, 0, 0);
  }
}
@-webkit-keyframes notifSwipeOut {
  0% {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
  }
  100% {
    opacity: 0;
    -webkit-transform: translate3d(-120%, 0, 0);
  }
}
@keyframes spark {
  0%, 100% { transform: scale(0.6); opacity: 0.25; }
  50% { transform: scale(1.25); opacity: 0.85; }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.2s, opacity 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: var(--signal);
  color: #140c00;
  box-shadow: 0 0 0 1px rgba(255, 106, 0, 0.4), 0 8px 28px rgba(255, 106, 0, 0.25);
}
.btn-primary:hover { background: #ff7a1f; }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn-secondary:hover { border-color: var(--text); }

.btn-block { width: 100%; }

/* —— Surfaces —— */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.panel-paper {
  background: var(--paper);
  color: var(--paper-ink);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.panel-paper label { color: #5c534a; }
.panel-paper .hint { color: #7a7168; }
.panel-paper .err {
  background: rgba(180, 40, 40, 0.08);
  border-color: rgba(180, 40, 40, 0.35);
  color: #8a1f1f;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.section-head h1,
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
  font-size: 1.65rem;
  line-height: 1;
}
.section-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.home-prompt {
  text-align: center;
  margin: 4px 0 18px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

/* —— Forms —— */
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--panel-2);
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  caret-color: var(--signal);
  outline: none;
  transition: border-color 0.15s;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
  opacity: 1;
}
.field input:focus,
.field select:focus {
  border-color: var(--signal);
}
.field-row { display: flex; gap: 8px; }
.field-row select { width: min(42%, 148px); flex-shrink: 0; }

/* Light paper forms — force readable dark text (overrides .field) */
.panel-paper .field input,
.panel-paper .field select,
.panel-paper .field textarea,
.panel-paper input,
.panel-paper select,
.panel-paper textarea {
  background: #ffffff !important;
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
  caret-color: #111111;
  border: 1px solid #c8c0b4 !important;
}
.panel-paper .field input::placeholder,
.panel-paper input::placeholder {
  color: #888888 !important;
  -webkit-text-fill-color: #888888 !important;
}
.panel-paper .field label {
  color: #5c534a;
}
.panel-paper select option {
  color: #111;
  background: #fff;
}

.hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.err {
  display: none;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 92, 92, 0.12);
  border: 1px solid rgba(255, 92, 92, 0.35);
  color: #ffb4b4;
  font-size: 13px;
}
.err.is-on { display: block; }

/* —— Lists / rows —— */
.stack { display: flex; flex-direction: column; gap: 10px; }

.row-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.2s, transform 0.15s var(--ease);
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.row-link:hover { border-color: var(--signal); }
.row-link:active { transform: scale(0.99); }
.row-link .title { font-weight: 700; font-size: 15px; }
.row-link .meta { font-size: 12px; color: var(--muted); margin-top: 2px; text-transform: capitalize; }
.row-link .price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--signal);
  white-space: nowrap;
}

.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge-ok { background: rgba(62, 207, 142, 0.15); color: var(--ok); }
.badge-run { background: rgba(255, 106, 0, 0.15); color: var(--signal); }
.badge-warn { background: rgba(255, 180, 60, 0.15); color: #ffb43c; }
.badge-bad { background: rgba(255, 92, 92, 0.15); color: var(--bad); }
.badge-mute { background: rgba(255, 255, 255, 0.08); color: var(--muted); }

.balance-hero {
  padding: 22px 20px;
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 106, 0, 0.22), transparent 55%),
    var(--panel);
  border: 1px solid var(--line-strong);
  margin-bottom: 18px;
}
.balance-hero .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.balance-hero .amount {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  margin-top: 6px;
}

.tx-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.tx-row:last-child { border-bottom: none; }
.tx-amt { font-weight: 700; font-variant-numeric: tabular-nums; }
.tx-amt.pos { color: var(--ok); }
.tx-amt.neg { color: var(--bad); }

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--signal), #ffb43c);
  color: #140c00;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 14px;
}

/* —— Loaders —— */
#route-loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
#route-loader.is-on { opacity: 1; }
#route-loader .bar {
  height: 100%;
  width: 0;
  background: var(--signal);
  box-shadow: 0 0 12px var(--signal);
  animation: loadBar 1.1s var(--ease) infinite;
}
@keyframes loadBar {
  0% { width: 0; margin-left: 0; }
  50% { width: 55%; margin-left: 20%; }
  100% { width: 0; margin-left: 100%; }
}

.page-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 48px 16px;
  color: var(--muted);
  font-size: 13px;
}
.spinner {
  width: 28px;
  height: 28px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--signal);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.btn .spinner {
  width: 16px;
  height: 16px;
  border-width: 2px;
}

/* —— Toast —— */
.toast {
  position: fixed;
  bottom: calc(var(--nav-h) + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--paper);
  color: var(--paper-ink);
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  z-index: 90;
  max-width: min(90vw, 360px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s var(--ease);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
body:not(.is-authed) .toast { bottom: 24px; }

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

/* —— Service accordion —— */
.svc-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.svc-card {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
  transition:
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    transform 0.25s var(--ease);
}
.svc-card.is-open {
  border-color: rgba(255, 106, 0, 0.45);
  box-shadow: 0 0 0 1px rgba(255, 106, 0, 0.2), 0 16px 40px rgba(0, 0, 0, 0.35);
}

.svc-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  color: inherit;
  transition: background 0.2s;
}
.svc-head:active { background: rgba(255, 255, 255, 0.03); }
.svc-head-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.svc-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  background: linear-gradient(145deg, rgba(255, 106, 0, 0.35), rgba(255, 180, 60, 0.12));
  color: #ffd9b0;
  border: 1px solid rgba(255, 106, 0, 0.25);
}
.svc-head-side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.svc-head .price {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--signal);
  text-align: right;
  line-height: 1.15;
  max-width: 7.5rem;
}
.svc-head .price span {
  display: block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 2px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.err .btn-deposit-mini {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  margin-left: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--signal);
  color: #140c00;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}
.panel-paper .err .btn-deposit-mini {
  color: #140c00;
}

.cephcoh-card {
  margin-bottom: 22px;
  padding: 18px 16px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(160deg, rgba(255, 106, 0, 0.12), transparent 55%),
    var(--panel);
}
.cephcoh-eyebrow {
  margin: 0 0 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
}
.cephcoh-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}
.cephcoh-role {
  margin: 6px 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.cephcoh-bio {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}
.cephcoh-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
.cephcoh-points li {
  font-size: 12px;
  color: var(--muted);
  padding-left: 14px;
  position: relative;
}
.cephcoh-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
}
.svc-chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.28s var(--ease), border-color 0.2s;
  margin-top: -4px;
}
.svc-card.is-open .svc-chevron {
  transform: rotate(225deg);
  margin-top: 4px;
  border-color: var(--signal);
}

.svc-expand {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s var(--ease);
}
.svc-form {
  margin: 0 12px 12px;
  border-radius: 12px;
  animation: formIn 0.35s var(--ease) both;
}
.svc-card.is-open .svc-form {
  animation: formIn 0.35s var(--ease) both;
}
@keyframes formIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* —— Motion system —— */
.reveal {
  animation: riseIn 0.5s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.btn {
  transition: transform 0.15s var(--ease), background 0.2s, opacity 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  box-shadow: 0 0 0 1px rgba(255, 106, 0, 0.5), 0 10px 32px rgba(255, 106, 0, 0.35);
}
.btn:active { transform: scale(0.97); }

.row-link {
  transition: border-color 0.2s, transform 0.18s var(--ease), background 0.2s;
}
.row-link:hover {
  transform: translateY(-1px);
}

.bottom-nav .nav-item {
  position: relative;
  transition: color 0.2s, transform 0.15s var(--ease);
}
.bottom-nav .nav-item::after {
  content: "";
  position: absolute;
  top: 6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--signal);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.2s, transform 0.25s var(--ease);
}
.bottom-nav .nav-item.is-active::after {
  opacity: 1;
  transform: scale(1);
}
.bottom-nav .nav-item:active { transform: scale(0.92); }

.chip-balance {
  transition: transform 0.2s var(--ease), border-color 0.2s;
}
.chip-balance.is-on {
  animation: popIn 0.35s var(--ease) both;
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.hero-guest .lede {
  animation: riseIn 0.55s var(--ease) 0.12s both;
}
.hero-guest .cta-row {
  animation: riseIn 0.55s var(--ease) 0.2s both;
}
.hero-guest .hero-copy .hero-company {
  animation: riseIn 0.5s var(--ease) both;
}

.balance-hero .amount {
  transition: transform 0.3s var(--ease);
}

/* Ambient pulse on signal accents */
@keyframes softPulse {
  0%, 100% { opacity: 0.14; }
  50% { opacity: 0.22; }
}
body::before {
  content: "";
  position: fixed;
  inset: -20% auto auto -10%;
  width: 60vw;
  height: 40vh;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.35), transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: softPulse 8s ease-in-out infinite;
  filter: blur(40px);
}
.app-shell { z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  body::before { animation: none; }
  .svc-expand { transition: none !important; }
  .hero-notif {
    opacity: 1 !important;
    -webkit-transform: none !important;
    transform: none !important;
    animation: none !important;
    -webkit-animation: none !important;
  }
  .hero-notif.is-out {
    display: none !important;
  }
}
