:root {
  --black: #050505;
  --ink: #111111;
  --yellow: #f8c900;
  --yellow-bright: #ffec00;
  --yellow-outline: 0 1px 1px rgba(0, 0, 0, .9), 1px 0 1px rgba(0, 0, 0, .62), -1px 0 1px rgba(0, 0, 0, .52), 0 0 5px rgba(0, 0, 0, .48);
  --amber: #d38400;
  --rust: #9c3500;
  --wine: #670014;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, .76);
  --line: rgba(255, 255, 255, .16);
  --surface: #101010;
  --surface-2: #181818;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--black);
}

body {
  min-height: 100svh;
  margin: 0;
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  background:
    linear-gradient(122deg, rgba(248, 201, 0, .98) 0 42%, rgba(211, 132, 0, .98) 42% 62%, rgba(156, 53, 0, .98) 62% 82%, var(--wine) 82%),
    var(--black);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: 0;
  background: rgba(0, 0, 0, .93);
  clip-path: polygon(49% 0, 100% 0, 100% 100%, 42% 100%);
}

body::after {
  z-index: 1;
  background:
    repeating-linear-gradient(
      132deg,
      transparent 0 26px,
      rgba(255, 236, 0, .18) 26px 42px,
      transparent 42px 66px
    );
  clip-path: polygon(49% 0, 100% 0, 100% 100%, 42% 100%);
}

.site-topbar {
  position: relative;
  z-index: 5;
  width: 100%;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
  border: 0;
  border-bottom: 1px solid rgba(248, 201, 0, .42);
  background: #050505;
  box-shadow: none;
  padding: 10px max(16px, calc((100vw - 1220px) / 2 + 16px));
}

.site-logo-link,
.site-logo {
  width: clamp(180px, 19vw, 260px);
  max-height: 48px;
  object-fit: contain;
}

.site-topbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 0;
}

.site-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-actions .site-icon-link {
  display: inline-flex;
}

.site-icon-link {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .14);
  color: var(--yellow);
  background: rgba(255, 255, 255, .045);
}

.site-icon-link svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.compact-button {
  min-height: 38px;
  border-width: 1px;
  padding-inline: 12px;
  font-size: .8rem;
}

.site-actions .button.secondary {
  display: none;
  border-color: rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .055);
  color: #fff;
}

.site-actions .button.compact-button[href="/inscricao/sc-inline-marathon"] {
  display: none;
}

.site-actions #registrationLinkTop {
  display: inline-flex;
}

.site-footer {
  position: relative;
  z-index: 2;
  background: #050505;
  padding: 24px 16px;
}

.site-footer-inner {
  width: min(1220px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .62);
  padding-top: 18px;
  font-size: .82rem;
  font-weight: 800;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

button {
  cursor: pointer;
}

.page {
  position: relative;
  z-index: 2;
  --page-pad: 28px;
  min-height: calc(100svh - 73px);
  padding: var(--page-pad);
}

.shell {
  width: min(1220px, 100%);
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
}

body > .page .topbar,
body > .page .brand-mark {
  display: none;
}

.brand-mark {
  color: var(--black);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", system-ui, sans-serif;
  font-size: 1.7rem;
  line-height: 1;
  text-transform: uppercase;
}

.nav-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero {
  min-height: calc(100svh - 145px);
  display: grid;
  grid-template-columns: minmax(300px, .78fr) minmax(420px, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 82px);
}

.hero-brand-stack {
  display: grid;
  align-content: center;
  gap: 14px;
}

.hero-event-stats {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 4px;
}

.hero-event-stats div {
  min-width: 0;
  border: 1px solid rgba(248, 201, 0, .28);
  border-left: 3px solid var(--yellow);
  background: rgba(255, 255, 255, .045);
  padding: 14px 15px;
}

.hero-event-stats span,
.hero-event-stats strong {
  display: block;
}

.hero-event-stats span {
  margin-bottom: 4px;
  color: var(--yellow);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-shadow: var(--yellow-outline);
}

.hero-event-stats strong {
  color: var(--white);
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
  line-height: 1.25;
}

.hero-brand-stack > .hero-event-stats {
  display: none;
}

.identity {
  --identity-edge-offset: max(var(--page-pad), calc((100vw - 1220px) / 2));
  width: calc(min(460px, 100%) + var(--identity-edge-offset));
  margin-left: calc(-1 * var(--identity-edge-offset));
  padding: clamp(18px, 3vw, 26px);
  padding-left: calc(var(--identity-edge-offset) + clamp(18px, 3vw, 26px));
  border: 1px solid rgba(248, 201, 0, .35);
  border-left: 0;
  background:
    linear-gradient(145deg, rgba(5, 5, 5, .95), rgba(17, 17, 17, .88)),
    var(--black);
  box-shadow: 0 26px 80px rgba(0, 0, 0, .34);
}

.brand-logo {
  width: min(460px, 100%);
  margin: 0 auto;
}

.identity .brand-logo {
  display: none;
}

.realization {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(248, 201, 0, .55);
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.identity-instagram {
  display: none;
}

.identity-instagram svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.rodasc-logo {
  width: 156px;
}

.content {
  padding-block: 36px;
}

.kicker {
  margin: 0 0 18px;
  color: var(--yellow);
  font-size: .85rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-shadow: var(--yellow-outline);
}

h1,
.impact {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", system-ui, sans-serif;
  line-height: .86;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1 {
  max-width: 8ch;
  font-size: clamp(3.5rem, 8vw, 7rem);
}

.date-block {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  margin-top: 30px;
  padding-block: 16px;
  border-block: 3px solid var(--yellow);
  color: var(--yellow);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", system-ui, sans-serif;
  text-transform: uppercase;
  text-shadow: var(--yellow-outline);
}

.date-day {
  font-size: clamp(6rem, 11vw, 11rem);
  line-height: .72;
}

.date-text {
  display: grid;
  gap: 2px;
  padding-bottom: 6px;
  font-size: clamp(2rem, 4.2vw, 4rem);
  line-height: .82;
}

.date-text small {
  color: var(--white);
  font-size: 1rem;
  font-family: Arial, Helvetica, sans-serif;
}

.lead {
  max-width: 620px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.5;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 2px solid var(--yellow);
  background: var(--yellow);
  color: var(--black);
  font-weight: 900;
  text-transform: uppercase;
  transition: transform 180ms var(--ease), background 180ms var(--ease);
}

.button:hover,
.button:focus-visible {
  background: var(--yellow-bright);
  transform: translateY(-2px);
}

.button.secondary {
  background: transparent;
  color: var(--white);
}

.button.ghost {
  background: transparent;
  color: var(--yellow);
}

.button.danger {
  border-color: #ff6b6b;
  background: #ff6b6b;
}

.pix-panel {
  display: grid;
  gap: 12px;
  width: min(520px, 100%);
  border: 1px solid rgba(248, 201, 0, .28);
  background: rgba(248, 201, 0, .08);
  padding: 16px;
}

.pix-panel strong {
  color: var(--white);
  font-size: 1.05rem;
}

.pix-panel span {
  color: var(--muted);
}

.pix-qr {
  width: min(190px, 100%);
  border-radius: 8px;
  background: var(--white);
  padding: 8px;
}

.pix-code {
  min-height: 94px;
  resize: vertical;
  word-break: break-all;
}

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

.hero .actions {
  gap: 14px;
}

.hero .actions #registrationLink {
  min-height: 58px;
  padding-inline: clamp(28px, 4vw, 44px);
  border-width: 3px;
  box-shadow: 0 18px 36px rgba(248, 201, 0, .22);
  font-size: clamp(1.05rem, 1.4vw, 1.28rem);
}

.band {
  position: relative;
  z-index: 2;
  padding: 54px 28px;
  background: var(--black);
}

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

.card,
.panel {
  border: 1px solid var(--line);
  background: var(--surface);
}

.card {
  padding: 20px;
}

.event-info-band {
  padding-top: 44px;
}

.event-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.info-panel {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .025));
  padding: clamp(20px, 3vw, 28px);
}

