@import url('https://fonts.googleapis.com/css2?family=Alfa+Slab+One&family=Inter:wght@500;800&family=Montserrat:wght@500;700;800&family=Noto+Sans+TC:wght@700;900&family=Zilla+Slab:wght@700;900&display=swap');

:root {
  /* Brand color system */
  --color-primary: #1455B0;
  --color-primary-rgb: 20, 85, 176;
  --color-accent: #AEEA00;
  --color-accent-rgb: 174, 234, 0;
  --color-soft-slate: #64748B;
  --color-soft-slate-rgb: 100, 116, 139;
  --color-paper: #F8FAFC;
  --color-paper-rgb: 248, 250, 252;
  --color-paper-warm: #F8FAFC;
  --color-paper-warm-rgb: 248, 250, 252;
  --color-secondary: #4FC3F7;
  --color-secondary-rgb: 79, 195, 247;
  --color-warning: #FF9800;
  --color-warning-rgb: 255, 152, 0;
  --color-surface-white: #FFFFFF;
  --color-surface-white-rgb: 255, 255, 255;
  --color-graphite: #334155;
  --color-graphite-rgb: 51, 65, 85;
  --color-navy-dark: #003366;
  --color-navy-dark-rgb: 0, 51, 102;
  --color-neutral: #9E9E9E;
  --color-neutral-rgb: 158, 158, 158;

  /* Legacy aliases for existing templates */
  --bg: var(--color-primary);
  --surface: var(--color-surface-white);
  --surface-soft: rgba(var(--color-surface-white-rgb), 0.96);
  --text: var(--color-graphite);
  --muted: rgba(var(--color-graphite-rgb), 0.65);
  --line: rgba(var(--color-graphite-rgb), 0.28);
  --primary: var(--color-primary);
  --primary-dark: #0D3F83;
  --danger: #D7263D;
  --success: #2E8B57;

  /* Typography */
  --font-heading: "Montserrat", "Alfa Slab One", "Noto Sans TC", sans-serif;
  --font-display: "Alfa Slab One", "Montserrat", "Noto Sans TC", sans-serif;
  --font-body: "Noto Sans TC", "Montserrat", sans-serif;
  --text-body-lg: 18px;
  --text-body: 16px;
  --text-caption: 12px;

  /* 8pt spacing scale */
  --p-sm: 8px;
  --p-md: 16px;
  --p-lg: 24px;
  --p-xl: 32px;
  --space-section: 32px;
  --space-section-lg: 64px;

  /* Radius */
  --radius-lg: 24px;
  --radius-md: 12px;
  --radius-full: 9999px;

  /* Stroke */
  --stroke-thin: 2px;
  --stroke-thick: 4px;

  /* Neo-brutal hard shadows */
  --shadow-1: 4px 4px 0px var(--color-navy-dark);
  --shadow-2: 8px 8px 0px var(--color-navy-dark);
  --shadow-3: 12px 12px 0px var(--color-navy-dark);
  --shadow-xl: 0 20px 40px rgba(15, 23, 42, 0.18);
  --shadow: var(--shadow-1);

  /* Physics motion */
  --spring-easing: cubic-bezier(0.22, 1, 0.36, 1);
  --hover-transition: 0.4s var(--spring-easing);
}

* { box-sizing: border-box; }

a,
button,
.btn,
input,
select,
textarea,
.chip,
.slot-chip,
.date-display {
  transition-timing-function: var(--spring-easing) !important;
}

a,
button,
.btn,
.chip,
.slot-chip,
.date-display {
  transition:
    transform var(--hover-transition),
    filter var(--hover-transition),
    background-color var(--hover-transition),
    color var(--hover-transition),
    border-color var(--hover-transition),
    box-shadow var(--hover-transition),
    opacity var(--hover-transition);
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Noto Sans TC", "Montserrat", sans-serif;
  font-size: var(--text-body);
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--color-graphite);
  background-color: var(--color-primary);
  background-image:
    radial-gradient(circle, rgba(var(--color-surface-white-rgb), 0.1) 2px, transparent 2px);
  background-size: 8px 8px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  margin: 4px 0 10px;
  color: var(--color-graphite);
  font-family: "Montserrat", "Alfa Slab One", "Noto Sans TC", sans-serif;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-shadow: 0px 2px 4px rgba(0,0,0,0.05);
}

.subtle-texture {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  z-index: 0;
  background-image: url('/static/graphics/subtle-dot-texture.svg');
  background-size: 420px 420px;
  background-repeat: repeat;
  mix-blend-mode: multiply;
}

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

h1 {
  font-size: 48px;
  line-height: 1.1;
  text-transform: uppercase;
}

h2 {
  font-size: 32px;
  line-height: 1.2;
  text-transform: uppercase;
}

h3 {
  font-size: 24px;
  line-height: 1.3;
}

h4 {
  font-size: 20px;
  line-height: 1.3;
}

.no-break-group {
  display: inline-block;
  white-space: nowrap;
}

.date-display,
.calendar-title,
.calendar-day,
.card-value,
.txn-amount {
  font-family: var(--font-display);
}

.topbar {
  background: var(--color-primary);
  color: #fff;
  padding: 18px 18px 14px;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: var(--stroke-thick) solid var(--color-navy-dark);
}

.topbar-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-heading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-title {
  margin: 0;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  text-shadow: 2px 2px 0px var(--color-navy-dark);
}

.topbar-ball {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.brand-subtitle {
  margin: 4px 0 0;
  font-size: var(--text-caption);
  color: rgba(var(--color-surface-white-rgb), 0.85);
}

.user-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: var(--stroke-thin) solid #fff;
  background: rgba(var(--color-surface-white-rgb), 0.14);
  font-size: var(--text-caption);
  font-weight: 800;
}

.user-pill-icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.user-pill-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.user-pill--counter .user-pill-icon,
.user-pill--coach .user-pill-icon {
  color: var(--color-accent);
}

.user-pill--member .user-pill-icon {
  color: #FF4FB5;
}

.topbar-user-stack {
  margin-left: auto;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.topbar-member-balance {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 2px solid #94A3B8;
  background: #E2E8F0;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.topbar-member-balance:hover {
  border-color: #64748B;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.15);
}

.topbar-member-balance:focus-visible {
  outline: 2px solid #2563EB;
  outline-offset: 2px;
}

.topbar-balance-amount,
.balance-readable-number,
[data-balance-value],
.wallet-balance-amount,
.active-member-balance,
.balance-number,
.member-live-item-balance {
  color: #0F172A !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-shadow: none !important;
  font-variant-numeric: tabular-nums;
}

.topbar-logout-link {
  color: rgba(var(--color-surface-white-rgb), 0.92);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 2px 4px;
  border-bottom: 2px solid transparent;
}

.topbar-logout-link:hover {
  border-bottom-color: var(--color-accent);
}


.book-balance-showcase {
  margin: 2px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.book-balance-showcase__label {
  font-size: 13px;
  font-weight: 800;
  color: #334155;
  letter-spacing: 0.02em;
}

.book-balance-showcase__value {
  font-family: var(--font-display);
  font-size: clamp(31px, 3.9vw, 45px);
  line-height: 0.95;
  color: #0B1B45 !important;
  font-weight: 800 !important;
  letter-spacing: 0.03em !important;
}

@media (max-width: 760px) {
  .book-balance-showcase__value {
    font-size: clamp(24px, 7.2vw, 34px);
  }
}

.book-quick-record-btn {
  font-size: 15px;
  font-weight: 800;
  padding: 8px 14px;
}

.book-booking-hours-hint {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.book-announcement-details > summary {
  font-size: 15px;
  font-weight: 700;
}
.auth-actions {
  display: flex;
  gap: 8px;
}

.auth-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  border: var(--stroke-thin) solid #fff;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
  font-family: "Noto Sans TC", sans-serif;
  background: rgba(var(--color-surface-white-rgb), 0.08);
  box-shadow: var(--shadow-1);
}

.auth-link.login-pill {
  border-radius: 9999px;
  background: var(--color-accent);
  border: 2px solid var(--color-navy-dark);
  color: var(--color-navy-dark);
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 900;
  box-shadow: 3px 3px 0px var(--color-navy-dark);
}

.auth-link.primary {
  background: rgba(var(--color-surface-white-rgb), 0.12);
  color: #fff;
  border-color: #fff;
  box-shadow: var(--shadow-1);
}

.auth-link:hover {
  transform: translate(-2px, -2px);
}

.nav {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.nav a {
  color: rgba(var(--color-surface-white-rgb), 0.8);
  text-decoration: none;
  padding: 6px 2px;
  border: 0;
  border-radius: 0;
  font-family: "Noto Sans TC", sans-serif;
  font-size: 16px;
  font-weight: 700;
  background: transparent;
  position: relative;
  transition: color 0.2s ease;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 3px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease;
}

.nav a:hover {
  color: rgba(var(--color-surface-white-rgb), 1);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.container {
  max-width: 1160px;
  margin: var(--space-section) auto;
  padding: 0 14px var(--space-section);
  overflow-x: hidden;
}

.panel {
  background: var(--surface);
  color: var(--text);
  border: var(--stroke-thick) solid var(--color-navy-dark);
  border-radius: var(--radius-lg);
  padding: var(--p-lg);
  margin-bottom: var(--space-section);
  box-shadow: var(--shadow-2);
}

.panel > h2,
.panel > h3,
.panel > h4 {
  font-size: 18px;
  font-weight: 700;
  color: #0F172A;
}

.panel .hint {
  font-size: 14px;
  font-weight: 400;
  color: #475569;
}

/* Landing page: material-first collage + threshold choreography */
main.container.landing-main {
  --landing-curve: cubic-bezier(0.22, 1, 0.36, 1);
  --landing-curve-soft: cubic-bezier(0.34, 1.28, 0.64, 1);
  max-width: 100%;
  margin: 0;
  padding: 0;
  width: 100%;
  height: calc(100vh - 84px);
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  background: var(--color-paper);
}

html.scoreboard-lockdown,
body.scoreboard-lockdown {
  overflow: hidden !important;
}

body.scoreboard-lockdown {
  pointer-events: none;
}

.landing-scoreboard-preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--color-navy-dark);
  pointer-events: auto;
  transform-origin: center;
  will-change: opacity, transform, filter;
}

.landing-scoreboard-preloader__spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(79, 195, 247, 0.15) 0%, transparent 60%);
}

.landing-scoreboard-board {
  position: relative;
  width: min(84vw, 860px);
  min-height: clamp(240px, 46vh, 420px);
  display: grid;
  place-items: center;
  background: #000000;
  border: 8px solid var(--color-surface-white);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.48);
}

.landing-scoreboard-board::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  transform: translateY(-50%);
  background: var(--color-surface-white);
}

.landing-scoreboard-digit {
  font-family: "Alfa Slab One", "Montserrat", sans-serif;
  font-size: clamp(120px, 20vw, 240px);
  color: var(--color-surface-white);
  line-height: 1;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.landing-scoreboard-preloader.is-finished {
  pointer-events: none;
}

main.container.landing-main *,
main.container.landing-main *::before,
main.container.landing-main *::after {
  transition-timing-function: var(--landing-curve) !important;
  animation-timing-function: var(--landing-curve);
}

.landing-scroll {
  position: relative;
}

.landing-screen {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 46px);
  transition: opacity 0.92s var(--landing-curve), transform 0.92s var(--landing-curve);
}

.landing-media,
.landing-tone,
.sketch-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.landing-media,
.sketch-layer {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 0;
  mix-blend-mode: multiply;
  filter: contrast(1.1) saturate(1.05);
}

.landing-tone {
  z-index: 1;
}

.landing-safe-zone {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 60;
  padding: max(8vh, 32px) max(5vw, 24px);
  pointer-events: none;
}

.landing-safe-zone > * {
  pointer-events: auto;
}

.landing-reveal {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(12px);
  transition: all 1.0s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform, filter;
}

.landing-screen.is-visible .landing-reveal {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0px);
}

/* Hero */
.landing-screen--hero {
  height: 100vh;
  width: 100vw;
  position: relative;
  overflow: hidden;
  background: var(--color-paper);
  padding: 0;
  display: block;
}

.landing-hero-media-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.landing-hero-disintegrate-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 18;
  pointer-events: none;
  opacity: 0;
}

.landing-media--hero {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transform: translateZ(0) scale(0.92);
  image-rendering: auto;
  mix-blend-mode: multiply;
  filter: contrast(1.08) saturate(1.04);
  opacity: 1;
  position: absolute;
  inset: 0;
}

.landing-tone--paper {
  background: linear-gradient(180deg, rgba(174, 234, 0, 0.16) 0%, rgba(248, 250, 252, 0.02) 22%, rgba(248, 250, 252, 0.02) 78%, rgba(174, 234, 0, 0.16) 100%);
  mix-blend-mode: multiply;
}

.landing-tone--hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.landing-safe-zone--hero {
  display: grid;
  align-items: center;
  justify-items: end;
  align-content: center;
  gap: 8px;
}

.landing-hero-title-wrap {
  position: relative;
  width: min(36vw, 460px);
  max-width: calc(100vw - max(10vw, 40px));
  text-align: right;
  display: grid;
  gap: 2px;
}

.landing-hero-title {
  margin: 0;
  font-family: "Montserrat", "Alfa Slab One", "Noto Sans TC", sans-serif;
  font-size: clamp(32px, 4.8vw, 60px);
  line-height: 0.98;
  color: var(--color-graphite);
  font-weight: 900;
  letter-spacing: -0.01em;
  text-align: right;
  white-space: nowrap;
}

.landing-hero-title span {
  display: block;
  white-space: nowrap;
}

.landing-hero-subtitle {
  margin: 0;
  color: rgba(var(--color-graphite-rgb), 0.9);
  font-family: "Noto Sans TC", "Montserrat", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.05em;
  padding: 8px 10px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(248, 250, 252, 0.42);
  text-align: right;
  white-space: normal;
}

.landing-hero-subtitle-arc {
  display: none;
}

.landing-sub {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(14px, 2vw, 20px);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(15, 34, 46, 0.74);
}

/* Net panel */
.landing-screen--net {
  background: var(--color-paper);
  padding: 0;
}

.landing-media--net {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  inset: 0;
  mix-blend-mode: normal;
  filter: contrast(1.05) saturate(1.08);
  opacity: 1;
}

.landing-media--net.landing-reveal {
  transform: translateY(40px) scale(1.08);
  filter: blur(12px) contrast(1.07) saturate(1.12);
  transition: all 1.0s cubic-bezier(0.22, 1, 0.36, 1);
}

.landing-screen--net.is-visible .landing-media--net.landing-reveal {
  transform: translateY(0) scale(1);
  filter: blur(0px) contrast(1.05) saturate(1.08);
}

.landing-tone--mist {
  background:
    linear-gradient(180deg, rgba(13, 35, 64, 0.08) 0%, rgba(13, 35, 64, 0.02) 100%);
}

.landing-safe-zone--net {
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: start;
  width: 100%;
  height: 100%;
  padding-top: 10vh;
  padding-bottom: 10vh;
}

.landing-net-title {
  margin: 0;
  color: #ffffff;
  font-family: "Montserrat", "Alfa Slab One", sans-serif;
  font-weight: 900;
  font-size: clamp(80px, 12vw, 160px);
  letter-spacing: 0.03em;
  line-height: 1;
  -webkit-text-stroke: 3px #16334f;
  text-shadow: 6px 6px 0 rgba(10, 24, 44, 0.78);
  white-space: nowrap;
  max-width: min(92vw, 1100px);
  overflow: hidden;
  text-overflow: ellipsis;
}

.landing-net-subtitle {
  margin: 0;
  color: #ffffff;
  font-family: "Montserrat", "Alfa Slab One", sans-serif;
  font-weight: 800;
  font-size: 32px;
  letter-spacing: 0.02em;
  line-height: 1.08;
  text-transform: none;
  text-shadow: 4px 4px 0 rgba(10, 24, 44, 0.72);
  text-align: right;
  white-space: nowrap;
  max-width: min(84vw, 940px);
  overflow: hidden;
  text-overflow: ellipsis;
  align-self: end;
  justify-self: end;
}

.landing-comic-module {
  position: absolute;
  inset: 0;
  z-index: 50;
  padding: max(8vh, 32px) max(5vw, 24px);
  display: flex;
  pointer-events: none;
}

.landing-ad-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 7px 16px;
  border-radius: 9999px;
  background: #ffffff;
  color: var(--color-navy-dark);
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.12em;
}

.landing-ad-eyebrow--dark {
  background: var(--color-navy-dark);
  color: #ffffff;
}

.landing-ad-title {
  margin: 0 0 12px;
  font-family: "Alfa Slab One", "Noto Sans TC", sans-serif;
  font-size: clamp(28px, 4.2vw, 36px);
  line-height: 1.2;
  color: #ffffff;
}

.landing-ad-title--center {
  text-align: center;
  color: #111111;
}

.landing-ad-copy {
  margin: 0 0 20px;
  font-family: "Noto Sans TC", "Montserrat", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: #f5f5f5;
}

.landing-ad-copy--center {
  text-align: center;
  color: #111111;
}

.landing-ad-btn {
  width: 100%;
  min-height: 54px;
  border-radius: 9999px;
  background: var(--color-navy-dark);
  color: #ffffff;
  font-family: "Noto Sans TC", "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-align: center;
  line-height: 1.2;
  padding: 8px 16px;
  box-shadow: 0 0 0 rgba(var(--color-navy-dark-rgb), 0.3);
  animation: pulse-glow 2s infinite;
}

.landing-ad-btn--inverse {
  background: #ffffff;
  color: #111111;
}

.landing-ad-btn--dark {
  background: #111111;
  color: #ffffff;
  box-shadow: 6px 6px 0 #000000;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-ad-btn--dark:hover {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 #000000;
}

/* page 2 - speed parallelogram */
.landing-comic-module--speed {
  justify-content: center;
  align-items: center;
  padding-top: max(24vh, 180px);
}

.landing-ad-speed {
  width: min(74vw, 460px);
  clip-path: polygon(0 0, 94% 0, 100% 100%, 0 100%);
  background: var(--color-navy-dark);
  transform: translateX(110vw) skewX(-10deg);
  box-shadow: 12px 12px 0px rgba(0, 0, 0, 0.85);
  opacity: 0;
  transition: all 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.45s;
}

.landing-ad-speed__inner {
  padding: clamp(20px, 2.8vw, 30px) clamp(42px, 4.6vw, 56px) clamp(20px, 2.8vw, 30px) clamp(22px, 3vw, 30px);
  transform: skewX(10deg);
}

.landing-ad-speed .landing-ad-title {
  font-size: clamp(30px, 3.6vw, 40px);
  line-height: 1.12;
}

.landing-ad-speed .landing-ad-copy {
  font-size: clamp(15px, 1.45vw, 18px);
  line-height: 1.45;
}

.landing-ad-speed .landing-ad-btn {
  font-size: clamp(15px, 2vw, 19px);
}

.landing-screen--net.is-visible .landing-ad-speed {
  opacity: 1;
  transform: translateX(0) skewX(-10deg);
}

/* page 3 - action burst */
.landing-comic-module--burst {
  justify-content: center;
  align-items: center;
}

.landing-ad-burst-shell {
  width: min(84vw, 520px);
  padding: 8px;
  background: #000000;
  clip-path: polygon(50% 0%, 62% 12%, 78% 4%, 82% 20%, 98% 22%, 90% 36%, 100% 50%, 90% 64%, 98% 78%, 82% 80%, 78% 96%, 62% 88%, 50% 100%, 38% 88%, 22% 96%, 18% 80%, 2% 78%, 10% 64%, 0% 50%, 10% 36%, 2% 22%, 18% 20%, 22% 4%, 38% 12%);
  transform: scale(0);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.5s;
}

.landing-ad-burst-core {
  clip-path: polygon(50% 0%, 62% 12%, 78% 4%, 82% 20%, 98% 22%, 90% 36%, 100% 50%, 90% 64%, 98% 78%, 82% 80%, 78% 96%, 62% 88%, 50% 100%, 38% 88%, 22% 96%, 18% 80%, 2% 78%, 10% 64%, 0% 50%, 10% 36%, 2% 22%, 18% 20%, 22% 4%, 38% 12%);
  background: #ffffff;
  padding: clamp(28px, 3.6vw, 44px);
  text-align: center;
}

.landing-screen--gear.is-visible .landing-ad-burst-shell {
  opacity: 1;
  transform: scale(1);
}

/* page 4 - heavy tilted sticker */
.landing-comic-module--sticker {
  justify-content: flex-start;
  align-items: center;
}

.landing-ad-sticker {
  width: min(92vw, 580px);
  background: #ffffff;
  border: 4px solid #000000;
  padding: clamp(22px, 3vw, 34px);
  box-shadow: -16px 16px 0px #000000;
  transform: translate(-28vw, -100vh) rotate(-20deg);
  opacity: 0;
  transition: all 0.85s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.5s;
}

