:root {
  --bg: #f4f8fc;
  --surface: #ffffff;
  --line: #d5e3f2;
  --text: #102a4c;
  --muted: #5c7390;
  --accent: #1d6fe8;
  --accent-ink: #ffffff;
}

* {
  box-sizing: border-box;
}

/* No visible scrollbars anywhere. Pages and panels still scroll by wheel, touch and keyboard. */
* {
  scrollbar-width: none;
}

*::-webkit-scrollbar {
  display: none;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse at top, #e5f0ff 0%, transparent 55%),
    var(--bg);
}

header {
  position: sticky;
  top: 0;
  z-index: 30;
  /* Menu | member name | sign-in. Equal side columns keep the name in the exact middle. */
  display: grid;
  grid-template-columns: 1fr minmax(0, max-content) 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
}

header > .menu-toggle {
  grid-column: 1;
  justify-self: start;
}

header > .user-chip {
  grid-column: 2;
  justify-self: center;
  max-width: 100%;
}

/* Small phones: no room for equal sides, so the name centres in the space between the buttons */
@media (max-width: 480px) {
  header {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
}

/* Always pinned to the top-right corner, even while the name is hidden */
.header-end {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  min-width: 0;
}

.menu-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
  display: block;
  width: 1.125rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.menu-bars {
  position: relative;
}

.menu-bars::before,
.menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-bars::before {
  top: -6px;
}

.menu-bars::after {
  top: 6px;
}

.menu-toggle[aria-expanded="true"] .menu-bars {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-menu {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 25;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: min(18rem, 86vw);
  height: 100vh;
  margin: 0;
  padding: 5rem 1rem 1.5rem;
  background: var(--surface);
  border-right: 1px solid var(--line);
  box-shadow: 8px 0 32px rgba(0, 0, 0, 0.35);
}

.site-menu[hidden] {
  display: none;
}

/* MENU heading: brand font and colour blend */
.menu-title {
  margin: 0 0 0.6rem;
  padding: 0 0.85rem 0.6rem;
  font-family: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  font-size: 2.1rem;
  line-height: 1;
  letter-spacing: 0.18em;
  color: var(--accent);
  background: linear-gradient(100deg, #1d4ed8, var(--accent) 55%, #7eb6ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  border-bottom: 1px solid var(--line);
}

.site-menu button {
  padding: 0.7rem 0.85rem;
  color: var(--text);
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
}

.site-menu button:hover,
.site-menu button:focus-visible {
  border-color: var(--line);
  outline: none;
}

.site-menu button.is-active {
  color: var(--accent-ink);
  background: var(--accent);
  font-weight: 700;
}

/* Signed-in member: initials avatar, name and plan badge in one pill */
.user-chip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.25rem 0.7rem 0.25rem 0.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  animation: chip-in 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.user-chip[hidden],
.user-name[hidden],
.user-plan[hidden] {
  display: none;
}

.user-avatar {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 2rem;
  height: 2rem;
  color: var(--accent-ink);
  background: linear-gradient(135deg, #1d4ed8, var(--accent));
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 0 0 2px rgba(29, 111, 232, 0.25);
}

.user-name {
  min-width: 0;
  max-width: 11rem;
  overflow: hidden;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 400;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.user-plan {
  flex-shrink: 0;
  padding: 0.12rem 0.45rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.user-plan.plan-free {
  color: var(--accent);
}

.user-plan.plan-vip {
  color: #e6c15a;
  background: rgba(230, 193, 90, 0.12);
}

.user-plan.plan-boom {
  color: #ffb020;
  background: rgba(255, 176, 32, 0.14);
}

.user-plan.plan-vvip,
.user-plan.plan-both {
  color: #b48cf2;
  background: rgba(180, 140, 242, 0.14);
}

@keyframes chip-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* Greeting after signing in or creating an account; slides down, then away */
.welcome-toast {
  position: fixed;
  top: 4.5rem;
  left: 50%;
  z-index: 35;
  display: grid;
  gap: 0.2rem;
  width: min(24rem, calc(100vw - 2rem));
  padding: 0.9rem 1.1rem 0.9rem 1.25rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  opacity: 0;
  /* Invisible until a sign-in greeting. Otherwise this card sits on the day
     switch and swallows the taps. */
  pointer-events: none;
  transform: translate(-50%, -14px);
  transition:
    opacity 0.35s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.welcome-toast[hidden] {
  display: none;
}

.welcome-toast.is-shown {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

/* Greeting sits just under the header bar. */
.homepage .welcome-toast {
  top: 4.75rem;
}

.welcome-toast strong {
  font-family: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.welcome-toast span {
  color: var(--muted);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 300;
}

@media (prefers-reduced-motion: reduce) {
  .user-chip {
    animation: none;
  }

  .welcome-toast {
    transition: none;
  }
}

h1 {
  margin: 0.5rem 0 0.25rem;
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: 0.14em;
}

/* Home page brand: King Predict crown plus wordmark. */
.brand-title.brand-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.85rem;
  margin: 0.85rem auto 0.35rem;
  padding-top: 0;
  font-family: "Arial Narrow", "Bahnschrift Condensed", Impact, sans-serif;
  letter-spacing: 0.08em;
}

.brand-mark {
  width: clamp(64px, 16vw, 88px);
  height: auto;
  flex: 0 0 auto;
  border-radius: 22%;
}

.brand-words {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  line-height: 0.86;
  text-align: left;
}

.brand-king {
  color: var(--text);
  font-size: clamp(2.6rem, 8vw, 4.4rem);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.brand-predict {
  color: #1d6fe8;
  font-size: clamp(1.15rem, 3.4vw, 1.85rem);
  font-weight: 600;
  letter-spacing: 0.34em;
  padding-left: 0.06em;
}

html[data-theme="light"] .brand-predict {
  color: #1d4ed8;
}

/* Up, down, squash on the "ground", small rebound, then rest */
@keyframes brand-dribble {
  0%,
  40%,
  100% {
    transform: translateY(0) scale(1, 1);
  }
  12% {
    transform: translateY(-0.28em) scale(0.96, 1.05);
  }
  24% {
    transform: translateY(0) scale(1.12, 0.84);
  }
  31% {
    transform: translateY(-0.08em) scale(0.98, 1.02);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-letter {
    animation: none;
  }
}

/* Full intro text under the title, with breathing room, drifting slowly up and down */
.lede {
  margin: 1.75rem auto 0.5rem;
  max-width: 40rem;
  padding: 0 1rem;
  color: var(--muted);
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.02em;
  text-align: center;
}

@keyframes lede-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

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

/* Clear space between each predictions table */
.homepage main hr {
  margin: 0.75rem 0;
}

.homepage main > section > table th,
.homepage main > section > table td {
  padding: 0.4rem 0.7rem;
  font-size: 0.9rem;
}

.homepage main > section > table thead th {
  font-size: 1.05rem;
}

.homepage main > section > table thead th.boom-title {
  font-size: clamp(1.05rem, 4vw, 1.2rem);
}

.homepage main > section .match-meta {
  margin-top: 0.15rem;
  font-size: 0.8rem;
}

.homepage main > section > .booking-panel {
  margin-top: 0.4rem;
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
}

.homepage .booking-text {
  font-size: 0.82rem;
  line-height: 1.35;
}

.homepage .booking-code-row {
  gap: 0.5rem;
  margin-top: 0.45rem;
}

.homepage .booking-code {
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}

.homepage .booking-copy {
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
}

.homepage main > section > .plan-button {
  margin-top: 0.4rem;
  padding: 0.55rem 1rem;
  min-height: 40px;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.homepage .slot-line {
  margin-top: 0.3rem;
  font-size: 0.75rem;
}

.homepage .section-won {
  margin: 0.5rem 0 0;
  padding: 0.5rem 0.75rem;
  color: #15803d;
  background: #e8f8ee;
  border: 1px solid #22c55e;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
}

.homepage .section-won[hidden] {
  display: none;
}

main hr {
  margin: 3rem 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.match-days {
  display: flex;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
}

.day-button {
  flex: 1;
  padding: 0.55rem 0.75rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.day-button:hover,
.day-button:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.day-button[aria-pressed="true"] {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}

#free,
#vip,
#vvip,
#boom,
#weekly {
  scroll-margin-top: 4.75rem;
}

thead th.boom-title {
  margin: 0;
  padding: 1rem 0.85rem;
  text-align: center;
  font-family: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(1.45rem, 5.4vw, 1.9rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.08em;
  color: #2a1208;
  background: linear-gradient(120deg, #ff7a18 0%, #ffb020 52%, #ff5a36 100%);
  border: 1px solid #ffb020;
  border-radius: 12px;
}

.icon-boom {
  color: #ff8a2a;
}

.site-menu a {
  display: block;
  padding: 0.7rem 0.85rem;
  color: var(--text);
  text-align: left;
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
}

.site-menu a:hover,
.site-menu a:focus-visible {
  border-color: var(--line);
  outline: none;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

th,
td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

thead th {
  color: var(--accent-ink);
  background: var(--accent);
  letter-spacing: 0.08em;
}

.vip-table {
  border-color: #e6c15a;
}

.vip-table thead th {
  color: #2a2108;
  background: #e6c15a;
}

.plan-button {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.plan-button[hidden] {
  display: none;
}

#free[hidden],
#vip[hidden],
#vvip[hidden],
#boom[hidden],
hr[hidden],
.site-menu .menu-item[hidden],
.footer-list li[hidden] {
  display: none !important;
}

.plan-button:hover,
.plan-button:focus-visible {
  filter: brightness(1.08);
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.vip-plan {
  color: #2a2108;
  background: #e6c15a;
}

.vvip-plan {
  color: #1e0f3a;
  background: #b48cf2;
}

.vvip-table {
  border-color: #b48cf2;
}

.vvip-table thead th {
  color: #1e0f3a;
  background: #b48cf2;
}

.weekly-table {
  border-color: #67d7ef;
}

.weekly-table thead th,
.weekly-plan {
  color: #082e38;
  background: #67d7ef;
}

.slot-line {
  margin: 0.7rem 0 0;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
}

.slot-line[hidden] {
  display: none;
}

#vip-slots {
  color: #e6c15a;
}

#boom-slots {
  color: #ffb020;
}

.boom-table {
  border-color: #ffb020;
}

#vvip-slots {
  color: #b48cf2;
}

tbody tr:last-child td {
  border-bottom: 0;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.25rem 1rem 2.5rem;
}

.days {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

button {
  font: inherit;
  cursor: pointer;
}

.days button {
  min-width: 7rem;
  padding: 0.55rem 1rem;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.days button:hover,
.days button:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.days button.is-active {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 700;
}

.sign-in {
  flex-shrink: 0;
  min-width: 6.25rem;
  padding: 0.5rem 1rem;
  color: var(--accent-ink);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.sign-in:hover,
.sign-in:focus-visible {
  filter: brightness(1.08);
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

/* Same button once signed in: outlined "Sign out", turns red on hover */
.sign-in.is-signed-in {
  color: var(--text);
  background: transparent;
  border-color: var(--line);
}

.sign-in.is-signed-in:hover,
.sign-in.is-signed-in:focus-visible {
  color: #ff6b6b;
  border-color: #ff6b6b;
  filter: none;
  outline: none;
}

#match-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

#match-list > li {
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
}

#match-list > li + li {
  margin-top: 0.75rem;
}

#match-list > li.empty {
  color: var(--muted);
  border-left-color: var(--line);
}

.match h3 {
  margin: 0;
  font-size: 1.05rem;
}

.predictions {
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}

.predictions li {
  padding: 0.7rem 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.predictions li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.predictions li + li {
  margin-top: 0;
}

@media (max-width: 520px) {
  .days {
    flex-direction: column;
  }

  .days button {
    width: 100%;
  }
}

.site-footer {
  margin-top: 2.5rem;
  padding: 2.5rem 1.25rem 1.5rem;
  background: var(--surface);
  border-top: 3px solid var(--accent);
}

.footer-shell {
  display: grid;
  gap: 2rem;
  max-width: 1040px;
  margin: 0 auto;
}

.footer-identity {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
}

.footer-mark {
  width: 48px;
  height: 48px;
}

.footer-wordmark {
  margin: 0;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-kicker {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.footer-age {
  margin: 0;
  padding: 0.35rem 0.55rem;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.footer-columns {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 800px) {
  .footer-shell {
    grid-template-columns: minmax(240px, 0.9fr) 1.6fr;
    align-items: start;
    gap: 3rem;
  }

  .footer-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.footer-base {
  display: grid;
  gap: 0.7rem;
  max-width: 1040px;
  margin: 2rem auto 0;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.footer-name {
  margin: 0;
  font-family: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text);
}

.footer-name span {
  color: var(--accent);
}

.footer-heading {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.footer-list a,
.footer-list button {
  padding: 0;
  color: var(--text);
  background: none;
  border: 0;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.footer-list a:hover,
.footer-list a:focus-visible,
.footer-list button:hover,
.footer-list button:focus-visible {
  color: var(--accent);
  outline: none;
}

.footer-list.plain li {
  color: var(--text);
}

/* Footer socials: logo-only tiles in brand colours */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.social-link {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

.social-link svg {
  width: 1.6rem;
  height: 1.6rem;
}

.social-whatsapp {
  background: #25d366;
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.35);
}

.social-telegram {
  background: #229ed9;
  box-shadow: 0 6px 22px rgba(34, 158, 217, 0.35);
}

.social-tiktok {
  background: #000;
  border: 1px solid var(--line);
  box-shadow: inset -2px -2px 0 rgba(37, 244, 238, 0.55), inset 2px 2px 0 rgba(254, 44, 85, 0.55);
}

.social-instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  box-shadow: 0 6px 22px rgba(214, 36, 159, 0.3);
}

.social-x {
  background: #000;
  border: 1px solid var(--line);
}

.social-facebook {
  background: #1877f2;
  box-shadow: 0 6px 22px rgba(24, 119, 242, 0.35);
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-3px);
  filter: brightness(1.12);
}

.social-link:active {
  transform: scale(0.94);
}

.social-link:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}

.site-footer .social-links {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.site-footer .social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  width: auto;
  height: auto;
  padding: 0.3rem 0.85rem 0.3rem 0.3rem;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: none;
  font-size: 0.92rem;
  font-weight: 700;
}

.site-footer .social-whatsapp,
.site-footer .social-telegram,
.site-footer .social-tiktok {
  background: transparent;
  border: 1px solid var(--line);
  box-shadow: none;
}

.site-footer .social-mark {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  flex: 0 0 auto;
}

.site-footer .social-whatsapp .social-mark { background: #25d366; }
.site-footer .social-telegram .social-mark { background: #229ed9; }
.site-footer .social-tiktok .social-mark {
  background: #111;
  box-shadow: inset -2px -2px 0 rgba(37, 244, 238, 0.7), inset 2px 2px 0 rgba(254, 44, 85, 0.7);
}

.site-footer .social-link svg {
  width: 1.05rem;
  height: 1.05rem;
}

.site-footer .social-link:hover,
.site-footer .social-link:focus-visible {
  transform: none;
  filter: none;
  border-color: var(--accent);
  color: var(--accent);
}

/* Each icon bobs gently on its own beat. Uses `translate`, so the hover lift
   (`transform`) still stacks on top. */
.social-link {
  animation: none;
}

.social-link:nth-child(2) { animation-delay: -0.75s; }
.social-link:nth-child(3) { animation-delay: -1.5s; }
.social-link:nth-child(4) { animation-delay: -2.25s; }
.social-link:nth-child(5) { animation-delay: -3s; }

@keyframes social-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .social-link {
    transition: none;
    animation: none;
  }
}

.copyright {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: left;
}

.admin-button {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  padding: 0.7rem 1.2rem;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.admin-button:hover,
.admin-button:focus-visible {
  filter: brightness(1.08);
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.admin-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  max-width: none;
  padding: 1.5rem 1rem;
}

.admin-card {
  width: 100%;
  max-width: 420px;
  padding: 2.25rem 1.75rem;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 0 60px rgba(61, 220, 132, 0.08);
}

.lock-badge {
  display: grid;
  place-items: center;
  width: 4.25rem;
  height: 4.25rem;
  margin: 0 auto 1.25rem;
  color: var(--accent);
  background: rgba(61, 220, 132, 0.12);
  border: 1px solid rgba(61, 220, 132, 0.4);
  border-radius: 50%;
}

.lock-badge svg {
  width: 1.75rem;
  height: 1.75rem;
}

.admin-card h1 {
  margin: 0;
  font-size: 1.9rem;
  letter-spacing: 0;
}

.admin-card p {
  margin: 0.6rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.admin-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

/* Email + password, grouped so they can be hidden while an older account adds a name */
.admin-form-fields {
  display: grid;
  gap: 1rem;
}

.admin-form-fields[hidden],
.account-tabs[hidden] {
  display: none;
}

.passcode-field {
  position: relative;
}

.passcode-field input {
  width: 100%;
  padding: 1rem 3.25rem 1rem 1.1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  font: inherit;
  font-size: 1.05rem;
}

.passcode-field input::placeholder {
  color: var(--muted);
}

.passcode-field input:focus {
  border-color: var(--accent);
  outline: none;
}

.toggle-passcode {
  position: absolute;
  top: 50%;
  right: 0.6rem;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  color: var(--accent);
  background: none;
  border: 0;
  border-radius: 8px;
  transform: translateY(-50%);
  cursor: pointer;
}

.toggle-passcode:focus-visible {
  outline: 2px solid var(--accent);
}

.toggle-passcode svg {
  width: 1.4rem;
  height: 1.4rem;
}

.admin-submit {
  padding: 1rem;
  color: var(--accent-ink);
  background: var(--accent);
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.admin-submit:hover,
.admin-submit:focus-visible {
  filter: brightness(1.08);
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.admin-error {
  min-height: 1.4em;
  margin: 0;
  color: #ff6b6b;
  font-size: 0.9rem;
}

.admin-card a {
  color: var(--accent);
}


.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.control-room {
  background: var(--bg);
}

.control-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}

.control-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.control-bar h1 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  text-align: left;
}

.control-sign-out {
  padding: 0.5rem 1rem;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
}

.control-sign-out:hover,
.control-sign-out:focus-visible {
  border-color: var(--accent);
  outline: none;
}

/* Front page match rows */
.match-teams {
  font-weight: 600;
}

.match-meta {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Spacer | match (centred) | result badge (far right) */
.match-cell {
  display: grid;
  grid-template-columns: minmax(3.25rem, 1fr) minmax(0, max-content) minmax(3.25rem, 1fr);
  align-items: center;
  gap: 0.5rem;
}

.match-tip-line {
  display: block;
}

.match-live-odds {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  white-space: nowrap;
}

.match-live-odds:empty {
  display: none;
}

/* Small solid button behind the odds, with one blinking dot */
.match-cell .match-live {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 24px;
  padding: 0 0.55rem;
  border-radius: 6px;
  color: #fff;
  background: #d92d35;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.match-cell .match-live::before {
  content: "";
  flex-shrink: 0;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: #fff;
  animation: match-live-blink 1.4s ease-in-out infinite;
}

.match-cell .match-live:hover,
.match-cell .match-live:focus-visible {
  background: #b9202a;
}

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

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

.match-cell > div {
  grid-column: 2;
  text-align: center;
}

.match-cell .result-badge {
  grid-column: 3;
  justify-self: end;
}

.match-cell .match-picture {
  margin-right: auto;
  margin-left: auto;
}

.result-badge {
  flex-shrink: 0;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.result-badge.won {
  color: #ffffff;
  background: #16a34a;
}

.result-badge.lost {
  color: #fff;
  background: #e5484d;
}

.empty-row,
.empty-note {
  color: var(--muted);
}

/* Control room dashboard */
.control-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.control-link {
  color: var(--accent);
  text-decoration: none;
}

.control-link:hover,
.control-link:focus-visible {
  text-decoration: underline;
}

.control-day {
  margin-top: 1.5rem;
}

.control-day .match-days {
  max-width: 420px;
}

.control-date {
  margin: 0;
  color: var(--muted);
}

/* Free, VIP and VVIP counts: always one row of three */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.stat {
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.stat-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.stat-value {
  margin: 0.35rem 0 0;
  font-size: 1.75rem;
  font-weight: 800;
}

@media (max-width: 480px) {
  .stat {
    padding: 0.8rem 0.75rem;
  }

  .stat-label {
    font-size: 0.78rem;
  }
}

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

.control-section h2 {
  margin: 0 0 0.85rem;
  font-size: 1.1rem;
}

.match-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.85rem;
  align-items: end;
}

.match-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.match-form input,
.match-form select,
.lookup-form input,
.result-select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
}

.match-form input:focus,
.match-form select:focus,
.lookup-form input:focus,
.result-select:focus {
  border-color: var(--accent);
  outline: none;
}

.form-actions {
  display: flex;
  gap: 0.5rem;
}

.control-primary {
  padding: 0.65rem 1.1rem;
  color: var(--accent-ink);
  background: var(--accent);
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.control-primary:hover,
.control-primary:focus-visible {
  filter: brightness(1.08);
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.form-message {
  min-height: 1.4em;
  margin: 0.6rem 0 0;
  color: var(--accent);
  font-size: 0.9rem;
}

.form-message.error {
  color: #ff6b6b;
}

.tier-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
}

.total-odds-form {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
}

.total-odds-form label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.total-odds-form input {
  width: 6.4rem;
  margin: 0;
  padding: 0.35rem 0.55rem;
}

.booking-code-form input {
  width: 8.5rem;
}

.tier-total {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
}

.admin-table {
  min-width: 620px;
}

/* Currency heading between groups of day rows in the online payments report. */
.admin-table .online-currency {
  font-weight: 700;
  padding-top: 0.9rem;
}

.result-select {
  width: auto;
  padding: 0.35rem 0.5rem;
}

.row-actions {
  white-space: nowrap;
}

.row-action {
  margin-right: 0.35rem;
  padding: 0.35rem 0.75rem;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.row-action:hover,
.row-action:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.row-action.danger {
  color: #ff6b6b;
}

.row-action.danger:hover,
.row-action.danger:focus-visible {
  border-color: #ff6b6b;
}

/* Match pictures */
.match-cell > div {
  min-width: 0;
}

.match-picture {
  display: block;
  width: 7rem;
  height: 5rem;
  max-width: 100%;
  margin-top: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  cursor: zoom-in;
}

.match-picture.expanded {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: none;
  cursor: zoom-out;
}

.image-field {
  display: grid;
  gap: 0.5rem;
}

.match-form input[type="file"] {
  padding: 0.5rem;
  cursor: pointer;
}

.match-form input[type="file"]::file-selector-button {
  margin-right: 0.6rem;
  padding: 0.35rem 0.75rem;
  color: var(--accent-ink);
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.image-preview {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.image-preview[hidden] {
  display: none;
}

.image-preview img {
  width: 4.5rem;
  height: 3.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.admin-thumb {
  display: block;
  width: 3.5rem;
  height: 2.5rem;
  border-radius: 6px;
  object-fit: cover;
}

/* Add match: table first, then slip reading */
.add-form {
  display: grid;
  gap: 1.25rem;
}

/* Table choice on the left, SportyBet screenshot upload beside it; stacked on phones */
.add-top {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 1rem 1.25rem;
  align-items: start;
}

@media (max-width: 640px) {
  .add-top {
    grid-template-columns: minmax(0, 1fr);
  }
}

.tier-pick {
  display: grid;
  gap: 0.4rem;
  max-width: 320px;
}

.tier-pick label {
  display: grid;
  gap: 0.35rem;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
}

.tier-pick select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 10px;
  font: inherit;
}

.match-fields {
  display: grid;
  gap: 1.1rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.match-fields:disabled {
  opacity: 0.45;
}

.match-form[hidden] {
  display: none;
}

.form-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.image-field label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.image-field input[type="file"] {
  width: 100%;
  padding: 0.5rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  cursor: pointer;
}

.image-field input[type="file"]::file-selector-button {
  margin-right: 0.6rem;
  padding: 0.35rem 0.75rem;
  color: var(--accent-ink);
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.paste-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.5rem;
}

.paste-zone {
  flex: 1 1 14rem;
  min-height: 2.75rem;
  max-height: 6rem;
  overflow: hidden;
  padding: 0.6rem 0.75rem;
  line-height: 1.4;
  color: var(--text);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 10px;
  font-size: 0.85rem;
  cursor: text;
}

.paste-zone:empty::before {
  content: attr(data-placeholder);
  color: var(--muted);
}

.paste-zone:focus {
  border-color: var(--accent);
  outline: none;
}

.paste-zone img {
  display: none;
}

.slip-results {
  display: grid;
  gap: 0.6rem;
}

.slip-results[hidden] {
  display: none;
}

.slip-results h3 {
  margin: 0;
  font-size: 1rem;
}

.slip-table td {
  padding: 0.5rem;
}

.slip-table input {
  width: 100%;
  min-width: 6rem;
  padding: 0.45rem 0.55rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.slip-table input:focus {
  border-color: var(--accent);
  outline: none;
}

.control-primary:disabled {
  opacity: 0.6;
  cursor: wait;
}

.slip-table .tip-input {
  border-color: var(--accent);
}

.slip-table .tip-input:placeholder-shown {
  background: rgba(61, 220, 132, 0.08);
}

/* Control room overview */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.overview-card {
  display: block;
  padding: 1.25rem;
  color: var(--text);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 14px;
}

.overview-card + .overview-card {
  border-left-color: #e6c15a;
}

.overview-card:hover,
.overview-card:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.overview-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.overview-value {
  margin: 0.4rem 0 0;
  font-size: 2rem;
  font-weight: 800;
}

.overview-detail {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.gateway-status {
  padding: 0.15rem 0.6rem;
  color: #e6c15a;
  background: rgba(230, 193, 90, 0.12);
  border: 1px solid rgba(230, 193, 90, 0.4);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.gateway-note {
  margin: 0 0 0.85rem;
}

.status-badge {
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.status-badge.active {
  color: var(--accent-ink);
  background: var(--accent);
}

.status-badge.expired {
  color: #fff;
  background: #e5484d;
}

.member-search {
  grid-template-columns: minmax(0, 28rem);
  margin: 0.85rem 0 0;
}

#member-list,
#payment-list {
  margin-top: 0.5rem;
}

#members-title,
#payments-title {
  scroll-margin-top: 1rem;
}

/* Account, payment dialog and payment result */
.account-tabs {
  margin: 1.5rem 0 0;
}

.pay-dialog {
  width: min(420px, calc(100vw - 2rem));
  padding: 1.75rem 1.5rem 1.25rem;
  color: var(--text);
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
}

/* Pop-up banner uploaded in the Control Room: just the picture and a close button. */
.popup-banner {
  position: relative;
  width: auto;
  max-width: min(520px, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 16px;
}

.popup-banner::backdrop {
  background: rgba(4, 8, 16, 0.75);
}

.popup-banner img {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 2rem);
  object-fit: contain;
  border-radius: 16px;
}

.popup-banner-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  line-height: 1;
  color: #fff;
  background: rgba(4, 8, 16, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  cursor: pointer;
}

.popup-banner-close:hover,
.popup-banner-close:focus-visible {
  background: rgba(4, 8, 16, 0.9);
}

.pay-dialog::backdrop {
  background: rgba(4, 8, 16, 0.75);
}

.pay-dialog h2 {
  margin: 0;
  font-size: 1.4rem;
}

.rollover-campaign {
  box-sizing: border-box;
  width: min(460px, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  padding: clamp(1.5rem, 5vw, 2.25rem);
  background: radial-gradient(ellipse at top, rgba(103, 215, 239, 0.14), transparent 65%), #0c1424;
  border: 1px solid rgba(103, 215, 239, 0.35);
  border-radius: 28px;
  color: #f3f7ff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.rollover-campaign::backdrop {
  background: rgba(3, 8, 18, 0.85);
  backdrop-filter: blur(5px);
}

.rollover-campaign-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  color: #67d7ef;
  border: 1px solid rgba(103, 215, 239, 0.3);
  border-radius: 22px;
  background: rgba(103, 215, 239, 0.08);
}

.rollover-campaign-icon svg {
  width: 44px;
  height: 44px;
}

.rollover-campaign-eyebrow {
  margin: 0 0 0.75rem;
  color: #67d7ef;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.rollover-campaign h2 {
  font-size: clamp(1.8rem, 7vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.rollover-campaign h2 span {
  color: #67d7ef;
}

.rollover-campaign-description {
  margin: 1rem 0 1.5rem;
  color: #b6c4d8;
  font-size: 0.95rem;
  line-height: 1.65;
}

.rollover-campaign-benefit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(103, 215, 239, 0.18);
  border-radius: 16px;
  background: rgba(103, 215, 239, 0.05);
  text-align: left;
}

.rollover-campaign-benefit strong {
  flex-shrink: 0;
  color: #67d7ef;
  font-size: 1.1rem;
}

.rollover-campaign-benefit span {
  color: #b6c4d8;
  font-size: 0.75rem;
  line-height: 1.5;
}

.rollover-campaign-actions {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.rollover-campaign-actions .plan-button {
  width: 100%;
  margin: 0;
  min-height: 50px;
  border-radius: 14px;
}

.rollover-campaign-actions .control-sign-out {
  min-height: 44px;
  border-radius: 14px;
  color: #c5d1e3;
}

.rollover-campaign-note {
  margin: 1rem 0 0;
  color: #98a9c0;
  font-size: 0.7rem;
  line-height: 1.5;
}

.boom-campaign {
  background: radial-gradient(ellipse at top, rgba(255, 176, 32, 0.14), transparent 65%), #0c1424;
  border-color: rgba(255, 176, 32, 0.35);
}

.boom-campaign .rollover-campaign-icon,
.boom-campaign .rollover-campaign-benefit {
  border-color: rgba(255, 176, 32, 0.25);
  background: rgba(255, 176, 32, 0.06);
}

.boom-campaign .rollover-campaign-icon,
.boom-campaign .rollover-campaign-eyebrow,
.boom-campaign .rollover-campaign-benefit strong {
  color: #ffb020;
}

.boom-campaign h2 {
  font-size: clamp(1.5rem, 6vw, 2rem);
}

.boom-campaign #boom-join {
  background: #ffb020;
  color: #302000;
}

.fee-confirm-copy {
  margin: 0.85rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.fee-wait[open] {
  display: grid;
  justify-items: center;
}

.fee-loader {
  width: 3.4rem;
  height: 3.4rem;
  margin-bottom: 1rem;
  border: 3px solid rgba(61, 220, 132, 0.22);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: fee-spin 0.8s linear infinite;
}

.fee-loader[hidden] {
  display: none;
}

@keyframes fee-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fee-loader {
    animation: none;
    border-color: var(--accent);
  }
}

#pay-confirm-close {
  margin-top: 1.1rem;
  text-decoration: none;
}

#pay-confirm-close[hidden] {
  display: none;
}

.pay-price {
  margin: 0.4rem 0 1.25rem;
  color: var(--muted);
}

.pay-options {
  display: grid;
  gap: 0.6rem;
}

.pay-options .plan-button {
  margin: 0;
}

.pay-options .plan-button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.pay-note {
  margin: 0.5rem 0 1rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.pay-close {
  width: 100%;
}

/* SportyBet booking code (free predictions) */
.booking-button {
  color: var(--accent-ink);
  background: var(--accent);
}

.booking-panel {
  margin-top: 0.75rem;
  padding: 1rem 1.1rem;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.booking-panel[hidden],
.booking-code-row[hidden] {
  display: none;
}

.booking-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.booking-code-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.booking-code {
  padding: 0.45rem 1rem;
  color: var(--accent);
  background: var(--bg);
  border: 1px dashed var(--accent);
  border-radius: 10px;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  user-select: all;
}




.booking-input {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.booking-with-match {
  grid-template-columns: 1fr;
}

/* Small phones: keep the header on one line */
/* Small phones: plan shows as the avatar's ring instead of a badge */
@media (max-width: 480px) {
  .user-chip {
    gap: 0.45rem;
    padding-right: 0.6rem;
  }

  .user-name {
    max-width: 6rem;
  }

  .user-plan {
    display: none;
  }

  .user-chip[data-plan="vip"] .user-avatar {
    box-shadow: 0 0 0 2px #e6c15a;
  }

  .user-chip[data-plan="vvip"] .user-avatar {
    box-shadow: 0 0 0 2px #b48cf2;
  }

  .user-chip[data-plan="both"] .user-avatar {
    box-shadow: 0 0 0 2px #e6c15a, 0 0 0 4px #b48cf2;
  }
}

/* Control Room: Payment Gateway */
.gateway-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.gateway-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 800;
}

.gateway-card {
  margin-top: 1rem;
  padding: 1.5rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
}

/* Control Room pop-up banners */
.popup-preview {
  display: block;
  max-width: 100%;
  max-height: 240px;
  margin: 0 0 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.popup-preview[hidden] {
  display: none;
}

.popup-times {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.popup-list {
  display: grid;
  gap: 0.75rem;
}

.popup-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.popup-row img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--bg);
}

.popup-row-time {
  margin: 0 0 0.25rem;
  font-weight: 600;
}

.popup-row .form-hint {
  margin: 0;
}

@media (max-width: 520px) {
  .popup-row {
    grid-template-columns: 56px minmax(0, 1fr) auto;
  }

  .popup-row img {
    width: 56px;
    height: 56px;
  }

  .popup-row .control-sign-out {
    grid-column: 1 / -1;
  }
}

.gateway-card h3 {
  margin: 0 0 1.25rem;
  font-size: 1.2rem;
  font-weight: 800;
}

.rates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem 1.5rem;
}

.rate-field label,
.gateway-field label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rate-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.rate-row input,
.gateway-field input,
.account-row input {
  width: 100%;
  min-width: 0;
  padding: 0.85rem 0.9rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
}

.rate-row input:focus,
.gateway-field input:focus,
.account-row input:focus {
  border-color: var(--accent);
  outline: none;
}

.round-button {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
}

.round-button svg {
  width: 1.1rem;
  height: 1.1rem;
}

.round-button:hover,
.round-button:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  outline: none;
}

.outline-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
}

.outline-button:hover,
.outline-button:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.refresh-icon {
  width: 1.1rem;
  height: 1.1rem;
}

.gateway-save {
  margin-top: 1.5rem;
  padding: 0.85rem 1.5rem;
  letter-spacing: 0.04em;
}

.checkout-form {
  display: grid;
  gap: 1.1rem;
}

.method-block {
  display: grid;
  gap: 0.75rem;
}

.method-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.method-title {
  font-weight: 800;
}

/* A switch at the top of a card (Accrue, pop-ups): no box inside the box. */
.gateway-card > .method-head {
  padding: 0;
  border: 0;
  margin-bottom: 0.75rem;
  gap: 1rem;
}

.gateway-card > .method-head h3 {
  margin: 0;
}

.rates-grid + .rate-field {
  margin-top: 1.25rem;
}

.rates-note {
  margin-top: 1rem;
}

.method-rows {
  display: grid;
  gap: 0.6rem;
}

.account-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 0.6rem;
  align-items: center;
}

.method-block .outline-button {
  justify-self: start;
}

/* On/off switch */
.switch {
  position: relative;
  display: inline-block;
  width: 3.25rem;
  height: 1.85rem;
  cursor: pointer;
}

.switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.switch-track {
  position: absolute;
  inset: 0;
  background: var(--line);
  border-radius: 999px;
  transition: background 0.2s;
}

.switch-track::after {
  content: "";
  position: absolute;
  top: 0.2rem;
  left: 0.2rem;
  width: 1.45rem;
  height: 1.45rem;
  background: var(--text);
  border-radius: 50%;
  transition: transform 0.2s;
}

.switch input:checked + .switch-track {
  background: var(--accent);
}

.switch input:checked + .switch-track::after {
  transform: translateX(1.4rem);
}

.switch input:focus-visible + .switch-track {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .account-row {
    grid-template-columns: 1fr auto;
  }

  .account-row input {
    grid-column: 1;
  }

  .account-row .remove-row {
    grid-column: 2;
    grid-row: 1;
  }
}

/* BUY PLAN window: manual payment details */
.pay-manual {
  display: grid;
  gap: 0.75rem;
  text-align: left;
}

.pay-manual:empty {
  display: none;
}

.pay-heading {
  margin: 0.5rem 0 0;
  font-weight: 800;
  text-align: center;
}

.pay-method {
  display: grid;
  gap: 0.5rem;
}

.pay-method-title {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pay-account {
  display: grid;
  gap: 0.15rem;
  padding: 0.7rem 0.85rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.pay-account-number {
  font-weight: 800;
  letter-spacing: 0.03em;
  user-select: all;
}

.pay-account-name {
  color: var(--muted);
  font-size: 0.85rem;
}

.pay-small {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.pay-small a {
  color: var(--accent);
}

.pay-whatsapp {
  margin: 0;
  color: #fff;
  background: #25d366;
  text-align: center;
  text-decoration: none;
}

.pay-note[hidden] {
  display: none;
}

/* ---------- Soft buttons (all pages) ---------- */
button,
.plan-button,
.admin-button,
.admin-submit,
.booking-join,
.pay-whatsapp,
.menu-item,
.day-button,
.sign-in {
  touch-action: manipulation;
}

button,
.plan-button,
.admin-button,
.admin-submit,
.booking-join,
.pay-whatsapp {
  transition:
    transform 140ms ease,
    background-color 140ms ease,
    border-color 140ms ease,
    color 140ms ease;
}

button:not(:disabled):not(.toggle-passcode):hover,
.plan-button:hover,
.admin-button:hover,
.admin-submit:hover,
.booking-join:hover,
.pay-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

button:not(:disabled):not(.toggle-passcode):active,
.plan-button:active,
.admin-button:active,
.admin-submit:active,
.booking-join:active,
.pay-whatsapp:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  transition-duration: 120ms;
}

/* A short press-in. Buttons stay visible; the old 2s pop hid them. */
.pop-in {
  animation: button-pop 160ms ease both;
  animation-delay: var(--pop-delay, 0s);
}

@keyframes button-pop {
  from {
    transform: scale(0.98);
  }
  to {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  button,
  .plan-button,
  .admin-button,
  .admin-submit,
  .booking-join,
  .pay-whatsapp {
    transition: none;
  }

  .pop-in {
    animation: none;
  }

  button:not(:disabled):not(.toggle-passcode):hover,
  .plan-button:hover,
  .admin-button:hover,
  .admin-submit:hover,
  .booking-join:hover,
  .pay-whatsapp:hover,
  button:not(:disabled):not(.toggle-passcode):active,
  .plan-button:active,
  .admin-button:active,
  .admin-submit:active,
  .booking-join:active,
  .pay-whatsapp:active {
    transform: none;
  }
}

/* ---------- Attention-grabbing buttons under the tables ---------- */
.table-cta {
  --glow: 61, 220, 132; /* green: free booking code */
  position: relative;
  overflow: hidden;
  padding-right: 2.75rem;
  padding-left: 2.75rem;
}

.table-cta:disabled {
  cursor: not-allowed;
  opacity: 0.72;
  filter: grayscale(0.4);
}

.table-cta.vip-plan {
  --glow: 230, 193, 90; /* gold */
}

.table-cta.vvip-plan {
  --glow: 180, 140, 242; /* purple */
}

/* Light streak sweeping across */
.table-cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}

/* Arrow nudging toward the tap */
.table-cta::before {
  content: "→";
  position: absolute;
  top: 50%;
  right: 1.1rem;
  margin-top: -0.6em;
  line-height: 1.2;
  font-weight: 800;
  pointer-events: none;
}

/* The buy buttons stay still; the arrow moves only when hovered. */
.table-cta::after {
  display: none;
}

.table-cta::before {
  transition: transform 0.2s ease;
}

.table-cta:hover::before,
.table-cta:focus-visible::before {
  transform: translateX(4px);
}

.table-cta:hover,
.table-cta:hover::after,
.table-cta:hover::before,
.table-cta:focus-visible,
.table-cta:focus-visible::after,
.table-cta:focus-visible::before {
  animation-play-state: paused;
}

@keyframes cta-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(var(--glow), 0.55), 0 4px 14px rgba(var(--glow), 0.25);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(var(--glow), 0), 0 6px 24px rgba(var(--glow), 0.45);
  }
}

@keyframes cta-shine {
  0%,
  55% {
    left: -60%;
  }
  85%,
  100% {
    left: 130%;
  }
}

@keyframes cta-nudge {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .table-cta:not(.pop-in),
  .table-cta:not(.pop-in)::after,
  .table-cta:not(.pop-in)::before {
    animation: none;
  }

  .table-cta::after {
    display: none;
  }
}

/* ---------- Testimonials carousel (under the VVIP table) ---------- */
.testimonials {
  margin-top: 1.75rem;
  padding: 1.5rem 1.25rem 1.1rem;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.testimonials[hidden] {
  display: none;
}

.testimonials-title {
  margin: 0 0 1rem;
  font-family: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.testimonial-viewport {
  min-height: 9.5rem;
}

.testimonial {
  margin: 0;
}

.testimonial.is-entering {
  animation: testimonial-in 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes testimonial-in {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.testimonial-stars {
  margin: 0;
  color: #e6c15a;
  font-size: 1.3rem;
  letter-spacing: 0.15em;
}

.testimonial-message {
  margin: 0.6rem auto 0;
  max-width: 34rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.6;
}

.testimonial-author {
  display: grid;
  gap: 0.1rem;
  margin-top: 0.85rem;
}

.testimonial-name {
  font-weight: 800;
}

.testimonial-location {
  color: var(--muted);
  font-size: 0.85rem;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1rem;
}

.testimonial-dots[hidden] {
  display: none;
}

.testimonial-dot {
  width: 0.6rem;
  height: 0.6rem;
  padding: 0;
  background: var(--line);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.testimonial-dot[aria-pressed="true"] {
  width: 1.6rem;
  background: #b48cf2;
}

/* The small dots skip the shared hover lift */
.testimonial-dot:hover {
  transform: none;
  box-shadow: none;
  background: #b48cf2;
}

@media (prefers-reduced-motion: reduce) {
  .testimonial.is-entering {
    animation: none;
  }
}

.testimonial-message-field {
  grid-column: 1 / -1;
}

.match-form textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  resize: vertical;
}

.match-form textarea:focus {
  border-color: var(--accent);
  outline: none;
}

/* ---------- Leave a review ---------- */
.testimonial-carousel[hidden],
.testimonials-empty[hidden],
.review-form[hidden],
.review-status[hidden] {
  display: none;
}

.testimonials-empty {
  margin: 0 0 0.5rem;
  color: var(--muted);
}

.review-open {
  margin-top: 1.1rem;
  color: var(--accent);
  border-color: rgba(61, 220, 132, 0.5);
}

.review-form {
  display: grid;
  gap: 0.45rem;
  max-width: 28rem;
  margin: 1rem auto 0;
  text-align: left;
}

.review-form label {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.review-form input:not([type="radio"]) {
  width: 100%;
  padding: 0.7rem 0.8rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
}

.review-form input:focus {
  border-color: var(--accent);
  outline: none;
}

/* Review writing area: lined note, separate from the name and location fields. */
.review-note {
  display: grid;
  gap: 0.15rem;
  margin-top: 0.85rem;
  padding: 0.9rem 1rem 0.55rem 1.05rem;
  background:
    linear-gradient(180deg, rgba(29, 111, 232, 0.1), transparent 2.6rem),
    var(--surface);
  border-radius: 1.35rem 1.35rem 0.45rem 1.35rem;
  box-shadow: inset 5px 0 0 var(--accent);
}

.review-note label {
  margin: 0;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.review-form .review-note textarea {
  width: 100%;
  min-height: 8.5rem;
  margin: 0;
  padding: 0.2rem 0 0.35rem;
  color: var(--text);
  background-color: transparent;
  background-image: linear-gradient(transparent calc(1.7rem - 1px), rgba(29, 111, 232, 0.2) calc(1.7rem - 1px));
  background-size: 100% 1.7rem;
  background-attachment: local;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font: inherit;
  font-size: 1.02rem;
  line-height: 1.7rem;
  resize: none;
}

.review-form .review-note textarea:focus {
  border: 0;
  outline: none;
  box-shadow: none;
}

.review-form .review-note textarea::placeholder {
  color: var(--muted);
}

.review-count {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-align: right;
}

html[data-theme="dark"] .review-note {
  background:
    linear-gradient(180deg, rgba(59, 130, 246, 0.16), transparent 2.6rem),
    var(--surface);
}

html[data-theme="dark"] .review-form .review-note textarea {
  background-image: linear-gradient(transparent calc(1.7rem - 1px), rgba(142, 183, 255, 0.28) calc(1.7rem - 1px));
}

.review-form .plan-button {
  margin-top: 0.75rem;
}

.review-status {
  margin: 0.6rem 0 0;
  color: #e6c15a;
  font-size: 0.9rem;
  text-align: center;
}

/* Stars light up from the left as you hover or choose (inputs are in reverse order). */
.star-picker {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.star-picker legend {
  width: 100%;
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.star-picker input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.star-picker label {
  margin: 0;
  color: var(--line);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
}

.star-picker input:checked ~ label,
.star-picker label:hover,
.star-picker label:hover ~ label {
  color: #e6c15a;
}

.star-picker label:hover {
  transform: scale(1.15);
}

.star-picker input:focus-visible + label {
  outline: 2px solid #e6c15a;
  outline-offset: 2px;
  border-radius: 4px;
}

.subsection-title {
  margin: 1.5rem 0 0.35rem;
  font-size: 1rem;
}

.row-action.accept {
  color: var(--accent);
  border-color: rgba(61, 220, 132, 0.5);
}

.row-action.accept:hover,
.row-action.accept:focus-visible {
  color: var(--accent-ink);
  background: var(--accent);
}

/* ---------- Back button (all pages) ---------- */
.back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.65rem 1.25rem 0.65rem 1rem;
  color: var(--text);
  background: rgba(61, 220, 132, 0.08);
  border: 1px solid rgba(61, 220, 132, 0.45);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease;
}

.admin-card .back-button {
  color: var(--text);
}

.back-arrow {
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: 50%;
  font-size: 0.95rem;
  line-height: 1;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.back-button:hover,
.back-button:focus-visible {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 8px 22px rgba(61, 220, 132, 0.25);
  transform: translateY(-2px);
  outline: none;
}

.back-button:hover .back-arrow,
.back-button:focus-visible .back-arrow {
  color: var(--accent);
  background: var(--accent-ink);
  transform: translateX(-4px);
}

.back-button:active {
  transform: scale(0.97);
}

.back-button[hidden] {
  display: none;
}

/* Sign-in and admin access: a quiet text link, not a button. */
.admin-card > .access-back {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 0.65rem 0;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  box-shadow: none;
  transform: none;
  transition: color 0.15s ease;
}

.admin-card > .access-back::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M14.7 5.3a1 1 0 0 1 0 1.4L10.4 11H20a1 1 0 1 1 0 2H10.4l4.3 4.3a1 1 0 0 1-1.4 1.4l-6-6a1 1 0 0 1 0-1.4l6-6a1 1 0 0 1 1.4 0z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M14.7 5.3a1 1 0 0 1 0 1.4L10.4 11H20a1 1 0 1 1 0 2H10.4l4.3 4.3a1 1 0 0 1-1.4 1.4l-6-6a1 1 0 0 1 0-1.4l6-6a1 1 0 0 1 1.4 0z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.admin-card > .access-back:hover,
.admin-card > .access-back:focus-visible {
  color: var(--accent);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  transform: none;
  outline: none;
}

.admin-card > .access-back:active {
  transform: none;
  background: transparent;
  color: var(--accent);
}

/* Control Room header version sits inline, no top margin */
.control-back {
  margin-top: 0;
}

@media (prefers-reduced-motion: reduce) {
  .back-button,
  .back-arrow {
    transition-duration: 0.01s;
  }

  .back-button:hover,
  .back-button:hover .back-arrow {
    transform: none;
  }
}

/* ---------- Menu: Calendar and Telegram ---------- */
.site-menu .menu-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.7rem 0.85rem;
  color: var(--text);
  text-align: left;
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  cursor: pointer;
}

.site-menu .menu-item:hover,
.site-menu .menu-item:focus-visible {
  border-color: var(--line);
  outline: none;
  transform: none;
  box-shadow: none;
}

.menu-icon {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  color: var(--accent);
}

.day-custom[hidden] {
  display: none;
}

.icon-vip {
  color: #e6c15a;
}

.icon-vvip {
  color: #b48cf2;
}

/* Menu entries: clear, friendly text */
.site-menu .menu-item {
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 400;
}

.site-menu .menu-item .menu-icon {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.site-menu .menu-item:hover .menu-icon,
.site-menu .menu-item:focus-visible .menu-icon {
  transform: scale(1.18);
}

/* ---------- Smooth menu: panel slides, entries glide in, button morphs ---------- */
/* The panel stays laid out while hidden so it can slide instead of popping. */
.site-menu,
.site-menu[hidden] {
  display: flex;
}

.site-menu {
  transform: translateX(0);
  visibility: visible;
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0s;
}

/* Pushed past its own shadow so no edge peeks out */
.site-menu[hidden] {
  transform: translateX(calc(-100% - 48px));
  visibility: hidden;
  transition:
    transform 0.3s cubic-bezier(0.55, 0, 0.75, 0.2),
    visibility 0s linear 0.3s;
}

/* Entries fade and glide in one after another when the menu opens */
.site-menu > * {
  opacity: 1;
  translate: 0 0;
  transition:
    opacity 0.32s ease calc(0.08s + var(--i, 0) * 0.04s),
    translate 0.4s cubic-bezier(0.22, 1, 0.36, 1) calc(0.08s + var(--i, 0) * 0.04s);
}

.site-menu[hidden] > * {
  opacity: 0;
  translate: -16px 0;
  transition: opacity 0.15s ease, translate 0.15s ease;
}

.site-menu > :nth-child(2) { --i: 1; }
.site-menu > :nth-child(3) { --i: 2; }
.site-menu > :nth-child(4) { --i: 3; }
.site-menu > :nth-child(5) { --i: 4; }
.site-menu > :nth-child(6) { --i: 5; }
.site-menu > :nth-child(7) { --i: 6; }
.site-menu > :nth-child(8) { --i: 7; }
.site-menu > :nth-child(n + 9) { --i: 8; }

/* Entry hover: soft tint and a small nudge to the right */
.site-menu .menu-item {
  transition:
    opacity 0.32s ease calc(0.08s + var(--i, 0) * 0.04s),
    translate 0.4s cubic-bezier(0.22, 1, 0.36, 1) calc(0.08s + var(--i, 0) * 0.04s),
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    padding-left 0.25s ease;
}

.site-menu .menu-item:hover,
.site-menu .menu-item:focus-visible {
  padding-left: 1.1rem;
  background: rgba(255, 255, 255, 0.05);
}

.site-menu .menu-item:active {
  background: rgba(255, 255, 255, 0.09);
}

/* Menu button: soft hover, gentle press, bars morph into an X */
.menu-toggle {
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease,
    transform 0.15s ease;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.05);
}

.menu-toggle:active {
  transform: scale(0.92);
}

/* Closing: straighten first, then spread apart */
.menu-bars {
  transition: background-color 0.1s ease 0.2s;
}

.menu-bars::before,
.menu-bars::after {
  transition:
    top 0.2s ease 0.2s,
    transform 0.2s ease;
}

/* Opening: come together first, then turn */
.menu-toggle[aria-expanded="true"] .menu-bars {
  transition: background-color 0.1s ease;
}

.menu-toggle[aria-expanded="true"] .menu-bars::before,
.menu-toggle[aria-expanded="true"] .menu-bars::after {
  transition:
    top 0.2s ease,
    transform 0.2s ease 0.2s;
}

@media (prefers-reduced-motion: reduce) {
  .site-menu,
  .site-menu[hidden],
  .site-menu > *,
  .site-menu[hidden] > *,
  .site-menu .menu-item,
  .menu-toggle,
  .menu-bars,
  .menu-bars::before,
  .menu-bars::after,
  .menu-toggle[aria-expanded="true"] .menu-bars,
  .menu-toggle[aria-expanded="true"] .menu-bars::before,
  .menu-toggle[aria-expanded="true"] .menu-bars::after {
    transition: none;
  }
}

/* Home page tables: headings and team names in the middle */
#free th,
#free td,
#vip th,
#vip td,
#boom th,
#boom td,
#vvip th,
#vvip td {
  text-align: center;
}

.migrate-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  background: rgba(230, 193, 90, 0.1);
  border: 1px solid rgba(230, 193, 90, 0.45);
  border-radius: 14px;
}

.migrate-banner[hidden] {
  display: none;
}

.migrate-banner p {
  margin: 0;
  flex: 1 1 18rem;
  line-height: 1.5;
}

/* ---------- Control Room header ---------- */
.control-bar .control-title {
  font-family: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--text);
}

.control-title span {
  color: var(--accent);
}

/* Smaller "View site" and "Sign out" buttons */
.control-small {
  padding: 0.35rem 0.8rem;
  font-size: 0.8rem;
}

.control-small .back-arrow {
  width: 1.25rem;
  height: 1.25rem;
  font-size: 0.8rem;
}

.control-actions {
  gap: 0.5rem;
}

.overview-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

/* =====================================================================
   App-like Control Room & admin pages (iPhone, Android and desktop)
   ===================================================================== */

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

button,
a,
input,
select,
textarea,
label {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* iPhone zooms in on inputs smaller than 16px; keep them at 16px on phones. */
@media (max-width: 760px) {
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Comfortable finger-sized targets on touch screens */
@media (pointer: coarse) {
  .control-room .control-primary,
  .control-room .outline-button,
  .control-room .row-action,
  .control-room .day-button,
  .control-room .control-sign-out,
  .admin-submit {
    min-height: 44px;
  }

  .control-room .round-button {
    width: 44px;
    height: 44px;
  }
}

/* Gateway rates: never wider than a small phone */
.rates-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}

/* ---------- Control Room shell ---------- */
html:has(body.control-room) {
  height: 100%;
  overflow: hidden;
}

.control-room {
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  overscroll-behavior: none;
}

.control-room .control-main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: min(1100px, 100%);
  padding-top: 0;
  padding-bottom: 0;
  padding-right: max(1rem, env(safe-area-inset-right));
  padding-left: max(1rem, env(safe-area-inset-left));
}

/* Top bar stays put. The open section is the only thing that moves. */
.control-room .control-bar {
  position: static;
  flex-shrink: 0;
  z-index: 20;
  margin: 0 -1rem;
  padding: calc(0.75rem + env(safe-area-inset-top)) 1rem 0.75rem;
  background: rgba(12, 20, 36, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.control-room .migrate-banner,
.control-room .control-day {
  flex-shrink: 0;
}

.control-stage {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding-bottom: 1.25rem;
}

.control-panel[hidden],
.control-room .control-day[hidden] {
  display: none;
}

/* ---------- Section tabs ---------- */
.member-notice-dialog {
  width: min(32rem, calc(100% - 2rem));
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #0c1424;
  color: #fff;
}

.member-notice-dialog::backdrop {
  background: rgba(0, 0, 0, 0.75);
}

.member-notice-error {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem;
  background: #0c1424;
  color: #fff;
  border: 1px solid #e8a34a;
}

.member-notice-copy,
.managed-users-table td:nth-child(4) {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.warning-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.warning-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: #0c1424;
  color: inherit;
  font: inherit;
  resize: vertical;
}

.app-nav {
  position: fixed;
  z-index: 40;
  display: flex;
  background: rgba(15, 24, 41, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.app-nav-brand {
  display: none;
  margin: 0 0 1.25rem;
  padding: 0 0.75rem;
  font-family: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  font-size: 1.9rem;
  letter-spacing: 0.08em;
}

.app-nav-brand span {
  color: var(--accent);
}

.app-nav-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
  border-radius: 12px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.app-nav-link svg {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.app-nav-link:hover,
.app-nav-link:focus-visible {
  color: var(--text);
  outline: none;
}

.app-nav-link.is-active {
  color: var(--accent);
}

.app-nav-link.is-active svg {
  transform: scale(1.12);
}

/* Phones and tablets: bottom tab bar */
@media (max-width: 1023px) {
  .app-nav {
    right: 0;
    bottom: 0;
    left: 0;
    justify-content: space-around;
    padding: 0.35rem max(0.5rem, env(safe-area-inset-right)) calc(0.35rem + env(safe-area-inset-bottom)) max(0.5rem, env(safe-area-inset-left));
    border-top: 1px solid var(--line);
  }

  .app-nav-link {
    flex: 1;
    flex-direction: column;
    gap: 0.2rem;
    max-width: 6rem;
    padding: 0.4rem 0.25rem;
    font-size: 0.68rem;
    letter-spacing: 0.02em;
  }

  .app-nav-link.is-active {
    background: rgba(61, 220, 132, 0.12);
  }

  .app-nav-link span {
    white-space: nowrap;
  }

  /* Room for the tab bar under the open section */
  .control-stage {
    padding-bottom: calc(5.25rem + env(safe-area-inset-bottom));
  }
}

/* Desktop: sidebar */
@media (min-width: 1024px) {
  .app-nav {
    top: 0;
    bottom: 0;
    left: 0;
    flex-direction: column;
    gap: 0.25rem;
    width: 220px;
    padding: 1.5rem 0.85rem;
    border-right: 1px solid var(--line);
  }

  .app-nav-brand {
    display: block;
  }

  .app-nav-link {
    padding: 0.75rem 0.85rem;
    font-size: 0.95rem;
  }

  .app-nav-link:hover {
    background: rgba(255, 255, 255, 0.04);
  }

  .app-nav-link.is-active {
    background: rgba(61, 220, 132, 0.12);
  }

  .control-room {
    padding-left: 220px;
  }
}

/* ---------- Phones: tables become cards ---------- */
@media (max-width: 640px) {
  .control-room .admin-table,
  .control-room .slip-table {
    min-width: 0;
    background: transparent;
    border: 0;
  }

  .control-room .admin-table thead,
  .control-room .slip-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .control-room .admin-table tbody,
  .control-room .slip-table tbody {
    display: grid;
    gap: 0.75rem;
  }

  .control-room .admin-table tr,
  .control-room .slip-table tr {
    display: grid;
    gap: 0.35rem;
    padding: 0.85rem 1rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
  }

  .control-room .admin-table td,
  .control-room .slip-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.2rem 0;
    text-align: right;
    border: 0;
    overflow-wrap: anywhere;
  }

  .control-room .admin-table td::before,
  .control-room .slip-table td::before {
    content: attr(data-label);
    flex-shrink: 0;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-align: left;
    text-transform: uppercase;
  }

  /* Cells without a heading (actions) fill the card width */
  .control-room .admin-table td[data-label=""],
  .control-room .admin-table td.row-actions,
  .control-room .slip-table td[data-label=""] {
    justify-content: flex-end;
    padding-top: 0.5rem;
    border-top: 1px solid var(--line);
  }

  .control-room .admin-table td[data-label=""]::before,
  .control-room .slip-table td[data-label=""]::before {
    content: none;
  }

  .control-room .slip-table td {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    gap: 0.3rem;
  }

  .control-room .table-wrap {
    overflow: visible;
  }

  /* Header: compact single row, like an app bar */
  .control-room .control-bar {
    gap: 0.5rem;
    padding-bottom: 0.6rem;
  }

  .control-room .control-bar .control-title {
    font-size: 1.7rem;
    letter-spacing: 0.05em;
    white-space: nowrap;
  }

  .control-room .control-actions {
    flex-shrink: 0;
  }

  .control-room .control-small {
    min-height: 36px;
    padding: 0.3rem 0.65rem;
  }

  /* Booking code: full-width box, buttons underneath */
  .control-room #booking-form {
    grid-template-columns: 1fr;
  }

  .control-room .gateway-card {
    padding: 1.25rem 1rem;
    border-radius: 18px;
  }

  .control-room .gateway-head h2 {
    font-size: 1.5rem;
  }

  .control-room .control-day .match-days {
    max-width: none;
  }

  .control-room .form-actions {
    flex-wrap: wrap;
  }

  .control-room .form-actions > * {
    flex: 1 1 auto;
  }
}

/* ---------- Admin passcode page: fits notched phones ---------- */
.admin-page {
  min-height: 100dvh;
  padding: max(1.5rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1.5rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}

@media (max-width: 420px) {
  .admin-card {
    padding: 1.75rem 1.25rem;
    border-radius: 20px;
  }

  .admin-card h1 {
    font-size: 1.6rem;
  }
}

/* ---------- Results calendar ---------- */
.calendar-dialog {
  width: min(400px, calc(100vw - 1.5rem));
  padding: 1.25rem 1rem 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.calendar-dialog::backdrop {
  background: rgba(4, 8, 16, 0.75);
  backdrop-filter: blur(4px);
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.calendar-title {
  margin: 0;
  font-family: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.calendar-nav {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.calendar-nav:hover:not(:disabled),
.calendar-nav:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  outline: none;
}

.calendar-nav:disabled {
  opacity: 0.3;
  cursor: default;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.3rem;
}

.calendar-weekdays span {
  padding-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.calendar-cell {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 0.1rem;
  aspect-ratio: 1 / 1.1;
  min-width: 0;
  padding: 0.3rem 0.1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  cursor: pointer;
}

.calendar-cell.is-blank {
  background: transparent;
  cursor: default;
}

/* Calendar cells keep still on hover (no shared button lift) */
.calendar-cell:hover:not(:disabled) {
  transform: none;
  box-shadow: none;
  border-color: var(--accent);
}

.calendar-cell:disabled {
  opacity: 0.3;
  cursor: default;
}

.calendar-cell.is-today {
  border-color: rgba(61, 220, 132, 0.6);
}

.calendar-cell.is-selected {
  color: var(--accent-ink);
  background: var(--accent);
}

.calendar-day {
  font-size: 0.95rem;
  font-weight: 700;
}

.calendar-score {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.dot {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
}

.dot.won {
  background: #16a34a;
}

.dot.lost {
  background: #e5484d;
}

.dot.pending {
  background: var(--muted);
}

.calendar-cell.is-selected .dot {
  box-shadow: 0 0 0 2px var(--accent-ink);
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1rem;
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.calendar-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 1rem;
}

.calendar-actions button {
  justify-content: center;
}

/* ---------- Recovery ticket ---------- */
.icon-recovery {
  color: #ff8a65;
}

.recovery-dialog {
  width: min(420px, calc(100vw - 1.5rem));
  padding: 1.5rem 1.25rem 1.1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid rgba(255, 138, 101, 0.4);
  border-radius: 22px;
}

.recovery-dialog::backdrop {
  background: rgba(4, 8, 16, 0.75);
  backdrop-filter: blur(4px);
}

.recovery-title {
  margin: 0;
  font-family: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-align: center;
}

.recovery-title span {
  color: #ff8a65;
}

.recovery-intro {
  margin: 0.5rem 0 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  text-align: center;
}

.recovery-form {
  display: grid;
  gap: 0.45rem;
}

.recovery-form label {
  color: var(--muted);
  font-size: 0.85rem;
}

.recovery-form input {
  width: 100%;
  padding: 0.8rem 0.9rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
}

.recovery-form input:focus {
  border-color: #ff8a65;
  outline: none;
}

.recovery-submit {
  margin-top: 0.5rem;
  color: #2b0f05;
  background: #ff8a65;
}

.recovery-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.recovery-result {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.recovery-result[hidden] {
  display: none;
}

.recovery-result[data-status="eligible"] {
  border-color: var(--accent);
}

.recovery-result[data-status="won"] {
  border-color: #e6c15a;
}

.recovery-result[data-status="error"],
.recovery-result[data-status="expired"],
.recovery-result[data-status="none"] {
  border-color: #ff6b6b;
}

.recovery-message {
  margin: 0;
  line-height: 1.5;
}

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

.recovery-tips:empty {
  display: none;
}

.recovery-tips li {
  display: grid;
  gap: 0.15rem;
  padding: 0.6rem 0.75rem;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
}

.recovery-teams {
  font-weight: 800;
}

.recovery-detail {
  color: var(--muted);
  font-size: 0.85rem;
}

.recovery-code {
  margin-top: 1rem;
}

.recovery-close {
  width: 100%;
  margin-top: 1rem;
}

/* Reviews sit in their own block after all the tables; the divider above spaces it. */
.testimonials-block {
  margin-top: 0;
}

/* ---------- Control Room: Payment Gateway matches the other sections ---------- */
.control-room .gateway-head h2 {
  font-size: 1.1rem;
  font-weight: 700;
}

.control-room .gateway-card {
  padding: 1.1rem 1rem;
  border-radius: 14px;
}

.control-room .gateway-card h3 {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 700;
}

.control-room .rate-field label,
.control-room .gateway-field label {
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
}

.control-room .rate-row input,
.control-room .gateway-field input,
.control-room .account-row input {
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
}

.control-room .gateway-save {
  margin-top: 1.1rem;
  padding: 0.65rem 1.1rem;
  letter-spacing: normal;
}

.control-room .outline-button {
  font-weight: 700;
}


/* ---------- Control Room: SportyBet booking code heading ---------- */
.control-section h2.booking-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.75rem;
  margin-bottom: 1rem;
}

.booking-heading-icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--accent);
  background: rgba(61, 220, 132, 0.12);
  border: 1px solid rgba(61, 220, 132, 0.4);
  border-radius: 12px;
  box-shadow: 0 0 18px rgba(61, 220, 132, 0.15);
}

.booking-heading-icon svg {
  width: 1.4rem;
  height: 1.4rem;
  transform: rotate(-12deg);
}

.booking-heading-text {
  font-family: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--text);
}

.booking-heading-text span {
  color: var(--accent);
}

.booking-heading-tag {
  padding: 0.25rem 0.65rem;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Control Room: brand block at the top left ---------- */
.control-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

/* Crown mark in the same 3rem tile. */
.control-logo {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 3rem;
  height: 3rem;
  overflow: hidden;
  border-radius: 14px;
  line-height: 0;
}

.control-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.control-brand-text {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.control-bar .control-brand .control-title {
  margin: 0;
}

/* "ROOM" shimmers slowly through the blend */
.control-title span {
  animation: none;
}

@keyframes control-shimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.control-tagline {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.live-dot {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6);
  animation: live-pulse 2s ease-out infinite;
}

@keyframes live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6);
  }
  70%,
  100% {
    box-shadow: 0 0 0 7px rgba(61, 220, 132, 0);
  }
}

/* Phones: smaller tile, title only, so the buttons still fit */
@media (max-width: 600px) {
  .control-brand {
    gap: 0.55rem;
  }

  .control-logo {
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 11px;
    font-size: 1.2rem;
  }

  .control-tagline {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .control-title span,
  .live-dot {
    animation: none;
  }
}

/* Refresh: icon and label side by side. */
.control-refresh {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.control-refresh svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* Phones: one app-bar row. Logo and title on the left; the theme switch,
   Refresh (icon only) and Sign out on the right, all the same height. */
@media (max-width: 600px) {
  .control-room .control-bar {
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  .control-room .control-brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .control-room .control-bar .control-title {
    font-size: 1.45rem;
    letter-spacing: 0.04em;
  }

  .control-room .control-actions {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 0.4rem;
  }

  .control-room .control-actions .theme-toggle,
  .control-room .control-actions .control-refresh {
    width: 2.25rem;
    height: 2.25rem;
    min-height: 2.25rem;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .control-room .control-actions .control-small {
    min-height: 2.25rem;
    white-space: nowrap;
  }

  .control-refresh-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* Very narrow phones: a smaller title so the buttons never squeeze it. */
@media (max-width: 360px) {
  .control-room .control-bar .control-title {
    font-size: 1.2rem;
  }

  .control-room .control-logo {
    width: 2rem;
    height: 2rem;
    font-size: 1.05rem;
  }
}

/* ---------- Control Room: Members table (stays a table on phones; scrolls sideways) ---------- */
.members-table {
  min-width: 640px;
  /* Visible, so the pinned name column can stick inside the scrolling wrapper */
  overflow: visible;
}

.members-table th,
.members-table td {
  padding: 0.75rem 0.9rem;
  white-space: nowrap;
}

.members-table th {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Solid colours, so text scrolling under the pinned name doesn't show through */
.members-table tbody tr:hover td {
  background: #182b38;
}

/* The name stays in view while the rest scrolls */
.members-table th:first-child,
.members-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  font-weight: 700;
}

.members-table td:first-child {
  background: var(--surface);
  box-shadow: 1px 0 0 var(--line);
}

.members-table tbody tr:hover td:first-child {
  background: #182b38;
}

.members-table td:nth-child(2) {
  color: var(--muted);
}

.plan-pill {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.paid-amount {
  display: block;
  font-variant-numeric: tabular-nums;
}

.paid-amount + .paid-amount {
  margin-top: 0.2rem;
}

.plan-pill.plan-free {
  color: var(--accent);
}

.plan-pill.plan-vip {
  color: #e6c15a;
  background: rgba(230, 193, 90, 0.12);
}

.plan-pill.plan-boom {
  color: #ffb020;
  background: rgba(255, 176, 32, 0.14);
}

.plan-pill.plan-vvip {
  color: #b48cf2;
  background: rgba(180, 140, 242, 0.14);
}

/* Rounded frame sits on the scrolling wrapper instead of the table */
.control-room .table-wrap:has(> .members-table) {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.members-table {
  border: 0;
  border-radius: 0;
}

/* ---------- Responsive touch-ups (iPhone, Android, desktop) ---------- */
/* Wide screens: room for the member's full name in the header */
@media (min-width: 900px) {
  .user-name {
    max-width: 18rem;
  }
}

/* Small Android phones: table buttons stay on one line */
@media (max-width: 380px) {
  .table-cta {
    padding-right: 2.25rem;
    padding-left: 1.25rem;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
  }
}

/* Members table on phones: one card per account, with the amount they paid */
@media (max-width: 640px) {
  .control-room .table-wrap:has(> .members-table) {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .control-room .members-table {
    min-width: 0;
    background: transparent;
    border: 0;
  }

  .control-room .members-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .control-room .members-table tbody {
    display: grid;
    gap: 0.75rem;
  }

  .control-room .members-table tr {
    display: grid;
    gap: 0.35rem;
    padding: 0.85rem 1rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
  }

  .control-room .members-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    max-width: none;
    padding: 0.2rem 0;
    overflow: visible;
    white-space: normal;
    text-overflow: clip;
    background: transparent;
    box-shadow: none;
    position: static;
    border: 0;
  }

  .control-room .members-table td::before {
    content: attr(data-label);
    flex-shrink: 0;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .control-room .members-table td:has(.paid-amount) {
    flex-direction: column;
    align-items: stretch;
  }

  .control-room .members-table .paid-amount {
    text-align: right;
  }
}

/* Members: receipts sent from the buy-plan page */
.payment-alert:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--accent);
  border-radius: 14px;
  background: var(--surface);
}

.payment-alert p {
  flex: 1 1 240px;
  margin: 0;
  overflow-wrap: anywhere;
}

.payment-senders {
  display: none;
}

@media (min-width: 1024px) {
  .payment-senders:not([hidden]) {
    display: block;
    margin-bottom: 1rem;
  }

  .payment-senders h3 {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
  }

  .payment-senders ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .payment-senders li {
    padding: 0.4rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    overflow-wrap: anywhere;
  }
}

#payment-table-wrap {
  margin-top: 1.25rem;
}

#payment-table-wrap .admin-table {
  min-width: 0;
  table-layout: fixed;
}

#payment-table-wrap th,
#payment-table-wrap td {
  padding: 0.65rem 0.45rem;
}

#payment-table-wrap td:nth-child(2) {
  overflow-wrap: anywhere;
}

#payment-table-wrap th:nth-child(1),
#payment-table-wrap td:nth-child(1) {
  width: 14%;
}

#payment-table-wrap th:nth-child(2),
#payment-table-wrap td:nth-child(2) {
  width: 16%;
}

#payment-table-wrap th:nth-child(3),
#payment-table-wrap td:nth-child(3) {
  width: 24%;
}

#payment-table-wrap th:nth-child(4),
#payment-table-wrap td:nth-child(4) {
  width: 10%;
}

#payment-table-wrap th:nth-child(5),
#payment-table-wrap td:nth-child(5) {
  width: 14%;
}

#payment-table-wrap th:nth-child(6),
#payment-table-wrap td:nth-child(6) {
  width: 24%;
}

.payment-status {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.payment-status[data-status="confirmed"] {
  color: var(--accent);
}

.payment-status[data-status="rejected"] {
  color: #ff8d8d;
}

@media (max-width: 640px) {
  #payment-table-wrap .admin-table {
    table-layout: auto;
  }

  #payment-table-wrap th:nth-child(n),
  #payment-table-wrap td:nth-child(n) {
    width: auto;
  }

  #payment-table-wrap td.row-actions {
    flex-direction: column;
    align-items: stretch;
  }

  #payment-table-wrap td.row-actions::before {
    content: none;
  }
}

#payment-table-wrap .row-action {
  display: block;
  width: 100%;
  margin: 0.2rem 0;
  padding: 0.3rem 0.4rem;
  font-size: 0.75rem;
  text-align: center;
  white-space: nowrap;
}

/* ---------- Buy plan page ---------- */
.pay-main {
  width: min(440px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 0.25rem 0 2.5rem;
}

.pay-back {
  margin-top: 1rem;
}

.pay-loading,
.pay-empty {
  margin: 1.5rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.pay-sheet {
  margin-top: 1rem;
  padding: 1.35rem 1.05rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.pay-sheet h1 {
  margin: 0 0 1.05rem;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
}

.fee-intro {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
}

.fee-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  color: var(--accent);
  border: 1px solid rgba(61, 220, 132, 0.45);
  border-radius: 14px;
}

.fee-icon svg,
.fee-shield svg,
.fee-copy-btn svg {
  width: 1.35rem;
  height: 1.35rem;
}

.fee-kicker {
  margin: 0;
  font-weight: 700;
}

.fee-copy {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.fee-amount {
  position: relative;
  margin: 1rem 0;
  padding: 0.8rem 3rem 0.9rem 1rem;
  border: 1px solid rgba(61, 220, 132, 0.45);
  border-radius: 18px;
}

.fee-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fee-sum {
  margin: 0.15rem 0 0;
  color: var(--accent);
  font-size: 2rem;
  font-weight: 800;
}

.fee-shield {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  color: var(--accent);
}

.fee-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
}

.fee-picker[hidden] {
  display: none;
}

.fee-pick {
  padding: 0.35rem 0.7rem;
  color: var(--accent);
  background: transparent;
  border: 1px solid rgba(61, 220, 132, 0.4);
  border-radius: 999px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
}

.fee-pick[aria-pressed="true"] {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}

.fee-details {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.fee-details > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border-top: 1px solid var(--line);
}

.fee-details > div:first-child {
  border-top: 0;
}

.fee-details dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fee-details dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.fee-sendto {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

#pay-send-row {
  align-items: flex-start;
}

#pay-number {
  overflow-wrap: anywhere;
  word-break: break-all;
  font-size: 0.82rem;
  line-height: 1.35;
}

.fee-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0.28rem 0.55rem;
  color: var(--accent);
  background: transparent;
  border: 1px solid rgba(61, 220, 132, 0.7);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fee-copy-btn svg {
  width: 0.9rem;
  height: 0.9rem;
}

.fee-bank-note {
  margin: 0.9rem 0 0;
  padding: 0.85rem 0.95rem;
  color: #f3d48a;
  background: rgba(230, 193, 90, 0.12);
  border: 1px solid rgba(230, 193, 90, 0.55);
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
}

.fee-bank-note[hidden] {
  display: none;
}

.fee-bank-note strong {
  color: #ffe08a;
}

.fee-steps {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}

.fee-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.4;
}

.fee-steps strong {
  color: var(--accent);
}

.fee-num {
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  color: var(--accent);
  border: 1px solid rgba(61, 220, 132, 0.7);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 800;
}

.fee-upload {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px dashed rgba(61, 220, 132, 0.7);
  border-radius: 16px;
  cursor: pointer;
}

.fee-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.fee-upload strong {
  display: block;
  color: var(--accent);
  font-size: 0.98rem;
}

.fee-upload small {
  color: var(--muted);
}

.fee-sender-name {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.85rem;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
}

.fee-sender-name input {
  width: 100%;
  min-height: 2.8rem;
  padding: 0.7rem 0.8rem;
  color: var(--text);
  background: rgba(12, 20, 36, 0.7);
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
}

.fee-sender-name small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 400;
}

.fee-arrow {
  margin-left: auto;
  color: var(--accent);
  font-size: 1.25rem;
}

.fee-error {
  min-height: 1.2rem;
  margin: 0.55rem 0 0;
  color: #ff8d8d;
  font-size: 0.85rem;
}

.fee-send {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding: 0.95rem 1rem;
  color: var(--accent-ink);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 16px;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.fee-send:disabled {
  opacity: 0.6;
  cursor: progress;
}

.fee-done {
  margin: 0.9rem 0 0;
  padding: 0.9rem 1rem;
  color: var(--text);
  background: rgba(61, 220, 132, 0.1);
  border: 1px solid rgba(61, 220, 132, 0.45);
  border-radius: 16px;
  line-height: 1.45;
}

.fee-done[hidden],
.pay-sheet[hidden],
.pay-empty[hidden],
.pay-loading[hidden] {
  display: none;
}

/* ---------- Accrue card on the pay page ---------- */
.online-badge {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 0.35rem;
  margin: 0 auto 0.7rem;
  padding: 0.3rem 0.75rem;
  color: var(--accent);
  background: rgba(61, 220, 132, 0.1);
  border: 1px solid rgba(61, 220, 132, 0.45);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.online-badge svg {
  width: 0.95rem;
  height: 0.95rem;
}

.fee-details > div[hidden] {
  display: none;
}

.online-secure {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.online-secure svg {
  width: 0.95rem;
  height: 0.95rem;
}

/* "or pay manually" between the Accrue card and the manual one */
.pay-or {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.4rem 0 0.2rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pay-or::before,
.pay-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.pay-or[hidden] {
  display: none;
}

/* Pay page: choose Accrue or manual, then the network */
.pay-change {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.3rem 0;
  color: var(--accent);
  background: none;
  border: 0;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.pay-change[hidden],
.pay-choose[hidden] {
  display: none;
}

.pay-option {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.95rem 1rem;
  color: var(--text);
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  font: inherit;
  cursor: pointer;
}

.pay-option:hover,
.pay-option:focus-visible {
  border-color: var(--accent);
}

.pay-option-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pay-option-price {
  color: var(--accent);
  font-weight: 800;
}

.pay-option-tag {
  align-self: flex-start;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.pay-option-tag.is-instant {
  color: var(--accent);
  border: 1px solid rgba(61, 220, 132, 0.45);
}

.pay-option-tag.is-manual {
  color: #f0b429;
  border: 1px solid rgba(240, 180, 41, 0.5);
}

.pay-option-copy {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

.pay-network-option {
  font-weight: 800;
  font-size: 1rem;
}

#pay-networks-copy.is-error {
  color: #ff8a80;
  font-weight: 700;
}

html[data-theme="light"] #pay-networks-copy.is-error {
  color: #c62828;
}

.pay-mtn-note {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--accent);
  border-radius: 12px;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.45;
}

.pay-mtn-note[hidden] {
  display: none;
}

/* ---------- Payment result page ---------- */
.result-sheet {
  text-align: center;
}

.result-icon {
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0.4rem auto 1rem;
  border-radius: 50%;
}

.result-icon .fee-loader {
  margin: 0;
}

.result-mark {
  display: none;
  width: 2.2rem;
  height: 2.2rem;
}

.result-sheet:not([data-state="checking"]) .result-spinner {
  display: none;
}

.result-sheet[data-state="success"] .result-icon {
  color: var(--accent);
  background: rgba(61, 220, 132, 0.12);
  border: 2px solid rgba(61, 220, 132, 0.6);
}

.result-sheet[data-state="failed"] .result-icon,
.result-sheet[data-state="error"] .result-icon {
  color: #ff8d8d;
  background: rgba(255, 141, 141, 0.1);
  border: 2px solid rgba(255, 141, 141, 0.55);
}

.result-sheet[data-state="slow"] .result-icon {
  color: #ffd166;
  background: rgba(255, 209, 102, 0.1);
  border: 2px solid rgba(255, 209, 102, 0.55);
}

.result-sheet[data-state="success"] .result-mark-success,
.result-sheet[data-state="failed"] .result-mark-failed,
.result-sheet[data-state="error"] .result-mark-failed,
.result-sheet[data-state="slow"] .result-mark-slow {
  display: block;
}

.result-sheet h1 {
  margin-bottom: 0.5rem;
}

.result-text {
  margin: 0 auto;
  max-width: 34ch;
}

.result-details {
  margin-top: 1.25rem;
  text-align: left;
}

.result-details[hidden] {
  display: none;
}

.result-reference {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.78rem;
}

.result-sheet .fee-send {
  margin-top: 1.25rem;
  text-decoration: none;
}

.result-sheet .fee-send[hidden],
.result-secondary[hidden] {
  display: none;
}

.result-secondary {
  display: block;
  margin-top: 0.9rem;
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 380px) {
  .fee-sum {
    font-size: 1.65rem;
  }

  .fee-details > div {
    align-items: flex-start;
  }

  .fee-sendto {
    flex-wrap: wrap;
  }
}

/* Front-page chat. */
.help-widget {
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 36;
  display: grid;
  justify-items: end;
  gap: 0.65rem;
}

/* Support button: a compact round chat button with a small online dot.
   Computers have room for a "Chat with us" label beside the icon. */
.help-open[hidden] {
  display: none;
}

.help-open {
  /* Dragged with a finger, so the page must not scroll under it. */
  touch-action: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-width: 3.25rem;
  height: 3.25rem;
  padding: 0;
  color: var(--accent-ink);
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(6, 40, 22, 0.35);
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.help-open-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
}

.help-open-icon svg {
  width: 100%;
  height: 100%;
}

.help-open-dot {
  position: absolute;
  top: -0.3rem;
  right: -0.35rem;
  width: 0.7rem;
  height: 0.7rem;
  background: #a7f3d0;
  border: 2px solid #062816;
  border-radius: 50%;
}

.help-open-text {
  display: none;
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

.help-open:hover {
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(6, 40, 22, 0.35);
}

.help-open:active {
  transform: scale(0.95);
}

@media (min-width: 900px) {
  .help-open {
    padding: 0 1.15rem 0 1rem;
  }

  .help-open-text {
    display: inline;
  }
}

.help-form button svg {
  width: 1.45rem;
  height: 1.45rem;
}

.help-open:hover,
.help-open:focus-visible,
.help-back:hover,
.help-back:focus-visible,
.help-form button:hover,
.help-form button:focus-visible,
.help-suggestions button:hover,
.help-suggestions button:focus-visible {
  filter: brightness(1.08);
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

/* The page behind the open menu or chat is pinned (script.js sets top), so nothing can scroll it. */
html:has(body.page-locked) {
  overflow: hidden;
  overscroll-behavior: none;
}

body.page-locked {
  position: fixed;
  right: 0;
  left: 0;
  width: 100%;
  padding-top: var(--header-lock-space, 0px);
  overflow: hidden;
  overscroll-behavior: none;
}

.help-panel:not([hidden]) + .help-open {
  display: none;
}

.help-panel {
  position: fixed;
  inset: 0;
  z-index: 60;
  touch-action: manipulation;
  overscroll-behavior: none;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto;
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  color: var(--text);
  background: var(--bg);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.help-panel[hidden] {
  display: none;
}

.help-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: calc(0.65rem + env(safe-area-inset-top)) 0.85rem 0.75rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.help-back {
  display: grid;
  place-items: center;
  flex: 0 0 2.75rem;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  color: #fff;
  background: #10192b;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.help-back svg {
  width: 1.6rem;
  height: 1.6rem;
}

.help-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.4rem;
  height: 2.4rem;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.help-head h2 {
  margin: 0;
  font-size: 1rem;
}

.help-head p {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.1rem 0 0;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
}

.help-dot {
  width: 0.45rem;
  height: 0.45rem;
  background: var(--accent);
  border-radius: 50%;
}

.help-log {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 0;
  margin: 0;
  padding: 0.85rem;
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.help-bubble {
  max-width: 90%;
  padding: 0.6rem 0.75rem;
  border-radius: 14px;
  line-height: 1.45;
}

.help-bubble p {
  margin: 0;
  white-space: pre-line;
}

.help-bubble a,
.help-bubble .help-footer-jump {
  display: inline-block;
  margin: 0.45rem 0.7rem 0 0;
  padding: 0;
  color: var(--accent);
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.social-links.is-highlighted {
  border-radius: 14px;
  outline: 2px solid var(--accent);
  outline-offset: 10px;
  box-shadow: 0 0 0 10px rgba(61, 220, 132, 0.12), 0 0 36px 10px rgba(61, 220, 132, 0.22);
}

.help-user {
  align-self: flex-end;
  color: var(--accent-ink);
  background: var(--accent);
  border-bottom-right-radius: 5px;
}

.help-bot {
  align-self: flex-start;
  background: #10192b;
  border: 1px solid var(--line);
  border-bottom-left-radius: 5px;
}

.help-typing {
  display: flex;
  gap: 0.28rem;
  align-self: flex-start;
  width: fit-content;
  margin: 0;
  padding: 0.7rem 0.8rem;
  background: #10192b;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.help-typing span {
  width: 0.38rem;
  height: 0.38rem;
  background: var(--muted);
  border-radius: 50%;
  animation: help-dot 1s infinite ease-in-out;
}

.help-typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.help-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes help-dot {
  0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}

.help-suggestions {
  display: flex;
  gap: 0.4rem;
  padding: 0 0.85rem 0.7rem;
  /* One row that scrolls sideways, so the messages keep the room. */
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.help-suggestions button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.help-suggestions button,
.help-form button {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
}

.help-suggestions button {
  padding: 0.3rem 0.65rem;
  font-size: 0.78rem;
}

.help-form {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.35rem 0.85rem 0.45rem;
  padding: 0.3rem 0.3rem 0.3rem 0.85rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.help-draft {
  flex: 1;
  min-width: 0;
  padding: 0.45rem 0;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: none;
  font: inherit;
  /* 16px or more, so iPhones don't zoom in when the box is tapped. */
  font-size: 1rem;
  line-height: 1.3;
  caret-color: var(--accent);
}

.help-draft::placeholder {
  color: var(--muted);
}

.help-form button {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  color: var(--accent-ink);
  background: var(--accent);
  border: 0;
  border-radius: 50%;
}

/* ---------- Country chooser ---------- */
.country-page {
  min-height: 100dvh;
}

.country-card h1 {
  font-family: "Bebas Neue", "Segoe UI", sans-serif;
  font-size: 2.4rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.country-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.country-page .country-choice {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  padding: 0.7rem 1rem;
  color: var(--text);
  text-align: left;
  text-decoration: none;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.country-page .country-choice strong {
  font-size: 1.15rem;
}

.country-page .country-choice:hover,
.country-page .country-choice:focus-visible {
  border-color: var(--accent);
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.country-flag {
  width: 3.4rem;
  height: 2.25rem;
  flex: none;
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}

/* Seven Control Room tabs on the narrowest phones: keep every label on one line. */
@media (max-width: 380px) {
  .app-nav-link {
    padding: 0.4rem 0.1rem;
    font-size: 0.6rem;
    letter-spacing: 0;
  }
}

/* Pull-to-refresh arrow for the home-screen app (pull-refresh.js). */
.pull-refresh {
  position: fixed;
  top: calc(env(safe-area-inset-top) + 0.5rem);
  left: 50%;
  z-index: 1000;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translate(-50%, -48px);
  pointer-events: none;
}

.pull-refresh svg {
  width: 1.3rem;
  height: 1.3rem;
}

.pull-refresh.is-ready {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}

.pull-refresh.is-refreshing svg {
  animation: fee-spin 0.8s linear infinite;
}

/* While the help button is being dragged */
.help-widget.is-dragging .help-open {
  transform: scale(1.08);
  cursor: grabbing;
  box-shadow: 0 18px 40px rgba(6, 40, 22, 0.55);
}

/* Home-screen app: no double-tap zoom anywhere on the page (pull-refresh.js adds the class). */
html.home-screen-app,
html.home-screen-app body {
  touch-action: manipulation;
}

/* No reviews yet: a single line and the button instead of a large empty card. */
.testimonials.is-empty .testimonials-title {
  display: none;
}

.testimonials.is-empty .testimonials-empty {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
}

/* ---------- Results page ---------- */
.results-main {
  width: min(960px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.25rem 0 3rem;
}

.results-title {
  margin: 1.25rem 0 0.5rem;
  font-family: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  font-size: 2.4rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.results-intro {
  max-width: 42rem;
  margin: 0 0 1.5rem;
  color: var(--muted);
  line-height: 1.55;
}

.results-intro strong {
  color: var(--text);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1rem;
}

.results-card {
  padding: 1.1rem 1rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.results-plan {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.results-stats {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0.6rem 0 0.85rem;
}

.results-rate {
  margin: 0;
  color: var(--accent);
  font-size: 2rem;
  font-weight: 800;
}

.results-detail,
.results-none {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.results-days {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.results-day {
  display: grid;
  min-width: 4.4rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.75rem;
  text-align: center;
}

.results-day-date {
  color: var(--muted);
}

.results-day-outcome {
  font-weight: 800;
}

.results-day.is-won {
  border-color: rgba(61, 220, 132, 0.55);
}

.results-day.is-won .results-day-outcome {
  color: #16a34a;
}

.results-day.is-lost {
  border-color: rgba(255, 141, 141, 0.5);
}

.results-day.is-lost .results-day-outcome {
  color: #ff8d8d;
}

.results-day.is-pending .results-day-outcome {
  color: var(--muted);
  font-weight: 600;
}

/* ---------- Weekly Rollover renew reminder ---------- */
.renew-banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 0.9rem;
  max-width: 40rem;
  margin: 1rem auto 0;
  padding: 0.7rem 1rem;
  background: rgba(61, 220, 132, 0.1);
  border: 1px solid rgba(61, 220, 132, 0.45);
  border-radius: 14px;
  text-align: center;
}

.renew-banner[hidden] {
  display: none;
}

.renew-link {
  padding: 0.35rem 0.9rem;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

/* Chat: the header and typing box can't be dragged; the messages scroll up and down, the suggestions sideways. */
.help-head,
.help-form {
  touch-action: none;
}

.help-suggestions {
  touch-action: pan-x;
}

/* The menu scrolls by itself when it's taller than the screen; the page behind stays still. */
.site-menu {
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
}

/* The pinned page moves with its scroll offset, so keep the top bar (and the menu button) on screen. */
body.page-locked > header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
}

/* =====================================================================
   Dark mode (theme.js sets data-theme="dark" on <html>)
   ===================================================================== */
html[data-theme="dark"] {
  --bg: #07111f;
  --surface: #122033;
  --line: #2a4466;
  --text: #f3f7ff;
  --muted: #9bb0c9;
  --accent: #3b82f6;
  --accent-ink: #ffffff;
  color-scheme: dark;
}

html[data-theme="dark"] body {
  background:
    radial-gradient(ellipse at top, #16345c 0%, transparent 55%),
    var(--bg);
}

html[data-theme="dark"] header,
html[data-theme="dark"] .control-room .control-bar {
  background: rgba(7, 17, 31, 0.94);
}

html[data-theme="dark"] .site-footer {
  background: #07111f;
}

html[data-theme="dark"] .brand-predict {
  color: #8eb7ff;
}

html[data-theme="dark"] .homepage .section-won {
  color: #3ddc84;
  background: #102c20;
  border-color: #22c55e;
}

html[data-theme="dark"] .result-mark.won {
  color: #3ddc84;
}

html[data-theme="dark"] .result-badge.won {
  color: #062816;
  background: #3ddc84;
}

html[data-theme="dark"] .dot.won,
html[data-theme="dark"] .results-day.is-won .results-day-outcome {
  color: #3ddc84;
}

html[data-theme="dark"] .dot.won {
  background: #3ddc84;
}

/* =====================================================================
   Light mode (theme.js sets data-theme="light" on <html>)
   ===================================================================== */
html[data-theme="light"] {
  --bg: #f4f8fc;
  --surface: #ffffff;
  --line: #d5e3f2;
  --text: #102a4c;
  --muted: #5c7390;
  --accent: #1d6fe8;
  --accent-ink: #ffffff;
  color-scheme: light;
}

html[data-theme="light"] body {
  background: radial-gradient(ellipse at top, #e5f0ff 0%, transparent 55%), var(--bg);
}

html[data-theme="light"] header,
html[data-theme="light"] .control-room .control-bar {
  background: rgba(255, 255, 255, 0.92);
}

html[data-theme="light"] .site-footer {
  background: #ffffff;
}

html[data-theme="light"] .homepage .section-won {
  color: #15803d;
  background: #e8f8ee;
}

/* Cards and windows that were painted dark directly */
html[data-theme="light"] .member-notice-dialog,
html[data-theme="light"] .member-notice-error,
html[data-theme="light"] .rollover-campaign,
html[data-theme="light"] .boom-campaign {
  color: var(--text);
  background: var(--surface);
}

html[data-theme="light"] .warning-form textarea,
html[data-theme="light"] .fee-sender-name input {
  background: #f7f9fc;
}

html[data-theme="light"] .members-table tbody tr:hover td,
html[data-theme="light"] .members-table tbody tr:hover td:first-child {
  background: #eef3f9;
}

html[data-theme="light"] .pay-dialog::backdrop,
html[data-theme="light"] .popup-banner::backdrop,
html[data-theme="light"] .calendar-dialog::backdrop,
html[data-theme="light"] .recovery-dialog::backdrop {
  background: rgba(15, 27, 45, 0.45);
}

/* Support chat */
html[data-theme="light"] .help-back,
html[data-theme="light"] .help-bot,
html[data-theme="light"] .help-typing {
  color: var(--text);
  background: #eef2f7;
}

/* Bright text colours made dark enough to read on white */
html[data-theme="light"] .user-plan.plan-vip,
html[data-theme="light"] #vip-slots,
html[data-theme="light"] .gateway-status,
html[data-theme="light"] .testimonial-stars,
html[data-theme="light"] .review-status,
html[data-theme="light"] .icon-vip,
html[data-theme="light"] .plan-pill.plan-vip,
html[data-theme="light"] .fee-bank-note strong {
  color: #a16207;
}

html[data-theme="light"] .user-plan.plan-boom,
html[data-theme="light"] #boom-slots,
html[data-theme="light"] .plan-pill.plan-boom,
html[data-theme="light"] .boom-campaign .rollover-campaign-benefit strong,
html[data-theme="light"] .result-sheet[data-state="slow"] .result-icon {
  color: #b45309;
}

html[data-theme="light"] .user-plan.plan-both,
html[data-theme="light"] #vvip-slots,
html[data-theme="light"] .icon-vvip,
html[data-theme="light"] .plan-pill.plan-vvip {
  color: #7c3aed;
}

html[data-theme="light"] .admin-error,
html[data-theme="light"] .form-message.error,
html[data-theme="light"] .row-action.danger,
html[data-theme="light"] .payment-status[data-status="rejected"],
html[data-theme="light"] .fee-error,
html[data-theme="light"] .result-sheet[data-state="error"] .result-icon,
html[data-theme="light"] .result-sheet[data-state="failed"] .result-icon,
html[data-theme="light"] .results-day.is-lost .results-day-outcome,
html[data-theme="light"] .sign-in.is-signed-in:focus-visible {
  color: #dc2626;
}

html[data-theme="light"] .rollover-campaign-icon,
html[data-theme="light"] .rollover-campaign-eyebrow,
html[data-theme="light"] .rollover-campaign h2 span,
html[data-theme="light"] .rollover-campaign-benefit strong {
  color: #0e7490;
}

html[data-theme="light"] .rollover-campaign-description,
html[data-theme="light"] .rollover-campaign-benefit span {
  color: var(--muted);
}

html[data-theme="light"] .icon-recovery,
html[data-theme="light"] .recovery-title span {
  color: #c2410c;
}

/* Soft shadows instead of dark ones on light cards */
html[data-theme="light"] .pay-sheet,
html[data-theme="light"] .site-menu {
  box-shadow: 0 12px 32px rgba(15, 27, 45, 0.12);
}

/* ---------- The switch itself ---------- */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.theme-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
}

/* Dark mode shows a sun (switch to light); light mode shows a moon. */
.theme-toggle .theme-moon,
html[data-theme="light"] .theme-toggle .theme-sun {
  display: none;
}

html[data-theme="light"] .theme-toggle .theme-moon {
  display: block;
}

.theme-toggle-corner {
  position: fixed;
  top: calc(0.75rem + env(safe-area-inset-top));
  right: 0.75rem;
  z-index: 40;
  background: var(--surface);
}

html[data-theme="light"] .app-nav {
  background: rgba(255, 255, 255, 0.96);
  border-color: var(--line);
}

html[data-theme="light"] .app-nav-link.is-active {
  background: rgba(21, 128, 61, 0.1);
}

/* ---------- "Add to home screen" card (install-prompt.js) ---------- */
.install-card {
  position: fixed;
  right: 0.75rem;
  bottom: calc(0.75rem + env(safe-area-inset-bottom));
  left: 0.75rem;
  z-index: 45;
  max-width: 30rem;
  margin: 0 auto;
  padding: 1.1rem 1rem 1rem;
  color: var(--text);
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  transform: translateY(calc(100% + 2rem));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.install-card.is-open {
  transform: translateY(0);
}

.install-card[hidden] {
  display: none;
}

.install-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2rem;
  height: 2rem;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.install-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: center;
  padding-right: 1.5rem;
}

.install-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.install-kicker {
  margin: 0 0 0.15rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.install-card h2 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.25;
}

.install-lead {
  margin: 0.75rem 0 0.6rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

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

.install-steps li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.35;
}

.install-step-number {
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 800;
}

.install-step-icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  color: #0a84ff;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.install-step-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.install-actions {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.install-now[hidden] {
  display: none;
}

html[data-theme="light"] .install-card {
  box-shadow: 0 18px 48px rgba(15, 27, 45, 0.22);
}

@media (prefers-reduced-motion: reduce) {
  .install-card {
    transition: none;
  }
}

/* "Slots full" switches in the Control Room slots form */
.slot-full-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.9rem;
}

/* Cloudflare "Verify you are human" box on the login forms (human-check.js) */
.human-check {
  display: flex;
  justify-content: center;
  min-height: 65px;
  margin: 0.25rem 0;
}

.human-check[hidden] {
  display: none;
}

/* ---------- Privacy policy and terms pages ---------- */
.legal-main {
  max-width: 46rem;
  line-height: 1.6;
}

.legal-main h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.15rem;
}

.legal-main h3 {
  margin: 1.1rem 0 0.35rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-main p,
.legal-main li {
  color: var(--muted);
}

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

.legal-main ul {
  padding-left: 1.25rem;
}

.legal-main li + li {
  margin-top: 0.4rem;
}

.legal-main a {
  color: var(--accent);
}

.legal-updated {
  margin: 0 0 1.25rem;
  font-size: 0.85rem;
}

.legal-links {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.footer-legal {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
}

.footer-legal a,
.account-legal a {
  color: inherit;
  text-decoration: underline;
}

.account-legal {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
  text-align: center;
}

/* Support chat picture: a person with a headset. */
.help-avatar {
  overflow: hidden;
  background: #e7f6ec;
  box-shadow: 0 0 0 2px var(--accent);
}

.help-avatar svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ---------- Support chat "typing..." ---------- */
.help-typing-row {
  display: flex;
  gap: 0.45rem;
  align-items: flex-end;
  align-self: flex-start;
  margin: 0;
  animation: help-typing-in 0.2s ease-out;
}

.help-typing-row .help-typing-avatar {
  width: 1.75rem;
  height: 1.75rem;
  box-shadow: 0 0 0 1.5px var(--accent);
}

.help-typing-row .help-typing {
  gap: 0.32rem;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.75rem 0.95rem;
  border-bottom-left-radius: 4px;
}

.help-typing-row .help-typing span {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--accent);
  animation: help-typing-bounce 1.2s infinite ease-in-out;
}

.help-typing-row .help-typing span:nth-child(2) {
  animation-delay: 0.18s;
}

.help-typing-row .help-typing span:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes help-typing-bounce {
  0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-5px); }
}

@keyframes help-typing-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.help-head p.is-typing {
  color: var(--accent);
  font-style: italic;
}

@media (prefers-reduced-motion: reduce) {
  .help-typing-row,
  .help-typing-row .help-typing span {
    animation: none;
  }
}

/* Control Room: Remind members (tips alerts) */
.tips-alerts-count {
  margin: 0.6rem 0 0.9rem;
  font-size: 1rem;
}

.tips-alerts-count strong {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  letter-spacing: 0.02em;
  margin-right: 0.35rem;
  vertical-align: -0.15rem;
}

.tips-alerts-form {
  align-items: end;
}

.tips-alerts-form .form-actions {
  margin: 0;
}

/* Control Room: announcement reach line under the Send button */
.announce-reach {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.announce-reach strong {
  color: var(--accent);
  font-size: 1.05rem;
}

#announce-body {
  width: 100%;
  min-width: 0;
  padding: 0.65rem 0.75rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  resize: vertical;
}

#announce-body:focus {
  border-color: var(--accent);
  outline: none;
}

#announce-card .form-hint {
  margin-bottom: 0.75rem;
}

/* ---------- Control Room phones: 4 tabs + "More" ---------- */
.app-nav-more,
.nav-sheet,
.nav-sheet-backdrop {
  display: none;
}

.app-nav-more {
  font: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

@media (max-width: 767px) {
  .app-nav .nav-extra {
    display: none;
  }

  .app-nav .app-nav-more {
    display: flex;
    font-weight: 700;
  }

  /* Five roomy tabs instead of seven cramped ones */
  .app-nav .app-nav-link {
    padding: 0.45rem 0.25rem;
    font-size: 0.74rem;
    letter-spacing: 0.02em;
  }

  .app-nav .app-nav-link svg {
    width: 1.45rem;
    height: 1.45rem;
  }

  .nav-sheet-backdrop:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 38;
    display: block;
    background: rgba(0, 0, 0, 0.45);
  }

  .nav-sheet:not([hidden]) {
    position: fixed;
    right: max(0.75rem, env(safe-area-inset-right));
    bottom: calc(4.6rem + env(safe-area-inset-bottom));
    left: max(0.75rem, env(safe-area-inset-left));
    z-index: 39;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.18s ease, transform 0.22s ease;
  }

  .nav-sheet.is-open {
    opacity: 1;
    transform: none;
  }

  .nav-sheet-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    min-height: 4.5rem;
    justify-content: center;
    padding: 0.6rem 0.4rem;
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
  }

  .nav-sheet-link svg {
    width: 1.5rem;
    height: 1.5rem;
  }

  .nav-sheet-link.is-active {
    color: var(--accent);
    background: rgba(61, 220, 132, 0.12);
  }

  html[data-theme="light"] .nav-sheet-link {
    background: rgba(0, 0, 0, 0.04);
  }
}

/* Control Room: one box per plan in Available slots (total, taken, Slots full) */
.slot-plan {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  min-width: 0;
  margin: 0;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.slot-plan legend {
  padding: 0 0.4rem;
  font-weight: 800;
}

.slot-plan .slot-full-row {
  grid-column: 1 / -1;
}

/* Reviews: no dot indicator under the review (it auto-rotates on its own). */
.testimonial-dots {
  display: none !important;
}

.activate-card .form-hint {
  margin-bottom: 0.75rem;
}

/* Pay page: "Manual payments take longer" note under the divider */
.pay-caution {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 0 0 1rem;
  padding: 0.8rem 0.95rem;
  border-radius: 14px;
  background: rgba(242, 193, 78, 0.1);
  border: 1px solid rgba(242, 193, 78, 0.45);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.45;
}

.pay-caution[hidden] {
  display: none;
}

.pay-caution svg {
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.1rem;
  color: #f2c14e;
}

.pay-caution strong {
  color: #f2c14e;
}

html[data-theme="light"] .pay-caution strong,
html[data-theme="light"] .pay-caution svg {
  color: #a86b00;
}

/* Sign-in page: forgot password link and "Continue as guest" */
.forgot-row {
  margin: -0.35rem 0 0.25rem;
  text-align: right;
  font-size: 0.9rem;
}

.forgot-row a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.forgot-row[hidden],
.guest-row[hidden] {
  display: none;
}

.guest-row {
  margin-top: 1rem;
  text-align: center;
}

.guest-or {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.guest-or::before,
.guest-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.guest-button {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.guest-button:hover,
.guest-button:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.guest-hint {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.reset-done {
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: rgba(61, 220, 132, 0.1);
  border: 1px solid rgba(61, 220, 132, 0.45);
  line-height: 1.45;
}

/* Control Room: one switch per automatic pop-up */
.popup-kinds .method-head {
  padding: 0.6rem 0;
  border-top: 1px solid var(--line);
}

.popup-kinds .method-head:first-child {
  border-top: 0;
}

/* Control Room: members waiting for a reset link */
.reset-requests[hidden] {
  display: none;
}

.reset-requests ul {
  margin: 0.4rem 0 1rem;
  padding: 0;
  list-style: none;
}

.reset-requests li {
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow-wrap: anywhere;
}

.reset-requests li .form-actions {
  margin-top: 0.5rem;
}

/* Control Room: reset link box */
.reset-link-box {
  margin-top: 0.85rem;
}

.reset-link-box[hidden] {
  display: none;
}

.reset-link-box input {
  width: 100%;
  margin: 0.4rem 0 0.75rem;
  padding: 0.65rem 0.75rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 0.85rem;
}

/* Forgot password: WhatsApp button */
.whatsapp-button {
  display: block;
  margin-top: 0.85rem;
  text-align: center;
  text-decoration: none;
  background: #25d366;
  color: #062b14;
}

html[data-theme="light"] .pay-option-tag.is-manual {
  color: #b45309;
  border-color: rgba(180, 83, 9, 0.45);
}

/* Watch live pop-up: its main action is a link to goaalball.com */
.rollover-campaign-actions a.plan-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  box-sizing: border-box;
}

/* ---------- Control Room: Today checklist ---------- */
.checklist-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
}

.checklist-summary {
  margin: 0;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
}

.checklist-summary.error {
  color: #ff6b6b;
}

.checklist-summary.is-quiet {
  color: var(--muted);
}

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

.checklist-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.65rem 0.8rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--line);
  border-radius: 10px;
}

.checklist-row.is-done {
  border-left-color: var(--accent);
}

.checklist-row.is-todo {
  border-left-color: #ff6b6b;
}

.checklist-name {
  min-width: 5.5rem;
  font-weight: 800;
}

.checklist-chips {
  display: flex;
  flex: 1 1 14rem;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.checklist-chip {
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.checklist-chip.is-ok {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}

.checklist-chip.is-bad {
  color: #ff6b6b;
  border-color: color-mix(in srgb, #ff6b6b 50%, transparent);
  font-weight: 700;
}

/* ---------- Control Room: member lookup ---------- */
.lookup-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.lookup-form input {
  flex: 1 1 14rem;
  width: auto;
  min-width: 0;
}

.lookup-member {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.lookup-member h4 {
  margin: 0.5rem 0 0.25rem;
  overflow-wrap: anywhere;
}

.lookup-line {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.lookup-line strong {
  color: var(--text);
}

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

.lookup-matches .row-action {
  max-width: 100%;
  text-align: left;
  overflow-wrap: anywhere;
}

/* ---------- Control Room: records and activity log ---------- */
.records-range {
  display: flex;
  gap: 0.4rem;
}

.records-range .day-button {
  white-space: nowrap;
}

.records-table td,
.records-table th {
  white-space: nowrap;
}

.activity-list {
  display: grid;
  gap: 0.4rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.activity-list li {
  display: grid;
  grid-template-columns: minmax(6.5rem, auto) 1fr;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.9rem;
}

.activity-list time {
  color: var(--muted);
  white-space: nowrap;
}

.activity-list span {
  overflow-wrap: anywhere;
}

@media (max-width: 480px) {
  .activity-list li {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

html[data-theme="light"] .checklist-summary.error,
html[data-theme="light"] .checklist-chip.is-bad {
  color: #dc2626;
  border-color: color-mix(in srgb, #dc2626 45%, transparent);
}

html[data-theme="light"] .checklist-row.is-todo {
  border-left-color: #dc2626;
}

.control-refresh.is-busy svg {
  animation: refresh-spin 0.8s linear infinite;
}

@keyframes refresh-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Control Room: payment receipt viewer ---------- */
.receipt-dialog {
  width: min(640px, calc(100vw - 1.5rem));
  max-height: calc(100dvh - 1.5rem);
  padding: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.receipt-dialog[open] {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.receipt-dialog::backdrop {
  background: rgba(4, 8, 16, 0.8);
  backdrop-filter: blur(4px);
}

.receipt-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.receipt-head h2 {
  margin: 0;
  font-size: 1.2rem;
}

.receipt-meta {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

.receipt-close {
  flex-shrink: 0;
  min-height: 2.5rem;
  padding: 0.4rem 1.1rem;
  font-weight: 700;
}

.receipt-dialog .form-message:empty {
  display: none;
}

.receipt-body {
  min-height: 0;
  overflow: auto;
  border-radius: 12px;
}

.receipt-image {
  display: block;
  width: 100%;
  height: auto;
  background: var(--bg);
  border-radius: 12px;
}

.receipt-open {
  display: inline-block;
  text-decoration: none;
}

/* Phones: the receipt fills the screen so it's easy to read. */
@media (max-width: 600px) {
  .receipt-dialog {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding: calc(0.75rem + env(safe-area-inset-top)) 0.75rem calc(0.75rem + env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0;
  }
}

@media (max-width: 600px) {
  .site-footer {
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
  }

  .footer-identity {
    grid-template-columns: auto 1fr;
  }

  .footer-age {
    grid-column: 2;
    justify-self: start;
  }
}

/* Front page: a day still loading for the first time dims its tables, so a tap
   on Yesterday / Today / Tomorrow never looks ignored. Quick loads don't flash. */
.is-loading tbody {
  opacity: 0.45;
  transition: none;
}

.skeleton-row td {
  padding: 0.9rem 1rem;
}

.skeleton-bar {
  display: block;
  height: 0.8rem;
  max-width: 16rem;
  margin-inline: auto;
  border-radius: 999px;
  background: var(--line);
}

@media (prefers-reduced-motion: no-preference) {
  .skeleton-bar {
    background: linear-gradient(90deg, var(--line) 25%, var(--surface) 50%, var(--line) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.1s ease-in-out infinite;
  }
}

@keyframes skeleton-shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

#free.is-loading:has(.skeleton-row) {
  min-height: 16rem;
}

tbody {
  transition: opacity 0.15s ease;
}

/* ---------- Control Room: who sees each pop-up ---------- */
.audience-select {
  width: 100%;
  max-width: 22rem;
  padding: 0.5rem 0.65rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 0.85rem;
}

.audience-select:focus {
  border-color: var(--accent);
  outline: none;
}

.popup-row .audience-select {
  margin-top: 0.35rem;
}

.popup-kind-row {
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
}

.popup-kind-row > span {
  flex: 1 1 12rem;
}

.popup-kind-row .audience-select {
  flex: 0 1 13rem;
  width: auto;
}

@media (max-width: 600px) {
  .popup-kind-row .audience-select {
    flex: 1 1 auto;
  }
}

/* ---------- Support chat: tutorial videos ---------- */
.help-video {
  margin: 0.6rem 0 0;
}

.help-video video {
  display: block;
  width: 100%;
  max-width: 17rem;
  max-height: 55vh;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: #000;
  border-radius: 12px;
}

.help-video figcaption {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.help-video-list {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.6rem;
}

.help-video-choice {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.4rem 0.6rem 0.4rem 0.4rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.help-video-choice img {
  flex: 0 0 auto;
  width: 2.6rem;
  height: 4.6rem;
  object-fit: cover;
  border-radius: 8px;
}

.help-video-choice:hover,
.help-video-choice:focus-visible {
  border-color: var(--accent);
  outline: none;
}

/* ---------- Support button: soft glow ring and "Need help?" bubble ---------- */
.help-open {
  position: relative;
}

/* A ring that grows out of the button and fades, every few seconds. */
.help-open::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6);
  animation: help-glow 3.2s ease-out infinite;
  pointer-events: none;
}

@keyframes help-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6);
  }
  45%,
  100% {
    box-shadow: 0 0 0 16px rgba(61, 220, 132, 0);
  }
}

.help-teaser {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.75rem);
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 0.25rem;
  width: max-content;
  max-width: min(16rem, calc(100vw - 2rem));
  padding: 0.65rem 0.4rem 0.65rem 0.85rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid rgba(61, 220, 132, 0.55);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  animation: help-teaser-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.help-teaser[hidden] {
  display: none;
}

/* The little tail pointing at the button. */
.help-teaser::after {
  content: "";
  position: absolute;
  right: 1.1rem;
  bottom: -0.45rem;
  width: 0.8rem;
  height: 0.8rem;
  background: var(--surface);
  border-right: 1px solid rgba(61, 220, 132, 0.55);
  border-bottom: 1px solid rgba(61, 220, 132, 0.55);
  transform: rotate(45deg);
}

.help-teaser.is-left {
  right: auto;
  left: 0;
}

.help-teaser.is-left::after {
  right: auto;
  left: 1.1rem;
}

.help-teaser.is-below {
  top: calc(100% + 0.75rem);
  bottom: auto;
}

.help-teaser.is-below::after {
  top: -0.45rem;
  bottom: auto;
  transform: rotate(225deg);
}

.help-teaser-text {
  display: grid;
  gap: 0.15rem;
  padding: 0;
  color: inherit;
  background: none;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.help-teaser-text strong {
  font-size: 0.95rem;
}

.help-teaser-text span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.help-teaser-close {
  flex: 0 0 auto;
  width: 1.6rem;
  height: 1.6rem;
  padding: 0;
  color: var(--muted);
  background: none;
  border: 0;
  border-radius: 50%;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.help-teaser-close:hover,
.help-teaser-close:focus-visible {
  color: var(--text);
  background: var(--bg);
}

@keyframes help-teaser-in {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* While the chat is open, neither the bubble nor the ring shows. */
.help-panel:not([hidden]) ~ .help-teaser {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .help-open::after,
  .help-teaser {
    animation: none;
  }
}

/* ---------- Front page polish ---------- */

/* Locked games: a small lock badge instead of a sentence on every row. */
.match-tip-line.is-locked {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.1rem 0.55rem;
  color: var(--muted);
  background: rgba(154, 171, 196, 0.1);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.lock-icon {
  flex: 0 0 auto;
  width: 0.85em;
  height: 0.85em;
}

/* One line at the bottom of a locked table saying how to unlock it. */
.homepage main > section > table td.locked-note,
td.locked-note {
  padding: 0.7rem 1rem;
  color: var(--text);
  background: rgba(61, 220, 132, 0.06);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

td.locked-note .lock-icon {
  margin-right: 0.4rem;
  vertical-align: -0.1em;
  color: var(--accent);
}

/* Sold out: calm and deliberate, not a broken-looking button. */
.table-cta.is-sold-out:disabled {
  color: var(--muted);
  background: transparent;
  border: 1.5px dashed var(--line);
  box-shadow: none;
  opacity: 1;
  filter: none;
  letter-spacing: 0.06em;
}

.table-cta.is-sold-out::before,
.table-cta.is-sold-out::after {
  display: none;
}

/* The last 7 days' record under the title. */
.proof-line {
  display: block;
  max-width: 40rem;
  margin: 0.6rem auto 0.4rem;
  padding: 0 1rem;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
}

.proof-line[hidden] {
  display: none;
}

.proof-line svg {
  width: 1rem;
  height: 1rem;
  margin-right: 0.35rem;
  vertical-align: -0.15em;
  color: var(--accent);
}

.proof-line a {
  margin-left: 0.45rem;
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}

/* Computers: a wider page instead of a narrow phone-width strip. */
@media (min-width: 900px) {
  .homepage main {
    max-width: 880px;
  }

  .homepage .match-teams {
    font-size: 1.05rem;
  }
}

/* While the support chat is open it sits above everything else on the page
   (the header, the "Add to home screen" card and the pull-to-refresh spinner). */
body.chat-open .help-widget {
  z-index: 2000;
}

/* The 7-day record at the top of the review card, with a divider under it. */
.testimonials .proof-line {
  margin: 0 0 1rem;
  padding: 0 0 0.9rem;
  max-width: none;
  border-bottom: 1px solid var(--line);
}

/* ---------- Real fixture details: league, kickoff, badges and score ---------- */
.match-fixture {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 0.2rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.match-league {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-state {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}

.match-fixture .match-state:not(:first-child)::before {
  content: "·";
  margin-right: 0.35rem;
  color: var(--line);
}

.match-state.is-live {
  color: #ff6b6b;
}

.match-state.is-done {
  color: var(--text);
}

.league-badge {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.match-teams .team-badge {
  width: 20px;
  height: 20px;
  margin: 0 0.35rem;
  object-fit: contain;
  vertical-align: -0.3em;
}

.match-vs {
  color: var(--muted);
  font-weight: 500;
}

.match-score {
  display: inline-block;
  padding: 0 0.4rem;
  color: var(--text);
  background: rgba(154, 171, 196, 0.14);
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
}

.match-score.is-live {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.12);
}

/* Control Room */
.admin-fixture {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.fixtures-fill {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 1rem;
}

.fixtures-fill .outline-button {
  justify-self: start;
}

/* ---------- Game rows: name, crest, vs, crest, name ---------- */
.homepage main > section > table {
  table-layout: fixed;
}

.match-cell.is-split {
  display: block;
  min-width: 0;
  max-width: 100%;
}

.match-cell.is-split > .match-info {
  min-width: 0;
  max-width: 100%;
  text-align: center;
}

/* Equal side columns keep vs in the centre even when one name is longer. */
.match-teams.is-split {
  display: grid;
  width: 100%;
  max-width: 100%;
  grid-template-columns: minmax(0, 1fr) 20px auto 20px minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  column-gap: 0.4rem;
}

.match-teams.is-split > .team-name {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  color: #0a2038;
  font-weight: 700;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.match-teams.is-split > .team-name.is-home {
  justify-self: stretch;
  text-align: right;
}

.match-teams.is-split > .team-name.is-away {
  justify-self: stretch;
  text-align: left;
}

html[data-theme="dark"] .match-teams.is-split > .team-name {
  color: #f7faff;
}

.match-teams.is-split > .team-badge {
  display: block;
  width: 20px;
  height: 20px;
  margin: 0;
  object-fit: contain;
}

.match-teams.is-split > .match-score,
.match-teams.is-split > .match-vs {
  justify-self: center;
  text-align: center;
  white-space: nowrap;
}

.match-teams.is-split > .match-score {
  min-width: 2.9rem;
  padding: 0.05rem 0.35rem;
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.5;
}

.match-teams.is-split > .match-vs {
  font-size: 0.8rem;
}

/* Tip or lock stays centred under the match. The won mark follows the tip. */
.match-cell.is-split .match-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  max-width: 100%;
  margin-top: 0.4rem;
}

.match-tip-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  max-width: 100%;
}

.match-cell.is-split .match-live-odds {
  justify-content: center;
  margin-top: 0;
}

.match-cell.is-split .result-badge {
  font-size: 0.75rem;
}

.match-cell.is-split .match-picture {
  margin: 0.5rem auto 0;
}

@media (max-width: 520px) {
  .homepage main > section > table th,
  .homepage main > section > table td {
    padding-right: 0.4rem;
    padding-left: 0.4rem;
  }

  .match-teams.is-split {
    column-gap: 0.25rem;
    font-size: 0.92rem;
  }
}

/* "Ronan · Support" in the chat header: the role in a lighter weight. */
/* "Ronan" above each of his replies. */
.help-name-tag {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* Quick answers under one of Ronan's questions, e.g. the countries. */
.help-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.help-choices button {
  padding: 0.35rem 0.8rem;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 999px;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.help-choices button.is-picked {
  color: var(--accent-ink);
  background: var(--accent);
}

.help-choices button:disabled:not(.is-picked) {
  opacity: 0.45;
  cursor: default;
}

/* "Send payment screenshot" in Ronan's bubble, and the picture once sent. */
.help-upload {
  display: inline-flex;
  align-items: center;
  margin-top: 0.6rem;
  padding: 0.45rem 0.9rem;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.help-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.help-upload.is-used {
  opacity: 0.5;
  pointer-events: none;
}

.help-receipt-preview {
  display: block;
  max-width: 180px;
  max-height: 240px;
  margin-top: 0.4rem;
  border-radius: 10px;
  object-fit: cover;
}

.help-powered {
  margin: 0 0.85rem 0.45rem;
  color: var(--muted);
  font-size: 0.7rem;
  text-align: center;
}

.help-role {
  color: var(--muted);
  font-weight: 500;
}

/* Won/Lost sits at the end of the tip, not on a line of its own. */
.match-cell .result-mark {
  display: inline-flex;
  flex: 0 0 auto;
  line-height: 0;
}

.result-mark svg {
  width: 26px;
  height: 26px;
}

.result-mark.won {
  color: #16a34a;
}

.result-mark.lost {
  color: #e5484d;
}

/* All of a table's games won: its booking code section (and the free table's
   "Get SportyBet booking code" button) is removed; the WON badge stays. */
section.is-won .booking-panel,
section.is-won .booking-button {
  display: none !important;
}

/* ---------- Ticket receipt (press and hold a table) ---------- */
section.has-ticket {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.won-receipt {
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow-y: auto;
  color: #eef3fb;
  background: transparent;
  border: 0;
}

.won-receipt::backdrop {
  background: rgba(5, 10, 20, 0.82);
}

.won-receipt-card {
  --tone: 61, 220, 132;
  position: relative;
  padding: 1.4rem 1.2rem 1rem;
  overflow: hidden;
  background: #0f1a2b;
  border-top: 5px solid rgb(var(--tone));
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.won-receipt-head {
  text-align: center;
}

.won-receipt-head p {
  margin: 0;
}

.won-receipt-brand {
  color: #3ddc84;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
}

.won-receipt-title {
  margin-top: 0.3rem !important;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.won-receipt-day {
  color: #9aabc4;
  font-size: 0.85rem;
}

.won-receipt-games {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px dashed rgba(154, 171, 196, 0.35);
}

.won-receipt-game {
  padding: 0.7rem 0;
  border-bottom: 1px dashed rgba(154, 171, 196, 0.35);
}

.won-receipt-game p {
  margin: 0;
}

.won-receipt-league {
  color: #9aabc4;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.won-receipt-teams {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.2rem !important;
  font-weight: 700;
}

.won-receipt-crest {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.won-receipt-crest.is-empty {
  display: none;
}

.won-receipt-score {
  padding: 0 0.35rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  font-size: 0.85rem;
}

.won-receipt-tip {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 0.25rem !important;
  color: #c7d2e2;
  font-size: 0.85rem;
}

.won-receipt-check {
  flex: 0 0 auto;
  color: #3ddc84;
  font-weight: 800;
}

/* Lost and pending tickets: red and amber, for the stamp, the top edge and each game. */
.won-receipt-card.is-lost {
  --tone: 239, 91, 95;
}

.won-receipt-card.is-pending {
  --tone: 245, 185, 66;
}

.won-receipt-check.is-lost {
  color: #ef5b5f;
}

.won-receipt-check.is-pending {
  color: #f5b942;
}

.won-receipt-foot {
  margin-top: 0.8rem;
}

.won-receipt-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0;
  color: #9aabc4;
}

.won-receipt-total strong {
  color: #fff;
  font-size: 1.3rem;
}

.won-receipt-site {
  margin: 0.8rem 0 0;
  color: #9aabc4;
  font-size: 0.8rem;
  text-align: center;
}

/* The "WON" stamp, centred under the date. */
.won-receipt-stamp {
  display: inline-block;
  margin-top: 0.7rem;
  padding: 0.05rem 0.8rem;
  color: rgba(var(--tone), 0.95);
  border: 3px solid rgba(var(--tone), 0.95);
  border-radius: 6px;
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  transform: rotate(-7deg);
  pointer-events: none;
}

.won-receipt-actions {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

/* The King Predict mark, large and faint behind the ticket. */
.won-receipt-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/logo-mark.svg?v=crown-1") center 55% / 78% auto no-repeat;
  opacity: 0.07;
  transform: rotate(-10deg);
  pointer-events: none;
}

.won-receipt-card > * {
  position: relative;
}

/* Day receipt: one row per table, with its WON / LOST / PENDING stamp. */
.won-receipt-table {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.85rem 0;
  border-bottom: 1px dashed rgba(154, 171, 196, 0.35);
}

.won-receipt-table-info p {
  margin: 0;
}

.won-receipt-table-name {
  font-weight: 800;
  letter-spacing: 0.03em;
}

.won-receipt-table-meta {
  margin-top: 0.15rem !important;
  color: #9aabc4;
  font-size: 0.82rem;
}

.won-receipt-pill {
  --tone: 61, 220, 132;
  flex: 0 0 auto;
  padding: 0.1rem 0.6rem;
  color: rgba(var(--tone), 0.95);
  border: 2px solid rgba(var(--tone), 0.95);
  border-radius: 5px;
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  transform: rotate(-5deg);
}

.won-receipt-pill.is-lost {
  --tone: 239, 91, 95;
}

.won-receipt-pill.is-pending {
  --tone: 245, 185, 66;
}

/* A smaller "Need help?" bubble, so it covers less of the games. */
.help-teaser {
  max-width: min(12.5rem, calc(100vw - 2rem));
  padding: 0.45rem 0.3rem 0.5rem 0.7rem;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.help-teaser-text {
  gap: 0.1rem;
}

.help-teaser-text strong {
  font-size: 0.82rem;
}

.help-teaser-text span {
  font-size: 0.72rem;
  line-height: 1.3;
}

.help-teaser-close {
  width: 1.3rem;
  height: 1.3rem;
  font-size: 0.95rem;
}

.help-teaser::after {
  width: 0.65rem;
  height: 0.65rem;
  bottom: -0.37rem;
}

.help-teaser.is-below::after {
  top: -0.37rem;
  bottom: auto;
}

/* "Need help?" in the support button's bright green, so it catches the eye. */
.help-teaser {
  color: var(--accent-ink);
  background: var(--accent);
  border: 0;
  box-shadow: 0 10px 24px rgba(16, 42, 76, 0.18), 0 0 0 3px rgba(29, 111, 232, 0.2);
  animation: help-teaser-in 0.35s cubic-bezier(0.22, 1, 0.36, 1), help-teaser-bob 2.8s ease-in-out 0.6s infinite;
}

.help-teaser::after {
  background: var(--accent);
  border: 0;
}

.help-teaser-text strong {
  color: var(--accent-ink);
  font-weight: 800;
}

.help-teaser-text span {
  color: var(--accent-ink);
  opacity: 0.85;
}

.help-teaser-close {
  color: var(--accent-ink);
  opacity: 0.75;
}

.help-teaser-close:hover,
.help-teaser-close:focus-visible {
  opacity: 1;
}

/* A gentle bob every few seconds. */
@keyframes help-teaser-bob {
  0%, 60%, 100% {
    transform: translateY(0);
  }
  70% {
    transform: translateY(-4px);
  }
  80% {
    transform: translateY(0);
  }
  88% {
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .help-teaser {
    animation: none;
  }
}

/* Recovery pop-up: no intro paragraph now, so the title keeps its own space. */
.recovery-title {
  margin-bottom: 1rem;
}

/* The day on screen ("22/11") on the left of every table's header. */
main > section > table > thead th {
  position: relative;
}

main > section > table > thead th:has(.table-date) {
  padding-left: 4.2rem;
  padding-right: 4.2rem;
}

.table-date {
  position: absolute;
  top: 50%;
  left: 0.75rem;
  z-index: 2;
  transform: translateY(-50%);
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.16);
  color: inherit;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

/* FAQ page: each question opens to show its answer. */
.faq-item {
  margin: 0.6rem 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface, rgba(255, 255, 255, 0.03));
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  color: var(--accent);
  font-size: 1.3rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 1rem 0.9rem;
}

.faq-answer p:first-child {
  margin-top: 0;
}

.faq-answer p:last-child,
.faq-answer ol:last-child,
.faq-answer ul:last-child {
  margin-bottom: 0;
}

.faq-answer ol {
  padding-left: 1.25rem;
}

/* Control Room slots card: Today / Tomorrow, then the date being set. */
.slot-days {
  max-width: 420px;
  margin: 1rem 0 0.5rem;
}

.slot-days + .control-date {
  margin-bottom: 1rem;
}

/* Helper mode (control-room-guard.js): only the checklist and the games tools. */
.helper-mode .app-nav-link:not([href="#today"]):not([href="#matches"]),
.helper-mode .nav-sheet,
.helper-mode .control-panel:not([data-panel="today"]):not([data-panel="matches"]),
.helper-mode .overview-grid {
  display: none !important;
}

.helper-badge {
  margin: 0.5rem 0 0;
  color: var(--accent);
  font-weight: 600;
}

/* Admin sign-in page: switch between the admin password and a helper's sign-in. */
.admin-mode-switch {
  margin: 0.25rem auto 1rem;
  padding: 0.4rem 0.8rem;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.helper-username input {
  width: 100%;
}

/* "Not selling: all plans" above the plan boxes in the slots card. */
.slot-paused-all {
  margin-bottom: 1rem;
  font-weight: 700;
}

/* Inside the Android app (og-app.js adds .in-app): it's already installed. */
.in-app #menu-install,
.in-app #install-card {
  display: none !important;
}

/* Control Room: the score from the fixture integration, in the games list. */
.admin-score {
  display: block;
  font-weight: 700;
  white-space: nowrap;
}

.admin-score.is-live {
  color: var(--accent);
}

.admin-score.is-off {
  color: var(--muted);
}

.admin-score + .admin-thumb {
  margin-top: 0.4rem;
}

/* Front page: flat paper, not a glow. The name stays, in the same type as the rest of the page. */
html[data-theme="light"] body.homepage,
html[data-theme="dark"] body.homepage,
body.homepage {
  background: var(--bg);
}

.homepage main {
  padding-top: 0.85rem;
}

.homepage .brand-lockup {
  margin: 0.2rem auto 0.7rem;
  font-family: "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0;
}

.homepage .brand-words {
  align-items: center;
  line-height: 1;
  text-align: center;
}

.homepage .brand-king {
  font-size: clamp(1.35rem, 4.2vw, 1.65rem);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.homepage .brand-predict {
  padding-left: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.homepage .welcome-toast strong {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
}

.legal-page .results-title {
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: clamp(1.45rem, 3vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0;
}

.homepage .header-end .sign-in {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  min-height: 36px;
  padding: 0.3rem 0.75rem 0.3rem 0.55rem;
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: none;
}

.homepage .header-end .sign-in::before {
  content: "";
  width: 0.95rem;
  height: 0.95rem;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 12a4 4 0 1 0-4-4 4 4 0 0 0 4 4zm0 2c-3.31 0-8 1.67-8 4v1h16v-1c0-2.33-4.69-4-8-4z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 12a4 4 0 1 0-4-4 4 4 0 0 0 4 4zm0 2c-3.31 0-8 1.67-8 4v1h16v-1c0-2.33-4.69-4-8-4z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.homepage .header-end .sign-in.is-signed-in {
  color: var(--text);
  background: transparent;
  border-color: var(--line);
}

.homepage .header-end .sign-in.is-signed-in::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M10 4H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h4v-2H6V6h4zm9.6 7.2-3.3-3.3-1.4 1.4 1.9 1.9H9v2h7.8l-1.9 1.9 1.4 1.4 3.3-3.3a1.2 1.2 0 0 0 0-1.7z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M10 4H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h4v-2H6V6h4zm9.6 7.2-3.3-3.3-1.4 1.4 1.9 1.9H9v2h7.8l-1.9 1.9 1.4 1.4 3.3-3.3a1.2 1.2 0 0 0 0-1.7z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.homepage .header-end .sign-in:hover,
.homepage .header-end .sign-in:focus-visible {
  background: rgba(29, 111, 232, 0.08);
  filter: none;
  outline: none;
  transform: none;
}

.homepage .header-end .sign-in.is-signed-in:hover,
.homepage .header-end .sign-in.is-signed-in:focus-visible {
  color: #b42318;
  border-color: #b42318;
  background: rgba(180, 35, 24, 0.06);
  filter: none;
}

.homepage .day-switcher {
  gap: 0;
  max-width: 26rem;
  margin: 0.15rem auto 1.1rem;
  padding: 3px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.homepage button:not(:disabled),
.homepage .plan-button,
.homepage .sign-in {
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.homepage .pop-in {
  animation: none;
}

.homepage button:not(:disabled):not(.day-button):active,
.homepage .plan-button:active,
.homepage .sign-in:active {
  transform: scale(0.98);
  filter: none;
  box-shadow: none;
  transition-duration: 120ms;
}

.homepage .day-switcher .day-button,
.homepage .day-switcher .day-button:hover,
.homepage .day-switcher .day-button:focus-visible,
.homepage .day-switcher .day-button:active {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  transform: none;
  filter: none;
  transition: background-color 120ms ease;
}

.homepage .day-switcher .day-button:hover,
.homepage .day-switcher .day-button:focus-visible {
  background: rgba(29, 111, 232, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  .homepage button,
  .homepage .plan-button,
  .homepage .sign-in,
  .homepage .day-button {
    transition: none;
  }

  .homepage button:active,
  .homepage .plan-button:active,
  .homepage .sign-in:active {
    transform: none;
  }
}

.homepage .day-switcher .day-button[aria-pressed="true"],
.homepage .day-switcher .day-button[aria-pressed="true"]:hover,
.homepage .day-switcher .day-button[aria-pressed="true"]:focus-visible,
.homepage .day-switcher .day-button[aria-pressed="true"]:active {
  color: #fff;
  background: var(--accent);
  filter: none;
  transform: none;
}

.homepage main > section > table,
.homepage .vip-table,
.homepage .vvip-table {
  border-color: var(--line);
  border-top-width: 3px;
  border-radius: 8px;
}

.homepage #free > table { border-top-color: var(--accent); }
.homepage .vip-table { border-top-color: #c4a24a; }
.homepage .vvip-table { border-top-color: #8b6bb8; }

.homepage main > section > table thead th,
.homepage .vip-table thead th,
.homepage .vvip-table thead th {
  color: var(--accent);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.homepage .vip-table thead th { color: #8a6414; }
.homepage .vvip-table thead th { color: #6446a8; }

html[data-theme="dark"] .homepage .vip-table thead th { color: #e6c15a; }
html[data-theme="dark"] .homepage .vvip-table thead th { color: #c4b0f0; }
html[data-theme="dark"] .homepage #free > table thead th { color: #8eb7ff; }

.homepage .table-date {
  padding: 0;
  background: transparent;
  border-radius: 0;
  color: var(--muted);
}

.homepage .plan-button,
.homepage .table-cta,
.homepage .vip-plan,
.homepage .vvip-plan {
  color: #fff;
  background: var(--accent);
  border-radius: 8px;
  box-shadow: none;
}

.homepage .table-cta {
  padding-right: 2.75rem;
  padding-left: 1rem;
}

.homepage .plan-button:hover,
.homepage .plan-button:focus-visible,
.homepage .sign-in:hover,
.homepage .sign-in:focus-visible {
  transform: none;
  box-shadow: none;
  outline: none;
  filter: brightness(1.06);
}

.homepage #vip-slots,
.homepage #vvip-slots {
  color: var(--muted);
}

.homepage .testimonials-title {
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
}

.homepage .review-open {
  border: 0;
  border-radius: 0;
  padding: 0.45rem 0;
  background: none;
  box-shadow: none;
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.homepage .review-open:hover,
.homepage .review-open:focus-visible,
.homepage .review-open:active {
  transform: none;
  box-shadow: none;
  border: 0;
}

.homepage main hr {
  margin: 1.35rem 0;
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  max-width: 1040px;
  margin: 0 auto;
}

.footer-brandline {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  text-decoration: none;
}

.footer-bar .footer-mark {
  width: 36px;
  height: 36px;
}

.footer-bar .footer-wordmark {
  font-size: 0.95rem;
}

.footer-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
}

.footer-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.95rem;
}

.footer-inline .footer-heading {
  flex: 0 0 100%;
  margin: 0 0 0.15rem;
}

.footer-inline a,
.footer-inline button {
  padding: 0.4rem 0;
  color: var(--text);
  background: none;
  border: 0;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.footer-inline a:hover,
.footer-inline a:focus-visible,
.footer-inline button:hover,
.footer-inline button:focus-visible,
.footer-inline button:active {
  color: var(--accent);
  transform: none;
  box-shadow: none;
  outline: none;
}

.site-footer .social-heading {
  margin: 0;
}

.site-footer .copyright {
  text-align: center;
}

.site-footer .footer-base .social-links {
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
  margin: 0.15rem 0 0;
}

.site-footer .footer-base .social-link {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 8px;
}

.site-footer .footer-base .social-whatsapp { background: #25d366; }
.site-footer .footer-base .social-telegram { background: #229ed9; }
.site-footer .footer-base .social-tiktok { background: #111; }

.site-footer .footer-base .social-mark {
  width: 1.15rem;
  height: 1.15rem;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.site-footer .footer-base .social-link:hover,
.site-footer .footer-base .social-link:focus-visible {
  filter: brightness(1.08);
  border: 0;
  color: inherit;
}

/* Menu: a quiet panel under the header. Same items, grouped and easy to scan. */
.homepage .site-menu,
.homepage .site-menu[hidden] {
  top: 4.15rem;
  left: 0.75rem;
  width: min(18.5rem, calc(100vw - 1.5rem));
  height: auto;
  max-height: calc(100dvh - 5rem);
  padding: 0.85rem 0.7rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 18px 40px rgba(16, 42, 76, 0.12);
  gap: 0.85rem;
  transform: none;
}

.homepage .site-menu[hidden] {
  display: none;
  visibility: hidden;
}

.homepage .menu-title {
  margin: 0 0.35rem;
  padding: 0 0 0.7rem;
  border-bottom: 1px solid var(--line);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
  color: var(--text);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.homepage .menu-group {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.homepage .menu-group:not(:has(.menu-item:not([hidden]))) {
  display: none;
}

.homepage .menu-label {
  margin: 0 0.35rem 0.2rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.homepage .site-menu > *,
.homepage .site-menu[hidden] > * {
  opacity: 1;
  translate: none;
  transition: none;
}

.homepage .site-menu .menu-item {
  gap: 0.7rem;
  min-height: 2.5rem;
  padding: 0.4rem 0.45rem;
  border: 0;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  background: transparent;
}

.homepage .site-menu .menu-item:hover,
.homepage .site-menu .menu-item:focus-visible,
.homepage .site-menu .menu-item:active {
  padding-left: 0.45rem;
  border: 0;
  background: rgba(29, 111, 232, 0.08);
  transform: none;
  box-shadow: none;
}

.homepage .site-menu .menu-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.homepage .site-menu .menu-item.is-active {
  color: var(--text);
  background: rgba(29, 111, 232, 0.1);
}

.homepage .site-menu .menu-icon,
.homepage .site-menu .menu-icon.icon-free,
.homepage .site-menu .menu-icon.icon-vip,
.homepage .site-menu .menu-icon.icon-vvip {
  width: 1.15rem;
  height: 1.15rem;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  transform: none;
}

.homepage .site-menu .menu-item:hover .menu-icon,
.homepage .site-menu .menu-item:focus-visible .menu-icon {
  transform: none;
  color: var(--accent);
}

.homepage .menu-plan {
  font-weight: 800;
}

.homepage .menu-plan-vip {
  color: #8a6414;
}

.homepage .menu-plan-vvip {
  color: #6446a8;
}

html[data-theme="dark"] .homepage .menu-plan-vip {
  color: #e6c15a;
}

html[data-theme="dark"] .homepage .menu-plan-vvip {
  color: #c4b0f0;
}
