@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  scrollbar-color: rgba(255, 255, 255, 0.24) #050505;
}

* {
  scrollbar-color: rgba(255, 255, 255, 0.24) transparent;
  scrollbar-width: thin;
}

*::-webkit-scrollbar {
  width: 0.55rem;
  height: 0.55rem;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.34);
  background-clip: padding-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: #000;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.42) 48%, rgba(0, 0, 0, 0.84)),
    var(--safe-area-bg-image, #000);
  background-position: center;
  background-size: cover;
  pointer-events: none;
}

.intro-header > div {
  padding-top: calc(1.25rem + env(safe-area-inset-top));
}

body.menu-open {
  overflow: hidden;
}

.hero-bg-layer {
  position: absolute;
  inset: -5rem 0;
  transform: translate3d(0, var(--hero-bg-y, 0px), 0) scale(1.03);
  will-change: transform;
}

.hero-fold {
  min-height: 100svh;
}

.hero-fold::before {
  content: "";
  position: fixed;
  inset: calc(env(safe-area-inset-top) * -1) 0 calc(env(safe-area-inset-bottom) * -1);
  z-index: -2;
  display: none;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.42) 48%, rgba(0, 0, 0, 0.84)),
    var(--safe-area-bg-image);
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
  pointer-events: none;
}

.hero-bg {
  opacity: 0;
  filter: saturate(1.08) contrast(1.08);
  transform: scale(1.08);
  transform-origin: center;
  transition:
    opacity 1600ms ease,
    filter 1600ms ease;
  will-change: transform, filter, opacity;
}

.hero-bg.is-active {
  animation: bg-cinema 6800ms cubic-bezier(0.19, 1, 0.22, 1) both;
  opacity: 1;
}

.intro-header {
  z-index: 2000;
  animation: rise-in 900ms cubic-bezier(0.19, 1, 0.22, 1) 700ms both;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.intro-header > div {
  pointer-events: auto;
}

.header-left,
.header-actions {
  display: flex;
  align-items: center;
}

.header-left {
  min-width: 0;
  gap: clamp(1rem, 2.6vw, 1.7rem);
}

.header-actions {
  gap: 0.5rem;
}

.header-logo-button {
  display: inline-flex;
  align-items: center;
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  cursor: pointer;
}

.public-nav {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.25rem);
}

.public-nav button {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(250, 250, 250, 0.72);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  padding: 0;
  text-decoration: none;
  transition: color 160ms ease;
}

.public-nav button:hover {
  color: #f2a900;
}

.hamburger {
  position: fixed;
  z-index: 2101;
  display: none;
  flex-direction: column;
  gap: 4px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-trigger {
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  width: 3.25rem;
  height: 3.25rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1999;
  display: flex;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.98);
  opacity: 0;
  padding: 2rem;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.mobile-menu-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-align: center;
}

.mobile-menu-cta {
  margin-top: 0.25rem;
  color: #f2a900;
}

@media (max-width: 900px) {
  .intro-header > div {
    padding-top: calc(1.25rem + env(safe-area-inset-top));
  }

  .hero-fold::before {
    display: block;
  }

  .public-nav {
    display: none;
  }

  .header-actions > .member-button {
    display: inline-flex;
  }

  .mobile-menu-trigger {
    display: flex;
  }
}

.intro-copy {
  max-width: 100%;
  opacity: var(--hero-copy-fade, 1);
  transform: translate3d(0, var(--hero-copy-y, 0px), 0);
  will-change: transform, opacity;
}

.hero-title {
  max-width: 100%;
  font-size: clamp(1.72rem, 8.3vw, 6rem);
}

.hero-title-line {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  will-change: clip-path, filter, opacity, transform;
}

.hero-title-line-primary {
  animation: cinematic-word-in 1250ms cubic-bezier(0.19, 1, 0.22, 1) 760ms both;
}

.hero-title-line-secondary {
  animation: cinematic-word-in 1250ms cubic-bezier(0.19, 1, 0.22, 1) 1420ms both;
}

.benefits-cue {
  display: inline-flex;
  width: max-content;
  flex-direction: column-reverse;
  align-items: center;
  align-self: center;
  gap: 0.34rem;
  padding-bottom: 0.2rem;
  color: rgba(250, 250, 250, 0.72);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-decoration: none;
  text-transform: uppercase;
  animation: benefits-cue-in 900ms cubic-bezier(0.19, 1, 0.22, 1) 1900ms both;
}

.mobile-swipe-cue {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 3.25rem;
}

.hand-icon {
  width: 2.45rem;
  height: auto;
  fill: #fafafa;
  filter: drop-shadow(0 0 0.55rem rgba(250, 250, 250, 0.18));
  animation: swipe-up-cue 2s ease-in-out infinite;
}

.desktop-scroll-cue {
  display: none;
  width: 1.1rem;
  height: 1.72rem;
  justify-content: center;
  border: 1px solid rgba(250, 250, 250, 0.42);
  border-radius: 999px;
}

.desktop-scroll-cue span {
  margin-top: 0.34rem;
  width: 0.2rem;
  height: 0.42rem;
  border-radius: 999px;
  background: #f2a900;
  animation: mouse-wheel-cue 1500ms ease-in-out infinite;
}

@media (min-width: 768px) {
  .benefits-cue {
    flex-direction: row;
    gap: 0.78rem;
  }

  .mobile-swipe-cue {
    display: none;
  }

  .desktop-scroll-cue {
    display: flex;
  }
}

.members-get-section {
  position: relative;
  display: grid;
  min-height: 100svh;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 50%, rgba(242, 169, 0, 0.08), transparent 24rem),
    #050505;
}

.members-get-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 38%, rgba(0, 0, 0, 0.6) 72%, rgba(0, 0, 0, 0.95) 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.78), transparent 22%, transparent 72%, rgba(0, 0, 0, 0.92));
}

.members-get-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(250, 250, 250, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250, 250, 250, 0.022) 1px, transparent 1px);
  background-size: 6rem 6rem;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.46), transparent 70%);
}

.members-pattern-layer {
  position: absolute;
  inset: -11rem 34% -11rem -7rem;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(1.25rem, 1fr));
  gap: clamp(0.55rem, 1.2vw, 1rem);
  align-items: center;
  justify-items: center;
  opacity: 0.24;
  pointer-events: none;
  transform: translate3d(0, var(--members-pattern-y, 0px), 0) rotate(-24deg) scale(1.06);
  mask-image:
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.9), transparent 72%),
    linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.85) 20%, rgba(0, 0, 0, 0.85) 76%, transparent 100%);
  will-change: transform;
}

.members-pattern-mark {
  display: grid;
  width: clamp(1rem, 2.62vw, 2.1rem);
  aspect-ratio: 1;
  place-items: center;
  opacity: 0.36;
  transform: rotate(var(--members-pattern-rotate, 0deg)) scale(1);
  transform-origin: center;
  will-change: transform;
}

.members-pattern-mark:nth-child(3n) {
  opacity: 0.28;
}

.members-pattern-mark:nth-child(4n) {
  opacity: 0.24;
}

.members-pattern-mark img {
  width: 100%;
  height: auto;
  filter: brightness(1.4) saturate(0) drop-shadow(0 0 1.1rem rgba(242, 169, 0, 0.12));
}

.members-get-inner {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(100%, 78rem);
  margin-inline: auto;
  gap: clamp(1.8rem, 6vw, 5.5rem);
  padding: clamp(3rem, 7vw, 5.5rem) 1rem;
}