.landing-ad-sticker .landing-ad-title,
.landing-ad-sticker .landing-ad-copy {
  color: #111111;
  text-align: left;
}

.landing-screen--gear.is-visible .landing-ad-sticker {
  opacity: 1;
  transform: translateY(0) rotate(-6deg);
}

/* page 5 - slashed banner */
.landing-screen--howto .landing-comic-module {
  z-index: 72;
}

.landing-comic-module--slash {
  justify-content: flex-end;
  align-items: flex-end;
  padding: max(10vh, 56px) max(5vw, 24px) max(10vh, 56px);
}

.landing-ad-slash {
  width: min(42vw, 520px);
  background: #000000;
  clip-path: polygon(0 10%, 100% 0, 100% 90%, 0 100%);
  padding: clamp(22px, 3vw, 32px);
  color: #ffffff;
  transform: translateX(115%);
  opacity: 0;
  transition: all 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.5s;
}

.landing-ad-slash__line {
  margin: 0 0 14px;
  font-family: "Noto Sans TC", "Montserrat", sans-serif;
  font-weight: 900;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.3;
  color: #ffffff;
}

.landing-screen--howto.is-visible .landing-ad-slash {
  opacity: 1;
  transform: translateX(0);
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--color-navy-dark-rgb), 0.38);
  }
  100% {
    box-shadow: 0 0 0 16px rgba(var(--color-navy-dark-rgb), 0);
  }
}

/* Gear panel */
.landing-screen--gear {
  background: var(--color-paper);
  padding: 0;
}

.landing-safe-zone--gear {
  display: block;
}

.landing-media--gear {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  inset: 0;
  mix-blend-mode: normal;
  filter: contrast(1.04) saturate(1.05);
  opacity: 1;
}

.landing-tone--warm {
  background:
    linear-gradient(180deg, rgba(248, 241, 229, 0.24) 10%, rgba(248, 241, 229, 0.02) 56%, rgba(248, 241, 229, 0.26) 100%);
}

/* Paddle panel */
.landing-screen--paddles {
  background: var(--color-paper);
  padding: 0;
}

.landing-safe-zone--paddles {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.landing-media--paddles {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  inset: 0;
  mix-blend-mode: normal;
  filter: contrast(1.05) saturate(1.08);
  opacity: 1;
}

.landing-tone--paddles {
  background: linear-gradient(180deg, rgba(13, 35, 64, 0.08) 0%, rgba(13, 35, 64, 0.18) 100%);
}

.landing-paddle-strike {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.landing-strike-paddle {
  position: absolute;
  bottom: -8vh;
  width: min(30vw, 420px);
  opacity: 0;
  filter: drop-shadow(0 20px 24px rgba(10, 20, 34, 0.35));
  will-change: transform, opacity;
}

.landing-strike-paddle--left {
  left: -6vw;
  transform: translate3d(-120px, 180px, 0) rotate(-40deg);
}

.landing-strike-paddle--right {
  right: -6vw;
  transform: translate3d(120px, 180px, 0) rotate(40deg);
}

.landing-screen--paddles.is-visible .landing-strike-paddle--left {
  opacity: 1;
  transform: translate3d(26vw, -14vh, 0) rotate(-23deg);
  transition: transform 1.05s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
}

.landing-screen--paddles.is-visible .landing-strike-paddle--right {
  opacity: 1;
  transform: translate3d(-26vw, -14vh, 0) rotate(23deg);
  transition: transform 1.05s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
}

.landing-paddles-copy {
  width: min(46vw, 560px);
  display: grid;
  gap: 8px;
  text-align: right;
}

.landing-paddles-title {
  margin: 0;
  color: #ffffff;
  font-family: "Alfa Slab One", "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 80px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-shadow: 6px 6px 0 rgba(10, 24, 44, 0.76);
}

.landing-paddles-text {
  margin: 0;
  color: #ffffff;
  font-family: "Noto Sans TC", "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: 0.01em;
  text-align: right;
  max-width: min(46vw, 560px);
}

.landing-screen--paddles .landing-reveal--right {
  transform: translate3d(52px, 0, 0);
  filter: blur(12px);
}

.landing-screen--paddles.is-visible .landing-reveal--right {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0px);
}

/* How-to panel */
.landing-screen--howto {
  background: var(--color-paper);
  padding: 0;
}

.landing-howto-layout {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  height: 100%;
  z-index: 60;
}

.landing-howto-column {
  position: relative;
  min-width: 0;
}

.landing-howto-column--left {
  z-index: 3;
}

.landing-howto-panel-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 8vh 12%;
}

.landing-howto-card--theater {
  width: min(560px, 100%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  box-shadow: 0px 24px 48px rgba(0, 51, 102, 0.08);
  padding: clamp(24px, 3.2vw, 36px);
  opacity: 0;
  filter: blur(8px);
  transform: translateX(-40px);
  transition: transform 1.2s var(--spring-easing), opacity 1.2s var(--spring-easing), filter 1.2s var(--spring-easing);
}

.landing-screen--howto.is-visible .landing-howto-card--theater {
  opacity: 1;
  filter: blur(0px);
  transform: translateX(0);
}

.landing-howto-card--theater h3 {
  margin: 0 0 32px;
  font-family: "Noto Sans TC", "Montserrat", sans-serif;
  font-weight: 900;
  font-size: clamp(32px, 4vw, 40px);
  color: var(--color-navy-dark);
  letter-spacing: 0.1em;
  line-height: 1.1;
}

.landing-howto-card--theater ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
}

.landing-howto-card--theater li {
  position: relative;
  padding-left: 30px;
  font-family: "Noto Sans TC", "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 18px;
  color: #334155;
  line-height: 2.4;
}

.landing-howto-card--theater li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-size: 1.2em;
  transform: translateY(-2px);
}

.landing-howto-column--right {
  overflow: hidden;
}

.landing-howto-visual-wrap {
  width: 100%;
  height: 100%;
  filter: brightness(0.72) saturate(0.86);
  transition: filter 1.2s ease-out;
}

.landing-screen--howto.is-visible .landing-howto-visual-wrap {
  filter: brightness(0.98) saturate(1.02);
  transition-delay: 0.15s;
}

.landing-howto-visual-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% center;
  display: block;
}



@media (max-width: 980px) {
  .landing-media--hero {
    object-position: 48% 50%;
    transform: translateZ(0) scale(0.95);
    opacity: 1;
  }

  .landing-hero-title-wrap {
    width: min(56vw, 500px);
  }

  .landing-hero-subtitle {
    font-size: 13px;
    padding: 7px 9px;
  }

  .landing-net-title {
    font-size: clamp(52px, 8vw, 108px);
  }

  .landing-net-subtitle {
    font-size: clamp(24px, 3.8vw, 48px);
  }

}

@media (max-width: 768px) {
  .cursor-toggle-btn {
    display: none !important;
  }

  main.container.landing-main {
    height: calc(100vh - 72px);
  }

  .landing-screen {
    padding: 0;
  }

  .landing-safe-zone {
    padding: max(8vh, 32px) max(5vw, 24px);
  }

  .landing-screen--hero {
    padding: 0;
  }

  .landing-hero-media-wrap {
    background:
      linear-gradient(180deg,
        rgba(174, 234, 0, 0.26) 0%,
        rgba(248, 250, 252, 0.04) 20%,
        rgba(248, 250, 252, 0.04) 80%,
        rgba(174, 234, 0, 0.26) 100%);
  }

  .landing-tone--hero-media {
    background:
      linear-gradient(180deg,
        rgba(174, 234, 0, 0.12) 0%,
        rgba(255, 255, 255, 0) 24%,
        rgba(255, 255, 255, 0) 76%,
        rgba(174, 234, 0, 0.12) 100%);
    mix-blend-mode: multiply;
  }

  .landing-media--hero {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 22% 52%;
    transform: translateZ(0) scale(0.82);
    filter: contrast(1.04) saturate(1.02);
  }

  .landing-safe-zone--hero {
    justify-items: start;
    align-content: start;
    gap: 6px;
  }

  .landing-hero-title-wrap {
    width: max-content;
    max-width: calc(100vw - max(10vw, 40px));
    text-align: left;
    gap: 0;
  }

  .landing-hero-title {
    font-size: clamp(28px, 9.4vw, 42px);
    line-height: 1;
    text-align: left;
    white-space: nowrap;
  }

  .landing-hero-subtitle {
    display: none;
  }

  .landing-hero-subtitle-arc {
    display: block;
    position: relative;
    width: min(92vw, 360px);
    height: 70px;
    overflow: visible;
    filter: drop-shadow(0 1px 2px rgba(248, 250, 252, 0.85));
    pointer-events: none;
  }

  .landing-hero-subtitle-arc text {
    fill: rgba(var(--color-graphite-rgb), 0.9);
    font-family: "Noto Sans TC", "Montserrat", sans-serif;
    font-size: 10.8px;
    letter-spacing: 0.01em;
    font-weight: 700;
    paint-order: stroke;
    stroke: rgba(248, 250, 252, 0.86);
    stroke-width: 1px;
  }

  .landing-screen--net {
    background: #2d5f93;
  }

  .landing-safe-zone--net {
    align-items: start;
    padding-top: 10vh;
    padding-bottom: 10vh;
  }

  .landing-media--net {
    object-fit: cover;
    object-position: 50% 52%;
    filter: contrast(1.05) saturate(1.07);
  }

  .landing-tone--mist {
    background: linear-gradient(180deg, rgba(13, 35, 64, 0.14) 0%, rgba(13, 35, 64, 0.1) 100%);
  }

  .landing-net-title {
    max-width: 90vw;
    font-family: "Montserrat", "Noto Sans TC", sans-serif;
    font-size: clamp(46px, 14vw, 66px);
    -webkit-text-stroke: 0;
    text-shadow: 0 6px 16px rgba(10, 24, 44, 0.32);
    letter-spacing: 0.02em;
  }

  .landing-net-subtitle {
    display: none;
  }

  .landing-comic-module {
    padding: max(8vh, 32px) max(5vw, 24px);
  }

  .landing-comic-module--speed {
    justify-content: center;
    align-items: flex-end;
    padding: max(8vh, 32px) max(5vw, 24px) max(12vh, 88px);
  }

  .landing-ad-speed {
    width: min(90vw, 360px);
    max-width: 360px;
    clip-path: none;
    border-radius: 22px;
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid rgba(13, 45, 81, 0.18);
    box-shadow: 0 14px 32px rgba(8, 30, 56, 0.28);
    transform: translateX(110vw);
  }

  .landing-ad-speed__inner {
    transform: none;
    padding: 18px 18px 18px;
  }

  .landing-ad-speed .landing-ad-eyebrow {
    font-size: 12px;
    letter-spacing: 0.09em;
    background: var(--color-navy-dark);
    color: var(--color-accent);
  }

  .landing-ad-speed .landing-ad-title {
    font-size: clamp(22px, 7.4vw, 32px);
    line-height: 1.2;
    margin-bottom: 8px;
    color: var(--color-navy-dark);
  }

  .landing-ad-speed .landing-ad-copy {
    font-size: 15px;
    line-height: 1.42;
    margin-bottom: 14px;
    color: #1f2937;
  }

  .landing-ad-speed .landing-ad-btn {
    min-height: 48px;
    font-size: 14px;
    letter-spacing: 0.01em;
    white-space: normal;
    background: var(--color-navy-dark);
    color: #ffffff;
  }

  .landing-screen--net.is-visible .landing-ad-speed {
    transform: translateX(0);
  }

  .landing-ad-sticker {
    width: 90vw;
    max-width: 540px;
  }

  .landing-ad-burst-shell {
    width: min(92vw, 500px);
  }

  .landing-ad-slash {
    width: min(92vw, 560px);
  }

  .landing-ad-title {
    font-size: 32px;
  }

  .landing-ad-copy {
    font-size: 16px;
  }

  .landing-ad-btn {
    font-size: 18px;
  }

  .landing-screen--gear {
    background: #f3eee1;
    padding: 0;
  }

  .landing-media--gear {
    object-fit: cover;
    object-position: 52% 50%;
    transform: scale(1.02);
  }

  .landing-tone--warm {
    background: linear-gradient(180deg, rgba(248, 241, 229, 0.1) 0%, rgba(248, 241, 229, 0.05) 52%, rgba(248, 241, 229, 0.14) 100%);
  }

  .landing-screen--paddles {
    padding: 0;
  }

  .landing-safe-zone--paddles {
    justify-content: flex-end;
    align-items: flex-end;
  }

  .landing-media--paddles {
    object-fit: cover;
    object-position: 56% 50%;
    transform: none;
  }

  .landing-tone--paddles {
    background: linear-gradient(180deg, rgba(13, 35, 64, 0.08) 0%, rgba(13, 35, 64, 0.22) 100%);
  }

  .landing-strike-paddle {
    width: min(48vw, 220px);
    bottom: -4vh;
  }

  .landing-screen--paddles.is-visible .landing-strike-paddle--left {
    transform: translate3d(18vw, -12vh, 0) rotate(-20deg);
  }

  .landing-screen--paddles.is-visible .landing-strike-paddle--right {
    transform: translate3d(-18vw, -12vh, 0) rotate(20deg);
  }

  .landing-paddles-copy {
    width: min(86vw, 340px);
    text-align: right;
    gap: 8px;
  }

  .landing-paddles-title {
    font-size: 80px;
    text-align: right;
    line-height: 1;
  }

  .landing-paddles-text {
    font-size: 20px;
    line-height: 1.3;
    text-align: right;
    max-width: min(86vw, 340px);
  }

  .landing-screen--howto {
    padding: 0;
  }

  .landing-howto-layout {
    grid-template-columns: 1fr;
  }

  .landing-howto-column--right {
    position: absolute;
    inset: 0;
    z-index: 1;
  }

  .landing-howto-column--left {
    z-index: 2;
  }

  .landing-howto-panel-wrap {
    align-items: flex-start;
    padding: max(8vh, 32px) max(6vw, 20px);
  }

  .landing-howto-card--theater {
    width: min(88vw, 360px);
    padding: 20px 18px;
    border-radius: 20px;
  }

  .landing-howto-card--theater h3 {
    font-size: clamp(28px, 9.5vw, 36px);
    letter-spacing: 0.08em;
    margin-bottom: 20px;
  }

  .landing-howto-card--theater li {
    font-size: 15px;
    line-height: 2.1;
    padding-left: 24px;
  }

  .landing-howto-visual-wrap {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .landing-howto-visual-image {
    object-position: 78% center;
  }
}

.account-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.account-tabs .tab {
  text-decoration: none;
  color: var(--text);
  border: var(--stroke-thin) solid var(--color-navy-dark);
  padding: 8px 12px;
  border-radius: var(--radius-full);
  background: #fff;
  font-weight: 800;
  font-size: 14px;
  box-shadow: var(--shadow-1);
}

.account-tabs .tab.active {
  background: var(--color-accent);
  color: var(--color-navy-dark);
  border-color: var(--color-navy-dark);
}

.hint {
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.45;
}

.wallet-balance-line {
  margin: 2px 0 10px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.wallet-overview-grid {
  margin: 2px 0 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.wallet-overview-card {
  appearance: none;
  border: 2px solid var(--color-neutral);
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  text-align: left;
  display: grid;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.wallet-overview-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
  transform: translateY(-4px);
}

.wallet-overview-card:focus-visible {
  outline: 3px solid rgba(var(--color-primary-rgb), 0.28);
  outline-offset: 2px;
}

.wallet-overview-label {
  color: rgba(var(--color-navy-dark-rgb), 0.72);
  font-size: 13px;
  font-weight: 800;
}

.wallet-overview-value {
  color: #0F172A;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1;
  text-shadow: none;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.wallet-overview-value--payment.is-minus {
  color: #DC2626;
}

.wallet-overview-value--payment.is-plus {
  color: #6A9E11;
}

.wallet-overview-jump {
  margin-top: 2px;
  color: #1D4ED8;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

@media (max-width: 760px) {
  .wallet-overview-grid {
    grid-template-columns: 1fr;
  }
}

.wallet-balance-label {
  color: var(--color-neutral);
  font-size: 14px;
  font-weight: 700;
}

.wallet-balance-next-step-hint {
  margin: 2px 0 10px;
  color: rgba(var(--color-navy-dark-rgb), 0.78);
  font-size: 14px;
  line-height: 1.45;
}

#wallet-balance-focus-anchor.is-balance-highlighted {
  scroll-margin-top: 88px;
}

.wallet-balance-next-step-hint.is-balance-highlighted {
  border: 2px solid #EF4444;
  color: #DC2626;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: bold;
  background-color: #FEF2F2;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
  animation: balance-focus-pulse 0.9s ease-in-out 0s 2;
}

@keyframes balance-focus-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.012); }
  100% { transform: scale(1); }
}

.wallet-balance-amount {
  color: #0F172A;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1;
  text-shadow: none;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.wallet-balance-line--counter .wallet-balance-amount {
  font-size: clamp(20px, 2.4vw, 28px);
}

.counter-member-summary {
  display: grid;
  gap: 2px;
}

.active-member-card {
  margin-top: 10px;
  border: 1px solid #A7F3D0;
  background: #ECFDF5;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 6px;
}

.active-member-kicker {
  color: #065F46;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.active-member-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.active-member-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.active-member-name {
  font-family: var(--font-display);
  color: #065F46;
  line-height: 1.02;
  font-size: clamp(24px, 3.4vw, 34px);
}

.active-member-login {
  color: #047857;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.active-member-balance-wrap {
  text-align: right;
}

.active-member-balance-label {
  color: rgba(var(--color-navy-dark-rgb), 0.72);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 2px;
}

.active-member-balance {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.1vw, 44px);
  color: #0F172A;
  line-height: 1;
  text-shadow: none;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.balance-currency {
  font-size: 0.62em;
  font-weight: 900;
  margin-right: 2px;
  vertical-align: 0.18em;
}

.balance-number {
  display: inline-block;
  min-width: 3ch;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}

.active-member-balance.is-balance-updated,
.wallet-balance-amount.is-balance-updated {
  animation: counter-balance-pulse 0.32s ease 0s 3;
}

@keyframes counter-balance-pulse {
  0% { transform: translateY(0) scale(1); filter: brightness(1); }
  45% { transform: translateY(-2px) scale(1.06); filter: brightness(1.18); }
  100% { transform: translateY(0) scale(1); filter: brightness(1); }
}

@media (max-width: 680px) {
  .active-member-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .active-member-balance-wrap {
    text-align: left;
  }
}

.counter-pos-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.counter-pos-toolbar #counter-tab-chips {
  margin-bottom: 0;
  flex: 1 1 auto;
}

.counter-complaint-toggle-btn {
  white-space: nowrap;
}

.counter-complaint-toggle-btn.is-active {
  --btn-bg: #DBEAFE;
}

.counter-care-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.counter-care-panel-head h3 {
  margin: 0;
}

.active-member-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.btn-cute-note {
  border-radius: 999px;
  padding: 1px 6px;
  min-height: 0;
  line-height: 1.05;
  border: 1px solid #93C5FD;
  background: linear-gradient(180deg, #EFF6FF 0%, #DBEAFE 100%);
  color: #1d4ed8;
  font-size: 10px;
  font-weight: 800;
  box-shadow: 0 1px 2px rgba(30, 64, 175, 0.16);
}

.btn-cute-note:hover {
  filter: brightness(0.98);
}

.note-tag-chip {
  border: 1px solid rgba(var(--color-navy-dark-rgb), 0.2);
  border-radius: 999px;
  background: #fff;
  color: rgba(var(--color-navy-dark-rgb), 0.86);
  font-size: 12px;
  font-weight: 800;
  padding: 3px 9px;
  line-height: 1.2;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.note-tag-chip.is-active {
  box-shadow: inset 0 0 0 1px rgba(var(--color-navy-dark-rgb), 0.2);
}

.note-tag-chip--green {
  background: #ECFDF3;
  border-color: #86EFAC;
  color: #166534;
}

.note-tag-chip--pink {
  background: #FDF2F8;
  border-color: #F9A8D4;
  color: #9D174D;
}

.note-tag-chip--mintdot {
  background-color: #F0FDF4;
  border-color: #86EFAC;
  color: #166534;
  background-image: radial-gradient(rgba(22, 101, 52, 0.16) 0.8px, transparent 0.8px);
  background-size: 6px 6px;
}

.note-tag-chip--gray {
  background: #F3F4F6;
  border-color: #CBD5E1;
  color: #475569;
}

.note-tag-chip--blue {
  background: #EFF6FF;
  border-color: #93C5FD;
  color: #1D4ED8;
}

.counter-note-tag-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.counter-note-category-map {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.counter-note-category-map__row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
}

.counter-note-category-map__row input {
  min-height: 32px;
}

.active-member-note-preview {
  margin-top: 8px;
  border: 1px dashed #93C5FD;
  background: #EFF6FF;
  border-radius: 10px;
  padding: 7px 9px;
}

.active-member-note-preview--green {
  border-color: #86EFAC;
  background: #ECFDF3;
}

.active-member-note-preview--pink {
  border-color: #F9A8D4;
  background: #FDF2F8;
}

.active-member-note-preview--mintdot {
  border-color: #86EFAC;
  background-color: #F0FDF4;
  background-image: radial-gradient(rgba(22, 101, 52, 0.08) 0.8px, transparent 0.8px);
  background-size: 7px 7px;
}

.active-member-note-preview--gray {
  border-color: #CBD5E1;
  background: #F8FAFC;
}

.active-member-note-preview--blue {
  border-color: #93C5FD;
  background: #EFF6FF;
}

.active-member-note-preview__label {
  color: #1D4ED8;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 2px;
}

.active-member-note-preview__category {
  display: inline-block;
  margin-bottom: 3px;
  color: rgba(var(--color-navy-dark-rgb), 0.72);
  font-size: 12px;
  font-weight: 700;
}

.active-member-note-preview__text {
  color: rgba(var(--color-navy-dark-rgb), 0.86);
  font-size: 13px;
  line-height: 1.4;
}

.member-tone-green {
  border-color: #86EFAC;
  background: #ECFDF3;
}

.member-tone-pink {
  border-color: #F9A8D4;
  background: #FDF2F8;
}

.member-tone-mintdot {
  border-color: #86EFAC;
  background-color: #F0FDF4;
  background-image: radial-gradient(rgba(22, 101, 52, 0.08) 0.8px, transparent 0.8px);
  background-size: 8px 8px;
}

.member-tone-gray {
  border-color: #CBD5E1;
  background: #F8FAFC;
}

.member-tone-blue {
  border-color: #93C5FD;
  background: #EFF6FF;
}

.members-row.member-tone-green td { background: #ECFDF3; }
.members-row.member-tone-pink td { background: #FDF2F8; }
.members-row.member-tone-mintdot td {
  background-color: #F0FDF4;
  background-image: radial-gradient(rgba(22, 101, 52, 0.06) 0.8px, transparent 0.8px);
  background-size: 8px 8px;
}
.members-row.member-tone-gray td { background: #F8FAFC; }
.members-row.member-tone-blue td { background: #EFF6FF; }

.counter-checkout-drawer,
.counter-wallet-modal,
.counter-drag-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.counter-checkout-drawer.is-open,
.counter-wallet-modal.is-open,
.counter-drag-edit-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.counter-checkout-drawer__backdrop,
.counter-wallet-modal__backdrop,
.counter-drag-edit-modal__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(10, 18, 33, 0.5);
}

.counter-checkout-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(560px, 94vw);
  background: #fff;
  border-left: 2px solid rgba(var(--color-navy-dark-rgb), 0.14);
  box-shadow: -12px 0 28px rgba(15, 23, 42, 0.2);
  padding: 16px;
  transform: translateX(102%);
  transition: transform 0.24s ease;
  overflow-y: auto;
}

.counter-checkout-drawer.is-open .counter-checkout-drawer__panel {
  transform: translateX(0);
}

.counter-checkout-drawer__header,
.counter-wallet-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.counter-checkout-drawer__header h3,
.counter-wallet-modal__header h3 {
  margin: 0;
}

.counter-drawer-close {
  border: 1.5px solid rgba(var(--color-navy-dark-rgb), 0.22);
  border-radius: 999px;
  background: #fff;
  width: 36px;
  height: 36px;
  font-size: 18px;
  font-weight: 800;
  color: var(--color-navy-dark);
  cursor: pointer;
}

.counter-checkout-summary-line {
  margin: 8px 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fbef;
  border: 1.5px solid rgba(var(--color-accent-rgb), 0.45);
  color: #1f2937;
  line-height: 1.45;
}

#counter-book-form .btn,
#counter-wallet-form .btn,
#counter-drag-edit-form .btn {
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
}

#counter-book-submit,
#counter-wallet-submit {
  --btn-bg: var(--color-primary);
  --btn-fg: #FFFFFF;
  --btn-shadow-color: var(--color-primary);
}

#counter-wallet-submit.is-secondary {
  --btn-bg: transparent;
  --btn-fg: #475569;
  --btn-shadow-color: transparent;
  border: 1px solid #CBD5E1;
  box-shadow: none;
}

.counter-wallet-modal {
  display: grid;
  place-items: center;
}

.counter-wallet-modal__panel {
  position: relative;
  width: min(560px, 94vw);
  max-height: min(90vh, 760px);
  overflow-y: auto;
  background: #fff;
  border: 2px solid rgba(var(--color-navy-dark-rgb), 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.28);
  padding: 16px;
}

.counter-drag-edit-modal {
  z-index: 1500;
  display: grid;
  place-items: center;
}

.counter-drag-edit-modal__panel {
  position: relative;
  width: min(560px, 94vw);
  max-height: min(90vh, 760px);
  overflow-y: auto;
  background: #fff;
  border: 2px solid rgba(var(--color-navy-dark-rgb), 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.28);
  padding: 16px;
}

.counter-drag-edit-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.counter-drag-edit-modal__header h3 {
  margin: 0;
}

.counter-drag-edit-meta {
  color: rgba(var(--color-navy-dark-rgb), 0.78);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

.counter-drag-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.counter-wallet-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.wallet-mode-btn {
  border: 2px solid rgba(var(--color-navy-dark-rgb), 0.2);
  border-radius: 12px;
  background: #fff;
  color: var(--color-navy-dark);
  font-weight: 800;
  padding: 10px 12px;
  cursor: pointer;
}

.wallet-mode-btn.is-active {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

.counter-wallet-quick-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
  margin-bottom: 8px;
}

.wallet-quick-btn {
  border: 1.5px solid rgba(var(--color-navy-dark-rgb), 0.24);
  background: #f7fafc;
  border-radius: 999px;
  padding: 7px 12px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.wallet-quick-btn:hover {
  background: #eef5ff;
}

@media (max-width: 680px) {
  .counter-checkout-drawer__panel,
  .counter-wallet-modal__panel,
  .counter-drag-edit-modal__panel {
    width: 96vw;
    padding: 14px;
  }
}

.counter-view-date-nav {
  display: grid;
  grid-template-columns: auto minmax(200px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.counter-view-date-btn {
  min-height: 48px;
  padding: 0 18px;
  font-size: 17px;
  font-weight: 900;
  white-space: nowrap;
}

.counter-view-date-center {
  display: grid;
  gap: 6px;
}

.counter-view-date-label {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.8vw, 30px);
  font-weight: 900;
  color: var(--color-navy-dark);
  letter-spacing: 0.01em;
}

#counter-view-date-input {
  max-width: 220px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.4;
}

.status-badge--confirmed {
  background: #16a34a;
  color: #fff;
}

.status-badge--cancelled {
  background: #b91c1c;
  color: #fff;
}

.status-badge--pending {
  background: #ea580c;
  color: #fff;
}

.status-badge--neutral {
  background: #475569;
  color: #fff;
}

.counter-wallet-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.counter-wallet-table th {
  background-color: #F9FAFB;
  color: #475569;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  border-bottom: 1px solid #E2E8F0;
  border-right: none;
}

.counter-wallet-table td {
  background: #FFFFFF;
  padding: 12px 16px;
  border-bottom: 1px solid #F1F5F9;
  border-right: none;
}

.counter-wallet-table tr:hover td {
  background-color: #F8FAFC;
}

.counter-wallet-table .cell-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.counter-wallet-table .cell-note {
  min-width: 240px;
  max-width: 420px;
  white-space: normal;
  word-break: break-word;
}

.counter-ops-court-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 8px 0 10px;
}

.court-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(var(--color-navy-dark-rgb), 0.14);
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  color: var(--color-navy-dark);
}

.court-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--court-color, #2563eb);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.1);
}

#counter-ops-calendar-root {
  min-height: 640px;
}