.info-panel.emphasis {
  border-color: rgba(248, 201, 0, .4);
  background: linear-gradient(135deg, rgba(248, 201, 0, .16), rgba(255, 255, 255, .035));
}

.info-panel h2,
.shirt-section h2 {
  margin: 0;
  color: var(--white);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", system-ui, sans-serif;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: .9;
  text-transform: uppercase;
}

.info-text,
.status-note,
.shirt-note {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.5;
}

.status-note {
  min-height: 1.5em;
  color: var(--yellow);
}

.info-panel .button {
  margin-top: auto;
}

.location-band {
  padding-top: 30px;
}

.location-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(248, 201, 0, .28);
  background: linear-gradient(135deg, rgba(248, 201, 0, .12), rgba(255, 255, 255, .035));
  padding: clamp(20px, 4vw, 34px);
}

.location-card h2 {
  max-width: 820px;
  margin: 0 0 12px;
  color: var(--white);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", system-ui, sans-serif;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: .9;
  text-transform: uppercase;
}

.location-text {
  margin: 0 0 20px;
  color: var(--muted);
  font-weight: 800;
}

.location-qr {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 178px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(0, 0, 0, .28);
  padding: 14px;
}

.location-qr img {
  width: 140px;
  height: 140px;
  border-radius: 8px;
  background: var(--white);
  padding: 8px;
}

.location-qr span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.shirt-section {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(280px, .82fr);
  align-items: center;
  gap: 28px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: linear-gradient(135deg, rgba(255, 255, 255, .055), rgba(248, 201, 0, .08));
  padding: clamp(20px, 4vw, 36px);
}

.shirt-figure {
  margin: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(248, 201, 0, .16);
  background:
    radial-gradient(circle at 50% 50%, rgba(248, 201, 0, .12), transparent 62%),
    rgba(255, 255, 255, .025);
  padding: clamp(8px, 2vw, 18px);
}

.shirt-figure img {
  max-height: 320px;
  width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, .38));
}

.shirt-note {
  margin-top: 16px;
  color: rgba(255, 255, 255, .62);
  font-size: .9rem;
}

.card h3,
.panel h2,
.panel h3 {
  margin: 0 0 10px;
}

.price {
  color: var(--yellow);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", system-ui, sans-serif;
  font-size: 2.6rem;
  line-height: 1;
  text-shadow: var(--yellow-outline);
}

.form-page {
  background: var(--black);
}

.form-page::before,
.form-page::after,
.admin-page::before,
.admin-page::after {
  display: none;
}

.layout {
  display: grid;
  grid-template-columns: minmax(260px, .55fr) minmax(0, 1fr);
  gap: 22px;
}

.panel {
  padding: 22px;
}

.panel + .panel {
  margin-top: 16px;
}

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

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

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

label {
  color: rgba(255, 255, 255, .82);
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: #0b0b0b;
  color: var(--white);
  font-size: 16px;
  padding: 10px 12px;
  outline: none;
}

select,
option {
  color-scheme: dark;
}

option {
  background: #111;
  color: var(--white);
}

textarea {
  min-height: 96px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--yellow);
}

.notice {
  margin-top: 14px;
  color: var(--yellow);
  font-weight: 800;
}