.members-get-title {
  max-width: 12ch;
  font-size: clamp(3rem, 9vw, 6.8rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.84;
  text-transform: uppercase;
}

.members-get-pricing {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-top: 1.1rem;
}

.members-get-price {
  width: fit-content;
  border: 1px solid rgba(242, 169, 0, 0.34);
  border-radius: 999px;
  background: rgba(242, 169, 0, 0.08);
  padding: 0.58rem 0.82rem;
  color: rgba(242, 169, 0, 0.95);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.btc-price-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(247, 147, 26, 0.55);
  border-radius: 999px;
  background: rgba(247, 147, 26, 0.16);
  padding: 0.58rem 0.82rem;
  color: #f7931a;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px rgba(255, 213, 139, 0.18),
    0 0 1.6rem rgba(247, 147, 26, 0.08);
}

.members-get-list {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.members-get-item {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 1rem;
  align-items: start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  padding: clamp(0.92rem, 2.2vw, 1.28rem) 0;
}

.members-get-item > span {
  display: grid;
  min-width: 2.4rem;
  color: rgba(242, 169, 0, 0.92);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.9;
}

.list-icon {
  display: grid;
  width: 1.35rem;
  min-width: 1.35rem;
  aspect-ratio: 1;
  place-items: center;
  margin-top: 0.1rem;
}

.list-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: #fafafa;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.members-get-item h3 {
  margin: 0;
  color: #fafafa;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.members-get-item p {
  margin: 0.42rem 0 0;
  color: rgba(250, 250, 250, 0.58);
  font-size: 0.94rem;
  line-height: 1.62;
}

@media (min-width: 900px) {
  .members-get-inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(26rem, 0.74fr);
    align-items: center;
    padding-inline: 3rem;
  }
}

@media (max-width: 700px) {
  .members-get-section {
    min-height: 100svh;
    align-items: center;
  }

  .members-get-inner {
    padding-block: 5.5rem 3rem;
  }

  .members-pattern-layer {
    inset: -7rem 8% -7rem -5rem;
    grid-template-columns: repeat(6, minmax(2.1rem, 1fr));
    gap: 0.78rem;
    opacity: 0.18;
  }

  .members-pattern-mark {
    width: 2.1rem;
  }
}

.facilities-section {
  position: relative;
  display: grid;
  min-height: 100svh;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 46%, rgba(247, 147, 26, 0.1), transparent 24rem),
    linear-gradient(180deg, #050505, #080808 44%, #030303);
}

.facilities-bg-layer {
  position: absolute;
  inset: -5rem 0;
  z-index: 0;
  overflow: hidden;
  transform: translate3d(0, var(--facilities-bg-y, 0px), 0);
  will-change: transform;
}

.facilities-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: saturate(0.78) contrast(1.18) brightness(0.55) blur(10px);
  transform: scale(1.12);
  will-change: opacity, filter, transform;
}

.facilities-bg.is-active {
  animation: bg-cinema 7600ms cubic-bezier(0.19, 1, 0.22, 1) both;
}

.facilities-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(250, 250, 250, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250, 250, 250, 0.018) 1px, transparent 1px);
  background-size: 5rem 5rem;
  mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.72), transparent 72%);
}

.facilities-section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, rgba(247, 147, 26, 0.12), transparent 34%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.56) 52%, rgba(0, 0, 0, 0.84)),
    radial-gradient(circle at 50% 50%, transparent 0 42%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.88), transparent 18%, transparent 80%, rgba(0, 0, 0, 0.9));
}

.facilities-inner {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 78rem);
  margin-inline: auto;
  gap: clamp(2rem, 7vw, 6rem);
  padding: clamp(4rem, 8vw, 6rem) 1rem;
}

.facilities-title {
  margin: 0;
  color: #fafafa;
  font-size: clamp(3.3rem, 10vw, 8rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.82;
  text-align: left;
  text-transform: uppercase;
}

.facilities-list {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.facilities-item {
  width: 100%;
  appearance: none;
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 1rem;
  align-items: start;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: clamp(0.92rem, 2.2vw, 1.28rem) 0;
  text-align: left;
}

.facilities-item span {
  display: grid;
  min-width: 2.4rem;
  color: #f7931a;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.9;
}

.facilities-item h3 {
  margin: 0;
  color: #fafafa;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.facilities-item p {
  margin: 0.42rem 0 0;
  color: rgba(250, 250, 250, 0.58);
  font-size: 0.94rem;
  font-weight: 400;
  line-height: 1.62;
}

.facilities-copy {
  transform: translate3d(0, var(--facilities-copy-y, 0px), 0);
  will-change: transform;
}

.facilities-list {
  transform: translate3d(0, var(--facilities-list-y, 0px), 0);
  will-change: transform;
}

@media (min-width: 900px) {
  .facilities-inner {
    grid-template-columns: minmax(26rem, 0.78fr) minmax(0, 0.92fr);
    align-items: center;
    padding-inline: 3rem;
  }

  .facilities-copy {
    display: grid;
    justify-items: end;
  }

  .facilities-title {
    text-align: right;
  }
}

@media (max-width: 899px) {
  .facilities-copy {
    order: -1;
  }
}

@media (max-width: 700px) {
  .facilities-section {
    min-height: 100svh;
  }

  .facilities-inner {
    padding-block: 5.5rem 3rem;
  }
}

.events-page {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background:
    linear-gradient(180deg, #030303, #080808 48%, #020202),
    #050505;
  padding-top: 5.5rem;
}

.events-inner {
  display: grid;
  width: min(100%, 78rem);
  margin-inline: auto;
  gap: clamp(1.6rem, 5vw, 4rem);
  padding: clamp(4rem, 8vw, 6rem) 1rem;
}

.events-copy h2 {
  margin: 0;
  color: #fafafa;
  font-size: clamp(2.8rem, 8vw, 6.8rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.86;
  text-transform: uppercase;
}

.events-copy > p:last-child {
  max-width: 34rem;
  margin: 1rem 0 0;
  color: rgba(250, 250, 250, 0.62);
  font-size: 1rem;
  line-height: 1.7;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  width: min(100%, 78rem);
  margin: 0 auto;
  gap: 1rem;
  padding: 0 1rem clamp(2rem, 5vw, 3.5rem);
}

.event-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.event-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.08);
}

.event-card-body {
  padding: clamp(1rem, 2.5vw, 1.35rem);
}

.event-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.event-card-meta span {
  border: 1px solid rgba(242, 169, 0, 0.34);
  border-radius: 999px;
  background: rgba(242, 169, 0, 0.08);
  color: rgba(242, 169, 0, 0.95);
  padding: 0.38rem 0.58rem;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.event-card h3 {
  margin: 0;
  color: #fafafa;
  font-size: 1rem;
  font-weight: 950;
  text-transform: uppercase;
}

.event-card p {
  margin: 0.55rem 0 0;
  color: rgba(250, 250, 250, 0.62);
  line-height: 1.62;
}

.event-enquiry-form {
  display: grid;
  gap: 0.85rem;
  width: min(100%, 42rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: clamp(1rem, 2.5vw, 1.35rem);
}

.event-enquiry-shell {
  display: flex;
  width: min(100%, 78rem);
  margin: 0 auto;
  justify-content: center;
  padding: 0 1rem clamp(4rem, 8vw, 6rem);
}

.event-enquiry-form h3 {
  margin: 0 0 0.3rem;
  color: #fafafa;
  font-size: 1.05rem;
  font-weight: 950;
  text-transform: uppercase;
}

.event-enquiry-form label {
  display: grid;
  gap: 0.35rem;
}

.event-enquiry-form label span {
  color: rgba(250, 250, 250, 0.64);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.event-enquiry-form input,
.event-enquiry-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.32);
  color: #fafafa;
  padding: 0.72rem 0.8rem;
  outline: none;
}

.event-enquiry-form textarea {
  resize: vertical;
}

.event-enquiry-message {
  margin: 0;
  color: rgba(242, 169, 0, 0.95);
  font-size: 0.82rem;
  font-weight: 800;
}

@media (min-width: 900px) {
  .events-inner {
    grid-template-columns: minmax(0, 0.85fr) minmax(28rem, 0.75fr);
    align-items: start;
    padding-inline: 3rem;
  }
}

.film-grain {
  background-image:
    linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.08) 46%, transparent 54%),
    repeating-radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 4px);
  background-size:
    180% 180%,
    11px 11px;
  animation: grain-shift 800ms steps(2, end) infinite;
}