#counter-ops-calendar-root .fc {
  font-size: 14px;
}

#counter-ops-calendar-root .fc .fc-timegrid-body,
#counter-ops-calendar-root .fc .fc-timegrid-body table,
#counter-ops-calendar-root .fc .fc-scrollgrid-sync-table {
  min-height: 560px;
}

#counter-ops-calendar-root .fc .fc-timegrid-slot {
  height: 2.1em;
}

#counter-ops-calendar-root .fc .fc-toolbar-title {
  font-family: var(--font-display);
  color: var(--color-navy-dark);
}

#counter-ops-calendar-root .fc .fc-col-header-cell[data-resource-id],
#counter-ops-calendar-root .fc .fc-timegrid-col[data-resource-id] {
  min-width: 210px;
}

#counter-ops-calendar-root .fc .fc-timegrid-axis-cushion,
#counter-ops-calendar-root .fc .fc-timegrid-slot-label-cushion {
  color: rgba(var(--color-navy-dark-rgb), 0.8);
  font-weight: 700;
}

#counter-ops-calendar-root .fc th,
#counter-ops-calendar-root .fc td {
  word-break: normal;
  overflow-wrap: normal;
}

#counter-ops-calendar-root .fc .fc-col-header-cell-cushion {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  line-height: 1.15;
  white-space: nowrap;
  padding: 2px 0;
}

#counter-ops-calendar-root .fc .ops-day-date {
  font-size: 12px;
  font-weight: 800;
}

#counter-ops-calendar-root .fc .ops-day-week {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.92;
}

#counter-ops-calendar-root .fc .fc-event {
  border: none;
  border-left: 6px solid var(--court-color, #2563eb);
  border-radius: 8px;
  padding: 1px 2px;
  font-weight: 700;
}

#counter-ops-calendar-root .fc .fc-slot-past-lock {
  background: repeating-linear-gradient(
    -45deg,
    rgba(100, 116, 139, 0.14),
    rgba(100, 116, 139, 0.14) 10px,
    rgba(100, 116, 139, 0.06) 10px,
    rgba(100, 116, 139, 0.06) 20px
  );
}

#counter-ops-calendar-root .fc .ops-event-readonly {
  cursor: not-allowed;
  filter: saturate(0.7);
}

#counter-ops-calendar-root .fc .ops-event-paid {
  box-shadow: inset 0 -3px 0 rgba(255, 255, 255, 0.2);
}

#counter-ops-calendar-root .fc .ops-event-pending {
  box-shadow: inset 0 -3px 0 #f59e0b;
}

#counter-ops-calendar-root .fc .ops-event-checked_in {
  box-shadow: inset 0 -3px 0 #93c5fd;
}

#counter-ops-calendar-root .fc .ops-event-locked,
#counter-ops-calendar-root .fc .ops-event-cancelled,
#counter-ops-calendar-root .fc .ops-event-refunded {
  box-shadow: inset 0 -3px 0 #cbd5e1;
}

#counter-ops-calendar-root .fc .ops-event-refund_pending {
  box-shadow: inset 0 -3px 0 #c4b5fd;
}

#counter-ops-calendar-root .fc .ops-event-content {
  display: grid;
  gap: 1px;
  line-height: 1.2;
}

#counter-ops-calendar-root .fc .ops-event-name {
  font-size: 12px;
  font-weight: 900;
}

#counter-ops-calendar-root .fc .ops-event-phone,
#counter-ops-calendar-root .fc .ops-event-coach {
  font-size: 11px;
  opacity: 0.96;
  font-weight: 700;
}

.empty-state-illustrated {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 0;
}

.empty-state-illustrated svg {
  width: 120px;
  height: 120px;
}

.empty-state-illustrated h4 {
  margin: 10px 0 4px;
  font-size: 16px;
  font-weight: 600;
  color: #64748B;
}

.empty-state-illustrated p {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  color: #64748B;
}

.counter-calendar-empty-hint {
  margin-top: 8px;
  padding: 20px 10px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid rgba(var(--color-navy-dark-rgb), 0.12);
}

@media (max-width: 780px) {
  .counter-view-date-nav {
    grid-template-columns: 1fr;
  }

  #counter-view-date-input {
    max-width: 100%;
  }
}

.wallet-ledger-block {
  margin-top: 14px;
  border: var(--stroke-thin) dashed rgba(var(--color-navy-dark-rgb), 0.4);
  border-radius: var(--radius-md);
  padding: 12px;
  background: #fff;
}

.wallet-ledger-block h4 {
  margin: 0 0 8px;
  color: var(--color-navy-dark);
}

.wallet-segmented {
  position: relative;
  display: flex;
  width: min(100%, 680px);
  max-width: 100%;
  margin: 8px 0 14px;
  padding: 4px;
  background: #F9FAFB;
  border: 2px solid var(--color-neutral);
  border-radius: 9999px;
  overflow: hidden;
}

.wallet-segmented-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  border-radius: 9999px;
  background: var(--color-primary);
  box-shadow: 2px 2px 0px var(--color-navy-dark);
  transition: transform 0.3s ease-in-out, width 0.3s ease-in-out;
}

.wallet-segmented-tab {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  min-width: 0;
  border: none;
  background: transparent;
  border-radius: 9999px;
  padding: 10px 14px;
  color: var(--color-navy-dark);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: color 0.22s ease;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.wallet-segmented-tab.is-active {
  color: #fff;
}

@media (max-width: 768px) {
  .wallet-segmented {
    width: 100%;
  }

  .wallet-segmented-tab {
    font-size: 14px;
    padding: 9px 8px;
  }
}

.wallet-tab-panel {
  transition: opacity 0.22s ease;
}

.wallet-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  align-items: end;
  gap: 12px;
  margin: 6px 0 14px;
}

.wallet-toolbar-left {
  min-width: 0;
}

.wallet-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wallet-range-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-navy-dark);
  font-size: 13px;
  font-weight: 800;
}

.wallet-range-field > span {
  min-width: 14px;
  text-align: center;
}

.wallet-range-field > input {
  width: 150px;
  min-width: 140px;
}

@media (max-width: 980px) {
  .wallet-toolbar {
    grid-template-columns: 1fr;
  }

  .wallet-toolbar-right {
    justify-content: flex-start;
  }
}

.wallet-search-field {
  position: relative;
  display: block;
}

.wallet-search-field svg {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  fill: rgba(var(--color-navy-dark-rgb), 0.62);
}

.wallet-search-field input {
  width: min(100%, 280px);
  padding-left: 36px;
}

.wallet-toolbar input,
.wallet-toolbar select {
  min-height: 42px;
  border-width: 2px;
}

.wallet-toolbar-right select {
  width: auto;
  min-width: 150px;
}

.wallet-toolbar input:focus,
.wallet-toolbar select:focus,
.wallet-search-field input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(var(--color-accent-rgb), 0.28);
}

.wallet-export {
  position: relative;
}

.wallet-export-btn {
  list-style: none;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 2px solid var(--color-navy-dark);
  border-radius: 9999px;
  color: var(--color-navy-dark);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.wallet-export-btn:hover {
  background: var(--color-accent);
}

.wallet-export summary::-webkit-details-marker { display: none; }

.wallet-export-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  display: grid;
  min-width: 130px;
  padding: 6px;
  background: #fff;
  border: 2px solid var(--color-navy-dark);
  border-radius: 12px;
  box-shadow: var(--shadow-1);
  z-index: 5;
}

.wallet-export-menu button {
  border: none;
  background: transparent;
  color: var(--color-navy-dark);
  font-weight: 700;
  text-align: left;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
}

.wallet-export-menu button:hover {
  background: #F4FCE3;
}

.wallet-subtabs {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.wallet-subtab {
  border: 1px solid var(--color-neutral);
  border-radius: 9999px;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-navy-dark);
  background: #fff;
  cursor: pointer;
}

.wallet-subtab.is-active.is-upcoming {
  background: var(--color-navy-dark);
  color: #fff;
  box-shadow: 0 0 0 2px rgba(174, 234, 0, 0.4);
}

.wallet-subtab.is-active.is-finished {
  background: #E5E7EB;
  color: var(--color-navy-dark);
  border-color: var(--color-neutral);
}

.wallet-subtab.is-active.is-cancelled {
  background: #FFF0F0;
  color: #FF3B30;
  border-color: #FF3B30;
}

.wallet-subtab.is-active.is-all,
.wallet-subtab.is-active.is-confirmed {
  background: #003366;
  color: #fff;
  border-color: #003366;
}

.wallet-subtab.is-active.is-court {
  background: #EAF3FF;
  color: #003366;
  border-color: #1455B0;
}

.wallet-subtab.is-active.is-coach {
  background: #EEFCE6;
  color: #1f5f1f;
  border-color: #6baa2b;
}

.wallet-subtab.is-active.is-cancelled-tab {
  background: #FFF0F0;
  color: #FF3B30;
  border-color: #FF3B30;
}

.wallet-list-stage {
  position: relative;
  min-height: 120px;
}

.ops-calendar-wrap {
  overflow-x: hidden;
}

.ops-calendar-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.ops-calendar-table th,
.ops-calendar-table td {
  text-align: center;
  vertical-align: middle;
  padding: 8px 4px;
}

.ops-drop-cell {
  min-width: 0;
  height: 40px;
  border: 1px dashed rgba(20, 85, 176, 0.2);
  background: rgba(244, 252, 227, 0.2);
}

.ops-drop-cell.is-drop-target {
  background: rgba(20, 85, 176, 0.18);
}

.ops-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
}

.ops-chip {
  border: 1px solid rgba(0, 51, 102, 0.2);
  border-radius: 10px;
  padding: 4px 8px;
  background: #fff;
  color: #003366;
  font-size: 12px;
  font-weight: 700;
  cursor: grab;
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}

.ops-chip small {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.9;
}

.ops-chip.is-paid {
  background: #e8f7ea;
  border-color: #4CAF50;
}

.ops-chip.is-pending {
  background: #fff3e0;
  border-color: #f59e0b;
}

.ops-chip.is-checkedin {
  background: #e7f0ff;
  border-color: #3b82f6;
}

.ops-chip.is-locked {
  background: #f3f4f6;
  border-color: #6b7280;
}

.ops-chip.coach-chip.is-upcoming {
  background: #e8f7ea;
  border-color: #4CAF50;
}

.ops-chip.coach-chip.is-live {
  background: #e7f0ff;
  border-color: #2563eb;
}

