:root {
  --sec-red: #fc273e;
  --sec-mid-red: #aa183a;
  --sec-dark-red: #641432;
  --sec-light-red: #ffb0a3;
  --sec-navy: #031f50;
  --sec-mid-blue: #426b9d;
  --sec-light-blue: #acc2dd;
  --sec-purple: #8d6fff;
  --sec-mid-purple: #6541b6;
  --sec-dark-purple: #26224c;
  --sec-white: #ffffff;
  --sec-paper: #fcfbf7;
  --sec-black: #111111;
  --sec-green: #1ca56a;
  --panel-shadow: 10px 10px 0 rgba(17, 17, 17, 0.22);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Barlow Condensed", Arial, sans-serif;
  color: var(--sec-white);
  background:
    radial-gradient(circle at top left, rgba(252, 39, 62, 0.16), transparent 26%),
    radial-gradient(circle at top right, rgba(141, 111, 255, 0.16), transparent 24%),
    linear-gradient(180deg, #fefefe 0%, #f7f5ee 100%);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select {
  font: inherit;
}

.page-noise {
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 25%, rgba(0, 0, 0, 0.05) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 60%, rgba(0, 0, 0, 0.04) 0 1px, transparent 1px);
  background-size: 20px 20px, 26px 26px;
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 8px;
  width: 0;
  background: linear-gradient(90deg, var(--sec-red), #ffd500, var(--sec-purple));
  z-index: 50;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(3, 31, 80, 0.95);
  border-bottom: 4px solid var(--sec-black);
  backdrop-filter: blur(10px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.brand-pill,
.topbar-link,
.ghost-link {
  border: 3px solid var(--sec-black);
}

.brand-pill {
  background: var(--sec-white);
  color: var(--sec-navy);
  padding: 0.3rem 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.brand-separator {
  width: 34px;
  height: 4px;
  background: var(--sec-red);
}

.brand-copy {
  color: var(--sec-white);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.topbar-link,
.ghost-link,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.topbar-link {
  background: #ffd500;
  color: var(--sec-black);
  padding: 0.55rem 1rem;
}

.ghost-link {
  padding: 0.5rem 0.95rem;
  background: rgba(255, 255, 255, 0.18);
  color: var(--sec-white);
}

.panel-tabs {
  gap: 0.5rem;
}

.panel-tab-separator {
  align-self: stretch;
  width: 3px;
  min-height: 2.2rem;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.2);
}

.panel-tab {
  border-color: rgba(17, 17, 17, 0.8);
}

.panel-tab.is-active {
  background: #ffd500;
  color: var(--sec-black);
  box-shadow: 4px 4px 0 rgba(17, 17, 17, 0.2);
}

.panel-tab-icon,
.panel-tab-icon.is-active {
  padding: 0 0.15rem;
  border: 0;
  background: transparent;
  color: var(--sec-white);
  box-shadow: none;
  font-size: 2rem;
  line-height: 1;
}

.panel-tab-icon:hover,
.panel-tab-icon:focus-visible,
.panel-tab-icon.is-active:hover,
.panel-tab-icon.is-active:focus-visible {
  background: transparent;
  color: #ffd500;
}

.panel-tab-register {
  background: #19a55a;
  color: var(--sec-white);
}

.panel-tab-register:hover,
.panel-tab-register:focus-visible {
  background: #138247;
}

.logout-link {
  background: var(--sec-red);
  color: var(--sec-white);
}

.topbar-link:hover,
.ghost-link:hover,
.btn:hover {
  transform: translate(-2px, -2px);
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 4rem;
}

.hero-grid,
.dashboard-grid,
.auth-grid {
  display: grid;
  gap: 1.25rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: stretch;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1fr);
}

.auth-grid {
  grid-template-columns: minmax(0, 420px);
  justify-content: center;
  padding-top: 3rem;
}

.comic-card {
  position: relative;
  overflow: hidden;
  border: 4px solid var(--sec-black);
  box-shadow: var(--panel-shadow);
  isolation: isolate;
}

.comic-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), transparent 42%);
  z-index: 0;
}

.panel-yellow {
  background: linear-gradient(160deg, #ffd500 0%, #ffcf1f 55%, #f8bb00 100%);
  color: var(--sec-black);
}

.admin-hero-card h1 {
  color: var(--sec-white);
  text-shadow: 5px 5px 0 rgba(17, 17, 17, 0.92);
}

.admin-hero-card .card-inner {
  position: relative;
  overflow: hidden;
}

.admin-hero-card .card-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, rgba(17, 17, 17, 0.14) 0 1.8px, transparent 1.8px 100%);
  background-size: 18px 18px;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.admin-hero-card .card-inner > * {
  position: relative;
  z-index: 1;
}