.admin-page {
  background:
    radial-gradient(circle at 16% 0, rgba(248, 201, 0, .12), transparent 24%),
    linear-gradient(135deg, #080808 0%, #101010 58%, #190006 100%);
}

.login-stage {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: calc(100svh - 150px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: center;
  gap: 28px;
}

.login-copy {
  border: 1px solid rgba(255, 255, 255, .12);
  background: linear-gradient(135deg, rgba(248, 201, 0, .14), rgba(255, 255, 255, .03));
  padding: clamp(24px, 5vw, 58px);
  border-radius: 8px;
}

.login-copy h1 {
  max-width: 9ch;
  color: var(--white);
  font-size: clamp(4rem, 12vw, 8.5rem);
}

.login-copy p {
  max-width: 560px;
  color: rgba(255, 255, 255, .68);
  font-weight: 800;
  line-height: 1.45;
}

.login-card,
.admin-card,
.content-header,
.metric-card {
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(14, 14, 14, .82);
  box-shadow: 0 22px 80px rgba(0, 0, 0, .24);
  backdrop-filter: blur(18px);
  border-radius: 8px;
}

.login-card {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.login-back-link {
  width: 100%;
  justify-self: stretch;
}

.password-field {
  position: relative;
  display: grid;
}

.password-field input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 36px;
  min-width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--white);
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  padding: 0;
}

.password-toggle::before {
  content: "";
  width: 22px;
  height: 22px;
  background: currentColor;
  opacity: .82;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M2.1 3.5 3.5 2.1l18.4 18.4-1.4 1.4-3.15-3.15A12.1 12.1 0 0 1 12 20C5 20 1.1 13.9.94 13.64L.53 13l.41-.64a18.1 18.1 0 0 1 4.1-4.47L2.1 3.5Zm4.4 5.85A15.7 15.7 0 0 0 3.43 13C4.57 14.48 7.62 18 12 18c1.36 0 2.6-.34 3.7-.86l-2-2A3.97 3.97 0 0 1 8.86 10.3L6.5 9.35ZM12 6c7 0 10.9 6.1 11.06 6.36l.41.64-.41.64a18.2 18.2 0 0 1-2.38 2.89l-1.42-1.42A15.5 15.5 0 0 0 20.57 13C19.43 11.52 16.38 8 12 8c-.69 0-1.36.09-2 .25L8.42 6.67A10.5 10.5 0 0 1 12 6Zm-.28 3.01A4 4 0 0 1 15.99 13l-4.27-3.99Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M2.1 3.5 3.5 2.1l18.4 18.4-1.4 1.4-3.15-3.15A12.1 12.1 0 0 1 12 20C5 20 1.1 13.9.94 13.64L.53 13l.41-.64a18.1 18.1 0 0 1 4.1-4.47L2.1 3.5Zm4.4 5.85A15.7 15.7 0 0 0 3.43 13C4.57 14.48 7.62 18 12 18c1.36 0 2.6-.34 3.7-.86l-2-2A3.97 3.97 0 0 1 8.86 10.3L6.5 9.35ZM12 6c7 0 10.9 6.1 11.06 6.36l.41.64-.41.64a18.2 18.2 0 0 1-2.38 2.89l-1.42-1.42A15.5 15.5 0 0 0 20.57 13C19.43 11.52 16.38 8 12 8c-.69 0-1.36.09-2 .25L8.42 6.67A10.5 10.5 0 0 1 12 6Zm-.28 3.01A4 4 0 0 1 15.99 13l-4.27-3.99Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.password-toggle.is-visible::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 6c7 0 10.9 6.1 11.06 6.36l.41.64-.41.64C22.9 13.9 19 20 12 20S1.1 13.9.94 13.64L.53 13l.41-.64C1.1 12.1 5 6 12 6Zm0 2c-4.38 0-7.43 3.52-8.57 5C4.57 14.48 7.62 18 12 18s7.43-3.52 8.57-5C19.43 11.52 16.38 8 12 8Zm0 2a3 3 0 1 1 0 6 3 3 0 0 1 0-6Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 6c7 0 10.9 6.1 11.06 6.36l.41.64-.41.64C22.9 13.9 19 20 12 20S1.1 13.9.94 13.64L.53 13l.41-.64C1.1 12.1 5 6 12 6Zm0 2c-4.38 0-7.43 3.52-8.57 5C4.57 14.48 7.62 18 12 18s7.43-3.52 8.57-5C19.43 11.52 16.38 8 12 8Zm0 2a3 3 0 1 1 0 6 3 3 0 0 1 0-6Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--yellow);
  background: transparent;
  outline: 0;
}

.password-toggle:focus-visible {
  box-shadow: 0 0 0 3px rgba(248, 201, 0, .22);
}

.admin-app {
  min-height: 100svh;
  padding: 16px;
}

.admin-workspace {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.admin-rail {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 14px;
  min-height: calc(100svh - 32px);
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(10, 10, 10, .82);
  border-radius: 8px;
  padding: 16px;
  backdrop-filter: blur(18px);
}

.admin-logo {
  color: var(--white);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", system-ui, sans-serif;
  font-size: 1.9rem;
  line-height: 1;
  text-transform: uppercase;
}

.admin-subtitle {
  margin: -6px 0 6px;
  color: rgba(255, 255, 255, .58);
  font-size: .86rem;
  font-weight: 800;
}

.admin-content {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.admin-card {
  padding: 18px;
}

.content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 128px;
  padding: 20px;
}

.content-header h1 {
  max-width: none;
  margin: 0;
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
  text-transform: none;
}

.content-header p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, .66);
  font-weight: 800;
}

.content-actions,
.overview-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.content-actions,
.overview-actions {
  justify-content: flex-end;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-heading span,
.metric-card span {
  display: block;
  margin-bottom: 4px;
  color: var(--yellow);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.section-heading h2,
.section-heading h3 {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.1;
}

.section-heading.compact {
  margin-bottom: 10px;
}

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

.metric-card {
  min-height: 104px;
  padding: 18px;
}

.metric-card strong {
  display: block;
  margin-top: 16px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1;
}

.rail-nav {
  display: grid;
  gap: 6px;
}

.rail-nav button,
.active-event,
.rail-heading button {
  min-height: 40px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, .68);
  padding: 0 12px;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
  border-radius: 6px;
}

.rail-nav button.active,
.rail-nav button:hover {
  background: var(--yellow);
  color: var(--black);
}

.rail-section {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.rail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.rail-heading span {
  color: var(--yellow);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rail-heading button {
  min-height: 30px;
  color: var(--yellow);
  padding-inline: 8px;
  text-align: right;
}

.active-event,
.event-option {
  position: relative;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .045);
  color: var(--white);
  padding: 12px 12px 12px 34px;
  text-align: left;
  border-radius: 6px;
}

.active-event strong,
.active-event small,
.event-option strong,
.event-option small {
  display: block;
}

.active-event small,
.event-option small {
  margin-top: 4px;
  color: rgba(255, 255, 255, .58);
  font-size: .78rem;
  font-weight: 800;
}

.event-picker {
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(0, 0, 0, .26);
  border-radius: 6px;
}

.event-option.active,
.event-option:hover,
.active-event:hover {
  border-color: rgba(248, 201, 0, .62);
  background: rgba(248, 201, 0, .1);
}

.status-dot {
  position: absolute;
  top: 16px;
  left: 12px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .28);
}

.status-dot.published { background: #3ddc97; }
.status-dot.draft { background: var(--yellow); }
.status-dot.closed { background: #ff6b6b; }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 13px 12px;
  text-align: left;
  font-size: .9rem;
}

td small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, .56);
}

th {
  color: var(--yellow);
  text-transform: uppercase;
}

.compact-search {
  width: min(360px, 100%);
  min-height: 40px;
}

.compact-select {
  width: min(220px, 100%);
  min-height: 40px;
}

.payment-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.payment-summary-card {
  display: grid;
  gap: 5px;
  min-height: 82px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .045);
  padding: 12px;
}