.ops-chip.coach-chip.is-done {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.wallet-card-list {
  display: grid;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wallet-list-stage.is-switching .wallet-card-list {
  opacity: 0;
  transform: translateY(10px);
}

.wallet-skeleton-list {
  display: none;
  gap: 10px;
}

.wallet-list-stage.is-switching .wallet-skeleton-list {
  display: grid;
}

.wallet-skeleton-card {
  height: 92px;
  border-radius: 16px;
  border: 2px solid rgba(var(--color-neutral-rgb), 0.45);
  background: linear-gradient(90deg, #f3f4f6 0%, #eceff3 50%, #f3f4f6 100%);
  background-size: 220% 100%;
  animation: shimmer 1.25s linear infinite;
}

.wallet-data-card {
  position: relative;
  background: #fff;
  border: 2px solid var(--color-neutral);
  border-radius: 16px;
  padding: 12px 14px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.wallet-data-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-1px);
}

.wallet-data-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.wallet-data-title {
  font-size: 16px;
  font-weight: 900;
  color: var(--color-navy-dark);
}

.wallet-kind-inline {
  margin-left: 6px;
  font-size: 12px;
  color: rgba(var(--color-navy-dark-rgb), 0.72);
}

.wallet-data-meta-row {
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: rgba(var(--color-navy-dark-rgb), 0.76);
  font-size: 13px;
  font-weight: 700;
}

.wallet-data-note {
  margin-top: 8px;
  color: rgba(var(--color-navy-dark-rgb), 0.72);
  font-size: 13px;
  font-weight: 700;
}

.wallet-data-money {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0.02em;
}

.wallet-money-plus {
  color: #6A9E11;
}

.wallet-money-minus {
  color: #FF3B30;
}

.wallet-booking-card {
  padding-top: 12px;
}

.wallet-data-head--booking {
  align-items: flex-start;
}

.wallet-booking-right {
  display: grid;
  justify-items: end;
  gap: 4px;
  margin-left: auto;
}

.wallet-status-badge {
  position: static;
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 800;
}

.wallet-status-badge.is-confirmed {
  background: #F4FCE3;
  color: #6A9E11;
  border: 1px solid var(--color-accent);
}

.wallet-status-badge.is-cancelled {
  background: #F5F5F5;
  color: var(--color-neutral);
  border: 1px solid var(--color-neutral);
}

.wallet-cancel-btn {
  margin-top: 10px;
}

.wallet-cancel-btn:hover {
  box-shadow: 4px 4px 0px #003366;
}

.wallet-empty-state {
  border: 2px dashed rgba(var(--color-neutral-rgb), 0.5);
  border-radius: 16px;
  padding: 22px 14px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 8px;
}

.wallet-empty-ball {
  width: 56px;
  height: 56px;
}

.wallet-empty-state p {
  margin: 0;
  color: rgba(var(--color-navy-dark-rgb), 0.56);
  font-weight: 700;
}

.wallet-locked-input-wrap {
  position: relative;
}

.wallet-locked-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
}

.wallet-locked-input-wrap input[disabled] {
  padding-left: 34px;
  background: #F5F5F5;
  color: rgba(var(--color-navy-dark-rgb), 0.7);
}

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

.oc-dropdown-native-select,
.coach-native-select {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

.oc-dropdown,
.coach-dropdown {
  position: relative;
  width: 100%;
}

.oc-dropdown-trigger,
.coach-dropdown-trigger {
  width: 100%;
  min-height: 48px;
  border: 2px solid var(--color-navy-dark);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  background: #fff;
  color: var(--color-navy-dark);
  text-align: left;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  box-shadow: var(--shadow-1);
  cursor: pointer;
  position: relative;
  padding-right: 44px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.oc-dropdown-trigger::after,
.coach-dropdown-trigger::after {
  content: '▾';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-52%);
  font-size: 14px;
  color: var(--color-navy-dark);
}

.oc-dropdown.open .oc-dropdown-trigger,
.coach-dropdown.open .coach-dropdown-trigger {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(var(--color-accent-rgb), 0.34), var(--shadow-1);
}

.oc-dropdown-menu,
.coach-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: var(--radius-md);
  border: 2px solid var(--color-navy-dark);
  box-shadow: 8px 8px 0px var(--color-navy-dark);
  padding: 6px;
  display: none;
  z-index: 32;
  max-height: 280px;
  overflow: auto;
}

.oc-dropdown.open .oc-dropdown-menu,
.coach-dropdown.open .coach-dropdown-menu {
  display: grid;
  gap: 6px;
}

.oc-dropdown-search {
  width: 100%;
  border: 2px solid rgba(var(--color-navy-dark-rgb), 0.28);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 700;
}

.oc-dropdown-options {
  display: grid;
  gap: 4px;
}

.oc-dropdown-option,
.coach-dropdown-option {
  border: 0;
  background: #fff;
  color: var(--color-navy-dark);
  border-radius: 8px;
  text-align: left;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.oc-dropdown-option:hover,
.oc-dropdown-option.is-selected,
.coach-dropdown-option:hover,
.coach-dropdown-option.is-selected {
  background: var(--color-accent);
}

.oc-dropdown-empty {
  color: rgba(var(--color-navy-dark-rgb), 0.65);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 10px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.card {
  border: var(--stroke-thin) solid var(--color-navy-dark);
  border-radius: var(--radius-md);
  padding: 14px;
  background: var(--surface-soft);
  box-shadow: var(--shadow-1);
  transition: transform .16s ease;
}

.card:hover {
  transform: translate(-2px, -2px);
}

.checkout-cards {
  gap: 16px;
}

.checkout-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  border: 4px solid #003366;
  border-radius: var(--radius-lg);
  background: #fff;
  padding: var(--p-lg);
  box-shadow: 6px 6px 0px #AEEA00;
  margin-bottom: 12px;
}

.checkout-card:hover {
  transform: none;
}

.checkout-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checkout-court-head {
  padding-bottom: 16px;
  border-bottom: 2px dashed var(--color-neutral);
}

.checkout-court-name {
  color: #003366;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
}

.checkout-rows {
  display: grid;
  gap: 8px;
}

.checkout-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  line-height: 1.6;
}

.checkout-label {
  color: #9E9E9E;
  font-size: 14px;
  font-weight: 700;
}

.checkout-static-value,
.checkout-roll {
  color: #1455B0;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.2;
  text-align: right;
}

.checkout-roll {
  position: relative;
  display: inline-block;
  min-width: 5ch;
  height: 1.2em;
  overflow: hidden;
}

.checkout-roll-track {
  display: flex;
  flex-direction: column;
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.checkout-roll-item {
  display: block;
  height: 1.2em;
}

.checkout-roll.is-updating {
  text-shadow: 0 0 8px #AEEA00;
  transition: text-shadow 0.2s ease-out;
}

.checkout-action {
  margin-top: auto;
}

.checkout-action form {
  margin: 0;
}

.checkout-submit,
.checkout-submit:visited {
  width: 100%;
  min-height: 56px;
  border-radius: 16px;
  border: 2px solid #003366;
  background: #1455B0;
  color: #fff;
  font-family: "Noto Sans TC", "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 4px 4px 0px #003366;
  cursor: pointer;
  padding: 0 16px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.16s ease;
}

.checkout-submit:hover {
  filter: brightness(1.05);
}

.checkout-submit:active {
  transform: translate(4px, 4px);
  box-shadow: 0px 0px 0px #003366;
}

.finance-stat-cards {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.finance-stat.highlight { background: #e8f2ff; }
.finance-stat.wallet { background: #f4ffe3; }
.finance-stat.income { background: #eaf7ff; }
.finance-stat.topup { background: #f8ffe4; }
.finance-stat.refund { background: #fff0ef; }

.finance-box {
  border: var(--stroke-thin) solid var(--color-navy-dark);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 12px;
  box-shadow: var(--shadow-1);
}

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

.finance-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  border-bottom: 1px dashed rgba(var(--color-navy-dark-rgb), 0.25);
  padding-bottom: 6px;
  font-size: 14px;
}

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

.finance-list li.empty {
  color: var(--muted);
  border-bottom: 0;
}

.finance-subtotal {
  margin-top: 8px;
  font-weight: 800;
}

.card-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.card-value {
  font-size: 30px;
  font-weight: 800;
  margin-top: 4px;
}

.member-login-shell {
  min-height: calc(100dvh - 220px);
  display: grid;
  place-items: center;
  padding: 24px;
  border-radius: 24px;
  background-color: #1455B0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 2px, transparent 2px);
  background-size: 8px 8px;
}

.member-login-card {
  width: min(92vw, 520px);
  background: #FFFFFF;
  border: 4px solid #003366;
  border-radius: 32px;
  box-shadow: 12px 12px 0px #1455B0;
  padding: 28px 24px 22px;
}

.member-login-title {
  margin: 0 0 20px;
  text-align: center;
  color: #1455B0;
  font-size: clamp(30px, 4vw, 36px);
  line-height: 1.15;
  letter-spacing: 0;
  font-family: "Noto Sans TC", "Montserrat", sans-serif;
  font-weight: 900;
}

.member-login-subhint {
  margin: -8px 0 14px;
  text-align: center;
  color: rgba(var(--color-navy-dark-rgb), 0.7);
  font-size: 14px;
  line-height: 1.45;
}

.member-login-shell--saas {
  min-height: calc(100dvh - 220px);
  padding: 24px 12px;
  background: transparent;
}

.member-login-card--saas {
  width: min(92vw, 420px);
  max-width: 420px;
  margin: 40px auto;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  padding: 32px;
}

.member-login-title--saas {
  margin: 0 0 6px;
  text-align: left;
  font-size: 28px;
  line-height: 1.2;
  color: var(--color-primary);
  font-weight: 800;
}

.member-login-subhint--saas {
  margin: 0 0 16px;
  text-align: left;
  color: rgba(var(--color-navy-dark-rgb), 0.62);
}

.member-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: #F1F5F9;
  margin-bottom: 14px;
}

.member-auth-tab {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(var(--color-navy-dark-rgb), 0.72);
  font-weight: 600;
  font-size: 14px;
  padding: 9px 10px;
  cursor: pointer;
}

.member-auth-tab.is-active {
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
  color: var(--color-primary);
}

.member-auth-panel {
  display: block;
}

.member-auth-panel[hidden] {
  display: none !important;
}

.member-inline-actions--otp {
  margin-top: -4px;
}

.member-secondary-link-btn {
  margin-top: 10px;
  display: inline-flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid #CBD5E1;
  border-radius: 12px;
  background: #FFFFFF;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 700;
}

.member-secondary-link-btn:hover {
  background: #F8FAFC;
}

.role-login-note {
  color: #003366;
}

.member-login-form {
  display: grid;
  gap: 14px;
}

.member-form-field {
  display: grid;
  gap: 8px;
}

.member-form-field label {
  color: #003366;
  font-size: 14px;
  font-weight: 700;
  font-family: "Noto Sans TC", "Montserrat", sans-serif;
}

.member-input {
  width: 100%;
  height: 56px;
  border-radius: 12px;
  border: 2px solid #9E9E9E;
  background: #F9FAFB;
  color: #003366;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 0 16px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
  caret-color: #1455B0;
}

.member-input::placeholder {
  color: #9E9E9E;
  font-family: "Montserrat", "Noto Sans TC", sans-serif;
  font-weight: 500;
}

.member-input:focus {
  outline: none;
  border-color: #AEEA00;
  box-shadow: 0 0 0 4px rgba(174, 234, 0, 0.25);
  background: #FFFFFF;
}

.member-login-card .member-input:invalid:not(:focus) {
  border-color: #9E9E9E;
  background: #F9FAFB;
  animation: none;
}

.member-password-wrap {
  position: relative;
}

.member-input--password {
  padding-right: 52px;
}

.member-password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #003366;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.16s ease, transform 0.16s ease;
}

.member-password-toggle svg {
  width: 24px;
  height: 24px;
}

.member-password-toggle:hover {
  color: #AEEA00;
  transform: translateY(-50%) scale(1.1);
}

.member-password-toggle:focus-visible {
  outline: 2px solid #AEEA00;
  outline-offset: 2px;
  border-radius: 8px;
}

.member-input.is-invalid {
  border-color: #FF3B30;
  background: #FFF0F0;
}

.member-input.is-shaking {
  animation: field-shake 0.4s ease;
}

.member-login-submit {
  margin-top: 6px;
  width: 100%;
  min-height: 56px;
  border-radius: 16px;
  border: 2px solid #003366;
  background: #1455B0;
  color: #FFFFFF;
  font-family: "Noto Sans TC", "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 4px 4px 0px #003366;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.16s ease;
}

.member-login-submit:hover {
  filter: brightness(1.05);
}

.member-login-submit:active {
  box-shadow: none;
  transform: translateY(4px);
}

.member-login-submit:disabled {
  cursor: progress;
}

.submit-loader {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
}

.pickleball-widget--btn {
  width: 22px;
  animation: none;
}

.pickleball-widget--btn .pickleball-ball {
  animation: spin 0.95s linear infinite;
}

.member-login-form.is-submitting .submit-text {
  opacity: 0;
}

.member-login-form.is-submitting .submit-loader {
  opacity: 1;
}

.member-login-form.is-submitting .member-login-submit {
  box-shadow: none;
  transform: translateY(4px);
}

.member-otp-actions {
  display: grid;
  gap: 8px;
}

.member-login-submit--register {
  background: #0b6bbd;
}

.member-register-note {
  margin: 14px 0 0;
  text-align: center;
  font-size: 14px;
}

.member-register-link {
  color: #003366;
  text-decoration: none;
  transition: color 0.16s ease;
}

.member-register-link strong {
  color: #1455B0;
  text-decoration: underline;
  margin-left: 4px;
}

.member-register-link:hover,
.member-register-link:hover strong {
  color: #AEEA00;
}

.member-inline-actions {
  display: flex;
  justify-content: flex-end;
}

.member-secondary-btn {
  border: 2px solid #1455B0;
  background: #fff;
  color: #1455B0;
  font-weight: 800;
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
}

.member-secondary-btn:hover {
  background: #F4FCE3;
}

.member-login-divider {
  margin: 14px 0;
  text-align: center;
  color: #6b7280;
  font-weight: 700;
  font-size: 13px;
}

.member-line-bind-panel {
  border: 1px dashed rgba(20, 85, 176, 0.45);
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(236, 245, 255, 0.55);
}

.member-line-bind-panel summary {
  cursor: pointer;
  color: #003366;
  font-weight: 700;
}

.login-error-toast {
  position: fixed;
  top: 14px;
  left: 50%;
  width: min(80vw, 400px);
  transform: translate(-50%, -50px);
  background: #FF3B30;
  color: #FFFFFF;
  border: 4px solid #003366;
  box-shadow: 6px 6px 0px #003366;
  border-radius: 16px;
  text-align: center;
  font-family: "Noto Sans TC", "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 900;
  padding: 12px 14px;
  opacity: 0;
  pointer-events: none;
  z-index: 10001;
}

.login-error-toast.is-visible {
  animation: login-toast-in 0.55s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.login-error-toast.is-hiding {
  animation: login-toast-out 0.35s ease forwards;
}

.stack-form {
  display: grid;
  gap: 10px;
}

@media (max-width: 768px) {
  .coach-form-mobile-inset {
    padding-inline: 6px;
  }

  .coach-form-mobile-inset input[type="time"],
  .coach-form-mobile-inset select,
  .coach-form-mobile-inset .date-display {
    width: 100%;
    max-width: 100%;
    display: block;
  }

  .coach-form-mobile-inset input[type="time"] {
    -webkit-appearance: none;
    appearance: none;
  }
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.chips {
  --slot-gap: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: var(--slot-gap);
}

.tx-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 10px;
}

.quick-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  flex-wrap: wrap;
}

.quick-filter-label {
  color: var(--color-navy-dark);
  font-size: 13px;
  font-weight: 800;
}

.tx-filter-chip {
  border: 2px solid var(--color-navy-dark);
  background: #fff;
  color: var(--color-navy-dark);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.14s ease, background-color 0.14s ease, color 0.14s ease;
}

.tx-filter-chip:hover {
  background: #eef4ff;
}

.tx-filter-chip:active {
  transform: scale(0.96);
}

.tx-filter-chip.active {
  background: var(--color-navy-dark);
  color: #fff;
}

.tx-filter-empty {
  margin-top: 8px;
}

@media (min-width: 1024px) {
  .chips {
    --slot-gap: 12px;
  }
}

.schedule-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr auto;
  gap: 8px;
  margin-bottom: 8px;
}

.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 100px;
  min-height: 48px;
  text-decoration: none;
  color: #003366;
  border: 2px solid #9E9E9E;
  padding: 12px 16px;
  border-radius: 12px;
  background: #FFFFFF;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chip:hover {
  border-color: #AEEA00;
  background: #F4FCE3;
  transform: translateY(-1px);
}

button.chip {
  appearance: none;
  -webkit-appearance: none;
}

.chip:active {
  transform: scale(0.96);
}

.chip.active {
  z-index: 2;
  background: #1455B0;
  color: #FFFFFF;
  border: 2px solid #003366;
}

.chip.active::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  height: 4px;
  background: #AEEA00;
  border-radius: 10px 10px 0 0;
  pointer-events: none;
  z-index: 3;
}

.chip.active:active {
  transform: scale(0.92);
}

.chip.active.is-glue-start {
  z-index: 5;
  animation: glue-pop 0.24s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.chip.active.is-joined-right {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  margin-right: calc(-1 * (var(--slot-gap) + 4px));
  z-index: 4;
}

.chip.active.is-joined-left {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left-color: transparent;
  margin-left: -2px;
}

.chip.active.is-joined-left::before {
  left: 0;
  border-top-left-radius: 0;
}

.chip.active.is-joined-right {
  border-right-color: transparent;
}

.chip.active.is-joined-right::before {
  right: 0;
  border-top-right-radius: 0;
}

.chip.disabled {
  background: #F5F5F5;
  color: var(--color-neutral);
  border: var(--stroke-thin) dashed var(--color-neutral);
  cursor: not-allowed;
  transform: none;
}

.counter-timeline-stack {
  display: grid;
  gap: 10px;
}

.timeline-court-block {
  border: var(--stroke-thin) solid var(--color-navy-dark);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 10px;
  max-width: 100%;
  overflow: hidden;
  box-shadow: var(--shadow-1);
}

.timeline-court-title {
  font-weight: 800;
  margin-bottom: 8px;
}

.timeline-scroll {
  max-width: 100%;
  overflow: visible;
}

.timeline-strip {
  --timeline-gap: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: var(--timeline-gap);
  width: 100%;
  min-width: 0;
  padding-bottom: 0;
}

.timeline-period-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 4px 0 10px;
}

.timeline-period-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #64748B;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
}

.counter-confirm-booking-bar {
  position: sticky;
  bottom: 10px;
  z-index: 8;
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.counter-confirm-booking-bar .btn {
  min-width: 180px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
}

.slot-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 68px;
  min-height: 34px;
  border-radius: 9999px;
  padding: 6px 16px;
  font-size: 14px;
  line-height: 1;
  font-family: var(--font-body);
  font-weight: 600;
  border: 1px solid transparent;
  background: #F1F5F9;
  color: #475569;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.slot-chip.free {
  cursor: pointer;
  background: #F1F5F9;
  color: #475569;
}

.slot-chip.free:hover {
  background: #E2E8F0;
  color: #334155;
  transform: translateY(-1px);
}

.slot-chip.free:active {
  transform: scale(0.98);
}

.slot-chip.free.selected {
  z-index: 2;
  background-color: var(--color-primary);
  color: #FFFFFF;
  font-weight: 600;
  border: 1px solid var(--color-primary);
  transition: all 0.15s ease-in-out;
  box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3), 0 0 0 2px #FFFFFF, 0 0 0 3px #3B82F6;
}

.slot-chip.free.selected.is-glue-start {
  z-index: 5;
  animation: glue-pop 0.24s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.slot-chip.free.selected.is-joined-right,
.slot-chip.free.selected.is-joined-left {
  border-radius: 9999px;
  margin: 0;
}

.slot-chip.free.selected:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: none;
}

.slot-chip.free:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 3px #3B82F6;
}

.slot-chip.empty,
.slot-chip.busy,
.slot-chip.past {
  background: #F5F5F5;
  color: var(--color-neutral);
  border: var(--stroke-thin) dashed var(--color-neutral);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
  transition: none;
}

.counter-selected-summary {
  border: var(--stroke-thin) dashed var(--color-navy-dark);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  background: #fff;
}

.counter-slot-picker {
  margin-top: 10px;
}

.counter-slot-picker-toggle {
  border: 1px dashed #9DB6D8;
  border-radius: 999px;
  background: #F8FBFF;
  color: #1E3A8A;
  padding: 6px 12px;
  font-weight: 700;
  cursor: pointer;
}

.counter-slot-picker-panel {
  margin-top: 8px;
  border: 1px solid #D7E4F5;
  background: #FAFCFF;
  border-radius: 10px;
  padding: 10px;
}

.counter-slot-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.counter-slot-picker-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.counter-slot-picker-actions .btn {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
}

@media (max-width: 680px) {
  .counter-slot-picker-grid {
    grid-template-columns: 1fr;
  }
}

.counter-manual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  align-items: end;
}

.counter-manual-grid .counter-span-2 {
  grid-column: span 2 / span 2;
}

@media (max-width: 860px) {
  .counter-manual-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .counter-manual-grid .counter-span-2 {
    grid-column: span 1 / span 1;
  }
}