.scanline {
  animation: scanline 1800ms cubic-bezier(0.19, 1, 0.22, 1) 500ms both;
  box-shadow: 0 0 46px rgba(242, 169, 0, 0.86);
}

.member-button,
.primary-action,
.secondary-action,
.delete-member {
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.member-button,
.primary-action {
  border: 1px solid rgba(242, 169, 0, 0.78);
  background: #f2a900;
  color: #080808;
  padding: 0.78rem 1rem;
}

.member-button:hover,
.primary-action:hover {
  background: #ffd166;
  transform: translateY(-1px);
}

.ghost-member-button {
  border-color: rgba(250, 250, 250, 0.36);
  background: transparent;
  color: #fafafa;
}

.ghost-member-button:hover {
  border-color: rgba(250, 250, 250, 0.62);
  background: rgba(250, 250, 250, 0.08);
  color: #fafafa;
}

.secondary-action,
.delete-member {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.76);
  padding: 0.72rem 0.92rem;
}

.signin-options {
  display: grid;
  gap: 0.75rem;
}

.signin-option {
  display: flex;
  width: 100%;
  min-height: 4.4rem;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.24rem;
  text-align: left;
}

.signin-option small {
  color: rgba(8, 8, 8, 0.68);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
}

.signin-loading-label {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 0.55rem;
  line-height: 1;
}

.signin-loading-label img {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 0 0.45rem rgba(8, 8, 8, 0.35));
  animation: card-logo-spin 900ms cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.button-spinner-only {
  display: inline-grid;
  width: 100%;
  place-items: center;
}

.button-spinner-only img {
  width: 1.45rem;
  height: 1.45rem;
  object-fit: contain;
  filter: brightness(0) drop-shadow(0 0 0.35rem rgba(8, 8, 8, 0.32));
  animation: card-logo-spin 900ms cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.modal-close {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.modal-close::before,
.modal-close::after {
  content: '';
  position: absolute;
  width: 1rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
}

.modal-close::before {
  transform: rotate(45deg);
}

.modal-close::after {
  transform: rotate(-45deg);
}

.modal-close:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.delete-member {
  color: rgb(252, 165, 165);
}

.compact-action {
  align-items: center;
  padding: 0.78rem 0.9rem;
}

.card-backup-actions {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.card-note {
  max-width: 34rem;
  margin-inline: auto;
  border: 1px solid rgba(242, 169, 0, 0.2);
  border-radius: 8px;
  background: rgba(242, 169, 0, 0.07);
  padding: 0.9rem 1rem;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.9rem;
  line-height: 1.55;
}

.member-keys {
  display: grid;
  gap: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  padding: 1rem;
}

.member-keys div {
  display: grid;
  gap: 0.35rem;
}

.member-keys a {
  color: #f2a900;
  font-weight: 800;
}

.member-key-row {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.member-key-row span {
  grid-column: 1 / -1;
}

.member-keys span {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.member-keys code {
  min-width: 0;
  overflow-wrap: anywhere;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.34);
  padding: 0.7rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
}

.member-key-row .secondary-action {
  display: grid;
  width: 4.25rem;
  min-width: 4.25rem;
  place-items: center;
  align-self: stretch;
  padding-inline: 0.8rem;
}

.modal-footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 0.75rem;
}

.modal-footer > button {
  width: 100%;
  min-width: 0;
}

.modal-footer > button:only-child {
  grid-column: 1 / -1;
}

.modal-footer.install-step-footer {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.modal-footer.install-step-footer .primary-action {
  grid-column: auto;
  min-height: 3.85rem;
  white-space: nowrap;
}

.skip-app-action {
  grid-column: 1 / -1;
  justify-self: center;
  width: auto;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  cursor: pointer;
  padding: 0.35rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 160ms ease, background-color 160ms ease;
}

.skip-app-action:hover {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.86);
}

.validation-message {
  margin-top: 1rem;
}

.membership-area,
.admin-area {
  background:
    radial-gradient(circle at 15% 0%, rgba(242, 169, 0, 0.12), transparent 30rem),
    #050505;
}

.admin-area {
  --admin-page-x: clamp(1rem, 4vw, 3rem);
  --admin-content-gap: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-shell {
  width: 100%;
  min-height: 100svh;
  padding: 0 var(--admin-page-x) 2rem;
}

.admin-login-area {
  min-height: 100svh;
  background:
    radial-gradient(circle at 50% 0%, rgba(242, 169, 0, 0.16), transparent 28rem),
    #030303;
}

.admin-login-card {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 34%),
    rgba(8, 8, 8, 0.95);
  padding: clamp(1.25rem, 5vw, 2rem);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.54);
}

.section-kicker {
  margin-bottom: 0.85rem;
  color: rgba(242, 169, 0, 0.9);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.section-title {
  max-width: 42rem;
  font-size: clamp(2.4rem, 8vw, 5.8rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.88;
  text-transform: uppercase;
}

.section-copy {
  margin-top: 1.3rem;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.64);
  line-height: 1.75;
}

.member-card-shell,
.empty-membership,
.empty-admin,
.admin-stat,
.info-panel {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.member-card-shell,
.empty-membership {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 26rem;
  padding: 1.5rem;
}

.empty-membership,
.empty-admin {
  color: rgba(255, 255, 255, 0.55);
}

.empty-admin {
  padding: 2rem;
  text-align: center;
}

.l484-card {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 1.586 / 1;
  width: min(100%, 31rem);
  overflow: hidden;
  border: 1px solid rgba(74, 43, 18, 0.5);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(46, 22, 9, 0.2), transparent 16%, rgba(255, 236, 190, 0.08) 46%, transparent 68%, rgba(47, 22, 9, 0.18)),
    linear-gradient(180deg, rgba(255, 238, 203, 0.12), transparent 40%, rgba(55, 25, 8, 0.12)),
    url('/images/pattern.jpg');
  background-size:
    auto,
    auto,
    cover;
  background-position: center;
  padding: clamp(1rem, 4vw, 1.6rem);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.42),
    inset 0 1px rgba(255, 242, 210, 0.34),
    inset 0 -1px rgba(53, 26, 12, 0.28);
}

.card-shine {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, transparent 0 38%, rgba(255, 235, 190, 0.12) 48%, transparent 58%),
    linear-gradient(180deg, rgba(41, 20, 8, 0.08), transparent 30%, rgba(43, 20, 8, 0.12));
  opacity: 0.5;
  mix-blend-mode: soft-light;
}

.card-reveal-stage {
  position: relative;
  width: 100%;
}

.card-reveal-stage.is-revealing {
  isolation: isolate;
}

.card-reveal-stage.is-revealing .l484-card {
  animation: cinematic-card-in 1500ms cubic-bezier(0.19, 1, 0.22, 1) 740ms both;
}

.card-reveal-stage.is-revealing::before,
.card-reveal-stage.is-revealing::after {
  content: '';
  position: absolute;
  inset: -18%;
  z-index: 6;
  pointer-events: none;
  opacity: 0;
}

.card-reveal-stage.is-revealing::before {
  background:
    linear-gradient(112deg, transparent 32%, rgba(255, 255, 240, 0.9) 46%, rgba(242, 169, 0, 0.58) 51%, transparent 66%);
  filter: blur(0.18rem);
  mix-blend-mode: screen;
  transform: translate3d(-48%, 14%, 0) rotate(-9deg);
  animation: cinematic-card-sweep 1300ms cubic-bezier(0.19, 1, 0.22, 1) 720ms both;
}

.card-reveal-stage.is-revealing::after {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(242, 169, 0, 0.22), transparent 38%),
    linear-gradient(112deg, transparent 38%, rgba(255, 210, 96, 0.2), transparent 62%);
  filter: blur(1rem);
  mix-blend-mode: screen;
  transform: scale(0.96);
  animation: cinematic-card-bloom 1600ms ease-out 520ms both;
}

