/* GYM No 5 — theme overrides on SPM dark (main.css untouched) */

:root {
  /* Surfaces aligned with THICK.clinic index (clinical slate neomorphic base) */
  --tc-bg: #1a1d22;
  --tc-surface: #1a1d22;
  --tc-surface-soft: #14161a;
  --tc-dppc: #2f3a44;
  --tc-border-subtle: #262a32;

  --tc-bone: #eceae7;
  --tc-bone-soft: #d8d5cf;

  --tc-gold: #b8985a;
  --tc-gold-highlight: #c9a96e;
  --tc-gold-darker: #7a6340;
  --tc-gold-dark: #9a7f4a;
  --tc-gold-border: #8a7348;

  --color-active: #b8985a;
  --color-active-hover: #c9a96e;
  --color-active-pressed: #7a6340;

  --spm-cyan: #b8985a;
  --spm-red: #b8985a;
  --spm-red-gold: rgba(184, 152, 90, 0.85);

  --clinic-bg: rgb(26, 29, 34);
  --clinic-surface: rgb(32, 36, 42);
  --clinic-text: rgb(236, 234, 231);
  --clinic-text-soft: rgb(200, 195, 190);
  --clinic-gold: rgb(184, 152, 90);
  --clinic-gold-hover: rgb(201, 169, 110);

  --g5-tier-accent-mod: 1;
  --g5-nav-height: 92px;

  /* Neumorphic nav — 8-layer shadows (mirrors CodePen .m_button structure) */
  --g5-neo-bg: var(--tc-surface);
  --g5-neo-hi: rgba(236, 234, 231, 0.07);
  --g5-neo-lo: rgba(0, 0, 0, 0.14);
  --g5-neo-md: rgba(0, 0, 0, 0.22);
  --g5-neo-inset-deep: rgba(0, 0, 0, 0.32);
  --g5-neo-accent: var(--color-active);
  --g5-neo-accent-glow: rgba(184, 152, 90, 0.3);
  --g5-neo-ease: cubic-bezier(0.79, 0.21, 0.06, 0.81);
}

/* Tier skin hooks — v1 subtle accent intensity */
.theme-base {
  --g5-tier-accent-mod: 0.85;
  --g5-neo-accent: #c4bfb6;
  --g5-neo-accent-glow: rgba(196, 191, 182, 0.28);
}

.theme-gold {
  --g5-tier-accent-mod: 1;
  --g5-neo-accent: var(--tc-gold);
  --g5-neo-accent-glow: rgba(184, 152, 90, 0.35);
}

.theme-black {
  --g5-tier-accent-mod: 1.15;
  --g5-neo-accent: var(--tc-gold-highlight);
  --g5-neo-accent-glow: rgba(201, 169, 110, 0.4);
}

/* Legacy hook — label color handled on .g5-nav__label.is-active via parent */
.g5-member-app.theme-base .g5-nav__item.is-active .g5-nav__label,
.g5-member-app.theme-gold .g5-nav__item.is-active .g5-nav__label,
.g5-member-app.theme-black .g5-nav__item.is-active .g5-nav__label {
  color: var(--g5-neo-accent);
}

.g5-member-app {
  color: var(--tc-bone);
  min-height: 100vh;
  /* THICK.clinic index neomorphic base — same layered gradient as main.css body */
  background:
    linear-gradient(
      120deg,
      rgba(var(--shadow), calc(0 * var(--shadow-mod))) 30%,
      rgba(var(--shadow), calc(0.2 * var(--shadow-mod)))
    ),
    linear-gradient(var(--color-bg-default), var(--color-bg-default));
  background-attachment: fixed;
}

.g5-member-app .g5-main {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 20px calc(var(--g5-nav-height) + env(safe-area-inset-bottom, 0px) + 24px);
}

.g5-page {
  transition: opacity 0.35s var(--g5-neo-ease);
}

.g5-page.is-leaving {
  opacity: 0;
  pointer-events: none;
}

.g5-page.is-entering {
  opacity: 0;
}

.g5-page.is-entering.is-entering-ready {
  opacity: 1;
}

.g5-home-grid.is-leaving {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--g5-neo-ease);
}

.g5-member-app.is-navigating .g5-nav__item {
  pointer-events: none;
}

.g5-member-app.is-navigating .g5-nav__item.is-nav-target {
  pointer-events: auto;
}

.g5-member-app .g5-page-title {
  font-family: "miller-banner", serif;
  font-weight: 400;
  font-size: 1.75rem;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
  color: var(--tc-bone);
}

/* THICK.clinic H2 band typography (adapted for dark UI) */
.g5-tc-h2 {
  font-family: "miller-banner", serif;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(2rem, 5vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: 0.04em;
  color: var(--tc-bone);
  text-shadow:
    -1px -1px 2px rgba(255, 255, 255, 0.1),
    2px 2px 6px rgba(0, 0, 0, 0.42);
  margin: 0;
}

.g5-tc-h2--gold {
  color: var(--color-active);
  text-shadow:
    -1px -1px 2px rgba(255, 255, 255, 0.06),
    2px 2px 6px rgba(0, 0, 0, 0.38);
}

.g5-member-app .g5-page-title.g5-tc-h2 {
  font-size: clamp(2rem, 5vw, 2.85rem);
  margin: 0 0 10px;
}

.g5-member-app .g5-page-sub {
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  color: var(--tc-bone-soft);
  margin: 0 0 24px;
  line-height: 1.5;
}

.g5-member-app .g5-card-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.g5-member-app .tc-card.g5-card-compact {
  padding: 24px 20px;
  border-radius: 20px;
  width: 100%;
  box-sizing: border-box;
}

.g5-member-app .g5-stat-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45em;
  padding: 10px 0;
  border-bottom: 1px solid var(--tc-border-subtle);
  font-size: 0.9rem;
}

.g5-member-app .g5-stat-row:last-child {
  border-bottom: none;
}

.g5-member-app .g5-stat-label {
  color: var(--tc-bone-soft);
  font-family: "Inter", sans-serif;
  font-weight: 400;
  flex-shrink: 0;
}

.g5-member-app .g5-stat-value {
  color: var(--color-active);
  font-family: "Gotham", "Helvetica Neue", Helvetica, "Inter", Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.g5-member-app .g5-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--tc-bone-soft);
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
}

/* Bottom nav — neumorphic buttons */
.g5-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  gap: 6px;
  min-height: var(--g5-nav-height);
  padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  background: var(--tc-surface);
  border-top: 1px solid var(--tc-border-subtle);
  box-shadow:
    inset 0 1px 0 rgba(232, 228, 216, 0.04),
    0 -4px 24px rgba(0, 0, 0, 0.45);
}

.g5-nav__item {
  flex: 1;
  max-width: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 0;
  font-family: "Inter", sans-serif;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.g5-nav__btn {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-tap-highlight-color: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background-color: var(--g5-neo-bg);
  box-shadow:
    -7px -7px 20px 0 var(--g5-neo-hi),
    -4px -4px 5px 0 var(--g5-neo-hi),
    7px 7px 20px 0 var(--g5-neo-md),
    4px 4px 5px 0 var(--g5-neo-lo),
    inset 0 0 0 0 var(--g5-neo-hi),
    inset 0 0 0 0 var(--g5-neo-lo),
    inset 0 0 0 0 var(--g5-neo-hi),
    inset 0 0 0 0 var(--g5-neo-lo);
  transition: box-shadow 0.6s var(--g5-neo-ease);
}

.g5-nav__bar {
  display: block;
  width: 32px;
  height: 4px;
  border-radius: 4px;
  margin: 3px 0;
  background-color: var(--tc-bone-soft);
  box-shadow: 0 0 10px 0 rgba(216, 213, 207, 0.15);
  transition:
    margin 0.4s var(--g5-neo-ease),
    transform 0.4s var(--g5-neo-ease);
}

.g5-nav__bar:nth-child(2) {
  transform-origin: 50% 50%;
}

.g5-nav__label {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tc-bone-soft);
  transition: color 0.3s ease;
  line-height: 1.2;
  text-align: center;
}

.g5-nav__item:hover .g5-nav__label {
  color: var(--tc-bone);
}

/* Pressed / active — exact CodePen .active .m_button shadow + bar morph */
.g5-nav__item.is-active .g5-nav__btn,
.g5-nav__btn.is-pressed {
  box-shadow:
    0 0 0 0 var(--g5-neo-hi),
    0 0 0 0 var(--g5-neo-hi),
    0 0 0 0 var(--g5-neo-lo),
    0 0 0 0 var(--g5-neo-lo),
    inset -7px -7px 20px 0 var(--g5-neo-hi),
    inset -4px -4px 5px 0 var(--g5-neo-hi),
    inset 7px 7px 20px 0 var(--g5-neo-inset-deep),
    inset 4px 4px 5px 0 var(--g5-neo-lo);
}

.g5-nav__item.is-active .g5-nav__bar,
.g5-nav__btn.is-pressed .g5-nav__bar {
  margin: -2px;
}

.g5-nav__item.is-active .g5-nav__bar:nth-child(1),
.g5-nav__btn.is-pressed .g5-nav__bar:nth-child(1) {
  transform: rotate(-45deg);
}

.g5-nav__item.is-active .g5-nav__bar:nth-child(2),
.g5-nav__btn.is-pressed .g5-nav__bar:nth-child(2) {
  transform: scale(0);
}

.g5-nav__item.is-active .g5-nav__bar:nth-child(3),
.g5-nav__btn.is-pressed .g5-nav__bar:nth-child(3) {
  transform: rotate(45deg);
}

.g5-nav__item.is-active .g5-nav__bar {
  background-color: #d5c7a3;
  box-shadow:
    0 0 8px 0 rgba(213, 199, 163, 0.75),
    0 0 16px 0 rgba(213, 199, 163, 0.5),
    0 0 26px 0 rgba(226, 214, 182, 0.35);
}

.g5-nav__item.is-active .g5-nav__label {
  color: #d5c7a3;
}

/* Login page */
.g5-login {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  box-sizing: border-box;
}

