:root {
  --yellow: #ffcc05;
  --blue: #0057b8;
  --red: #d71920;
  --bg: #07080d;
  --surface: #11131b;
  --surface-2: #191c27;
  --surface-3: #222635;
  --text: #f7f8fc;
  --muted: #aab1c2;
  --line: #303647;
  --ok: #4ade80;
  --error: #fb7185;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 96px;
}

[id] {
  scroll-margin-top: 96px;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(0, 87, 184, 0.36) 0%, rgba(0, 87, 184, 0.2) 12%, rgba(7, 8, 13, 0.98) 37%, rgba(7, 8, 13, 0.98) 63%, rgba(215, 25, 32, 0.2) 88%, rgba(215, 25, 32, 0.36) 100%),
    linear-gradient(180deg, #0d1018 0%, var(--bg) 38%, #05060a 100%);
  background-attachment: fixed;
}

body::before {
  content: none;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(7, 8, 13, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(16px);
}

.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue) 0%, #1b4f9f 32%, #551f55 50%, #a31225 68%, var(--red) 100%);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255,255,255,0.18), 0 10px 22px rgba(0,0,0,0.4);
}

.logo img {
  display: block;
  width: auto;
  height: 72px;
  max-width: 82px;
  border-radius: 0;
  background: none;
  filter:
    drop-shadow(0 0 8px rgba(255, 255, 255, 0.72))
    drop-shadow(0 0 18px rgba(255, 255, 255, 0.28));
}

.logo span {
  transform: translateY(1px);
}

nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

nav a,
.link-button,
.nav-login,
.nav-logout button {
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.nav-logout {
  margin: 0;
}

nav a:hover,
.nav-login:hover,
.link-button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 204, 5, 0.55);
  background: rgba(255, 204, 5, 0.09);
}

.site-footer {
  margin-top: clamp(34px, 5vw, 70px);
  background: #0d0d0f;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr 0.9fr 1.35fr;
  gap: clamp(18px, 3.4vw, 48px);
  padding: clamp(30px, 4vw, 48px) clamp(20px, 5vw, 66px);
}

.site-footer section {
  display: grid;
  align-content: start;
  gap: 14px;
}

.site-footer h2 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 21px;
  line-height: 1.1;
}

.site-footer a,
.site-footer p {
  margin: 0;
  color: var(--yellow);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.site-footer a {
  position: relative;
  padding-left: 18px;
}

.site-footer a::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--text);
}

.site-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px clamp(96px, 7vw, 132px) 16px clamp(70px, 5vw, 92px);
  background: #050506;
  color: var(--muted);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-socials a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--yellow);
  border: 1px solid rgba(255, 204, 5, 0.32);
  background: rgba(255, 204, 5, 0.04);
  text-decoration: none;
}

.footer-socials svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-socials a:first-child svg {
  fill: currentColor;
  stroke: none;
}

.footer-socials a::before {
  content: none;
}

.footer-shop-info {
  gap: 4px;
}

.footer-categories {
  grid-template-columns: repeat(2, max-content);
  column-gap: clamp(28px, 4vw, 56px);
  justify-content: start;
}

.footer-categories h2 {
  grid-column: 1 / -1;
}

.footer-shop-info a,
.footer-shop-info p {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  color: #ffd84a;
  line-height: 1.35;
  padding-left: 0;
}

.footer-shop-info a::before {
  content: none;
}

.footer-shop-info span {
  color: var(--yellow);
  text-align: center;
  filter: drop-shadow(0 0 7px rgba(0, 87, 184, 0.42)) drop-shadow(0 0 7px rgba(215, 25, 32, 0.34));
}

.footer-shop-info .footer-icon {
  display: grid;
  place-items: center;
}

.footer-shop-info .footer-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-hours {
  display: grid;
  gap: 0;
  margin-top: 5px;
}

.footer-shop-info .footer-hours p {
  margin: 0;
}

.footer-shop-info small {
  grid-column: 1 / -1;
  margin-top: 1px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.footer-shop-info small a {
  display: inline;
  padding: 0;
  color: var(--yellow);
  font-size: inherit;
  line-height: inherit;
}

.footer-shop-info small a::before {
  content: none;
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 64px;
}

.hero {
  position: relative;
  min-height: 500px;
  display: grid;
  align-content: center;
  padding: clamp(28px, 6vw, 76px);
  background:
    linear-gradient(135deg, rgba(255, 204, 5, 0.22), transparent 42%),
    linear-gradient(90deg, rgba(0, 87, 184, 0.72), rgba(215, 25, 32, 0.48)),
    var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  animation: rise 520ms ease both;
}

.hero::after {
  content: "PIAST";
  position: absolute;
  right: -18px;
  bottom: -22px;
  pointer-events: none;
  color: rgba(255, 255, 255, 0.055);
  font-size: clamp(82px, 19vw, 250px);
  font-weight: 900;
  line-height: 0.8;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2 {
  margin-top: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 16px;
  font-size: clamp(36px, 7vw, 76px);
  line-height: 0.98;
}

h2 {
  font-size: 24px;
}

p {
  color: var(--muted);
  line-height: 1.55;
}

.hero p:not(.eyebrow) {
  max-width: 640px;
  font-size: 18px;
}

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

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  background: var(--yellow);
  color: #08090d;
  padding: 0 20px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.button:hover,
button:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 12px 26px rgba(255, 204, 5, 0.18);
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.button.secondary {
  background: #050505;
  color: #ffffff;
  border: 1px solid var(--line);
}

.button.danger {
  background: rgba(215, 25, 32, 0.16);
  color: #ffffff;
  border: 1px solid rgba(215, 25, 32, 0.72);
}

.panel,
.card,
.notice {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)), var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
}

.panel,
.notice {
  padding: clamp(20px, 4vw, 34px);
  animation: rise 360ms ease both;
}

.narrow {
  max-width: 560px;
  margin: 0 auto;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
  animation: rise 360ms ease both;
}

.section-head h1 {
  font-size: clamp(34px, 5vw, 56px);
}

.admin-title-head {
  margin-top: clamp(22px, 3vw, 42px);
  margin-bottom: 10px;
  align-items: end;
}

.admin-title-head h1 {
  font-size: clamp(34px, 4vw, 50px);
}

.category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.category-bar a {
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
}

.category-bar a.active,
.category-bar a:hover {
  background: var(--yellow);
  color: #08090d;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.shop-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-content: center;
  align-items: start;
  gap: 42px 34px;
}

.card {
  padding: 18px;
  animation: rise 420ms ease both;
  transition: transform 180ms ease, border-color 180ms ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 204, 5, 0.45);
}

.product img,
.signup-card img,
.placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 16px;
  background:
    linear-gradient(135deg, rgba(0, 87, 184, 0.78), rgba(215, 25, 32, 0.72)),
    #111111;
}

.product-link {
  position: relative;
  display: block;
  color: var(--text);
  text-decoration: none;
  min-height: 420px;
  text-align: center;
}

.stock-ribbon {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 2;
  padding: 8px 10px;
  background: var(--red);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.stock-ribbon.out {
  background: var(--red);
  color: #ffffff;
}

.new-ribbon {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  padding: 8px 10px;
  background: var(--yellow);
  color: #08090d;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.shop-sort {
  display: block;
  margin: 0 0 14px;
}

.shop-sort label {
  display: grid;
  grid-template-columns: 78px minmax(160px, 1fr);
  align-items: center;
  max-width: 300px;
  min-height: 38px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.shop-sort select {
  min-width: 0;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--surface-2);
  color: var(--text);
  box-shadow: none;
}

.discount-ribbon {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  padding: 8px 10px;
  background: var(--yellow);
  color: #08090d;
  font-size: 13px;
  font-weight: 900;
}

.shop-grid .product img,
.shop-grid .placeholder {
  height: 360px;
  aspect-ratio: auto;
}

.shop-grid .product h2 {
  min-height: 48px;
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.35;
  text-transform: uppercase;
}

.shop-grid .product p {
  display: none;
}

.shop-grid .meta {
  display: grid;
  justify-content: center;
  margin: 8px 0 0;
}

.shop-grid .meta span {
  display: none;
}

.signup-detail {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: start;
}

.signup-detail-with-prices {
  grid-template-columns: minmax(280px, 0.9fr) minmax(420px, 1fr);
}

.signup-side {
  display: grid;
  gap: 12px;
}

.signup-hero {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.signup-hero img,
.signup-hero .placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  margin: 0;
}

.participants {
  display: grid;
  gap: 14px;
}

.participant-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
}

