:root {
  --deep-navy: #0a0f1a;
  --lime-flow: #a6e600;
  --lime-deep: #7eb000;
  --emerald: #00c48c;
  --ocean-teal: #00d1c1;
  --slate: #717784;
  --bg: #ffffff;
  --bg-soft: #f5f6f8;
  --bg-muted: #eceef1;
  --line: #eceef1;
  --text: #0a0f1a;
  --text-dim: #717784;
  --danger: #d92d20;
  --star: #f5a524;
  --lime-ink: #4f6f00;
  --lime-soft: #eef9d2;
  --teal-ink: #00756c;
  --font: "Poppins", sans-serif;
  --radius: 20px;
  --radius-sm: 14px;
  --radius-sheet: 32px;
  --shadow: 0 10px 30px rgba(10, 15, 26, 0.06);
  --shadow-up: 0 -8px 30px rgba(10, 15, 26, 0.06);
  --blob-lime: radial-gradient(circle at 100% 0, #c8f45f 0 3.4rem, transparent 3.45rem);
  --blob-navy: radial-gradient(circle at 100% 0, #1c2740 0 3.4rem, transparent 3.45rem);
  --blob-emerald: radial-gradient(circle at 100% 0, #3bd8a9 0 3.4rem, transparent 3.45rem);
}

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

body {
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 1000;
  padding: 0.65rem 0.9rem;
  border-radius: 0.65rem;
  background: var(--lime-flow);
  color: var(--deep-navy);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid #fff;
  outline-offset: 2px;
}

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

button,
input,
select {
  font: inherit;
}

/* Form controls default to a ~20-character intrinsic width that grid and
   flex tracks will not shrink below; on narrow phones or with large system
   text that pushes the whole page sideways. Let them shrink to their track. */
input,
select,
textarea {
  min-width: 0;
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid var(--lime-ink);
  outline-offset: 2px;
}

.btn:focus-visible,
.btn-link:focus-visible,
.tab:focus-visible,
.cat:focus-visible,
.biz-card:focus-visible,
.chip:focus-visible,
.icon-btn:focus-visible,
.detail-back:focus-visible,
.queue-leave:focus-visible,
.queue-nav-chip:focus-visible,
.party-stepper button:focus-visible {
  outline: 3px solid var(--lime-ink);
  outline-offset: 2px;
}

#app {
  min-height: 100dvh;
}

/* Auth cards */
.auth-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-top: 11rem;
  background:
    radial-gradient(circle at 88% 9%, rgba(166, 230, 0, 0.9) 0 3.6rem, transparent 3.65rem),
    radial-gradient(circle at 8% 20%, rgba(0, 209, 193, 0.85) 0 2.1rem, transparent 2.15rem),
    radial-gradient(circle at 62% 0%, #1c2740 0 7rem, transparent 7.05rem),
    var(--deep-navy);
}

.auth-shell > main {
  flex: 1;
  width: 100%;
  padding: 2.25rem 1.5rem calc(1.5rem + env(safe-area-inset-bottom));
  background: var(--bg);
  border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
}

.auth-shell > .card {
  margin: 0 1rem 1rem;
  width: auto;
}

.card {
  width: 100%;
  padding: 0;
  background: var(--bg);
}

.auth-shell > .card {
  padding: 2rem 1.5rem;
  border-radius: var(--radius-sheet);
}

@media (min-width: 560px) {
  .auth-shell {
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
  }

  .auth-shell > main {
    flex: none;
    width: min(100%, 27rem);
    padding: 2.5rem 2rem 2rem;
    border-radius: var(--radius-sheet);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
  }
}

.brand {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand span {
  color: var(--lime-ink);
}

.brand-logo {
  display: block;
  width: auto;
  height: 2.6rem;
  max-width: 100%;
  margin-bottom: 0.4rem;
}

.app-version {
  margin: 0.85rem 0 0;
  color: var(--text-dim);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.app-version-on-dark {
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
}

.auth-shell .app-version-on-dark {
  margin-top: 1.5rem;
  color: var(--text-dim);
}

.card h2,
.card .card-heading {
  margin-top: 1.25rem;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.card p.lead {
  margin-top: 0.35rem;
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.55;
}

.disclaimer {
  margin-top: 1.15rem;
  color: var(--text-dim);
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: center;
}

.disclaimer a {
  color: var(--lime-ink);
  font-weight: 600;
}

.field {
  display: grid;
  gap: 0.45rem;
  margin-top: 1.15rem;
}

.field label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dim);
}

.field input,
.field select {
  height: 3.25rem;
  padding: 0 1.1rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--text);
  font-weight: 500;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.field input::placeholder {
  color: #a4a9b3;
  font-weight: 400;
}

.field input:focus,
.field select:focus {
  border-color: var(--lime-deep);
  background: var(--bg);
}

.phone-row {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.55rem;
}

@media (max-width: 340px) {
  .phone-row {
    grid-template-columns: 7rem minmax(0, 1fr);
    gap: 0.45rem;
  }

  .field .phone-row select,
  .field .phone-row input {
    padding: 0 0.7rem;
  }
}

.resend-row {
  display: flex;
  justify-content: center;
}

.resend-row .btn-link:disabled {
  opacity: 0.55;
  cursor: default;
  text-decoration: none;
}

.pin-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

/* Fixed columns, not 1fr: an input's intrinsic min-width is ~20 characters,
   which a `1fr` track will not shrink below and would overflow the card. */
.pin-boxes {
  display: grid;
  grid-template-columns: repeat(4, 3.5rem);
  gap: 0.65rem;
}

/* Beats the shared `.field input` rules on specificity. */
.field .pin-box {
  width: 3.5rem;
  min-width: 0;
  height: 3.75rem;
  padding: 0;
  border: 1.5px solid transparent;
  border-radius: 16px;
  background: var(--bg-soft);
  text-align: center;
  font-family: var(--font);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  caret-color: var(--lime-ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.field .pin-box:focus {
  border-color: var(--lime-deep);
  background: var(--bg);
}

/* A filled box reads as done even while masked (needs the blank placeholder). */
.field .pin-box:not(:placeholder-shown) {
  border-color: transparent;
  background: var(--lime-soft);
}

.field .pin-box::-webkit-outer-spin-button,
.field .pin-box::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}

.pin-toggle {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border: none;
  border-radius: 8px;
  background: none;
  color: var(--text-dim);
  cursor: pointer;
}

.pin-toggle:hover {
  color: var(--text);
}

.pin-toggle[aria-pressed="true"] {
  color: var(--lime-ink);
}

.pin-toggle:focus-visible {
  outline: 2px solid var(--lime-ink);
  outline-offset: -3px;
  border-radius: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 3.25rem;
  margin-top: 1.5rem;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--lime-flow);
  color: var(--deep-navy);
  box-shadow: 0 10px 22px rgba(126, 176, 0, 0.28);
  transition: transform 0.12s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn:hover:not(:disabled) {
  filter: brightness(0.97);
}

.btn:active:not(:disabled) {
  transform: scale(0.985);
}

.btn:disabled {
  background: var(--bg-muted);
  color: var(--slate);
  box-shadow: none;
  opacity: 1;
  cursor: not-allowed;
}

.btn-link {
  display: inline-block;
  margin-top: 1rem;
  width: 100%;
  text-align: center;
  background: transparent;
  color: var(--lime-ink);
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  height: auto;
}

.message {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--danger);
}

.message:not(:empty) {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(217, 45, 32, 0.08);
}

.message.success {
  color: #007a57;
}

.message.success:not(:empty) {
  background: rgba(0, 196, 140, 0.12);
}

/* Discover home */
.home-shell {
  max-width: 28rem;
  margin: 0 auto;
  min-height: 100dvh;
  padding: 0 0 6.5rem;
  background: var(--bg);
}

.home-shell > main > h1,
.home-shell > main > .empty-state {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.home-shell > main > h1 {
  padding-top: 1.5rem;
  font-size: 1.75rem;
  font-weight: 700;
}

.home-hero {
  padding: 1.5rem 1.25rem 3.25rem;
  color: #fff;
  background:
    radial-gradient(circle at 68% -14%, rgba(166, 230, 0, 0.9) 0 2.6rem, transparent 2.65rem),
    radial-gradient(circle at 78% 115%, rgba(0, 209, 193, 0.75) 0 4rem, transparent 4.05rem),
    radial-gradient(circle at 20% -30%, #1c2740 0 8rem, transparent 8.05rem),
    var(--deep-navy);
}

.home-sheet {
  position: relative;
  margin-top: -1.75rem;
  padding: 1.75rem 1.25rem 0;
  background: var(--bg);
  border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
}

.home-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.home-top h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.icon-btn {
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 14px;
  background: var(--bg-soft);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
}

.home-hero .icon-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.icon-btn .dot {
  position: absolute;
  top: 0.6rem;
  right: 0.65rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--lime-flow);
}

.location {
  margin-top: 0.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.home-hero .location {
  color: rgba(255, 255, 255, 0.72);
}

.search {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  height: 3.25rem;
  padding: 0 1rem;
  border-radius: 16px;
  background: var(--bg-soft);
  color: var(--text-dim);
  border: 1.5px solid transparent;
}

.home-hero .search {
  background: var(--bg);
}

.search:focus-within {
  border-color: var(--lime-flow);
  background: var(--bg);
}

.search input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  color: var(--text);
  font-size: 0.92rem;
}

.search input::placeholder {
  color: var(--slate);
}

.search .filter {
  color: var(--slate);
  background: none;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.categories-panel {
  margin-top: 0;
}

.categories {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.categories-toggle {
  display: block;
  width: 100%;
  margin-top: 0.6rem;
  padding: 0.55rem 0.5rem;
  border: none;
  border-radius: 12px;
  background: var(--lime-soft);
  color: var(--lime-ink);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.categories-toggle:hover {
  filter: brightness(0.98);
}

.cat {
  position: relative;
  overflow: hidden;
  border: none;
  border-radius: 18px;
  background: var(--bg-soft);
  padding: 0.85rem 0.3rem 0.7rem;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.45rem;
  cursor: pointer;
  color: var(--text);
  transition: background 0.15s ease, transform 0.12s ease;
}

.cat:active {
  transform: scale(0.97);
}

.cat .glyph {
  position: relative;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--bg);
  border: none;
  color: var(--deep-navy);
}

.cat .glyph svg {
  width: 1.4rem;
  height: 1.4rem;
}

.cat .glyph svg .accent {
  stroke: var(--lime-deep);
  color: var(--lime-deep);
}

.cat span {
  position: relative;
  font-size: 0.66rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 100%;
}

.cat.active {
  background: var(--blob-lime), var(--lime-flow);
  box-shadow: 0 10px 22px rgba(126, 176, 0, 0.3);
}

.cat.active .glyph {
  background: rgba(255, 255, 255, 0.55);
  color: var(--deep-navy);
}

.cat.active .glyph svg .accent {
  stroke: var(--deep-navy);
  color: var(--deep-navy);
}

.section-head {
  margin-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-head h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-head button {
  border: none;
  background: none;
  color: var(--lime-ink);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}

.biz-list {
  margin-top: 1rem;
  display: grid;
  gap: 0.85rem;
}

.biz-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  gap: 0.85rem;
  align-items: start;
  padding: 0.85rem;
  border: none;
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.biz-thumb {
  position: relative;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 16px;
  object-fit: cover;
  background: var(--bg-muted);
}

.biz-meta {
  position: relative;
  min-width: 0;
}

.biz-meta h2,
.biz-meta h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.biz-meta .place {
  margin-top: 0.2rem;
  display: flex;
  align-items: flex-start;
  gap: 0.3rem;
  color: var(--text-dim);
  font-size: 0.78rem;
}

.biz-meta .place svg {
  flex-shrink: 0;
  width: 0.95rem;
  height: 0.95rem;
  margin-top: 0.1rem;
}

.away-line {
  margin-top: 0.25rem;
  color: var(--teal-ink);
  font-size: 0.78rem;
  font-weight: 600;
}

.branch-aways {
  margin-top: 0.35rem;
  display: grid;
  gap: 0.25rem;
}

.branch-away-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
  font-size: 0.74rem;
  line-height: 1.3;
}

.branch-away-name {
  font-weight: 600;
  color: var(--text);
}

.branch-away-meta {
  color: var(--teal-ink);
  font-weight: 600;
}

.branch-away-meta.muted {
  color: var(--text-dim);
  font-weight: 500;
}

.away-detail {
  color: var(--teal-ink);
  font-weight: 600;
}

.detail-branches {
  margin-top: 1.25rem;
}

.detail-branches-heading {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.detail-branch-list {
  display: grid;
  gap: 0.65rem;
}

.detail-branch-card {
  display: block;
  width: 100%;
  padding: 1rem 1.1rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: var(--bg-soft);
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.detail-branch-card.is-selected {
  border-color: var(--lime-deep);
}

.detail-branch-name {
  font-weight: 600;
  font-size: 0.98rem;
  margin-bottom: 0.25rem;
}

.detail-branch-card.is-paused {
  box-shadow: inset 4px 0 0 var(--danger);
}

.detail-branch-card .detail-row {
  margin-top: 0.25rem;
}

.biz-meta .rating {
  margin-top: 0.3rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.78rem;
  color: var(--text);
  font-weight: 600;
}

.biz-meta .rating .reviews {
  color: var(--text-dim);
  font-weight: 500;
}

.wait {
  position: relative;
  min-width: 3.75rem;
  padding: 0.55rem 0.45rem;
  border: none;
  border-radius: 14px;
  text-align: center;
  color: var(--deep-navy);
  background: var(--bg);
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.15;
  align-self: start;
}

.wait small {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--slate);
}

.biz-card-joined {
  background: var(--blob-lime), var(--lime-flow);
  box-shadow: 0 12px 26px rgba(126, 176, 0, 0.28);
}

.biz-card-joined .biz-meta .place,
.biz-card-joined .away-line,
.biz-card-joined .branch-away-meta,
.biz-card-joined .branch-away-meta.muted,
.biz-card-joined .queue-position-line,
.biz-card-joined .biz-meta .rating .reviews {
  color: var(--deep-navy);
}

.wait-joined {
  border: none;
  background: var(--deep-navy);
  color: var(--lime-flow);
  min-width: 3.9rem;
}

.wait-joined small {
  color: rgba(255, 255, 255, 0.72);
}

.wait-closed {
  background: rgba(217, 45, 32, 0.12);
  color: #b42318;
}

.wait-closed small {
  color: #b42318;
  opacity: 0.85;
}

.wait-partial {
  background: rgba(247, 144, 9, 0.14);
  color: #b54708;
}

.wait-partial small {
  color: #b54708;
  opacity: 0.9;
}

.biz-card-closed {
  box-shadow: inset 4px 0 0 var(--danger);
}

.queue-closed-line {
  margin-top: 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #b42318;
}

.queue-closed-line-soft {
  color: #b54708;
}

.branch-away-closed {
  margin-left: 0.35rem;
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
  background: rgba(217, 45, 32, 0.12);
  color: #b42318;
  font-size: 0.68rem;
  font-weight: 600;
}

.queue-position-line {
  margin-top: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--lime-ink);
}

.empty-state {
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius);
  background: var(--bg-soft);
  color: var(--text-dim);
  font-size: 0.9rem;
  text-align: center;
}

.empty-state + .empty-state,
.home-shell > main > .empty-state {
  margin-top: 1rem;
}

.home-shell > main > .empty-state {
  margin-left: 1.25rem;
  margin-right: 1.25rem;
}

/* Labels stay in the DOM as each tab's accessible name; the bar shows icons only. */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 10;
  translate: -50% 0;
  width: min(100%, 28rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.25rem;
  padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
  background: var(--bg);
  border-radius: 28px 28px 0 0;
  box-shadow: var(--shadow-up);
}

.tab.tab-labeled {
  font-size: 0.68rem;
  line-height: 1.1;
}

.tab {
  position: relative;
  border: none;
  border-radius: 14px;
  background: transparent;
  color: #a4a9b3;
  display: grid;
  justify-items: center;
  cursor: pointer;
  padding: 0.45rem 0.35rem 0.75rem;
  font-size: 0;
  font-weight: 600;
}

.tab.active {
  color: var(--lime-ink);
}

.tab.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.2rem;
  width: 0.35rem;
  height: 0.35rem;
  margin-left: -0.175rem;
  border-radius: 50%;
  background: var(--lime-deep);
}

.tab svg {
  width: 1.5rem;
  height: 1.5rem;
}

.placeholder-page {
  max-width: 28rem;
  margin: 0 auto;
  min-height: 100dvh;
  padding: 1.75rem 1.25rem 6.5rem;
}

.placeholder-page h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.placeholder-page p {
  margin-top: 0.5rem;
  color: var(--text-dim);
}

/* Profile */
.profile-page {
  max-width: 28rem;
  margin: 0 auto;
  min-height: 100dvh;
  padding: 1.75rem 1.25rem 6.5rem;
}

.profile-page h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.profile-identity {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0, #1c2740 0 4.5rem, transparent 4.55rem),
    radial-gradient(circle at 88% 120%, rgba(166, 230, 0, 0.85) 0 2rem, transparent 2.05rem),
    var(--deep-navy);
  color: #fff;
}

.profile-avatar {
  position: relative;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--lime-flow);
  color: var(--deep-navy);
  font-weight: 700;
  font-size: 1.35rem;
}

.profile-name {
  position: relative;
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
}

.profile-phone {
  position: relative;
  margin: 0.15rem 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
}

.profile-section {
  margin-top: 2rem;
}

.profile-section h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.profile-section-desc {
  margin: 0.25rem 0 1rem;
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.5;
}

.profile-contact-row {
  display: grid;
  gap: 0.65rem;
}

.profile-contact {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  border: none;
  background: var(--bg-soft);
  text-decoration: none;
  color: inherit;
}

.profile-contact.muted {
  opacity: 0.72;
}

.profile-contact-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--lime-flow);
  color: var(--deep-navy);
  flex-shrink: 0;
}

.profile-contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-dim);
}