.g5-login__logo-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.g5-login__logo {
  width: min(88%, 300px);
  height: auto;
  display: block;
}

.g5-login__stage {
  width: min(92vw, 520px);
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.g5-login .g5-form-panel {
  width: 100%;
  box-sizing: border-box;
}

.g5-login .tc-card.g5-card-compact {
  padding: 28px 20px 32px;
  width: 100%;
}

.g5-login #g5LoginForm {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0 10%;
  box-sizing: border-box;
}

.g5-login #g5LoginForm > .g5-field--float {
  width: 100%;
  min-width: 0;
  margin-bottom: 20px;
}

.g5-login__remember.g5-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-width: 0;
  margin: 8px 0 4px;
  cursor: pointer;
  user-select: none;
}

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

.g5-toggle__track {
  flex-shrink: 0;
  width: 54px;
  height: 30px;
  border-radius: 999px;
  background: #1a1d22;
  box-shadow:
    inset 3px 3px 7px rgba(0, 0, 0, 0.72),
    inset -2px -2px 5px rgba(255, 255, 255, 0.04);
  position: relative;
  padding: 4px;
  box-sizing: border-box;
}

.g5-toggle__thumb {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(165deg, #2b3039 0%, #171a1f 100%);
  box-shadow:
    2px 2px 5px rgba(0, 0, 0, 0.55),
    -1px -1px 3px rgba(255, 255, 255, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.g5-toggle__input:checked + .g5-toggle__track {
  background: var(--color-active-hover);
  box-shadow:
    0 0 20px rgba(226, 214, 182, 0.6),
    0 0 40px rgba(226, 214, 182, 0.4),
    inset 3px 3px 7px rgba(0, 0, 0, 0.28),
    inset -2px -2px 5px rgba(255, 255, 255, 0.18);
}

.g5-toggle__input:checked + .g5-toggle__track .g5-toggle__thumb {
  transform: translateX(24px);
  background: linear-gradient(165deg, #2b3039 0%, #171a1f 100%);
  box-shadow:
    2px 2px 5px rgba(0, 0, 0, 0.45),
    -1px -1px 2px rgba(255, 255, 255, 0.05),
    inset 0 0 4px rgba(226, 214, 182, 0.45),
    inset 0 0 8px rgba(184, 152, 90, 0.28);
  transition: transform 0.4s cubic-bezier(0.85, 0.05, 0.18, 1.35), box-shadow 0.22s ease;
}

.g5-toggle__input:focus-visible + .g5-toggle__track {
  outline: 1px solid rgba(226, 214, 182, 0.75);
  outline-offset: 2px;
}

.g5-toggle__text {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--tc-bone-soft);
  white-space: nowrap;
}

.g5-admin-active-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  cursor: pointer;
  user-select: none;
}

.g5-admin-active-toggle .g5-toggle__text {
  color: rgba(255, 255, 255, 0.72);
}

.g5-admin-form .g5-field--toggle {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
}

.g5-admin-active-toggle--purchase {
  width: 100%;
}

.g5-admin-active-toggle--compact .g5-toggle__text {
  display: none;
}

.g5-admin-table .g5-admin-active-toggle-form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.g5-admin-table .g5-admin-active-toggle-form .g5-link-btn {
  font-size: 0.7rem;
  opacity: 0.65;
}

.g5-admin-slush-sizes .g5-admin-form__grid {
  margin-bottom: 12px;
}

.g5-login .g5-error {
  color: #c47a6a;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  margin-top: 12px;
  min-height: 1.2em;
}

.g5-login .g5-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  padding-bottom: 28px;
}

.g5-login #g5LoginSubmit.g5-fp-btn {
  width: 140px;
  height: 140px;
  min-width: 0;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: box-shadow 0.3s ease-in-out;
}

.g5-login #g5LoginSubmit .button__play {
  font-size: 1.2em;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  transition: opacity 0.6s ease-in-out, color 0.5s ease-in, text-shadow 0.5s ease-in;
  position: relative;
  z-index: 3;
  will-change: text-shadow, opacity;
  opacity: 1;
}

.g5-login #g5LoginSubmit:not(.is-pressed) .button__play {
  animation: g5LoginTextPulse 5s ease-in-out infinite both !important;
}

.g5-login #g5LoginSubmit.is-pressed .button__play {
  animation: none !important;
  opacity: 0 !important;
}

@keyframes g5LoginTextPulse {
  0% {
    text-shadow:
      0 0 8px rgba(213, 199, 163, 0.375),
      0 0 16px rgba(213, 199, 163, 0.3),
      0 0 24px rgba(226, 214, 182, 0.225),
      0 0 32px rgba(213, 199, 163, 0.15);
  }
  50% {
    text-shadow:
      0 0 12px rgba(213, 199, 163, 0.525),
      0 0 24px rgba(213, 199, 163, 0.45),
      0 0 36px rgba(226, 214, 182, 0.375),
      0 0 48px rgba(213, 199, 163, 0.3),
      0 0 60px rgba(226, 214, 182, 0.225);
  }
  100% {
    text-shadow:
      0 0 8px rgba(213, 199, 163, 0.375),
      0 0 16px rgba(213, 199, 163, 0.3),
      0 0 24px rgba(226, 214, 182, 0.225),
      0 0 32px rgba(213, 199, 163, 0.15);
  }
}

.g5-login #g5LoginSubmit .fingerprint-container {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  pointer-events: none;
}

.g5-login #g5LoginSubmit.is-pressed .fingerprint-container {
  opacity: 1;
  visibility: visible;
}

.g5-login #g5LoginSubmit .fingerprint-svg {
  width: 90px;
  height: 90px;
  filter: drop-shadow(-1px -1px 1px rgba(213, 199, 163, 0.15));
}

.g5-login #g5LoginSubmit .tc-pulse-base {
  position: absolute;
  top: 110%;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #1a1d22;
  box-shadow:
    inset 2px 2px 4px rgba(0, 0, 0, 0.6),
    inset -2px -2px 4px rgba(236, 234, 231, 0.05);
  pointer-events: none;
}

.g5-login #g5LoginSubmit .tc-pulse-dot {
  --pulse: rgba(255, 64, 64, 0.9);
  background: rgba(255, 160, 160, 0.95);
  position: absolute;
  top: calc(110% + 6px);
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  z-index: 5;
  box-shadow:
    inset 0 0 1px var(--pulse),
    0 0 2px var(--pulse),
    0 0 3px var(--pulse),
    0 0 4px var(--pulse),
    0 0 5px var(--pulse),
    0 0 6px var(--pulse),
    0 0 7px var(--pulse),
    0 0 15px var(--pulse),
    0 0 20px var(--pulse);
  animation: g5LoginPulseDot 2.4s infinite alternate forwards;
  pointer-events: none;
}

.g5-login #g5LoginSubmit.is-pressed .tc-pulse-dot {
  --pulse: rgba(213, 199, 163, 0.95);
  background: rgba(226, 214, 182, 0.95);
}

@keyframes g5LoginPulseDot {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes g5LoginGoldGlow {
  0%,
  30%,
  100% {
    box-shadow:
      3px 3px 6px rgba(0, 0, 0, 0.6),
      -3px -3px 6px rgba(255, 255, 255, 0.05),
      inset 0 0 0 1px rgba(213, 199, 163, 0.4),
      inset 0 0 10px rgba(226, 214, 182, 0.2),
      0 0 20px rgba(213, 199, 163, 0.25),
      0 0 40px rgba(213, 199, 163, 0.15),
      0 0 60px rgba(226, 214, 182, 0.1);
  }
  15%,
  45% {
    box-shadow:
      3px 3px 6px rgba(0, 0, 0, 0.6),
      -3px -3px 6px rgba(255, 255, 255, 0.05),
      inset 0 0 0 1px rgba(213, 199, 163, 0.5),
      inset 0 0 15px rgba(226, 214, 182, 0.35),
      0 0 30px rgba(213, 199, 163, 0.4),
      0 0 60px rgba(213, 199, 163, 0.3),
      0 0 90px rgba(226, 214, 182, 0.2);
  }
}

.g5-login #g5LoginSubmit.is-pressed {
  box-shadow:
    3px 3px 6px rgba(0, 0, 0, 0.6),
    -3px -3px 6px rgba(255, 255, 255, 0.05),
    inset 0 0 0 1px rgba(213, 199, 163, 0.4),
    inset 0 0 10px rgba(226, 214, 182, 0.2),
    0 0 20px rgba(213, 199, 163, 0.25),
    0 0 40px rgba(213, 199, 163, 0.15),
    0 0 60px rgba(226, 214, 182, 0.1);
  animation: g5LoginGoldGlow 4.5s ease-in-out infinite;
  animation-delay: 1s;
}

.g5-login .button.g5-submit {
  min-width: 160px;
}

.g5-login .g5-back-link {
  background: none;
  border: none;
  color: var(--tc-bone-soft);
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.g5-login .g5-back-link:hover {
  color: var(--tc-bone);
}

.g5-login__request {
  margin: 28px 0 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.g5-account-block {
  margin-top: 24px;
}

.g5-account-block__title {
  font-family: "Inter", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tc-bone-soft);
  margin: 0 0 12px;
}

.g5-auto-renew-offer__title {
  margin-bottom: 16px;
}

.g5-auto-renew-offer__rates {
  display: grid;
  gap: 14px;
}

.g5-auto-renew-offer__rate {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px 16px;
  padding: 12px 14px;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.g5-auto-renew-offer__rate--annual {
  grid-template-columns: 1fr auto auto;
}

.g5-auto-renew-offer__rate-label {
  font-size: 0.95rem;
  color: var(--tc-bone-soft);
}

.g5-auto-renew-offer__rate-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--tc-bone);
  white-space: nowrap;
}

.g5-auto-renew-offer__lock-btn {
  min-width: 118px;
  min-height: 40px;
  padding: 8px 14px;
  font-size: calc(11px * var(--tc-font-scale));
}

.g5-auto-renew-offer__confirm {
  margin: 14px 0 0;
  color: #8fd48f;
  font-size: 0.9rem;
}

.g5-auto-renew-offer__confirm.is-visible {
  display: block;
}