.participant-card:not([open]) {
  gap: 0;
}

.participant-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

.participant-head::-webkit-details-marker {
  display: none;
}

.participant-head strong {
  color: var(--yellow);
  font-size: 18px;
}

.participant-remove {
  min-height: 34px;
  padding: 6px 10px;
  background: rgba(215, 25, 32, 0.14);
  border: 1px solid rgba(215, 25, 32, 0.45);
  color: #ffffff;
}

.field-error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.18);
}

.field-error-text {
  color: var(--error);
  font-size: 13px;
  font-weight: 800;
}

.signup-size-picker {
  display: grid;
  grid-template-columns: 92px repeat(auto-fit, minmax(54px, 1fr));
  gap: 10px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.signup-size-picker > span {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.signup-size-picker label {
  display: grid;
  place-items: center;
  min-height: 50px;
  padding: 8px 6px;
  border: 1px solid transparent;
  cursor: pointer;
}

.signup-size-picker input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.signup-size-picker b {
  color: var(--text);
  font-size: 18px;
}

.signup-size-picker label:has(input:checked) {
  border-color: var(--yellow);
  background: rgba(255, 204, 5, 0.08);
}

.gendered-size-picker {
  display: block;
}

.gendered-size-picker > span {
  display: block;
  margin-bottom: 7px;
  color: var(--text);
  font-weight: 800;
  text-transform: none;
}

.signup-size-genders,
.signup-size-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.signup-size-group {
  grid-template-columns: repeat(auto-fit, minmax(54px, 1fr));
  margin-top: 10px;
}

.signup-size-group[hidden] {
  display: none;
}

.two-factor-card {
  max-width: 560px;
}

.two-factor-card h1 {
  margin-bottom: 18px;
  font-size: clamp(26px, 3vw, 34px);
}

.two-factor-form {
  gap: 18px;
}

.otp-code-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(42px, 1fr));
  gap: 8px;
}

.otp-code-grid input {
  min-height: 64px;
  padding: 0;
  border-radius: 8px;
  text-align: center;
  font-size: 30px;
  font-weight: 900;
}

.otp-code-grid input:focus {
  border-color: #2d7cff;
  box-shadow: 0 0 0 3px rgba(45, 124, 255, 0.22);
}

.access-login-panel {
  max-width: 520px;
}

.access-code-form {
  align-items: stretch;
}

.access-code-grid {
  grid-template-columns: repeat(4, minmax(54px, 1fr));
}

.access-code-grid input {
  min-height: 78px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 204, 5, 0.32);
  color: var(--yellow);
  box-shadow: inset 0 -4px 0 rgba(255, 204, 5, 0.14);
}

.login-drawer .access-code-grid {
  width: 100%;
}

.top-travelers {
  display: grid;
  gap: 10px;
}

.top-travelers p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.top-travelers strong {
  color: var(--yellow);
}

.compact-history {
  align-content: start;
}

.muted {
  color: var(--muted);
}

.compact-search {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto;
  gap: 10px;
  min-width: min(100%, 360px);
}

.compact-search > * {
  min-width: 0;
}

.mini-card-list {
  display: grid;
  gap: 10px;
}

.mini-card-list.district-breakdown {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini-card-list.trips {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.mini-stat-card {
  display: grid;
  gap: 7px;
  padding: 14px;
  min-height: 112px;
  background: linear-gradient(145deg, rgba(255, 204, 5, 0.08), rgba(0, 87, 184, 0.1));
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.mini-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 204, 5, 0.55);
  background: linear-gradient(145deg, rgba(255, 204, 5, 0.14), rgba(0, 87, 184, 0.14));
}

.mini-stat-card span {
  font-weight: 900;
}

.mini-stat-card em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.mini-stat-card strong {
  color: var(--yellow);
  align-self: end;
}

.traveler-line-card {
  min-height: 0;
  padding: 12px 14px;
  background: var(--surface-2);
}

.traveler-line-card > summary {
  cursor: pointer;
  list-style: none;
}

.traveler-line-card > summary::-webkit-details-marker,
.traveler-line-card > summary::marker {
  display: none;
  content: "";
}

.traveler-line-card span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.25;
}

.traveler-line-card strong {
  display: inline;
  align-self: auto;
}

.traveler-line-card em {
  display: inline;
  color: var(--muted);
  font-size: 0.74em;
  font-style: normal;
}

.traveler-trip-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.traveler-trip-list a {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text);
  text-decoration: none;
}

.traveler-trip-list a:hover {
  border-color: rgba(255, 204, 5, 0.45);
}

.traveler-trip-list span {
  white-space: normal;
}

.traveler-trip-list em {
  font-size: 0.82rem;
}

.traveler-trip-list small {
  color: var(--muted);
  font-size: 0.74rem;
}

.meta del,
.detail-price del {
  color: var(--muted);
  font-size: 14px;
  margin-right: 8px;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  padding: clamp(18px, 4vw, 36px);
  background: #f4f4f4;
  color: #08090d;
  animation: rise 420ms ease both;
}

.back-link {
  grid-column: 1 / -1;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 10px 0;
  color: #07080d;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.product-detail p {
  color: #555b66;
}

.product-gallery {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 22px;
}

.thumbs {
  display: grid;
  align-content: start;
  gap: 12px;
}

.thumbs img,
.thumbs .small {
  width: 100%;
  aspect-ratio: 1 / 1.25;
  object-fit: cover;
  opacity: 0.72;
  cursor: pointer;
  border: 2px solid transparent;
  transition: opacity 150ms ease, border-color 150ms ease;
}

.thumbs img.active,
.thumbs img:hover {
  opacity: 1;
  border-color: var(--yellow);
}

.main-photo {
  position: relative;
  overflow: hidden;
}

.main-photo img,
.main-photo .placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  background: rgba(7, 8, 13, 0.82);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
}

.gallery-arrow.prev {
  left: 14px;
}

.gallery-arrow.next {
  right: 14px;
}

.zoom-lens {
  position: absolute;
  z-index: 4;
  width: 150px;
  height: 150px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 18px 44px rgba(0,0,0,0.35);
  background-repeat: no-repeat;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.zoom-lens[hidden] {
  display: none;
}

.product-buy {
  padding-top: 4px;
}

.product-buy h1 {
  color: #07080d;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  text-transform: uppercase;
}

.state-line {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 38px;
  color: #263041;
  font-weight: 800;
  text-transform: uppercase;
}

.badge-out {
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 900;
}

.badge-out {
  background: var(--red);
  color: #ffffff;
}

.badge-new {
  padding: 10px 12px;
  background: var(--yellow);
  color: #08090d;
  font-size: 13px;
  font-weight: 900;
}

.detail-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 34px;
  padding-bottom: 34px;
  border-bottom: 1px solid #dedede;
}

.detail-price strong {
  font-size: 32px;
}

.detail-price span {
  background: var(--red);
  color: #ffffff;
  padding: 6px 8px;
  font-weight: 900;
}

.size-picker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 28px 0;
  border-bottom: 1px solid #dedede;
  border-top: 1px solid #dedede;
}

.size-picker > span {
  margin-right: 20px;
  color: #465064;
  font-weight: 800;
  text-transform: uppercase;
}

.size-picker label {
  display: inline-grid;
  place-items: center;
  gap: 2px;
  min-width: 52px;
  min-height: 52px;
  border: 2px solid transparent;
  color: #07080d;
  cursor: pointer;
}

.size-picker input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.size-picker label:has(input:checked) {
  border-color: #07080d;
}

.size-picker label.disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.size-picker small {
  color: #6c7280;
  font-size: 10px;
}

.spray-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  padding: 28px 0;
  border-bottom: 1px solid #dedede;
  border-top: 1px solid #dedede;
}

.spray-picker > span {
  grid-column: 1 / -1;
  color: #465064;
  font-weight: 900;
  text-transform: uppercase;
}