.profile-contact-value {
  display: block;
  margin-top: 0.05rem;
  font-weight: 600;
  color: var(--text);
}

.profile-links {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.profile-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  border: none;
  background: var(--bg-soft);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.profile-link-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--deep-navy);
  flex-shrink: 0;
}

.profile-link-chevron {
  margin-left: auto;
  color: var(--slate);
  display: grid;
}

.profile-logout {
  margin-top: 2rem;
  background: var(--bg-soft);
  color: var(--danger);
  box-shadow: none;
}

.profile-page > main > .app-version {
  margin-top: 1rem;
  text-align: center;
}

.legal-page {
  max-width: 28rem;
  margin: 0 auto;
  min-height: 100dvh;
  padding: 1.5rem 1.25rem 6.5rem;
}

.legal-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.legal-back {
  border: none;
  background: var(--bg-soft);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 14px;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
}

.legal-header h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.legal-body {
  color: var(--text);
  line-height: 1.55;
  font-size: 0.95rem;
}

.legal-updated {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin: 0 0 1rem;
}

.legal-body h2 {
  margin: 1.5rem 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.legal-body p,
.legal-body ul {
  margin: 0 0 0.75rem;
  color: var(--text-dim);
}

.legal-body ul {
  padding-left: 1.15rem;
}

.legal-body li {
  margin: 0.35rem 0;
}

.legal-body strong {
  color: var(--text);
}

/* Business detail page */
.detail-shell {
  max-width: 28rem;
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--bg);
  padding-bottom: 6.5rem;
}