.card-spinner {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  pointer-events: none;
  animation: card-spinner-out 800ms ease 620ms forwards;
}

.card-spinner img {
  width: clamp(2.4rem, 13vw, 4.2rem);
  height: auto;
  filter:
    drop-shadow(0 0 0.6rem rgba(242, 169, 0, 0.62))
    drop-shadow(0 0 2rem rgba(0, 0, 0, 0.8));
  animation: card-logo-spin 900ms cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.burned-card-logo {
  width: min(42%, 9.5rem);
  height: auto;
  opacity: 0.94;
  filter:
    brightness(0)
    saturate(1)
    sepia(1)
    drop-shadow(0 1px 0 rgba(255, 224, 169, 0.12))
    drop-shadow(0 -1px 0 rgba(18, 7, 2, 0.72))
    drop-shadow(0 0 4px rgba(35, 12, 3, 0.5));
  mix-blend-mode: multiply;
}

.card-status {
  border: 1px solid rgba(41, 20, 9, 0.22);
  border-radius: 999px;
  padding: 0.35rem 0.55rem;
  color: rgba(34, 18, 10, 0.78);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px rgba(255, 236, 190, 0.22),
    inset 0 -1px rgba(38, 16, 6, 0.16);
  text-shadow:
    0 1px rgba(255, 224, 168, 0.14),
    0 -1px rgba(35, 14, 5, 0.34);
}

.card-status.is-pending {
  border-color: rgba(55, 32, 12, 0.28);
  color: rgba(63, 35, 10, 0.82);
}

.card-status.is-active {
  border-color: rgba(26, 77, 42, 0.28);
  color: rgba(18, 66, 34, 0.84);
}

.card-status.is-suspended {
  border-color: rgba(96, 28, 24, 0.28);
  color: rgba(82, 24, 18, 0.84);
}

.card-number {
  margin: 0;
  width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(1.35rem, 6.4cqw, 2.35rem);
  font-weight: 800;
  letter-spacing: clamp(0.008em, 0.12cqw, 0.045em);
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  transform-origin: center;
  color: rgba(28, 15, 8, 0.82);
  text-shadow:
    0 1px rgba(255, 224, 168, 0.13),
    0 -1px rgba(20, 7, 2, 0.58),
    0 0 3px rgba(39, 13, 3, 0.32);
  mix-blend-mode: multiply;
}

.card-midline {
  position: absolute;
  left: clamp(1rem, 4vw, 1.6rem);
  right: clamp(1rem, 4vw, 1.6rem);
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-46%);
}

.card-label {
  color: rgba(39, 21, 12, 0.58);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.card-value {
  margin-top: 0.25rem;
  color: rgba(25, 14, 8, 0.84);
  font-size: clamp(0.7rem, 2vw, 0.9rem);
  font-weight: 800;
  text-transform: uppercase;
  text-shadow:
    0 1px rgba(255, 224, 168, 0.12),
    0 -1px rgba(20, 7, 2, 0.52),
    0 0 3px rgba(39, 13, 3, 0.28);
  mix-blend-mode: multiply;
}

.admin-hero {
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
}

.admin-stat {
  min-width: 6rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  padding: 0.78rem 0.9rem;
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 120;
  margin-right: calc(var(--admin-page-x) * -1);
  margin-bottom: var(--admin-content-gap);
  margin-left: calc(var(--admin-page-x) * -1);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(0.45rem, 1.2vw, 1rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 5, 5, 0.88);
  padding: 0.65rem var(--admin-page-x);
  backdrop-filter: blur(20px);
}

.admin-profile {
  position: relative;
}

.admin-profile-button {
  display: flex;
  align-items: center;
  gap: clamp(0.45rem, 0.8vw, 0.75rem);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  padding: 0.55rem clamp(0.5rem, 0.8vw, 0.7rem);
  color: white;
  text-align: left;
}

.admin-avatar {
  display: grid;
  width: clamp(1.9rem, 2.4vw, 2.25rem);
  height: clamp(1.9rem, 2.4vw, 2.25rem);
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: white;
  font-size: 0.86rem;
  font-weight: 900;
}

.admin-profile-text {
  display: grid;
  gap: 0.1rem;
}

.admin-profile-text strong {
  font-size: clamp(0.68rem, 0.9vw, 0.82rem);
  line-height: 1;
}

.admin-profile-text small {
  color: rgba(255, 255, 255, 0.48);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(0.58rem, 0.75vw, 0.68rem);
}

.admin-profile-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.55rem);
  width: 15rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(8, 8, 8, 0.98);
  padding: 0.55rem;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.admin-profile-menu p {
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.65rem;
  color: rgba(255, 255, 255, 0.52);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
}

.admin-profile-menu button {
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 0.75rem 0.65rem;
  color: rgb(252, 165, 165);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-align: left;
  text-transform: uppercase;
}

.admin-profile-menu button:hover {
  background: rgba(255, 255, 255, 0.07);
}

.admin-stat strong,
.admin-stat span {
  display: block;
}

.admin-stat strong {
  font-size: 1rem;
}

