:root {
  --bg: #f6f4ef;
  --bg-2: #ffffff;
  --glass: rgba(255, 255, 255, 0.82);
  --line: #e7e1d6;
  --text: #16181d;
  --muted: #66707c;
  --accent: #ff4d1c;
  --accent-2: #0f9f6e;
  --navy: #16181d;
  --shadow: 0 16px 40px rgba(22, 24, 29, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; }

body.app-body {
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(255, 77, 28, 0.16), transparent 55%),
    radial-gradient(700px 380px at 100% 8%, rgba(15, 159, 110, 0.1), transparent 50%),
    var(--bg);
  font-family: Inter, system-ui, sans-serif;
  overflow-x: hidden;
}

body.app-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  opacity: 0.035;
  z-index: 0;
}

h1, h2, h3, .display, .section-header {
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--navy);
}

.app-main { position: relative; z-index: 1; }

.icon {
  width: 1.1em;
  height: 1.1em;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(246, 244, 239, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  color: var(--navy);
}
.app-header__inner,
.app-footer__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0.85rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.app-brand { display: flex; align-items: center; gap: 0.8rem; }
.app-brand img {
  height: 42px;
  width: auto;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 3px 5px;
  border: 1px solid var(--line);
}
.app-brand__title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.app-brand__sub {
  margin: 0.1rem 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}
.app-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #ff7a3c);
  box-shadow: 0 8px 20px rgba(255, 77, 28, 0.22);
}
.app-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  color: var(--muted);
  margin-top: auto;
}
.app-footer p { margin: 0; font-size: 0.8rem; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 0;
  margin: 0;
}
.hero__orb {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.28;
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
}
.hero__orb--a { background: #ff4d1c; top: -80px; left: -60px; }
.hero__orb--b { background: #00e8a2; right: -80px; top: 40px; animation-delay: -3s; opacity: 0.18; }
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(18px) scale(1.08); }
}
.hero__inner {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  padding: 2.4rem 1.2rem 1.4rem;
}
.hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 77, 28, 0.28);
  background: rgba(255, 77, 28, 0.08);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: rise 0.6s ease both;
}
.hero__chip .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 77, 28, 0.7);
  animation: ping 1.6s infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(255, 77, 28, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(255, 77, 28, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 77, 28, 0); }
}
.hero h1 {
  margin: 0.85rem 0 0;
  font-size: clamp(2.8rem, 8vw, 6rem);
  line-height: 0.88;
  animation: rise 0.7s 0.05s ease both;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #ff4d1c, #ff8a4c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  max-width: 34rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
  animation: rise 0.7s 0.12s ease both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1.4rem;
  max-width: 540px;
}
.hero__stat {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 0.9rem;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  animation: rise 0.6s ease both;
}
.hero__stat:nth-child(1) { animation-delay: 0.15s; }
.hero__stat:nth-child(2) { animation-delay: 0.22s; }
.hero__stat:nth-child(3) { animation-delay: 0.29s; }
.hero__stat b {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--navy);
}
.hero__stat span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.process-stepper {
  display: flex;
  align-items: flex-start;
  width: 100%;
  max-width: 720px;
  margin-top: 1.6rem;
  animation: rise 0.7s 0.2s ease both;
}
.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  min-width: 4.4rem;
  position: relative;
  z-index: 1;
}
.process-step__node {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  background: #fff;
  color: var(--muted);
  border: 2px solid var(--line);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.process-step__label {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  line-height: 1.2;
}
.process-step__line {
  flex: 1 1 0;
  height: 3px;
  margin-top: 14.5px;
  border-radius: 99px;
  background: var(--line);
  position: relative;
  overflow: hidden;
  min-width: 1.25rem;
}
.process-step__line::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--accent);
  transition: width 0.35s ease;
}
.process-step__line.is-filled::after { width: 100%; }
.process-step.is-current .process-step__node {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 5px rgba(255, 77, 28, 0.16);
}
.process-step.is-current .process-step__label { color: var(--navy); }
.process-step.is-done .process-step__node {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-size: 0;
}
.process-step.is-done .process-step__node::before {
  content: "✓";
  font-size: 0.85rem;
}
.process-step.is-done .process-step__label { color: var(--navy); }