label {
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  height: 40px;
  border: 1px solid var(--color-border, #E2E8F0);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  font-size: 14px;
  background-color: #FFFFFF;
  color: var(--text);
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  min-height: auto;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  margin: 0;
  display: inline-block;
  vertical-align: middle;
  flex: 0 0 auto;
}

input[type="checkbox"] {
  inline-size: 20px;
  block-size: 20px;
}

input[type="radio"] {
  inline-size: 22px;
  block-size: 22px;
}

textarea {
  min-height: 96px;
  height: auto;
}

select,
input[type="date"] {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #64748B 50%), linear-gradient(135deg, #64748B 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

.date-picker {
  position: relative;
  width: 100%;
}

.date-native-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.date-display {
  width: 100%;
  min-width: 0;
  border: var(--stroke-thin) solid var(--color-navy-dark);
  border-radius: var(--radius-md);
  background: var(--color-surface-white);
  color: var(--color-navy-dark);
  padding: 10px 12px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-1);
  transition: all 0.16s ease;
}

.date-display:hover {
  transform: translate(-1px, -1px);
}

.date-picker.open .date-display,
.date-display:focus-visible {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(var(--color-accent-rgb), 0.45), var(--shadow-1);
}

.calendar-panel {
  position: relative;
  margin-top: 8px;
  width: min(560px, 100%);
  background: #fff;
  border: var(--stroke-thick) solid var(--color-navy-dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  z-index: 1;
  padding: 12px;
}

.calendar-header {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.calendar-title {
  text-align: center;
  color: var(--color-navy-dark);
  font-family: "Noto Sans TC", "Montserrat", sans-serif;
  font-size: 22px;
  font-weight: 900;
}

.calendar-nav-btn {
  border: var(--stroke-thin) solid var(--color-navy-dark);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--color-navy-dark);
  height: 36px;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-1);
  transition: all 0.16s ease;
}

.calendar-nav-btn:hover {
  background: var(--color-accent);
  transform: translate(-1px, -1px);
}

.calendar-week,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.calendar-week {
  margin-bottom: 6px;
}

.calendar-week span {
  text-align: center;
  font-size: 12px;
  color: rgba(var(--color-navy-dark-rgb), 0.72);
  font-weight: 700;
}

.calendar-day {
  min-height: 38px;
  border-radius: 12px;
  border: var(--stroke-thin) solid transparent;
  background: #fff;
  color: var(--color-navy-dark);
  font-size: 14px;
  font-weight: 700;
  padding: var(--p-sm);
  cursor: pointer;
  transition: all 0.16s ease;
}

.calendar-day:hover:not(.is-disabled):not(.is-selected) {
  background: #F4FCE3;
  border-color: var(--color-accent);
}

.calendar-day.is-today {
  background: rgba(var(--color-secondary-rgb), 0.2);
  border-color: rgba(var(--color-secondary-rgb), 0.8);
}

.calendar-day.is-selected {
  background: var(--color-accent);
  color: var(--color-navy-dark);
  border-color: var(--color-navy-dark);
  transform: scale(1.15);
  box-shadow: var(--shadow-1);
}

.calendar-day.is-outside {
  color: rgba(var(--color-navy-dark-rgb), 0.4);
}

.calendar-day.is-disabled {
  color: var(--color-neutral);
  background: #f5f5f5;
  border-color: rgba(var(--color-neutral-rgb), 0.4);
  cursor: not-allowed;
}

.calendar-day.is-holiday {
  position: relative;
}

.calendar-day.is-holiday .holiday-dot {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid var(--color-navy-dark);
}

.calendar-day.is-national-holiday .holiday-dot {
  background: var(--color-accent);
}

.calendar-day.is-makeup .holiday-dot {
  background: var(--color-secondary);
}

.search-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.search-row--integrated {
  width: 100%;
  max-width: 400px;
}

.search-row .btn {
  white-space: nowrap;
  flex: 0 0 auto;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 0;
}

.search-box input {
  width: 100%;
  padding-right: 40px;
}

.search-box--icon input {
  border-radius: 9999px;
}

.search-icon-inline {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.search-icon-inline svg {
  width: 18px;
  height: 18px;
}

.member-live-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 2px solid var(--color-navy-dark);
  border-radius: 14px;
  box-shadow: var(--shadow-2);
  max-height: 280px;
  overflow: auto;
  z-index: 40;
  padding: 6px;
  animation: member-dropdown-in 0.18s ease-out;
}

.member-live-item {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--color-navy-dark);
  text-align: left;
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.member-live-item:hover,
.member-live-item.is-active {
  background: #E8F2FF;
}

.member-live-item.is-empty {
  justify-content: flex-start;
  color: rgba(var(--color-navy-dark-rgb), 0.72);
  font-weight: 700;
}

.member-live-item-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.member-live-item-name {
  color: #0b1220;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
}

.member-live-item-phone {
  color: rgba(var(--color-navy-dark-rgb), 0.72);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.member-live-item-balance {
  color: #0F172A;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: #e2e8f0;
  color: #475569;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.search-clear:hover {
  background: #cbd5e1;
}

.search-box--icon .search-clear {
  right: 34px;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

input:invalid:not(:focus):not(.date-native-input) {
  animation: invalid-blink 0.18s ease-in-out 2;
  border-color: #D7263D;
}

input:disabled,
select:disabled {
  background: rgba(var(--color-neutral-rgb), 0.25);
  color: var(--color-neutral);
  cursor: not-allowed;
}

.btn {
  --btn-bg: var(--color-navy-dark);
  --btn-fg: var(--color-surface-white);
  --btn-shadow-color: var(--color-navy-dark);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  text-decoration: none;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-radius: var(--radius-full);
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 18px;
  letter-spacing: 0.05em;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 4px 4px 0px var(--btn-shadow-color);
}

.btn.accent {
  --btn-bg: var(--color-accent);
  --btn-fg: var(--color-navy-dark);
}

.btn:hover:not(:disabled) {
  box-shadow: 6px 6px 0px var(--btn-shadow-color);
  transform: translate(-2px, -2px);
}

.btn:active:not(:disabled) {
  box-shadow: 0px 0px 0px var(--btn-shadow-color);
  transform: translate(4px, 4px) scale(0.98);
}

.btn:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

button.is-loading,
input[type="submit"].is-loading,
button:disabled,
input[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-loading-spinner {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: spin 1s linear infinite;
}

.btn-loading-spinner svg {
  width: 16px;
  height: 16px;
  display: block;
}

.btn-loading-text {
  white-space: nowrap;
}

.btn.danger {
  --btn-bg: #ffb8be;
  --btn-fg: #6b1120;
  --btn-shadow-color: #6b1120;
}

.history-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.btn-cancel-compact,
.btn-edit-compact {
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 12px;
  letter-spacing: 0;
  box-shadow: 2px 2px 0px var(--btn-shadow-color);
  transform: none;
  white-space: nowrap;
  min-height: 34px;
}

.btn-cancel-compact:hover,
.btn-edit-compact:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px var(--btn-shadow-color);
}

.btn-cancel-compact:active,
.btn-edit-compact:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--btn-shadow-color);
}

.btn-edit-compact {
  --btn-bg: #E8F2FF;
  --btn-fg: #003366;
  --btn-shadow-color: #003366;
}

.booking-edit-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 51, 102, 0.45);
  backdrop-filter: blur(2px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 1200;
}

.booking-edit-modal.active {
  display: flex;
}

.booking-edit-card {
  width: min(92vw, 520px);
  background: #fff;
  border: 4px solid #003366;
  border-radius: 24px;
  box-shadow: 8px 8px 0 #003366;
  padding: 18px;
}

.booking-edit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.booking-edit-head h4 {
  margin: 0;
}

.booking-edit-close {
  border: 2px solid #003366;
  border-radius: 10px;
  background: #fff;
  color: #003366;
  width: 32px;
  height: 32px;
  font-weight: 800;
  cursor: pointer;
}

.booking-edit-meta {
  margin: 2px 0 12px;
  color: rgba(var(--color-navy-dark-rgb), 0.72);
  font-size: 13px;
}


.booking-edit-form {
  display: grid;
  gap: 12px;
}

.booking-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.table-wrap {
  width: 100%;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  border: var(--stroke-thin) solid var(--color-navy-dark);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
}

.table-wrap.table-wrap-y5 {
  height: 312px;
  max-height: 312px;
  overflow-y: auto;
  overflow-x: hidden;
}

table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
  background: #fff;
  color: var(--text);
}

.coach-manage-wrap {
  height: 380px;
  max-height: 380px;
  overflow: auto;
}

#coach-booking-manage-table {
  min-width: 0;
  table-layout: fixed;
}

#coach-booking-manage-table th {
  z-index: 3;
}

#coach-booking-manage-table th:last-child,
#coach-booking-manage-table td:last-child {
  width: 280px;
  min-width: 0;
}

#counter-booking-manage-wrap {
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 0;
  height: 560px;
  max-height: 78vh;
}

#counter-booking-manage-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

#counter-booking-manage-table th:last-child,
#counter-booking-manage-table td:last-child {
  width: 25%;
  min-width: 0;
  vertical-align: top;
}

#counter-booking-manage-table th,
#counter-booking-manage-table td {
  padding: 8px 6px;
}

#counter-booking-manage-table .counter-booking-manage-row {
  transition: opacity 0.18s ease;
}

#counter-booking-manage-table .counter-booking-manage-row.is-soft-loading {
  opacity: 0.48;
}

#counter-booking-manage-table td.cell-actions {
  overflow: hidden;
}

#counter-booking-manage-table td.cell-actions .stack-form {
  max-width: 100%;
  margin: 0 0 10px;
}

#counter-booking-manage-table td.cell-actions .stack-form:last-child {
  margin-bottom: 0;
}

#counter-booking-manage-table td.cell-actions input,
#counter-booking-manage-table td.cell-actions select,
#counter-booking-manage-table td.cell-actions button {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: 40px;
  height: 40px;
  padding: 8px 10px;
  font-size: 13px;
}

#counter-booking-manage-table td.cell-actions input[type="date"][data-native-date="1"] {
  appearance: auto;
  -webkit-appearance: auto;
  background-image: none;
  padding-right: 9px;
}

#counter-booking-manage-table td:last-child .grid2 {
  grid-template-columns: 1fr;
  gap: 6px;
}

#counter-booking-manage-table td:last-child .date-display {
  font-size: 13px;
  letter-spacing: 0.01em;
  padding: 7px 8px;
  box-shadow: none;
  border: 1px solid #CBD5E1;
}

@media (max-width: 768px) {
  #counter-booking-manage-table {
    display: block;
    width: 100%;
  }

  #counter-booking-manage-table > tbody {
    display: block;
  }

  #counter-booking-manage-table > tr:first-child,
  #counter-booking-manage-table > tbody > tr:first-child {
    display: none;
  }

  #counter-booking-manage-table .counter-booking-manage-row {
    display: block;
    border: 2px solid var(--color-navy-dark);
    border-radius: 14px;
    margin: 0 0 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-1);
  }

  #counter-booking-manage-table .counter-booking-manage-row td {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    width: 100%;
    padding: 8px 10px;
    border-bottom: 1px dashed rgba(var(--color-navy-dark-rgb), 0.2);
    font-size: 13px;
    line-height: 1.45;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  #counter-booking-manage-table .counter-booking-manage-row td::before {
    content: attr(data-label);
    color: var(--color-navy-dark);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
  }

  #counter-booking-manage-table .counter-booking-manage-row td:last-child {
    border-bottom: none;
  }

  #counter-booking-manage-table .counter-booking-manage-row td.cell-actions {
    display: block;
    padding: 10px;
  }

  #counter-booking-manage-table .counter-booking-manage-row td.cell-actions::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 6px;
    color: var(--color-navy-dark);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
  }

  #counter-booking-manage-table .counter-booking-manage-row td.cell-actions form {
    margin-bottom: 8px !important;
  }

  #counter-booking-manage-table .counter-booking-manage-row td.cell-actions form:last-child {
    margin-bottom: 0 !important;
  }

  #counter-booking-manage-table .counter-booking-manage-row td.cell-actions .grid2 {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  #counter-booking-manage-table .counter-booking-manage-row td.cell-actions input,
  #counter-booking-manage-table .counter-booking-manage-row td.cell-actions select,
  #counter-booking-manage-table .counter-booking-manage-row td.cell-actions button {
    width: 100%;
  }

  #counter-booking-manage-table th:last-child,
  #counter-booking-manage-table td:last-child {
    width: auto;
    min-width: 0;
  }
}

.coach-edit-inline-form {
  margin: 0;
}

.coach-edit-inline-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.coach-edit-date {
  width: 138px;
  min-width: 138px;
}

.coach-edit-time {
  width: 96px;
  min-width: 96px;
}

.coach-edit-submit {
  white-space: nowrap;
}

th, td {
  border-bottom: 1px solid rgba(var(--color-navy-dark-rgb), 0.14);
  padding: 10px 8px;
  text-align: left;
  font-size: 14px;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

th {
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  position: sticky;
  top: 0;
}

.coach-slot-mobile-list {
  display: none;
}

.coach-slot-mobile-card {
  border: 2px solid var(--color-navy-dark);
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff;
  box-shadow: var(--shadow-1);
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.coach-slot-mobile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.coach-slot-mobile-range {
  font-size: 14px;
  font-weight: 800;
  color: var(--color-navy-dark);
  line-height: 1.35;
}

.coach-slot-mobile-id {
  font-size: 12px;
  font-weight: 700;
  color: rgba(var(--color-navy-dark-rgb), 0.72);
}

.coach-slot-mobile-status {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.coach-slot-mobile-status.is-open {
  background: #F4FCE3;
  color: #2D4D00;
  border: 1px solid #AEEA00;
}

.coach-slot-mobile-status.is-booked {
  background: #FEE2E2;
  color: #9F1239;
  border: 1px solid #FCA5A5;
}

@media (max-width: 768px) {
  .coach-slot-table-wrap {
    display: none;
  }

  .coach-slot-mobile-list {
    display: block;
  }
}

.no-wrap-table th,
.no-wrap-table td {
  white-space: nowrap;
  word-break: keep-all;
}

.history-table-wrap {
  overflow-x: hidden;
}

.history-table-fit {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.history-table-fit th,
.history-table-fit td {
  font-size: 12px;
  padding: 9px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.history-table-fit .kind-tag {
  max-width: 100%;
  padding: 2px 7px;
  font-size: 10px;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-table-fit td:nth-child(5),
.history-table-fit td:nth-child(6) {
  text-overflow: clip;
}

.history-mobile-list {
  display: none;
}

.history-mobile-card {
  border: 2px solid var(--color-navy-dark);
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff;
  box-shadow: var(--shadow-1);
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.history-mobile-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.history-mobile-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--color-navy-dark);
  line-height: 1.2;
}

.history-mobile-price {
  font-family: var(--font-display);
  font-size: 32px;
  color: #D7263D;
  line-height: 1;
  white-space: nowrap;
}

.history-mobile-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(var(--color-navy-dark-rgb), 0.82);
}

.history-mobile-status {
  border-radius: 999px;
  padding: 2px 8px;
  background: #F4FCE3;
  border: 1px solid #AEEA00;
  color: #2D4D00;
  font-size: 11px;
  font-weight: 800;
}

.history-mobile-time {
  font-size: 14px;
  font-weight: 800;
  color: var(--color-navy-dark);
}

.history-mobile-sub {
  font-size: 12px;
  font-weight: 700;
  color: rgba(var(--color-navy-dark-rgb), 0.72);
  line-height: 1.5;
}

.history-mobile-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .history-table-wrap {
    display: none;
  }

  .history-mobile-list {
    display: block;
  }
}

tbody tr:nth-child(even) {
  background: rgba(var(--color-secondary-rgb), 0.08);
}

.flash {
  list-style: none;
  margin: 0;
  padding: 0;
  position: fixed;
  top: 24px;
  right: 24px;
  width: min(92vw, 360px);
  display: grid;
  gap: 10px;
  z-index: 9999;
  pointer-events: none;
}

.flash li {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  padding: 11px 12px;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.flash li.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.flash li.is-hiding {
  opacity: 0;
  transform: translateY(-20px);
}

.flash-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.flash-icon svg {
  width: 20px;
  height: 20px;
}

.flash-icon.is-success {
  color: #10B981;
}

.flash-icon.is-error {
  color: #DC2626;
}

.flash-text {
  font-weight: 500;
  color: #1E293B;
  font-size: 14px;
  line-height: 1.45;
}

.flash-success,
.flash-error {
  background: #fff;
}

.pickleball-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.pickleball-widget {
  width: 92px;
  max-width: 100%;
  display: inline-flex;
  animation: levitate 2s ease-in-out infinite;
}

.pickleball-widget--mini {
  width: 30px;
  animation-duration: 1.6s;
}

.pickleball-widget--topbar {
  width: 34px;
  animation-duration: 2.2s;
}

.pickleball-widget--topbar .pickleball-ball {
  animation-duration: 4s;
}

.pickleball-widget svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.pickleball-ball {
  transform-origin: 50% 50%;
  animation: spin 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.pickleball-widget.is-loading .pb-trail-lines path {
  stroke-dasharray: 15 25;
  stroke-dashoffset: 40;
  animation: flow 0.6s linear infinite;
}

.pickleball-widget.is-loading .pb-trail-lines path:nth-child(2) {
  animation-delay: -0.08s;
}

.pickleball-widget.is-loading .pb-trail-lines path:nth-child(3) {
  animation-delay: -0.16s;
}

.pickleball-widget.is-success {
  animation-duration: 1.8s;
}

.pickleball-widget.is-success .pickleball-ball {
  animation: spin-success 2.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.cursor-toggle-btn {
  position: fixed;
  top: 8px;
  right: 10px;
  z-index: 100000;
  border: 2px solid #003366;
  border-radius: 999px;
  background: #FFFFFF;
  color: #003366;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 4px 8px;
  white-space: nowrap;
  box-shadow: 2px 2px 0px #003366;
  cursor: pointer;
}

.cursor-toggle-btn.is-off {
  background: #E5E7EB;
  color: #4B5563;
}

.cursor-toggle-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 #003366;
}

@media (hover: none), (pointer: coarse) {
  .cursor-toggle-btn {
    display: none !important;
  }
}

#pickle-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  pointer-events: none;
  z-index: 99999;
  opacity: 0;
  transform: translate3d(-120px, -120px, 0) translate(-50%, -50%);
  will-change: transform, opacity;
}

#pickle-cursor.is-visible {
  opacity: 1;
}

.pickle-cursor-shell {
  width: 100%;
  height: 100%;
  transform-origin: center center;
  transition: transform 0.16s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.16s ease;
}

.pickle-cursor-ball {
  width: 100%;
  height: 100%;
  display: block;
  transform-origin: center center;
}

.pickle-cursor-core {
  fill: #AEEA00;
  transition: fill 0.1s ease;
}

#pickle-cursor.is-hovering .pickle-cursor-shell {
  transform: scale(1.2);
  opacity: 0.85;
  mix-blend-mode: hard-light;
}

#pickle-cursor.is-hovering.is-on-dark .pickle-cursor-shell {
  mix-blend-mode: difference;
}

#pickle-cursor.is-hovering .pickle-cursor-holes {
  transform-origin: center;
  animation: cursor-hole-spin 2s linear infinite;
}

#pickle-cursor.is-pressing .pickle-cursor-ball {
  transform: scale(0.6);
  transition: transform 0.1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#pickle-cursor.is-pressing .pickle-cursor-core {
  fill: #A5D610;
}

#pickle-cursor.is-rebound .pickle-cursor-ball {
  animation: cursor-impact-rebound 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#pickle-cursor.is-rebound .pickle-cursor-core {
  fill: #AEEA00;
}

#pickle-cursor.is-rebound .pickle-cursor-ball {
  filter: drop-shadow(0 0 0 #FFFFFF);
}

@media (hover: hover) and (pointer: fine) {
  body.pickle-cursor-enabled,
  body.pickle-cursor-enabled a,
  body.pickle-cursor-enabled button,
  body.pickle-cursor-enabled input,
  body.pickle-cursor-enabled select,
  body.pickle-cursor-enabled textarea,
  body.pickle-cursor-enabled [role="button"],
  body.pickle-cursor-enabled .chip,
  body.pickle-cursor-enabled .slot-chip.free,
  body.pickle-cursor-enabled label,
  body.pickle-cursor-enabled .btn {
    cursor: none !important;
  }
}

.pickle-modal {
  position: fixed;
  inset: 0;
  background: rgba(var(--color-navy-dark-rgb), 0.8);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
  z-index: 12000;
}

.pickle-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.pickle-modal-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(92vw, 560px);
  background: #fff;
  border: 4px solid var(--color-navy-dark);
  border-radius: var(--radius-lg);
  box-shadow: 12px 12px 0px var(--color-accent);
  padding: 20px;
  transform: translate(-50%, -50%) scale(0.95);
  transform-origin: center center;
  transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.pickle-modal.active .pickle-modal-card {
  transform: translate(-50%, -50%) scale(1);
}

.pickle-modal.is-destructive .pickle-modal-card {
  box-shadow: 12px 12px 0px #FF3B30;
}

.pickle-modal-title {
  margin: 0 0 14px;
  text-align: center;
  color: var(--color-navy-dark);
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 900;
  letter-spacing: -0.01em;
}

.pickle-modal-details {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.pickle-modal-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: var(--color-navy-dark);
  font-size: 15px;
  line-height: 1.45;
}

.pickle-modal-label {
  color: rgba(var(--color-navy-dark-rgb), 0.72);
  font-weight: 700;
}

.pickle-modal-value {
  font-weight: 800;
  word-break: break-word;
}

.pickle-modal-warning {
  margin: 8px 0 0;
  color: #7A7A7A;
  font-weight: 700;
  text-align: center;
}