.payment-summary-card span {
  color: rgba(255, 255, 255, .62);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.payment-summary-card strong {
  color: #fff;
  font-size: 1.2rem;
}

.payment-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06);
  padding: 0 10px;
  color: rgba(255, 255, 255, .78);
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.payment-pill.approved,
.payment-pill.not_required {
  border-color: rgba(61, 220, 151, .38);
  background: rgba(61, 220, 151, .12);
  color: #9ff0cb;
}

.payment-pill.pending,
.payment-pill.rejected {
  border-color: rgba(248, 201, 0, .36);
  background: rgba(248, 201, 0, .1);
  color: var(--yellow);
}

.admin-page .form-grid {
  gap: 16px;
}

.admin-page .form-grid.compact {
  grid-template-columns: 1fr;
}

.admin-page label {
  color: rgba(255, 255, 255, .66);
  font-size: .74rem;
}

.admin-page input,
.admin-page select,
.admin-page textarea {
  border-color: rgba(255, 255, 255, .13);
  background: rgba(255, 255, 255, .045);
  border-radius: 6px;
}

.admin-page select[multiple] {
  min-height: 132px;
  padding: 10px;
}

.admin-page select[multiple] option {
  padding: 8px;
  border-radius: 4px;
}

.admin-page input:hover,
.admin-page select:hover,
.admin-page textarea:hover {
  border-color: rgba(255, 255, 255, .26);
}

.overview-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.overview-grid h2,
.overview-grid p {
  margin: 0;
}

.overview-grid p {
  margin-top: 8px;
  color: rgba(255, 255, 255, .62);
  font-weight: 800;
}

.panel-label {
  display: block;
  margin-bottom: 6px;
  color: var(--yellow);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

.admin-modal {
  width: min(520px, calc(100% - 28px));
  border: 0;
  background: transparent;
  padding: 0;
}

.admin-modal::backdrop {
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(8px);
}

.modal-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: #111;
  color: var(--white);
  border-radius: 8px;
  padding: 18px;
}

.icon-close {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .05);
  color: var(--white);
  border-radius: 6px;
  font-size: 1.5rem;
}