.spray-picker label {
  position: relative;
  display: grid;
  gap: 6px;
  justify-items: start;
  padding: 14px;
  background: #ffffff;
  border: 2px solid #e5e5e5;
  color: #08090d;
  cursor: pointer;
}

.spray-picker input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.spray-picker i {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #08090d;
  box-shadow: inset 0 0 0 4px #ffffff;
}

.spray-picker label:has(input:checked) {
  border-color: var(--yellow);
  box-shadow: inset 0 -4px 0 var(--yellow);
}

.spray-picker label.disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.buy-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  margin-top: 48px;
}

.buy-row input {
  background: #eeeeee;
  color: #07080d;
  text-align: center;
}

.buy-row button {
  background: #08090d;
  color: #ffffff;
}

.placeholder {
  display: grid;
  place-items: center;
  color: var(--yellow);
  font-size: 32px;
  font-weight: 900;
}

.meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0;
  color: var(--muted);
}

.meta strong {
  color: var(--yellow);
  font-size: 20px;
}

.empty-category {
  grid-column: 1 / -1;
  padding: 36px;
  background: var(--surface);
  border: 1px dashed rgba(255, 204, 5, 0.45);
  text-align: center;
}

.empty-category h2 {
  color: var(--yellow);
}

.stack {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  padding: 0 13px;
  outline: none;
}

textarea {
  min-height: 110px;
  padding-top: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 204, 5, 0.2);
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check input {
  width: 18px;
  min-height: 18px;
}

.alert {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  min-width: min(300px, calc(100vw - 32px));
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 12px 12px 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.36);
  animation: toastIn 180ms ease both;
}

.alert.hide {
  animation: toastOut 180ms ease both;
}

.alert span {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  text-align: left;
}

.toast-message span {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  text-align: left;
}

.alert button,
.toast-message button {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  width: 24px;
  min-height: 24px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}

.alert button:hover,
.toast-message button:hover {
  color: var(--text);
  transform: none;
}

.alert.ok {
  color: var(--ok);
}

.alert.error {
  color: var(--error);
}

.hint {
  margin: -4px 0 2px;
  font-size: 13px;
}

.cart-list {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}

.cart-row {
  display: grid;
  grid-template-columns: 92px 1fr 120px 54px;
  align-items: center;
  gap: 18px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015)), var(--surface-2);
  border: 1px solid var(--line);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
}

.cart-remove,
.delete-form button {
  min-height: 46px;
  min-width: 46px;
  padding: 0;
  background: rgba(215, 25, 32, 0.12);
  border: 1px solid rgba(215, 25, 32, 0.5);
}

.cart-remove span {
  position: relative;
  display: block;
  width: 18px;
  height: 20px;
  border: 2px solid #ffffff;
  border-top: 0;
}

.cart-remove span::before {
  content: "";
  position: absolute;
  left: -4px;
  top: -7px;
  width: 22px;
  height: 2px;
  background: #ffffff;
}

.cart-remove span::after {
  content: "";
  position: absolute;
  left: 5px;
  top: -11px;
  width: 8px;
  height: 4px;
  border: 2px solid #ffffff;
  border-bottom: 0;
}

.cart-row img,
.mini-placeholder {
  width: 92px;
  aspect-ratio: 1;
  object-fit: cover;
  background: linear-gradient(135deg, var(--blue), var(--red));
}

.cart-product-image {
  display: block;
  width: 92px;
  color: inherit;
  text-decoration: none;
}

.cart-product-link {
  display: block;
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
}

.cart-product-link:hover {
  color: var(--yellow);
}

.mini-placeholder {
  display: grid;
  place-items: center;
  color: var(--yellow);
  font-weight: 900;
}

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

.cart-row span,
.cart-row small {
  color: var(--muted);
  margin-top: 4px;
}

.cart-price-line {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.cart-price-line del {
  color: #8f98aa;
  text-decoration-color: rgba(215, 25, 32, 0.85);
}

.cart-price-line strong {
  display: inline;
  color: var(--yellow);
}

.cart-price-line em {
  display: inline-grid;
  place-items: center;
  min-height: 22px;
  padding: 2px 7px;
  background: #d71920;
  color: #fff;
  font-style: normal;
  font-weight: 900;
}

.cart-price-line span {
  display: inline;
  margin: 0;
}

.cart-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 18px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  padding: 16px;
}

.cart-summary h2,
.cart-summary p {
  margin: 0;
}

.cart-summary h2 {
  grid-column: 1 / -1;
  font-size: 20px;
}

.cart-summary p {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: var(--muted);
}

.cart-summary p strong {
  color: var(--yellow);
}

.cart-summary .cart-total-line {
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
  text-transform: uppercase;
}

.cart-summary .cart-total-line strong {
  font-size: 22px;
}

.cart-summary-actions {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.cart-summary-actions form {
  margin: 0;
}

.checkout-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.checkout-choice > div,
.locker-map {
  padding: 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.map-grid {
  min-height: 220px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    #0c0f17;
  background-size: 34px 34px;
}

.map-grid button {
  min-height: 54px;
  background: var(--surface-3);
  color: var(--text);
  border: 1px solid var(--line);
}

.map-grid button.selected {
  background: var(--yellow);
  color: #08090d;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stats-month-filter {
  display: flex;
  justify-content: flex-end;
  align-items: end;
  gap: 12px;
  margin: 0;
}

.stats-month-filter label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.stats-month-filter input {
  min-height: 42px;
  min-width: 180px;
}

.stats-month-filter > span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  color: var(--yellow);
  font-weight: 900;
}

.stats-range-toggle {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
  white-space: nowrap;
}

.stats div {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
}

.stats div > span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.stats strong {
  display: block;
  margin-top: 8px;
  color: var(--yellow);
  font-size: 30px;
}

.size-stock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  gap: 10px;
}

.form-subsection {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.form-subsection > summary {
  min-height: 48px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  color: var(--yellow);
  font-weight: 900;
  cursor: pointer;
}

.form-subsection > label {
  padding: 0 14px 14px;
}

.away-prices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(255, 204, 5, 0.1), rgba(0, 87, 184, 0.11));
  border: 1px solid rgba(255, 204, 5, 0.24);
}

.away-prices[hidden],
.gadget-price[hidden] {
  display: none;
}

.fare-options {
  display: grid;
  gap: 10px;
}

.fare-options[hidden],
.fare-options [hidden] {
  display: none;
}

.fare-options label {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  cursor: pointer;
}

.fare-options input[type="radio"] {
  width: 18px;
  min-height: 18px;
  padding: 0;
  border: 0;
  box-shadow: none;
  accent-color: var(--yellow);
}

.fare-options input[type="radio"]:focus {
  box-shadow: none;
}

.fare-options label:has(input:checked) {
  border-color: rgba(255, 204, 5, 0.7);
  box-shadow: inset 4px 0 0 var(--yellow);
}

.fare-options strong {
  color: var(--yellow);
}

.split-submit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid rgba(255, 204, 5, 0.72);
  background: rgba(255, 204, 5, 0.08);
}