.pickle-modal-actions {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.pickle-modal-cancel,
.pickle-modal-confirm {
  height: 52px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 800;
  border-radius: var(--radius-full);
  transition: transform 0.14s ease, filter 0.14s ease, background-color 0.14s ease;
}

.pickle-modal-cancel {
  flex: 3;
  border: none;
  background: transparent;
  color: var(--color-navy-dark);
}

.pickle-modal-cancel:hover {
  background: #F4F6F8;
}

.pickle-modal-confirm {
  flex: 7;
  border: 4px solid var(--color-navy-dark);
  background: var(--color-navy-dark);
  color: #fff;
}

.pickle-modal.is-destructive .pickle-modal-confirm {
  border-color: #FF3B30;
  background: #FF3B30;
}

.pickle-modal-confirm:active,
.pickle-modal-cancel:active {
  transform: scale(0.96);
}

.member-announcement-modal {
  position: fixed;
  inset: 0;
  z-index: 11800;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.member-announcement-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.member-announcement-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(var(--color-navy-dark-rgb), 0.45);
}

.member-announcement-card {
  position: absolute;
  left: 50%;
  top: 14%;
  transform: translateX(-50%);
  width: min(92vw, 560px);
  max-height: 74vh;
  overflow: auto;
  border-radius: 14px;
  border: 2px solid rgba(var(--color-navy-dark-rgb), 0.2);
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.32);
  padding: 14px;
}

.member-announcement-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.member-announcement-head h3 {
  margin: 0;
  color: var(--color-navy-dark);
}

.member-announcement-close {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(var(--color-navy-dark-rgb), 0.25);
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}

.member-announcement-body {
  color: #1f2937;
  line-height: 1.6;
  white-space: pre-line;
  word-break: break-word;
}

.member-announcement-body p:first-child {
  margin-top: 0;
}

.content-preserve-lines {
  white-space: pre-line;
  word-break: break-word;
}

.booking-terms-inline {
  display: grid;
  gap: 6px;
}

.booking-terms-open {
  width: fit-content;
  border: 1px solid rgba(var(--color-navy-dark-rgb), 0.2);
  border-radius: 999px;
  background: #ffffff;
  color: var(--color-navy-dark);
  font-weight: 700;
  padding: 6px 12px;
  cursor: pointer;
}

.booking-terms-open:hover {
  background: #f8fbff;
}

.booking-terms-card {
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 720px);
  max-height: 80vh;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  display: none;
  background: rgba(var(--color-navy-dark-rgb), 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
}

.loading-overlay.active {
  display: block;
}