.detail-hero {
  width: 100%;
  height: 17rem;
  background: var(--bg-muted) center / cover no-repeat;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.25rem;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 15, 26, 0.45), transparent 45%);
  pointer-events: none;
}

.detail-hero > * {
  position: relative;
}

.detail-hero.skeleton {
  background: linear-gradient(90deg, var(--bg-muted) 25%, var(--line) 50%, var(--bg-muted) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.detail-back {
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.detail-category-pill {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 12px;
  backdrop-filter: blur(8px);
  align-self: flex-start;
}

.detail-body {
  position: relative;
  margin-top: -2rem;
  padding: 1.75rem 1.25rem 0;
  background: var(--bg);
  border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
}

.detail-name {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.detail-row {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  margin-right: 1rem;
}

.detail-row a {
  color: var(--text);
  font-weight: 500;
}

.detail-desc {
  margin-top: 0.85rem;
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.6;
}

.detail-a11y {
  margin-top: 1.5rem;
}

.detail-a11y-heading {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.a11y-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.a11y-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border: none;
  border-radius: 12px;
  background: rgba(0, 209, 193, 0.12);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--teal-ink);
  line-height: 1.2;
}

.detail-services {
  margin-top: 1.5rem;
}

.detail-services-heading {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1.1rem;
  border-radius: 16px;
  background: var(--bg-soft);
}

.service-name {
  font-weight: 500;
  color: var(--deep-navy);
}

.service-duration {
  flex-shrink: 0;
  padding: 0.25rem 0.6rem;
  border-radius: 10px;
  background: var(--bg);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal-ink);
}

.service-picker {
  margin: 1rem 0 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 0.55rem;
}

.service-picker legend {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}

.service-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1.5px solid transparent;
  border-radius: 16px;
  background: var(--bg-soft);
  cursor: pointer;
}

.service-option:has(input:checked) {
  border-color: var(--lime-deep);
  background: var(--lime-soft);
}

.service-option input {
  margin-top: 0.25rem;
  accent-color: var(--lime-ink);
}

.service-option strong {
  display: block;
  font-weight: 600;
  color: var(--deep-navy);
}

.service-option small {
  color: var(--slate);
  font-weight: 500;
}

.service-option.is-paused {
  cursor: not-allowed;
  opacity: 0.55;
}

.booking-branch {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--deep-navy);
}