.panel-white {
  background: linear-gradient(160deg, var(--sec-paper) 0%, var(--sec-white) 100%);
  color: var(--sec-black);
}

.panel-navy {
  background: linear-gradient(160deg, #0b316e 0%, var(--sec-navy) 60%, #02112d 100%);
  color: var(--sec-white);
}

.panel-purple {
  background: linear-gradient(160deg, var(--sec-purple) 0%, var(--sec-mid-purple) 55%, var(--sec-dark-purple) 100%);
  color: var(--sec-white);
}

.panel-red {
  background: linear-gradient(160deg, var(--sec-red) 0%, var(--sec-mid-red) 70%, var(--sec-dark-red) 100%);
  color: var(--sec-white);
}

.card-inner {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
}

.hero-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
}

.hero-title-card .card-inner {
  display: grid;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.hero-title-card .card-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.16) 0 2px, transparent 2px 100%);
  background-size: 24px 24px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.hero-title-card .card-inner > * {
  position: relative;
  z-index: 1;
}

.hero-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 0.45rem;
}

.hero-title-row h1 {
  margin: 0;
  flex: 1 1 auto;
  margin-top: -0.2rem;
  max-width: 6.8ch;
}

.hero-kids-stack {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: clamp(380px, 45vw, 640px);
  max-width: min(100%, 640px);
  margin-right: 0;
  transform: translateX(-0.45rem);
  top: 1.6rem;
}

.hero-kid-small {
  position: absolute;
  bottom: 0.18rem;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(8px 8px 0 rgba(17, 17, 17, 0.2));
  animation: float-bob 4.5s ease-in-out infinite;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 74%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 74%, rgba(0, 0, 0, 0) 100%);
}

.hero-kid-small-red {
  left: -8.8rem;
  width: clamp(260px, 28vw, 420px);
  max-width: 420px;
  margin-bottom: 0;
}

.hero-kid-small-pink {
  left: 2.1rem;
  width: clamp(210px, 22vw, 340px);
  max-width: 340px;
  margin-bottom: 0;
  animation-delay: 0.5s;
}

.hero-kid-green {
  display: block;
  position: relative;
  left: 10rem;
  width: 100%;
  max-width: 620px;
  height: auto;
  object-fit: contain;
  margin-bottom: -0.42rem;
  filter: drop-shadow(12px 12px 0 rgba(17, 17, 17, 0.22));
  animation: float-bob 4.5s ease-in-out infinite;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 74%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 74%, rgba(0, 0, 0, 0) 100%);
}

.kid-sprite {
  position: absolute;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(12px 12px 0 rgba(17, 17, 17, 0.22));
  animation: float-bob 4.5s ease-in-out infinite;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 74%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 74%, rgba(0, 0, 0, 0) 100%);
}

.hero-burst {
  position: absolute;
  height: auto;
  filter: drop-shadow(6px 6px 0 rgba(17, 17, 17, 0.2));
  animation: float-bob 4.2s ease-in-out infinite;
}

.lower-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
  align-items: start;
  gap: 1rem;
}

.lower-feature-panel {
  overflow: visible;
  position: relative;
  background: linear-gradient(180deg, #88d83d 0%, #4ca62f 100%);
  color: var(--sec-black);
}

.lower-feature-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, rgba(40, 92, 22, 0.38) 0 3px, transparent 3px 100%);
  background-size: 22px 22px;
  opacity: 0.72;
  pointer-events: none;
  z-index: 0;
}

.lower-feature-panel .card-inner {
  padding-top: 1.05rem;
  padding-bottom: 0.9rem;
  position: relative;
  overflow: visible;
}

.lower-feature-panel .card-inner > * {
  position: relative;
  z-index: 1;
}

.lower-kids-visual {
  position: relative;
  width: min(100%, 760px);
  min-height: 210px;
  margin-top: -4rem;
  margin-left: -2.4rem;
  overflow: visible;
  pointer-events: none;
}

.lower-kids-visual::before {
  content: none;
}

.lower-kids-stage {
  position: absolute;
  inset: -6.5rem -0.5rem -0.6rem -0.5rem;
  pointer-events: none;
}