.g5-auto-renew-offer__error {
  margin: 10px 0 0;
}

.g5-account-identity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 18px;
  margin: 0 0 20px;
}

.g5-account-identity__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  min-width: 0;
}

.g5-account-photo {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.g5-account-photo__trigger {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(173deg, #23272f 0%, #14161a 100%);
  box-shadow:
    0 0 0 1px rgba(62, 68, 80, 0.42),
    0 2px 4px rgba(0, 0, 0, 0.28);
  padding: 0.22rem;
  box-sizing: border-box;
}

.g5-account-photo__img,
.g5-account-photo__placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.g5-account-photo__placeholder {
  display: grid;
  place-items: center;
  background: #23272f;
  box-shadow:
    inset 2px 2px 5px rgba(14, 16, 19, 0.85),
    inset -1px -1px 3px rgba(56, 62, 75, 0.22);
  color: rgba(255, 255, 255, 0.72);
  font-family: "Inter", sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.g5-account-photo__remove {
  padding: 8px 14px;
  font-size: calc(11px * var(--tc-font-scale));
}

.g5-account-photo__error {
  margin: 0;
  min-height: 0;
}

.g5-account-identity__name {
  margin: 0;
  font-size: clamp(1.65rem, 4.5vw, 2.35rem);
}

.g5-account-identity__meta .g5-tier-card {
  display: block;
  width: auto;
  max-width: 120px;
  max-height: 48px;
  margin-top: 0;
  object-fit: contain;
}

.g5-tier-card {
  display: block;
  width: auto;
  max-width: 160px;
  max-height: 72px;
  object-fit: contain;
}

.g5-tier-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.g5-tier-badge--gold {
  background: rgba(184, 152, 90, 0.18);
  color: var(--color-active-hover);
}

.g5-tier-badge--black {
  background: rgba(255, 255, 255, 0.1);
  color: var(--tc-bone);
}

.g5-tier-badge--text {
  background: rgba(184, 152, 90, 0.18);
  color: var(--color-active-hover);
}

.g5-account-coming-soon__title {
  margin: 0 0 16px;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.55);
}

.g5-admin-coaching-summary {
  color: var(--color-active-hover);
}

.g5-account-coaching .g5-account-block__title {
  margin-bottom: 12px;
  color: var(--color-active-hover);
}

.g5-account-plan__badge {
  margin-bottom: 12px;
}

.g5-account-plan__badge .g5-tier-card {
  display: block;
  width: auto;
  max-width: 160px;
  max-height: 72px;
  object-fit: contain;
}

.g5-account-plan__tier-label {
  margin: 0 0 12px;
  font-weight: 600;
}

.g5-account-plan__subtitle {
  margin: 16px 0 8px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.85;
}

.g5-account-plan__note {
  margin: 12px 0 0;
}

.g5-account-coming-soon .g5-account-gym-line,
.g5-card-compact .g5-account-gym-line {
  margin-top: 16px;
}

.g5-admin-table--compact th {
  width: 38%;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  vertical-align: top;
}

.g5-admin-table--compact th,
.g5-admin-table--compact td {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.g5-admin-table--compact tr:last-child th,
.g5-admin-table--compact tr:last-child td {
  border-bottom: none;
}

.g5-member-app .g5-account-gym-line.clinic-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  text-decoration: none;
}

.g5-account-changes-copy {
  margin: 0 0 16px;
}

.g5-account-changes-copy__keyword {
  color: var(--color-active);
}

.g5-covered {
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  color: var(--color-active);
  margin-top: 12px;
}

.g5-bucket-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.g5-bucket-list li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  color: var(--tc-bone-soft);
}

.g5-bucket-list li span:last-child {
  color: var(--tc-bone);
}

.g5-header-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.g5-member-app .g5-header-bar .g5-ghost-btn,
.g5-login .g5-login__request .g5-ghost-btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: calc(11px * var(--tc-font-scale));
  text-decoration: none;
  text-align: center;
}

.g5-member-app .g5-checkout-drop__bar .g5-ghost-btn {
  flex-shrink: 0;
  padding: 10px 18px;
  font-size: calc(12px * var(--tc-font-scale));
  text-decoration: none;
  white-space: nowrap;
}

/* Home hub — THICK.clinic neomorphic buttons */
.g5-home {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 4px;
}

.g5-home__logo-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 20px 0 4px;
}

.g5-home__logo {
  width: min(88%, 300px);
  height: auto;
}

/* Home greeting — THICK.clinic index flow bubble (inset pill + illuminate on load) */
.g5-home__greeting {
  width: 100%;
  padding: 0;
}

.g5-home__greeting.tc-cards {
  padding: 0;
}

.g5-home__greeting-card .tc-card__text {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(0.8rem, 3.8vw, 1rem);
  letter-spacing: 0.06em;
  line-height: 1.35;
}

@media (prefers-reduced-motion: reduce) {
  .g5-home__greeting-card.tc-card.illuminating {
    animation: none;
    border-color: var(--color-active);
    box-shadow:
      inset 3px 3px 7px rgba(var(--shadow), var(--card-shadow-inset-shadow)),
      inset -3px -3px 7px rgba(var(--light), var(--card-shadow-inset-light)),
      0 0 3px rgba(198, 165, 108, 0.3),
      0 0 6px rgba(198, 165, 108, 0.2);
  }

  .g5-home__greeting-card .tc-card__text.illuminating::before {
    animation: none;
    clip-path: inset(0 0 0 0);
  }
}

.g5-home__credits {
  width: 100%;
  padding: 0;
}

.g5-home__credits.tc-cards {
  padding: 0;
}

.g5-credit-dials {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.g5-credit-dial {
  flex: 1 1 140px;
  max-width: 220px;
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 16px 14px 14px;
  text-align: center;
}

.g5-credit-dial__title {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-active);
}

.g5-credit-dial__gauge {
  --g5-dial-fill: 0%;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: conic-gradient(
    var(--color-active) 0 var(--g5-dial-fill),
    rgba(var(--shadow), 0.35) var(--g5-dial-fill) 100%
  );
  display: grid;
  place-items: center;
  box-shadow:
    inset 2px 2px 6px rgba(var(--shadow), 0.35),
    inset -2px -2px 6px rgba(var(--light), 0.08);
}

.g5-credit-dial__gauge-inner {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(var(--shadow), 0.55);
  box-shadow:
    inset 2px 2px 5px rgba(var(--shadow), 0.4),
    inset -2px -2px 5px rgba(var(--light), 0.06);
}

.g5-credit-dial__amount {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(0.82rem, 3.4vw, 0.95rem);
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.g5-credit-dial__helper {
  margin: -4px 0 0;
  font-size: 0.78rem;
  opacity: 0.78;
}

.g5-account-plan__pour-hint {
  margin: -6px 0 10px;
  padding-left: 0;
}

.g5-notice-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.g5-notice-empty {
  margin: 8px 0 0;
}

.g5-notice-bubble__image {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 0 16px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 10px 24px rgba(0, 0, 0, 0.24);
}

.g5-notice-bubble__image[hidden] {
  display: none;
}

.g5-notice-preview-card {
  max-width: 420px;
  margin: 0;
}

.g5-notification-preview {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding-top: 4px;
}

.g5-notification-preview > .g5-admin-section-title {
  justify-self: center;
  margin-bottom: 0;
}

.g5-notification-detail-image {
  margin-bottom: 18px;
}

.g5-notification-remove-image {
  align-self: center;
}
.g5-notice-bubble__title {
  margin: 0 0 12px;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--tc-bone);
}

.g5-notice-bubble__body {
  margin: 0 0 20px;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--tc-bone-soft);
}

.g5-notice-bubble__action.clinic-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  text-decoration: none;
}

.g5-notice-bubble.is-leaving {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.35s var(--g5-neo-ease), transform 0.35s var(--g5-neo-ease);
  pointer-events: none;
}

.g5-admin-inline-form {
  display: inline;
  margin-left: 8px;
}

.g5-admin-inline-form button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.g5-home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

.g5-home-grid .button {
  width: 100%;
  min-height: 58px;
  height: auto;
  padding: 14px 10px;
  text-decoration: none;
  box-sizing: border-box;
}

.g5-home-grid .button .button__play {
  font-size: calc(9pt * var(--tc-font-scale));
  letter-spacing: 0.12em;
}

.g5-home-grid .button.is-clicked .button__play {
  opacity: 1;
}

@media (max-width: 640px) {
  .g5-member-app .g5-main:has(.g5-home) {
    max-width: none;
    padding-left: 28px;
    padding-right: 28px;
  }

  .g5-home-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
    padding: 0;
  }

  .g5-home-grid .button {
    width: 100%;
    min-height: 62px;
    padding: 16px 12px;
  }

  .g5-home-grid .button .button__play {
    font-size: calc(10.5pt * var(--tc-font-scale));
  }
}

/* Launch slice */
.g5-launch-actions {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.g5-launch-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-height: 72px;
  padding: 20px 16px;
  border: 1px solid rgba(184, 152, 90, 0.35);
  border-radius: 12px;
  background: rgba(184, 152, 90, 0.08);
  color: var(--tc-bone);
  font-family: "Montserrat", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.g5-launch-btn:hover,
.g5-launch-btn:focus-visible {
  background: rgba(184, 152, 90, 0.16);
  border-color: rgba(184, 152, 90, 0.55);
}

.g5-launch-btn--secondary {
  background: transparent;
}

.g5-fridge-grid {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.g5-fridge-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--tc-bone);
  text-decoration: none;
}

.g5-fridge-item:hover {
  border-color: rgba(184, 152, 90, 0.35);
}

.g5-fridge-item__name {
  font-weight: 600;
}

.g5-fridge-item__price {
  font-variant-numeric: tabular-nums;
  opacity: 0.85;
}

.g5-confirm-message {
  margin: 24px 0 0;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--tc-bone);
}

.g5-back-wrap {
  margin-top: 32px;
}