.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  body::before,
  body::after {
    clip-path: polygon(0 43%, 100% 37%, 100% 100%, 0 100%);
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .site-topbar-right {
    align-items: stretch;
    justify-content: space-between;
  }

  .site-actions {
    flex-wrap: wrap;
  }

  .hero,
  .layout,
  .event-info-grid,
  .shirt-section,
  .admin-workspace {
    grid-template-columns: 1fr;
  }

  .location-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .login-stage,
  .metric-grid,
  .builder-grid {
    grid-template-columns: 1fr;
  }

  .admin-rail {
    position: static;
    min-height: auto;
  }

  .content-header,
  .overview-grid {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .identity {
    padding: 22px;
    padding-left: calc(var(--identity-edge-offset) + 22px);
  }
}

@media (max-width: 560px) {
  .site-topbar {
    width: 100%;
    margin-top: 0;
    padding: 10px;
  }

  .site-logo-link {
    justify-content: flex-start;
  }

  .site-logo {
    width: min(210px, 64vw);
    max-height: 42px;
  }

  .site-topbar-right {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .site-actions {
    order: 2;
    display: grid;
    grid-template-columns: repeat(3, 38px) minmax(118px, 1fr);
    justify-content: end;
  }

  .compact-button {
    padding-inline: 8px;
    font-size: .72rem;
  }

  .page {
    --page-pad: 18px;
  }

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

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

  .date-block {
    align-items: flex-start;
    flex-direction: column;
  }

  .realization {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Admin workspace refinement */
.admin-page {
  min-height: 100svh;
  background:
    radial-gradient(circle at 8% 8%, rgba(248, 201, 0, .16), transparent 26%),
    radial-gradient(circle at 90% 0, rgba(103, 0, 20, .28), transparent 28%),
    linear-gradient(135deg, #080808 0%, #111 56%, #190006 100%);
}

.admin-page .button {
  min-height: 42px;
  border-width: 1px;
  border-radius: 6px;
  padding-inline: 16px;
  font-size: .86rem;
}

.admin-page .button.secondary {
  border-color: rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .04);
}

.admin-page .button.secondary:hover {
  border-color: rgba(248, 201, 0, .7);
  color: var(--yellow);
}

.admin-app {
  width: min(1560px, 100%);
  margin: 0 auto;
  min-height: 100svh;
  padding: 18px;
}

.login-stage {
  min-height: calc(100svh - 36px);
}

.login-card,
.login-copy,
.admin-rail,
.admin-card,
.content-header,
.metric-card,
.modal-card {
  border-radius: 8px;
}

.admin-workspace {
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 18px;
}

.admin-rail {
  align-content: start;
  gap: 16px;
  background: rgba(8, 8, 8, .9);
}

.admin-logo {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0;
}

.admin-subtitle {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.rail-nav button,
.rail-menu-group summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  letter-spacing: 0;
  text-transform: none;
}

.rail-nav button.active {
  box-shadow: 0 10px 24px rgba(248, 201, 0, .14);
}

.rail-menu-group,
.mobile-menu-group {
  display: grid;
  gap: 8px;
}

.rail-menu-group summary,
.mobile-menu-group summary {
  list-style: none;
  cursor: pointer;
}

.rail-menu-group summary::-webkit-details-marker,
.mobile-menu-group summary::-webkit-details-marker {
  display: none;
}

.rail-menu-group summary {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 7px;
  background: rgba(255, 255, 255, .045);
  color: rgba(255, 255, 255, .82);
  padding: 0 12px;
  font-weight: 900;
}

.rail-menu-group summary:hover,
.rail-menu-group.has-active summary {
  border-color: rgba(248, 201, 0, .34);
  background: rgba(248, 201, 0, .1);
  color: #fff;
}

.rail-menu-group summary::after,
.mobile-menu-group summary::after {
  content: "+";
  margin-left: auto;
  color: var(--yellow);
  font-size: 1rem;
}

.rail-menu-group[open] summary::after,
.mobile-menu-group[open] summary::after {
  content: "-";
}

.rail-menu-group div {
  display: grid;
  gap: 8px;
  padding-left: 10px;
}

.rail-nav .bi,
.mobile-admin-menu-panel .bi {
  flex: 0 0 auto;
  width: 22px;
  min-width: 22px;
  display: inline-grid;
  place-items: center;
  color: currentColor;
  font-size: 1.08rem;
  line-height: 1;
}

.rail-collapse-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .74);
  border-radius: 6px;
  padding: 0 10px;
  font-size: .75rem;
  font-weight: 900;
}

.rail-collapse-toggle:hover,
.rail-collapse-toggle:focus-visible {
  border-color: rgba(248, 201, 0, .42);
  color: var(--yellow);
}

.mobile-admin-menu-button,
.mobile-admin-menu-panel {
  display: none;
}

.mobile-admin-menu-button {
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  border: 1px solid rgba(248, 201, 0, .28);
  border-radius: 8px;
  background: rgba(248, 201, 0, .1);
  color: #fff;
  padding: 0 12px;
  font-weight: 900;
}

.mobile-menu-icon {
  width: 18px;
  height: 12px;
  display: inline-grid;
  gap: 3px;
}

.mobile-menu-icon::before,
.mobile-menu-icon::after,
.mobile-menu-icon {
  border-top: 2px solid currentColor;
}

.mobile-menu-icon::before,
.mobile-menu-icon::after {
  content: "";
  display: block;
}

.mobile-admin-menu-panel {
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
  padding: 8px;
}

.mobile-admin-menu-panel > button,
.mobile-menu-group summary,
.mobile-menu-group button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 7px;
  background: rgba(255, 255, 255, .045);
  color: #fff;
  padding: 0 12px;
  font-weight: 900;
  text-align: left;
}

.mobile-admin-menu-panel button.active,
.mobile-menu-group button.active {
  border-color: rgba(248, 201, 0, .5);
  background: rgba(248, 201, 0, .16);
}

.mobile-menu-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-menu-group div {
  display: grid;
  gap: 8px;
  padding-left: 10px;
}

.rail-collapse-icon {
  width: 16px;
  height: 16px;
  position: relative;
  display: inline-block;
}

.rail-collapse-icon::before,
.rail-collapse-icon::after {
  content: "";
  position: absolute;
  inset: 3px 4px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.rail-collapse-icon::after {
  left: 8px;
}

.admin-workspace.admin-nav-collapsed {
  grid-template-columns: 78px minmax(0, 1fr);
}

.admin-nav-collapsed .admin-rail {
  padding: 12px 10px;
}

.admin-nav-collapsed .admin-logo {
  justify-self: center;
  width: 46px;
  height: 42px;
  display: grid;
  place-items: center;
  font-size: 0;
  border: 1px solid rgba(248, 201, 0, .28);
  border-radius: 8px;
  background: rgba(248, 201, 0, .08);
}

.admin-nav-collapsed .admin-logo::before {
  content: "SC";
  color: var(--yellow);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .9rem;
  font-weight: 900;
}

.admin-nav-collapsed .admin-subtitle,
.admin-nav-collapsed .rail-collapse-text {
  display: none;
}

.admin-nav-collapsed .rail-collapse-toggle {
  width: 46px;
  justify-self: center;
  padding: 0;
}

.admin-nav-collapsed .rail-collapse-icon {
  transform: rotate(180deg);
}

.admin-nav-collapsed .rail-nav {
  justify-items: center;
}

.admin-nav-collapsed .rail-nav button,
.admin-nav-collapsed .rail-menu-group summary {
  width: 46px;
  min-width: 46px;
  justify-content: center;
  padding: 0;
  font-size: 0;
  text-align: center;
}

.admin-nav-collapsed .rail-nav button span,
.admin-nav-collapsed .rail-menu-group summary span {
  display: none;
}

.admin-nav-collapsed .rail-menu-group summary::after {
  content: none;
}

.admin-nav-collapsed .rail-menu-group div {
  padding-left: 0;
  justify-items: center;
}

.admin-nav-collapsed .rail-nav .bi {
  width: 22px;
  min-width: 22px;
  font-size: 1.12rem;
}

.admin-workspace.admin-nav-collapsed.admin-nav-peek {
  grid-template-columns: 78px minmax(0, 1fr);
}

.admin-nav-collapsed.admin-nav-peek .admin-rail {
  width: 292px;
  z-index: 30;
  box-shadow: 18px 0 50px rgba(0, 0, 0, .34);
}

.admin-nav-collapsed.admin-nav-peek .admin-logo {
  justify-self: start;
  width: auto;
  height: auto;
  display: block;
  border: 0;
  background: transparent;
  font-size: 1.2rem;
}

.admin-nav-collapsed.admin-nav-peek .admin-logo::before {
  content: none;
}

.admin-nav-collapsed.admin-nav-peek .admin-subtitle,
.admin-nav-collapsed.admin-nav-peek .rail-collapse-text {
  display: block;
}

.admin-nav-collapsed.admin-nav-peek .rail-collapse-toggle {
  width: 100%;
  justify-self: stretch;
  padding: 0 10px;
}

.admin-nav-collapsed.admin-nav-peek .rail-collapse-icon {
  transform: rotate(180deg);
}

.admin-nav-collapsed.admin-nav-peek .rail-nav {
  justify-items: stretch;
}

.admin-nav-collapsed.admin-nav-peek .rail-nav button,
.admin-nav-collapsed.admin-nav-peek .rail-menu-group summary {
  width: 100%;
  min-width: 0;
  justify-content: flex-start;
  padding: 0 12px;
  font-size: .78rem;
  text-align: left;
}

.admin-nav-collapsed.admin-nav-peek .rail-nav button span,
.admin-nav-collapsed.admin-nav-peek .rail-menu-group summary span {
  display: inline;
}

.admin-nav-collapsed.admin-nav-peek .rail-menu-group summary::after {
  content: "+";
}

.admin-nav-collapsed.admin-nav-peek .rail-menu-group[open] summary::after {
  content: "-";
}

.admin-nav-collapsed.admin-nav-peek .rail-menu-group div {
  padding-left: 10px;
  justify-items: stretch;
}

.rail-heading {
  margin-top: 4px;
}

.rail-heading span,
.section-heading span,
.metric-card span,
.panel-label {
  letter-spacing: .04em;
}

.active-event,
.event-option {
  min-height: 58px;
}

.admin-content {
  gap: 18px;
}

.content-header {
  min-height: 116px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(248, 201, 0, .1), rgba(255, 255, 255, .03)),
    rgba(14, 14, 14, .86);
}

.content-header h1 {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.08;
}

.content-header .kicker {
  margin-bottom: 8px;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.metric-card {
  min-height: 112px;
  padding: 18px;
}

.metric-card strong {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.65rem, 2.4vw, 2.5rem);
}

.admin-card {
  background: rgba(13, 13, 13, .88);
}

.overview-grid {
  min-height: 140px;
}

.overview-tools {
  display: grid;
  gap: 12px;
}

.overview-tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.section-heading {
  align-items: center;
}

.section-heading h2 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.admin-page .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

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

.admin-page label {
  letter-spacing: .02em;
}

.admin-page input,
.admin-page select,
.admin-page textarea {
  min-height: 46px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .045);
  color-scheme: dark;
}