.section-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 1.5rem 1.2rem 3.2rem;
}

.court-card {
  position: relative;
  border-radius: 24px;
  overflow: visible;
  min-height: 320px;
  cursor: pointer;
  color: #fff;
  transform: translateY(0);
  animation: rise 0.55s ease both;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.court-card:nth-child(1) { animation-delay: 0.05s; }
.court-card:nth-child(2) { animation-delay: 0.12s; }
.court-card:nth-child(3) { animation-delay: 0.19s; }
.court-card:nth-child(4) { animation-delay: 0.26s; }
.court-card:nth-child(5) { animation-delay: 0.33s; }
.court-card:nth-child(6) { animation-delay: 0.4s; }
.court-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 14px 28px rgba(22, 24, 29, 0.14),
    0 0 0 2px rgba(255, 77, 28, 0.55),
    0 0 22px rgba(255, 77, 28, 0.32);
}
.court-card.selected {
  box-shadow:
    0 0 0 3px var(--accent),
    0 0 20px rgba(255, 77, 28, 0.28),
    var(--shadow);
}
.court-card__pitch {
  position: relative;
  min-height: 320px;
  padding: 1.15rem 1.15rem 3.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  isolation: auto;
  overflow: hidden;
  border-radius: 24px;
}
.court-card__pitch::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.2) 50%, transparent 65%);
  transform: translateX(-120%);
  z-index: 6;
  pointer-events: none;
}
.court-card:hover .court-card__pitch::after { animation: shine 0.85s ease; }
@keyframes shine {
  to { transform: translateX(120%); }
}
.court-card[data-sport="futsal"] .court-card__pitch { background: linear-gradient(160deg, #16a34a, #166534); }
.court-card[data-sport="pickleball"] .court-card__pitch { background: linear-gradient(160deg, #0ea5b7, #0e7490); }
.court-card[data-sport="badminton"] .court-card__pitch { background: linear-gradient(160deg, #3b82f6, #1d4ed8); }
.court-card[data-sport="basketball"] .court-card__pitch { background: linear-gradient(160deg, #f97316, #c2410c); }
.court-card[data-sport="tennis"] .court-card__pitch { background: linear-gradient(160deg, #84cc16, #4d7c0f); }
.court-card[data-sport="volleyball"] .court-card__pitch { background: linear-gradient(160deg, #8b5cf6, #6d28d9); }
.court-card[data-sport="default"] .court-card__pitch { background: linear-gradient(160deg, #64748b, #334155); }

.court-card__player-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.court-card__player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
  filter: saturate(1.1) contrast(1.06);
  animation: courtKenBurns 16s ease-in-out infinite alternate;
  transition: transform 0.55s ease, filter 0.35s ease;
}
.court-card:nth-child(even) .court-card__player { animation-delay: -5s; }
.court-card:nth-child(3) .court-card__player { animation-delay: -9s; }
.court-card:nth-child(5) .court-card__player { animation-delay: -3s; }
@keyframes courtKenBurns {
  0% { transform: scale(1.08) translate3d(0, 0, 0); }
  100% { transform: scale(1.2) translate3d(-2.4%, -1.4%, 0); }
}
.court-card:hover .court-card__player {
  animation-play-state: paused;
  transform: scale(1.16);
  filter: saturate(1.18) contrast(1.08) brightness(1.04);
}
.court-card__shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8,10,14,0.34) 0%, rgba(8,10,14,0.08) 42%, rgba(8,10,14,0.62) 100%),
    linear-gradient(90deg, rgba(8,10,14,0.38) 0%, rgba(8,10,14,0.08) 58%, rgba(8,10,14,0.22) 100%);
}
.court-card[data-sport="futsal"] .court-card__shade { background:
  linear-gradient(180deg, rgba(12,54,24,0.38) 0%, rgba(12,54,24,0.08) 40%, rgba(8,20,12,0.62) 100%),
  linear-gradient(90deg, rgba(12,54,24,0.32) 0%, transparent 60%); }
.court-card[data-sport="pickleball"] .court-card__shade { background:
  linear-gradient(180deg, rgba(8,48,62,0.4) 0%, rgba(8,48,62,0.08) 40%, rgba(6,22,30,0.64) 100%),
  linear-gradient(90deg, rgba(8,48,62,0.32) 0%, transparent 60%); }
.court-card[data-sport="badminton"] .court-card__shade { background:
  linear-gradient(180deg, rgba(16,42,92,0.42) 0%, rgba(16,42,92,0.08) 40%, rgba(8,18,42,0.64) 100%),
  linear-gradient(90deg, rgba(16,42,92,0.32) 0%, transparent 60%); }
.court-card[data-sport="basketball"] .court-card__shade { background:
  linear-gradient(180deg, rgba(92,36,8,0.4) 0%, rgba(92,36,8,0.08) 40%, rgba(42,16,6,0.64) 100%),
  linear-gradient(90deg, rgba(92,36,8,0.32) 0%, transparent 60%); }
.court-card[data-sport="tennis"] .court-card__shade { background:
  linear-gradient(180deg, rgba(36,62,8,0.38) 0%, rgba(36,62,8,0.08) 40%, rgba(14,28,6,0.64) 100%),
  linear-gradient(90deg, rgba(36,62,8,0.32) 0%, transparent 60%); }
.court-card[data-sport="volleyball"] .court-card__shade { background:
  linear-gradient(180deg, rgba(48,22,86,0.4) 0%, rgba(48,22,86,0.08) 40%, rgba(22,10,42,0.64) 100%),
  linear-gradient(90deg, rgba(48,22,86,0.32) 0%, transparent 60%); }

.court-card__top { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 3; }
.court-card__sport, .court-card__cta {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.court-card__sport {
  background: rgba(0,0,0,0.2);
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
}
.court-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #fff;
}
.court-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255,255,255,0.16);
  display: grid;
  place-items: center;
  margin: 0.9rem 0 auto;
  position: relative;
  z-index: 3;
}
.court-card__icon svg { width: 24px; height: 24px; }
.court-card__copy {
  position: relative;
  z-index: 3;
  max-width: 58%;
}
.court-card__name {
  margin: 0;
  font-size: 1.55rem;
  color: #fff;
  position: relative;
  z-index: 3;
  text-shadow: 0 8px 18px rgba(0,0,0,0.35);
}
.court-card__meta {
  margin: 0.2rem 0 0;
  color: rgba(255,255,255,0.82);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  font-family: Inter, sans-serif;
}
.court-card__status {
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: rgba(8, 10, 14, 0.42);
  backdrop-filter: blur(8px);
  width: fit-content;
  max-width: calc(100% - 1.7rem);
}
.court-card__status .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.court-card__status.is-open .status-dot {
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: livePulseGreen 1.6s infinite;
}
.court-card__status.is-full .status-dot {
  background: #f87171;
  box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.7);
  animation: livePulseRed 1.6s infinite;
}
.court-card__status.is-unknown .status-dot,
.court-card__status.is-loading .status-dot {
  background: #d1d5db;
}
@keyframes livePulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.65); }
  70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
@keyframes livePulseRed {
  0% { box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.65); }
  70% { box-shadow: 0 0 0 8px rgba(248, 113, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(248, 113, 113, 0); }
}

.btn-primary, .btn-secondary, .btn-ghost, .btn-approve, .btn-reject, .btn-block, .btn-download, .btn-refresh {
  font-family: Inter, sans-serif;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn-primary {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: linear-gradient(90deg, var(--accent), #ff7a3c);
  color: #fff;
  border-radius: 14px;
  padding: 0.95rem 1.1rem;
  box-shadow: 0 10px 24px rgba(255, 77, 28, 0.22);
}
.btn-primary:hover:not(:disabled) { transform: translateY(-2px) scale(1.01); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
.btn-secondary {
  background: var(--navy);
  color: #fff;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-size: 0.78rem;
}
.btn-secondary.is-resume { background: var(--accent-2); }
.btn-ghost {
  background: transparent;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
}
.btn-approve { background: var(--accent-2); color: #fff; border-radius: 10px; padding: 0.65rem 1rem; }
.btn-reject { background: #fff; color: #b91c1c; border: 1px solid #fecaca; border-radius: 10px; padding: 0.65rem 1rem; }
.btn-block { width: 100%; margin-top: 1rem; background: #ef4444; color: #fff; border-radius: 12px; padding: 0.85rem 1.1rem; }
.btn-download, .btn-refresh {
  border-radius: 10px;
  padding: 0.65rem 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.btn-download { background: var(--accent); color: #fff; }
.btn-refresh { background: #fff; color: var(--navy); border: 1px solid var(--line); }

.form-input, .form-select, .form-input-modern {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  font-size: 0.95rem;
  background: #fff;
  color: var(--text);
  font-family: inherit;
}
.form-input:focus, .form-select:focus, .form-input-modern:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 77, 28, 0.12);
}
.form-input:disabled { background: #f4f1ea; }
.field-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 0.4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.slotBtn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  padding: 0.8rem 0.3rem;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease, background 0.15s ease;
}
.slotBtn:hover:not(.booked):not(.selected):not(.disabled-6hr) {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.slotBtn.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: scale(1.04);
}
.slotBtn.booked { background: #fee2e2; color: #b91c1c; border-color: #fecaca; pointer-events: none; }
.slotBtn.disabled-6hr { background: #f4f1ea; color: #9aa3b2; border-style: dashed; pointer-events: none; }

.slot-skeleton {
  height: 260px;
  border-radius: 24px;
  background: linear-gradient(90deg, #ece7dc 25%, #f7f4ee 50%, #ece7dc 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.legend-item { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; color: var(--muted); font-weight: 700; }
.legend-dot { width: 9px; height: 9px; border-radius: 999px; border: 1px solid var(--line); background: #fff; }

.booking-card, .dashboard-card, .login-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  color: var(--text);
}
.booking-card { padding: 1.4rem; }
.selected-court {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: #fff4ef;
  border: 1px solid #ffd4c4;
}
.info-box {
  margin-top: 0.8rem;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: #fff7e8;
  border: 1px solid #f1d7a5;
}
.info-box-title { font-weight: 800; font-size: 0.84rem; color: #92400e; }
.info-box-text { font-size: 0.8rem; color: #a16207; }

.booking-thankyou-modal, .admin-modal { backdrop-filter: blur(12px); }
.booking-thankyou-modal__backdrop, .admin-modal__backdrop { background: rgba(22, 24, 29, 0.35); }
.booking-thankyou-modal__panel, .admin-modal__panel {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--navy);
  box-shadow: var(--shadow);
  animation: pop 0.4s cubic-bezier(0.2, 0.9, 0.2, 1);
}
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.admin-modal.is-open {
  display: flex;
}
.admin-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  cursor: default;
}
.admin-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  border-radius: 24px;
  padding: 1.6rem 1.4rem 1.35rem;
  text-align: center;
}
.admin-modal__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.85rem;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #fff4ef;
  color: var(--accent);
}
.admin-modal__icon .icon { width: 26px; height: 26px; }
.admin-modal.is-danger .admin-modal__icon { background: #fff1f2; color: #be123c; }
.admin-modal.is-ok .admin-modal__icon { background: #ecfdf3; color: #15803d; }
.admin-modal__title {
  margin: 0;
  font-size: 1.7rem;
}
.admin-modal__copy {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}
.admin-modal__actions {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.25rem;
}
.admin-modal__actions .btn-logout,
.admin-modal__actions .btn-primary {
  flex: 1;
  min-height: 46px;
  justify-content: center;
  border-radius: 14px;
}
.admin-modal.is-alert .admin-modal__actions .btn-logout { display: none; }
.admin-modal.is-alert .admin-modal__actions .btn-primary { width: 100%; }
@media (max-width: 640px) {
  .admin-modal__actions { flex-direction: column-reverse; }
}
@keyframes pop {
  from { opacity: 0; transform: scale(0.92) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.summary-card, .pending-card, .booking-row, .court-group {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
}
.summary-number { font-family: "Barlow Condensed", sans-serif; font-size: 2.15rem; font-weight: 800; line-height: 1; }
.summary-label { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.status-badge { display: inline-flex; align-items: center; padding: 0.26rem 0.6rem; border-radius: 999px; font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.status-badge.pending { background: #fff4e5; color: #9a3412; }
.status-badge.approved { background: #dcfce7; color: #166534; }
.status-badge.rejected { background: #fee2e2; color: #b91c1c; }
.status-badge.blocked { background: #ede9fe; color: #5b21b6; }
.pending-card, .booking-row { padding: 1.05rem 1.1rem; }
.court-group { overflow: hidden; margin-bottom: 0.8rem; }
.date-group-header, .court-group-header {
  background: #f6f4ef;
  padding: 0.75rem 1rem;
  font-weight: 800;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.section-header { font-size: 1.7rem; margin: 0 0 0.2rem; }
.section-subtitle { color: var(--muted); font-size: 0.88rem; margin: 0 0 1.1rem; }

.staff-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
}
.login-shell {
  position: relative;
  min-height: calc(100vh - 148px);
  display: grid;
  align-items: center;
  justify-items: stretch;
  padding: 2rem 1.2rem 3rem;
  overflow-x: hidden;
}
.login-layout {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2.4rem;
  align-items: center;
}
.login-intro h1 {
  margin: 0.85rem 0 0;
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  line-height: 0.88;
}
.login-intro h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #ff4d1c, #ff8a4c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.login-intro p {
  max-width: 28rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.login-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 1.85rem 1.6rem 1.7rem;
  animation: rise 0.55s ease both;
}
.login-kicker {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 0.35rem;
}
.login-title {
  font-size: 2rem;
  margin: 0 0 0.35rem;
  text-transform: uppercase;
}
.login-copy {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 1.4rem;
  overflow-wrap: anywhere;
}
.input-with-icon { position: relative; }
.input-with-icon > .icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
}
.input-with-icon .form-input { padding-left: 2.5rem; padding-right: 2.6rem; }
.input-eye {
  position: absolute;
  right: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--muted);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: 8px;
}
.input-eye:hover { color: var(--navy); background: #f6f4ef; }
.form-msg { min-height: 20px; margin: 0; text-align: center; font-size: 0.84rem; font-weight: 700; }
.form-msg.is-error { color: #b91c1c; }

.admin-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.admin-actions--mobile {
  padding: 0 1.2rem 0.85rem;
  flex-wrap: wrap;
}
.booking-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.booking-live-badge .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.booking-live-badge.is-on {
  background: #ecfdf3;
  color: #166534;
  border-color: #bbf7d0;
}
.booking-live-badge.is-on .live-dot {
  background: #16a34a;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.55);
  animation: ping 1.6s infinite;
}
.booking-live-badge.is-off {
  background: #fff1f2;
  color: #9f1239;
  border-color: #fecdd3;
}
.booking-live-badge.is-off .live-dot { background: #e11d48; animation: none; }
.btn-logout {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}
.btn-logout:hover { border-color: var(--accent); color: var(--accent); }
.admin-hero .hero__inner { padding-bottom: 0.4rem; }
.admin-hero h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); }
.admin-wrap { padding-top: 1.2rem; }
.admin-body .login-layout,
.admin-body .login-intro,
.admin-body .hero__inner,
.admin-body .section-wrap,
.admin-body .dashboard-card,
.admin-body .warning-card,
.admin-body .login-card,
.admin-body .filter-grid,
.admin-body .block-grid,
.admin-body .summary-grid {
  max-width: 100%;
  min-width: 0;
}
.admin-body .filter-grid > *,
.admin-body .block-grid > *,
.admin-body .summary-grid > * {
  min-width: 0;
}
.input-with-icon,
.date-group-body {
  min-width: 0;
  max-width: 100%;
}
.date-group-body {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}
.summary-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  text-align: left;
  padding: 1.05rem 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.summary-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(22, 24, 29, 0.1);
}
.summary-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.summary-card__icon .icon { width: 22px; height: 22px; }
.summary-card--pending .summary-card__icon { background: #fff4e5; color: #c2410c; }
.summary-card--pending .summary-number { color: #c2410c; }
.summary-card--approved .summary-card__icon { background: #ecfdf3; color: #15803d; }
.summary-card--approved .summary-number { color: #15803d; }
.summary-card--rejected .summary-card__icon { background: #fff1f2; color: #be123c; }
.summary-card--rejected .summary-number { color: #be123c; }
.summary-card--blocked .summary-card__icon { background: #f5f3ff; color: #6d28d9; }
.summary-card--blocked .summary-number { color: #6d28d9; }

.admin-panel { padding: 1.35rem 1.3rem 1.4rem; }
.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  margin-bottom: 1.2rem;
}
.panel-kicker {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 0.25rem;
}
.panel-kicker--warn { color: #c2410c; }
.filter-grid, .block-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.block-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.pending-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.pending-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(22, 24, 29, 0.08);
}
.pending-actions { display: flex; gap: 0.65rem; flex-shrink: 0; }
.meta-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.75rem; }
.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  background: #f6f4ef;
  border: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--navy);
}
.meta-chip .icon { width: 13px; height: 13px; color: var(--accent); }
.team-line { margin-top: 0.55rem; font-size: 0.78rem; font-weight: 700; color: #0f766e; }

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 18px;
  padding: 2.2rem 1rem;
  text-align: center;
  background: #fbfaf7;
  color: var(--muted);
}
.empty-state .icon { width: 28px; height: 28px; margin: 0 auto 0.55rem; color: var(--accent); }
.empty-state p { margin: 0; font-weight: 800; color: var(--navy); }
.empty-state span { display: block; margin-top: 0.25rem; font-size: 0.8rem; }

.booking-row { background: #fff; }
.slot-time {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  color: var(--navy);
}
.slot-time-label { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 0.2rem; }

.warning-card {
  background: #fff;
  border: 1px solid #ffd4c4;
  border-radius: 24px;
  padding: 1.4rem 1.35rem 1.35rem;
  box-shadow: var(--shadow);
}
.warning-text {
  margin-top: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: #fff4ef;
  color: #9a3412;
  font-size: 0.84rem;
  font-weight: 600;
}
.btn-block {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}
.block-msg { min-height: 1.2rem; margin: 0.7rem 0 0; font-size: 0.84rem; font-weight: 700; }
.block-msg.is-error { color: #b91c1c; }
.block-msg.is-ok { color: #15803d; }

.admin-toast {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 16px 32px rgba(22, 24, 29, 0.2);
  font-weight: 700;
  font-size: 0.88rem;
}
.admin-toast .icon { width: 16px; height: 16px; color: var(--accent); }

.brand-short { display: none; }
.btn-label-short { display: none; }
.app-brand__text { min-width: 0; }
.pending-email {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.pending-card__inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 768px) {
  .pending-card__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.pending-card__who { min-width: 0; flex: 1; }
.pending-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.pending-card__name { min-width: 0; }
.booking-row__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.booking-row__who { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.booking-row__meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}
.booking-row__time { text-align: right; }

@media (max-width: 900px) {
  .login-layout { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
  .login-card { order: -1; }
  .login-intro .hero__stats { max-width: 100%; }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-grid, .block-grid { grid-template-columns: minmax(0, 1fr); }
  .admin-hero h1 { font-size: 2.6rem; }
  .form-input, .form-select, .form-input-modern,
  input[type="date"], select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}

@media (max-width: 900px) {
  .process-step { min-width: 3.4rem; }
  .process-step__label { font-size: 0.72rem; }
}
@media (max-width: 768px) {
  .brand-full { display: none; }
  .brand-short { display: inline; }
  .btn-label-full { display: none; }
  .btn-label-short { display: inline; }
  .admin-body .app-header__inner {
    padding: 0.7rem 0.9rem;
    gap: 0.6rem;
  }
  .admin-body .app-brand { gap: 0.55rem; min-width: 0; flex: 1; }
  .admin-body .app-brand img { height: 34px; }
  .admin-body .app-brand__title { font-size: 0.92rem; }
  .admin-body .app-brand__sub {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
    white-space: normal;
  }
  .admin-actions--mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0 0.9rem 0.75rem;
  }
  .admin-actions__btns {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
  }
  .admin-actions--mobile .booking-live-badge {
    font-size: 0.62rem;
    padding: 0.34rem 0.55rem;
  }
  .admin-actions--mobile .btn-secondary,
  .admin-actions--mobile .btn-logout {
    min-height: 40px;
    padding: 0.45rem 0.75rem;
    font-size: 0.74rem;
  }
  .login-shell {
    min-height: auto;
    width: 100%;
    overflow-x: hidden;
    padding: 1.1rem 1rem 2rem;
    place-items: stretch;
  }
  .login-layout,
  .login-card,
  .input-with-icon {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .admin-body .form-input,
  .admin-body .form-select,
  .admin-body .form-input-modern {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .admin-body .app-footer__inner {
    padding: 0.85rem 1rem;
    text-align: center;
  }
  .admin-body .app-footer p {
    overflow-wrap: anywhere;
  }
  .date-group-body { padding: 0.5rem; }
  .login-intro h1 { font-size: 2.35rem; }
  .login-intro p { font-size: 0.92rem; margin-top: 0.7rem; }
  .login-card { padding: 1.25rem 1.05rem 1.2rem; border-radius: 20px; }
  .login-title { font-size: 1.65rem; }
  .login-intro,
  .login-intro p,
  .login-copy,
  .admin-hero p {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .login-intro .hero__stats {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.45rem;
    margin-top: 1rem;
  }
  .login-intro .hero__stat {
    flex-direction: row;
    text-align: left;
    padding: 0.7rem 0.8rem;
    gap: 0.55rem;
  }
  .login-intro .hero__stat b { font-size: 0.95rem; }
  .login-intro .hero__stat span { font-size: 0.62rem; letter-spacing: 0.06em; }
  .admin-hero .hero__inner { padding: 1.35rem 0.9rem 0.2rem; }
  .admin-hero h1 { font-size: 2.15rem; }
  .admin-hero p { font-size: 0.9rem; }
  .admin-wrap { padding: 0.9rem 0.9rem 2.2rem; }
  .summary-grid { gap: 0.55rem; }
  .summary-card {
    padding: 0.75rem 0.7rem;
    gap: 0.5rem;
    border-radius: 14px;
  }
  .summary-card__icon { width: 34px; height: 34px; border-radius: 10px; }
  .summary-card__icon .icon { width: 16px; height: 16px; }
  .summary-number { font-size: 1.55rem; }
  .summary-label { font-size: 0.62rem; }
  .admin-panel, .warning-card { padding: 1rem 0.9rem 1.05rem; border-radius: 18px; }
  .section-header { font-size: 1.35rem; }
  .panel-head { margin-bottom: 0.9rem; }
  .panel-head .btn-refresh,
  .panel-head .btn-download {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }
  .form-input, .form-select, .form-input-modern {
    font-size: 16px;
    min-height: 46px;
    padding: 0.75rem 0.85rem;
  }
  .pending-actions { width: 100%; }
  .pending-actions .btn-approve,
  .pending-actions .btn-reject {
    flex: 1;
    min-height: 44px;
  }
  .booking-row__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
  }
  .booking-row__meta { width: 100%; justify-content: space-between; }
  .booking-row__time { text-align: left; }
  .date-group-header, .court-group-header {
    padding: 0.65rem 0.8rem;
    font-size: 0.86rem;
    gap: 0.4rem;
  }
  .admin-toast {
    left: 0.75rem;
    right: 0.75rem;
    top: auto;
    bottom: 0.9rem;
  }
  .hero__orb { width: 180px; height: 180px; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 2.6rem; }
  .hero__stats { grid-template-columns: 1fr 1fr 1fr; }
  .login-intro .hero__stats { grid-template-columns: minmax(0, 1fr); }
  .process-stepper { max-width: 100%; }
  .process-step { min-width: 0; }
  .court-card, .court-card__pitch, .slot-skeleton { min-height: 280px; }
  .admin-hero h1 { font-size: 2.15rem; }
}
@media (max-width: 380px) {
  .summary-card { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