.loading-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(86vw, 200px);
  height: min(86vw, 200px);
  background: #fff;
  border: var(--stroke-thick) solid var(--color-navy-dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  padding: var(--p-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.loading-card .pickleball-widget {
  width: 96px;
}

.loading-text {
  margin: 0;
  color: var(--color-navy-dark);
  font-family: "Noto Sans TC", "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
}

.loading-dots::after {
  content: '...';
  display: inline-block;
  width: 1.5em;
  text-align: left;
  animation: ellipsis 1.5s infinite steps(4);
}

.success-celebration {
  position: fixed;
  inset: 0;
  pointer-events: none;
  display: none;
  place-items: center;
  z-index: 1100;
}

.success-celebration.active {
  display: grid;
}

.success-banner {
  background: var(--color-accent);
  color: var(--color-navy-dark);
  border: var(--stroke-thick) solid var(--color-navy-dark);
  border-radius: var(--radius-full);
  padding: 14px 24px;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.06em;
  box-shadow: var(--shadow-2);
  animation: success-pop 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.success-confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  left: calc(50% - 5px);
  top: 50%;
  width: 10px;
  height: 16px;
  border-radius: 3px;
  opacity: 0;
  transform: translate(-50%, -50%);
  animation: confetti-burst 1.2s ease-out forwards;
}

.confetti-piece.p0 { background: var(--color-accent); }
.confetti-piece.p1 { background: var(--color-secondary); }
.confetti-piece.p2 { background: #fff; }
.confetti-piece.p3 { background: #8ad000; }
.confetti-piece.p4 { background: #ffd166; }
.confetti-piece.p5 { background: #ff7f50; }

.confetti-piece:nth-child(1) { --dx: -180px; --dy: -220px; animation-delay: 0s; }
.confetti-piece:nth-child(2) { --dx: -150px; --dy: -170px; animation-delay: 0.02s; }
.confetti-piece:nth-child(3) { --dx: -120px; --dy: -240px; animation-delay: 0.04s; }
.confetti-piece:nth-child(4) { --dx: -90px; --dy: -180px; animation-delay: 0.06s; }
.confetti-piece:nth-child(5) { --dx: -60px; --dy: -220px; animation-delay: 0.08s; }
.confetti-piece:nth-child(6) { --dx: -30px; --dy: -160px; animation-delay: 0.10s; }
.confetti-piece:nth-child(7) { --dx: 0px; --dy: -230px; animation-delay: 0.12s; }
.confetti-piece:nth-child(8) { --dx: 30px; --dy: -170px; animation-delay: 0.14s; }
.confetti-piece:nth-child(9) { --dx: 60px; --dy: -220px; animation-delay: 0.16s; }
.confetti-piece:nth-child(10) { --dx: 90px; --dy: -170px; animation-delay: 0.18s; }
.confetti-piece:nth-child(11) { --dx: 120px; --dy: -230px; animation-delay: 0.20s; }
.confetti-piece:nth-child(12) { --dx: 150px; --dy: -180px; animation-delay: 0.22s; }
.confetti-piece:nth-child(13) { --dx: 180px; --dy: -220px; animation-delay: 0.24s; }
.confetti-piece:nth-child(14) { --dx: -160px; --dy: -90px; animation-delay: 0.26s; }
.confetti-piece:nth-child(15) { --dx: -110px; --dy: -120px; animation-delay: 0.28s; }
.confetti-piece:nth-child(16) { --dx: -50px; --dy: -70px; animation-delay: 0.30s; }
.confetti-piece:nth-child(17) { --dx: 20px; --dy: -110px; animation-delay: 0.32s; }
.confetti-piece:nth-child(18) { --dx: 70px; --dy: -80px; animation-delay: 0.34s; }
.confetti-piece:nth-child(19) { --dx: 130px; --dy: -115px; animation-delay: 0.36s; }
.confetti-piece:nth-child(20) { --dx: 170px; --dy: -90px; animation-delay: 0.38s; }
.confetti-piece:nth-child(21) { --dx: -95px; --dy: -250px; animation-delay: 0.40s; }
.confetti-piece:nth-child(22) { --dx: 0px; --dy: -260px; animation-delay: 0.42s; }
.confetti-piece:nth-child(23) { --dx: 95px; --dy: -250px; animation-delay: 0.44s; }
.confetti-piece:nth-child(24) { --dx: 0px; --dy: -140px; animation-delay: 0.46s; }

@keyframes ellipsis {
  0% { width: 0; }
  100% { width: 1.5em; }
}

@keyframes toast-slide-down {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toast-slide-up-out {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-18px);
  }
}

@keyframes cursor-hole-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes cursor-impact-rebound {
  0% {
    transform: scale(0.6);
    filter: drop-shadow(0 0 0 #FFFFFF);
  }
  60% {
    transform: scale(1.3);
    filter: drop-shadow(0 0 4px #FFFFFF);
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 #FFFFFF);
  }
}

@keyframes field-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

@keyframes login-toast-in {
  0% {
    opacity: 0;
    transform: translate(-50%, -50px);
  }
  70% {
    opacity: 1;
    transform: translate(-50%, 20px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes login-toast-out {
  from {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -50px);
  }
}

@keyframes success-pop {
  0% {
    transform: scale(0.45) rotate(-6deg);
    opacity: 0;
  }
  58% {
    transform: scale(1.1) rotate(2deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes orbit-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes paddle-float-left {
  0%, 100% {
    transform: translate(-58%, -52%) rotate(-30deg) translateY(0);
  }
  50% {
    transform: translate(-58%, -52%) rotate(-30deg) translateY(-8px);
  }
}

@keyframes paddle-float-right {
  0%, 100% {
    transform: translate(-42%, -48%) rotate(30deg) translateY(0);
  }
  50% {
    transform: translate(-42%, -48%) rotate(30deg) translateY(8px);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

@keyframes glue-pop {
  0% {
    filter: brightness(1.22);
  }
  100% {
    filter: brightness(1);
  }
}

@keyframes member-dropdown-in {
  0% {
    opacity: 0;
    transform: translateY(-6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes confetti-burst {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) scale(0.6);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(520deg) scale(1);
    opacity: 0;
  }
}

@keyframes invalid-blink {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(215, 38, 61, 0);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(215, 38, 61, 0.28);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  32% {
    transform: rotate(260deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes spin-success {
  0% {
    transform: rotate(0deg) scale(1);
  }
  30% {
    transform: rotate(230deg) scale(1.06);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes flow {
  from {
    stroke-dashoffset: 40;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes levitate {
  0%,
  100% {
    transform: translateY(-4px);
  }
  50% {
    transform: translateY(4px);
  }
}

.record-list {
  display: grid;
  gap: 12px;
}

.record-item {
  border: var(--stroke-thin) solid var(--color-navy-dark);
  background: #fff;
  border-radius: var(--radius-md);
  padding: 12px;
  box-shadow: var(--shadow-1);
}

.record-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.record-id {
  font-weight: 800;
}

.record-status {
  border-radius: var(--radius-full);
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 800;
  margin-left: auto;
}

.record-status.ok {
  background: #d9f7a6;
  color: #234500;
}

.record-status.muted {
  background: #e7ebef;
  color: #3b4b5a;
}

.kind-tag {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-full);
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  border: var(--stroke-thin) solid transparent;
}

.kind-tag.court {
  background: rgba(var(--color-secondary-rgb), 0.18);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.kind-tag.coach {
  background: rgba(var(--color-accent-rgb), 0.45);
  border-color: var(--color-navy-dark);
  color: var(--color-navy-dark);
}

.wallet-type {
  font-weight: 800;
  color: var(--text);
}

.txn-amount {
  font-weight: 800;
  font-size: 15px;
}

.txn-amount.plus {
  color: #2e7d32;
}

.txn-amount.minus {
  color: #b42318;
}

.record-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
}

.record-grid .full {
  grid-column: 1 / -1;
}

.record-grid .k {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.record-grid .v {
  display: block;
  font-weight: 500;
  line-height: 1.32;
  word-break: break-word;
}

@media (max-width: 768px) {
  h1 {
    font-size: 36px;
    line-height: 1.1;
  }

  h2 {
    font-size: 24px;
    line-height: 1.2;
  }

  .brand-title { font-size: 24px; }
  .topbar-ball { width: 28px; height: 28px; }
  .pickleball-widget--topbar { width: 28px; }
  .calendar-panel { width: 100%; max-width: 100%; }
  .calendar-day { min-height: 40px; }
  .loading-card {
    width: min(84vw, 200px);
    height: min(84vw, 200px);
    padding: 20px;
    gap: 16px;
  }
  .member-login-shell {
    min-height: calc(100dvh - 180px);
    padding: 14px;
  }
  .member-login-card {
    width: 100%;
    border-radius: 24px;
    padding: 22px 16px 18px;
  }
  .member-login-title { font-size: 30px; }
  .member-login-shell--saas {
    min-height: calc(100dvh - 160px);
    padding: 16px 10px;
  }
  .member-login-card--saas {
    width: min(95vw, 420px);
    border-radius: 16px;
    padding: 24px 16px;
  }
  .member-login-title--saas { font-size: 24px; }
  .member-auth-tabs { grid-template-columns: 1fr; border-radius: 14px; }
  .member-auth-tab { border-radius: 10px; }
  .login-error-toast { font-size: 16px; }
  .success-banner { font-size: 22px; padding: 12px 18px; }
  .cards { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .schedule-row { grid-template-columns: 1fr; }
  .container { margin-top: 12px; }
}

/* ===== Landing V6 Comic Split Override ===== */
main.container.landing-main {
  --comic-gutter: 8px;
  background: var(--color-navy-dark);
}

main.container.landing-main .landing-scroll {
  position: relative;
  background: var(--color-navy-dark);
}

main.container.landing-main .landing-screen {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  padding: 0;
  background: var(--color-navy-dark);
}

main.container.landing-main .landing-safe-zone,
main.container.landing-main .landing-panel-safe {
  padding: max(8vh, 32px) max(5vw, 24px);
}

main.container.landing-main .landing-panel-safe {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 3;
}

main.container.landing-main .landing-screen--hero {
  background: var(--color-paper);
}

main.container.landing-main .landing-safe-zone--hero {
  display: grid;
  align-content: end;
  justify-items: end;
  gap: 12px;
  text-align: right;
  padding-bottom: max(10vh, 56px);
}

main.container.landing-main .landing-hero-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  max-width: min(62vw, 780px);
}

main.container.landing-main .landing-hero-title {
  font-family: "Alfa Slab One", "Montserrat", sans-serif;
  font-size: clamp(48px, 6vw, 80px);
  color: var(--color-navy-dark);
  -webkit-text-stroke: clamp(2px, 0.22vw, 4px) #ffffff;
  paint-order: stroke fill;
  text-shadow: 0 3px 0 rgba(0, 51, 102, 0.2), 0 10px 24px rgba(0, 0, 0, 0.18);
  letter-spacing: 0.01em;
  white-space: normal;
}

main.container.landing-main .landing-hero-subtitle {
  display: block;
  max-width: min(42vw, 520px);
  margin: 0;
  color: var(--color-navy-dark);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 700;
}

main.container.landing-main .landing-hero-subtitle-arc {
  display: none;
}

main.container.landing-main .comic-panel {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

main.container.landing-main .comic-panel .landing-media,
main.container.landing-main .comic-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

main.container.landing-main .panel-slam {
  opacity: 0;
  transition: transform 1s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.9s ease;
}

main.container.landing-main .panel-slam--from-left {
  transform: translate(-22vw, -12vh);
}

main.container.landing-main .panel-slam--from-right {
  transform: translate(22vw, 12vh);
}

main.container.landing-main .landing-screen.is-visible .panel-slam {
  opacity: 1;
  transform: translate(0, 0);
}

/* Page 2 - diagonal split */
main.container.landing-main .landing-screen--net {
  background: linear-gradient(135deg, rgba(var(--color-accent-rgb), 0.31) 0%, rgba(var(--color-accent-rgb), 0.24) 100%);
}

main.container.landing-main .landing-screen--net::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(var(--color-accent-rgb), 0.42);
  clip-path: polygon(0 85%, 100% 55%, 100% 56.4%, 0 86.4%);
  z-index: 5;
  pointer-events: none;
}

main.container.landing-main .comic-panel--net-a {
  z-index: 6;
  clip-path: polygon(0 0, 100% 0, 100% 55%, 0 85%);
}

main.container.landing-main .comic-panel--net-a .landing-media--net {
  object-position: 54% 45%;
  mix-blend-mode: multiply;
  filter: contrast(1.06) saturate(1.08);
}

main.container.landing-main .comic-panel--net-b {
  z-index: 4;
  clip-path: polygon(0 85%, 100% 55%, 100% 100%, 0 100%);
  background: var(--color-surface-white);
}

main.container.landing-main .landing-panel-safe--net-a {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 10px;
}

main.container.landing-main .landing-net-title {
  margin: 0;
  font-family: "Alfa Slab One", "Montserrat", sans-serif;
  font-size: clamp(72px, 9.4vw, 140px);
  color: #ffffff;
  line-height: 1;
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  letter-spacing: 0.02em;
}

main.container.landing-main .landing-net-subtitle {
  margin: 0;
  color: #ffffff;
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 700;
  line-height: 1.8;
}

main.container.landing-main .landing-panel-safe--net-b {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  text-align: right;
  gap: 16px;
}

main.container.landing-main .panel-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 18px;
  border-radius: 999px;
  background: var(--color-navy-dark);
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

main.container.landing-main .panel-headline {
  margin: 0;
  color: var(--color-navy-dark);
  font-family: "Noto Sans TC", "Montserrat", sans-serif;
  font-weight: 900;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.2;
}

main.container.landing-main .landing-panel-safe--net-b .panel-headline {
  transform: skew(-5deg);
}

main.container.landing-main .panel-copy {
  margin: 0;
  color: var(--color-navy-dark);
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.9;
  max-width: 34vw;
}

main.container.landing-main .panel-cta {
  width: min(420px, 100%);
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: var(--color-accent);
  color: var(--color-navy-dark);
  font-weight: 900;
  font-size: 19px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

main.container.landing-main .landing-geo-ad-panel {
  position: absolute;
  bottom: 5vh;
  right: 5vw;
  z-index: 40;
  width: 85vw;
  max-width: 380px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.8);
  border: 4px solid var(--color-navy-dark);
  box-shadow: 8px 8px 0 var(--color-navy-dark);
  clip-path: polygon(16px 0, 100% 0, 100% 100%, 0 100%, 0 16px);
}

main.container.landing-main .landing-geo-ad-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}

main.container.landing-main .landing-geo-ad-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--color-navy-dark);
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

main.container.landing-main .landing-geo-ad-rating {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 1px;
  color: var(--color-navy-dark);
}

main.container.landing-main .landing-geo-ad-rating strong {
  font-size: 14px;
  line-height: 1.1;
}

main.container.landing-main .landing-geo-ad-stars {
  color: var(--color-warning);
  font-size: 14px;
  letter-spacing: 0.05em;
  line-height: 1;
}

main.container.landing-main .landing-geo-ad-rating small {
  font-size: 10px;
  color: rgba(var(--color-graphite-rgb), 0.78);
  line-height: 1.25;
}

main.container.landing-main .landing-geo-ad-title {
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 2px dashed #E2E8F0;
  color: var(--color-navy-dark);
  font-family: "Noto Sans TC", "Montserrat", sans-serif;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.25;
}

main.container.landing-main .landing-geo-ad-grid {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px 12px;
  align-items: start;
}

main.container.landing-main .landing-geo-ad-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-navy-dark);
  font-size: 16px;
  line-height: 1;
}

main.container.landing-main .landing-geo-ad-grid p {
  margin: 0;
  color: #334155;
  font-family: "Noto Sans TC", "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

main.container.landing-main .landing-geo-ad-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

main.container.landing-main .landing-geo-ad-btn {
  border-radius: 8px;
  border: 2px solid var(--color-navy-dark);
  font-weight: 800;
  font-size: 14px;
  padding: 12px 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  color: var(--color-navy-dark);
}

main.container.landing-main .landing-geo-ad-btn--nav {
  flex: 4;
  background: #ffffff;
}

main.container.landing-main .landing-geo-ad-btn--book {
  flex: 6;
  background: var(--color-accent);
}

@media (min-width: 981px) {
  main.container.landing-main .landing-geo-ad-title {
    font-size: 26px;
  }

  main.container.landing-main .landing-panel-safe--net-b {
    display: none;
  }

  main.container.landing-main .comic-panel--howto-b {
    background: #e7edf4;
  }

  main.container.landing-main .landing-screen--howto .comic-panel--howto-b .landing-howto-visual-image {
    object-fit: cover;
    object-position: 100% 52%;
    transform: scale(1.16);
    transform-origin: right center;
  }
}

/* Page 3 - vertical zigzag split */
main.container.landing-main .comic-panel--gear-a {
  clip-path: polygon(0 0, 35% 0, 40% 50%, 30% 100%, 0 100%);
  background: var(--color-accent);
}

main.container.landing-main .comic-panel--gear-b {
  clip-path: polygon(36% 0, 100% 0, 100% 100%, 31% 100%, 41% 50%);
  background: var(--color-paper);
}

main.container.landing-main .landing-panel-safe--gear-a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(20px, 3vh, 34px);
  max-width: 30vw;
}

main.container.landing-main .gear-slogan {
  margin: 0;
  color: var(--color-navy-dark);
  font-family: "Alfa Slab One", "Montserrat", sans-serif;
  font-size: clamp(30px, 3vw, 52px);
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

main.container.landing-main .landing-gear-parallax {
  transform: translateY(var(--gear-parallax, 0px)) scale(1.04);
  transition: transform 0.22s linear;
  object-position: 56% 52%;
}

/* Page 4 - letterbox split */
main.container.landing-main .landing-screen--paddles {
  background: var(--color-navy-dark);
}

main.container.landing-main .clash-bar {
  position: absolute;
  left: 0;
  right: 0;
  height: 15vh;
  background: var(--color-surface-white);
  z-index: 6;
}

main.container.landing-main .clash-bar--top {
  top: 0;
  border-bottom: var(--comic-gutter) solid var(--color-navy-dark);
  transform: translateY(-105%);
  transition: transform 0.9s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

main.container.landing-main .clash-bar--bottom {
  bottom: 0;
  border-top: var(--comic-gutter) solid var(--color-navy-dark);
  transform: translateY(105%);
  transition: transform 0.9s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

main.container.landing-main .landing-screen--paddles.is-visible .clash-bar--top,
main.container.landing-main .landing-screen--paddles.is-visible .clash-bar--bottom {
  transform: translateY(0);
}

main.container.landing-main .clash-center {
  position: absolute;
  left: 0;
  right: 0;
  top: 15vh;
  bottom: 15vh;
  overflow: hidden;
  z-index: 3;
}

main.container.landing-main .clash-center-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #f3cb4e 0 48%, #2b6cc8 52% 100%);
}

main.container.landing-main .clash-center .landing-media--paddles {
  object-fit: cover;
  object-position: center;
  mix-blend-mode: multiply;
  filter: contrast(1.03) saturate(1.08);
}

main.container.landing-main .landing-panel-safe--clash-center {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

main.container.landing-main .clash-title {
  margin: 0;
  color: #ffffff;
  font-family: "Alfa Slab One", "Montserrat", sans-serif;
  font-size: clamp(52px, 6vw, 80px);
  line-height: 1;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

main.container.landing-main .clash-caption {
  margin: 0;
  color: var(--color-navy-dark);
  font-family: "Alfa Slab One", "Montserrat", sans-serif;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.1;
}

main.container.landing-main .clash-caption--body {
  font-family: "Noto Sans TC", "Montserrat", sans-serif;
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 800;
  line-height: 1.8;
}

/* Page 5 - asymmetric split */
main.container.landing-main .comic-panel--howto-a {
  left: 0;
  width: 45%;
  background: #ffffff;
  border-right: var(--comic-gutter) solid var(--color-navy-dark);
}

main.container.landing-main .comic-panel--howto-b {
  left: 45%;
  width: 55%;
  background: var(--color-paper);
}

main.container.landing-main .comic-panel--howto-b .landing-howto-visual-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 76% 52%;
  display: block;
}

main.container.landing-main .landing-panel-safe--howto-a {
  display: flex;
  align-items: center;
  justify-content: center;
}

main.container.landing-main .landing-howto-card--theater {
  width: min(560px, 100%);
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  opacity: 1;
  filter: none;
  transform: none;
}

main.container.landing-main .landing-howto-card--theater h3 {
  color: var(--color-navy-dark);
  font-family: "Alfa Slab One", "Montserrat", sans-serif;
  font-size: clamp(42px, 4.2vw, 62px);
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

main.container.landing-main .landing-howto-card--theater li {
  line-height: 2.4;
  font-size: clamp(18px, 1.35vw, 24px);
  color: var(--color-navy-dark);
}


/* Page 6 - finale action board */
main.container.landing-main .landing-screen--final {
  background:
    radial-gradient(circle at 20% 18%, rgba(20, 85, 176, 0.08) 0%, transparent 48%),
    radial-gradient(circle at 82% 72%, rgba(79, 195, 247, 0.08) 0%, transparent 46%),
    #edf3fa;
}

main.container.landing-main .landing-finale-surface {
  position: absolute;
  inset: 0;
  padding: max(8vh, 32px) max(5vw, 24px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(26px, 4vh, 42px);
}

main.container.landing-main .landing-finale-slogan {
  margin: 0;
  color: var(--color-navy-dark);
  font-family: "Montserrat", "Noto Sans TC", sans-serif;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.2em;
  line-height: 1.8;
}

main.container.landing-main .landing-finale-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: clamp(16px, 2.2vw, 24px);
  align-items: stretch;
}

main.container.landing-main .landing-finale-card {
  background: #ffffff;
  border: 4px solid var(--color-navy-dark);
  border-radius: 14px;
  padding: 20px;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  text-decoration: none;
  color: var(--color-navy-dark);
  box-shadow: 8px 8px 0 var(--color-navy-dark);
  transition: transform 0.28s var(--spring-easing), border-color 0.28s var(--spring-easing), box-shadow 0.28s var(--spring-easing);
}

main.container.landing-main .landing-finale-card__icon {
  width: 54px;
  height: 54px;
  color: var(--color-navy-dark);
  display: inline-flex;
}

main.container.landing-main .landing-finale-card__icon svg {
  width: 100%;
  height: 100%;
}

main.container.landing-main .landing-finale-card h3 {
  margin: 0;
  font-size: clamp(22px, 2vw, 30px);
  font-family: "Noto Sans TC", "Montserrat", sans-serif;
  color: var(--color-navy-dark);
  letter-spacing: 0.02em;
}

main.container.landing-main .landing-finale-card p {
  margin: 0;
  color: rgba(51, 65, 85, 0.78);
  font-size: clamp(14px, 1vw, 16px);
  line-height: 2;
}

main.container.landing-main .landing-finale-card:hover {
  transform: translateY(-12px);
  border-color: var(--color-accent);
  box-shadow: 16px 16px 0 var(--color-navy-dark);
}

/* Page 6 - finale split */
main.container.landing-main .comic-panel--final-a {
  clip-path: polygon(0 0, 100% 0, 72% 100%, 0 100%);
}

main.container.landing-main .comic-panel--final-a .landing-media--final {
  object-fit: cover;
  object-position: 48% 54%;
  mix-blend-mode: multiply;
  filter: contrast(1.08) saturate(1.12);
}

main.container.landing-main .comic-panel--final-b {
  clip-path: polygon(74% 0, 100% 0, 100% 100%, 68% 100%);
  background: var(--color-surface-white);
}

main.container.landing-main .landing-panel-safe--final-b {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  text-align: right;
  gap: 18px;
}

main.container.landing-main .landing-panel-safe--final-b .panel-copy {
  max-width: 26vw;
}

main.container.landing-main .landing-comic-module {
  display: none !important;
}

@media (max-width: 980px) {
  main.container.landing-main .landing-safe-zone--hero {
    justify-items: start;
    text-align: left;
    align-content: end;
  }

  main.container.landing-main .landing-hero-title-wrap {
    align-items: flex-start;
    max-width: 80vw;
  }

  main.container.landing-main .landing-hero-subtitle {
    max-width: 78vw;
    line-height: 1.8;
    font-size: 16px;
  }

  main.container.landing-main .landing-net-title {
    font-size: clamp(54px, 11vw, 90px);
  }

  main.container.landing-main .panel-headline {
    font-size: clamp(28px, 4.8vw, 40px);
  }

  main.container.landing-main .panel-copy {
    max-width: 48vw;
  }

  main.container.landing-main .comic-panel--howto-a {
    width: 50%;
  }

  main.container.landing-main .comic-panel--howto-b {
    left: 50%;
    width: 50%;
  }

  main.container.landing-main .landing-panel-safe--final-b .panel-copy {
    max-width: 40vw;
  }
}

@media (max-width: 768px) {
  main.container.landing-main {
    height: calc(100dvh - 72px);
    scroll-snap-type: y proximity;
  }

  main.container.landing-main .landing-screen {
    height: calc(100dvh - 72px);
    min-height: calc(100dvh - 72px);
  }

  main.container.landing-main .landing-safe-zone,
  main.container.landing-main .landing-panel-safe {
    padding: max(6vh, 24px) max(5vw, 18px);
  }

  main.container.landing-main .landing-hero-title {
    font-size: clamp(34px, 10vw, 54px);
    -webkit-text-stroke: 2px #ffffff;
    text-shadow: 0 2px 0 rgba(0, 51, 102, 0.22), 0 6px 14px rgba(0, 0, 0, 0.18);
  }

  main.container.landing-main .landing-hero-subtitle {
    font-size: 14px;
    line-height: 1.8;
  }

  main.container.landing-main .comic-panel--net-a {
    clip-path: polygon(0 0, 100% 0, 100% 62%, 0 88%);
  }

  main.container.landing-main .landing-screen--net::after {
    clip-path: polygon(0 88%, 100% 62%, 100% 63.6%, 0 89.6%);
  }

  main.container.landing-main .comic-panel--net-b {
    clip-path: polygon(0 88%, 100% 62%, 100% 100%, 0 100%);
  }

  main.container.landing-main .landing-net-title {
    font-size: clamp(42px, 13vw, 66px);
  }

  main.container.landing-main .landing-net-subtitle {
    display: none;
  }

  main.container.landing-main .landing-panel-safe--net-b {
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    gap: 10px;
  }

  main.container.landing-main .landing-panel-safe--net-b .panel-headline {
    transform: none;
  }

  main.container.landing-main .landing-geo-ad-panel {
    right: 4vw;
    bottom: 4.5vh;
    width: 85vw;
    max-width: 360px;
    padding: 16px;
  }

  main.container.landing-main .landing-geo-ad-panel__header {
    gap: 6px;
  }

  main.container.landing-main .landing-geo-ad-badge {
    font-size: 11px;
    padding: 4px 8px;
  }

  main.container.landing-main .landing-geo-ad-title {
    font-size: 22px;
    margin-bottom: 10px;
    padding-bottom: 10px;
  }

  main.container.landing-main .landing-geo-ad-grid p {
    font-size: 12px;
    line-height: 1.45;
  }

  main.container.landing-main .landing-geo-ad-actions {
    gap: 8px;
    margin-top: 12px;
  }

  main.container.landing-main .landing-geo-ad-btn {
    font-size: 13px;
    padding: 10px 0;
  }

  main.container.landing-main .panel-copy,
  main.container.landing-main .landing-panel-safe--final-b .panel-copy {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.8;
  }

  main.container.landing-main .panel-cta {
    width: 100%;
    font-size: 15px;
    min-height: 48px;
  }

  main.container.landing-main .comic-panel--gear-a {
    clip-path: polygon(0 0, 55% 0, 64% 48%, 52% 100%, 0 100%);
  }

  main.container.landing-main .comic-panel--gear-b {
    clip-path: polygon(56% 0, 100% 0, 100% 100%, 51% 100%, 65% 48%);
  }

  main.container.landing-main .landing-panel-safe--gear-a {
    max-width: 52vw;
    gap: 14px;
  }

  main.container.landing-main .gear-slogan {
    font-size: clamp(20px, 5.6vw, 30px);
  }

  main.container.landing-main .clash-bar {
    height: 17vh;
  }

  main.container.landing-main .clash-center {
    top: 17vh;
    bottom: 17vh;
  }

  main.container.landing-main .clash-title {
    font-size: clamp(34px, 10vw, 54px);
  }

  main.container.landing-main .clash-caption {
    font-size: clamp(22px, 6vw, 30px);
  }

  main.container.landing-main .clash-caption--body {
    font-size: 14px;
    line-height: 1.8;
  }

  main.container.landing-main .comic-panel--howto-a {
    width: 52%;
    left: 0;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    border-right: var(--comic-gutter) solid var(--color-navy-dark);
    border-bottom: none;
  }

  main.container.landing-main .comic-panel--howto-b {
    width: 48%;
    left: 52%;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }

  main.container.landing-main .comic-panel--howto-b .landing-howto-visual-image {
    object-position: 86% 52%;
  }

  main.container.landing-main .landing-panel-safe--howto-a {
    align-items: flex-start;
    justify-content: flex-start;
  }

  main.container.landing-main .landing-howto-card--theater h3 {
    font-size: clamp(28px, 8.6vw, 38px);
    margin-bottom: 8px;
  }

  main.container.landing-main .landing-howto-card--theater li {
    font-size: 14px;
    line-height: 1.75;
    padding-left: 18px;
  }


  main.container.landing-main .landing-screen--final {
    height: auto;
    min-height: calc(100dvh - 72px + 160px);
    overflow: visible;
  }

  main.container.landing-main .landing-finale-surface {
    position: relative;
    inset: auto;
    min-height: calc(100dvh - 72px + 160px);
    justify-content: flex-start;
    padding-top: max(8vh, 34px);
    padding-bottom: calc(max(22vh, 180px) + env(safe-area-inset-bottom));
    gap: 14px;
  }

  main.container.landing-main .landing-finale-slogan {
    font-size: 15px;
    letter-spacing: 0.08em;
    line-height: 1.8;
  }

  main.container.landing-main .landing-finale-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    overflow: visible;
    padding-bottom: 0;
    scroll-snap-type: none;
  }

  main.container.landing-main .landing-finale-card {
    width: 100%;
    min-height: 120px;
    aspect-ratio: auto;
    justify-content: center;
    gap: 6px;
  }

  main.container.landing-main .landing-finale-card h3 {
    font-size: 20px;
  }

  main.container.landing-main .landing-finale-card p {
    font-size: 13px;
    line-height: 1.8;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  main.container.landing-main .comic-panel--final-a {
    clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
  }

  main.container.landing-main .comic-panel--final-b {
    clip-path: polygon(84% 0, 100% 0, 100% 100%, 72% 100%);
  }

  main.container.landing-main .landing-panel-safe--final-b {
    justify-content: flex-end;
    align-items: flex-start;
    text-align: left;
  }
}

/* booking info enhancements */
.booking-pricing-panel {
  border: 1px solid rgba(0, 51, 102, 0.2);
  background: linear-gradient(180deg, rgba(232, 242, 255, 0.55), rgba(255, 255, 255, 0.95));
}

.booking-pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 10px;
}

.booking-pricing-card {
  border: 1px solid rgba(0, 51, 102, 0.18);
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
}

.booking-pricing-card--peak {
  box-shadow: inset 0 0 0 1px rgba(255, 170, 0, 0.22);
}

.booking-pricing-card--offpeak {
  box-shadow: inset 0 0 0 1px rgba(0, 102, 204, 0.18);
}

.booking-pricing-title {
  font-weight: 800;
  color: var(--color-navy-dark);
}

.booking-pricing-price {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 900;
  color: #003366;
}

.booking-rule-list {
  margin-top: 10px;
  display: grid;
  gap: 6px;
  color: var(--color-text-main);
}

.booking-courts-cards {
  margin-top: 8px;
}

.booking-court-card {
  border: 1px solid rgba(0, 51, 102, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(247, 251, 255, 0.9));
}

.booking-court-kicker {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #003366;
  background: rgba(232, 242, 255, 0.9);
  border: 1px solid rgba(0, 51, 102, 0.14);
  margin-bottom: 8px;
}

.booking-court-actions {
  display: grid;
  gap: 8px;
}

.booking-court-actions form {
  margin: 0;
}

.booking-agree-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.booking-agree-inline__check {
  width: 18px;
  height: 18px;
  accent-color: #0057b8;
  flex: 0 0 auto;
}

.booking-agree-inline__text {
  font-size: 14px;
  color: #1e2f45;
}

.booking-policy-trigger {
  padding: 3px 10px;
  font-size: 12px;
  line-height: 1.2;
}

.court-info-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(8, 23, 46, 0.55);
  z-index: 1800;
}

.court-info-modal.active {
  display: flex;
}

.court-info-modal-card {
  width: min(760px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  border: 2px solid #003366;
  box-shadow: 0 16px 50px rgba(2, 22, 52, 0.28);
  padding: 16px;
}

.court-info-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.court-info-content {
  display: grid;
  gap: 10px;
}

.court-info-block {
  border: 1px solid rgba(0, 51, 102, 0.15);
  background: rgba(247, 251, 255, 0.75);
  border-radius: 10px;
  padding: 10px 12px;
}

.court-info-block ul {
  margin: 6px 0 0 1.2rem;
}

.court-info-title {
  font-weight: 800;
  margin-bottom: 4px;
  color: #003366;
}

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

.wysiwyg-wrap {
  border: 1px solid #DCE0EA;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.wysiwyg-toolbar {
  display: flex;
  gap: 6px;
  padding: 8px;
  border-bottom: 1px solid #EEF1F7;
  background: #F8FAFD;
}

.notice-editor {
  min-height: 120px;
  padding: 10px 12px;
  outline: none;
  line-height: 1.65;
  color: #1F2937;
}

.notice-editor:empty:before {
  content: attr(data-placeholder);
  color: #9AA3B2;
}


/* Admin module unified visual spec */
.admin-spec {
  --admin-primary: #1f6feb;
  --admin-primary-dark: #1758bb;
  --admin-border: #d0d7e2;
  --admin-soft: #eef4ff;
  --admin-text: #0f172a;
  --admin-muted: #5b6474;
  display: grid;
  gap: 14px;
  color: var(--admin-text);
}

.admin-spec .admin-title {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 800;
  color: #06306a;
}

.admin-spec h3 {
  margin: 0 0 10px;
  font-size: 21px;
  color: #0c3f85;
}

.admin-spec h4 {
  margin: 12px 0 8px;
  font-size: 17px;
  color: #184a8b;
}

.admin-spec .admin-muted,
.admin-spec .meta,
.admin-spec .muted {
  color: var(--admin-muted);
  font-size: 14px;
  line-height: 1.5;
}

.admin-spec .admin-link-row {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-spec .admin-panel,
.admin-spec .panel {
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.admin-spec .admin-cards,
.admin-spec .cards {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-spec .admin-card,
.admin-spec .card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  border: 1px solid #E2E8F0;
  padding: 24px;
}

.admin-spec .admin-muted,
.admin-spec .muted {
  color: #64748B;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.admin-spec .admin-kpi,
.admin-spec .kpi {
  color: #0F172A;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

.admin-spec .admin-grid-3,
.admin-spec .row,
.admin-spec .grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-spec label {
  display: block;
  margin-top: 8px;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 700;
  color: #0f3263;
}

.admin-spec input,
.admin-spec select,
.admin-spec textarea {
  width: 100%;
  box-sizing: border-box;
  height: 40px;
  border: 1px solid var(--color-border, #E2E8F0);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 14px;
  background-color: #FFFFFF;
  color: #152238;
}

.admin-spec textarea {
  min-height: 96px;
  height: auto;
}

.admin-spec input:focus,
.admin-spec select:focus,
.admin-spec textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.admin-spec .admin-btn,
.admin-spec .btn,
.admin-spec button {
  border: 0;
  border-radius: 10px;
  background: var(--admin-primary);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 9px 14px;
  cursor: pointer;
  transition: background .15s ease, transform .05s ease;
}

.admin-spec .admin-btn:hover,
.admin-spec .btn:hover,
.admin-spec button:hover {
  background: var(--admin-primary-dark);
}

.admin-spec .admin-btn:active,
.admin-spec .btn:active,
.admin-spec button:active {
  transform: translateY(1px);
}

.admin-spec .admin-btn[disabled],
.admin-spec .btn[disabled],
.admin-spec button[disabled] {
  opacity: .58;
  cursor: not-allowed;
}

.admin-spec .waitlist-col-actions {
  min-width: 360px;
  width: 360px;
}

.admin-spec .waitlist-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.admin-spec .waitlist-action-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.admin-spec .waitlist-btn {
  height: 34px;
  min-width: 92px;
  padding: 0 14px;
  font-size: 13px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .2px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-spec .waitlist-btn-primary {
  background: #1f6feb;
  color: #FFFFFF;
}

.admin-spec .waitlist-btn-primary:hover {
  background: #1758bb;
}

.admin-spec .waitlist-btn-secondary {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
}

.admin-spec .waitlist-btn-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.admin-spec .waitlist-btn-danger {
  background: #fff1f2;
  border: 1px solid #fda4af;
  color: #be123c;
}

.admin-spec .waitlist-btn-danger:hover {
  background: #ffe4e6;
  border-color: #fb7185;
}

.admin-spec .waitlist-pay-select {
  width: auto;
  min-width: 96px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
}

.admin-spec .admin-table,
.admin-spec table {
  width: 100%;
  table-layout: auto;
  border-collapse: collapse;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.admin-spec .admin-table thead,
.admin-spec table thead {
  background: var(--admin-soft);
}

.admin-spec .admin-table th,
.admin-spec .admin-table td,
.admin-spec table th,
.admin-spec table td {
  border-bottom: 1px solid #e2e8f0;
  padding: 10px;
  text-align: left;
  font-size: 14px;
}

.admin-spec .admin-table tbody tr:nth-child(2n),
.admin-spec table tbody tr:nth-child(2n) {
  background: #fbfdff;
}

.admin-spec .bar {
  height: 10px;
  border-radius: 999px;
  background: #dae8ff;
}

.admin-spec .bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #2f7cff;
}

.admin-spec .toast-wrap {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: grid;
  gap: 8px;
}

.admin-spec .toast {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #E2E8F0;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  color: #1E293B;
  font-size: 14px;
  font-weight: 500;
  transform: translateY(-20px);
  opacity: 0;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-spec .toast::before {
  content: '';
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 2px solid #10B981;
  border-radius: 999px;
  box-sizing: border-box;
}

.admin-spec .toast.success::after {
  content: '';
  position: relative;
  width: 8px;
  height: 4px;
  margin-left: -20px;
  border-left: 2px solid #10B981;
  border-bottom: 2px solid #10B981;
  transform: rotate(-45deg) translateY(-1px);
}

.admin-spec .toast.success,
.admin-spec .toast.error {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .admin-spec .admin-cards,
  .admin-spec .cards,
  .admin-spec .admin-grid-3,
  .admin-spec .row,
  .admin-spec .grid {
    grid-template-columns: 1fr;
  }

  .admin-spec .admin-title {
    font-size: 24px;
  }
}


/* Admin refinement: toolbar, buttons, wider date picker */
.admin-spec .admin-filter-form {
  display: grid;
  grid-template-columns: minmax(340px, 1.6fr) minmax(260px, 1.1fr) auto;
  gap: 12px;
  align-items: end;
}

.admin-spec .admin-filter-form > div {
  min-width: 0;
}

.admin-spec .admin-filter-form .date-picker .calendar-panel {
  width: max(380px, min(760px, 92vw));
}

.admin-spec .admin-action-row {
  margin: 8px 0 12px;
}

.admin-spec .admin-btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid #7eaef8;
  background: #eef5ff;
  color: #0d3f85;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  padding: 9px 12px;
  text-decoration: none;
}

.admin-spec .admin-btn-link:hover {
  background: #dbeafe;
  border-color: #4f8ef5;
}

@media (max-width: 980px) {
  .admin-spec .admin-filter-form {
    grid-template-columns: 1fr;
  }

  .admin-spec .admin-filter-form .date-picker .calendar-panel {
    width: min(100%, 640px);
  }
}

/* integrations template preset controls */
.admin-spec .tpl-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.admin-spec .tpl-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-spec .tpl-menu-btn {
  min-width: 106px;
  padding: 6px 10px;
}

.admin-spec .tpl-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.admin-spec .tpl-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.admin-spec .tpl-toggle-track {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #CBD5E1;
  position: relative;
  transition: background-color .2s ease;
}

.admin-spec .tpl-toggle-thumb {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  position: absolute;
  top: 2px;
  left: 2px;
  transform: translateX(0);
  transition: transform .2s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
}

.admin-spec .tpl-toggle input:checked + .tpl-toggle-track {
  background: var(--color-primary);
}

.admin-spec .tpl-toggle input:checked + .tpl-toggle-track .tpl-toggle-thumb {
  transform: translateX(20px);
}

.admin-spec .tpl-toggle-state {
  font-weight: 600;
  color: #334155;
}

.admin-spec .tpl-quick-jump {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0 14px;
}

.admin-spec .tpl-quick-jump-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-spec .tpl-quick-jump-row--channel {
  gap: 14px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 2px;
}

.admin-spec .tpl-jump-btn {
  min-width: 96px;
}

.admin-spec .tpl-jump-btn--channel {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #475569;
  font-weight: 600;
  padding: 6px 2px 8px;
  border-bottom: 2px solid transparent;
}

.admin-spec .tpl-jump-btn--channel:hover {
  background: transparent;
  color: #1e3a8a;
}

.admin-spec .tpl-jump-btn--channel.is-active {
  background: transparent;
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  font-weight: 600;
}

.admin-spec .tpl-jump-btn--event {
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #F1F5F9;
  color: #334155;
  font-weight: 600;
  padding: 6px 12px;
}

.admin-spec .tpl-jump-btn--event:hover {
  border-color: #cbd5e1;
  background: #e2e8f0;
}

.admin-spec .tpl-jump-btn--event.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.admin-spec .tpl-menu {
  margin-top: 8px;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px dashed #c6d8ee;
  border-radius: 8px;
  background: #f8fbff;
}

.admin-spec .tpl-preset-manager {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-spec .tpl-preset-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.admin-spec .tpl-preset-inline-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-spec .tpl-preset-inline-actions select {
  min-width: 240px;
}

.admin-spec .tpl-preset-edit-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.admin-spec .tpl-preset-body-input {
  min-height: 88px;
}

.admin-spec .tpl-preset-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-spec .sms-char-counter {
  font-size: 12px;
  color: var(--color-text-secondary, #64748b);
  margin-top: 4px;
  margin-bottom: 8px;
}

.admin-spec .sms-char-counter.warning {
  color: var(--color-warning);
  font-weight: 600;
}

/* integrations: live preview */
.admin-integrations-spec {
  padding-bottom: 20px;
}

.admin-spec .tpl-editor-grid {
  display: grid;
  grid-template-columns: 6fr 4fr;
  gap: 32px;
  align-items: start;
}

.admin-spec .tpl-editor-col {
  min-width: 0;
}

.admin-spec .tpl-preview-col {
  position: sticky;
  top: 96px;
  align-self: start;
}

.admin-spec .tpl-global-vars,
.admin-spec .tpl-var-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.admin-spec .tpl-var-badge {
  display: inline-block;
  padding: 4px 10px;
  background-color: #E2E8F0;
  border: 0;
  border-radius: 6px;
  font-family: monospace;
  font-size: 12px;
  color: #1E293B;
  cursor: pointer;
  user-select: none;
  line-height: 1.3;
}

.admin-spec .tpl-var-badge:hover {
  background-color: #cbd5e1;
}

.admin-spec .tpl-preview-wrap {
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.admin-spec .tpl-preview-phone {
  border: 8px solid #334155;
  border-radius: 32px;
  background: linear-gradient(180deg, #e2e8f0 0%, #cbd5e1 100%);
  padding: 16px 12px 18px;
  min-height: 260px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.admin-spec .tpl-preview-bubble {
  background-color: #FFFFFF;
  border-radius: 18px;
  padding: 12px 16px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
  font-size: 14px;
  line-height: 1.55;
  color: #0f172a;
  white-space: normal;
  word-break: break-word;
}

.admin-spec .tpl-inline-save-row {
  margin-top: 6px;
}

.admin-spec .tpl-inline-save-btn {
  padding: 6px 10px;
  min-height: 30px;
  font-size: 12px;
  border-radius: 8px;
}

.global-back-to-top {
  position: fixed;
  right: 14px;
  bottom: 14px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #1d4ed8;
  background: #2563eb;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 220;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.global-back-to-top:hover {
  background: #1d4ed8;
}

@media (max-width: 980px) {
  .admin-spec .tpl-editor-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .admin-spec .tpl-preview-col {
    position: static;
  }

  .admin-spec .tpl-preset-row {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-spec .tpl-preset-edit-grid {
    grid-template-columns: 1fr;
  }

  .admin-spec .tpl-quick-jump-row--event .tpl-jump-btn {
    flex: 1 1 calc(50% - 8px);
    min-width: 120px;
  }

  .admin-spec .tpl-quick-jump-row--channel {
    gap: 10px;
  }

}


/* finance + dashboard report visual */
.finance-page .finance-kpi-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-spec .admin-range-panel {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
}

.admin-spec .admin-range-title {
  color: #0f3b83;
  font-size: 14px;
  font-weight: 800;
}

.admin-spec .admin-range-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-spec .admin-range-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #9EC0EB;
  background: #EAF3FF;
  color: #0E3778;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.admin-spec .admin-range-btn:hover {
  background: #DCEBFF;
}

.admin-spec .admin-range-btn.is-active {
  background: #0E5DC2;
  border-color: #0E5DC2;
  color: #FFFFFF;
}

.finance-page .admin-panel,
.dashboard-page .admin-panel {
  padding: 22px 20px;
}

.finance-page .admin-filter-form,
.dashboard-page .admin-filter-form {
  gap: 16px;
}

.finance-page .finance-range-form {
  display: grid;
  gap: 12px;
}

.finance-page .finance-picker-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 14px;
}

.finance-page .finance-picker-card {
  border: 1px solid #B7D0F1;
  border-radius: 14px;
  background: #F7FBFF;
  padding: 12px;
}

.finance-page .finance-picker-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  color: #0E3778;
}

.finance-page .finance-picker-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}

.finance-page .finance-nav-link {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid #9EC0EB;
  background: #EAF3FF;
  color: #0E3778;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.finance-page .finance-week-head,
.finance-page .finance-day-grid,
.finance-page .finance-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.finance-page .finance-week-head span {
  text-align: center;
  color: #0E3778;
  font-size: 12px;
  font-weight: 700;
}

.finance-page .finance-day-cell,
.finance-page .finance-month-cell {
  min-height: 34px;
  border: 1px solid #B7D0F1;
  border-radius: 10px;
  background: #EAF3FF;
  color: #0E3778;
  font-weight: 700;
  cursor: pointer;
}

.finance-page .finance-day-cell.is-outside {
  opacity: 0.48;
}

.finance-page .finance-day-cell.is-range,
.finance-page .finance-month-cell.is-range,
.finance-page .finance-day-cell.is-hover-range,
.finance-page .finance-month-cell.is-hover-range {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.35);
}

.finance-page .finance-day-cell.is-range-start,
.finance-page .finance-day-cell.is-range-end,
.finance-page .finance-month-cell.is-range-start,
.finance-page .finance-month-cell.is-range-end,
.finance-page .finance-day-cell.is-pending,
.finance-page .finance-month-cell.is-pending {
  background: #1D4ED8;
  border-color: #1D4ED8;
  color: #fff;
}

.finance-page .finance-month-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.finance-page .finance-picker-actions {
  display: flex;
  justify-content: flex-end;
}

.finance-page .admin-filter-form label,
.dashboard-page .admin-filter-form label {
  margin-bottom: 8px;
  color: #0f3b83;
  font-weight: 800;
}

.finance-page .date-display,
.dashboard-page .date-display {
  background: #EAF3FF;
  border-color: #9EC0EB;
  color: #0B3F8A;
  box-shadow: 0 2px 8px rgba(15, 58, 131, 0.1);
  padding: 12px 14px;
}

.finance-page .date-picker.open .date-display,
.finance-page .date-display:focus-visible,
.dashboard-page .date-picker.open .date-display,
.dashboard-page .date-display:focus-visible {
  border-color: #5B9AE8;
  box-shadow: 0 0 0 3px rgba(91, 154, 232, 0.28);
}

.finance-page .calendar-panel,
.dashboard-page .calendar-panel {
  background: #F3F8FF;
  border: 1px solid #B7D0F1;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(15, 58, 131, 0.14);
  padding: 16px;
  margin-top: 12px;
}

.finance-page .calendar-header,
.dashboard-page .calendar-header {
  gap: 12px;
  margin-bottom: 12px;
}

.finance-page .calendar-title,
.dashboard-page .calendar-title {
  color: #0E3778;
}

.finance-page .calendar-nav-btn,
.dashboard-page .calendar-nav-btn {
  background: #E5F0FF;
  color: #0E3778;
  border-color: #9EC0EB;
  box-shadow: 0 2px 6px rgba(15, 58, 131, 0.12);
}

.finance-page .calendar-nav-btn:hover,
.dashboard-page .calendar-nav-btn:hover {
  background: #D6E8FF;
}

.finance-page .calendar-week,
.finance-page .calendar-grid,
.dashboard-page .calendar-week,
.dashboard-page .calendar-grid {
  gap: 10px;
}

.finance-page .calendar-week span,
.dashboard-page .calendar-week span {
  color: #0E3778;
}

.finance-page .calendar-day,
.dashboard-page .calendar-day {
  min-height: 42px;
  border: 1px solid #B7D0F1;
  background: #E6F1FF;
  color: #0E3778;
  font-weight: 800;
}

.finance-page .calendar-day:hover:not(.is-disabled):not(.is-selected),
.dashboard-page .calendar-day:hover:not(.is-disabled):not(.is-selected) {
  background: #D4E7FF;
  border-color: #8BB3E8;
}

.finance-page .calendar-day.is-today,
.dashboard-page .calendar-day.is-today {
  background: #D1E5FF;
  border-color: #7FADE8;
}

.finance-page .calendar-day.is-selected,
.dashboard-page .calendar-day.is-selected {
  background: #9CC5F7;
  color: #0A2F66;
  border-color: #5D90D8;
  box-shadow: 0 3px 8px rgba(93, 144, 216, 0.35);
}

.finance-page .finance-sync-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.finance-page .finance-revenue-card {
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
}

.finance-page .finance-revenue-bar {
  width: 100%;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: #e2e8f0;
  display: flex;
}

.finance-page .finance-revenue-bar .bar-court {
  background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 100%);
  min-width: 0;
}

.finance-page .finance-revenue-bar .bar-coach {
  background: linear-gradient(90deg, #10b981 0%, #14b8a6 100%);
  min-width: 0;
}

.finance-page .finance-revenue-legend {
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: #475569;
}

.finance-page .finance-revenue-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.finance-page .finance-revenue-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.finance-page .finance-revenue-legend .dot-court {
  background: #2563eb;
}

.finance-page .finance-revenue-legend .dot-coach {
  background: #14b8a6;
}

.finance-page .finance-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.finance-page .finance-overview-item {
  border: 1px solid #dbe7fb;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
}

.finance-page .finance-overview-label {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 4px;
}

.finance-page .finance-overview-value {
  font-size: 15px;
  font-weight: 700;
  color: #0f3e86;
}

.finance-page .finance-trend-chart {
  display: grid;
  gap: 8px;
  max-height: 460px;
  overflow: auto;
  padding-right: 4px;
}

.finance-page .finance-trend-row {
  display: grid;
  grid-template-columns: 68px minmax(120px, 1fr) 132px 170px;
  align-items: center;
  gap: 10px;
}

.finance-page .finance-trend-day {
  font-weight: 700;
  color: #0f3e86;
}

.finance-page .finance-trend-bar-wrap {
  height: 12px;
  border-radius: 999px;
  background: #e8f0ff;
  overflow: hidden;
}

.finance-page .finance-trend-bar {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.finance-page .finance-trend-bar.is-positive {
  background: linear-gradient(90deg, #38bdf8 0%, #2563eb 100%);
}

.finance-page .finance-trend-bar.is-negative {
  background: linear-gradient(90deg, #fb7185 0%, #ef4444 100%);
}

.finance-page .finance-trend-net {
  font-weight: 700;
  color: #0f172a;
}

.finance-page .finance-trend-detail {
  color: #64748b;
  font-size: 12px;
}

.finance-page .finance-chart-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 14px;
}

.finance-page .finance-donut-wrap {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.finance-page .finance-donut {
  width: 210px;
  height: 210px;
  border-radius: 999px;
  background: conic-gradient(var(--finance-donut-bg));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(15, 62, 134, 0.08);
}

.finance-page .finance-donut-center {
  width: 122px;
  height: 122px;
  border-radius: 999px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(15, 62, 134, 0.08);
}

.finance-page .finance-donut-center span {
  color: #64748b;
  font-size: 12px;
}

.finance-page .finance-donut-center strong {
  color: #0f3e86;
  font-size: 18px;
  margin-top: 4px;
}

.finance-page .finance-donut-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.finance-page .finance-donut-legend li {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) 56px auto;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.finance-page .finance-donut-legend .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.finance-page .finance-donut-legend .name {
  color: #0f172a;
}

.finance-page .finance-donut-legend .pct {
  color: #475569;
  text-align: right;
}

.finance-page .finance-donut-legend .amt {
  color: #0f3e86;
  font-weight: 700;
}

@media (max-width: 980px) {
  .finance-page .finance-kpi-grid,
  .finance-page .finance-overview-grid,
  .finance-page .finance-chart-grid,
  .finance-page .finance-donut-wrap,
  .finance-page .finance-picker-grid {
    grid-template-columns: 1fr;
  }

  .finance-page .finance-trend-row {
    grid-template-columns: 28px minmax(90px, 1fr) 1fr;
    grid-template-areas:
      'day bar net'
      '. detail detail';
    gap: 6px;
  }

  .finance-page .finance-trend-day { grid-area: day; }
  .finance-page .finance-trend-bar-wrap { grid-area: bar; }
  .finance-page .finance-trend-net { grid-area: net; }
  .finance-page .finance-trend-detail { grid-area: detail; }

  .finance-page .finance-donut {
    width: 184px;
    height: 184px;
    margin: 0 auto;
  }

  .global-back-to-top {
    right: 10px;
    bottom: 10px;
  }
}

.counter-care-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 14px;
}

.counter-care-col {
  min-width: 0;
}

.counter-care-col h4 {
  margin: 0 0 10px;
  color: var(--color-navy-dark);
}

.counter-care-fold {
  border: 1px solid rgba(var(--color-navy-dark-rgb), 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
}

.counter-care-fold > summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 12px;
  font-weight: 800;
  color: var(--color-navy-dark);
}

.counter-care-fold > summary::-webkit-details-marker {
  display: none;
}

.counter-care-fold > summary::after {
  content: '▾';
  float: right;
  color: rgba(var(--color-navy-dark-rgb), 0.68);
}

.counter-care-fold[open] > summary::after {
  content: '▴';
}

.counter-care-fold-body {
  border-top: 1px dashed rgba(var(--color-navy-dark-rgb), 0.16);
  padding: 10px 12px 12px;
}

.counter-mini-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.counter-complaint-target-chips {
  margin-bottom: 4px;
}

.counter-member-note-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.counter-member-note-chips .chip.active,
.counter-complaint-target-chips .chip.active {
  background: #E7F0FF;
  border-color: #2563eb;
  color: #1d4ed8;
}

.counter-sticky-note-card {
  background: linear-gradient(180deg, #EFF6FF 0%, #ECFDF5 100%);
  border: 1px solid #99D6C2;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.counter-sticky-note-title {
  font-size: 14px;
  font-weight: 800;
  color: #1E3A8A;
  margin-bottom: 8px;
}

.counter-sticky-note-card textarea {
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(30, 58, 138, 0.24);
  min-height: 140px;
}

.counter-note-reminder-list {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.counter-note-reminder-item {
  border: 1px solid rgba(var(--color-navy-dark-rgb), 0.15);
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
}

.counter-complaint-table {
  width: 100%;
}

.counter-complaint-table td:nth-child(4) {
  max-width: 260px;
}

.counter-note-modal .counter-wallet-modal__panel {
  max-width: 560px;
}

.member-detail-top-grid {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 460px);
  gap: 14px;
  align-items: start;
}

.member-name-note-trigger {
  border: 0;
  background: transparent;
  color: #1d4ed8;
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.member-detail-note-box {
  border: 1px solid rgba(var(--color-navy-dark-rgb), 0.16);
  border-radius: 12px;
  background: #fff;
}

.member-detail-note-box > summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 12px;
  font-weight: 800;
  color: var(--color-navy-dark);
}

.member-detail-note-box > summary::-webkit-details-marker {
  display: none;
}

.member-detail-note-box > summary::after {
  content: '▾';
  float: right;
  color: rgba(var(--color-navy-dark-rgb), 0.68);
}

.member-detail-note-box[open] > summary::after {
  content: '▴';
}

.member-detail-note-form {
  border-top: 1px dashed rgba(var(--color-navy-dark-rgb), 0.16);
  padding: 10px 12px 12px;
}

.member-detail-note-form textarea {
  min-height: 140px;
}

@media (max-width: 980px) {
  .counter-care-grid {
    grid-template-columns: 1fr;
  }

  .member-detail-top-grid {
    grid-template-columns: 1fr;
  }

  .counter-mini-actions .btn {
    width: 100%;
  }
}


.staff-permission-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px;
  background: #f8fafc;
}

.staff-permission-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid #dbe4f0;
  border-radius: 999px;
  background: #fff;
  color: #1f2937;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.staff-permission-chip input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #2563eb;
}


.staffs-table-wrap {
  overflow-x: hidden;
}

.staffs-table {
  width: 100%;
  table-layout: fixed;
}

.staffs-table td,
.staffs-table th {
  white-space: normal;
  word-break: break-word;
  vertical-align: top;
}

.staffs-table th:nth-child(1),
.staffs-table td:nth-child(1) {
  width: 56px;
  text-align: center;
  white-space: nowrap;
}

.staffs-table th:nth-child(2),
.staffs-table td:nth-child(2) {
  width: 116px;
}

.staffs-table th:nth-child(3),
.staffs-table td:nth-child(3) {
  width: 134px;
}

.staffs-table th:nth-child(4),
.staffs-table td:nth-child(4) {
  width: 76px;
  white-space: nowrap;
}

.staffs-table th:nth-child(5),
.staffs-table td:nth-child(5) {
  width: 118px;
}

.staffs-table th:nth-child(6),
.staffs-table td:nth-child(6) {
  width: 148px;
  white-space: nowrap;
}

.staff-perm-cell {
  padding-right: 6px;
}

.staff-perm-lines {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.staff-perm-line {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #eff6ff;
  color: #1d4ed8;
  white-space: nowrap;
}

.staff-action-cell {
  min-width: 0;
  white-space: normal;
}

.staff-edit-details {
  width: 100%;
}

.staff-edit-summary {
  cursor: pointer;
  color: #1d4ed8;
}

.staff-edit-form {
  width: 100%;
  max-width: 100%;
  margin-top: 8px;
}

.staff-active-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  white-space: nowrap;
  font-weight: 700;
}

.staff-active-toggle input[type="checkbox"] {
  margin: 0;
}

.staff-edit-form .staff-permission-group--compact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 8px;
  max-width: 100%;
  padding: 8px;
}

.staff-edit-form .staff-permission-group--compact .staff-permission-chip {
  width: 100%;
  justify-content: flex-start;
  padding: 4px 8px;
}

@media (max-width: 920px) {
  .staff-edit-form .staff-permission-group--compact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1280px) {
  .staffs-table th:nth-child(5),
  .staffs-table td:nth-child(5) {
    width: 102px;
  }

  .staffs-table th:nth-child(6),
  .staffs-table td:nth-child(6) {
    width: 136px;
  }
}