.split-submit button {
  min-height: 54px;
  border: 0;
  background: transparent;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.split-submit button + button {
  border-left: 1px solid rgba(255, 204, 5, 0.72);
}

.split-submit button:hover {
  background: var(--yellow);
  color: #08090d;
  transform: none;
}

.section-head.compact {
  margin-bottom: 16px;
}

.admin-search {
  max-width: 420px;
}

.order-search {
  display: flex;
  gap: 8px;
  width: min(520px, 100%);
}

.order-search input {
  max-width: none;
}

.order-search button {
  min-height: 48px;
}

.account-order-button {
  width: 100%;
  justify-content: flex-start;
  margin: 8px 0;
  padding: 0 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  text-align: left;
}

.account-order-button:hover {
  border-color: rgba(255, 204, 5, 0.55);
  color: var(--yellow);
}

.account-order-button.payment-pending {
  border-color: rgba(244, 114, 182, 0.5);
  background: rgba(131, 24, 67, 0.16);
}

.account-order-button.canceled {
  border-color: rgba(215, 25, 32, 0.66);
  background: rgba(215, 25, 32, 0.14);
}

.admin-collapsible > summary .order-search,
.admin-collapsible > summary .compact-search {
  flex: 0 1 540px;
  margin: 0;
}

details.admin-modal-details.modal-details-open {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  align-content: start;
  justify-items: center;
  grid-auto-rows: max-content;
  padding: 56px 18px 24px;
  overflow: auto;
  background: rgba(3, 4, 8, 0.76);
  border: 0;
  box-shadow: none;
  backdrop-filter: blur(10px);
  animation: none;
}

details.admin-modal-details.modal-details-open > summary {
  display: none;
}

details.admin-modal-details.modal-details-open > form,
details.admin-modal-details.modal-details-open > .price-rules,
details.admin-modal-details.modal-details-open > .actions,
details.admin-modal-details.modal-details-open > .delete-form {
  width: min(860px, calc(100vw - 36px));
  margin: 0;
  border-inline: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

details.admin-modal-details.modal-details-open > form:first-of-type {
  padding: 20px;
  border-top: 1px solid var(--line);
}

details.admin-modal-details.modal-details-open > form.stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

details.admin-modal-details.modal-details-open > form.stack > label:has(textarea),
details.admin-modal-details.modal-details-open > form.stack > .size-stock-grid,
details.admin-modal-details.modal-details-open > form.stack > .form-subsection,
details.admin-modal-details.modal-details-open > form.stack > .away-prices,
details.admin-modal-details.modal-details-open > form.stack > .create-price-rules,
details.admin-modal-details.modal-details-open > form.stack > .admin-user-actions,
details.admin-modal-details.modal-details-open > form.stack > .actions {
  grid-column: 1 / -1;
}

details.admin-modal-details.modal-details-open textarea {
  min-height: 86px;
}

details.admin-modal-details.modal-details-open .check {
  min-height: 42px;
  align-self: end;
}

details.admin-modal-details.modal-details-open .away-prices {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

details.admin-modal-details.modal-details-open > .price-rules,
details.admin-modal-details.modal-details-open > .actions,
details.admin-modal-details.modal-details-open > .delete-form {
  padding-inline: 28px;
}

details.admin-modal-details.modal-details-open > .actions,
details.admin-modal-details.modal-details-open > .delete-form {
  padding-block: 14px 24px;
}

.modal-details-close {
  position: fixed;
  top: 14px;
  right: max(24px, calc((100vw - min(860px, calc(100vw - 36px))) / 2 + 10px));
  z-index: 72;
}

.order-history {
  margin: 8px 0;
}

.order-list {
  display: grid;
  gap: 12px;
}

.order-row {
  display: grid;
  grid-template-columns: 1.15fr 0.65fr auto;
  gap: 12px 18px;
  align-items: center;
  padding: 15px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.order-row.shipped {
  border-color: rgba(74, 222, 128, 0.65);
  background: rgba(34, 197, 94, 0.14);
}

.order-row.canceled {
  border-color: rgba(215, 25, 32, 0.66);
  background: rgba(215, 25, 32, 0.14);
}

.order-row.pending {
  border-color: rgba(255, 200, 0, 0.68);
  background: rgba(255, 200, 0, 0.12);
}

.order-row.payment-pending {
  border-color: rgba(244, 114, 182, 0.5);
  background: rgba(131, 24, 67, 0.16);
}

.payment-pending-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(244, 114, 182, 0.45);
  background: rgba(131, 24, 67, 0.16);
  color: #fce7f3;
  font-weight: 800;
}

.payment-pending-note form {
  margin: 0;
}

.button.tiny,
button.tiny {
  min-height: 32px;
  padding: 0 12px;
  font-size: 12px;
}

.order-row strong,
.order-row span {
  display: block;
}

.order-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.order-items {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.order-info-button {
  min-height: 46px;
}

.order-status-form,
.ticket-send-form {
  margin: 0;
}

.order-status-form select {
  min-height: 42px;
}

.price-rules {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
}

.price-rule-row,
.music-list > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.music-list {
  display: grid;
  gap: 10px;
}

.music-list > div {
  align-items: end;
}

.music-edit-form {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 96px 96px auto;
  gap: 10px;
  align-items: end;
  margin: 0;
}

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

.price-rule-form,
.site-settings-grid,
.district-trip-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.site-settings-grid > form:first-child {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}

.site-settings-grid > form:first-child > label:first-of-type,
.site-settings-grid > form:first-child > .shop-hours-admin,
.site-settings-grid > form:first-child > .actions {
  grid-column: 1 / -1;
}

.shop-hours-admin {
  display: grid;
  grid-template-columns: 150px repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  padding: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
}

.shop-hours-admin strong,
.footer-links-admin strong {
  color: var(--yellow);
  align-self: center;
}

.footer-links-admin {
  align-self: start;
  padding: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
}

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

.price-rule-form.gadget-rule-form {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}

.price-rule-create-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.variant-builder {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.variant-builder-wrap > span {
  display: block;
  margin-bottom: 8px;
  font-weight: 900;
}

.variant-builder-list {
  display: grid;
  gap: 8px;
}

.variant-builder-row {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr 0.8fr 0.8fr auto;
  gap: 8px;
  align-items: end;
  padding: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
}

.variant-builder-row label {
  margin: 0;
}

.terms-check {
  align-items: flex-start;
}

.terms-check a {
  color: var(--yellow);
  font-weight: 900;
}

.terms-panel h2 {
  color: var(--yellow);
  margin-top: 22px;
}

.create-price-rules {
  grid-column: 1 / -1;
}

.district-trip-stats article {
  padding: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.district-trip-stats h3 {
  margin: 0 0 10px;
  color: var(--yellow);
}

.district-trip-stats p {
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.admin-products {
  margin-top: 18px;
}

.panel.admin-collapsible + .panel.admin-collapsible,
.admin-quick-actions + .panel.admin-collapsible,
.order-history + .admin-quick-actions {
  margin-top: 8px;
}

.admin-quick-actions {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.admin-quick-actions .panel.admin-collapsible + .panel.admin-collapsible {
  margin-top: 0;
}

.admin-collapsible > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 68px;
  padding: 0 28px;
  cursor: pointer;
  list-style: none;
}

details.admin-collapsible > summary,
.district-admin-compact > summary {
  min-height: 68px;
  padding: 0 28px;
  background: transparent;
}

.panel.admin-collapsible {
  padding: 0;
}

.admin-quick-actions .admin-collapsible {
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0;
}

.admin-collapsible > summary::-webkit-details-marker,
.admin-collapsible > summary::marker,
.district-admin-compact summary::-webkit-details-marker,
.district-admin-compact summary::marker {
  display: none;
  content: "";
}

.admin-collapsible > summary span,
.admin-collapsible > summary h2 {
  color: var(--yellow);
  font-size: 22px;
  font-weight: 900;
}

.admin-collapsible > summary small,
.admin-collapsible > summary p {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
  text-align: right;
}

.admin-collapsible > summary > div {
  display: grid;
  gap: 8px;
}

.admin-collapsible > summary > small,
.admin-collapsible > summary > a,
.admin-collapsible > summary > div + small {
  margin-left: auto;
  max-width: 420px;
}

.admin-collapsible > summary > a {
  flex: 0 0 auto;
}

.admin-collapsible > form,
.admin-collapsible > .site-settings-grid,
.admin-collapsible > .category-tabs,
.admin-collapsible > .admin-category,
.admin-collapsible > .admin-section-note,
.admin-collapsible > .mini-card-list,
.admin-collapsible > .order-list,
.admin-collapsible > .pagination,
.admin-collapsible > .admin-user-list {
  margin-top: 0;
  padding: 18px;
  border-top: 1px solid var(--line);
}

.admin-section-note {
  margin: 0;
  color: var(--muted);
}

.district-stat-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, max-content));
  align-items: start;
  gap: 10px;
  margin-top: 14px;
}

.district-stat-links a,
.district-stat-details > summary {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.district-stat-details {
  position: relative;
  min-width: 0;
}

.district-stat-details > summary::-webkit-details-marker,
.district-stat-details > summary::marker {
  display: none;
  content: "";
}

.district-stat-links a:hover,
.district-stat-details > summary:hover {
  border-color: rgba(255, 204, 5, 0.55);
  color: var(--yellow);
}

.district-trip-list {
  display: grid;
  gap: 6px;
  width: min(100%, 260px);
  margin-top: 6px;
  padding: 7px;
  border: 1px solid var(--line);
  background: rgba(15, 21, 32, 0.92);
}

.district-trip-list a {
  display: grid;
  gap: 2px;
  min-height: 0;
  padding: 7px 9px;
  background: rgba(255, 255, 255, 0.035);
}

.district-trip-list span {
  font-weight: 900;
}

.district-trip-list small {
  color: var(--muted);
}

.category-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.category-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
}

.category-tabs a.active,
.category-tabs a:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #08090d;
}

.admin-category {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.admin-events-grid {
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}

.admin-category h3 {
  grid-column: 1 / -1;
  margin: 0 0 10px;
  color: var(--yellow);
  font-size: 18px;
  text-transform: uppercase;
}

.admin-product {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #11151f;
}

.admin-product[open] {
  grid-column: 1 / -1;
}

.admin-products .admin-product[open] > summary {
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
}

.admin-products .admin-product[open] .admin-product-thumb {
  width: 180px;
  height: 180px;
  aspect-ratio: auto;
}

.admin-product summary {
  display: grid;
  gap: 12px;
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.admin-product summary::-webkit-details-marker {
  display: none;
}

.admin-product-thumb {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--blue), var(--red));
  overflow: hidden;
}

.admin-event-card > summary {
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  min-height: 150px;
  gap: 0;
}

.admin-event-card .admin-product-thumb {
  width: 150px;
  height: 150px;
  aspect-ratio: auto;
  min-height: 0;
}

.admin-event-card .admin-product-info {
  align-content: center;
  gap: 8px;
  min-width: 0;
  padding: 18px;
}

.admin-event-card .admin-product-info strong {
  font-size: 18px;
  line-height: 1.2;
}

.admin-event-card .admin-product-info span {
  font-size: 13px;
}

.admin-event-card .admin-product-info b {
  white-space: nowrap;
}

.admin-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-product-thumb span {
  color: var(--yellow);
  font-size: 26px;
  font-weight: 900;
}

.admin-product-thumb em {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 8px;
  background: var(--red);
  color: #ffffff;
  font-style: normal;
}

.admin-product-thumb em.status-new {
  top: 10px;
  left: 10px;
  right: auto;
  background: var(--yellow);
  color: #08090d;
}

.admin-product-thumb em.status-live {
  background: var(--yellow);
  color: #08090d;
}

.admin-product-thumb em.status-closed {
  background: var(--red);
}

.admin-product-thumb em.status-discount {
  top: 44px;
  right: 10px;
}

.admin-product-info {
  display: grid;
  gap: 5px;
  padding: 0 14px 14px;
}

.admin-product-info span {
  color: var(--muted);
  font-size: 13px;
}

.admin-product-info b {
  color: var(--yellow);
  font-size: 20px;
}

.admin-product form {
  margin: 0;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.admin-product > .delete-form button {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  background: rgba(215, 25, 32, 0.18);
  border-color: rgba(215, 25, 32, 0.75);
  color: #ffffff;
  font-weight: 900;
}

.admin-product > .delete-form button:hover {
  background: var(--red);
}

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

.admin-edit-form label:has(textarea),
.admin-edit-form .size-stock-grid,
.admin-edit-form .actions {
  grid-column: 1 / -1;
}

.signup-dashboard {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.signup-counts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.signup-counts p {
  display: grid;
  gap: 6px;
  margin: 0;
  min-width: 0;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 800;
}

.signup-counts span {
  color: var(--muted);
}

.signup-counts strong {
  color: var(--yellow);
  font-size: 20px;
  line-height: 1.2;
  word-break: keep-all;
}

.signup-counts p:first-child {
  grid-column: auto;
}

.district-chart {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.signup-size-charts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.signup-size-charts .district-chart {
  grid-template-columns: 150px minmax(0, 1fr);
  min-width: 0;
}

.district-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.district-legend h2 {
  flex-basis: 100%;
  margin-bottom: 2px;
}

.district-legend p,
.size-filter-chip {
  margin: 0;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
}

.size-filter-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}

.size-filter-chip:hover,
.size-filter-chip.active {
  border-color: var(--yellow);
  background: rgba(255, 204, 5, 0.1);
  color: var(--text);
}

.district-legend strong,
.size-filter-chip strong {
  color: var(--text);
}

.size-filter-chip.active strong {
  color: var(--yellow);
}

.active-size-filter {
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 800;
}

.active-size-filter strong,
.active-size-filter a {
  color: var(--yellow);
}

.active-size-filter a {
  margin-left: 10px;
}

.pie {
  width: 140px;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1), 0 0 0 8px rgba(255,255,255,0.04);
}

.pie-svg {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
}

.pie-svg path,
.pie-svg circle {
  transition: filter 150ms ease, transform 150ms ease;
  transform-origin: center;
}

.pie-svg path:hover,
.pie-svg circle:hover {
  filter: brightness(1.2);
}

.chart-tooltip {
  position: fixed;
  z-index: 90;
  padding: 8px 10px;
  background: #05070c;
  border: 1px solid rgba(255, 204, 5, 0.55);
  color: var(--text);
  box-shadow: 0 14px 34px rgba(0,0,0,0.35);
  font-weight: 800;
  pointer-events: none;
}

.district-add-form,
.district-admin-row,
.district-admin-row form:first-child {
  display: flex;
  gap: 10px;
  align-items: center;
}

.district-add-form {
  margin-bottom: 14px;
}

.district-admin-list {
  display: grid;
  gap: 10px;
}

.district-admin-row {
  justify-content: space-between;
  padding: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.district-admin-row form {
  margin: 0;
}

.district-admin-compact {
  margin-top: 22px;
}

.district-admin-compact summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.district-admin-compact summary::-webkit-details-marker {
  display: none;
}

.district-admin-compact summary span {
  font-size: 22px;
}

.district-admin-compact summary small {
  color: var(--muted);
}

.district-admin-compact .district-add-form {
  display: grid;
  grid-template-columns: minmax(180px, 320px) auto;
  margin-top: 16px;
  margin-bottom: 10px;
}

.district-admin-compact .district-admin-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.district-admin-compact .district-admin-row {
  padding: 8px;
}

.district-admin-compact .district-admin-row form:first-child {
  flex: 1;
}

.district-admin-compact .district-admin-row input {
  min-width: 0;
}

.person-search {
  margin-bottom: 14px;
}

.signup-list {
  display: grid;
  gap: 12px;
}

.signup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.signup-row.payment-pending {
  border-color: rgba(244, 114, 182, 0.5);
  background: rgba(131, 24, 67, 0.16);
}

.signup-row-main {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.signup-row-main strong,
.signup-row-main span,
.signup-row-main small {
  overflow-wrap: anywhere;
}

.signup-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.signup-row-actions form {
  margin: 0;
}

.signup-row-actions .ticket-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  min-height: 42px;
  padding-inline: 14px;
  white-space: nowrap;
  line-height: 1;
}

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

.signup-edit-form label:first-of-type,
.signup-edit-form .actions {
  grid-column: 1 / -1;
}

.signup-payment-summary,
.bulk-message-form {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
}

.signup-payment-summary h2,
.bulk-message-form h2 {
  margin: 0;
  color: var(--yellow);
  font-size: 20px;
}

.signup-payment-summary p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  color: var(--muted);
}

.signup-payment-summary strong {
  color: var(--text);
}

.signup-payment-summary .total {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--yellow);
  font-weight: 900;
}

.signup-payment-summary .total strong {
  color: var(--yellow);
}

.bulk-message-form {
  margin-top: 10px;
}

.bulk-message-form button {
  width: fit-content;
  min-width: 180px;
}

.pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 4px;
}

.pagination-center {
  grid-column: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.pagination a {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 900;
  text-decoration: none;
}

.pagination a.disabled {
  pointer-events: none;
  opacity: 0.4;
}

.pagination-jump {
  margin: 0;
}

.pagination-jump input {
  width: 74px;
  min-height: 42px;
  text-align: center;
  font-weight: 900;
}

.pagination small {
  justify-self: end;
  color: var(--muted);
  font-weight: 800;
}

.pagination a.active,
.pagination-center a:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #08090d;
}

.signup-print-report {
  display: none;
}

.ticket-send-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ticket-send-form input[type="file"] {
  max-width: 180px;
  min-height: 42px;
  padding: 8px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
  opacity: 0;
  transition: opacity 160ms ease;
}

body.modal-open {
  overflow: hidden;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-backdrop.open {
  opacity: 1;
}

.modal-card {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  transform: translateY(12px);
  transition: transform 160ms ease;
}

.modal-backdrop.open .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  min-height: 44px;
  padding: 0;
  background: transparent;
  color: var(--yellow);
  border: 0;
  font-size: 30px;
}

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

.order-info-grid p,
.order-modal-items {
  margin: 0;
  padding: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.order-info-grid .wide {
  grid-column: 1 / -1;
}

.order-info-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.order-modal-items {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.order-item-line {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) minmax(110px, auto) minmax(90px, auto);
  gap: 12px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.order-item-line.compact {
  grid-template-columns: minmax(0, 1fr) minmax(110px, auto) minmax(90px, auto);
}

.order-item-line:last-child {
  border-bottom: 0;
}

.order-item-line img,
.order-item-line i {
  width: 54px;
  height: 54px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--blue), var(--red));
}

.order-item-line i {
  display: grid;
  place-items: center;
  color: var(--yellow);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.order-item-line strong,
.order-item-line small {
  display: block;
}

.order-item-line small,
.order-item-line em {
  color: var(--muted);
  font-style: normal;
}

.order-item-line b {
  color: var(--text);
  text-align: right;
}

.shop-sale-note {
  margin: 0;
  padding: 14px;
  background: rgba(255, 204, 5, 0.1);
  border: 1px solid rgba(255, 204, 5, 0.36);
  color: var(--yellow);
  font-weight: 800;
}

.facebook-corner {
  position: fixed;
  right: 14px;
  top: 118px;
  z-index: 20;
  width: min(300px, calc(100vw - 28px));
  height: 450px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 14px 36px rgba(0,0,0,0.32);
  overflow: hidden;
}

.facebook-corner iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.background-music {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 12;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0.01;
}

.music-toggle {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 70;
  width: 44px;
  min-height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  background: var(--yellow);
  border: 1px solid var(--yellow);
  color: #05070d;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.music-toggle span {
  position: relative;
  width: 20px;
  height: 18px;
  display: block;
}

.music-toggle span::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 8px;
  height: 8px;
  background: currentColor;
}

.music-toggle span::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 12px;
  height: 14px;
  border: 3px solid currentColor;
  border-left: 0;
  border-radius: 0 14px 14px 0;
}

.music-toggle.is-muted {
  background: var(--surface);
  color: var(--muted);
  border-color: var(--line);
}

.music-toggle.is-muted span {
  transform: rotate(-8deg);
}

.music-toggle.is-muted span::after {
  width: 14px;
  height: 3px;
  top: 8px;
  left: 8px;
  border: 0;
  border-radius: 0;
  background: currentColor;
  transform: rotate(45deg);
}

.signup-row form {
  margin: 0;
}

.signup-row span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.signup-meta-line {
  display: block;
  margin-top: 5px;
  color: #8f98aa;
  font-size: 12px;
  font-weight: 700;
}

.signup-row.payment-paid {
  border-color: rgba(74, 222, 128, 0.65);
  background: rgba(34, 197, 94, 0.16);
}

.ticket-toggle {
  min-width: 118px;
  min-height: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  background: rgba(255, 204, 5, 0.12);
  color: var(--yellow);
  border: 1px solid rgba(255, 204, 5, 0.48);
}

.signup-row.payment-paid .ticket-toggle {
  background: rgba(74, 222, 128, 0.18);
  color: var(--ok);
  border-color: rgba(74, 222, 128, 0.6);
}

.delete-icon-button {
  display: grid;
  place-items: center;
  min-width: 46px;
  min-height: 46px;
  padding: 0;
  background: rgba(215, 25, 32, 0.12);
  border: 1px solid rgba(215, 25, 32, 0.5);
}

.delete-icon-button span {
  position: relative;
  display: block;
  width: 18px;
  height: 20px;
  border: 2px solid #ffffff;
  border-top: 0;
}

.delete-icon-button span::before {
  content: "";
  position: absolute;
  left: -4px;
  top: -7px;
  width: 22px;
  height: 2px;
  background: #ffffff;
}

.delete-icon-button span::after {
  content: "";
  position: absolute;
  left: 5px;
  top: -11px;
  width: 8px;
  height: 4px;
  border: 2px solid #ffffff;
  border-bottom: 0;
}

.floating-cart-wrap {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 25;
  display: grid;
  justify-items: end;
  gap: 12px;
}

.scroll-top-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0 8px 14px 0;
  padding: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--yellow);
  border: 1px solid rgba(255, 204, 5, 0.45);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.floating-cart {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  background: var(--yellow);
  color: #08090d;
  border-radius: 50%;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34), 0 0 0 5px rgba(255, 204, 5, 0.16);
  text-decoration: none;
}