.g5-back-link {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.g5-back-link:hover {
  color: var(--tc-bone);
}

/* Admin */
.g5-admin {
  background:
    linear-gradient(
      120deg,
      rgba(var(--shadow), calc(0 * var(--shadow-mod))) 30%,
      rgba(var(--shadow), calc(0.2 * var(--shadow-mod)))
    ),
    linear-gradient(var(--color-bg-default), var(--color-bg-default));
  background-attachment: fixed;
}

.g5-admin-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 20px 48px;
  /* Do NOT animate opacity on .g5-admin-main — it creates a stacking
     context that clips neumorphic / champagne button glows into a hard
     rectangular box around the rounded pills. Fade the page body only. */
}

.g5-admin-page {
  animation: g5AdminFadeIn 0.32s ease-out both;
}

@keyframes g5AdminFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.g5-admin.g5-admin-leaving .g5-admin-page {
  animation: none;
  opacity: 0;
  transition: opacity 0.35s ease-in;
}

@media (prefers-reduced-motion: reduce) {
  .g5-admin-page {
    animation: none;
  }
  .g5-admin.g5-admin-leaving .g5-admin-page {
    opacity: 1;
    transition: none;
  }
}

.g5-admin-header {
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
  overflow: visible;
}

.g5-admin-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin-bottom: 16px;
}

.g5-admin .g5-page-title.g5-tc-h2 {
  font-size: clamp(2rem, 5vw, 2.85rem);
  flex: 1 1 auto;
  min-width: 0;
}

.g5-admin .g5-admin-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  min-height: 42px;
  padding: 10px 18px;
  box-sizing: border-box;
  text-decoration: none;
  white-space: nowrap;
}

.g5-admin .g5-admin-action-btn--compact {
  min-width: 0;
  min-height: 40px;
  padding: 8px 16px;
  font-size: calc(11px * var(--tc-font-scale));
}

.g5-admin-header-signout {
  flex-shrink: 0;
  margin-left: auto;
}

.g5-admin-header-signout.is-pressed {
  transform: translateY(2px);
}

.g5-admin-nav {
  margin-top: 0;
  overflow: visible;
}

.g5-admin-nav__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  overflow: visible;
}

.g5-admin-nav-btn.button {
  min-width: 118px;
  min-height: 42px;
  height: 42px;
  padding: 0 4px;
  text-decoration: none;
  align-items: center;
  justify-content: center;
}

.g5-admin-nav-btn .button__play {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: calc(15px * var(--tc-font-scale));
  letter-spacing: 0.08em;
  padding: 0 2px 8px;
  line-height: 1;
}

.g5-admin-nav-btn .button__play span {
  display: block;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1;
  transform: translateY(0.06em);
}

.g5-admin-nav-btn.is-clicked {
  pointer-events: none;
}

.g5-admin-dashboard {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 8px;
}

.g5-admin-dashboard__user {
  margin: 0 0 20px;
  text-align: center;
}

.g5-admin-dashboard-nav {
  width: 100%;
  margin-top: 0;
}

.g5-admin-dashboard-nav__stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.g5-admin-dashboard-nav__stack .g5-admin-nav-btn.button {
  width: min(100%, 280px);
  max-width: 280px;
}

.g5-admin-section-title {
  font-size: 1rem;
  margin: 0 0 16px;
  font-weight: 600;
}

.g5-admin-section-subtitle {
  font-size: 0.9rem;
  margin: 20px 0 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.78);
}

.g5-admin-section-subtitle:first-of-type {
  margin-top: 0;
}

.g5-reconcile-summary-table--totals {
  margin-top: 16px;
}

.g5-reconcile-summary-accordion.clinic-faq {
  margin: 0 0 12px;
  max-width: none;
}

.g5-reconcile-summary-item.clinic-faq-item {
  border: none;
  margin-bottom: 0;
}

.g5-admin .g5-reconcile-summary-toggle.clinic-faq-question {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--tc-bone);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: none;
  font-family: inherit;
}

.g5-admin .g5-reconcile-summary-toggle.clinic-faq-question:hover {
  background: rgba(184, 152, 90, 0.08);
  color: var(--color-active-hover);
}

.g5-reconcile-summary-toggle__count {
  margin-left: 0.4em;
  font-weight: 500;
  opacity: 0.7;
  letter-spacing: 0;
  text-transform: none;
}

.g5-reconcile-summary-panel.clinic-faq-answer {
  padding: 0 4px;
  color: inherit;
  max-height: 0;
  overflow: hidden;
  transition: none;
}

.g5-reconcile-summary-item.active .g5-reconcile-summary-panel.clinic-faq-answer {
  padding: 16px 4px 4px;
  /* Beat main.css .clinic-faq-item.active .clinic-faq-answer { max-height: 1500px } —
     Due/Settled tables routinely exceed that and looked "empty" when open. */
  max-height: none;
  overflow: visible;
}

.g5-reconcile-sort {
  appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  letter-spacing: inherit;
  padding: 0;
  text-align: left;
}

.g5-reconcile-sort:hover {
  color: var(--color-active-hover, #c4a35a);
}

.g5-reconcile-sort.is-active::after {
  content: ' ▲';
  font-size: 0.7em;
  opacity: 0.85;
}

.g5-reconcile-sort.is-active.is-desc::after {
  content: ' ▼';
}

.g5-card-compact__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  gap: 12px 16px;
  margin-bottom: 16px;
}

.g5-card-compact__head-start {
  justify-self: start;
}

.g5-card-compact__head-title {
  justify-self: center;
  margin: 0;
  text-align: center;
}

.g5-card-compact__head-end {
  justify-self: end;
}

.g5-card-compact__head--stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.g5-members-list-title {
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  line-height: 1.15;
  margin: 0;
  text-align: center;
}

.g5-admin-member-link,
.g5-admin-member-link:visited {
  color: var(--tc-gold);
  text-decoration: none;
}