.sheet-service-note {
  margin: 0.85rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: var(--bg-soft);
  border: none;
  font-size: 0.9rem;
  color: var(--deep-navy);
  font-weight: 500;
}

.a11y-chip-icon {
  display: inline-flex;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: inherit;
}

.a11y-chip-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.a11y-chips-compact {
  margin-top: 0.5rem;
  gap: 0.35rem;
}

.a11y-chips-compact .a11y-chip {
  padding: 0.22rem 0.45rem;
  font-size: 0.68rem;
  max-width: 100%;
  background: var(--bg);
}

.a11y-chips-compact .a11y-chip-icon-only {
  width: 1.7rem;
  height: 1.7rem;
  padding: 0;
  justify-content: center;
  border-radius: 9px;
  background: var(--bg);
  color: var(--teal-ink);
}

.a11y-chips-compact .a11y-chip-icon-only .a11y-chip-icon {
  width: 0.95rem;
  height: 0.95rem;
}

.a11y-chips-compact .a11y-chip-more {
  min-width: 1.7rem;
  height: 1.7rem;
  padding: 0 0.4rem;
  justify-content: center;
  border-radius: 9px;
  background: var(--bg);
  color: var(--text-dim);
  font-size: 0.68rem;
  font-weight: 700;
}

.a11y-chips-compact .a11y-chip-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 9.5rem;
}