.cart-popover {
  position: absolute;
  right: 0;
  bottom: 78px;
  width: 380px;
  max-height: 520px;
  overflow: auto;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 22px 60px rgba(0,0,0,0.35);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 170ms ease, transform 170ms ease;
}

.floating-cart:hover + .cart-popover,
.cart-popover:hover {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cart-popover b {
  display: block;
  margin-top: 12px;
  color: var(--yellow);
  text-align: right;
}

.mini-cart-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.mini-cart-row img,
.mini-cart-row span {
  width: 52px;
  aspect-ratio: 1;
  object-fit: cover;
  background: linear-gradient(135deg, var(--blue), var(--red));
}

.mini-cart-row span {
  display: grid;
  place-items: center;
  color: var(--yellow);
  font-weight: 900;
}

.mini-cart-row strong,
.mini-cart-row small {
  display: block;
}

.mini-cart-row small {
  color: var(--muted);
  margin-top: 4px;
}

.cart-symbol {
  position: relative;
  width: 26px;
  height: 20px;
  border: 3px solid #08090d;
  border-top: 0;
}

.cart-symbol::before {
  content: "";
  position: absolute;
  left: -5px;
  top: -10px;
  width: 12px;
  height: 10px;
  border-top: 3px solid #08090d;
  transform: rotate(-20deg);
}

.cart-symbol::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: -9px;
  height: 5px;
  border-left: 5px solid #08090d;
  border-right: 5px solid #08090d;
}