.g5-admin-member-link:hover,
.g5-admin-member-link:focus-visible {
  color: var(--tc-gold-highlight);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.g5-admin-form {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

.g5-admin-form--inline {
  grid-template-columns: 1fr auto auto;
  align-items: end;
}

.g5-admin-form__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  overflow: visible;
}

.g5-admin-form__section {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.g5-admin-form__section-title {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-active-hover);
  margin: 0 0 12px;
  padding: 0;
}

.g5-admin-form__section-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.g5-member-credentials {
  display: contents;
}

.g5-member-credentials__actions {
  grid-column: 1 / -1;
  margin-top: -4px;
}

.g5-field--locked > input,
.g5-field--locked > textarea,
.g5-field--locked > select {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.g5-field--credential.g5-field--locked .g5-field__credential-shell > input {
  cursor: not-allowed;
}

.g5-field--credential.g5-field--locked:not(:focus-within) .g5-field__credential-shell > input {
  opacity: 0.72;
}

.g5-field--credential.g5-field--locked:focus-within .g5-field__credential-shell > input {
  opacity: 1;
  cursor: not-allowed;
}

.g5-field--credential {
  position: relative;
  overflow: visible;
  border-radius: 1rem;
  background: linear-gradient(173deg, #23272f 0%, #14161a 100%);
  box-shadow:
    0 0 0 1px rgba(62, 68, 80, 0.42),
    0 2px 4px rgba(0, 0, 0, 0.28);
  padding: 0.3rem;
}

.g5-field__credential-shell {
  position: relative;
  display: block;
  width: 100%;
}

.g5-field__credential-shell > .g5-credential-input {
  padding-right: 2.75rem;
}

.g5-credential-reveal {
  position: absolute;
  top: 50%;
  right: 0.65rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
}

.g5-credential-reveal:hover:not(:disabled),
.g5-credential-reveal:focus-visible:not(:disabled) {
  color: var(--tc-bone);
  background: rgba(184, 152, 90, 0.12);
}

.g5-credential-reveal:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.g5-field--pin-on-file .g5-credential-input {
  font-family: inherit;
  letter-spacing: 0.12em;
}

/* G5_MMC signup validation tooltips — span.error in ../G5_MMC/css/style.css */
.g5-field--float.g5-field--credential .g5-field__credential-shell > input::placeholder {
  color: transparent;
}

.g5-field__credential-shell > span.error {
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  -webkit-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  font-size: 12px;
  position: absolute;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  top: -20px;
  right: -15px;
  z-index: 12;
  min-height: 25px;
  line-height: 1;
  background-color: #e34f4f;
  color: #fff;
  font-weight: normal;
  display: none;
  padding: 6px 8px;
  text-transform: none;
  letter-spacing: 0;
  opacity: 1;
  white-space: nowrap;
  pointer-events: none;
}

.g5-field__credential-shell > span.error.is-visible {
  display: inline-block;
}

.g5-field__credential-shell > span.error::after {
  content: '';
  position: absolute;
  border-style: solid;
  border-width: 0 6px 6px 0;
  border-color: transparent #e34f4f;
  display: block;
  width: 0;
  z-index: 1;
  bottom: -6px;
  left: 20%;
}

.g5-field-hint {
  margin: -10px 0 0;
  font-size: 0.8rem;
  opacity: 0.72;
}

/* Required-field validation tooltips (member add/edit) */
.g5-field__req-tooltip {
  position: absolute;
  top: -10px;
  right: 8px;
  z-index: 12;
  display: none;
  padding: 6px 8px;
  border-radius: 3px;
  background-color: #e34f4f;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  pointer-events: none;
  opacity: 1;
}

.g5-field__req-tooltip.is-visible {
  display: inline-block;
}

.g5-field__req-tooltip::after {
  content: '';
  position: absolute;
  border-style: solid;
  border-width: 0 6px 6px 0;
  border-color: transparent #e34f4f;
  width: 0;
  bottom: -6px;
  left: 20%;
}

.g5-field--invalid > input,
.g5-field--invalid > select,
.g5-field--invalid > .g5-field__credential-shell > input {
  box-shadow: inset 0 0 0 1px rgba(227, 79, 79, 0.85);
}

.g5-admin-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.g5-admin-text-link {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  color: var(--tc-bone-soft);
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.g5-admin-text-link:hover,
.g5-admin-text-link:focus-visible {
  color: var(--tc-bone);
}

.g5-admin-text-link--danger {
  color: #e88a8a;
}

.g5-admin-text-link--danger:hover,
.g5-admin-text-link--danger:focus-visible {
  color: #f2a5a5;
}

.g5-notification-recall-form {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.g5-launch-btn--compact {
  width: auto;
  min-height: 40px;
  padding: 10px 18px;
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
}

.g5-admin-tier-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-bottom: 24px;
}

.g5-admin-tier-card .g5-admin-form__grid--single {
  grid-template-columns: 1fr;
}

.g5-admin-tier-table-wrap {
  margin-bottom: 24px;
}

.g5-tier-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.g5-tier-accordion-item.clinic-faq-item {
  border: none;
  margin-bottom: 0;
}

.g5-admin .g5-tier-accordion-toggle.clinic-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: none;
  font-family: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.g5-admin .g5-tier-accordion-toggle.clinic-faq-question:hover {
  background: rgba(184, 152, 90, 0.08);
  color: var(--color-active-hover);
  border-color: rgba(184, 152, 90, 0.3);
}

.g5-tier-accordion-item.active .g5-tier-accordion-toggle.clinic-faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.g5-tier-accordion-toggle__label {
  font-weight: 600;
}

.g5-tier-accordion-toggle__status {
  margin-left: auto;
  margin-right: 8px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.g5-tier-accordion-toggle__status--on {
  color: #7ddca4;
  border-color: rgba(125, 220, 164, 0.4);
  background: rgba(125, 220, 164, 0.1);
}

.g5-tier-accordion-toggle__status--off {
  color: var(--tc-bone-soft);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.g5-tier-accordion-panel.clinic-faq-answer {
  padding: 0 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: none;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.g5-tier-accordion-item.active .g5-tier-accordion-panel.clinic-faq-answer {
  padding: 20px 16px;
  max-height: none;
  overflow: visible;
}

.g5-tier-form-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
}

.g5-tier-field-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 160px;
  min-width: 140px;
  max-width: 240px;
}

.g5-tier-field-block--wide {
  flex: 1 1 260px;
  max-width: 340px;
}

.g5-tier-field-block .g5-field-hint {
  margin: 0;
}

.g5-tier-form-fields > .g5-tier-field {
  flex: 1 1 160px;
  min-width: 140px;
  max-width: 240px;
  margin: 0;
}

.g5-tier-form-fields > .g5-tier-field--wide {
  flex: 1 1 260px;
  max-width: 340px;
}

.g5-tier-form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.g5-tier-active-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  cursor: pointer;
}

.g5-tier-active-toggle input {
  width: 16px;
  height: 16px;
}

.g5-tier-form-footer .g5-admin-action-btn {
  margin-left: auto;
}

.g5-admin-tier-hidden {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}

.g5-admin-tier-hidden__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.g5-admin-tier-hidden__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  min-width: 160px;
}

.g5-admin-tier-hidden__pay,
.g5-admin-tier-hidden__quota {
  flex: 1 1 140px;
  min-width: 120px;
  max-width: 180px;
  margin: 0;
}

.g5-admin-tier-badge-field input[type="file"] {
  margin-top: 6px;
  max-width: 100%;
}

.g5-admin-tier-badge-preview {
  display: block;
  max-width: 72px;
  max-height: 36px;
  margin-top: 6px;
  object-fit: contain;
}

.g5-admin-fridge-image-preview {
  display: block;
  width: 72px;
  height: 72px;
  margin: 8px 0;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.g5-fridge-image-field {
  display: block;
}

.g5-fridge-image-remove {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.4rem 0 0.6rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.g5-admin-fridge-thumb-cell {
  width: 64px;
  vertical-align: middle;
}

.g5-member-credentials__hint {
  margin: -4px 0 12px;
  font-size: 0.8125rem;
  color: var(--tc-bone-soft);
}

.g5-admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px 16px;
  margin-bottom: 24px;
}

.g5-admin-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.g5-field--compact {
  min-width: min(100%, 220px);
}

.g5-admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 18px;
  border: 1px solid rgba(184, 152, 90, 0.35);
  border-radius: 10px;
  background: rgba(184, 152, 90, 0.14);
  color: var(--tc-bone);
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.g5-admin-btn:hover,
.g5-admin-btn:focus-visible {
  background: rgba(184, 152, 90, 0.22);
  border-color: rgba(184, 152, 90, 0.55);
  color: var(--tc-bone);
}

.g5-admin-btn--ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
}

.g5-admin-btn--ghost:hover,
.g5-admin-btn--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--tc-bone);
}

.g5-admin-btn--small {
  min-height: 32px;
  padding: 6px 12px;
  font-size: 0.8125rem;
}

.g5-reconcile-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.g5-reconcile-badge--collected {
  background: rgba(143, 212, 143, 0.14);
  color: #8fd48f;
}

.g5-reconcile-badge--due {
  background: rgba(232, 136, 136, 0.12);
  color: #e8a0a0;
}

.g5-reconcile-badge--partial {
  background: rgba(184, 152, 90, 0.14);
  color: var(--color-active-hover);
}

.g5-reconcile-summary-table td:last-child {
  text-align: center;
}

.g5-reconcile-summary-table .g5-admin-table__actions {
  justify-content: center;
  width: 100%;
}

.g5-reconcile-summary-table .g5-admin-action-btn {
  min-width: 118px;
}

.g5-reconcile-summary-table .g5-admin-action-btn.is-pressed {
  transform: translateY(2px);
}

.g5-admin-table__row--collected td {
  opacity: 0.82;
}

.g5-reconcile-member-row {
  cursor: pointer;
  transition: background 0.15s ease;
}

.g5-reconcile-member-row:hover {
  background: rgba(184, 152, 90, 0.08);
}

.g5-reconcile-member-row--selected {
  background: rgba(184, 152, 90, 0.18);
}

.g5-reconcile-member-row--selected:hover {
  background: rgba(184, 152, 90, 0.22);
}

.g5-reconcile-checkouts-hint {
  margin: 0 0 16px;
  font-size: 0.875rem;
  color: var(--color-active-hover);
}

.g5-admin-thumb-btn {
  border: none;
  padding: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  line-height: 0;
}

.g5-admin-thumb-btn:focus-visible {
  outline: 2px solid var(--color-active-hover);
  outline-offset: 2px;
  border-radius: 6px;
}

.g5-admin-photo-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.g5-admin-photo-modal[hidden] {
  display: none !important;
}

.g5-admin-photo-modal__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  margin: 0;
  background: rgba(0, 0, 0, 0.82);
  cursor: pointer;
}

.g5-admin-photo-modal__img {
  position: relative;
  z-index: 1;
  max-width: min(100%, 720px);
  max-height: min(88vh, 900px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}

body.g5-admin-photo-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .g5-admin-form--inline {
    grid-template-columns: 1fr;
  }

  .g5-admin-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .g5-admin-toolbar__actions {
    width: 100%;
  }

  .g5-admin-toolbar__actions .g5-admin-btn {
    flex: 1 1 auto;
  }
}

.g5-field {
  display: grid;
  gap: 6px;
}