.admin-page textarea {
  min-height: 120px;
}

.builder-grid {
  align-items: start;
}

.item-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

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

.finance-item {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .035);
  border-radius: 8px;
  padding: 14px;
}

.security-note {
  border: 1px solid rgba(248, 201, 0, .26);
  background: rgba(248, 201, 0, .08);
  color: rgba(255, 255, 255, .78);
  border-radius: 6px;
  padding: 12px;
  font-weight: 800;
}

.security-note.success {
  border-color: rgba(61, 220, 151, .32);
  background: rgba(61, 220, 151, .09);
}

.security-note.warning {
  border-color: rgba(255, 190, 80, .36);
  background: rgba(255, 190, 80, .09);
}

.config-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .035);
  border-radius: 6px;
  padding: 12px;
}

.config-item > div:first-child {
  min-width: 0;
  flex: 1;
}

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

.inline-actions .button,
.form-actions .button {
  min-height: 36px;
  padding-inline: 12px;
  font-size: .78rem;
}

.registration-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: min(460px, 100%);
}

.registration-tools .compact-search {
  flex: 1;
  min-width: 180px;
}

.icon-filter-button {
  width: 42px;
  min-width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06);
  color: var(--yellow);
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
}

.icon-filter-button::before {
  content: "";
  width: 19px;
  height: 19px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 5h18l-7 8v5l-4 2v-7L3 5Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 5h18l-7 8v5l-4 2v-7L3 5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.icon-filter-button[aria-expanded="true"] {
  border-color: rgba(248, 201, 0, .6);
  background: rgba(248, 201, 0, .14);
}

.filter-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
  border: 1px solid rgba(248, 201, 0, .18);
  background: rgba(248, 201, 0, .06);
  border-radius: 8px;
  padding: 12px;
}

.filter-panel .button {
  align-self: end;
}

.list-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
  color: rgba(255, 255, 255, .68);
  font-size: .86rem;
  font-weight: 900;
}

.active-filter-summary {
  color: var(--yellow);
  text-align: right;
}

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

.admin-mobile-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .045);
  border-radius: 8px;
  padding: 12px;
}

.mobile-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.mobile-card-head span,
.mobile-card-grid dt {
  display: block;
  color: rgba(255, 255, 255, .58);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.mobile-card-head strong {
  display: block;
  margin-top: 3px;
  color: #fff;
  font-size: 1rem;
}

.mobile-card-head small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, .62);
  font-weight: 800;
}

.mobile-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.mobile-card-grid div {
  min-width: 0;
}

.mobile-card-grid dd {
  margin: 3px 0 0;
  color: #fff;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.mobile-card-actions {
  display: grid;
  gap: 8px;
}

.mobile-card-actions .action-menu,
.mobile-card-actions .action-menu summary {
  width: 100%;
}

.mobile-pill-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: rgba(255, 255, 255, .68);
  font-size: .86rem;
  font-weight: 900;
}

.pagination-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.config-item strong,
.config-item span {
  display: block;
}

.config-item span {
  margin-top: 3px;
  color: rgba(255, 255, 255, .56);
  font-size: .83rem;
}

.config-item b {
  color: var(--yellow);
  white-space: nowrap;
}

.empty-state {
  margin: 0;
  border: 1px dashed rgba(255, 255, 255, .16);
  border-radius: 6px;
  padding: 14px;
  color: rgba(255, 255, 255, .62);
  font-weight: 800;
}

.table-wrap {
  border-radius: 8px;
}

th {
  background: rgba(248, 201, 0, .06);
  font-size: .76rem;
  letter-spacing: .04em;
}

td {
  color: rgba(255, 255, 255, .86);
}

tbody tr:hover {
  background: rgba(255, 255, 255, .035);
}

.payment-pill {
  border-radius: 999px;
}

.admin-modal {
  max-height: calc(100svh - 36px);
}

.modal-card {
  gap: 10px;
  background:
    linear-gradient(135deg, rgba(248, 201, 0, .08), rgba(255, 255, 255, .02)),
    #101010;
}

.icon-close {
  line-height: 1;
}

@media (max-width: 1100px) {
  .admin-workspace {
    grid-template-columns: 1fr;
  }

  .admin-rail {
    position: static;
    min-height: auto;
  }

  .rail-nav {
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    overflow-x: auto;
  }

  .rail-section {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .admin-app {
    padding: 12px;
  }

  .login-stage,
  .builder-grid,
  .finance-item,
  .admin-page .form-grid,
  .admin-page .form-grid.compact,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .content-header,
  .overview-grid,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .content-actions,
  .overview-actions,
  .admin-page .button {
    width: 100%;
  }

  .rail-nav {
    grid-template-columns: 1fr 1fr;
  }
}

.checkin-console {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
}

.checkin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.scanner-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .05);
  padding: 12px;
}

.qr-video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  background: #000;
  margin-bottom: 10px;
}

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

.checkin-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025));
  padding: 16px;
}

.checkin-main,
.kit-line {
  display: grid;
  gap: 10px;
}

.checkin-main {
  grid-template-columns: minmax(0, 1fr) 128px;
  align-items: start;
}