.floating-cart #cartCount {
  position: absolute;
  right: -11px;
  top: 2px;
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--red);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.muted-row {
  opacity: 0.55;
}

.map-needed {
  display: grid;
  gap: 8px;
  padding: 22px;
  background: var(--surface-3);
  border: 1px dashed rgba(255, 204, 5, 0.5);
}

inpost-geowidget {
  display: block;
  height: 520px;
}

[hidden] {
  display: none !important;
}

.color-size-picker {
  display: grid;
  gap: 14px;
  padding: 22px 0;
  border-top: 1px solid #d9d9d9;
  border-bottom: 1px solid #d9d9d9;
}

.color-size-picker > span {
  color: #465064;
  font-weight: 900;
  text-transform: uppercase;
}

.color-choice-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.color-choice-list label {
  position: relative;
  min-width: 126px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid #d9d9d9;
  color: #07080d;
  cursor: pointer;
}

.color-choice-list input {
  position: absolute;
  opacity: 0;
}

.color-choice-list i {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #08090d;
  box-shadow: inset 0 0 0 4px #ffffff;
}

.color-choice-list label:has(input:checked) {
  border-color: #08090d;
  box-shadow: inset 0 -4px 0 var(--yellow);
}

.color-choice-list b,
.color-choice-list small {
  display: block;
  margin-top: 7px;
}

.color-choice-list small {
  color: #6c7280;
}

.order-list .order-items {
  gap: 0;
  padding-top: 6px;
}