.speech-bubble {
  position: absolute;
  width: min(34%, 230px);
  z-index: 6;
  filter: drop-shadow(8px 8px 0 rgba(17, 17, 17, 0.2));
  --bubble-rotate: 0deg;
  animation: bubble-bob 4.6s ease-in-out infinite;
  pointer-events: none;
}

.speech-bubble img {
  width: 100%;
}

.speech-bubble span {
  position: absolute;
  inset: 37% 18% auto 18%;
  color: var(--sec-black);
  font-family: "Bangers", cursive;
  font-size: clamp(1.1rem, 1.9vw, 1.65rem);
  line-height: 0.9;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
}

.speech-bubble-left {
  left: -15%;
  top: -2rem;
  --bubble-rotate: -12deg;
}

.speech-bubble-left img {
  transform: scaleX(-1);
}

.speech-bubble-right {
  right: -9%;
  top: -1.45rem;
  --bubble-rotate: 11deg;
  animation-delay: 0.9s;
}

.speech-bubble-right span {
  inset: 37% 18% auto 18%;
}

.lower-kid {
  bottom: -0.85rem;
  pointer-events: none;
}

.lower-kid-red {
  left: 6%;
  width: min(50%, 440px);
  z-index: 3;
}

.lower-kid-pink {
  left: 34%;
  width: min(38%, 320px);
  z-index: 2;
  animation-delay: 0.6s;
}

.lower-event-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: -0.9rem;
  justify-self: end;
  width: min(100%, 520px);
  align-self: start;
}

.lower-event-card {
  background: rgba(255, 255, 255, 0.96);
  color: var(--sec-black);
  border: 4px solid var(--sec-black);
  box-shadow: 6px 6px 0 rgba(17, 17, 17, 0.18);
  padding: 0.95rem 1.05rem;
}

.lower-event-card strong {
  display: block;
  font-size: clamp(1.75rem, 2.4vw, 2.3rem);
  font-weight: 800;
  line-height: 1;
  margin-top: 0.2rem;
}

.lower-kid-green {
  right: 5%;
  width: min(42%, 365px);
  z-index: 4;
  animation-delay: 1.2s;
}

.lower-burst-lightning {
  left: 6%;
  top: -1.15rem;
  width: 78px;
  transform: rotate(-10deg);
}

.lower-burst-star {
  right: 8%;
  top: -0.4rem;
  width: 70px;
  transform: rotate(10deg);
  animation-delay: 0.8s;
}

.lower-burst-exclaim {
  left: 50%;
  top: -1.25rem;
  width: 60px;
  transform: translateX(-50%) rotate(8deg);
  animation-delay: 1.3s;
}

.lower-burst-dot {
  right: 18%;
  bottom: 4.4rem;
  width: 20px;
  animation-delay: 0.2s;
}

.lower-burst-star-red {
  left: 34%;
  bottom: 4.1rem;
  width: 48px;
  animation-delay: 1.5s;
}

.hero-title-card h1 {
  color: var(--sec-white);
  text-shadow: 5px 5px 0 rgba(17, 17, 17, 0.92);
  max-width: 7ch;
  font-size: clamp(4rem, 8.2vw, 7.4rem);
}

.hero-title-card .hero-lead {
  max-width: 30rem;
  margin-top: -0.15rem;
  margin-bottom: 0.55rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-wrap: balance;
}

.hero-title-card .eyebrow {
  background: #ff9f1c;
}

.hero-event-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible;
  margin-top: auto;
  border: 4px solid var(--sec-black);
  box-shadow: 4px 4px 0 rgba(17, 17, 17, 0.2);
  background: linear-gradient(160deg, rgba(255, 213, 0, 0.98) 0%, rgba(255, 188, 0, 0.96) 100%);
}

.hero-event-strip::before {
  content: "INFORMACJE O WYDARZENIU";
  position: absolute;
  top: -1.05rem;
  left: 0.8rem;
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: 0 0.55rem;
  border: 3px solid var(--sec-black);
  background: #ff9f1c;
  color: var(--sec-black);
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
}

.hero-event-tile {
  background: var(--sec-white);
  color: var(--sec-black);
  border: 0;
  box-shadow: none;
  padding: 0.95rem 1rem 0.85rem;
}

.hero-event-tile + .hero-event-tile {
  border-left: 4px solid var(--sec-black);
}