.biz-meta .wait,
.biz-card > .wait {
  margin-top: 0.15rem;
}

.queue-stats {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.queue-stat {
  position: relative;
  overflow: hidden;
  padding: 1rem 0.5rem;
  border-radius: 18px;
  background: var(--bg-soft);
  text-align: center;
}

.queue-stat-value {
  position: relative;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--deep-navy);
}

.queue-stat-label {
  position: relative;
  margin-top: 0.2rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--slate);
}

.queue-divider {
  display: none;
}

.detail-rating {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.detail-rating svg {
  color: var(--star);
}

.detail-rating .reviews {
  color: var(--text-dim);
  font-weight: 500;
}

.detail-actions {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.65rem;
}

.detail-actions .btn {
  margin-top: 0;
}

/* Already queued: reads as a way through to the queue, not a second join. */
.detail-join-btn.in-queue {
  gap: 0.4rem;
  background: var(--blob-navy), var(--deep-navy);
  color: var(--lime-flow);
  box-shadow: 0 10px 22px rgba(10, 15, 26, 0.2);
}

.detail-join-btn.in-queue:hover {
  filter: brightness(1.1);
}

.detail-join-btn.in-queue svg {
  width: 15px;
  height: 15px;
  transform: rotate(-90deg);
}

.detail-join-btn.is-paused:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  background: rgba(102, 112, 133, 0.18);
  color: var(--slate);
  box-shadow: none;
}