.order-list .order-item-line.compact {
  min-height: 30px;
  padding: 3px 0;
  font-size: 12px;
}

.order-list .order-item-line.compact small {
  font-size: 11px;
}

.order-item-line {
  color: inherit;
  text-decoration: none;
}

.order-item-line:hover strong {
  color: var(--yellow);
}

.order-total-line {
  grid-template-columns: minmax(0, 1fr) minmax(90px, auto);
  border-top: 1px solid var(--line);
  color: var(--yellow);
  font-weight: 900;
}

.delivery-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.delivery-fields label:first-child {
  grid-column: 1 / -1;
}

.checkout-form {
  gap: 12px;
}

.checkout-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.checkout-fields-grid label:last-child {
  grid-column: 1 / -1;
}

.checkout-notes {
  display: block;
}

.checkout-notes input {
  width: 100%;
}

.checkout-summary {
  display: grid;
  gap: 8px;
  padding: 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.checkout-summary h2 {
  margin: 0 0 6px;
  color: var(--yellow);
}

.checkout-summary hr {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  margin: 8px 0;
}

.checkout-summary-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  color: var(--text);
  text-decoration: none;
}

.checkout-summary-item:hover span {
  color: var(--yellow);
}

.checkout-summary-item img,
.checkout-summary-item i {
  width: 46px;
  height: 46px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--blue), var(--red));
}

.checkout-summary-item i {
  display: grid;
  place-items: center;
  color: var(--yellow);
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
}

.checkout-summary-item span {
  min-width: 0;
  color: var(--muted);
  transition: color 160ms ease;
}

.checkout-discount-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.checkout-discount-line del {
  color: #8f98aa;
  text-decoration-color: rgba(215, 25, 32, 0.85);
}

.checkout-discount-line b {
  color: var(--yellow);
}

.checkout-discount-line em {
  display: inline-grid;
  place-items: center;
  min-height: 20px;
  padding: 2px 7px;
  background: #d71920;
  color: #fff;
  font-style: normal;
  font-weight: 900;
}

.checkout-discount-line i {
  width: auto;
  height: auto;
  background: transparent;
  color: var(--muted);
  font-size: inherit;
  font-style: normal;
  font-weight: 700;
}

.checkout-summary p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  color: var(--muted);
}

.checkout-summary strong {
  color: var(--text);
}

.checkout-summary .total {
  margin-top: 8px;
  color: var(--yellow);
  font-weight: 900;
}

.phone-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.35fr) 1fr;
  gap: 12px;
}

.g-recaptcha {
  min-height: 78px;
}

.small-account-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: 12px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 204, 5, 0.32);
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
  box-shadow: inset 0 -3px 0 rgba(255, 204, 5, 0.18);
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
}

.small-account-link:hover {
  background: rgba(255, 204, 5, 0.1);
  border-color: var(--yellow);
  color: var(--yellow);
  transform: translateY(-1px);
}

.login-link-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.login-link-actions .small-account-link {
  margin-top: 0;
}

.signup-limit-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.signup-limit-note span {
  padding: 9px 12px;
  background: rgba(255, 204, 5, 0.1);
  border: 1px solid rgba(255, 204, 5, 0.34);
  color: var(--yellow);
  font-weight: 900;
}

.signup-price-list {
  display: grid;
  gap: 12px;
  align-self: start;
  width: 100%;
  padding: 13px 14px;
  background: linear-gradient(135deg, rgba(255, 204, 5, 0.08), rgba(0, 87, 184, 0.08));
  border: 1px solid rgba(255, 204, 5, 0.24);
  box-shadow: inset 4px 0 0 rgba(255, 204, 5, 0.85);
  color: var(--muted);
  font-size: 13px;
}

.signup-price-row,
.signup-price-thresholds {
  display: grid;
  gap: 8px 14px;
  align-items: start;
}

.signup-price-thresholds {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 204, 5, 0.18);
}

.signup-price-list strong {
  color: var(--yellow);
  font-size: 15px;
  text-transform: uppercase;
}

.signup-price-list span {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--text);
}

.signup-price-list em {
  color: var(--muted);
  font-style: normal;
}

.signup-price-list b {
  color: var(--text);
  text-align: right;
}

.account-panel {
  padding-top: 28px;
}

.account-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.account-header h1,
.account-header p,
.account-header form {
  margin: 0;
}

.account-header p {
  color: var(--muted);
  margin-top: 6px;
}

.account-settings-layout {
  display: grid;
  gap: 14px;
}

.account-edit {
  padding: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.account-edit h2 {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: 18px;
}

.account-data-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.account-data-form .wide {
  grid-column: span 2;
}

.account-data-form button {
  min-height: 45px;
}

.account-security-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 14px;
  align-items: start;
}

.admin-user-create {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 16px;
  border-top: 1px solid var(--line);
}

.admin-user-create button,
.account-security-grid .account-edit {
  align-self: start;
}

.account-2fa-card {
  min-height: 100%;
}

.totp-box {
  display: grid;
  gap: 6px;
  padding: 12px;
  background: rgba(255, 200, 0, 0.08);
  border: 1px solid rgba(255, 200, 0, 0.28);
}

.totp-box span,
.totp-box small {
  color: var(--muted);
}

.totp-box strong {
  word-break: break-all;
  color: var(--yellow);
  letter-spacing: 0;
}

.totp-box.compact {
  margin: 0;
}

.totp-status {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(34, 197, 94, 0.32);
  background: rgba(34, 197, 94, 0.1);
  color: var(--muted);
  font-size: 0.9rem;
}

.totp-modal {
  max-width: 480px;
}

.totp-qr {
  width: 220px;
  height: 220px;
  margin: 10px auto 14px;
  display: block;
  background: #ffffff;
  padding: 10px;
}

.phone-combo {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px;
}

.phone-combo select,
.phone-combo input {
  width: 100%;
}

.admin-user-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, auto);
  gap: 12px;
  align-items: start;
  padding: 18px;
  border-top: 1px solid var(--line);
}

.admin-user-search {
  margin-top: 0;
  width: 100%;
}