.hero-event-tile strong {
  display: block;
  font-size: clamp(1.65rem, 2.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1;
  margin-top: 0.15rem;
}

.hero-title-card .hero-badges {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0.35rem;
}

.hero-title-card .mini-card {
  background: rgba(255, 255, 255, 0.96);
  color: var(--sec-black);
}

@keyframes float-bob {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -10px, 0);
  }
}

@keyframes bubble-bob {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(var(--bubble-rotate));
  }

  50% {
    transform: translate3d(0, -10px, 0) rotate(var(--bubble-rotate));
  }
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin: 0;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.96);
  color: var(--sec-black);
  border: 3px solid var(--sec-black);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow.dark {
  background: #ffd500;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Bangers", cursive;
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(3.6rem, 7vw, 6.8rem);
  text-shadow: 4px 4px 0 rgba(17, 17, 17, 0.82);
}

h2 {
  font-size: clamp(2.1rem, 3.8vw, 3.5rem);
}

h3 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
}

.hero-lead,
.muted,
.stat-copy,
.info-list,
.table-meta,
.empty-state {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.2;
  font-weight: 600;
}

.hero-lead {
  max-width: 34rem;
}

.hero-badges,
.info-list,
.form-grid,
.stats-grid,
.toolbar,
.action-row {
  display: grid;
  gap: 0.9rem;
}

.hero-badges {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mini-card {
  background: rgba(255, 255, 255, 0.88);
  color: var(--sec-black);
  border: 4px solid var(--sec-black);
  padding: 1rem;
}

.mini-card strong,
.stat-number {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
}

.info-list {
  margin: 0;
  padding-left: 1.2rem;
}

.info-list li {
  padding-left: 0.2rem;
}

.flash {
  margin-bottom: 1rem;
  border: 4px solid var(--sec-black);
  padding: 0.95rem 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: var(--panel-shadow);
}

.flash-success {
  background: #ddffe7;
  color: #0a4f30;
}

.flash-error {
  background: #ffe1e5;
  color: #721627;
}

.flash-info {
  background: #e8efff;
  color: var(--sec-navy);
}

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

.field {
  display: grid;
  gap: 0.45rem;
}

.field-full {
  grid-column: 1 / -1;
}

.form-section {
  margin-top: 0.2rem;
  display: grid;
  gap: 0.16rem;
}

.form-section-kicker {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.68);
}

.form-section h3 {
  margin: 0;
  font-family: "Bangers", cursive;
  font-size: 1.7rem;
  line-height: 0.95;
  letter-spacing: 0.03em;
  color: var(--sec-navy);
  text-transform: uppercase;
}

.field label {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 56px;
  border: 3px solid var(--sec-black);
  background: rgba(255, 255, 255, 0.95);
  color: var(--sec-black);
  padding: 0.8rem 0.95rem;
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  box-shadow: 0 0 0 4px rgba(66, 107, 157, 0.18);
}

.field textarea {
  min-height: 180px;
  resize: vertical;
}

.transport-toggle-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.transport-toggle-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 56px;
  border: 3px solid var(--sec-black);
  background: rgba(255, 255, 255, 0.95);
  padding: 0.7rem 0.85rem;
  cursor: pointer;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.transport-toggle-item.is-active {
  background: #ffd500;
  box-shadow: 4px 4px 0 rgba(17, 17, 17, 0.2);
}

.transport-toggle-item input[type="radio"] {
  margin: 0;
  width: 18px;
  height: 18px;
}

@media (max-width: 760px) {
  .transport-toggle-group {
    grid-template-columns: 1fr;
  }
}

.field small,
.helper-text {
  color: rgba(17, 17, 17, 0.78);
  font-weight: 600;
}

.field-error {
  color: #8f1730;
  font-weight: 700;
}

.btn {
  min-height: 56px;
  padding: 0.8rem 1.1rem;
  border: 3px solid var(--sec-black);
}

.btn-primary {
  background: var(--sec-red);
  color: var(--sec-white);
  box-shadow: 4px 4px 0 rgba(17, 17, 17, 0.22);
}

.btn-secondary {
  background: #ffd500;
  color: var(--sec-black);
  box-shadow: 4px 4px 0 rgba(17, 17, 17, 0.18);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.18);
  color: var(--sec-white);
}

.btn-danger {
  background: #141414;
  color: var(--sec-white);
}

.btn-inline {
  min-height: 42px;
  padding: 0.45rem 0.8rem;
  font-size: 0.95rem;
}