.btn-ghost {
  background: var(--lime-soft);
  color: var(--lime-ink);
  border: none;
  box-shadow: none;
}

.btn-ghost:hover:not(:disabled) {
  background: #e4f5b8;
  filter: none;
}

.hidden {
  display: none !important;
}

.page-lead {
  margin-top: 0.25rem;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Booking sheet */
.sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(10, 15, 26, 0.5);
  backdrop-filter: blur(3px);
}

.sheet {
  width: min(100%, 28rem);
  max-height: calc(100dvh - 1.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.85rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
  background: var(--bg);
  border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
  animation: sheet-up 0.22s ease-out;
}

@keyframes sheet-up {
  from {
    transform: translateY(20%);
    opacity: 0;
  }
}

.sheet-handle {
  width: 2.75rem;
  height: 0.3rem;
  margin: 0 auto 1.1rem;
  border-radius: 999px;
  background: var(--bg-muted);
}

.sheet h3 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.sheet-lead {
  margin: 0.25rem 0 1rem;
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.5;
}

.booking-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

@media (max-width: 420px) {
  .booking-fields {
    grid-template-columns: 1fr;
  }
}

.sheet .btn-link {
  width: 100%;
  margin-top: 0.5rem;
}

.party-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.party-stepper button {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 14px;
  border: none;
  background: var(--bg-soft);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.party-stepper button:last-child {
  background: var(--deep-navy);
  color: var(--lime-flow);
}

.party-stepper strong {
  min-width: 2rem;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
}

.party-names {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.65rem;
}

.queue-party-names {
  margin-top: 0.45rem;
  color: var(--text-dim);
  font-size: 0.8rem;
  line-height: 1.35;
}

.queue-a11y-shared {
  margin-top: 0.4rem;
  color: var(--teal-ink);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.35;
}

.a11y-needs {
  margin-top: 1rem;
  border: none;
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.a11y-needs summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1rem 1.1rem;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}

.a11y-needs summary::-webkit-details-marker {
  display: none;
}

.a11y-needs summary::after {
  content: "▾";
  font-size: 0.85rem;
  transition: transform 0.15s ease;
}

.a11y-needs[open] summary::after {
  transform: rotate(180deg);
}

.a11y-needs .optional-label {
  font-weight: 400;
  color: var(--text-dim);
}

.a11y-needs-count {
  margin-left: auto;
  color: var(--teal-ink);
  font-size: 0.8rem;
}

.a11y-needs-lead {
  margin: 0 1.1rem 0.75rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.45;
}

.a11y-needs-grid {
  display: grid;
  gap: 0.5rem;
  padding: 0 1.1rem;
}

.a11y-need {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border: 1.5px solid transparent;
  border-radius: 14px;
  background: var(--bg);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--deep-navy);
}

.a11y-need:has(input:checked) {
  border-color: var(--ocean-teal);
  background: color-mix(in srgb, var(--ocean-teal) 10%, var(--bg));
}

.a11y-need input,
.a11y-needs-remember input {
  flex: none;
  accent-color: var(--emerald);
}

.a11y-need-icon {
  display: inline-flex;
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  color: var(--ocean-teal);
}

.a11y-need-icon svg {
  width: 100%;
  height: 100%;
}

.a11y-need-text {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.5rem;
}

.a11y-need-offered {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--teal-ink);
}