.admin-user-create-panel {
  position: relative;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.admin-user-create-panel > summary {
  display: grid;
  place-items: center;
  min-height: 48px;
  padding: 0 18px;
  background: var(--yellow);
  color: #08090d;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.admin-user-create-panel > summary::-webkit-details-marker,
.admin-user-create-panel > summary::marker {
  display: none;
  content: "";
}

.admin-user-create-panel[open] {
  grid-column: 1 / -1;
}

.admin-user-list {
  display: grid;
  gap: 10px;
}

.admin-user-row {
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.admin-user-row summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  cursor: pointer;
}

.admin-user-row summary strong {
  color: var(--yellow);
}

.admin-user-row summary span {
  color: var(--muted);
}

.admin-user-row form {
  padding: 14px;
  border-top: 1px solid var(--line);
}

.admin-user-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-user-actions > button:first-child {
  flex: 1 1 auto;
}

.admin-user-actions .danger {
  flex: 0 0 auto;
}

.inline-delete-form {
  display: none !important;
}

.order-modal-items .order-item-line {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.order-modal-items .order-item-line:has(+ .order-summary-start) {
  border-bottom: 0;
}

.order-modal-items .order-item-line.last-product-line {
  border-bottom: 0;
}

.order-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 6px 0;
  color: var(--muted);
}

.order-summary-row b {
  color: var(--text);
}

.order-summary-row.order-total-line {
  padding-top: 10px;
  color: var(--yellow);
  font-weight: 900;
}

.order-summary-start {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding-top: 88px;
  padding-right: clamp(28px, 8vw, 150px);
  background: transparent;
  opacity: 0;
  transition: opacity 220ms ease;
}

.login-overlay[hidden] {
  display: none;
}

.login-overlay.open {
  opacity: 1;
}

.login-drawer {
  width: min(430px, calc(100vw - 32px));
  padding: 44px 70px 54px;
  background: #ffffff;
  color: #1a1a1a;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.24);
  transform: translateY(-130%);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.login-overlay.open .login-drawer {
  transform: translateY(0);
}

.login-drawer h2 {
  margin-bottom: 30px;
  color: #1a1a1a;
  text-align: center;
  font-size: 30px;
}

.drawer-form {
  display: grid;
  gap: 22px;
}

.drawer-form input {
  min-height: 46px;
  border: 0;
  border-bottom: 2px solid #333333;
  background: #ffffff;
  color: #1a1a1a;
  text-align: center;
}

.drawer-form a,
.drawer-register {
  color: #1a1a1a;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
}

.drawer-form button {
  margin-top: 2px;
  min-height: 58px;
  background: #ffffff;
  color: #1a1a1a;
  border: 2px solid #dedede;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.drawer-register {
  display: block;
  margin-top: 18px;
}

.login-close {
  position: fixed;
  top: 42px;
  right: clamp(28px, 8vw, 150px);
  z-index: 41;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  background: transparent;
  color: var(--yellow);
  border: 0;
  font-size: 38px;
  line-height: 1;
}

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: grid;
  gap: 10px;
  justify-items: end;
  pointer-events: none;
}

.toast-stack > * {
  pointer-events: auto;
}

.toast-message {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  min-width: min(280px, calc(100vw - 32px));
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 12px 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 180ms ease, transform 180ms ease;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.36);
}

.toast-message.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-message.ok {
  border-color: rgba(74, 222, 128, 0.55);
}

.toast-message.error {
  border-color: rgba(251, 113, 133, 0.65);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(14px);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@media (max-width: 760px) {
  .topbar,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .two-col,
  .admin-quick-actions,
  .checkout-choice,
  .signup-dashboard,
  .signup-size-charts,
  .district-chart,
  .signup-detail,
  .admin-edit-form,
  .order-row,
  .signup-row,
  .price-rule-form,
  .site-settings-grid,
  .district-trip-stats,
  .account-data-form,
  .account-security-grid,
  .checkout-fields-grid,
  .music-edit-form,
  .music-time-grid,
  .variant-builder-row {
    grid-template-columns: 1fr;
  }

  .signup-price-list {
    width: 100%;
  }

  .account-data-form .wide,
  .checkout-fields-grid label:last-child {
    grid-column: auto;
  }

  .account-header {
    flex-direction: column;
  }

  .order-items {
    grid-column: 1;
    grid-row: auto;
  }

  .ticket-send-form {
    align-items: stretch;
    flex-direction: column;
  }

  .order-search {
    width: 100%;
    flex-direction: column;
  }

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

  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 14px;
  }

  .cart-row {
    grid-template-columns: 62px 1fr;
  }

  .cart-row input {
    grid-column: 1 / -1;
  }

  .cart-remove {
    grid-column: 1 / -1;
    justify-self: start;
  }

  h1 {
    font-size: 38px;
  }

  .product-detail,
  .product-gallery {
    grid-template-columns: 1fr;
  }

  .thumbs {
    grid-template-columns: repeat(3, 1fr);
  }

  .buy-row {
    grid-template-columns: 1fr;
  }

  .shop-sort,
  .shop-sort label {
    align-items: stretch;
  }

  .shop-sort label {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .shop-sort select {
    min-width: 0;
  }

  .away-prices {
    grid-template-columns: 1fr;
  }

  .login-drawer {
    padding: 38px 28px 42px;
  }

  .login-close {
    right: 22px;
  }
}

.season-filter {
  margin: 8px 0 14px;
}

.season-filter label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.85rem;
}

.admin-collapsible > summary .compact-search:has(select) {
  grid-template-columns: minmax(108px, 0.62fr) minmax(135px, 1fr) minmax(82px, auto);
}

.season-settings {
  align-content: start;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.season-list {
  display: grid;
  gap: 8px;
}

.season-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.season-list span {
  color: var(--yellow);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.payment-success,
.payment-gateway {
  max-width: 720px;
  margin: 36px auto;
}

.payment-gateway-box {
  display: grid;
  gap: 6px;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.payment-gateway-box span {
  color: var(--muted);
}

.payment-gateway-box strong {
  color: var(--yellow);
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.admin-stat-panel {
  min-height: 190px;
}

.admin-stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.admin-stat-grid > .panel,
.admin-stat-grid > details.panel {
  width: 100%;
  min-width: 0;
}

.admin-stat-grid > details.compact-history {
  min-height: 82px;
}

.admin-compact-stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  margin-bottom: 18px;
}

.admin-compact-stat-grid > details.panel,
.admin-compact-stat-grid > details.panel.admin-collapsible {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin-top: 0;
}

.admin-compact-stat-grid > details.panel.admin-collapsible + details.panel.admin-collapsible {
  margin-top: 0;
}

.admin-compact-stat-grid > details.compact-history:not([open]) {
  height: 88px;
  min-height: 88px;
  overflow: visible;
}

.admin-compact-stat-grid > details.compact-history:not([open]) > summary {
  height: 86px;
  min-height: 86px;
  box-sizing: border-box;
}

.admin-compact-stat-grid > details.compact-history.admin-collapsible:not([open]) {
  display: block;
}

.stat-panel-head {
  display: grid;
  grid-template-columns: auto auto;
  gap: 16px;
  align-items: start;
  justify-content: space-between;
}

.stat-panel-head h2 {
  margin: 0;
}

.season-filter.inline {
  justify-self: end;
  margin: 0;
}

.season-filter.inline select {
  min-width: 150px;
  min-height: 40px;
  padding-block: 8px;
}

.compact-history.admin-collapsible > summary {
  display: grid;
  grid-template-columns: minmax(128px, 0.55fr) minmax(0, 1.45fr);
  gap: 14px;
  min-height: 80px;
  height: 80px;
  align-items: center;
  align-content: center;
  padding-inline: 24px;
  overflow: hidden;
}

.compact-history.admin-collapsible > summary > div {
  display: flex;
  align-items: center;
  height: 100%;
}

.compact-history.admin-collapsible > summary h2 {
  margin: 0;
  line-height: 1.05;
}

.compact-history.admin-collapsible > summary .compact-search {
  display: grid;
  grid-template-columns: minmax(98px, 0.85fr) minmax(0, 1.25fr) auto;
  align-items: center;
  align-content: center;
  min-width: 0;
  width: 100%;
  justify-self: end;
  height: 100%;
}

.compact-history.admin-collapsible > summary .compact-search select,
.compact-history.admin-collapsible > summary .compact-search input {
  min-height: 40px;
  padding-block: 8px;
}

.compact-history.admin-collapsible > summary .compact-search button {
  min-height: 40px;
  padding-inline: 18px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .stat-panel-head,
  .compact-history.admin-collapsible > summary,
  .admin-user-toolbar {
    grid-template-columns: 1fr;
  }

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

  .site-settings-grid > form:first-child,
  .shop-hours-admin,
  .footer-links-admin {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 620px) {
  .site-footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-categories {
    grid-template-columns: 1fr;
  }

  .site-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 1400px) {
  .facebook-corner {
    position: static;
    width: min(300px, calc(100vw - 28px));
    height: 450px;
    margin: 18px auto 0;
  }
}

@media print {
  @page {
    margin: 14mm;
  }

  html,
  body {
    background: #fff !important;
    background-image: none !important;
    min-height: auto !important;
    overflow: visible !important;
  }

  body::before,
  body::after,
  .page::before,
  .page::after {
    display: none !important;
    content: none !important;
  }

  body > *:not(.page),
  .page > *:not(.signup-print-report) {
    display: none !important;
  }

  .page {
    display: block !important;
    min-height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    background-image: none !important;
    box-shadow: none !important;
  }

  .signup-print-report {
    display: block !important;
    position: static !important;
    width: 100%;
    min-height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #000;
    background: #fff !important;
    background-image: none !important;
    font-family: Arial, sans-serif;
    box-shadow: none !important;
  }

  .signup-print-report h1 {
    margin: 0 0 6px;
    font-size: 22px;
  }

  .signup-print-report h2 {
    margin: 18px 0 8px;
    font-size: 16px;
  }

  .signup-print-report table {
    width: 100%;
    border-collapse: collapse;
    page-break-inside: avoid;
  }

  .signup-print-report th,
  .signup-print-report td {
    padding: 7px 9px;
    border: 1px solid #222;
    text-align: left;
    font-size: 12px;
  }

  .signup-print-report th {
    background: #eee;
  }
}