.admin-stat span {
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.admin-tabbar {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: clamp(0.22rem, 0.7vw, 0.5rem);
  min-width: 0;
}

.mobile-admin-tabbar {
  display: none;
}

.admin-tab {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  padding: 0.72rem 0.78rem;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-align: left;
  text-transform: uppercase;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.desktop-admin-tabbar .admin-tab {
  gap: clamp(0.22rem, 0.5vw, 0.42rem);
  padding: 0.62rem clamp(0.28rem, 0.7vw, 0.5rem);
  font-size: clamp(0.5rem, 0.75vw, 0.62rem);
  letter-spacing: clamp(0.055em, 0.15vw, 0.1em);
}

.admin-tab svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.admin-tab span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-tab strong {
  display: grid;
  min-width: 1.45rem;
  height: 1.45rem;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.62rem;
  letter-spacing: 0;
}

.admin-tab:hover,
.admin-tab.active {
  border-color: rgba(242, 169, 0, 0.35);
  background: rgba(242, 169, 0, 0.12);
  color: #fafafa;
}

.admin-tab.active strong {
  background: #f2a900;
  color: #050505;
}

.admin-panel-surface,
.admin-member-list,
.admin-member-grid,
.admin-payments-dashboard,
.admin-shell > .empty-admin {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.admin-payments-dashboard {
  display: grid;
  gap: 1rem;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.payment-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.payment-metric,
.payment-chart-panel {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    radial-gradient(circle at 10% 0%, rgba(242, 169, 0, 0.1), transparent 16rem),
    rgba(255, 255, 255, 0.025);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

.payment-metric {
  padding: 1rem;
}

.payment-metric span,
.payment-method-list span {
  color: rgba(242, 169, 0, 0.82);
  font-size: 0.64rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.payment-metric strong {
  display: block;
  margin-top: 0.55rem;
  color: #fafafa;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  font-weight: 950;
  line-height: 1;
}

.payment-metric p {
  margin-top: 0.45rem;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.78rem;
}

.payment-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
  gap: 1rem;
}

.payment-chart-panel {
  padding: 1rem;
}

.payment-panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.payment-panel-heading h3 {
  margin: 0;
  color: #fafafa;
  font-size: 1rem;
  font-weight: 950;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.payment-bar-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: 0.65rem;
  min-height: 15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
}

.payment-day-bar {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 0.55rem;
  height: 100%;
  min-height: 14rem;
}

.payment-day-bar span {
  align-self: end;
  min-height: 0.4rem;
  border: 1px solid rgba(242, 169, 0, 0.28);
  border-radius: 6px 6px 2px 2px;
  background:
    linear-gradient(180deg, #f2a900, rgba(242, 169, 0, 0.24)),
    rgba(242, 169, 0, 0.1);
  box-shadow: 0 12px 42px rgba(242, 169, 0, 0.18);
}

.payment-day-bar small,
.payment-method-list small,
.payment-table small {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.payment-method-list {
  display: grid;
  gap: 1rem;
}

.payment-method-list article {
  display: grid;
  gap: 0.55rem;
}

.payment-method-list article > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.payment-method-list strong {
  color: #fafafa;
  font-size: 1.1rem;
  font-weight: 950;
}

.payment-method-track {
  height: 0.65rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.payment-method-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #f2a900;
}

.payment-table {
  display: grid;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.payment-table article {
  display: grid;
  grid-template-columns: 8rem 1fr auto 6rem;
  gap: 1rem;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  padding: 0.9rem 0;
}

.payment-table span {
  color: rgba(242, 169, 0, 0.86);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.payment-table p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
}

.payment-table strong {
  color: #fafafa;
  font-size: 0.9rem;
  font-weight: 950;
}

.payment-choice-modal {
  width: min(100%, 30rem);
}

.payment-choice-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%;
  gap: 0.35rem;
  border: 1px solid rgba(250, 250, 250, 0.18);
  border-radius: 8px;
  background: rgba(250, 250, 250, 0.055);
  padding: 1rem;
  color: #fafafa;
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.payment-choice-card > span:not(.payment-choice-spinner),
.payment-choice-card > strong,
.payment-choice-card > small {
  grid-column: 1;
}

.payment-choice-card:hover:not(:disabled) {
  border-color: rgba(250, 250, 250, 0.42);
  background: rgba(250, 250, 250, 0.09);
  transform: translateY(-1px);
}

.payment-choice-card.bitcoin {
  border-color: rgba(242, 169, 0, 0.38);
  background: rgba(242, 169, 0, 0.1);
}

.payment-choice-card:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.payment-choice-card span,
.bitcoin-invoice-panel .section-kicker {
  color: #f2a900;
  font-size: 0.64rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.payment-choice-card strong,
.bitcoin-invoice-panel h3 {
  color: #fafafa;
  font-size: 1.25rem;
  font-weight: 950;
  line-height: 1.05;
  text-transform: uppercase;
}

.payment-choice-card small,
.bitcoin-invoice-panel p {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.86rem;
  line-height: 1.55;
}

.payment-choice-spinner {
  grid-column: 2;
  grid-row: 1 / span 3;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  align-self: center;
  justify-self: end;
  border: 1px solid rgba(242, 169, 0, 0.34);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.36);
  box-shadow: 0 0 1.4rem rgba(242, 169, 0, 0.16);
}

.payment-choice-spinner img {
  width: 1.45rem;
  height: auto;
  filter:
    drop-shadow(0 0 0.4rem rgba(242, 169, 0, 0.62))
    drop-shadow(0 0 1rem rgba(0, 0, 0, 0.8));
  animation: card-logo-spin 900ms cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.bitcoin-invoice-panel {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(242, 169, 0, 0.26);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0%, rgba(242, 169, 0, 0.18), transparent 16rem),
    rgba(242, 169, 0, 0.08);
  padding: 0.85rem;
}

.invoice-status-row,
.invoice-actions {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: center;
  gap: 0.75rem;
}

.invoice-status-row {
  justify-content: space-between;
}

.invoice-status-pill {
  border: 1px solid rgba(96, 165, 250, 0.34);
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.12);
  padding: 0.42rem 0.62rem;
  color: rgb(191, 219, 254);
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.invoice-status-pill.processing {
  border-color: rgba(250, 204, 21, 0.36);
  background: rgba(250, 204, 21, 0.12);
  color: rgb(254, 240, 138);
}

.invoice-status-pill.settled {
  border-color: rgba(52, 211, 153, 0.36);
  background: rgba(52, 211, 153, 0.12);
  color: rgb(167, 243, 208);
}

.invoice-status-pill.expired {
  border-color: rgba(248, 113, 113, 0.36);
  background: rgba(248, 113, 113, 0.12);
  color: rgb(254, 202, 202);
}

.invoice-qr-wrap {
  display: grid;
  width: min(100%, 13.5rem);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #fafafa;
  padding: 0.55rem;
}

.invoice-awaiting,
.invoice-success {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  text-align: center;
}

.invoice-awaiting {
  grid-template-columns: auto auto;
  align-items: center;
}

.invoice-awaiting span {
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 999px;
  background: #f2a900;
  box-shadow: 0 0 0 0 rgba(242, 169, 0, 0.5);
  animation: invoice-pulse 1500ms ease-out infinite;
}

.invoice-awaiting strong,
.invoice-success strong {
  color: #fafafa;
  font-size: 1rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.invoice-success {
  border: 1px solid rgba(52, 211, 153, 0.32);
  border-radius: 8px;
  background: rgba(52, 211, 153, 0.09);
  padding: 1rem;
}

.invoice-success p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  line-height: 1.5;
}

.invoice-method-tabs {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  padding: 0.3rem;
}

.invoice-method-tabs button {
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  padding: 0.62rem 0.5rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.invoice-method-tabs button.active {
  border-color: rgba(242, 169, 0, 0.38);
  background: rgba(242, 169, 0, 0.14);
  color: #fafafa;
}

.invoice-qr-wrap img {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.invoice-qr-empty {
  color: #111;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.invoice-data-box {
  display: grid;
  width: 100%;
  gap: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
  padding: 0.75rem;
}

.invoice-data-box span {
  color: rgba(242, 169, 0, 0.82);
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.invoice-data-box code {
  max-height: 6rem;
  overflow: auto;
  overflow-wrap: anywhere;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.72rem;
  line-height: 1.45;
}

.invoice-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.invoice-actions > * {
  display: inline-flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.invoice-help {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.72rem;
  line-height: 1.55;
  text-align: center;
}

.admin-toast {
  position: fixed;
  top: 5.2rem;
  right: var(--admin-page-x);
  z-index: 260;
  max-width: min(24rem, calc(100vw - 2rem));
  border: 1px solid rgba(52, 211, 153, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(52, 211, 153, 0.14), transparent 60%),
    rgba(8, 16, 12, 0.96);
  padding: 0.85rem 1rem;
  color: rgb(209, 250, 229);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.4;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.admin-toast.error {
  border-color: rgba(248, 113, 113, 0.4);
  background:
    linear-gradient(135deg, rgba(248, 113, 113, 0.15), transparent 60%),
    rgba(20, 8, 8, 0.96);
  color: rgb(254, 202, 202);
}

.admin-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  padding: 1.2rem;
}

.admin-section-heading h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.site-editor-panel {
  overflow: hidden;
}

.site-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.site-editor-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
}

.site-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1rem;
}

.site-editor-section {
  display: grid;
  align-content: start;
  gap: 0.85rem;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 1rem;
}

.site-editor-section label,
.events-editor-layout label,
.site-editor-item {
  display: grid;
  min-width: 0;
  gap: 0.4rem;
}

.site-editor-item {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.85rem;
}

.site-editor-section label > span,
.events-editor-layout label > span,
.site-editor-toggle span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-editor-section input,
.site-editor-section textarea,
.events-editor-layout input,
.events-editor-layout textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  color: #fafafa;
  padding: 0.72rem 0.8rem;
  outline: none;
}

.site-editor-section textarea,
.events-editor-layout textarea {
  resize: vertical;
}

.site-editor-section input:focus,
.site-editor-section textarea:focus,
.events-editor-layout input:focus,
.events-editor-layout textarea:focus {
  border-color: rgba(242, 169, 0, 0.72);
  box-shadow: 0 0 0 3px rgba(242, 169, 0, 0.12);
}

.site-editor-section small,
.events-editor-layout small {
  justify-self: end;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.72rem;
}

.site-editor-toggle {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.site-editor-toggle input {
  width: 1rem;
  min-width: 1rem;
  height: 1rem;
  accent-color: #f2a900;
}

.event-editor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1rem;
}

.events-editor-layout {
  display: grid;
  gap: 1rem;
}

.events-page-editor {
  display: grid;
  gap: 0.85rem;
  border: 1px solid rgba(242, 169, 0, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(242, 169, 0, 0.08), transparent 55%),
    rgba(255, 255, 255, 0.035);
  padding: 1rem;
}

.event-editor-card {
  display: grid;
  min-width: 0;
  min-height: 100%;
  align-content: start;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 1rem;
}

.event-editor-fields {
  display: grid;
  gap: 0.75rem;
}

.site-editor-item-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  color: #fafafa;
  font-size: 0.9rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.event-editor-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: auto;
  padding-top: 1rem;
}

.event-editor-card-actions .primary-action:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
}

.event-editor-card-actions .icon-danger-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  min-width: 0;
}

.edit-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.admin-access-panel {
  overflow: hidden;
}

.admin-request-card {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}

.admin-generated-keys,
.admin-request-list {
  display: grid;
  gap: 0.75rem;
}

.admin-generated-keys code,
.admin-request-row small {
  overflow-wrap: anywhere;
}

.admin-generated-keys code {
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.34);
  padding: 0.72rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.76rem;
}

.admin-generated-keys p {
  margin: 0;
  color: rgba(242, 169, 0, 0.95);
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-request-list {
  padding: 1rem;
}

.admin-request-row {
  display: grid;
  gap: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 0.9rem;
}

.admin-request-row strong,
.admin-request-row small,
.admin-request-row span {
  display: block;
}

.admin-request-row small {
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.72rem;
}

.admin-request-row span {
  width: fit-content;
  margin-top: 0.55rem;
  border-radius: 999px;
  background: rgba(242, 169, 0, 0.12);
  color: rgba(242, 169, 0, 0.95);
  padding: 0.32rem 0.5rem;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-request-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.admin-member-list {
  display: grid;
}

.admin-member-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
  justify-content: stretch;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.admin-member-tile {
  position: relative;
  display: grid;
  gap: 0.85rem;
  align-content: start;
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  padding: 0.9rem;
}

.admin-tile-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  width: 100%;
}

.admin-tile-actions > button {
  width: 100%;
  min-width: 0;
  min-height: 3.15rem;
  border-color: rgba(250, 250, 250, 0.36);
  background: transparent;
  color: #fafafa;
  padding: 0.78rem 0.9rem;
}

.admin-tile-actions > button:only-child {
  grid-column: 1 / -1;
}

.admin-tile-actions > .primary-action {
  border-color: rgba(242, 169, 0, 0.78);
  background: #f2a900;
  color: #080808;
}

.admin-tile-actions > .secondary-action:hover {
  border-color: rgba(250, 250, 250, 0.62);
  background: rgba(250, 250, 250, 0.08);
  color: #fafafa;
  transform: translateY(-1px);
}

.admin-scan-field {
  grid-column: 1 / -1;
}

.admin-scan-field input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.78rem 0.9rem;
  color: white;
  font-size: 0.9rem;
  outline: none;
}

.admin-scan-field input:focus {
  border-color: rgba(242, 169, 0, 0.76);
}

.admin-member-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(18rem, 24rem) minmax(0, 1fr) auto;
  gap: 1.2rem;
  align-items: start;
  padding: 1.2rem;
}

.admin-member-row + .admin-member-row {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.admin-card-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-wood-card {
  width: 100%;
  box-shadow:
    0 18px 54px rgba(0, 0, 0, 0.36),
    inset 0 1px rgba(255, 242, 210, 0.34),
    inset 0 -1px rgba(53, 26, 12, 0.28);
}

.admin-wood-card .card-number {
  font-size: clamp(0.95rem, 5.35cqw, 1.8rem);
  letter-spacing: clamp(0.004em, 0.08cqw, 0.028em);
}

.admin-wood-card .card-label {
  font-size: 0.5rem;
}

.admin-wood-card .card-value {
  font-size: clamp(0.62rem, 1.3vw, 0.78rem);
}

.admin-card-button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.admin-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.86rem;
}

.admin-member-details {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}

.admin-member-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.admin-member-title p {
  margin: 0;
  color: #fafafa;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.admin-member-title span {
  display: block;
  margin-top: 0.22rem;
  color: rgba(255, 255, 255, 0.42);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
}

.admin-member-title strong {
  border: 1px solid rgba(242, 169, 0, 0.26);
  border-radius: 999px;
  background: rgba(242, 169, 0, 0.1);
  padding: 0.34rem 0.55rem;
  color: rgba(242, 169, 0, 0.92);
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-member-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 1rem;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.82rem;
}

.admin-member-meta p {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.admin-actions.two-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-actions > button {
  width: 100%;
  min-width: 0;
}

.admin-card-issue {
  display: grid;
  gap: 0.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.85rem;
}

.admin-ops-panel {
  display: grid;
  gap: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 0.9rem;
}

.admin-ops-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 0.5rem;
}

.admin-ops-actions > button {
  width: 100%;
  min-width: 0;
}

.access-log-list {
  display: grid;
  gap: 0;
}

.access-log-row {
  display: grid;
  grid-template-columns: 5rem 1fr auto;
  gap: 1rem;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.95rem 1.1rem;
}

.access-log-row span {
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.access-log-row p,
.access-log-row small {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
}

.access-log-row p {
  padding-inline: 0.25rem;
}

.empty-admin {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 2.2rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
  font-weight: 800;
  text-align: center;
}

.icon-danger-action {
  display: grid;
  min-height: 3.2rem;
  place-items: center;
  border: 1px solid rgba(255, 154, 154, 0.36);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: rgb(255, 176, 176);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.icon-danger-action:hover {
  border-color: rgba(255, 154, 154, 0.64);
  background: rgba(255, 81, 81, 0.1);
  color: rgb(255, 205, 205);
  transform: translateY(-1px);
}

.icon-danger-action svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

@media (max-width: 1180px) {
  .admin-member-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .admin-member-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .admin-member-grid {
    grid-template-columns: 1fr;
  }
}

.admin-card-meta .delete-member {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-2px);
}

.admin-member-row > .delete-member {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-2px);
}

.admin-card-item:hover .delete-member,
.admin-card-item:focus-within .delete-member,
.admin-member-row:hover > .delete-member,
.admin-member-row:focus-within > .delete-member {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.78);
  padding: 1rem;
}

.modal-backdrop::-webkit-scrollbar,
.modal-body::-webkit-scrollbar,
.agreement-body::-webkit-scrollbar {
  width: 0.45rem;
}

.modal-backdrop::-webkit-scrollbar-thumb,
.modal-body::-webkit-scrollbar-thumb,
.agreement-body::-webkit-scrollbar-thumb {
  border-color: rgba(8, 8, 8, 0.98);
  background: rgba(255, 255, 255, 0.2);
  background-clip: padding-box;
}

.signup-modal {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 44rem);
  max-height: calc(100svh - 2rem);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(8, 8, 8, 0.96);
  box-shadow: 0 40px 140px rgba(0, 0, 0, 0.7);
}

.signup-modal.card-modal {
  width: min(100%, 27rem);
}

.signup-modal.card-modal > .flex:first-child {
  padding: 1.5rem;
}

.signup-modal.card-modal > .flex:first-child > div {
  max-width: 24rem;
}

.signup-modal.card-modal .modal-body {
  padding: 1.5rem;
}

.signup-modal.card-modal .card-modal-content,
.signup-modal.card-modal .modal-footer-actions {
  width: 100%;
  max-width: 24rem;
  margin-inline: auto;
}

.signup-modal.card-modal .modal-footer {
  padding: 1.5rem;
}

.signup-modal.card-modal .l484-card {
  width: 100%;
}

.signup-modal.card-modal .card-number {
  font-size: clamp(1.35rem, 7.4cqw, 1.55rem);
  letter-spacing: 0.02em;
}

.backup-modal {
  position: relative;
  z-index: 1;
  width: min(100%, 34rem);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(8, 8, 8, 0.98);
  box-shadow: 0 40px 140px rgba(0, 0, 0, 0.7);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem;
}

.modal-header h2 {
  margin: 0;
  color: #fafafa;
  font-size: 1.5rem;
  font-weight: 950;
  line-height: 1;
}

.modal-header .section-kicker {
  margin-bottom: 0.75rem;
}

.agreement-modal {
  position: relative;
  z-index: 1;
  width: min(100%, 40rem);
  max-height: min(42rem, calc(100svh - 2rem));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #080808;
  box-shadow: 0 40px 140px rgba(0, 0, 0, 0.7);
}

.agreement-body {
  display: grid;
  max-height: min(26rem, calc(100svh - 14rem));
  gap: 1rem;
  overflow-y: auto;
  padding: 1rem;
  scrollbar-gutter: stable;
}

.agreement-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #101010;
  padding: 1rem;
}

.agreement-info p {
  display: grid;
  gap: 0.2rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  overflow-wrap: anywhere;
}

.agreement-info span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.agreement-signature {
  display: flex;
  min-height: 8rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(242, 169, 0, 0.28);
  border-radius: 8px;
  background: #080808;
  padding: 1rem;
  color: rgba(255, 255, 255, 0.52);
}

.agreement-signature img {
  max-height: 9rem;
  max-width: 100%;
  object-fit: contain;
}

@media (min-width: 900px) {
  .agreement-modal {
    width: 38rem;
  }
}

@media (max-width: 820px) {
  .agreement-info {
    grid-template-columns: 1fr;
  }
}

.modal-body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: min(34rem, calc(100svh - 16rem));
  overflow-y: auto;
  padding: 1.25rem;
  scrollbar-gutter: stable;
}