.kit-line {
  grid-column: 1 / -1;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.checkin-main strong {
  display: block;
  font-size: 1.15rem;
}

.checkin-main span,
.checkin-main small,
.kit-line strong {
  display: block;
  color: var(--muted);
  line-height: 1.35;
}

.checkin-code {
  border: 1px solid rgba(248, 201, 0, .42);
  border-radius: 8px;
  background: rgba(248, 201, 0, .1);
  padding: 10px 12px;
  text-align: center;
}

.checkin-item .inline-actions {
  display: grid;
  align-content: end;
  gap: 8px;
  min-width: 220px;
}

.checkin-code span {
  display: block;
  color: var(--yellow);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.checkin-code b {
  color: #fff;
  font-size: 1.35rem;
  letter-spacing: .08em;
}

.permission-pill {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: var(--muted);
  padding: 0 12px;
  font-weight: 900;
}

.permission-pill.on,
.permission-pill:disabled {
  border-color: rgba(61, 220, 151, .5);
  background: rgba(61, 220, 151, .12);
  color: #9ff0c8;
}

.toggle-check {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 10px;
  text-transform: none;
}

.toggle-check input {
  width: 20px;
  min-height: 20px;
  accent-color: var(--yellow);
}

.public-checkin {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  width: min(1100px, 100% - 32px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 34px;
  align-items: center;
  padding: 28px 0;
}

.checkin-copy,
.checkin-card {
  min-height: auto;
}

.checkin-card form {
  display: grid;
  gap: 12px;
}

.checkin-result {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  border: 1px solid rgba(61, 220, 151, .5);
  border-radius: 8px;
  background: rgba(61, 220, 151, .12);
  padding: 14px;
}

.checkin-result.error {
  border-color: rgba(255, 107, 107, .55);
  background: rgba(255, 107, 107, .12);
}

.checkin-result strong {
  color: #fff;
}

.checkin-result span,
.checkin-result small {
  color: var(--muted);
  line-height: 1.35;
}

.modal-card.wide {
  width: min(860px, 100%);
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 280px;
}

.action-menu {
  position: relative;
  width: max-content;
}

.action-menu summary {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 6px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  padding: 0 12px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.action-menu summary::-webkit-details-marker {
  display: none;
}

.action-menu summary::after {
  content: "▾";
  color: var(--yellow);
  font-size: .78rem;
}

.action-menu[open] summary {
  border-color: rgba(248, 201, 0, .55);
  background: rgba(248, 201, 0, .12);
}

.action-menu-panel {
  position: fixed;
  z-index: 1000;
  display: grid;
  min-width: 220px;
  margin-top: 0;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: #151515;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
  overflow: hidden;
}

.action-menu-floating {
  max-width: calc(100vw - 24px);
}

.action-menu-panel button {
  min-height: 40px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: transparent;
  color: #fff;
  padding: 0 12px;
  text-align: left;
  font-weight: 800;
}

.action-menu-panel button:hover {
  background: rgba(248, 201, 0, .12);
}

.action-menu-panel button.danger {
  color: #ffb5b5;
}

.button.mini {
  min-height: 32px;
  padding: 0 10px;
  font-size: .72rem;
}

.details-grid {
  display: grid;
  gap: 16px;
}

.details-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(248, 201, 0, .28);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(248, 201, 0, .16), rgba(255, 255, 255, .04));
  padding: 16px;
}

.details-hero div {
  display: grid;
  gap: 4px;
}

.details-hero span:first-child,
.status-card span {
  color: var(--yellow);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.details-hero strong {
  color: #fff;
  font-size: 1.45rem;
}

.details-hero small {
  color: var(--muted);
  font-weight: 800;
}

.status-card {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .045);
  padding: 14px;
}

.status-card.success {
  border-color: rgba(61, 220, 151, .42);
  background: rgba(61, 220, 151, .1);
}

.status-card strong {
  color: #fff;
  line-height: 1.35;
}

.details-section {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
  padding: 14px;
}

.details-section h3 {
  margin: 0;
  color: var(--yellow);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.details-accordion {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
  padding: 0;
  overflow: hidden;
}

.details-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 14px;
  color: var(--yellow);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

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

.details-accordion summary::after {
  content: "+";
  font-size: 1rem;
}

.details-accordion[open] summary {
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.details-accordion[open] summary::after {
  content: "-";
}

.details-accordion .details-grid-inner,
.details-accordion .status-card,
.details-accordion .payment-detail-actions,
.details-accordion .pix-copy-box,
.details-accordion .empty-state {
  margin: 0 14px 14px;
}

.payment-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pix-copy-box {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(248, 201, 0, .22);
  border-radius: 8px;
  background: rgba(248, 201, 0, .08);
  padding: 12px;
}

.pix-copy-box span {
  color: var(--yellow);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.pix-copy-box code {
  display: block;
  color: #fff;
  font-size: .78rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: normal;
}

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

.detail-item {
  display: grid;
  gap: 3px;
  min-width: 0;
  border-radius: 6px;
  background: rgba(0, 0, 0, .18);
  padding: 10px;
}

.detail-item span {
  color: rgba(255, 255, 255, .58);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.detail-item strong {
  overflow-wrap: anywhere;
  color: var(--white);
  font-size: .9rem;
}

.modal-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.button.danger,
.modal-actions .button.danger {
  background: #ff6b6b;
  color: #130000;
}

@media (max-width: 760px) {
  .table-wrap {
    overflow-x: auto;
  }

  .checkin-console,
  .public-checkin {
    grid-template-columns: 1fr;
  }

  .checkin-item,
  .checkin-main,
  .kit-line {
    grid-template-columns: 1fr;
  }

  .checkin-item .inline-actions {
    min-width: 0;
  }

  .checkin-code {
    width: 100%;
  }

  .details-grid-inner {
    grid-template-columns: 1fr;
  }
}

/* Admin mobile polish */
@media (max-width: 1100px) {
  .admin-page .site-topbar-right {
    display: none;
  }

  .admin-workspace.admin-nav-collapsed {
    grid-template-columns: 1fr;
  }

  .rail-collapse-toggle,
  .rail-nav {
    display: none;
  }

  .mobile-admin-menu-button {
    display: flex;
  }

  .mobile-admin-menu-panel:not(.hidden) {
    display: grid;
  }

  .admin-nav-collapsed .admin-logo {
    width: auto;
    height: auto;
    justify-self: start;
    display: inline;
    border: 0;
    background: transparent;
    font-size: 1rem;
  }

  .admin-nav-collapsed .admin-logo::before {
    content: none;
  }

  .admin-nav-collapsed .admin-subtitle,
  .admin-nav-collapsed .rail-collapse-text {
    display: block;
  }

  .admin-nav-collapsed .rail-collapse-toggle {
    width: 100%;
    justify-self: stretch;
  }

  .admin-nav-collapsed .rail-collapse-icon {
    transform: none;
  }

  .admin-nav-collapsed .rail-nav {
    justify-items: stretch;
  }

  .admin-nav-collapsed .rail-nav button {
    width: auto;
    min-width: max-content;
    justify-content: flex-start;
    padding-inline: 14px;
    font-size: .78rem;
  }

  .admin-nav-collapsed .rail-nav button::before {
    content: none;
  }

  .admin-page .rail-nav {
    display: none !important;
  }

  .admin-page {
    overflow-x: hidden;
  }

  .admin-app {
    width: 100%;
    padding: 12px;
  }

  .admin-workspace {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .admin-rail {
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: auto;
    gap: 10px;
    padding: 12px;
    box-shadow: 0 18px 46px rgba(0, 0, 0, .34);
  }

  .admin-logo {
    font-size: 1rem;
  }

  .admin-subtitle {
    margin: -4px 0 0;
    padding: 0;
    border-bottom: 0;
    font-size: .78rem;
  }

  .rail-nav {
    display: flex;
    gap: 8px;
    margin-inline: -4px;
    padding: 2px 4px 8px;
    overflow-x: auto;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .rail-nav button {
    flex: 0 0 auto;
    min-height: 42px;
    min-width: max-content;
    padding-inline: 14px;
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .045);
    border-radius: 999px;
    scroll-snap-align: start;
    white-space: nowrap;
  }

  .rail-nav button.active {
    border-color: rgba(248, 201, 0, .5);
  }

  .rail-section {
    gap: 8px;
    margin-top: 0;
  }

  .active-event,
  .event-option {
    min-height: 48px;
    padding-block: 10px;
  }

  .event-picker {
    max-height: 180px;
  }

  .admin-content {
    gap: 12px;
  }

  .content-header {
    min-height: 0;
    padding: 16px;
  }

  .content-actions,
  .overview-actions {
    flex-wrap: wrap;
  }

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

  .metric-card {
    min-height: 90px;
    padding: 14px;
  }

  .admin-page .form-grid,
  .admin-page .form-grid.compact,
  .builder-grid,
  .finance-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .admin-app {
    padding: 8px;
  }

  .login-stage {
    width: min(420px, 100%);
    min-height: auto;
    align-items: start;
    align-content: start;
    padding-top: 16px;
  }

  .login-copy {
    display: none;
  }

  .login-card,
  .admin-card,
  .content-header,
  .metric-card {
    box-shadow: 0 14px 42px rgba(0, 0, 0, .22);
  }

  .login-card,
  .admin-card,
  .modal-card {
    padding: 14px;
  }

  .admin-rail {
    margin-inline: -8px;
    border-inline: 0;
    border-radius: 0 0 8px 8px;
  }

  .admin-logo,
  .admin-subtitle {
    padding-inline: 4px;
  }

  .rail-nav {
    padding-bottom: 10px;
  }

  .rail-nav button {
    min-height: 40px;
    font-size: .78rem;
  }

  .rail-heading {
    align-items: center;
  }

  .rail-heading button {
    min-width: auto;
    width: auto;
  }

  .active-event strong,
  .event-option strong {
    font-size: .88rem;
  }

  .active-event small,
  .event-option small {
    font-size: .72rem;
  }

  .content-header {
    gap: 14px;
    padding: 14px;
  }

  .content-header h1 {
    font-size: clamp(1.45rem, 8vw, 2.1rem);
  }

  .content-header p {
    font-size: .9rem;
  }

  .content-actions,
  .overview-actions,
  .inline-actions,
  .form-actions,
  .row-actions {
    width: 100%;
    justify-content: stretch;
  }

  .content-actions .button,
  .overview-actions .button,
  .inline-actions .button,
  .form-actions .button,
  .row-actions .button,
  .compact-search,
  .admin-page .button {
    width: 100%;
  }

  .section-heading {
    gap: 12px;
  }

  .section-heading h2,
  .section-heading h3 {
    font-size: 1.2rem;
  }

  .registration-tools {
    width: 100%;
  }

  .filter-panel {
    grid-template-columns: 1fr;
  }

  .list-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .active-filter-summary {
    text-align: left;
  }

  [data-admin-panel="registrations"] .table-wrap,
  [data-admin-panel="payments"] .table-wrap,
  [data-admin-panel="users"] .table-wrap {
    display: none;
  }

  [data-admin-panel="registrations"] .mobile-card-list,
  [data-admin-panel="payments"] .mobile-card-list,
  [data-admin-panel="users"] .mobile-card-list {
    display: grid;
    gap: 10px;
  }

  .mobile-card-head {
    flex-direction: column;
  }

  .mobile-pill-stack {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .mobile-card-grid {
    grid-template-columns: 1fr;
  }

  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }

  .payment-summary-grid {
    grid-template-columns: 1fr;
  }

  .metric-card {
    min-height: 82px;
    padding: 12px;
  }

  .metric-card span {
    font-size: .68rem;
  }

  .metric-card strong {
    margin-top: 10px;
    font-size: clamp(1.35rem, 8vw, 1.95rem);
  }

  .admin-page label {
    font-size: .7rem;
  }

  .admin-page input,
  .admin-page select,
  .admin-page textarea {
    min-height: 46px;
    font-size: 16px;
  }

  .config-item,
  .finance-item {
    align-items: stretch;
  }

  .config-item {
    flex-direction: column;
  }

  .config-item b {
    white-space: normal;
  }

  .table-wrap {
    position: relative;
    margin-inline: -2px;
    padding-top: 28px;
    border-radius: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  [data-admin-panel="registrations"] .table-wrap::before,
  [data-admin-panel="users"] .table-wrap::before {
    content: none;
  }

  .table-wrap::before {
    content: "Arraste a tabela para ver mais";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    min-height: 28px;
    display: flex;
    align-items: center;
    padding-inline: 10px;
    background: rgba(248, 201, 0, .1);
    color: var(--yellow);
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
  }

  table {
    min-width: 720px;
  }

  th,
  td {
    padding: 10px 9px;
    font-size: .82rem;
  }

  .row-actions {
    min-width: 180px;
  }

  .pagination-bar,
  .pagination-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .pagination-actions .button {
    width: 100%;
  }

  .action-menu,
  .action-menu summary {
    width: 100%;
  }

  .action-menu-panel {
    left: 12px !important;
    right: 12px;
    width: auto;
    min-width: 0;
  }

  .admin-modal {
    width: calc(100vw - 12px);
    max-height: calc(100svh - 12px);
  }

  .admin-modal::backdrop {
    backdrop-filter: blur(4px);
  }

  .modal-card {
    max-height: calc(100svh - 12px);
    overflow: auto;
  }

  .modal-card.wide {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .admin-page .button,
  .rail-nav button {
    font-size: .74rem;
  }

  .content-header h1 {
    font-size: 1.55rem;
  }
}