.g5-field span:not(.g5-field__label):not(.g5-field__credential-tooltip):not(.g5-field__req-tooltip):not(.error) {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* Neo text inputs — From Uiverse.io by Smit-Prajapati (adapted) */
.input-container {
  display: flex;
  border-radius: 1rem;
  background: linear-gradient(173deg, #23272f 0%, #14161a 100%);
  box-shadow:
    0 0 0 1px rgba(62, 68, 80, 0.42),
    0 2px 4px rgba(0, 0, 0, 0.28);
  padding: 0.3rem;
  gap: 0.3rem;
}

.g5-neo-input,
.input-container input,
.input-container textarea,
.input-container select,
.g5-field:not(.g5-field--check) > input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
.g5-field:not(.g5-field--check) > textarea,
.g5-field:not(.g5-field--check) > select,
.g5-field--float.g5-field--credential .g5-field__credential-shell > input,
.g5-notice-member-search {
  width: 100%;
  box-sizing: border-box;
  flex-basis: 100%;
  border-radius: 0.8rem;
  background: #23272f;
  box-shadow:
    inset 2px 2px 5px rgba(14, 16, 19, 0.85),
    inset -1px -1px 3px rgba(56, 62, 75, 0.22),
    0 0 100px rgba(255, 212, 59, 0),
    0 0 100px rgba(255, 102, 0, 0);
  padding: 1rem;
  border: 1px solid transparent;
  color: #fff;
  font: inherit;
  transition: all 0.2s ease-in-out;
  -webkit-appearance: none;
  appearance: none;
}

.g5-field:not(.g5-field--check):has(> input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"])),
.g5-field:not(.g5-field--check):has(> textarea),
.g5-field:not(.g5-field--check):has(> select) {
  border-radius: 1rem;
  background: linear-gradient(173deg, #23272f 0%, #14161a 100%);
  box-shadow:
    0 0 0 1px rgba(62, 68, 80, 0.42),
    0 2px 4px rgba(0, 0, 0, 0.28);
  padding: 0.3rem;
  gap: 0.3rem;
  position: relative;
}

.g5-field:not(.g5-field--check):has(> input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"])) > span:not(.g5-field__label):not(.g5-field__req-tooltip),
.g5-field:not(.g5-field--check):has(> textarea) > span:not(.g5-field__label):not(.g5-field__req-tooltip),
.g5-field:not(.g5-field--check):has(> select) > span:not(.g5-field__label):not(.g5-field__req-tooltip) {
  margin: -0.3rem -0.3rem 0.15rem;
  padding: 0 0.15rem;
  opacity: 0.85;
}

.g5-neo-input:focus,
.input-container input:focus,
.input-container textarea:focus,
.input-container select:focus,
.g5-field:not(.g5-field--check) > input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):focus,
.g5-field:not(.g5-field--check) > textarea:focus,
.g5-field:not(.g5-field--check) > select:focus,
.g5-field--float.g5-field--credential .g5-field__credential-shell > input:focus,
.g5-notice-member-search:focus {
  border: 1px solid #ffd43b;
  outline: none;
  box-shadow:
    inset 0 0 10px rgba(255, 102, 0, 0.5),
    inset 0 0 10px rgba(255, 212, 59, 0.5),
    0 0 100px rgba(255, 212, 59, 0.5),
    0 0 100px rgba(255, 102, 0, 0.5);
}

.g5-neo-input::placeholder,
.input-container input::placeholder,
.input-container textarea::placeholder,
.g5-field:not(.g5-field--check) > input::placeholder,
.g5-field:not(.g5-field--check) > textarea::placeholder,
.g5-notice-member-search::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.g5-neo-input:disabled,
.input-container input:disabled,
.input-container textarea:disabled,
.input-container select:disabled,
.g5-field:not(.g5-field--check) > input:disabled,
.g5-field:not(.g5-field--check) > textarea:disabled,
.g5-field:not(.g5-field--check) > select:disabled,
.g5-notice-member-search:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.g5-field--float > input::placeholder,
.g5-field--float > textarea::placeholder {
  color: transparent;
}

/* Floating labels — inspired by G5_MMC signup forms */
.g5-field--float {
  display: block;
  gap: 0;
  --g5-float-wrap-pad: 0.3rem;
  --g5-float-label-raised-top: calc(var(--g5-float-wrap-pad) + 1px);
  --g5-float-label-rest-offset: 0.16rem;
  --g5-float-label-gold: #ffb020;
  --g5-float-label-glow: rgba(255, 130, 35, 0.42);
  --g5-float-label-glow-soft: rgba(255, 95, 20, 0.2);
  --g5-float-label-depth: 0 1px 3px rgba(0, 0, 0, 0.62), 0 2px 7px rgba(8, 10, 14, 0.82);
}

.g5-field--float > textarea,
.g5-field--float > input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
.g5-field--float.g5-field--credential .g5-field__credential-shell > input {
  padding: 0.92rem 1rem 0.88rem;
  min-height: 3rem;
  height: 3rem;
  line-height: 1.2;
  box-sizing: border-box;
}

.g5-field--float.g5-field--multiline > textarea {
  min-height: 120px;
  height: auto;
  line-height: 1.45;
  padding: 0.85rem 1rem;
  resize: vertical;
}

.g5-field--float:focus-within > input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
.g5-field--float.g5-field--float-filled > input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
.g5-field--float.g5-field--credential:focus-within .g5-field__credential-shell > input,
.g5-field--float.g5-field--credential.g5-field--float-filled .g5-field__credential-shell > input {
  padding-top: 0.95rem;
  padding-bottom: 0.55rem;
  line-height: 1.35;
}

.g5-field--float:focus-within > textarea,
.g5-field--float.g5-field--float-filled > textarea {
  padding-top: 0.95rem;
  padding-bottom: 0.65rem;
  line-height: 1.45;
  height: auto;
  min-height: 3rem;
}

.g5-field--float > select {
  padding: 0.95rem 1rem 0.55rem;
  min-height: 3rem;
  height: 3rem;
  line-height: 1.35;
  box-sizing: border-box;
}

.g5-field--float > .g5-field__label {
  position: absolute;
  left: 1.45rem;
  right: 1rem;
  top: calc(50% + var(--g5-float-label-rest-offset));
  transform: translateY(-50%);
  margin: 0;
  padding: 0;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: none;
  opacity: 0.55;
  pointer-events: none;
  transition:
    top 0.2s ease,
    transform 0.2s ease,
    font-size 0.2s ease,
    opacity 0.2s ease,
    letter-spacing 0.2s ease,
    text-transform 0.2s ease,
    color 0.2s ease,
    text-shadow 0.2s ease;
  z-index: 2;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.g5-field--float:focus-within > .g5-field__label,
.g5-field--float.g5-field--float-filled > .g5-field__label,
.g5-field--float.g5-field--float-active > .g5-field__label,
.g5-field--float:has(> textarea:not(:placeholder-shown)) > .g5-field__label,
.g5-field--float:has(> input:not(:placeholder-shown):not([type="password"])) > .g5-field__label,
.g5-field--float:has(> select) > .g5-field__label,
.g5-field--float:has(> input[type="password"]:not(:placeholder-shown)) > .g5-field__label,
.g5-field--float:has(> input[type="password"]:focus) > .g5-field__label,
.g5-field--float:has(> input[type="date"]) > .g5-field__label,
.g5-field--float:has(> input[type="datetime-local"]) > .g5-field__label,
.g5-field--float:has(> input[type="date"]:focus) > .g5-field__label,
.g5-field--float:has(> input[type="datetime-local"]:focus) > .g5-field__label,
.g5-field--float.g5-field--float-filled:has(> input[type="date"]) > .g5-field__label,
.g5-field--float.g5-field--float-filled:has(> input[type="datetime-local"]) > .g5-field__label {
  top: var(--g5-float-label-raised-top);
  transform: translateY(-50%);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.96;
  color: var(--g5-float-label-gold);
}

/* Filled / raised but idle — warm orange label, soft glow, light depth */
.g5-field--float.g5-field--float-filled:not(:focus-within):not(.g5-field--float-active) > .g5-field__label,
.g5-field--float:has(> select):not(:focus-within):not(.g5-field--float-active) > .g5-field__label,
.g5-field--float:has(> input[type="date"]):not(:focus-within):not(.g5-field--float-active) > .g5-field__label,
.g5-field--float:has(> input[type="datetime-local"]):not(:focus-within):not(.g5-field--float-active) > .g5-field__label {
  color: var(--g5-float-label-gold);
  text-shadow:
    0 0 3px var(--g5-float-label-glow),
    0 0 8px var(--g5-float-label-glow-soft),
    var(--g5-float-label-depth);
}

.g5-field--float:focus-within > .g5-field__label,
.g5-field--float.g5-field--float-active > .g5-field__label {
  color: #ffc040;
  text-shadow:
    0 0 4px rgba(255, 145, 40, 0.58),
    0 0 10px rgba(255, 105, 25, 0.28),
    0 1px 4px rgba(0, 0, 0, 0.68),
    0 2px 9px rgba(6, 8, 12, 0.88);
}

.g5-field--float:has(> input[type="date"]),
.g5-field--float:has(> input[type="datetime-local"]) {
  position: relative;
}

.g5-field--float.g5-field--credential:has(.g5-field__credential-shell > input:not(:placeholder-shown)) > .g5-field__label {
  top: var(--g5-float-label-raised-top);
  transform: translateY(-50%);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.96;
  color: var(--g5-float-label-gold);
}

.g5-field--float:has(> textarea) > .g5-field__label {
  white-space: normal;
}

.g5-admin-member-picker-wrap.g5-field--float > .g5-notice-member-picker {
  margin-top: 0;
}

.g5-admin-member-picker-wrap.g5-field--float .g5-notice-member-search {
  width: 100%;
}

@media (max-width: 500px) {
  .input-container {
    flex-direction: column;
  }

  .input-container input,
  .input-container textarea,
  .input-container select {
    border-radius: 0.8rem;
  }
}

.g5-photo-preview {
  margin-top: 12px;
}

.g5-photo-field {
  margin-top: 20px;
}

.g5-photo-field__label {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tc-bone-soft);
  margin-bottom: 10px;
}

.g5-member-app .g5-photo-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 24px;
  text-decoration: none;
  cursor: pointer;
}

.g5-photo-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.g5-photo-input {
  display: none;
}

.g5-photo-preview img {
  display: block;
  max-width: 100%;
  max-height: 240px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.g5-fridge-confirm-form {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

.g5-admin-thumb {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.g5-admin-member-photo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin: 0 0 16px;
}

.g5-admin-member-photo__img,
.g5-admin-member-photo__placeholder {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.g5-admin-member-photo__placeholder {
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.72);
  font-family: "Inter", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.g5-admin-member-photo__hint {
  margin: 0;
  max-width: 28rem;
}

.g5-admin-member-name {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.g5-admin-member-name__photo,
.g5-admin-member-name__placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.g5-admin-member-name__placeholder {
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.65);
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.g5-field--grow {
  min-width: 0;
}

.g5-field--check {
  display: flex;
  align-items: center;
  gap: 8px;
}

.g5-admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.g5-admin-table th,
.g5-admin-table td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.g5-admin-credential--none {
  opacity: 0.45;
}

.g5-admin-table__actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.g5-inline-form {
  display: inline;
}

.g5-link-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: underline;
}

.g5-notice {
  color: #8fd48f;
  margin-bottom: 16px;
}

.g5-error {
  color: #e88;
  margin-bottom: 16px;
}

.g5-voice-warning {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 176, 32, 0.45);
  border-radius: 10px;
  background: rgba(255, 176, 32, 0.08);
}

.g5-voice-warning .g5-notice {
  color: #ffc040;
  margin-bottom: 12px;
}

/* Purchases cart */
[hidden] {
  display: none !important;
}

.g5-member-app.g5-has-cart .g5-main {
  padding-bottom: calc(var(--g5-nav-height) + 88px + env(safe-area-inset-bottom, 0px) + 24px);
}

.g5-catalog-accordions.clinic-faq {
  max-width: none;
  width: 100%;
  margin: 20px 0 0;
}

.g5-catalog-accordion-item.clinic-faq-item {
  margin-bottom: 12px;
}

.g5-catalog-accordion-item .clinic-faq-question {
  width: 100%;
  border: none;
  text-align: left;
  font-family: "Gotham", "Helvetica Neue", Helvetica, "Inter", Arial, sans-serif;
  font-weight: 600;
  font-size: calc(1.125rem * var(--tc-font-scale));
  letter-spacing: 0.04em;
}

.g5-catalog-accordion-item .clinic-faq-answer {
  padding-left: 0;
  padding-right: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.g5-catalog-accordion-item.active .clinic-faq-answer {
  padding: 16px 0 4px;
}

.g5-catalog-accordions .g5-catalog-grid {
  margin-top: 0;
  grid-template-columns: 1fr;
  gap: 14px;
}

.g5-catalog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 20px;
}

/* Purchase item — SPM tc-flow-step card */
.g5-member-app .g5-catalog-tile.tc-flow-step {
  position: relative;
  display: block;
  min-height: 0;
  padding: 18px 16px 64px;
  border: 1px solid rgba(213, 199, 163, 0.1);
  border-radius: 14px;
  background: rgba(12, 13, 15, 0.2);
  box-sizing: border-box;
  overflow: hidden;
}

.g5-member-app .g5-catalog-tile--has-gallery {
  padding-top: 0;
}

.g5-catalog-tile__gallery {
  position: relative;
  width: calc(100% + 32px);
  margin: 0 -16px 14px;
  height: 176px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
}

.g5-catalog-tile__slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.g5-catalog-tile__slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.65s ease;
}

.g5-catalog-tile__slides img.is-active {
  opacity: 1;
}

.g5-catalog-tile__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 4px;
}

.g5-member-app .g5-catalog-tile .g5-catalog-tile__name {
  margin: 0;
  color: #d5c7a3;
  font-family: "Helvetica Neue", Helvetica, "Inter", Arial, sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
}

.g5-catalog-tile__head .g5-catalog-tile__price,
.g5-catalog-tile__head .g5-catalog-tile__intro {
  font-family: "Helvetica Neue", Helvetica, "Inter", Arial, sans-serif;
  letter-spacing: 0.02em;
  line-height: 1.35;
  text-align: left;
}

.g5-catalog-tile__head .g5-catalog-tile__price {
  color: #8b9098;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  font-size: calc(13px * var(--tc-font-scale));
}

.g5-catalog-tile__head .g5-catalog-tile__price--stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.g5-catalog-tile__head .g5-catalog-tile__price--black {
  display: block;
}

.g5-catalog-tile__price-black-row {
  display: flex;
  align-items: center;
  gap: 7px;
  line-height: 1;
}

.g5-catalog-tile__price-black-num {
  color: #e8e4d8;
  font-weight: 400;
  font-size: calc(13px * var(--tc-font-scale));
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* Reusable Black tier chip — also used next to Black members' names later */
.g5-black-chip {
  display: inline-block;
  position: relative;
  top: -0.5px;
  padding: 3px 6px 2px;
  border: 1px solid #3a3220;
  border-radius: 3px;
  background: #000;
  box-shadow: inset 0 0 4px rgba(184, 152, 90, 0.25);
  color: #b8985a;
  font-family: "Helvetica Neue", Helvetica, "Inter", Arial, sans-serif;
  font-size: calc(8px * var(--tc-font-scale));
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.g5-catalog-tile__head .g5-catalog-tile__intro {
  color: #9a9488;
  font-size: calc(12px * var(--tc-font-scale));
  font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {
  .g5-catalog-tile__slides img {
    transition: none;
  }
}

.g5-catalog-tile__actions {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.g5-catalog-tile__qty {
  flex: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: calc(18px * var(--tc-font-scale));
  color: var(--tc-bone);
  font-family: "Inter", sans-serif;
}

/* Minus — convex clinic-btn-ghost (TEXT US style), no ripple */
.g5-member-app .g5-catalog-btn-minus.clinic-btn-ghost {
  width: 50px;
  height: 50px;
  min-width: 50px;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 400;
  box-shadow:
    inset 2px 2px 4px rgba(0, 0, 0, 0.55),
    inset -2px -2px 4px rgba(236, 234, 231, 0.05),
    4px 4px 8px rgba(0, 0, 0, 0.8),
    -4px -4px 8px rgba(236, 234, 231, 0.08);
}

.g5-member-app .g5-catalog-btn-minus.clinic-btn-ghost:active {
  box-shadow:
    inset 3px 3px 6px rgba(0, 0, 0, 0.55),
    inset -3px -3px 6px rgba(236, 234, 231, 0.05);
  transform: translateY(1px);
}

/* Plus — tc-pulse-arrow ripple (SPM), no rotation */
.g5-member-app .g5-pulse-plus.tc-pulse-arrow {
  flex-shrink: 0;
}

.g5-member-app .g5-pulse-plus span {
  position: relative;
  z-index: 1;
  font-size: 1.65rem;
  font-weight: 300;
  line-height: 1;
  color: var(--color-active-hover);
  font-family: "Inter", sans-serif;
	margin-bottom: 5px;
}

.g5-member-app .g5-pulse-plus svg {
  display: none;
}

.g5-cart-bar[hidden] {
  display: none !important;
}

.g5-cart-bar:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.g5-cart-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--g5-nav-height) + env(safe-area-inset-bottom, 0px));
  z-index: 20;
  gap: 12px;
  padding: 18px 16px 30px;
  background: rgba(12, 12, 12, 0.98);
  border-top: 1px solid rgba(184, 152, 90, 0.35);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.45);
}

.g5-cart-bar__summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.g5-cart-bar__count {
  color: #d5c7a3;
  font-family: "Helvetica Neue", Helvetica, "Inter", Arial, sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.g5-cart-bar__total {
  color: #8b9098;
  font-family: "Helvetica Neue", Helvetica, "Inter", Arial, sans-serif;
  font-weight: 400;
  font-size: calc(13px * var(--tc-font-scale));
  letter-spacing: 0.02em;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}

/* Neomorphic dark button (modeled on the clinic "ADD TO ACCOUNT" button) with a
   pulsing amber neon glow like the focused admin text inputs. No ripple.
   Shared by the cart Review button and the checkout "Add to account" button. */
.g5-glow-cta.clinic-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 14px 34px;
  font-size: calc(12px * var(--tc-font-scale));
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid rgba(255, 212, 59, 0.6);
  border-radius: 14px;
  color: var(--color-active);
  background: var(--tc-surface);
  animation: g5CartReviewGlow 2s ease-in-out infinite alternate;
}

.g5-glow-cta.clinic-btn-primary:active {
  animation: none;
}

.g5-glow-cta.clinic-btn-primary:disabled {
  animation: none;
  border-color: rgba(255, 212, 59, 0.2);
}

/* Neon-sign style: a slow, smooth glow that pulses between a medium and a full
   state (never dropping out), running with `alternate` for a seamless breathe. */
@keyframes g5CartReviewGlow {
  /* medium — the low point of the pulse (stays clearly lit) */
  0% {
    border-color: rgba(255, 212, 59, 0.55);
    box-shadow:
      inset 2px 2px 4px rgba(0, 0, 0, 0.55),
      inset -2px -2px 4px rgba(236, 234, 231, 0.05),
      inset 0 0 8px rgba(255, 102, 0, 0.26),
      4px 4px 8px rgba(0, 0, 0, 0.8),
      -4px -4px 8px rgba(236, 234, 231, 0.08),
      0 0 10px rgba(255, 212, 59, 0.45),
      0 0 22px rgba(255, 102, 0, 0.3),
      0 0 42px rgba(255, 212, 59, 0.2);
  }
  /* full — the high point of the pulse */
  100% {
    border-color: rgba(255, 212, 59, 0.95);
    box-shadow:
      inset 2px 2px 4px rgba(0, 0, 0, 0.55),
      inset -2px -2px 4px rgba(236, 234, 231, 0.05),
      inset 0 0 12px rgba(255, 102, 0, 0.4),
      4px 4px 8px rgba(0, 0, 0, 0.8),
      -4px -4px 8px rgba(236, 234, 231, 0.08),
      0 0 18px rgba(255, 212, 59, 0.7),
      0 0 40px rgba(255, 102, 0, 0.5),
      0 0 78px rgba(255, 212, 59, 0.3);
  }
}

@media (prefers-reduced-motion: reduce) {
  .g5-glow-cta.clinic-btn-primary {
    animation: none;
    border-color: rgba(255, 212, 59, 0.55);
    box-shadow:
      inset 2px 2px 4px rgba(0, 0, 0, 0.55),
      inset -2px -2px 4px rgba(236, 234, 231, 0.05),
      4px 4px 8px rgba(0, 0, 0, 0.8),
      -4px -4px 8px rgba(236, 234, 231, 0.08),
      0 0 16px rgba(255, 212, 59, 0.4),
      0 0 30px rgba(255, 102, 0, 0.3);
  }
}

.g5-sheet[hidden] {
  display: none !important;
}

/* Checkout / confirm — top drop-down over dark scrim (SPM utility bar + CTA) */
.g5-sheet--from-top:not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.g5-sheet--from-top {
  position: fixed;
  inset: 0;
  z-index: 30;
  padding: 0;
  background: rgba(0, 0, 0, 0.72);
  overflow: hidden;
  pointer-events: none;
}

.g5-checkout-drop {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  max-height: min(88vh, 100%);
  overflow-y: auto;
  pointer-events: auto;
  background: var(--clinic-surface);
  box-shadow:
    inset 0 -8px 12px rgba(0, 0, 0, 0.35),
    0 18px 48px rgba(0, 0, 0, 0.55);
  border-bottom: 1px solid rgba(213, 199, 163, 0.1);
  transform: translateY(-100%);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  -webkit-overflow-scrolling: touch;
}

.g5-photo-prompt {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  box-sizing: border-box;
}

.g5-photo-prompt[hidden] {
  display: none !important;
}

.g5-photo-prompt__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  margin: 0;
  background: rgba(0, 0, 0, 0.72);
  cursor: pointer;
}

.g5-photo-prompt__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 340px);
  padding: 24px 20px;
  border-radius: 14px;
  border: 1px solid rgba(213, 199, 163, 0.12);
  background: rgba(12, 13, 15, 0.96);
  box-shadow:
    inset 2px 2px 6px rgba(0, 0, 0, 0.45),
    0 16px 40px rgba(0, 0, 0, 0.55);
  display: grid;
  gap: 18px;
  text-align: center;
}