.a11y-need-offered[hidden] {
  display: none;
}

.a11y-needs-note {
  padding: 0 1.1rem;
}

.a11y-needs .field input,
.a11y-needs .field textarea {
  background: var(--bg);
}

.a11y-needs-remember {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 1.1rem 1.1rem;
  font-size: 0.85rem;
  color: var(--text);
}

.a11y-needs > :last-child:not(.a11y-needs-remember) {
  padding-bottom: 1.1rem;
}

#profile-needs-save {
  margin-top: 0.85rem;
}

/* Bookings list */
.booking-list {
  position: relative;
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

.booking-list:has(.booking-card)::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 4.25rem;
  width: 1px;
  background: var(--line);
}

.booking-card {
  position: relative;
  display: grid;
  grid-template-columns: 3.75rem 1fr;
  column-gap: 1rem;
  row-gap: 0;
  padding: 0;
  border: none;
  background: none;
}

.booking-when {
  grid-row: 1 / span 2;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 0.15rem;
  padding: 1rem 0 0;
}

.booking-time {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.booking-day {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-dim);
}

.booking-meta {
  position: relative;
  grid-column: 2;
  padding: 1rem 1.1rem 0.6rem;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--bg-soft);
}

.booking-meta h2,
.booking-meta h3 {
  font-size: 1rem;
  font-weight: 600;
}

.booking-meta .place {
  margin-top: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-dim);
  font-size: 0.78rem;
}

.booking-countdown {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.2rem 0.55rem;
  border-radius: 8px;
  background: var(--bg);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--teal-ink);
}

.booking-actions {
  grid-column: 2;
  display: flex;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--bg-soft);
}

.booking-card:first-child .booking-meta {
  background: var(--blob-lime), var(--lime-flow);
}

.booking-card:first-child .booking-actions {
  background: var(--lime-flow);
}

.booking-card:first-child .booking-meta .place {
  color: var(--deep-navy);
}

.booking-card:first-child .chip-primary {
  background: var(--deep-navy);
  color: var(--lime-flow);
}

.chip {
  flex: 1;
  padding: 0.6rem 0.65rem;
  border: none;
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.chip:disabled {
  opacity: 0.55;
  cursor: default;
}

.chip-primary {
  background: var(--lime-flow);
  color: var(--deep-navy);
}

/* Live queue */
.queue-shell {
  max-width: 28rem;
  margin: 0 auto;
  min-height: 100dvh;
  padding: 1.75rem 1.25rem 6.5rem;
}

.queue-shell h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 12px;
  background: var(--lime-soft);
  color: var(--lime-ink);
  font-size: 0.85rem;
  font-weight: 600;
}

.live-pill::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--lime-deep);
  animation: live-blink 1.6s ease-in-out infinite;
}

