:root {
  --ink: #f6f6f6;
  --muted: #b9b9b9;
  --line: #2d2d2d;
  --paper: #050505;
  --surface: #111111;
  --accent: #d21f2f;
  --accent-dark: #a61724;
  --gold: #d7a942;
  --field: #080808;
  --green: #16794d;
  --red: #d94444;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
}

@supports (min-height: 100dvh) {
  body,
  .admin-page {
    min-height: 100dvh;
  }
}

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

.request-page {
  width: 100%;
  padding: clamp(18px, 4vw, 56px);
}

.request-shell {
  width: min(100%, 720px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 4vw, 34px);
  align-items: center;
}

.event-logo {
  width: min(100%, 520px);
  justify-self: center;
  max-height: 360px;
  object-fit: contain;
  border-radius: 8px;
  border: 0;
  background: #000;
  box-shadow: 0 22px 60px rgba(210, 31, 47, 0.22);
}

.form-panel {
  background: linear-gradient(180deg, rgba(24, 24, 24, 0.98), rgba(9, 9, 9, 0.98));
  border: 1px solid #ed5b43;
  border-radius: 8px;
  padding: clamp(22px, 4vw, 36px);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.55);
}

.request-footer-logo {
  width: min(100%, 220px);
  justify-self: center;
  object-fit: contain;
  margin-top: -8px;
}

.panel-heading {
  margin-bottom: 28px;
}

.required-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.required-note span,
label strong {
  color: #ed5b43;
}

.eyebrow {
  margin: 10px 0 0;
  color: #ffffff;
  font-size: clamp(1rem, 2vw, 1.24rem);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

h1 {
  margin: 0;
  color: #ed5b43;
  font-size: clamp(1.2rem, 2.4vw, 2rem);
  line-height: 1;
  letter-spacing: 0;
}

form {
  display: grid;
  gap: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

label,
fieldset {
  min-width: 0;
}

label {
  display: grid;
  gap: 8px;
}

label span,
legend {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

legend {
  margin-bottom: 12px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--field);
  color: var(--ink);
  font-size: 16px;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

input {
  min-height: 46px;
  padding: 0 13px;
}

textarea {
  resize: vertical;
  min-height: 132px;
  padding: 13px;
}

input:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(215, 169, 66, 0.18);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

#form-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

#form-status.success {
  color: var(--green);
  font-weight: 800;
}

#form-status.error {
  color: var(--red);
  font-weight: 800;
}

.form-disclaimer {
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.form-disclaimer a {
  color: #ffffff;
  font-weight: 800;
  text-underline-offset: 3px;
}

.hidden {
  display: none !important;
}

.login-shell .form-panel {
  width: 100%;
}

.text-button {
  width: auto;
  min-height: auto;
  justify-self: center;
  padding: 0;
  background: transparent;
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

button {
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  padding: 0 20px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 850;
  white-space: nowrap;
  transition: background 140ms ease, transform 140ms ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
  .text-button:hover {
    background: transparent;
    color: #ed5b43;
  }

  button:hover {
    background: var(--accent-dark);
  }
}

button:active {
  transform: translateY(1px);
}

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

.admin-page {
  min-height: 100vh;
  padding: clamp(18px, 3vw, 42px);
}

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

.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 26px;
}

.admin-header h1 {
  font-size: clamp(1.85rem, 3vw, 2.7rem);
}

.admin-header p {
  margin: 8px 0 0;
  color: var(--muted);
}

.admin-link {
  color: var(--gold);
  font-weight: 800;
  text-decoration: none;
}

.admin-header-actions {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.dashboard-return-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 6px;
  padding: 0 18px;
  background: #ed5b43;
  color: #ffffff;
  font-weight: 900;
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .dashboard-return-button:hover {
    background: #c33f2a;
  }
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.toolbar select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--field);
  color: var(--ink);
  font-size: 16px;
  padding: 0 12px;
}

.request-list {
  display: grid;
  gap: 14px;
}

.request-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 18px;
  background: rgba(17, 17, 17, 0.94);
  border: 1px solid rgba(215, 169, 66, 0.22);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(23, 23, 23, 0.08);
}

.request-card h2 {
  margin: 0 0 4px;
  font-size: 1.2rem;
  letter-spacing: 0;
}

.meta,
.submitted,
.empty-state {
  color: var(--muted);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0 0 12px;
}

.social-links {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

.social-line {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.social-line strong,
.message-block strong {
  color: var(--ink);
}

.social-line a {
  color: #ffffff;
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .social-line a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}

.message-block {
  margin-top: 24px;
}

.message {
  margin: 8px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  min-height: 30px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-pending {
  background: rgba(197, 150, 55, 0.18);
  color: var(--gold);
}

.status-approved {
  background: rgba(22, 121, 77, 0.14);
  color: var(--green);
}

.status-denied {
  background: rgba(169, 37, 37, 0.13);
  color: var(--red);
}

.review-actions {
  display: grid;
  align-content: start;
  gap: 10px;
}

.review-actions button {
  min-width: 96px;
}

.review-actions .deny {
  background: #23252a;
}

@media (hover: hover) and (pointer: fine) {
  .review-actions .deny:hover {
    background: #000;
  }
}

.site-footer {
  padding: 18px clamp(14px, 4vw, 32px) 26px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: center;
}

.empty-state {
  padding: 32px;
  background: rgba(17, 17, 17, 0.74);
  border: 1px dashed var(--line);
  border-radius: 8px;
  text-align: center;
}

@media (max-width: 860px) {
  .request-shell {
    grid-template-columns: 1fr;
  }

  .event-logo {
    max-height: 420px;
  }

  .admin-header,
  .request-card {
    grid-template-columns: 1fr;
  }

  .admin-header {
    align-items: start;
  }

  .admin-header-actions {
    justify-items: start;
  }

  .review-actions {
    display: flex;
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .request-page,
  .admin-page {
    padding: 12px;
  }

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

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

  button {
    width: 100%;
  }
}