.g5-photo-prompt__text {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, "Inter", Arial, sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--tc-bone);
}

.g5-member-app .g5-photo-prompt__panel .g5-photo-trigger {
  width: 100%;
}

.g5-sheet--from-top.is-open .g5-checkout-drop {
  cursor: default;
  transform: translateY(0);
}

.g5-sheet-scrim {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
}

.g5-checkout-drop__bar.clinic-utility-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
}

.g5-checkout-drop__title {
  margin: 0;
  font-family: "miller-banner", serif;
  font-weight: 400;
  font-size: calc(15px * var(--tc-font-scale));
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-active-hover);
}

.g5-checkout-drop__body {
  padding: 20px 20px 28px;
  border-top: 1px solid rgba(213, 199, 163, 0.08);
  box-shadow: inset 0 8px 12px rgba(0, 0, 0, 0.18);
}

.g5-checkout-drop__cta.clinic-final-cta-buttons {
  margin: 20px 0 0;
}

.g5-member-app .g5-checkout-drop__cta .clinic-btn-primary {
  min-width: min(100%, 280px);
}

.g5-member-app .g5-checkout-drop__cta .clinic-btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

body.g5-checkout-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .g5-checkout-drop {
    transition: none;
    transform: translateY(0);
  }
}

.g5-sheet:not(.g5-sheet--from-top):not([hidden]) {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.g5-sheet:not(.g5-sheet--from-top) {
  position: fixed;
  inset: 0;
  z-index: 30;
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  background: rgba(0, 0, 0, 0.72);
}

.g5-sheet__panel {
  width: min(100%, 480px);
  max-height: calc(100vh - 120px);
  overflow: auto;
  border: 1px solid rgba(184, 152, 90, 0.25);
}

.g5-sheet__title {
  margin: 0 0 12px;
  font-size: 1.1rem;
  color: var(--tc-bone);
}

.g5-sheet__actions {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.g5-checkout-drop__body .g5-checkout-lines {
  gap: 0;
}

.g5-checkout-drop__body .g5-checkout-lines li {
  font-family: "Helvetica Neue", Helvetica, "Inter", Arial, sans-serif;
  letter-spacing: 0.04em;
  line-height: 1.45;
  padding: 0;
  border-bottom: 1px solid rgba(213, 199, 163, 0.08);
}

.g5-checkout-line__body {
  min-width: 0;
}

.g5-checkout-line__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}

.g5-checkout-line__view {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35em;
  min-width: 0;
}

.g5-checkout-line__lead {
  color: var(--tc-bone);
  white-space: nowrap;
  font-weight: 600;
}

.g5-checkout-line__name {
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  color: var(--tc-bone);
  font-family: "Helvetica Neue", Helvetica, "Inter", Arial, sans-serif;
  font-weight: 600;
  font-size: inherit;
  letter-spacing: 0.04em;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}

.g5-checkout-line__name:hover,
.g5-checkout-line__name[aria-expanded="true"] {
  color: var(--color-active-hover);
}

.g5-checkout-line__edit {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-bottom: 2px;
}

.g5-checkout-line__edit[hidden] {
  display: none !important;
}

.g5-member-app .g5-checkout-line__step.clinic-btn-ghost {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  line-height: 1;
  transform: none;
  box-sizing: border-box;
}

.g5-member-app .g5-checkout-line__remove.clinic-btn-ghost {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  margin: 0;
  display: grid;
  place-items: center;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  line-height: 0;
  transform: none;
  box-sizing: border-box;
}

.g5-member-app .g5-checkout-line__step.clinic-btn-ghost:active,
.g5-member-app .g5-checkout-line__remove.clinic-btn-ghost:active {
  transform: translateY(1px);
}

.g5-checkout-line__remove .g5-checkout-line__symbol {
  display: block;
  font-size: 1.05rem;
  line-height: 1;
  transform: translateY(-1px);
}

.g5-checkout-line__symbol {
  display: block;
  line-height: 1;
  font-size: 1.125rem;
}

.g5-checkout-line__input {
  width: 56px;
  box-sizing: border-box;
  padding: 10px 6px;
  border-radius: 10px;
  border: 1px solid rgba(213, 199, 163, 0.2);
  background: rgba(0, 0, 0, 0.35);
  color: var(--tc-bone);
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.g5-checkout-line__input:focus {
  outline: none;
  border-color: var(--tc-gold-border);
}

.g5-checkout-line__remove {
  flex-shrink: 0;
  color: var(--tc-bone-soft);
}

.g5-checkout-line__remove:hover {
  color: var(--tc-bone);
}

.g5-checkout-drop__body .g5-checkout-lines li:last-child {
  border-bottom: none;
}

.g5-checkout-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.g5-checkout-lines li {
  font-size: 0.9rem;
  color: var(--tc-bone);
}

.g5-confirm-note {
  margin: 16px 0 0;
  font-size: 0.9rem;
  color: #b8985a;
}

.g5-checkout-group {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.g5-purchase-history-search {
  margin-bottom: 18px;
}

.g5-purchase-history__list {
  display: grid;
  gap: 0;
}

.g5-purchase-history .g5-reconcile-pager {
  margin-top: 18px;
}

.g5-checkout-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.g5-checkout-group__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.g5-checkout-group__meta {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  opacity: 0.65;
}

.g5-checkout-group__totals {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.2;
}

.g5-checkout-group__charge {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35em;
  font-size: 1.3rem;
  font-weight: 600;
}

.g5-checkout-group__charge-amount {
  color: #e07070;
  font-weight: 700;
}

.g5-checkout-group__charge-label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.6em;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.g5-checkout-collected-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  margin-left: 6px;
  border-radius: 50%;
  background: rgba(143, 212, 143, 0.18);
  color: #8fd48f;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}

.g5-checkout-group--collected .g5-checkout-group__charge-amount,
.g5-checkout-group--comped .g5-checkout-group__charge-amount {
  color: #8fd48f;
}

.g5-checkout-group--dismissed .g5-checkout-group__charge-amount {
  color: rgba(255, 255, 255, 0.55);
}

.g5-checkout-group__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0 0 12px;
}

.g5-admin-action-btn--danger {
  border-color: rgba(227, 79, 79, 0.45);
  color: #e8a0a0;
}

.g5-admin-action-btn--danger:hover,
.g5-admin-action-btn--danger:focus-visible {
  background: rgba(227, 79, 79, 0.12);
  border-color: rgba(227, 79, 79, 0.65);
  color: #f0b0b0;
}

.g5-reconcile-badge--checkout {
  margin-left: 8px;
  vertical-align: middle;
}

.g5-reconcile-badge--comped {
  background: rgba(143, 212, 143, 0.14);
  color: #8fd48f;
}

.g5-reconcile-badge--dismissed {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.65);
}

.g5-reconcile-badge--settled {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.55);
}