.step-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem 0;
}

.step-row span {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
  font-weight: 900;
}

.step-row span.active {
  border-color: rgba(242, 169, 0, 0.86);
  color: #f2a900;
}

.step-row i {
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, 0.14);
}

.field-label {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.optional-label {
  color: rgba(255, 255, 255, 0.42);
  font-weight: 800;
}

.field-input {
  margin-top: 0.5rem;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.9rem 1rem;
  color: white;
  font-size: 1rem;
  outline: none;
}

.field-input:focus {
  border-color: rgba(242, 169, 0, 0.76);
  box-shadow: 0 0 0 3px rgba(242, 169, 0, 0.12);
}

.info-panel,
.covenant-box {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 1rem;
}

.membership-price-panel {
  border: 1px solid rgba(242, 169, 0, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(242, 169, 0, 0.11), transparent 38%),
    rgba(255, 255, 255, 0.055);
  padding: 1rem;
}

.membership-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin-top: 0.65rem;
}

.membership-price-row strong {
  color: #fafafa;
  font-size: clamp(2.25rem, 11vw, 3.8rem);
  font-weight: 950;
  line-height: 0.9;
}

.membership-price-row span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.membership-btc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  margin-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.8rem;
}

.membership-btc-row small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.membership-pickup-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: center;
  border: 1px solid rgba(247, 147, 26, 0.42);
  border-radius: 8px;
  background:
    radial-gradient(circle at 0% 50%, rgba(247, 147, 26, 0.22), transparent 52%),
    linear-gradient(135deg, rgba(247, 147, 26, 0.15), rgba(247, 147, 26, 0.055));
  padding: 1rem;
  box-shadow:
    inset 0 1px rgba(255, 213, 139, 0.16),
    0 1.4rem 3rem rgba(0, 0, 0, 0.22);
}