@keyframes live-blink {
  50% {
    opacity: 0.3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-pill::before {
    animation: none;
  }
}

/* Keeps the queue switcher reachable while scrolling a long list of cards. */
.queue-header {
  position: sticky;
  top: 0;
  z-index: 5;
  margin: -1.75rem -1.25rem 0;
  padding: 1.75rem 1.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.queue-nav {
  display: flex;
  gap: 0.5rem;
  margin: 1rem -1.25rem 0;
  padding: 0 1.25rem 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.queue-nav::-webkit-scrollbar {
  display: none;
}

.queue-nav-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 11rem;
  padding: 0.55rem 0.85rem;
  border: none;
  border-radius: 14px;
  background: var(--bg-soft);
  color: var(--text-dim);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.queue-nav-chip.active {
  background: var(--lime-flow);
  color: var(--deep-navy);
  box-shadow: 0 8px 18px rgba(126, 176, 0, 0.28);
}

.queue-nav-pos {
  font-weight: 700;
  color: var(--lime-ink);
}

.queue-nav-chip.active .queue-nav-pos {
  color: var(--deep-navy);
}

.queue-card.flash {
  animation: card-flash 0.9s ease-out;
}

@keyframes card-flash {
  0%,
  60% {
    box-shadow: 0 0 0 2px var(--lime-flow);
  }
  100% {
    box-shadow: none;
  }
}


.queue-card {
  position: relative;
  overflow: hidden;
  margin-top: 0.85rem;
  padding: 1.1rem;
  border: none;
  border-radius: var(--radius);
  background: var(--bg-soft);
  /* Clears the sticky header when a nav chip scrolls a card into view. */
  scroll-margin-top: 9.5rem;
}

.queue-card > * {
  position: relative;
}

.queue-card.now {
  background: var(--blob-lime), var(--lime-flow);
  box-shadow: 0 12px 26px rgba(126, 176, 0, 0.28);
}

.queue-card.now .place,
.queue-card.now .queue-facts,
.queue-card.now .queue-party-names,
.queue-card.now .queue-a11y-shared,
.queue-card.now .position-of {
  color: var(--deep-navy);
}

.queue-card.now .queue-chip,
.queue-card.now .queue-leave {
  background: rgba(255, 255, 255, 0.6);
  color: var(--deep-navy);
}

.queue-card.now .queue-progress {
  background: rgba(255, 255, 255, 0.55);
}

.queue-card.now .queue-progress-bar {
  background: var(--deep-navy);
}

.queue-card-main {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

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

.queue-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.queue-card-head h2 {
  font-size: 1rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue-card .place {
  margin-top: 0.1rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-dim);
  font-size: 0.72rem;
}

.queue-chip {
  flex-shrink: 0;
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  background: var(--bg);
  color: var(--text-dim);
  font-size: 0.68rem;
  font-weight: 600;
}

/* Conic-gradient ring driven by the --progress custom property (0-100). */
.position-ring {
  flex-shrink: 0;
  width: 4.6rem;
  height: 4.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(
    var(--lime-deep) calc(var(--progress) * 1%),
    var(--bg-muted) 0
  );
  transition: background 0.4s ease;
}

.queue-card.now .position-ring {
  background: conic-gradient(var(--deep-navy) calc(var(--progress) * 1%), rgba(255, 255, 255, 0.55) 0);
  animation: ring-pulse 1.6s ease-in-out infinite;
}

@keyframes ring-pulse {
  50% {
    box-shadow: 0 0 0 0.35rem rgba(10, 15, 26, 0.1);
  }
}

.position-inner {
  width: 3.7rem;
  height: 3.7rem;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background: var(--bg);
}

.queue-card.now .position-inner {
  background: var(--lime-flow);
}

.position-number {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--deep-navy);
}

.position-of {
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--text-dim);
}

.queue-milestone {
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.queue-card.now .queue-milestone {
  color: var(--deep-navy);
}

.milestone-emoji {
  font-size: 0.9rem;
}

.queue-facts {
  margin-top: 0.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.75rem;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.queue-facts strong {
  color: var(--deep-navy);
  font-weight: 700;
}

.queue-card-foot {
  margin-top: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.queue-progress {
  flex: 1;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--bg-muted);
  overflow: hidden;
}

.queue-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ocean-teal), var(--lime-flow));
  transition: width 0.5s ease;
}

.queue-leave {
  flex-shrink: 0;
  padding: 0.45rem 0.85rem;
  border: none;
  border-radius: 10px;
  background: var(--bg);
  color: var(--text-dim);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.queue-leave:hover:not(:disabled) {
  color: var(--danger);
}

.queue-leave:disabled {
  opacity: 0.55;
  cursor: default;
}

.biz-card {
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.12s;
}

.biz-card:hover {
  transform: translateY(-1px);
}

.biz-card:not(.biz-card-joined, .biz-card-closed):hover {
  box-shadow: var(--shadow);
}