.g5-reconcile-badge--admin-add {
  background: rgba(120, 170, 230, 0.16);
  color: #9ec5f0;
}

.g5-checkout-group__meta--staff {
  color: rgba(255, 255, 255, 0.78);
}

.g5-reconcile-badge--collected.g5-reconcile-badge--checkout {
  background: rgba(143, 212, 143, 0.14);
  color: #8fd48f;
}

.g5-reconcile-history-wrap {
  margin-top: 16px;
}

.g5-reconcile-history.clinic-faq {
  margin: 0;
  max-width: none;
}

.g5-reconcile-history-item.clinic-faq-item {
  border: none;
  margin-bottom: 0;
}

.g5-admin .g5-reconcile-history-toggle.clinic-faq-question {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--tc-bone);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: none;
  font-family: inherit;
}

.g5-admin .g5-reconcile-history-toggle.clinic-faq-question:hover {
  background: rgba(184, 152, 90, 0.08);
  color: var(--color-active-hover);
}

.g5-reconcile-history-panel.clinic-faq-answer {
  padding: 0 4px;
  color: inherit;
}

.g5-reconcile-history-item.active .g5-reconcile-history-panel.clinic-faq-answer {
  padding: 16px 4px 4px;
  max-height: none;
  overflow: visible;
}

.g5-reconcile-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.78);
}

.g5-reconcile-pager__field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.g5-reconcile-pager__label {
  white-space: nowrap;
}

.g5-reconcile-pager__page,
.g5-reconcile-pager__rows {
  min-height: 30px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--tc-bone);
  font: inherit;
}

.g5-reconcile-pager__nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.g5-reconcile-pager__btn {
  min-width: 30px;
  min-height: 30px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--tc-bone);
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

.g5-reconcile-pager__btn:hover:not(:disabled),
.g5-reconcile-pager__btn:focus-visible:not(:disabled) {
  background: rgba(184, 152, 90, 0.12);
  border-color: rgba(184, 152, 90, 0.45);
}

.g5-reconcile-pager__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.g5-reconcile-pager__show-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.g5-reconcile-pager__show-all input {
  margin: 0;
}

.g5-notice-member-picker {
  display: grid;
  gap: 10px;
}

.g5-notice-member-picker__controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.g5-notice-member-browse {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(184, 152, 90, 0.35);
  border-radius: 10px;
  background: rgba(184, 152, 90, 0.08);
  color: var(--tc-bone);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.g5-notice-member-browse:hover,
.g5-notice-member-browse:focus-visible {
  border-color: rgba(184, 152, 90, 0.55);
  background: rgba(184, 152, 90, 0.14);
}

.g5-notice-member-result--empty {
  pointer-events: none;
  color: var(--tc-bone-soft);
  font-style: italic;
}

.g5-reconcile-pager__btn.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.g5-admin-pager__apply {
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid rgba(184, 152, 90, 0.35);
  border-radius: 8px;
  background: rgba(184, 152, 90, 0.1);
  color: var(--tc-bone);
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
}

.g5-admin-pager__apply:hover,
.g5-admin-pager__apply:focus-visible {
  background: rgba(184, 152, 90, 0.18);
}

.g5-notice-member-results {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(184, 152, 90, 0.2);
  border-radius: 10px;
  overflow: hidden;
}

.g5-notice-member-result {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-bottom: 1px solid rgba(184, 152, 90, 0.12);
  background: rgba(0, 0, 0, 0.2);
  color: var(--tc-bone);
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.g5-notice-member-result:last-child {
  border-bottom: none;
}

.g5-notice-member-result:hover {
  background: rgba(184, 152, 90, 0.12);
}

.g5-notice-member-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.g5-notice-member-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(184, 152, 90, 0.16);
  color: var(--tc-bone);
  font-size: 0.82rem;
}

.g5-notice-member-chip__remove {
  border: none;
  background: none;
  color: var(--tc-bone-soft);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
}