.membership-pickup-card p {
  margin: 0;
  color: rgba(255, 244, 226, 0.9);
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.55;
}

.membership-pickup-icon {
  display: grid;
  width: 3rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(247, 147, 26, 0.42);
  border-radius: 8px;
  background: rgba(247, 147, 26, 0.16);
}

.membership-pickup-icon img {
  width: 1.55rem;
  height: 1.9rem;
  object-fit: contain;
  filter:
    invert(63%)
    sepia(96%)
    saturate(1188%)
    hue-rotate(348deg)
    brightness(104%)
    contrast(94%)
    drop-shadow(0 0 0.75rem rgba(247, 147, 26, 0.28));
}

.pwa-install-step {
  display: grid;
  gap: 1rem;
}

.pwa-install-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  border: 1px solid rgba(242, 169, 0, 0.32);
  border-radius: 8px;
  background:
    radial-gradient(circle at 8% 0%, rgba(242, 169, 0, 0.16), transparent 16rem),
    rgba(255, 255, 255, 0.045);
  padding: 1rem;
}

.pwa-install-hero img {
  width: 4.4rem;
  aspect-ratio: 1;
  border-radius: 8px;
  box-shadow:
    0 1.2rem 2.4rem rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

.pwa-install-hero h3 {
  margin: 0 0 0.55rem;
  color: #fafafa;
  font-size: clamp(1.35rem, 5vw, 2.1rem);
  font-weight: 950;
  line-height: 0.98;
}

.pwa-install-hero p:not(.section-kicker) {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.55;
}

.pwa-install-card {
  display: grid;
  gap: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 0.9rem 1rem;
}

.pwa-install-card.active {
  border-color: rgba(242, 169, 0, 0.58);
  background:
    linear-gradient(135deg, rgba(242, 169, 0, 0.16), rgba(242, 169, 0, 0.04)),
    rgba(255, 255, 255, 0.045);
}

.pwa-install-card strong {
  color: #fafafa;
  font-size: 0.86rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pwa-install-card small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.45;
}

.signature-box {
  overflow: hidden;
  border: 1px solid rgba(242, 169, 0, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 80% 12%, rgba(242, 169, 0, 0.12), transparent 28%),
    #080808;
  background-size: 100% 2.6rem;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 18px 44px rgba(0, 0, 0, 0.26);
}

.signature-box.signed {
  border-color: rgba(16, 185, 129, 0.55);
}

.signature-canvas {
  display: block;
  width: 100%;
  height: 12.5rem;
  cursor: crosshair;
  touch-action: none;
}

.signature-clear {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.45rem 0.65rem;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.covenant-box {
  background: rgba(255, 255, 255, 0.05);
}

.covenant-box h3 {
  margin-bottom: 0.8rem;
  color: white;
  font-weight: 900;
}

.covenant-box ol {
  list-style: decimal;
  padding-left: 1.2rem;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.65;
}

@media (max-width: 820px) {
  .modal-backdrop {
    padding: 0.5rem;
  }

  .signup-modal,
  .backup-modal,
  .agreement-modal {
    max-height: calc(100svh - 1rem);
  }

  .modal-footer {
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    padding: 0.75rem;
  }

  .modal-body {
    max-height: calc(100svh - 13rem);
  }

  .member-button {
    padding: 0.62rem 0.7rem;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }

  .l484-card {
    padding: 1rem;
  }

  .signup-modal.card-modal .card-midline {
    left: 0.95rem;
    right: 0.95rem;
    transform: translateY(-44%);
  }

  .card-number {
    letter-spacing: 0.03em;
  }

  .admin-stat {
    min-width: auto;
    padding: 0.65rem 0.4rem;
  }

  .admin-shell {
    --admin-page-x: 0.75rem;
    padding: 0 var(--admin-page-x) 6.25rem;
  }

  .admin-header {
    position: relative;
    z-index: 20;
    grid-template-columns: auto auto;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    margin-inline: calc(var(--admin-page-x) * -1);
    padding: 0.8rem 0.75rem;
  }

  .admin-profile-text {
    display: none;
  }

  .desktop-admin-tabbar {
    display: none;
  }

  .mobile-admin-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 240;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    background: rgba(5, 5, 5, 0.96);
    padding: 0.45rem 0.35rem calc(0.45rem + env(safe-area-inset-bottom));
    box-shadow: 0 -18px 54px rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(22px);
  }

  .mobile-admin-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-height: 3.65rem;
    border-radius: 8px;
    padding: 0.5rem 0.15rem;
    font-size: 0.46rem;
    letter-spacing: 0.055em;
    text-align: center;
  }

  .mobile-admin-tab svg {
    width: 1.12rem;
    height: 1.12rem;
  }

  .mobile-admin-tab span {
    max-width: 100%;
    font-size: 0.5rem;
  }

  .mobile-admin-tab strong {
    position: absolute;
    top: 0.25rem;
    right: 0.45rem;
    min-width: 1rem;
    height: 1rem;
    font-size: 0.5rem;
  }

  .admin-panel-surface,
  .admin-member-list,
  .admin-member-grid,
  .admin-shell > .empty-admin {
    width: 100%;
  }

  .site-editor-grid {
    grid-template-columns: 1fr;
    padding: 0.75rem;
  }

  .edit-page-grid {
    grid-template-columns: 1fr;
  }

  .site-editor-actions {
    width: 100%;
    justify-content: stretch;
  }

  .site-editor-actions button {
    flex: 1;
    min-width: 0;
  }

  .admin-toast {
    inset: auto 0.75rem calc(5.25rem + env(safe-area-inset-bottom));
    max-width: none;
  }

  .payment-metric-grid,
  .payment-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .payment-metric {
    padding: 0.9rem;
  }

  .payment-metric strong {
    font-size: 1.6rem;
  }

  .payment-chart-panel {
    padding: 0.85rem;
  }

  .payment-panel-heading {
    display: grid;
    gap: 0.25rem;
    margin-bottom: 0.85rem;
  }

  .payment-bar-chart {
    gap: 0.42rem;
    min-height: 9rem;
    padding-top: 0.75rem;
  }

  .payment-day-bar {
    min-height: 8rem;
    gap: 0.4rem;
  }

  .payment-day-bar small {
    font-size: 0.56rem;
    letter-spacing: 0.03em;
  }

  .payment-table article {
    grid-template-columns: 1fr auto;
    gap: 0.35rem 0.8rem;
    padding: 0.85rem 0.1rem;
  }

  .payment-table article p {
    grid-column: 1 / -1;
    order: 3;
    overflow-wrap: anywhere;
  }

  .payment-table article small {
    justify-self: end;
  }

  .invoice-actions {
    grid-template-columns: 1fr;
  }

  .admin-member-row {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0.85rem;
  }

  .admin-member-row > .delete-member {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .admin-member-meta,
  .admin-actions,
  .admin-actions.two-actions {
    grid-template-columns: 1fr;
  }

  .access-log-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
    padding: 0.9rem;
  }

  .modal-footer-actions {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .modal-footer-actions > button {
    width: 100%;
    min-width: 0;
    padding-inline: 0.5rem;
    text-align: center;
  }
}

@keyframes bg-cinema {
  0% {
    opacity: 0;
    filter: saturate(0.65) contrast(1.24) blur(14px);
    transform: scale(1.13) translate3d(0, 0, 0);
  }

  22% {
    opacity: 1;
    filter: saturate(1.04) contrast(1.12) blur(0);
  }

  100% {
    opacity: 1;
    filter: saturate(1.08) contrast(1.08) blur(0);
    transform: scale(1.02) translate3d(-1.2%, -0.8%, 0);
  }
}

@keyframes invoice-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(242, 169, 0, 0.48);
  }

  100% {
    box-shadow: 0 0 0 0.75rem rgba(242, 169, 0, 0);
  }
}