.toolbar {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.toolbar-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 150px auto;
  gap: 0.8rem;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card .card-inner {
  display: grid;
  gap: 0.45rem;
}

.stat-label {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

.table-meta {
  margin-bottom: 0.9rem;
  color: rgba(17, 17, 17, 0.72);
}

table {
  width: 100%;
  border-collapse: collapse;
  color: var(--sec-black);
  background: rgba(255, 255, 255, 0.9);
}

th,
td {
  padding: 0.85rem 0.9rem;
  border-top: 2px solid rgba(17, 17, 17, 0.14);
  text-align: left;
  vertical-align: top;
}

th {
  border-top: 0;
  background: rgba(3, 31, 80, 0.08);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
}

tbody tr:nth-child(even) {
  background: rgba(3, 31, 80, 0.035);
}

tbody tr.guest-row-registered,
tbody tr.guest-row-registered:nth-child(even) {
  background: rgba(15, 157, 88, 0.18);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  padding: 0.2rem 0.6rem;
  border: 2px solid var(--sec-black);
  background: #ffd500;
  color: var(--sec-black);
  font-weight: 800;
}

.pill-success {
  background: #b8f7b8;
}

.field-wide {
  grid-column: 1 / -1;
}

.sms-compose-card .card-inner {
  display: grid;
  gap: 0.75rem;
}

.sms-compose-form {
  display: grid;
  gap: 0.9rem;
}

.sms-compose-card .helper-text {
  color: rgba(255, 255, 255, 0.9);
}

.campaign-history-toggle {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.campaign-history-toggle strong {
  color: var(--sec-navy);
}

.campaign-history-hint {
  display: inline-block;
  margin-top: 0.35rem;
  color: var(--sec-red);
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.campaign-detail-row,
.campaign-detail-row:nth-child(even) {
  background: rgba(3, 31, 80, 0.08);
}

.campaign-detail-row td {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.campaign-report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.campaign-report-card {
  padding: 0.95rem 1rem;
  border: 3px solid rgba(17, 17, 17, 0.18);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 4px 4px 0 rgba(17, 17, 17, 0.08);
}

.campaign-report-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.campaign-report-card p {
  margin: 0 0 0.45rem;
}

.campaign-report-card p:last-child {
  margin-bottom: 0;
}

.campaign-progress {
  width: 100%;
  height: 16px;
  margin: 0.5rem 0 0.75rem;
  border: 2px solid var(--sec-black);
  background: rgba(3, 31, 80, 0.08);
  overflow: hidden;
}

.campaign-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #0f9d58 0%, #ffd500 100%);
}

.campaign-report-card-wide {
  grid-column: 1 / -1;
}

.campaign-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.campaign-filter-list .pill {
  justify-content: flex-start;
  min-width: auto;
  text-align: left;
}

.campaign-message-preview {
  margin-top: 0.65rem;
  padding: 0.85rem 0.95rem;
  border: 2px solid rgba(17, 17, 17, 0.16);
  background: rgba(3, 31, 80, 0.04);
  line-height: 1.6;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.empty-state {
  padding: 1.2rem 0;
}

.coaches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
}

.coach-card {
  width: 100%;
  border: 3px solid var(--sec-black);
  background: rgba(255, 255, 255, 0.98);
  color: var(--sec-black);
  padding: 0.95rem;
  display: grid;
  gap: 0.35rem;
  text-align: left;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(17, 17, 17, 0.18);
}

.coach-card.is-ready {
  background: #b8f7b8;
}

.coach-card.is-empty {
  background: #d9dde3;
}

.coach-card.is-pending {
  background: #fff6c2;
}

.coach-title {
  font-family: "Bangers", cursive;
  font-size: 1.25rem;
  line-height: 0.95;
}

.coach-meta {
  font-weight: 700;
}

.coach-status {
  margin-top: 0.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.coach-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 60;
}

.coach-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.coach-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.55);
}

.coach-modal-card {
  position: relative;
  width: min(100%, 1080px);
  max-height: 88vh;
  margin: 0;
  background: var(--sec-paper);
  border: 4px solid var(--sec-black);
  box-shadow: 7px 7px 0 rgba(17, 17, 17, 0.25);
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  overflow: hidden;
  transform: translateY(16px) scale(0.98);
  transition: transform 220ms ease;
}

.coach-modal.is-open .coach-modal-card {
  transform: translateY(0) scale(1);
}

.coach-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.coach-modal-header h3 {
  margin: 0;
  font-family: "Bangers", cursive;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  letter-spacing: 0.03em;
  color: var(--sec-black);
  text-shadow: none;
}

.coach-modal-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.coach-modal-table-wrap {
  overflow: auto;
}

.map-card .card-inner {
  display: grid;
  gap: 0.75rem;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
}

.legend-dot {
  width: 14px;
  height: 14px;
  border: 2px solid var(--sec-black);
  border-radius: 999px;
  display: inline-block;
}

.legend-dot-ready {
  background: #0f9d58;
}

.legend-dot-pending {
  background: #f4b400;
}

.coaches-map {
  width: 100%;
  min-height: 520px;
  border: 3px solid var(--sec-black);
}

.login-note {
  margin-top: 0.6rem;
  padding: 0.85rem 1rem;
  border: 3px dashed rgba(17, 17, 17, 0.26);
  background: rgba(255, 255, 255, 0.72);
  color: var(--sec-black);
}

.footer-note {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1rem;
  font-weight: 600;
}

@media (max-width: 1100px) {
  .hero-grid,
  .toolbar,
  .toolbar-form,
  .stats-grid,
  .campaign-report-grid {
    grid-template-columns: 1fr;
  }

  .hero-showcase {
    grid-template-columns: 1fr;
  }

  .hero-title-card h1 {
    max-width: none;
  }

  .hero-title-row {
    align-items: flex-start;
  }

  .hero-kids-stack {
    width: clamp(340px, 50vw, 560px);
    max-width: min(100%, 560px);
    transform: translateX(-0.2rem);
    top: 1.2rem;
  }

  .hero-kid-small-red {
    left: -3.5rem;
    max-width: 340px;
  }

  .hero-kid-small-pink {
    left: 2.9rem;
    max-width: 272px;
  }

  .hero-kid-green {
    left: 0;
    width: 100%;
    max-width: 560px;
  }
}

@media (max-width: 760px) {
  .topbar {
    padding: 1rem;
    align-items: flex-start;
  }

  .app-shell {
    width: min(100%, calc(100% - 1rem));
    padding: 1rem 0 3rem;
  }

  .card-inner {
    padding: 1.1rem;
  }

  .form-grid,
  .hero-badges,
  .hero-showcase {
    grid-template-columns: 1fr;
  }

  .lower-feature-grid {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .hero-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem;
  }

  .hero-kids-stack {
    justify-self: end;
    margin-right: 0;
    width: clamp(280px, 62vw, 400px);
    max-width: min(100%, 400px);
    transform: none;
    top: 0.7rem;
  }

  .hero-kid-small-red {
    left: -2.5rem;
    max-width: 240px;
    margin-bottom: 0;
  }

  .hero-kid-small-pink {
    left: 1.9rem;
    max-width: 192px;
    margin-bottom: 0;
  }

  .hero-kid-green {
    left: 0;
    width: 100%;
    max-width: 400px;
    margin-bottom: -0.12rem;
  }

  .hero-title-card .hero-lead {
    margin-top: 0;
    padding: 0.58rem 0.68rem;
  }

  .hero-event-strip {
    grid-template-columns: 1fr;
    margin-top: 0.35rem;
  }

  .hero-event-strip::before {
    left: 0.6rem;
    top: -0.95rem;
  }

  .hero-event-tile + .hero-event-tile {
    border-left: 0;
    border-top: 4px solid var(--sec-black);
  }

  .lower-kids-visual {
    width: min(100%, 520px);
    min-height: 180px;
    margin-top: -2.4rem;
    margin-left: -1rem;
  }

  .lower-kids-stage {
    inset: -4rem -0.25rem -0.2rem -0.25rem;
  }

  .speech-bubble {
    width: min(36%, 165px);
  }

  .speech-bubble-left {
    left: -10%;
    top: -1rem;
  }

  .speech-bubble-right {
    right: -6%;
    top: -0.9rem;
  }

  .lower-kid-red,
  .lower-kid-green {
    width: min(54%, 290px);
  }

  .lower-kid-pink {
    width: min(40%, 210px);
    left: 34%;
  }

  .lower-burst-lightning {
    left: 2%;
    top: -0.7rem;
    width: 58px;
  }

  .lower-burst-star {
    right: 3%;
    top: -0.1rem;
    width: 52px;
  }

  .lower-event-info {
    margin-top: 0.55rem;
    justify-self: stretch;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  h1 {
    font-size: clamp(3rem, 14vw, 4.6rem);
  }

  h2 {
    font-size: clamp(1.8rem, 10vw, 2.8rem);
  }

  th,
  td {
    padding: 0.7rem;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }
}