@keyframes copy-in {
  0% {
    opacity: 0;
    transform: translate3d(0, 34px, 0);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes cinematic-word-in {
  0% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    filter: blur(0.5rem) saturate(0.72);
    transform: translate3d(0, 1.1rem, 0) scale(0.985);
  }

  42% {
    opacity: 1;
    filter: blur(0.08rem) saturate(1.04);
  }

  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    filter: blur(0) saturate(1);
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes benefits-cue-in {
  0% {
    opacity: 0;
    transform: translate3d(0, 0.7rem, 0);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes swipe-up-cue {
  0%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }

  50% {
    opacity: 0.5;
    transform: translateY(-1.25rem);
  }
}

@keyframes mouse-wheel-cue {
  0% {
    opacity: 0;
    transform: translateY(0);
  }

  38% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(0.62rem);
  }
}

@keyframes rise-in {
  0% {
    opacity: 0;
    transform: translate3d(0, -16px, 0);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes grain-shift {
  0% {
    transform: translate3d(-1%, -1%, 0);
  }

  100% {
    transform: translate3d(1%, 1%, 0);
  }
}

@keyframes scanline {
  0% {
    opacity: 0;
    transform: translateY(0);
  }

  18% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(100svh);
  }
}

@keyframes card-logo-spin {
  0% {
    opacity: 0;
    transform: scale(0.82) rotate(0deg);
  }

  18% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: scale(1) rotate(360deg);
  }
}

@keyframes card-spinner-out {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(0.9);
  }
}

@keyframes cinematic-card-in {
  0% {
    opacity: 0;
    filter: blur(0.9rem) saturate(0.75) contrast(1.18);
    clip-path: inset(50% 0 50% 0);
    transform: scale(0.965) translateY(0.45rem);
  }

  38% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }

  100% {
    opacity: 1;
    filter: blur(0) saturate(1) contrast(1);
    clip-path: inset(0 0 0 0);
    transform: scale(1) translateY(0);
  }
}

@keyframes cinematic-card-sweep {
  0% {
    opacity: 0;
    transform: translate3d(-48%, 14%, 0) rotate(-9deg);
  }

  16% {
    opacity: 0.88;
  }

  64% {
    opacity: 0.62;
  }

  100% {
    opacity: 0;
    transform: translate3d(48%, -14%, 0) rotate(-9deg);
  }
}

@keyframes cinematic-card-bloom {
  0% {
    opacity: 0;
    transform: scale(0.96);
  }

  32% {
    opacity: 0.85;
  }

  100% {
    opacity: 0;
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
